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

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 - Back button not finishing subactivity

Back button not finishing subactivity

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

Back button not finishing subactivity

Postby bluefloyd8 » Thu Apr 03, 2008 5:27 am

Hey all! I have an activity which calls a subactivity like so:

i = new Intent(this, mapdisplay.class);
startSubActivity(i,1);

When i am inside the mapdisplay activity, hitting the back button does nothing. It should bring me back to the calling activity right?

I overload the following in mapdisplay.java:
@Override
protected void onActivityResult(int requestCode, int resultCode, String data, Bundle extras) {


any ideas?
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Postby bluefloyd8 » Mon Apr 07, 2008 5:51 pm

Bump.

Anyone have any ideas?
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Postby zeeshan » Tue Apr 08, 2008 7:12 am

use this ....

private void finishActivity() {
this.setResult(InitializeConfiguration.SUBACTIVITY_RESULTCODE_CHAINCLOSE);
finish();
}


protected void onActivityResult(int requestCode, int resultCode,
String data, Bundle extras) {
switch(resultCode){
case InitializeConfiguration.SUBACTIVITY_RESULTCODE_CHAINCLOSE:
this.setResult(InitializeConfiguration.SUBACTIVITY_RESULTCODE_CHAINCLOSE);
this.finish();
break;
}
/* Finally call the super()-method. */
super.onActivityResult(requestCode, resultCode, data, extras);
}
zeeshan
Experienced Developer
Experienced Developer
 
Posts: 68
Joined: Mon Mar 03, 2008 6:10 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests