[android-developers] Force close of service using a password

2012-05-22 Thread pedramz
Hi, I have been looking for a way of allowing Force close of a service only by an authorized user. For example the user needs to enter a password or PIN code after pressing the Force close button for the successful closing of service. Is this possible? Thanks, Pedram -- You received this

[android-developers] Detecting screen long press from background

2011-10-18 Thread pedramz
Is it possible to detect a user's long screen press from a service? I need a quick and easy way for the user to trigger an action in my service but I have not managed to find a good solution for that yet. Thanks for any suggestions! -- You received this message because you are subscribed to

[android-developers] Re: Detecting screen long press from background

2011-10-18 Thread pedramz
); } -- Regards Vikas KM On Tue, Oct 18, 2011 at 2:37 PM, pedramz pedra...@gmail.com wrote: Is it possible to detect a user's long screen press from a service? I need a quick and easy way for the user to trigger an action in my service but I have not managed to find a good solution

[android-developers] Re: Detecting screen long press from background

2011-10-18 Thread pedramz
:04 pm, Mark Murphy mmur...@commonsware.com wrote: On Tue, Oct 18, 2011 at 5:07 AM, pedramz pedra...@gmail.com wrote: Is it possible to detect a user's long screen press from a service? No, sorry. I need a quick and easy way for the user to trigger an action in my service but I have

[android-developers] Call state in more detail

2011-08-30 Thread pedramz
Is there any way to detect more detailed call state information? My main need is to detect Busy line and Answered call. -- 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

[android-developers] Re: AsyncTask question

2011-08-24 Thread pedramz
Thanks everyone for the information and suggestion. Regarding IntentService, what would be the advantage of using Intentservice as opposed to AsyncTask? On Aug 17, 6:10 pm, TreKing treking...@gmail.com wrote: On Wed, Aug 17, 2011 at 5:00 AM, pedramz pedra...@gmail.com wrote: What should I

[android-developers] AsyncTask question

2011-08-17 Thread pedramz
I am using AsyncTask from a Service to Post a message to a server. This is working fine except that we the task is done, my AsyncTask thread is still in Running state. What should I do here? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: AsyncTask question

2011-08-17 Thread pedramz
I think I found my answer. If I understand correctly AsyncTask should take care of itself and the thread would be killed after a while. Please correct me if I'm wrong. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Detecting new photos and videos

2011-07-20 Thread pedramz
I need to detect when the user takes new photos and records new videos with phone camera. I have tried two ways of doing this with limited success. The first method is receiving intent action com.android.camera.NEW_PICTURE which works for photos and not for videos. Also this method does not seem

[android-developers] Re: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks Justin, This is almost what I want to do except that my application is actively doing something in the background (mainly collecting position data). The user, by way of long pressing one of the buttons, would tell the background application to sent the collected data to a server. Maybe I

[android-developers] Re: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks Justin, This is almost what I want to do except that my application is actively doing something in the background (mainly collecting position data). The user, by way of long pressing one of the buttons, would tell the background application to sent the collected data to a server. Maybe I

[android-developers] Re: User interaction with Background applications

2011-02-28 Thread pedramz
Thanks everyone for the 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] User interaction with Background applications

2011-02-23 Thread pedramz
I was wondering if someone with Android development experience can help me with some suggestions/ideas or just show me in the right direction. I would appreciate and ideas. Thanks. I have been mainly developing Symbian applications and I am about to start Android development. My problem is this.

[android-developers] Re: Capture key events while in background

2009-12-04 Thread pedramz
Thanks for the info everyone! So basically I could detect Media and Camera button presses but not the releases and I would be able to detect if the user is holding the button. Would I be able to detect Camera and Media button presses if the key lock is on? Or maybe that depends on the phone

[android-developers] Capture key events while in background

2009-12-02 Thread pedramz
Hi, I am planning to port an application from Symbian to Android and I'm looking at the possibilities of the Android platform. My application runs in background and needs to detect when the user presses and holds a button (for 3-4 seconds) on the phone even when the phones key lock is on. I am