How about not using an activity?  A pending intent can send a broadcast,
start a service, etc.

On Tue, Mar 9, 2010 at 5:45 PM, klausa2 <[email protected]> wrote:

> I want to run an activity without ANY screen output. The screen should
> not blink or anything. How?
>
> Bachgroung:
> I have an Appwidget. whenever it gets clicked I want to write
> something to a DB.
>
> So, via 'setOnClickPendingIntent' I start an activity that does that
> and finishes. But, the screen goes black for a short time, while the
> activity is running. How can I avoid that? Omitting 'setContentView'
> does not help, neither does a layout without any views. A service
> instead of an activity could do that, but I cant start a service by
> setting a 'setOnClickPendingIntent'  (or can I?).
>
> Any ideas?
>
> --
> 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

Reply via email to