mytracks question

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

mytracks question

Postby dutch85 » Mon Apr 25, 2011 12:28 pm

I'm experimenting with the MyTracks open source project. every time i run the build on my phone it crashes when i hit the arrow to the right to view the "data" screen. below is my logcat I cannot find out whats causing this.

thanks
Code: Select all
04-25 04:18:54.127: DEBUG/MyTracks(2325): MapActivity.onSaveInstanceState
04-25 04:18:54.247: DEBUG/MyTracks(2325): Registered track data listener: com.google.android.apps.mytracks.StatsActivity@4068a6c0
04-25 04:18:54.247: INFO/MyTracks(2325): New track selected, id=-1
04-25 04:18:54.247: INFO/MyTracks(2325): Build query: SELECT * FROM tracks WHERE (_id=-1) ORDER BY _id
04-25 04:18:54.257: INFO/MyTracks(2325): Build query: SELECT * FROM tracks WHERE (_id=-1) ORDER BY _id
04-25 04:18:54.277: DEBUG/MyTracks(2325): Notifying fix type: GOOD_FIX
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427451 to true speed: 2131099983 pace: 2131099885
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427406 to true speed: 2131099934 pace: 2131099935
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427412 to true speed: 2131099932 pace: 2131099933
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427399 to true speed: 2131099946 pace: 2131099943
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427451 to true speed: 2131099983 pace: 2131099885
04-25 04:18:54.357: WARN/MyTracks(2325): Setting view 2131427406 to true speed: 2131099934 pace: 2131099935
04-25 04:18:54.367: WARN/MyTracks(2325): Setting view 2131427412 to true speed: 2131099932 pace: 2131099933
04-25 04:18:54.367: WARN/MyTracks(2325): Setting view 2131427399 to true speed: 2131099946 pace: 2131099943
04-25 04:18:54.377: DEBUG/AndroidRuntime(2325): Shutting down VM
04-25 04:18:54.377: WARN/dalvikvm(2325): threadid=1: thread exiting with uncaught exception (group=0x40015560)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325): FATAL EXCEPTION: main
04-25 04:18:54.377: ERROR/AndroidRuntime(2325): java.lang.NullPointerException
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at com.google.android.apps.mytracks.StatsActivity$4.run(StatsActivity.java:289)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at android.os.Handler.handleCallback(Handler.java:587)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at android.os.Handler.dispatchMessage(Handler.java:92)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at android.os.Looper.loop(Looper.java:123)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at android.app.ActivityThread.main(ActivityThread.java:3649)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at java.lang.reflect.Method.invokeNative(Native Method)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at java.lang.reflect.Method.invoke(Method.java:507)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
04-25 04:18:54.377: ERROR/AndroidRuntime(2325):     at dalvik.system.NativeStart.main(Native Method)
04-25 04:18:54.387: WARN/ActivityManager(157):   Force finishing activity com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks
04-25 04:18:54.897: WARN/ActivityManager(157): Activity pause timeout for HistoryRecord{4079ed40 com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks}
04-25 04:18:55.007: INFO/AudioHardwareQSD(114): Routing audio to Speakerphone
04-25 04:18:55.007: DEBUG/AudioHardwareQSD(114): Switching audio device to
04-25 04:18:55.007: DEBUG/AudioHardwareQSD(114): Speakerphone
04-25 04:18:55.007: DEBUG/AudioHardwareQSD(114): AudioHardware PCM record is going to standby.
04-25 04:18:55.007: DEBUG/AudioFlinger(114): setParameters(): io 134, keyvalue routing=262144;vr_mode=0, tid 148, calling tid 114
04-25 04:18:55.017: INFO/AudioHardwareQSD(114): Routing audio to Speakerphone
04-25 04:18:55.017: INFO/AudioHardwareQSD(114): do input routing device 40000
04-25 04:18:55.017: INFO/AudioHardwareQSD(114): Routing audio to Speakerphone
04-25 04:18:55.017: DEBUG/AudioHardwareQSD(114): Switching audio device to
04-25 04:18:55.017: DEBUG/AudioHardwareQSD(114): Speakerphone
04-25 04:19:05.327: WARN/ActivityManager(157): Activity destroy timeout for HistoryRecord{4079ed40 com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks}
04-25 04:19:05.567: DEBUG/Tethering(157): TetherModeAliveState.processMessage what=4
04-25 04:19:05.567: DEBUG/Tethering(157): renewing mobile connection - requeuing for another 40000ms
04-25 04:19:05.597: DEBUG/Tethering(157): TetherModeAliveState.processMessage what=4
04-25 04:19:05.597: DEBUG/Tethering(157): renewing mobile connection - requeuing for another 40000ms
04-25 04:19:17.387: INFO/Process(2325): Sending signal. PID: 2325 SIG: 9
04-25 04:19:17.407: INFO/ActivityManager(157): Process com.google.android.maps.mytracks (pid 2325) has died.
04-25 04:19:17.407: INFO/WindowManager(157): WIN DEATH: Window{40713d78 Panel:com.google.android.maps.mytracks/com.google.android.apps.mytracks.MapActivity paused=false}
04-25 04:19:17.417: INFO/WindowManager(157): WIN DEATH: Window{40714050 com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks paused=false}
04-25 04:19:17.437: WARN/GpsLocationProvider(157): Unneeded remove listener for uid 1000
04-25 04:19:17.437: DEBUG/lib_locapi(157): loc_eng_stop
04-25 04:19:21.597: INFO/TelephonyRegistry(157): notifyServiceState: 0 home Verizon Wireless Verizon Wireless 31000  EvDo rev. A CSS supported 1 40RoamInd: 128DefRoamInd: 64EmergOnly: false
04-25 04:19:25.567: DEBUG/ConnectivityService(157): ConnectivityService FeatureUser expire(0, enableHIPRI, android.os.Binder@40835d18), created 60010 mSec ago
04-25 04:19:25.597: DEBUG/ConnectivityService(157): ConnectivityService FeatureUser expire(0, enableHIPRI, android.os.Binder@40968608), created 60007 mSec ago
04-25 04:19:45.587: DEBUG/Tethering(157): TetherModeAliveState.processMessage what=4
04-25 04:19:45.587: DEBUG/Tethering(157): renewing mobile connection - requeuing for another 40000ms
04-25 04:19:45.607: DEBUG/Tethering(157): TetherModeAliveState.processMessage what=4
04-25 04:19:45.607: DEBUG/Tethering(157): renewing mobile connection - requeuing for another 40000ms
dutch85
Developer
Developer
 
Posts: 39
Joined: Tue Apr 06, 2010 12:31 am

Top

Re: mytracks question

Postby dutch85 » Tue Apr 26, 2011 4:11 am

the error sits in this block

Code: Select all
@Override
  public void onTrackUpdated(final Track track) {
    runOnUiThread(new Runnable() {
      @Override
      public void run() {
        startTime = track.getStatistics().getStartTime();
        if (!dataHub.isRecordingSelected()) {
          utils.setTime(R.id.total_time_register,
              track.getStatistics().getTotalTime());
          showUnknownLocation();
        }
        utils.setAllStats(track.getStatistics());
      }
    });
  }
dutch85
Developer
Developer
 
Posts: 39
Joined: Tue Apr 06, 2010 12:31 am

Re: mytracks question

Postby dutch85 » Sat May 07, 2011 12:11 am

no love here
dutch85
Developer
Developer
 
Posts: 39
Joined: Tue Apr 06, 2010 12:31 am

Top

Return to Map Problems

Who is online

Users browsing this forum: Google [Bot] and 4 guests