[android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Michael J
For example, I have an activity that uses a utility class. I would like to be able to start an activity from the utility class and have the activity result sent back to the utility class. The only way I could think of starting the activity was to pass the original activity to the utility class,

Re: [android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 2:02 AM, Michael J txaggiemich...@gmail.com wrote: For example, I have an activity that uses a utility class. I would like to be able to start an activity from the utility class and have the activity result sent back to the utility class. Why are you doing this? What

Re: [android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread Timo Prill
just pass your context over to the utility class via getter/setter or in constructor... Am 04.05.2010 17:40, schrieb TreKing: On Tue, May 4, 2010 at 2:02 AM, Michael J txaggiemich...@gmail.com mailto:txaggiemich...@gmail.com wrote: For example, I have an activity that uses a utility

Re: [android-developers] Is it possible to start an Activity from a non-context class?

2010-05-04 Thread TreKing
On Tue, May 4, 2010 at 10:42 AM, Timo Prill timo.pr...@googlemail.comwrote: just pass your context over to the utility class via getter/setter or in constructor... And how is that different than what the OP has already tried (passing the Activity itself)?