[android-developers] Loading contact photos in Android 2.0

2009-11-10 Thread Adam K
Hi all, I'm using ContactsContract.Contacts.openContactPhotoInputStream() to load contact photos in Android 2.0 and users are reporting that some contact photos are not showing correctly. Does anyone know if this method will query all available photos for a particular aggregate contact? Thanks,

[android-developers] Re: How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-04-26 Thread Adam K
Scroll down a bit on the page I sent for an example of how to retrieve a message from the system content provider: http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup%20v0.9.93/src/net/everythingandroid/smspopup/SMSPopupUtils.java#553 Cheers, Adam K www.everythingandroid.net

[android-developers] Re: How Delete SMS from inbox programmatically OR discard it before received in inbox

2009-04-20 Thread Adam K
You can delete by message id, see here: http://code.google.com/p/android-smspopup/source/browse/tags/SMSPopup%20v0.9.93/src/net/everythingandroid/smspopup/SMSPopupUtils.java#290 Cheers, Adam K www.everythingandroid.net On Mon, Apr 20, 2009 at 11:38 AM, avrono wrote: > > Gulfram, > &g

[android-developers] Exception: WakeLock finalized while still held

2009-01-21 Thread Adam K
Hi all, I'm seeing the following error intermittently when testing my app: 01-20 23:56:52.794: DEBUG/dalvikvm(25525): GC freed 1616 objects / 94232 bytes in 87ms 01-20 23:56:52.874: ERROR/AndroidRuntime(25525): java.lang.Exception: WakeLock finalized while still held: App Name 01-20 23:56:52.874:

[android-developers] Work out which activity is on top

2008-12-23 Thread Adam K
Hi all, Is there a way for a receiver or service to know which activity is currently visible to the user so that you can change behavior? Similarly, is there a way to know if the screen is off (perhaps this should be a function of the wakelock service)? Thanks, Adam --~--~-~--~~

[android-developers] Re: Activity finishOnBackground attribute

2008-12-11 Thread Adam K
Thu, Dec 11, 2008 at 5:16 PM, Dianne Hackborn wrote: > Yes the documentation is out of date, it got renamed to finishOnTaskLaunch. > > On Thu, Dec 11, 2008 at 7:57 AM, Adam K wrote: > >> ping! is the documentation out of date? or am i not understanding how to >> use finishO

[android-developers] Re: Activity finishOnBackground attribute

2008-12-11 Thread Adam K
ping! is the documentation out of date? or am i not understanding how to use finishOnBackground? On Mon, Dec 8, 2008 at 2:48 PM, Adam K <[EMAIL PROTECTED]> wrote: > > Hi all, > > I want to do the following for a notification type activity that > should be removed/closed f

[android-developers] Activity finishOnBackground attribute

2008-12-08 Thread Adam K
Hi all, I want to do the following for a notification type activity that should be removed/closed from the system either via a button in the activity, or the user leaving with back or home: from - http://code.google.com/android/intro/appmodel.html Another approach you can take is to set the noti

[android-developers] Re: Detecting if screen is off

2008-11-24 Thread Adam K
, Nov 24, 2008 at 11:00 AM, Adam K <[EMAIL PROTECTED]>wrote: > >> Yes I realize this, which is why I have a 5 minute timeout on the wakelock >> (and on the notification). I also have this as a preference for my app so >> you can turn it on or off as suits you (some us

[android-developers] Re: Detecting if screen is off

2008-11-24 Thread Adam K
when you're not sure that the user is > looking is a sure way to drain the battery in a few hours. You should > probably avoid that. > > JBQ > > On Sun, Nov 23, 2008 at 8:52 AM, Adam K <[EMAIL PROTECTED]> > wrote: > > > > Hi all, > > > >

[android-developers] Detecting if screen is off

2008-11-23 Thread Adam K
Hi all, Is there a way to detect if the screen is off? I want to be able to show a dialog if the screen is off (using a wakelock) but if the screen is on I want to show a notification (so as not to interfere with what the user is doing). Thanks, Adam --~--~-~--~~~--

[android-developers] Re: AlarmManager not always waking device (using RTC_WAKEUP)

2008-11-18 Thread Adam K
ire time needed. > > Note that the behavior when not holding a wake lock can change > significantly between devices, depending on things like how often sync is > running. > > > On Tue, Nov 18, 2008 at 6:15 PM, Adam K <[EMAIL PROTECTED]>wrote: > >> >> Ping.

[android-developers] Re: AlarmManager not always waking device (using RTC_WAKEUP)

2008-11-18 Thread Adam K
Ping. Anyone? It seems for certain people the alarm can never wake up the phone. For others (like myself) it pretty much always wakes up the phone. Thanks, Adam On Nov 16, 8:15 pm, "Adam K" <[EMAIL PROTECTED]> wrote: > Hi all, > > I noticed that AlarmManager does no

[android-developers] AlarmManager not always waking device (using RTC_WAKEUP)

2008-11-16 Thread Adam K
Hi all, I noticed that AlarmManager does not always seem to wake the device correctly when using types RTC_WAKEUP or ELAPSED_REALTIME_WAKEUP. It seems like whatever intent was pending is triggered later after the Menu key is hit. I realize you need to hold a wakelock for any activity fired afte