1

I have a project of getting the new mobile number of theft mobile. I this project I am doing if someone had stolen our mobile we can find that through if that person getting off our sim and he putting new sim. Then once if he switches on the mobile with new sim that particular number should be send to given email id?

Is there any possibilities?

Toon Krijthe
  • 52,876
  • 38
  • 145
  • 202
sasikumar
  • 81
  • 7

2 Answers2

3

Use a BroadCastReceiver.

Here's an intent action for reboot that you can use: ACTION_BOOT_COMPLETED.

This thread has more on the subject.

Community
  • 1
  • 1
keyser
  • 18,829
  • 16
  • 59
  • 101
0

Of course you can ! You use an On Reboot Receiver.

android.intent.ACTION.BOOT_COMPLETED

Register a receiver for that action & in the onReceive method of broadcast Receiver get the telephone number of the new sim & email it to the desired email id.

I would rather send a SMS than an email because you cannot be sure the user will have internet

Hope this helps !

keyser
  • 18,829
  • 16
  • 59
  • 101
Adnan Mulla
  • 2,872
  • 3
  • 25
  • 35