31koding / barcodefraglibv2

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

Crash when go back to app. #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago
same here...any details about this one???
Please help

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