1. If you really want to hide an activity, try
Activity.setVisible(false) or  windowNoDisplay attribute of the
activity's theme.
2. PendingIntent is not restricted to start an activity.
"PendingIntent.getBroadcast()", "PendingIntent.getService()" etc.

On Mar 10, 9:45 am, 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to