I'm getting a null Intent returned from onActivityResult. A summary of
the code is listed below. Any ideas what I might be doing wrong?

Code in calling Activity:

                Intent myIntent = new Intent( Intent.ACTION_VIEW );
                myIntent.setClass(this,TheCalledActivity.class);
                startActivityForResult( myIntent , SORT_PREFERENCES_CHANGED );

Code in called Activity:
                commitButton.setOnClickListener( new View.OnClickListener() {
                        public void onClick(View v) {
                                Intent myIntent = new 
Intent(Intent.ACTION_VIEW);
                                myIntent.setClass( v.getContext() , 
TheCallingActivity.class );
                                setResult(Activity.RESULT_OK);
                                
createPendingResult(0,myIntent,PendingIntent.FLAG_ONE_SHOT);
                                finish();
            }
                });


Code in calling Activity:

        @Override
        protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
                // data is coming back as null.
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to