- Code: Select all
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
wifiis = (TextView)this.findViewById(R.id.wifiis);
enordis = (TextView)this.findViewById(R.id.enordis);
enable = (TextView)this.findViewById(R.id.enable);
WifiMan = (WifiManager) getSystemService(Context.WIFI_SERVICE);
Info = WifiMan.getConnectionInfo();
enordis.append(Info.toString());
enordisCheckBox = (CheckBox)this.findViewById(R.id.enordisCheckBox);
enordisCheckBox.setOnClickListener(this);
}
This is the code i'm having so far, but when i'm trying to run it on my emulator it get an error saying the program isn't working anymore + these 2 lines in the Eclipse console:
- Code: Select all
[2010-08-03 19:12:20 - An WiFi] WARNING: Application does not specify an API level requirement!
[2010-08-03 19:12:20 - An WiFi] Device API version is 7 (Android 2.1-update1)
The project and the emulator are both Android 2.1 Update1
Why aint this working?


