Well - the issue I am running into now is this: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
I start the activity with the NEW_TASK flag and it works fine. If I use the SINGLE_TOP then the exception above occurs. Is there a way to combine intent flags in Android? intent.setClass(androidContext, org.mortbay.ijetty.snapPic2.mysnapPic2ServiceImpl.class); // intent.setFlags(intent.FLAG_ACTIVITY_NEW_TASK); intent.setFlags(intent.FLAG_ACTIVITY_SINGLE_TOP); On Aug 2, 10:35 am, Nikolay Elenkov <nikolay.elen...@gmail.com> wrote: > On Tue, Aug 2, 2011 at 11:29 PM, kypriakos <demet...@ece.neu.edu> wrote: > > > Actually one more question - since I want the Activity to keep alive > > with the camera preview on, would the subsequent Intent launching > > (and calls to OnNewIntent) allow me to control the open preview. I > > think > > yes since the Activity (unless I call finish()) should still be active > > right? > > As long as you don't start another activity, your preview activity > should stay in the foreground. How well that will work with > controlling the actual preview, I don't know. Try it out. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en