TabActivity and startActivityForResult

Put your problem here if it does not fit any of the other categories.

TabActivity and startActivityForResult

Postby mmdumi » Wed Aug 26, 2009 3:47 pm

Hello,
I have a simple activity were i make the following call:

Intent intent = new Intent(ActivityDash.this, ActivityMessages.class);
startActivityForResult(intent, ACTIVITY_GET_CODE);

In the ActivityMessages.class witch is: ActivityMessages extends TabActivity i call :

tabHost.addTab(tabHost.newTabSpec("tab1")
.setIndicator("Inbox")
.setContent(new Intent(this, ActivityMessagesInbox.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));

ActivityMessagesInbox extends activity. When i click a button in ActivityMessages i make:

setResult(RESULT_OK, (new Intent()).setAction("something"));
finish();

I want to pass the Result with the value "something" to the first activity: ActivityDash.
But it will not work because TabActivity is in the way.

I really do not know how to pass the result between this activities. Please help
mmdumi
Freshman
Freshman
 
Posts: 9
Joined: Tue Aug 25, 2009 9:31 am
Location: Bucharest

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 18 guests