showing graph in Application

by jj » Fri, 10 Apr 2009 13:48:42 GMT

Sponsored Links
I want to display graph(time ver distance) in Activity , how should be
this achieved in Android.
is there any tut available?

Thank you

showing graph in Application

by Mark Murphy » Fri, 10 Apr 2009 19:42:42 GMT 

I am sure there are other graphing/charting components or techniques.

And, you can always draw your own on a Canvas.

Mark Murphy (a Commons Guy)  | 

Android App Developer Books: 


Sponsored Links

showing graph in Application

by clark » Sat, 11 Apr 2009 05:07:28 GMT

 In the API Demos in the OS section there is a Sensors demo which
graphs the sensor data.  You may want to take a look at that
implementation as well.



showing graph in Application

by Kirk - Actual Metrics » Sat, 11 Apr 2009 05:46:27 GMT

 I'm currently using Google Charts API, but do you know of any
solutions that will allow for interactive charts?




showing graph in Application

by jj » Sat, 11 Apr 2009 14:53:06 GMT

 Here is good solution 

Other Threads

1. Floating point sign. Comma "," or "." for France onscreen keyboard - question.


I think this might help:

This class is locale-aware.

-- Kostya

17.10.2010 21:34, EvgenyV :
Hi all, I'm using EditText with following Input type properties: number| numberSigned|numberDecimal|phone. The locale is "fr" which France settings. The question is: should I expect comma "," as floating number sign instead "." using for English locale. Thanks in advance, Evgeny
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- --

2. problem with updating of TextView from different thread

I have an Activity with TextView that I am trying to update from
different thread. To do that i pass TextView to the "updater" thread
txtStatus = (TextView)this.findViewById(;
// start udp server as separate thread and pass TextView to that
thread to print text messages from udp socket

new Thread(new TelemetryServer(txtStatus)).start();
//see thread code below

As a result i have thread error, even though "updater" is
ERROR/UDP(282): android.view.ViewRoot$CalledFromWrongThreadException:
Only the original thread that created a view hierarchy can touch its
Any other ideas how to solve this problem?
Tnank you,

public class TelemetryServer implements Runnable {
        public static final String SERVERIP = ""; // 'Within' the
        public static final int SERVERPORT = 2222;
        private TextView m_view;
        private DatagramSocket socket;
        private boolean loop;
        private synchronized void update( String msg)

        public TelemetryServer(TextView _view)
                m_view = _view;
                loop = true;
        public void run() {
                try {
                                InetAddress serverAddr = 
                                Log.d("UDP", "S: Connecting...");

                                socket = new DatagramSocket(SERVERPORT,
                                Log.i("TelemetryServer", "started");
                                while(loop) {
                                        byte[] buf = new byte[1024];
                                        DatagramPacket packet = new 
DatagramPacket(buf, buf.length);
                                        update(new String(packet.getData()));

                        } catch (Exception e) {

                                Log.e("UDP", "S: Error", e);

                        } // end of try
                        Log.d("UDP", "S: Done.");


3. FW: p--)

4. RIL/GSM Parameter

5. Android RIL / GSM Parameter

6. How to wrap multi APK into one Installation package

7. SMTP Features - Android - API 3