choosing sim to send text message on a dual-sim sony xperia - android

It seems clear from several posts I read on this forum that the Android SDK does not yet support dual-sim phones natively and that its up to the phone vendor to implement such support. I am using a Sony Experia M running Android 4.2.2 (Build 152.A.1.12) to develop a sms app. I was previously able to run this app successfully on a Nexus 4. On the Experia however, the behavior is a little puzzling. SMSManager seems to always picks SIM 1 to send messages out. The default sms app on Experia gives a choice to the user to pick which SIM to use while sending messages.
I was wondering how to implement similar functionality in my app. Does Android natively enumerate the SIMs on the phone and if not has anyone been able to use the Sony SDK extensions to do this ?

The Sony Add-on SDK does not contain any support for dual SIM functionality.
Unfortunately at this time there are no public APIs available that support dual SIMs.

Related

Android Dual Sim Emulator

How can I emulate an Android device with Dual sim support? It's important that the Android level is 5.1 or higher. This emulator is intended to send/receive SMS
May this is help you:
Buddy in Document it is said that Emulators are supported with simulated SimCard..
"A GSM modem, including a simulated SIM Card" More Information
And There are some patches available which allows sim card support in emulator using standard USB PCSC reader...
Here are some links which may guide you through..
http://simhacks.github.io/android-emulator/
http://blog.codepainters.com/2010/11/20/android-emulator-patch-for-configurable-imei-imsi-and-sim-card-serial-number/
thank you...

HCE: Why can I get fail return code in Sony Xperia ZL?

I have a problem with HCE. I downloaded a sample code from https://github.com/grundid/host-card-emulation-sample. I build it and put it in google Nexus 5. I send the APDU to select AID and it returns successful return code. But I can't get successful return code when I put the same APP in Sony Xperia ZL. If I send APDU FFCA0000 to the two phones, they send back the UID. Can anyone tell me why I can't get successful return code when I send Select AID to the Sony Xperia ZL?
The reason for this is that the Sony Xperia ZL uses NXPs NFC chipset (according to this list). Current1 HCE capabilities require2 a device with Broadcom's NFC chipset.
Also see this question.
Note that even for non-HCE Android devices a contactless smartcard reader will typically detect the phone as a contactless card. In those cases the reader either detects the phone's secure element or the phone's peer-to-peer mode capabilities.
1) With current I refer to Android 4.4.2 AOSP, which is the last version where I checked the source code.
2) Unless the device manufacturer (Sony in this case) added additional functionality that's not part of AOSP. But I doubt that.

Android dual sim support

Does android natively support the dual sim feature?
Or is android extended by manufacturers to do so?
In particular, I'd like to make a sim switching app just like the ones in Samsung phones.
Also can anyone tell me in which system apk are the status bar and notifications located?
I'm trying to reverse engineer the Samsung sim switching feature.
Thanks.
No, dual SIM is not supported in Android out of the box. It is a custom modification by manufacturers, and there is no public API to control it.
The status bar and notifications are location in SystemUI.apk, but I doubt you'll be able to get much out of them. Any APIs used in their are unlikely to be available to third parties.

supported NFC tags on Nexus 7

I tried to find what NFC chips does the Google Nexus 7 support and what kinda actions can be performed but somehow I find no suitable information.
I want to send an Intent via the NCF chip and start playing an audio for example, I got the Nexus 7 as a test device. Is that possible? What chips should be used?
I have a programmable Experia SmartTag and I found some info how to program it, but it will only work on experia devices I think..
Taking a look at Android Beam specification, these are the valid "tech"s that can be detected with an Android device:
http://developer.android.com/reference/android/nfc/tech/package-summary.html
I've made an example app like yours, using Mifare Ultralights, and it've worked.

how to get notification in application on hdmi connection in android

I need help regarding the hdmi port status of Android device.I want my application to be notified on connection through hdmi port of android device or tablet.
As per my searching,there is no android api available to do so but i came across motorola hdmi status api and motorola dual screen api,these seem to work only for motorola device.
Please provide me information on this, and is there any other way to acheive this.
Thanks
Correct, there is no Android API for detection of HDMI presence though some vendors are adding their own API's, like for some Motorola devices. Besides that, you can't do much more since vendor HDMI services on Android devices typically run as OS level services and are not accessible to 3rd party apps.

Categories

Resources