showing graph in Application

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


Sponsored Links
 Hello
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


 


 http://code.google.com/p/bluechart/ 
 http://rapidandroid.org/wiki/Graphing 
 http://www.java4less.com/charts/chart.php?info=android 

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)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~


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.


~clark



--~--~---------~--~----~------------~-------~--~----~



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?

Thanks,

Kirk




--~--~---------~--~----~------------~-------~--~----~



showing graph in Application

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


 Here is good solution
 http://android.arnodenhond.com/graphview 
--~--~---------~--~----~------------~-------~--~----~



Other Threads

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

 Evgeny,

I think this might help:

http://developer.android.com/reference/java/text/NumberFormat.html

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 -- http://kmansoft.wordpress.com --

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
onCreate(..)
..
txtStatus = (TextView)this.findViewById(R.id.status);
// 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
synchronized:
ERROR/UDP(282): android.view.ViewRoot$CalledFromWrongThreadException:
Only the original thread that created a view hierarchy can touch its
views.
Any other ideas how to solve this problem?
Tnank you,
-V


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

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

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

                        } catch (Exception e) {

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

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


-- 

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