Note that there are some explanatory texts on larger screens.

plurals
  1. POonActivityResult in Activity group
    text
    copied!<p>the on ActivityResult() method,written in a childActivity never invoked</p> <p>My TabGrpActivity extends ActivityGroup.</p> <pre><code>public class TabGroupActivity extends ActivityGroup </code></pre> <p>{ private ArrayListmIdList;</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); if(mIdList==null) mIdList = new ArrayList&lt;String&gt;(); obj = new ScheduleView(); startChildActivity("Activity1", new Intent(this,Activity1.class)); } public void startChildActivity(String Id,Intent intent) { Window window = getLocalActivityManager().startActivity(Id, intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); if(window!=null) { mIdList.add(Id); setContentView(window.getDecorView()); } } </code></pre> <p>in my Activity1(a child activity) call a another activity using startActivityForresult().. the code is given below.</p> <pre><code>mybund.putString("event", obj_rowitem.getevent()); Intent schedule = new Intent(getApplicationContext(), Activity2.class); schedule.putExtras(mybund); startActivityForResult(schedule, req_code); </code></pre> <p>and i alsow wrote a onActivityResult method in Activity1, the code given below</p> <pre><code>@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { year = data.getExtras().getInt("year"); month=data.getExtras().getInt("month"); date=data.getExtras().getInt("date"); String getdate=year+"-"+month+"-"+date; readschedules(getdate); rowitems=getdata(getdate); listview.setAdapter(new CustomView(getApplicationContext(), rowitems)); } </code></pre> <p>the one thing is that i call the Activity2 as a simple activity its not a child activity...</p> <p>here i have the problem is that... after calling the setResult() in the Activity2 where the control will go....</p> <p>i didnt understand the life cylcle ActivityGroup..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload