Re: [android-developers] Re: Handler.postDelayed not working when screen goes off

2010-12-03 Thread Paul Townsend
:31 am, Kostya Vasilyev wrote: > > Paul, > > > > You don't need a Service or a Handler to handle events from Alarm > > Manager - just a Broadcast Receiver. It's even better, in that Android > > guarantees to hold a wake lock for the duration of your rec

Re: [android-developers] Re: Handler.postDelayed not working when screen goes off

2010-11-28 Thread Paul Townsend
:) this programing lark is fun isn't it, I will try the alarm thing next :). On 28 Nov 2010 17:32, "Kostya Vasilyev" wrote: -- 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@googlegroup

Re: [android-developers] Re: Handler.postDelayed not working when screen goes off

2010-11-28 Thread Paul Townsend
d to make sure you wake up even if the CPU is asleep, use the > AlarmManager. > > On Sun, Nov 21, 2010 at 8:21 AM, Paul Townsend wrote: > >> Just tried that bvut dose the same thing, although I have used >> countdownTimer in a custom TextView that I wrote so I could have a

Re: [android-developers] Re: Handler.postDelayed not working when screen goes off

2010-11-21 Thread Paul Townsend
> >} > > >. > counter = new MyCount(5000, 1000); >counter.start(); >setContentView(tv); >... > > On Nov 20, 3:58 pm, Paul Townsend wrote: > > I made a simple countdown timer and it works as expected when plugged > > in via us

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
Ok thanks I will look into using that, I don't want to drain the battery now :) thanks for your help. On 20 November 2010 21:11, Mark Murphy wrote: > On Sat, Nov 20, 2010 at 4:09 PM, Paul Townsend wrote: > > I started by using timer() but that done the same thing, basica

Re: [android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
PM, Paul Townsend wrote: > > I made a simple countdown timer and it works as expected when plugged > > in via usb for debugging but when I take it off debugging and the > > screen goes off either time out or power button the handler fails to > > fire at the end time. I have c

[android-developers] Handler.postDelayed not working when screen goes off

2010-11-20 Thread Paul Townsend
I made a simple countdown timer and it works as expected when plugged in via usb for debugging but when I take it off debugging and the screen goes off either time out or power button the handler fails to fire at the end time. I have created a custom timer class that gets created from the main acti

Re: [android-developers] How can I measure FPS?

2010-08-03 Thread Paul Townsend
I got a book off amazon called killer game programming in java that shows how to do that. On 3 August 2010 14:27, Connick wrote: > Is there a way to measure frames per second? Would be helpful in evaluating > perf tweaks. > > Thx! > Stace > > -- > You received this message because you are subscr

Re: [android-developers] moveTaskToBack returning false.

2010-04-17 Thread Paul Townsend
Hi I found this maybe this will help http://osdir.com/ml/Android-Developers/2010-03/msg01903.html On 16 Apr 2010 22:02, "~ TreKing" wrote: On Fri, Apr 16, 2010 at 3:53 PM, Prajakta Shitole wrote: > > no i dint because the documentation says that for any activity other than main activity u nee

Re: [android-developers] media button B/R accuring twice and service not stopping

2009-11-17 Thread Paul Townsend
Bump. On Tuesday, November 17, 2009, Paul Townsend wrote: > Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to > broadcast twice when I press the button once. Now because the emulator > doesn't have the headset button and I have to use USB debugging to use >

[android-developers] media button B/R accuring twice and service not stopping

2009-11-17 Thread Paul Townsend
Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to broadcast twice when I press the button once. Now because the emulator doesn't have the headset button and I have to use USB debugging to use it on my phone I cant use the debugger and it is making it a pain to find out what's ha

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Cheers thx m8 got it working :) 2009/11/15 Paul Townsend > Ahh thats not the way the samples do it, that kinda looks more right too, I > will try that. > > 2009/11/15 Mark Murphy > > Paul Townsend wrote: >> > Hi I am having trouble with broadcast receivers, I want t

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Ahh thats not the way the samples do it, that kinda looks more right too, I will try that. 2009/11/15 Mark Murphy > Paul Townsend wrote: > > Hi I am having trouble with broadcast receivers, I want to use the > > media_button broadcast so I can call a method on my service, I

Re: [android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Edit: Just thought I could use an Intent to the service and it will go through the onstart() etc... so I can do what I need but what if I needed to do the same in the activity as that dosen't have the same thing. 2009/11/15 Paul Townsend > Hi I am having trouble with broadcast receivers

[android-developers] Broadcast receiver

2009-11-15 Thread Paul Townsend
Hi I am having trouble with broadcast receivers, I want to use the media_button broadcast so I can call a method on my service, I have tried putting the receiver inside the service class so I can call the method but that just says that the receiver is enclosed, but not static. If I create a new rec

Re: [android-developers] Barcode

2009-11-14 Thread Paul Townsend
Ok thanks for your help, I would only need the code 39 one its for a Parkrun barcode and they use just a standard barcode but in the interest of space prob the web service is the way to go on android. 2009/11/14 Mark Murphy > Paul Townsend wrote: > > Humm hoping there were barcode

Re: [android-developers] Barcode

2009-11-14 Thread Paul Townsend
Humm hoping there were barcode fonts or something, I wanted to create a barcode from a number that you store into the app. I could do the web service thing I just didn't want it to be an image although the generated one will be of high quality so will scan fine. 2009/11/14 Mark Murphy &

[android-developers] Barcode

2009-11-14 Thread Paul Townsend
Hi I just wondering if I wanted to display a barcode on my phone so that a scanner could scan it, ie like the reward cards apps, how would I go about creating the barcode in a view. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to

[android-developers] Local Service - How to actually invoke methods

2009-11-09 Thread Paul Townsend
Hi I have looked at the Api's demo for local service but it doesn't show how to invoke methods on the service or activity. I got a service that will start and stop a timer but it also laps so I want to send the lap times back to the activity so it can be displayed in a custom view graph. This is ju