Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - TabActivity and startActivityForResult

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: No registered users and 12 guests