SubActivity: deliver parameter

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

SubActivity: deliver parameter

Postby martines » Mon Dec 07, 2009 10:21 am

Hey,
I wrote a small program and wants to deliver an ID as parameter to a calles subActivity:
Code: Select all
Intent intent_edit = new Intent(this, edit_term.class);
this.startActivityForResult(intent_edit, REQUEST_CODE_EDIT);


is it possible?
thanks for helping!!
Martin
martines
Freshman
Freshman
 
Posts: 3
Joined: Sun Dec 06, 2009 8:36 pm

Top

Postby martines » Mon Dec 07, 2009 12:10 pm

ok i solve it:
Code: Select all
//caller
yourIntent.putExtras("NAME", value);
//called
this.getIntent().getExtras().get( "NAME" );
martines
Freshman
Freshman
 
Posts: 3
Joined: Sun Dec 06, 2009 8:36 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 16 guests