Dear all
I added following code inside ApiDemos' Tabs3.java
------------------------------------------------------------------------------
Intent i=new Intent(Intent.ACTION_PICK,
Uri.parse("content://contacts/people"));
tabHost.addTab(tabHost.newTabSpec("tab4")
.setIndicator("contact list")
.setContent(i));
------------------------------------------------------------------------------
Could I do this? (No documents describe any restrictions)
OR, the
.setContent(new Intent(this, some_activity_inside_this_package.CLASS))
is the only intent type that TabHost supports?
BTW, the error msg I got is:
1. java.lang.SecurityException: Requesting code from
com.android.contacts (with uid 10006) to be run in process
com.example.android.apis (with uid 10052)
2. The exception path inside Android framework code:
TabHost.setCurrentTab() : 397
TabHost$IntentContentStrategy.getCotentView() : 730
LocalActivityManager.startActivity() : 335
LocalActivityManager.moveToState() : 122
ActivityThread.startActivityNow() : 1988
ActivityThread.performLaunchActivity() : 2041
ActivityThread.getPackageInfo() :1807
Could I understand as:
We cannot leverage ContentResolver's running object into our Tab page?
Thanks!
He
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---