Re: [android-developers] Re: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
I dont think I can show a dialog from a service...remember, I dont have an
activity. My service starts when there is an incomming call...i then need to
display a message without stopping the build in caller activity.

On Mon, Jan 11, 2010 at 5:42 PM, Kumar Bibek coomar@gmail.com wrote:

 Use Dialogs...

 Kumar Bibek
 http://tech-droid.blogspot.com

 On Jan 11, 9:35 pm, Klaus Kartou kar...@gmail.com wrote:
  Hi!
 
  I have a service that runs in the background. I´d like to be able to show
 a
  message to the user when there is an incomming call. Atm i´m using a
 Toast,
  because as far as I know it is the only way to display something
 regardless
  of the current activity the user is running. But I have seen apps that
 can
  show entire views on top of others activities. How can this be done?. Any
  info would be great :)
 
  Cheers!

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
I would like to be able to do what they do in this app:
http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx

http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspxIn
the screenshot, they draw a view in the buttom of the built-in caller
activity.

My first idea was to start a new activity, with a transparent theme so that
the built-in caller activity is still visible.
However, as for as i know only one activity can take input from the user. I
dont wont to stop the user from being able to take the call...

Hope i made myself a little much clear this time? :)



On Mon, Jan 11, 2010 at 5:56 PM, Mark Murphy mmur...@commonsware.comwrote:

 Klaus Kartou wrote:
  I dont think I can show a dialog from a service...remember, I dont have
  an activity. My service starts when there is an incomming call...i then
  need to display a message without stopping the build in caller activity.

 I don't know what stopping the build in caller activity means.

 You can call startActivity() from a Service.

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

 Android App Developer Books: http://commonsware.com/books

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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: Pop-up without using Toast.

2010-01-11 Thread Mark Murphy
Klaus Kartou wrote:
 I would like to be able to do what they do in this app:
 http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx
 
 http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspxIn
 the screenshot, they draw a view in the buttom of the built-in caller
 activity.

The author of the app you cited assumes all Android devices have the
same in-call screen, and that will not be the case. Hence, the author
has no way of knowing whether the stuff that is being displayed over the
in-call screen will actually be over the top of something of value to
the user, short of maintaining their own database of devices and where
safe places to draw are.

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

Android 2.0 Programming Books: http://commonsware.com/books
-- 
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: Pop-up without using Toast.

2010-01-11 Thread Klaus Kartou
Heh yeah, that is true :) But how do you display something over the
in-call screen?

On Mon, Jan 11, 2010 at 6:36 PM, Mark Murphy mmur...@commonsware.comwrote:

 Klaus Kartou wrote:
  I would like to be able to do what they do in this app:
 
 http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx
 
  
 http://www.threadabort.com/archive/2009/12/14/city-caller-id-my-first-android-app.aspx
 In
  the screenshot, they draw a view in the buttom of the built-in caller
  activity.

 The author of the app you cited assumes all Android devices have the
 same in-call screen, and that will not be the case. Hence, the author
 has no way of knowing whether the stuff that is being displayed over the
 in-call screen will actually be over the top of something of value to
 the user, short of maintaining their own database of devices and where
 safe places to draw are.

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

 Android 2.0 Programming Books: http://commonsware.com/books

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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