-1

I am creating a application in which i have to send the IMEI (International Mobile Equipment Identity) number to the server, IMEI is a unique 15-digit serial number. This is to register the device on the server that unique number on the server and then fetch all the details of that device and send it to the server like, call details,wifi,mac address ,messages,contacts e.t.c

How can i fetch both the sims details when there are two SIMs in the device, and there details of both the sims like mobile numbers, call details/history,messages,contacts of both the SIMs separately.

Thanks

Maveňツ
  • 1
  • 12
  • 50
  • 89

1 Answers1

1

You can use TelephonyInfo to get details of the dual sim phone.

for better explanation, have a look at this post.

Android : Check whether the phone is dual SIM

Community
  • 1
  • 1
Sahil Mahajan Mj
  • 11,033
  • 8
  • 53
  • 100
  • i think Android does not support dual SIMs in their OS's. – Maveňツ Mar 07 '14 at 10:23
  • 1
    You knew that, still you posted the question? I have never came around such a situation. but I have found this post only that might help. – Sahil Mahajan Mj Mar 07 '14 at 10:28
  • 1
    There are plenty of Android phones that support dual SIM! – Mark Buikema Mar 07 '14 at 10:30
  • @sahil thanks for the suggestion, i have check this link only after posting the problem http://stackoverflow.com/questions/5255147/dual-sim-card-android and after implemetation i got telephonyInfo.getImeiSIM2() returns null, but device have dual sim and both are active. – Maveňツ Mar 07 '14 at 10:59
  • The post you are referring to is of **March 2011**. Since then there are lots of enhancements in android system. – Sahil Mahajan Mj Mar 07 '14 at 11:39
  • 1
    Also I think the Device manufacturer could provide with some API's that could work for dual sim devices. – Sahil Mahajan Mj Mar 07 '14 at 11:44
  • @SahilMahajanMj it feels awkward when u posted 'You knew that, still you posted the question?' .... Is it right way to respond !!! – Maveňツ Mar 09 '14 at 07:03
  • @ManishYadav Ohh, was it rude? I did'nt mean it that way. I was just amazed that you were making that statement just after posting a question on it. – Sahil Mahajan Mj Mar 10 '14 at 11:35