Background

  • 2
  • Question
  • Updated 9 years ago
  • Answered
When running my Android app, which utilizes the GPS at a set interval (default of 10seconds) and uploads it to a website, and I get a phone call, the app goes to the background. Since we cannot do data and voice at the same time, the OS shuts the data portion of the app down. Once the phone call ends, the data does not restart.

What can I do the have the app start sending data again once the phone call is over?

Also, is it possible to send the app to the background via code?
Photo of SCGrant327

SCGrant327

  • 19 Posts
  • 0 Reply Likes
  • unsure

Posted 9 years ago

  • 2
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Are you building your app locally, or using PhoneGap Build?

If you're using PhoneGap Build, you won't have direct access to the native code, and won't be able to provide this behaviour.

If you're building with the Android SDK locally, you have to resume the download activity once the phone call ends. Since it's so Android-specific, it's out of the scope of what PhoneGap provides - your best bet is to look at the Android SDK documentation.