OnActivityResult never called?

OK, now I got it. Thanks! – thomaus Mar 16 at 11:01 Please add your solution so that other users reading this post can find useful help.

– Kevin Gaudin Mar 16 at 16:59.

If I am reading this right, all the code referenced needs to be in "FriendPicker". In "MoodPicker" you need code like this that sets the result and ends itself: this. SetResult(SUCCESS_RETURN_CODE, i); this.finish(); Let me know if this helps...

Cause if it is so, there is something I don't get at all in the startActivityForResult process. – thomaus Mar 14 at 17:48 I tried putting the onActivityResult function in my FriendPicker class and lo log either. I don't get it... – thomaus Mar 14 at 18:18 2 onActivityResult() should be placed in the Activity where you called startActivityForResult() – Kevin Gaudin Mar 14 at 19:37.

FriendPicker activity Intent intent = new Intent(FriendPicker. This, MoodPicker. Class); startActivityForResult(intent, 2); @Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) { super.

OnActivityResult(requestCode, resultCode, intent); Log. I("in OnActivityResult", "Activity Result"); switch (requestCode) { case 2: if (resultCode == Activity. RESULT_OK) { //optional Log.

I("in OnActivityResult", "Activity Resut 2"); } break; } } MoodPicker class Intent intent = new Intent(MoodPicker. This, FriendPicker. Class); setResult(Activity.

RESULT_OK, intent); finish(); I had the same problem using onActivityResult(); cause I didn´t understand how this will be correctly applied, here you can find a good explanation how to use onActivityResult onActivityResult doesn't work?

There is bug in android API. In startActivityForResult(intent, requestCode); This funktion does work as long as requestCode = 0. However, if you change the request code to anything other than zero, the ApiDemos will fail (and OnActivityResult won't be called).

Found here: groups.google.com/group/androiddeveloper....

When using this function, the activity I expect to be launched is launched correctly but it seems like the onActivityResult function is never called. And nothing in my logfile is written (I of course, checked that my log file was working properly and double check with a text view output). Is there something I forgot to declare in the Manifest file?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions