0

i want to send data that reside in the Activity file and extends service that receive data how is it Possible i dont want to use Intent here show me the way

1 Answer 1

1

If your service runs in the the same process as your activity you can use:

  • Intents - the best and recommended way. Why you don't want to use them?
  • Static variables
  • Shared preferences
  • Database

If your service runs in a different process than your activity:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.