Hi,

I am calling MakeDefaultPhones() in my OnCreate in my application
which will enable and disable data calls.when i start the appliaction
I get the following error on emulator.

02-23 10:56:54.349: ERROR/ServiceManager(18): add_service
('simphonebook',0x2a) uid=10033 - PERMISSION DENIED
02-23 10:56:54.349: DEBUG/AndroidRuntime(258): Shutting down VM
02-23 10:56:54.361: WARN/dalvikvm(258): threadid=3: thread exiting
with uncaught exception (group=0x4000fe68)
02-23 10:56:54.361: ERROR/AndroidRuntime(258): Uncaught handler:
thread main exiting due to uncaught exception
02-23 10:56:54.381: ERROR/AndroidRuntime(258):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.android.dataConnectivity/
com.android.dataConnectivity.DataConnectivity}:
java.lang.SecurityException
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2156)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2172)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1586)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.os.Handler.dispatchMessage(Handler.java:99)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.os.Looper.loop(Looper.java:123)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread.main(ActivityThread.java:3790)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
java.lang.reflect.Method.invoke(Method.java:521)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:745)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:503)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
dalvik.system.NativeStart.main(Native Method)
02-23 10:56:54.381: ERROR/AndroidRuntime(258): Caused by:
java.lang.SecurityException
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.os.BinderProxy.transact(Native Method)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:
146)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.os.ServiceManager.addService(ServiceManager.java:72)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.gsm.SimPhoneBookInterfaceManager.publish
(SimPhoneBookInterfaceManager.java:106)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.gsm.SimPhoneBookInterfaceManager.<init>
(SimPhoneBookInterfaceManager.java:102)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.gsm.GSMPhone.<init>(GSMPhone.java:181)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.gsm.GSMPhone.<init>(GSMPhone.java:158)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.PhoneFactory.useNewRIL
(PhoneFactory.java:70)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.internal.telephony.PhoneFactory.makeDefaultPhones
(PhoneFactory.java:123)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
com.android.dataConnectivity.DataConnectivity.onCreate
(DataConnectivity.java:67)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2119)
02-23 10:56:54.381: ERROR/AndroidRuntime(258):     ... 11 more
02-23 10:56:54.410: INFO/Process(57): Sending signal. PID: 258 SIG: 3

I have added READ_CONTACTS and WRITE_CONTACTS permission to the
manifest.xml.Can anyone tell what permissions are further  required
for adding simphonebook.Or what could be the reason for getting the
error.

Thanks,
Shweta

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to