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

[Sample Application] State Lost on Rotation #6

Closed
ZKjellberg opened this issue Dec 17, 2015 · 1 comment
Closed

[Sample Application] State Lost on Rotation #6

ZKjellberg opened this issue Dec 17, 2015 · 1 comment
Labels

Comments

@ZKjellberg
Copy link
Contributor

If the user rotates the screen, the image & result will be lost. I suggest retaining the state of at least the TextView result.

If the user rotates the screen while the request is being processed, it will result in a NullPointerException crash. This is similar to #5 except this may actually still have valid data as it is delayed until the processing finishes.

Process: com.sandro.openalprsample, PID: 4146
java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.ArrayList org.openalpr.model.Results.getResults()' on a null object reference
  at com.sandro.openalprsample.MainActivity$2$1.run(MainActivity.java:104)
  at android.os.Handler.handleCallback(Handler.java:739)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:148)
  at android.app.ActivityThread.main(ActivityThread.java:5417)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
@SandroMachado SandroMachado changed the title State Lost on Rotation [Sample Application] State Lost on Rotation Dec 19, 2015
@SandroMachado
Copy link
Owner

Closed by #7.

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

No branches or pull requests

2 participants