[android-beginners] Re: WifiReceiver not part of SDK 1.5???
I do have this line in there... On Aug 11, 2:46 pm, Jack Ha jack...@t-mobile.com wrote: Make sure you have the following line in your AndroidManifest file. uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission -- Jack Ha Open Source Development Center ・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 11, 10:55 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・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 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
This is what I get on the Eclipse console when I run that app... and it force closes. [2009-08-12 08:54:30 - WiFiProject] Android Launch! [2009-08-12 08:54:30 - WiFiProject] adb is running normally. [2009-08-12 08:54:30 - WiFiProject] Performing com.example.WiFiProject.WiFiProject activity launch [2009-08-12 08:54:30 - WiFiProject] Automatic Target Mode: launching new emulator with compatible AVD 'Android' [2009-08-12 08:54:30 - WiFiProject] Launching a new emulator with Virtual Device 'Android' [2009-08-12 08:54:36 - WiFiProject] New emulator found: emulator-5554 [2009-08-12 08:54:36 - WiFiProject] Waiting for HOME ('android.process.acore') to be launched... [2009-08-12 08:56:34 - WiFiProject] HOME is up on device 'emulator-5554' [2009-08-12 08:56:34 - WiFiProject] Uploading WiFiProject.apk onto device 'emulator-5554' [2009-08-12 08:56:34 - WiFiProject] Installing WiFiProject.apk... [2009-08-12 08:56:44 - WiFiProject] Application already exists. Attempting to re-install instead... [2009-08-12 08:56:48 - WiFiProject] Success! [2009-08-12 08:56:48 - WiFiProject] Starting activity com.example.WiFiProject.WiFiProject on device [2009-08-12 08:56:50 - WiFiProject] ActivityManager: Starting: Intent { comp={com.example.WiFiProject/ com.example.WiFiProject.WiFiProject} } I am not sure about testing this app on my phone to see if it works there. Don't want to end up screwing it up if something goes wrong. How else can I make sure this app to work? Thanks, Abhi On Aug 12, 8:31 am, Abhi abhishek.r.sha...@gmail.com wrote: I do have this line in there... On Aug 11, 2:46 pm, Jack Ha jack...@t-mobile.com wrote: Make sure you have the following line in your AndroidManifest file. uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission -- Jack Ha Open Source Development Center ・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 11, 10:55 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・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 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・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 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・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 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: WifiReceiver not part of SDK 1.5???
Make sure you have the following line in your AndroidManifest file. uses-permission android:name=android.permission.CHANGE_WIFI_STATE/ uses-permission -- Jack Ha Open Source Development Center ・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 11, 10:55 am, Abhi abhishek.r.sha...@gmail.com wrote: Hi Jack, posting my reply again... dunno where my previous post went. I have the complete code now but the app force closes on my emulator. Is it because the emulator doesn't support WiFi apps? and force closes when it tries to scan for networks? I thought the emulator would just get stuck at the Starting Scan phase but wouldn't crash... correct? Abhi On Aug 11, 11:41 am, Jack Ha jack...@t-mobile.com wrote: WifiReceiver is not part of the SDK. Are you referring to the following example? You'll see WifiReceiver extends BroadcastReceiver. http://www.androidsnippets.org/snippets/9/ -- Jack Ha Open Source Development Center ・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 11, 6:37 am, Abhi abhishek.r.sha...@gmail.com wrote: I don't see this in the list of WiFi classes on the latest documentation found herehttp://developer.android.com/reference/android/net/wifi/package-summa... I am refering to a WifiScanner code (snippet below) to scan wireless networks public class WifiTester extends Activity { TextView mainText; WifiManager mainWifi; WifiReceiver receiverWifi; ListScanResult wifiList; ... and it gives me an error in Eclipse saying 'WifiReceiver cannot be resolved to a type'. Any help would be appreciated. Please also let me knw how to replace the part of code that has WifiReceiver in it with any of the existing classes. Thanks, Abhi- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---