Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when go back to app. #7

Open
GoogleCodeExporter opened this issue Apr 8, 2016 · 6 comments
Open

Crash when go back to app. #7

GoogleCodeExporter opened this issue Apr 8, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Implement barcode fragment on main activity 
2. Press button to open another activity above
3. Press button on this new activity to open playstore
4. go back
5. go back to main activity

What is the expected output? What do you see instead?
QrCode fragment should be restarted


What version of the product are you using? On what operating system?
Nexus 5 with Android 4.4.4


Please provide any additional information below.


Original issue reported on code.google.com by arthur.g...@gmail.com on 1 Sep 2014 at 5:05

@GoogleCodeExporter
Copy link
Author

09-01 14:56:22.711: E/AndroidRuntime(2711): FATAL EXCEPTION: main
09-01 14:56:22.711: E/AndroidRuntime(2711): Process: com.lge.colorcalibration, 
PID: 2711
09-01 14:56:22.711: E/AndroidRuntime(2711): java.lang.NoClassDefFoundError: 
com.abhi.barcode.frag.libv2.R$string
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
com.abhi.barcode.frag.libv2.BarcodeFragment.displayFrameworkBugMessageAndExit(Ba
rcodeFragment.java:345)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
com.abhi.barcode.frag.libv2.BarcodeFragment.initCamera(BarcodeFragment.java:338)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
com.abhi.barcode.frag.libv2.BarcodeFragment.onResume(BarcodeFragment.java:147)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.Fragment.performResume(Fragment.java:1543)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:974)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115
)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1097
)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:1
905)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:
466)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:455)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.app.Activity.performResume(Activity.java:5323)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:2764)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2803)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.os.Handler.dispatchMessage(Handler.java:102)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.os.Looper.loop(Looper.java:136)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
android.app.ActivityThread.main(ActivityThread.java:5001)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
java.lang.reflect.Method.invokeNative(Native Method)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
java.lang.reflect.Method.invoke(Method.java:515)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
09-01 14:56:22.711: E/AndroidRuntime(2711):     at 
dalvik.system.NativeStart.main(Native Method)

Original comment by arthur.g...@gmail.com on 1 Sep 2014 at 5:06

@GoogleCodeExporter
Copy link
Author

Already fixed that by removing fragment on onPause() and adding again onResume, 
Sorry about that =/

Original comment by arthur.g...@gmail.com on 2 Sep 2014 at 7:22

@GoogleCodeExporter
Copy link
Author

please describe what you did that did not appear the error. I spent a long time 
on it

Original comment by zluka...@gmail.com on 15 Jun 2015 at 1:17

@GoogleCodeExporter
Copy link
Author

It was my mistake on implementation, I forgot to remove the fragment when we 
pass on onPause(). Just need to remove fragment onPause and add it again 
onResume

Original comment by arthur.g...@gmail.com on 15 Jun 2015 at 1:22

@GoogleCodeExporter
Copy link
Author

Unfortunately, I have an error when you first open the fragment

Original comment by zluka...@gmail.com on 15 Jun 2015 at 1:40

@GoogleCodeExporter
Copy link
Author

same here...any details about this one???
Please help

Original comment by dario.bu...@gmail.com on 2 Jul 2015 at 3:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant