Map panning and zooming too slow.........

by Pratap » Mon, 04 Jan 2010 15:04:23 GMT

Sponsored Links
 I've developed a GPS app in which i record the user roots and show it
on the map.......but
Panning around on the map when reviewing my route is painfully slow,
it takes at least 4 or 5 seconds for the map to respond the finger

I've overridden the onDraw()  method and drawing the lines to show the there any better way to do this so that panning becomes
faster as in "MyTracks"...........

Thank you all.....
Pratap S.


Other Threads

1. Reading sensor values directly at regular intervals rather than using onSensorChanged(SensorEvent evt)


Up until now I have been using SensorEventListener.onSensorChanged
(SensorEvent evt) to obtain data values from the on board sensors (G1)
whenever a sensor event occurs (snippet below). However, what I really
want to be able to do is read the values of the sensors at a regular
intervals, at say a frequency of 0.1s rather than reacting to the
triggered event (for DSP purposes). Is there a way of reading the
sensor values directly without having to use/wait for onSensorChanged
() ?

Many thanks in advance.


Snippet - currently using onSensorChanged(SensorEvent evt):

SensorManager sman = (SensorManager) getSystemService
                List<Sensor> accelerometer = sman.getSensorList
                Sensor myAccelerometer = accelelerometer.get(0);

                sman.registerListener(new SensorEventListener() {

                        public void onAccuracyChanged(Sensor arg0, int arg1) {


                        public void onSensorChanged(SensorEvent evt) {

                                // read new sensor values
                                accelTextView.setText("X-accel: " + 
evt.values[0] + "\n" + "Y-
accel: "
                                                + evt.values[1] + "\n" + 
"Z-accel: " + evt.values[2]);

                                // sleep for a bit
                               try {
                                } catch (Exception ex) {

                }, myAccelerometer, SensorManager.SENSOR_DELAY_UI);


2. Selling license for free apps

Hi Guys,

Like many other developers here, I can't sell applications from my country
and seeking a way for monetization of my app.

I was thinking to release my app as free ads-supported version, and to sell
license from my website for those who want to remove the ads completely.
Actually users will apply on my website, pay a fee and I will send a

But then I came across the following url saying that "collecting payments
through your application is not allowed under the Android Market Developer
Distribution Agreement":

Is this to prohibit me from doing what I explained above?

Thank you,


3. How to build EditText view like that in Android Market where "X" button appears for clearing text?

4. Widgets and custom components?

5. Prevent radio button from being checked when being clicked

6. WebView onLoadComplete()?

7. Last modification time for each contact record in People table