Hi all!

I have a Activity with a view that it activates with the function 
setContentView(), i.e. the view class handles methods like 
onTouchEvent(), onKeyDown()... etc, and the necesary methods for move a 
objetct on the screen. Well, actually when the object arrives at 
determinate points on the screen (implemented with a rectangle) I want 
to start a new activity, i use:

    Intent intent = new Intent(contexto, PasoExperimento150.class);
    contexto.startActivity(intent);

Where "contexto" is the context that i store in the constructor:


    public VistaPaso140(Context context, int imagen) {
        //....

        contexto = context;
    }

Now I want pass data between activities, but the method 
"startActivityForResult" is not disponible for context class. It is 
disponible only on activity class.

How can I do this¿?

Thanks.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to