[android-developers] Re: Static boolean in Service "resets" after device comes back to sleep?

2011-06-24 Thread Freddman
Jun 24, 3:18 pm, Freddman wrote: > I have a Service that is launched from in a widget, when the service > start's it sets a static boolean to either true or false depending if > it's able to connect to a device in my home network. > > I have different buttons on my wid

[android-developers] Static boolean in Service "resets" after device comes back to sleep?

2011-06-24 Thread Freddman
I have a Service that is launched from in a widget, when the service start's it sets a static boolean to either true or false depending if it's able to connect to a device in my home network. I have different buttons on my widget performing different task if we are connected, I also have an alarm

[android-developers] Re: How does Android PhoneNumberUtils determin the international call prefix for a specific country?

2011-04-19 Thread Freddman
Im trying to figure out the origin of the incoming call and those don't have a '+' in the begining (i never seen anyone atleast). I'v noticed that when reciving an international call, it shows (00) (sense im in Sweden) in the begining of the number, but when i later rejected the call, my status not

[android-developers] Re: How does Android PhoneNumberUtils determin the international call prefix for a specific country?

2011-04-19 Thread Freddman
ial out, and 52 is country code ( for Mexico), and not dial out is 00 and country code is 852 ? On Apr 19, 10:34 am, "Bernard T. Higonnet" wrote: > On 04/19/11 10:29, Freddman wrote: > > > I noticed that when i recive an incoming international call, the call > > scree

[android-developers] How does Android PhoneNumberUtils determin the international call prefix for a specific country?

2011-04-19 Thread Freddman
I noticed that when i recive an incoming international call, the call screen will show the entire number e.g beginning with '00' because Swedens call prefix is '00'. When i later dismissed the call, when the notification was shown in the status bar, the '00' had been replaced with '+'. How does And

[android-developers] Phone number formating on incoming call, determing country code?

2011-03-31 Thread Freddman
Hi! I'm writing an app that reads the number for an incoming call. The idea is then it extract the country code if it's an international call. I'm not certain of how the phone numbers are formatted (if there is some kind of unified formatting for incoming numbers). Sometimes when in receive an int