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:
Using java Syntax Highlighting
- Intent intent = new Intent(contexto, PasoExperimento150.class);
- contexto.startActivity(intent);
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
Where "contexto" is the context that i store in the constructor:
Using java Syntax Highlighting
- public VistaPaso140(Context context, int imagen) {
- //....
- contexto = context;
- }
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
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.

