No you need to be associated with an Activity UI in some way, so you can have a SurfaceView attached to it to.
On Tue, Jul 6, 2010 at 1:53 PM, James Aguilar <[email protected]>wrote: > I have a function that needs a Surface object to work. I'd like to be > able to call that function from a background Service without starting > a foreground Activity. Every Surface source in the API that I can see, > though, requires a View that's laid out before the Surface becomes > available. Are there other ways to create a Surface that I am missing, > and can you point me to them? > > -- James > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

