jpffilho / pedometer

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

FC on Quit after Pause #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Menu
2. Click on "Pause"
3. Open Menu
4. Click on "Quit"

What is the expected output? Exit 
What do you see instead? Force Close

What version of the product are you using? 1.4.1
On what device and what operating system version? Android 4.1.2

Following stack trace:

E/AndroidRuntime(  585): FATAL EXCEPTION: main
E/AndroidRuntime(  585): java.lang.IllegalArgumentException: Unbinding Service 
name.bagi.levente.pedometer.Pedometer$3@40fc6f38 that was already unbound
E/AndroidRuntime(  585):    at 
android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:908)
E/AndroidRuntime(  585):    at 
android.app.ContextImpl.unbindService(ContextImpl.java:1221)
E/AndroidRuntime(  585):    at 
android.content.ContextWrapper.unbindService(ContextWrapper.java:405)
E/AndroidRuntime(  585):    at 
name.bagi.levente.pedometer.Pedometer.unbindStepService(Pedometer.java:272)
E/AndroidRuntime(  585):    at 
name.bagi.levente.pedometer.Pedometer.onOptionsItemSelected(Pedometer.java:357)
E/AndroidRuntime(  585):    at 
android.app.Activity.onMenuItemSelected(Activity.java:2534)
E/AndroidRuntime(  585):    at 
com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java
:958)
E/AndroidRuntime(  585):    at 
com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.
java:735)
E/AndroidRuntime(  585):    at 
com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149)
E/AndroidRuntime(  585):    at 
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:87
4)
E/AndroidRuntime(  585):    at 
com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:468)
E/AndroidRuntime(  585):    at 
com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.ja
va:126)
E/AndroidRuntime(  585):    at android.view.View$PerformClick.run(View.java:16966)
E/AndroidRuntime(  585):    at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime(  585):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(  585):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(  585):    at 
android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime(  585):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(  585):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(  585):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime(  585):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime(  585):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  585): Caused by: java.lang.IllegalArgumentException: 
Originally unbound here:
E/AndroidRuntime(  585):    at 
android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:895)
E/AndroidRuntime(  585):    at 
android.app.ContextImpl.unbindService(ContextImpl.java:1221)
E/AndroidRuntime(  585):    at 
android.content.ContextWrapper.unbindService(ContextWrapper.java:405)
E/AndroidRuntime(  585):    at 
name.bagi.levente.pedometer.Pedometer.unbindStepService(Pedometer.java:272)
E/AndroidRuntime(  585):    at 
name.bagi.levente.pedometer.Pedometer.onOptionsItemSelected(Pedometer.java:345)
E/AndroidRuntime(  585):    ... 17 more
W/ActivityManager(  149):   Force finishing activity 
name.bagi.levente.pedometer/.Pedometer

Original issue reported on code.google.com by inkubo3@gmail.com on 2 Feb 2015 at 7:40