Performance issue on Android's MapView Navigation-App -


I have a question about making a navigation app faster and more stable.

The original my app's layer is a simple map view, which is covered with multiple overlays (2 markers for start and destination and one for route).

My idea is to apply a thread to display the path, so that the app will not be hanging during a more complicated route calculation (as it is now).

After updating the thread, no update is shown, you may be able to help me with a little bit of my code below:

  The Private Class Uses MyLocationListener LocationListener {@Override changed the location to Public Zero (location location) {posUser = new GeoPoint (int) (loc.getLatitude () * 1E6), (int) (Public Legacy (*) * 1 A6)); New thread () {public zero run () {mapView.invalidate (); // Delete old overlay mapView.getOverlays (). clear (); // Update overlay elements and update basic map settingsText (); If (first refresh) {adjustMap (); First Replenish = false; } GetAndPaintRoute (); DrawMarkers (); }}; }  

Some attributes are summarized by some method like "Dramacers ()" or "Update Text ()" ... (They do not need to pay more attention - ))

When you are actually asking for the form run ? I only see the code for create . If you did, you will see that only the main (UI) thread is allowed to update, as the RPond notes

Instead, divide your work and


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -