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

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 :

.setContent(new Intent(this, ActivityMessagesInbox.class)

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

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

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
Posts: 9
Joined: Tue Aug 25, 2009 9:31 am
Location: Bucharest


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 5 guests