Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
I have a class Globals: class Globals{ public static WakeLock myWakeLock = null; public static WifiLock myWifiLock = null; } In my ConnectService, onCreate() method, I acquire the wakelock using: wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, My Lock);

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-07 Thread Archana r
Ya I m able to see in Logcat. On Thu, Feb 7, 2013 at 3:48 PM, skink psk...@gmail.com wrote: Archana r wrote: I have a class Globals: ¿and do you see in the logcat: Wake lock is acquired successfull ? pskink -- -- You received this message because you are subscribed

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-06 Thread Archana r
Hi, I have integrated the code(ScriptActivity and ScriptService from SL4A into my project to execute PythonScripts in Android).. So I have ExecuteScript- ScriptActivity-ScriptService ... On Wed, Feb 6, 2013 at 1:24 PM, skink psk...@gmail.com wrote: a wrote: Hi, An update to my question

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-06 Thread Archana r
Yes it is :) ConnectService runs HTTP server in the phone. Initially, when Start button is pressed, the script is HTTP Posted to the client. To execute the script, this service calls ExecuteScript. On Wed, Feb 6, 2013 at 2:39 PM, skink psk...@gmail.com wrote: a wrote: Hi I have acquired

Re: [android-developers] Re: Wakelock when using startActivityForResult()

2013-02-06 Thread Archana r
I acquire WakeLock in onCreate() of ConnectService and release it only in onDestroy() of ConnectService. On Wed, Feb 6, 2013 at 3:05 PM, skink psk...@gmail.com wrote: Archana r wrote: Yes it is :) ConnectService runs HTTP server in the phone. Initially, when Start button is pressed

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread Archana r
My requirement is to have a service running and do a HTTP Post of a file to a device. In the handler for POST, I call an intent(using III party library) which executes scripts(and obtains results) and sends Broadcast message to my service. In the broadcast receiver, I update the new contents and

Re: [android-developers] Re: Http Response inside a service in Android

2013-01-03 Thread Archana r
I did not get your question. The script stores the result in a file in internal memory. Is that what you are asking? On Thu, Jan 3, 2013 at 2:49 PM, skink psk...@gmail.com wrote: a wrote: The extras that I pass to intent A are the script to be executed and its type, both being String.

Re: [android-developers] Re: Identifying HTTP Get requests in Android

2012-12-27 Thread Archana r
The link contains code where a separate thread is started for each request. Can I use it? Can you please explain your comment? Thanks! On Thu, Dec 27, 2012 at 1:33 PM, skink psk...@gmail.com wrote: Archana wrote: Hi, Does the server in the