[android-developers] Establishing WiFi connection to a chosen hotspot

2009-08-19 Thread R Ravichandran
Hello, I have some code using the WifiManager class that needs to do the following: 1. scan available open wifi hotspots 2. pick one 3. establish connection. I am not able to successfully do steps 2 and 3. Here is the snippet: private BroadcastReceiver wifiEventReceiver = new BroadcastRecei

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-19 Thread R Ravichandran
er-OSDC > ·T· · ·Mobile· stick together > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > > > On Aug 19, 12:51 pm, R Ravichandran wrote: >

[android-developers] Re: Establishing WiFi connection to a chosen hotspot

2009-08-21 Thread R Ravichandran
ECTION_CHANGE_ACTION); > > >intentFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION); > > >intentFilter.addAction > > > (WifiManager.SUPPLICANT_STATE_CHANGED_ACTION); > > > > >mContext.registerReceiver(this, intentFilter); >

[android-developers] Launching a Service at the startup

2009-07-23 Thread R Ravichandran
Hello, I have a need to create a background service that starts up during the system boot up, and keeps running until the device is powered down. There is no UI or Activity associated with this. I created a class extending the android Service class, and added the setttings to the AndroidManifest.x

[android-developers] Re: Launching a Service at the startup

2009-07-28 Thread R Ravichandran
Thanks for the idea. I think I will go with this keeping in mind the concerns raised by Diane in this email thread. On Thu, Jul 23, 2009 at 11:48 AM, Mark Murphy wrote: > > > I have a need to create a background service that starts up during the > > system boot up, and keeps running until the

[android-developers] Extending the Intent class

2009-07-28 Thread R Ravichandran
I was experimenting with extending the Intent class but don't seem to make it work properly. I am wondering if extending is even possible. Here is the snippets. Code for custom intent: public class MyIntent extends Intent { private MyClass myClass; public MyIntent(String name, MyClass myC

[android-developers] Re: Extending the Intent class

2009-07-31 Thread R Ravichandran
Fair enough argument. Perhaps the Intent class could have been made final. On Tue, Jul 28, 2009 at 4:29 PM, Mark Murphy wrote: > > R Ravichandran wrote: > > I was experimenting with extending the Intent class but don't seem to > > make it work properly. I am wonderi

[android-developers] Re: Launching a Service at the startup

2009-08-02 Thread R Ravichandran
This is definitely a viable approach for my application architecture, but still strugglng to make this work. Here are some details, and I am hoping that someone will point out what is going wrong here. 1. I have a class "MyServiceInitiator" that is hooked up to the BOOT_COMPLETED action. public

[android-developers] Re: Launching a Service at the startup

2009-08-03 Thread R Ravichandran
alArgumentException: Unknown URL content://android.server.checkin/events Looks the process Id 583 is the one that sends SIG 9. Any idea why this is happening? Thanks Ravi On Mon, Aug 3, 2009 at 4:58 AM, Mark Murphy wrote: > > R Ravichandran wrote: > > This is definitely a viable app

[android-developers] Understanding the BroadcastReceiver

2009-08-17 Thread R Ravichandran
Hello, I have an application that uses an extended BroadcastReceiver class inside the Activity. I have the extended BroadcastReceiver class as a member variable of the Activity class. But it looks like the receiver references keep changing between its construction and 'onReceive' method call. I wo