[android-developers] security exception using intent in tab.-ava.lang.SecurityException: Requesting code from com.android.phone
when i use intent to call using phone it does it. from my activity
Intent intentphone = new Intent();
intentphone.setAction(Intent.ACTION_CALL);
String uriString = "tel:" + "555".trim() ;
intentphone.setData(Uri.parse(uriString));
startActivity(intentphone);
no security exception.everything works.
permission are set in manifest,
when i try to do it using tab ,same activity.
TabSpec tabSpecPhone = tabHost.newTabSpec("Phone")
.setIndicator("Phone", ressources.getDrawable(com.example.com.phone.R.drawable.icon))
.setContent(intentphone);
I get this message,
06-15 20:41:26.749: E/AndroidRuntime(12880): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.com.phone/com.example.com.phone.MainActivity}: java.lang.SecurityException: Requesting code from com.android.phone (with uid 1001) to be run in process com.example.com.phone (with uid 10229)
any suggestions?
regards
jossie
-- --
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home