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

Unhandled Exception: Calling startActivity() from outside of an Activity #872

Closed
alensiljak opened this issue Jul 13, 2016 · 3 comments
Closed
Assignees

Comments

@alensiljak
Copy link

alensiljak commented Jul 13, 2016

************ APP DETAILS ************
Version: 2016.07.13
Build: 854

************ FIRMWARE ************
SDK: 19
Release: 5.0
Incremental: eng.jenkins.1402738150

************ CAUSE OF ERROR ************
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
at android.app.ContextImpl.startActivity(ContextImpl.java)
at android.app.ContextImpl.startActivity(ContextImpl.java)
at com.cloudrail.si.servicecode.commands.AwaitCodeRedirect$1.run(AwaitCodeRedirect.java:81)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)

Reported Solutions

The solutions below were reported by users who claim that after the action, the sync started working. Usually one of the actions below was the final one.

  • reboot the device
  • uninstall and reinstall the app
  • delete extra files in Dropbox
  • use a different service
  • set the Provider in the synchronization settings
  • clear the app cache and data
@alensiljak alensiljak added the bug label Jul 13, 2016
@alensiljak alensiljak self-assigned this Jul 13, 2016
@alensiljak alensiljak added this to the upcoming milestone Jul 13, 2016
alensiljak pushed a commit that referenced this issue Jul 13, 2016
@alensiljak alensiljak modified the milestones: upcoming, 2016.07.13.855 Jul 14, 2016
@alensiljak alensiljak reopened this Jul 14, 2016
@alensiljak
Copy link
Author

alensiljak commented Jul 14, 2016

A user reports that he had multiple files in the Dropbox folder, that begin with the same name (backups). After deleting these files, the sync worked flawlessly.

However, this is not causing the exception on a test device.

@alensiljak
Copy link
Author

alensiljak commented Jul 15, 2016

Several users confirm that the issue disappeared after they uninstalled and reinstalled the app. This does not solve some other cases.
Still looking for the underlying cause and the proper solution.

@alensiljak alensiljak changed the title Unhandled Exception Unhandled Exception: Calling startActivity() from outside of an Activity Jul 15, 2016
@alensiljak alensiljak modified the milestones: upcoming, 2016.07.15.860 Jul 15, 2016
@alensiljak alensiljak modified the milestones: upcoming, 2016.07.17.864 Jul 20, 2016
@alensiljak
Copy link
Author

Based on the results, this has been resolved by the new version of the CloudRail library.

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