trumpimar / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Some devices fail to show SendToGoogleDialog v 1.0.20 #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to send a track to google on an X10-Mini
2. Crash.

I was able to replicate this on my X10-mini.  Example stack trace:
W/dalvikvm( 8473): threadid=3: thread exiting with uncaught exception 
(group=0x2aaca160)
E/AndroidRuntime( 8473): Uncaught handler: thread main exiting due to uncaught 
exception
E/AndroidRuntime( 8473): java.lang.IllegalArgumentException: 
Activity#onCreateDialog did not create a dialog for id 4
E/AndroidRuntime( 8473): at android.app.Activity.createDialog(Activity.java:871)
E/AndroidRuntime( 8473): at android.app.Activity.showDialog(Activity.java:2483)
E/AndroidRuntime( 8473): at 
com.google.android.apps.mytracks.DialogManager$5.run(DialogManager.java:204)
E/AndroidRuntime( 8473): at 
android.app.Activity.runOnUiThread(Activity.java:3649)
E/AndroidRuntime( 8473): at 
com.google.android.apps.mytracks.DialogManager.showDialogSafely(DialogManager.ja
va:201)
E/AndroidRuntime( 8473): at 
com.google.android.apps.mytracks.MyTracks.onActivityResult(MyTracks.java:557)
E/AndroidRuntime( 8473): at 
com.google.android.apps.mytracks.MyTracksMap.onMenuItemSelected(MyTracksMap.java
:824)
E/AndroidRuntime( 8473): at 
com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback.onMenuItemSelec
ted(PhoneWindow.java:2737)
E/AndroidRuntime( 8473): at 
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:139)
E/AndroidRuntime( 8473): at 
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:85
5)
E/AndroidRuntime( 8473): at 
com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:12
9)
E/AndroidRuntime( 8473): at 
com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertControll
er.java:884)
E/AndroidRuntime( 8473): at 
android.widget.AdapterView.performItemClick(AdapterView.java:290)
E/AndroidRuntime( 8473): at 
android.widget.ListView.performItemClick(ListView.java:3291)
E/AndroidRuntime( 8473): at 
android.widget.AbsListView$PerformClick.run(AbsListView.java:1640)
E/AndroidRuntime( 8473): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 8473): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 8473): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 8473): at 
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 8473): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 8473): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 8473): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
E/AndroidRuntime( 8473): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630)
E/AndroidRuntime( 8473): at dalvik.system.NativeStart.main(Native Method)
E/dalvikvm( 8473): Unable to open stack trace file '/data/anr/traces.txt': 
Permission denied

Original issue reported on code.google.com by sandordo...@google.com on 24 Nov 2010 at 9:04

GoogleCodeExporter commented 8 years ago
This is worse than I thought basically all dialogs are broken on older devices.

Basically this is an issue with us moving to the newer api and dropping support 
for the old api.  The fix is to add the following to MyTracks.java:

  @Override
  protected Dialog onCreateDialog(int id) {
    return dialogManager.onCreateDialog(id, null);
  }

This change along with some other unfinished changes can be found at:
http://code.google.com/r/sandordornbush-bugfix/source/detail?r=df93b0f05af9a19c2
6e9a1ab0cf352c444e77ad9

Original comment by sandordo...@google.com on 24 Nov 2010 at 11:19

GoogleCodeExporter commented 8 years ago
Merged the dialog part of the fix.

Original comment by rdama...@google.com on 25 Nov 2010 at 3:12

GoogleCodeExporter commented 8 years ago
This is good news. Is it fixed in current 1.0.20, or will next version have the 
fix? Should I install 1.0.20 or wait? Thank you.

Original comment by hariskar on 25 Nov 2010 at 6:46

GoogleCodeExporter commented 8 years ago
Next version. If you want to test I can post a package here.

Original comment by rdama...@google.com on 25 Nov 2010 at 7:41

GoogleCodeExporter commented 8 years ago
I would like to test it.

Original comment by hariskar on 25 Nov 2010 at 7:59

GoogleCodeExporter commented 8 years ago
Please let us know if this works as expected.

Original comment by rdama...@google.com on 25 Nov 2010 at 8:31

GoogleCodeExporter commented 8 years ago
No crash, while I started sending a track. The problem seems to be fixed. I 
will use it today at my ride and report any problem I may find.

Original comment by hariskar on 25 Nov 2010 at 10:56

GoogleCodeExporter commented 8 years ago
This app is one of the reasons I bought the Desire. I used it to record a 
couple of tracks without a hitch. Two days ago, 24. Nov 2010 it suddenly 
refused any save to SD card or Google. 

Luckily I did not delete the tracks, but re-installed after reading this thread 
and it sprang back to life, saving my tracks just as intended and programmed as 
though nothing had happened.

No Idea where the hiccup occurred.

Original comment by WilliamB...@gmail.com on 26 Nov 2010 at 2:50

GoogleCodeExporter commented 8 years ago
I had the identical issue with 1.0.20 on an ADP1 running Android 1.6.  After 
installing the binary in Comment #6, uploading works perfectly again.  Thanks!

Original comment by simon.le...@gmail.com on 26 Nov 2010 at 5:43

GoogleCodeExporter commented 8 years ago
The fix is now live at the Android Market, please update from there. Removing 
the package from here.

Original comment by rdama...@google.com on 27 Nov 2010 at 2:46