Re: [android-developers] Re: about Async Task
Yes, usually AsyncTask is only able to be run once. Restarting the same task may give you a little trouble though due to this. If you have something that needs to run over and over again I would suggest that you look into starting a service and loop the task you need to keep running in its own thread and just make it sleep for the needed amount of time. As long as you have the activity running in its own thread in a service you can loop it and make it repeat infinitely as long as you allow the service to run. On Thu, Aug 18, 2011 at 8:30 AM, Streets Of Boston wrote: > You mean you do NOT want to execute the same task twice (e.g. when the user > clicks a button two or more times in quick succession)? > > If so, then disable the button until the AsyncTask has finished. > You know when it's finished by implementing/overriding the onPostExecute > method and from there you can enable that button again. > > -- > 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 -- 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] Hey need a help
To end an app without the use of the back button you could try to go into your app drawer and select settings->applications->manage applications and from there you can chose to see what apps are running and then select them and make them force close or even uninstall. On Thu, Aug 18, 2011 at 1:41 AM, Hossam Samy wrote: > Well i did add android to my system but my mobile keys are not working > and mostly im using the screen so is there anyway to use the screen to > go Back at least or something like or just to end apps since i've the > other keys dead :S > > -- > 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 -- 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] Help!!!
Are you trying to pause a media player that you have created, or are you trying to pause any media player that may be running or started by another application? On Thu, Aug 18, 2011 at 8:27 AM, oliverorav wrote: > I'm making an application and I want to know how to pause Android's > default music player using code? I'm using HTC Sensation, if it > matters. > > 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 -- 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] App working on 2 phones and emulator but not on other phones
I have no logcat for the devices that it does not work on. Program works on the emulator so the logcat does not show anything. I do not have the app on the market yet so I am not getting any debugging data from the Optimus V or the Galaxy S. Would the logcat from the emulator tell whats going on? It never force closes in the emulator but it does give me one warning when the mp3 clip is played. The warning is about write being blocked for a few milliseconds but the mp3 clip is being played in a service in a separate thread. The biggest question I have is why would an app work fine on 2 phones and the emulator and not on 2 other phones. On Wed, Aug 17, 2011 at 2:36 AM, Appaholics wrote: > LogCat + relevant code please. > > > On Wed, Aug 17, 2011 at 8:24 AM, A Pitt wrote: > >> Hello all, >> >> I am trying to test an app I am developing but I am hitting a few >> snags. The program plays small mp3 clips when you press a button. The >> app has worked fine on a Samsung Intercept and a Motorola Triumph and >> the emulator all running 2.2. When I put the app on a Samsung Galaxy S >> or the LG Optimus V it force closes after the program plays a few >> sounds. I am wondering how the program can work on 3 out of 5 devices >> (including the emulator) but not on the other two. I am hoping there >> is something small I am overlooking because I have tried to rearrange >> everything and nothing seems to work. >> >> Thanks in advance for any suggestions >> >> -- >> 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 > > > > > -- > > Raghav Sood > CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles > required to have complete control) > http://www.raghavsood.com/ > https://market.android.com/developer?pub=Appaholics > http://www.appaholics.in/ > > -- > 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 > -- 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