Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
New Contributor
angelzerodie
Posts: 9
Registered: ‎03-11-2013
My Device: Blackberry Z10
Accepted Solution

Android Runtime Blackberry 10 TelephonyManager doesn't work.

Hi,

 

We are working on BB10 project converted from Android.

There are some function in TelephonyManager doesn't work after convert to Blackberry(getNetworkOperator, getNetworkOperatorName, getSimOperator, getSimOperatorName, getLine1Number..)

 

Could you please tell me what I'm missing here?

 

Below are some permission we have in AndroidManifest.xml

	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
	<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
	<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
	<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
	<uses-permission android:name="android.permission.SEND_SMS"/>
	<uses-permission android:name="android.permission.RECEIVE_SMS"/>

 

Thanks.

 

Please use plain text.
Developer
ndsmyter
Posts: 648
Registered: ‎09-26-2012
My Device: Limited Edition Z10, Playbook 16GB/32GB, Dev Alpha A/B/C

Re: Android Runtime Blackberry 10 TelephonyManager doesn't work.

Some SIM operations are just not supported yet. If I am not mistaking, it is not possible to use read operations of the contacts, like you want to use.


A like is always appreciated,
but a nomination for BB Elite even more :-)
You can also contact me on Twitter: @ndsmyter
Please use plain text.
Retired
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Android Runtime Blackberry 10 TelephonyManager doesn't work.

Fully list of unsupported Telephony APIs can be found here: https://developer.blackberry.com/android/apisupport/unsupportedapi_blackberry10_hardware_features.ht...

 

Cheers,

Matt

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.