![]() ![]() ![]() There is no guaranteed solution to this problem because the phone number is not physically stored on all SIM-cards, or broadcasted from the network to the phone. This can return null or "" or even "? If you want something that uniquely identifies the device, you should use getDeviceId instead. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.Īccording to the highly upvoted comments, there are a few caveats to be aware of. In Eclipse, this is working for me.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Do you have maybe some advice, how to call it? Use Reflector. For now, it will have to be different code, for different phones. You can use Reflection library to call it. Where did you see references to these two methods? Is this possible? With regards, Viljem B4X. Now it would be great if somehow I was able to call this from B4A. Thread starter viljemto Start date Mar 1, I have managed to extract methods from TelephonyManager class. ![]() For a better experience, please enable JavaScript in your browser before proceeding. Members Current visitors New profile posts Search profile posts. New posts What's new New profile posts Latest activity. Is there a unique Android device ID? Android:Check whether the phone is dual SIM.Forums Search forums. How can we speed up the Android emulator? A device with such support has been customized for this, so you will need to get information from that device's manufacturer for any facilities they have to interact with it. The current Android platform does not have support for multiple SIMs. If you follow this direction, I think you can make it, even if current android api doesn't support dual sim card mobile devices. Added later: I have found the MultiSim application on the Android Market, which has in its description written that " Analog dual-sim-adapter users can switch their sim cards Please refer to this Dual Sim Android article. But I came across another way which seems to be more promising. I'm not at all sure if this approach would work for you although the code appears manufacturer-independent I figured it out with trial and error on my Mlais MX28 with a customized ROM. Combined with some other UI prompt stuff for actually 'picking' the preferred SIMthis should do the trick. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |