Hello,
i have a problem with the startActivityForResult function?
My code:
picture.setOnClickListener(new OnClickListener ()
{
@Override
public void onClick(View v)
{
if(filename==null)
{
Intent getFileName = new Intent (TRACKing.this,
savefilename.class);
startActivityForResult(getFileName,
GET_FILENAME);
Log.e("TEST","ing");
}
Intent getPicture = new Intent (TRACKing.this,
Picture.class);
startActivityForResult(getPicture, GET_PICTURE);
}
});
But the second intent is only starting and if i finish the second
intent (getPicture), the first intent is called.
Why??
The logcat shows:
I/ActivityManager( 580): Starting activity: Intent
{ cmp=de.stefandahmen.android/.savefilename }
E/TEST ( 901): ing
I/ActivityManager( 580): Starting activity: Intent
{ cmp=de.stefandahmen.android/.Picture }
So why the savefilename-activity doesn't start first???
Thanks,
Stefan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---