0

I have stored some phone number in my application.

I want to do some operation like when i get message from that stored number then I want to send the automatic reply.

Once if we close our application then whether the data will be available or not?

After closing application I want to perform this operation with the data which I stored already.

Is it possible?

  • Of course, it has been exlained here. http://stackoverflow.com/questions/8684772/having-a-service-receive-sms-messages. If you stored in preferences, file, db or something, you can pull from the receiver with no problems :) – Toumash Nov 22 '14 at 11:11
  • 1
    Yes, you can. Please search content provider in google and in results you can get number of solutions. – Roll no1 Nov 22 '14 at 11:12
  • 1
    Check : http://developer.android.com/guide/topics/providers/content-providers.html – Haresh Chhelana Nov 22 '14 at 11:13

1 Answers1

0

If you want to store small information use shared preferences,

http://www.tutorialspoint.com/android/android_shared_preferences.htm

(Or)

If you want store table of bulk information use SQLITE database,

http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/

stacktry
  • 324
  • 3
  • 24