[android-developers] Re: starting service from launch icon

2011-07-26 Thread kamiseq
that works thanks!

-- 
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


[android-developers] Re: starting service from launch icon

2011-07-24 Thread kamiseq
I cant find any other solution then launching activity that will
finish immediately after starting service but this shows a blank,
white screen for a second so this is rather poor workaround. 

this is what I thought but it is showing white screen for a moment so
I dont know how to remove that

On 24 Lip, 20:57, rich friedel rich.frie...@gmail.com wrote:
 Off the top of my head, you could launch an invisible Activity then in 
 onCreate() start the Service then call finish() on the Activity

-- 
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


Re: [android-developers] Re: starting service from launch icon

2011-07-24 Thread Mark Murphy
On Sun, Jul 24, 2011 at 5:09 PM, kamiseq kami...@gmail.com wrote:
 I cant find any other solution then launching activity that will
 finish immediately after starting service but this shows a blank,
 white screen for a second so this is rather poor workaround. 

 this is what I thought but it is showing white screen for a moment so
 I dont know how to remove that

http://stackoverflow.com/questions/6796118/how-to-handle-a-silent-send-intent-with-a-headless-activity

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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


[android-developers] Re: starting service from launch icon

2011-07-24 Thread rich friedel
Did you use the activity theme android:theme=@android:style/ Theme.NoDisplay

-- 
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


[android-developers] Re: starting service from launch icon

2011-07-24 Thread Zsolt Vasvari
AFAIK, if finish() is called from onCreate(), the view is never
shown.  I've read this somewhere in the docs and I use this technique
to set a user configurable place to start my app.  It calls an
activity and if it's not the starting screen, it navigates away from
it and finish()-es it right away.  The screen is never shown and I do
NOT have NoDisplay set.

On Jul 25, 5:22 am, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Jul 24, 2011 at 5:09 PM, kamiseq kami...@gmail.com wrote:
  I cant find any other solution then launching activity that will
  finish immediately after starting service but this shows a blank,
  white screen for a second so this is rather poor workaround. 

  this is what I thought but it is showing white screen for a moment so
  I dont know how to remove that

 http://stackoverflow.com/questions/6796118/how-to-handle-a-silent-sen...

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 Android Training in NYC:http://marakana.com/training/android/

-- 
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