Re: [android-developers] Re: Http Response inside a service in Android
a wrote: Please refer to the link: http://stackoverflow.com/questions/14135121/http-response-inside-a-service-in-android Now, I need to call an Intent - I already told you that nobody will help you if you insist in using such misty, fuzzy non technical language pskink -- 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] Re: Http Response inside a service in Android
Please refer to the link: http://stackoverflow.com/questions/14135121/http-response-inside-a-service-in-android In short, I want my service to pause for sometime inside the POST handler, till my Intent (with handler) completes the execution. On Friday, January 4, 2013 1:40:01 AM UTC+2, Lew wrote: a wrote: I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. You got a lot of requests for how your code handles things. You did not show your code. No wonder you can't get help. Follow the advice at http://sscce.org/ -- Lew -- 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
[android-developers] Re: Http Response inside a service in Android
a wrote: Hi I have implemented HTTP server in Android device. When my app loads, a service gets started that handles the method POST. In my handler for HTTP Post, I m calling 2 intents what two intents? what are you trying to do? pskink -- 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
[android-developers] Re: Http Response inside a service in Android
To execute scripts using Third party library which returns a result. Basically I want to send a response for HTTP Post in the Broadcast Receiver. Please let me know how this can be done? On Thursday, January 3, 2013 12:02:59 PM UTC+2, skink wrote: a wrote: Hi I have implemented HTTP server in Android device. When my app loads, a service gets started that handles the method POST. In my handler for HTTP Post, I m calling 2 intents what two intents? what are you trying to do? pskink -- 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
[android-developers] Re: Http Response inside a service in Android
a wrote: To execute scripts using Third party library which returns a result. Basically I want to send a response for HTTP Post in the Broadcast Receiver. Please let me know how this can be done? then call third party library directly. or is it kind of Service? if so pass some unique id in your intent to identify your request pskink -- 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] Re: Http Response inside a service in Android
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 post it back. I want to define the response for POST in Broadcast receiver, so that old copy of the file gets deleted in the device. Let me know if you need details. Thanks! On Thu, Jan 3, 2013 at 12:30 PM, skink psk...@gmail.com wrote: a wrote: To execute scripts using Third party library which returns a result. Basically I want to send a response for HTTP Post in the Broadcast Receiver. Please let me know how this can be done? then call third party library directly. or is it kind of Service? if so pass some unique id in your intent to identify your request pskink -- 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 -- Regards, Archana -- 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] Re: Http Response inside a service in Android
Archana r wrote: 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, what are the intent extras in your receiver? pskink -- 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] Re: Http Response inside a service in Android
As of now, I dont have any extras. I have defined a receiver for BroadcastReceiver. On Thursday, January 3, 2013 1:25:23 PM UTC+2, skink wrote: Archana r wrote: 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, what are the intent extras in your receiver? pskink -- 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] Re: Http Response inside a service in Android
a wrote: As of now, I dont have any extras. I have defined a receiver for BroadcastReceiver. no extras??? so what calls sendBroadcast() then??? pskink -- 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] Re: Http Response inside a service in Android
From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the onActivityResult(int requestCode, int resultCode, Intent data), I send the broadcast. I have defined the broadcast receiver in my service S. This design is done based on the requirements. On Thursday, January 3, 2013 2:24:11 PM UTC+2, skink wrote: a wrote: As of now, I dont have any extras. I have defined a receiver for BroadcastReceiver. no extras??? so what calls sendBroadcast() then??? pskink -- 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] Re: Http Response inside a service in Android
a wrote: From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the onActivityResult(int requestCode, int resultCode, Intent data), what are data's extras? pskink -- 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] Re: Http Response inside a service in Android
The extras that I pass to intent A are the script to be executed and its type, both being String. On Thursday, January 3, 2013 2:35:51 PM UTC+2, skink wrote: a wrote: From my service S, I call an intent A. This inturn calls another intent B using startActivityForResult(). In the onActivityResult(int requestCode, int resultCode, Intent data), what are data's extras? pskink -- 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] Re: Http Response inside a service in Android
a wrote: The extras that I pass to intent A are the script to be executed and its type, both being String. I was asking about out extras not in extras pskink -- 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] Re: Http Response inside a service in Android
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. I was asking about out extras not in extras pskink -- 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 -- Regards, Archana -- 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] Re: Http Response inside a service in Android
Archana r wrote: I did not get your question. The script stores the result in a file in internal memory. Is that what you are asking? seems that your architecture is too complicated what is called using intents A and B? pskink -- 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] Re: Http Response inside a service in Android
SL4A (Executing Python script in Android). The result of simple calculation is stored in the phone's memory. On Thursday, January 3, 2013 3:03:19 PM UTC+2, skink wrote: Archana r wrote: I did not get your question. The script stores the result in a file in internal memory. Is that what you are asking? seems that your architecture is too complicated what is called using intents A and B? pskink -- 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] Re: Http Response inside a service in Android
a wrote: SL4A (Executing Python script in Android). The result of simple calculation is stored in the phone's memory. again: what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink -- 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] Re: Http Response inside a service in Android
Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the Broadcast receiver's definition. My current problem is that, my HttpHandler class(that handles GET/POST/DELETE) exits before the script gets executed by the SL4A service... Hope I made it clear.. On Thursday, January 3, 2013 3:30:46 PM UTC+2, skink wrote: a wrote: SL4A (Executing Python script in Android). The result of simple calculation is stored in the phone's memory. again: what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink -- 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] Re: Http Response inside a service in Android
a wrote: Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the Broadcast receiver's definition. My current problem is that, my HttpHandler class(that handles GET/POST/DELETE) exits before the script gets executed by the SL4A service... Hope I made it clear.. not at all. what is Intent A calls another Intent B??? I don't understand it at all what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink -- 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] Re: Http Response inside a service in Android
I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST handler defined in S, I call startActivity(A). In intent A, I have another intent which is called by startActivityForResult(B). Intent B calls SL4A to execute scripts(I have made minor modifications and integrated the code to my app) and stores result in internal memory. After SL4A's execution, in A's onActivityResult() method I call the sendBroadcast(ScriptCompleted). The receiver of this is defined in service S. This retrieves the result value from internal memory and creates a new script file. I need to respond for the POST method inside this receiver(to delete the old script file). On Thursday, January 3, 2013 4:13:59 PM UTC+2, skink wrote: a wrote: Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the Broadcast receiver's definition. My current problem is that, my HttpHandler class(that handles GET/POST/DELETE) exits before the script gets executed by the SL4A service... Hope I made it clear.. not at all. what is Intent A calls another Intent B??? I don't understand it at all what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink -- 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] Re: Http Response inside a service in Android
a wrote: I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST handler defined in S, I call startActivity(A). In intent A, I have another intent which is called by startActivityForResult(B). Intent B calls SL4A to execute scripts(I have made minor modifications and integrated the code to my app) and stores result in internal memory. After SL4A's execution, in A's onActivityResult() method I call the sendBroadcast(ScriptCompleted). The receiver of this is defined in service S. This retrieves the result value from internal memory and creates a new script file. I need to respond for the POST method inside this receiver(to delete the old script file). On Thursday, January 3, 2013 4:13:59 PM UTC+2, skink wrote: a wrote: Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the Broadcast receiver's definition. My current problem is that, my HttpHandler class(that handles GET/POST/DELETE) exits before the script gets executed by the SL4A service... Hope I made it clear.. not at all. what is Intent A calls another Intent B??? I don't understand it at all what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink how Intent B calls SL4A? could you use more technical words? intent can't call anything, an activity can startActivity, startService, sendBroadcast but intent cannot call anything pskink -- 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] Re: Http Response inside a service in Android
I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. On Thursday, January 3, 2013 4:41:09 PM UTC+2, skink wrote: a wrote: I have a service S. I click button POST in GUI which posts a script file. In my HTTP POST handler defined in S, I call startActivity(A). In intent A, I have another intent which is called by startActivityForResult(B). Intent B calls SL4A to execute scripts(I have made minor modifications and integrated the code to my app) and stores result in internal memory. After SL4A's execution, in A's onActivityResult() method I call the sendBroadcast(ScriptCompleted). The receiver of this is defined in service S. This retrieves the result value from internal memory and creates a new script file. I need to respond for the POST method inside this receiver(to delete the old script file). On Thursday, January 3, 2013 4:13:59 PM UTC+2, skink wrote: a wrote: Intent A calls another intent B which calls the service of SL4A to execute the script. I have made modifications to SL4A code and integrated to my application. After script executes, it communicates with my service using Broadcast message. My response to the Http Post should be present in the Broadcast receiver's definition. My current problem is that, my HttpHandler class(that handles GET/POST/DELETE) exits before the script gets executed by the SL4A service... Hope I made it clear.. not at all. what is Intent A calls another Intent B??? I don't understand it at all what is called using intent A? a service, a broadcast, an activity? is it yours or belongs to sl4a? the same questions apply to intent B pskink how Intent B calls SL4A? could you use more technical words? intent can't call anything, an activity can startActivity, startService, sendBroadcast but intent cannot call anything pskink -- 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] Re: Http Response inside a service in Android
a wrote: I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. ok I give up, you need someone else who will help you pskink -- 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] Re: Http Response inside a service in Android
a wrote: I downloaded the source code of SL4A and integrated during the call of startActivityForResult(B), which executes the script. You got a lot of requests for how your code handles things. You did not show your code. No wonder you can't get help. Follow the advice at http://sscce.org/ -- Lew -- 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