cityRadarActivity is broken

  ... in the unlikely case you discovered a bug, post it here.

cityRadarActivity is broken

Postby Dan » Sat Sep 24, 2011 4:52 am

Fixed errors:

CityRadarActivity:
L124 this.mEngine.getFontManager().loadFont(this.mFont);


BaseGameActivity:
L134: return this.mEngine.getFontManager();


still have bugs but I am lost since I just started looking at the code today...

09-24 02:32:28.027: ERROR/AndroidRuntime(1073): FATAL EXCEPTION: main
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): java.lang.RuntimeException: Unable to resume activity {org.anddev.andengine.examples/org.anddev.andengine.examples.app.cityradar.CityRadarActivity}: java.lang.IllegalArgumentException: provider==null
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.os.Handler.dispatchMessage(Handler.java:99)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.os.Looper.loop(Looper.java:123)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.main(ActivityThread.java:3683)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at java.lang.reflect.Method.invokeNative(Native Method)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at java.lang.reflect.Method.invoke(Method.java:507)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at dalvik.system.NativeStart.main(Native Method)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): Caused by: java.lang.IllegalArgumentException: provider==null
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:441)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at org.anddev.andengine.engine.Engine.enableLocationSensor(Engine.java:559)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at org.anddev.andengine.ui.activity.BaseGameActivity.enableLocationSensor(BaseGameActivity.java:259)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at org.anddev.andengine.examples.app.cityradar.CityRadarActivity.onResume(CityRadarActivity.java:231)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.Activity.performResume(Activity.java:3832)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
09-24 02:32:28.027: ERROR/AndroidRuntime(1073): ... 12 more
09-24 02:32:32.707: ERROR/InputDispatcher(60): channel '4072ff80 org.anddev.andengine.examples/org.anddev.andengine.examples.launcher.ExampleLauncher (server)' ~ Consumer closed input channel or an error occurred. events=0x8
09-24 02:32:32.707: ERROR/InputDispatcher(60): channel '4072ff80 org.anddev.andengine.examples/org.anddev.andengine.examples.launcher.ExampleLauncher (server)' ~ Channel is unrecoverably broken and will be disposed!

Dan
 
Posts: 10
Joined: Thu Jun 02, 2011 9:08 pm

Re: cityRadarActivity is broken

Postby Dan » Sat Sep 24, 2011 5:04 am

works if you have gps enabled... needs to catch exception in case it doest :comment:
Dan
 
Posts: 10
Joined: Thu Jun 02, 2011 9:08 pm

Re: cityRadarActivity is broken

Postby drjava72 » Mon Oct 03, 2011 1:04 pm

I am also having problems running and engine examples. :(
Best Regards,
drJava72
drjava72
 
Posts: 287
Joined: Fri Apr 29, 2011 8:03 am

Re: cityRadarActivity is broken

Postby yyyxfz » Sat Mar 17, 2012 6:48 pm

have you ever resolved? Now i have met same problem when run app/cityradar
and i have open the GPS, also change the BaseActivity return return this.mEngine.getFontManager();
and also in cityradaractivity changed to this.mEngine.getFontManager().loadFont(this.mFont);
but the same errors happend either
the logcat log as follows:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 03-16 10:57:05.268: E/AndroidRuntime(18845): FATAL EXCEPTION: main
  2. 03-16 10:57:05.268: E/AndroidRuntime(18845): java.lang.RuntimeException: Unable to resume activity {org.anddev.andengine.examples/org.anddev.andengine.examples.app.cityradar.CityRadarActivity}: java.lang.IllegalArgumentException: provider==null
  3. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
  4. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
  5. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
  6. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  7. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  8. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.os.Handler.dispatchMessage(Handler.java:99)
  9. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.os.Looper.loop(Looper.java:130)
  10. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.main(ActivityThread.java:3683)
  11. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at java.lang.reflect.Method.invokeNative(Native Method)
  12. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at java.lang.reflect.Method.invoke(Method.java:507)
  13. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  14. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  15. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at dalvik.system.NativeStart.main(Native Method)
  16. 03-16 10:57:05.268: E/AndroidRuntime(18845): Caused by: java.lang.IllegalArgumentException: provider==null
  17. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.location.LocationManager.requestLocationUpdates(LocationManager.java:441)
  18. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.engine.Engine.enableLocationSensor(Engine.java:559)
  19. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.ui.activity.BaseGameActivity.enableLocationSensor(BaseGameActivity.java:259)
  20. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.examples.app.cityradar.CityRadarActivity.onResume(CityRadarActivity.java:231)
  21. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
  22. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.Activity.performResume(Activity.java:3832)
  23. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
  24. 03-16 10:57:05.268: E/AndroidRuntime(18845):    ... 12 more
Parsed in 0.014 seconds, using GeSHi 1.0.8.4




does and body know this? thanks very much.
yyyxfz
 
Posts: 1
Joined: Wed Nov 23, 2011 4:53 pm

Re: cityRadarActivity is broken

Postby ynnmnm » Tue Apr 24, 2012 10:11 am

I run the example successful in my phone. First, you should add android.permission.ACCESS_FINE_LOCATION in AndroidManifest.xml. Then you should open gps on your smartphone when you run this example.

yyyxfz wrote:have you ever resolved? Now i have met same problem when run app/cityradar
and i have open the GPS, also change the BaseActivity return return this.mEngine.getFontManager();
and also in cityradaractivity changed to this.mEngine.getFontManager().loadFont(this.mFont);
but the same errors happend either
the logcat log as follows:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. 03-16 10:57:05.268: E/AndroidRuntime(18845): FATAL EXCEPTION: main
  2. 03-16 10:57:05.268: E/AndroidRuntime(18845): java.lang.RuntimeException: Unable to resume activity {org.anddev.andengine.examples/org.anddev.andengine.examples.app.cityradar.CityRadarActivity}: java.lang.IllegalArgumentException: provider==null
  3. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
  4. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
  5. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
  6. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
  7. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
  8. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.os.Handler.dispatchMessage(Handler.java:99)
  9. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.os.Looper.loop(Looper.java:130)
  10. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.main(ActivityThread.java:3683)
  11. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at java.lang.reflect.Method.invokeNative(Native Method)
  12. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at java.lang.reflect.Method.invoke(Method.java:507)
  13. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
  14. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  15. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at dalvik.system.NativeStart.main(Native Method)
  16. 03-16 10:57:05.268: E/AndroidRuntime(18845): Caused by: java.lang.IllegalArgumentException: provider==null
  17. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.location.LocationManager.requestLocationUpdates(LocationManager.java:441)
  18. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.engine.Engine.enableLocationSensor(Engine.java:559)
  19. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.ui.activity.BaseGameActivity.enableLocationSensor(BaseGameActivity.java:259)
  20. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at org.anddev.andengine.examples.app.cityradar.CityRadarActivity.onResume(CityRadarActivity.java:231)
  21. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
  22. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.Activity.performResume(Activity.java:3832)
  23. 03-16 10:57:05.268: E/AndroidRuntime(18845):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
  24. 03-16 10:57:05.268: E/AndroidRuntime(18845):    ... 12 more
Parsed in 0.014 seconds, using GeSHi 1.0.8.4




does and body know this? thanks very much.
ynnmnm
 
Posts: 2
Joined: Tue Apr 24, 2012 10:09 am

Re: cityRadarActivity is broken

Postby rajeshsaini » Mon May 06, 2013 9:11 am

it started working i only added finelocation in menfist file and started my gps enabled it worked
rajeshsaini
 
Posts: 6
Joined: Mon May 06, 2013 9:09 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests