[android-developers] Re: Developing Android REST Client Applications

2010-09-02 Thread reda
/creating-an-http-client-example/ Best regards Reda On 1 sep, 22:29, authorwjf wrote: > In its most basic format, calling a rest service is simply doing an > HTTP call.  For example: > >     public void callSomeApi() throws Exception >     { >         DefaultHttpClient httpclient = new

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
ntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intentToFire, PendingIntent.FLAG_UPDATE_CURRENT); alarmPendingIntent.cancel(); It just works for me but I want to hear from other if this will not fail one day. ++ Reda On 22 juin, 08:08, Jeruliu wrote: > Dear all, > > I use

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
ntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intentToFire, PendingIntent.FLAG_UPDATE_CURRENT); alarmPendingIntent.cancel(); It just works for me but I want to hear from other if this will not fail one day. ++ Reda On 22 juin, 08:08, Jeruliu wrote: > Dear all, > > I use

[android-developers] Re: How to detect if the PendingIntent already exists or not

2010-06-22 Thread reda
ntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intentToFire, PendingIntent.FLAG_UPDATE_CURRENT); alarmPendingIntent.cancel(); It just works for me but I want to hear from other if this will not fail one day. ++ Reda On 22 juin, 08:08, Jeruliu wrote: > Dear all, > > I use

[android-developers] Re: can't anymore show light notification

2010-06-20 Thread reda
gt; This code is fine, > > But only issue is.. they have blocked the permission to change the LED. > > if you have source code which can be compiled then you can modify that and > it will work.. > > > > On Sun, Jun 20, 2010 at 8:47 PM, reda wrote: > > Hi, > >

[android-developers] Re: How to set Connection mode?

2010-06-20 Thread reda
Hi, Can anybody please tell us if it is possible to change network connection programmatically ? How can we do a fail over ? If no, when it will be available ? Thanks On 29 avr, 15:45, vikky wrote: > Hi.. > thnx for the reply.. > I have tried so many things...but not able to activate the

[android-developers] Re: Is it possible to wake the device with : PowerManager.WakeLock.acquire()

2010-06-20 Thread reda
Thanks Mark. My application works nice since I used the alarmManager. Best ragards. Reda ABDI On 18 juin, 22:31, Mark Murphy wrote: > On Wed, Jun 16, 2010 at 2:54 AM, reda wrote: > > I have a timer that schedule a task to run every 5 minutes. > > That is a mistake. Please u

[android-developers] can't anymore show light notification

2010-06-20 Thread reda
Hi, When I was using android api 5 (sdk 2.0) I was able to show light notification in the trackball of my nexus one : mNotificationManager.notify("my tag",0, notif); Now, I'm developping on android api 3 (sdk1.5) and this method is no more available so I use : mNotificationManager.notify(0, not

[android-developers] Is it possible to wake the device with : PowerManager.WakeLock.acquire()

2010-06-18 Thread reda
Hi, I have a timer that schedule a task to run every 5 minutes. This task send a request to a server, so I need to be sure that CPU is on so that wifi or 3g can be used. So the first thing I do in my run() method is : PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); Po