Sorry, no plan to support it any time soon.

On Sat, Jul 4, 2009 at 1:43 PM, Marcus Gustafsson
<[email protected]>wrote:

>
> Will this be supported soon? Is there a another way to achieve the
> same result?
>
> On Jul 1, 7:14 am, Dianne Hackborn <[email protected]> wrote:
> > Sorry, currently a TabHost can only run activities that are part of your
> own
> > .apk (actually only those with the same uid, but in most cases that is
> the
> > same thing).
> >
> >
> >
> > On Tue, Jun 30, 2009 at 8:42 PM, Wang He <[email protected]> wrote:
> >
> > > 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
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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