JavaBill
JavaBill

Reputation: 11

How do I access Intent information after the application is closed?

So I have an android app that creates a service that will run in the background for the user even when the application is closed.

I have them enter a number that is sent with the Intent but once the user closes the application the Intent is no longer accessible. How can I make the information stored in the intent still accessible even if they close the app?

Upvotes: 0

Views: 59

Answers (1)

JavaBill
JavaBill

Reputation: 11

I found that if the application is closed then the Service will try and restart based on the integer returned in the onStartCommand method. If START_REDELIVER_INTENT is used the Service will restart with the original Intent.

Upvotes: 1

Related Questions