hey Flappie, The WifiInfo constructor isn't public as it's not meant to be instantiated by clients. Instead, you retrieve it from WifiManager's getConnectionInfo. You can get a reference to WifiManager by using context.getSystemService(Context.WIFI_SERVICE) (and casting it).
For more info, check out: http://code.google.com/android/reference/android/net/wifi/WifiManager.html jason On Sun, Nov 2, 2008 at 12:03 PM, Flappie <[EMAIL PROTECTED]> wrote: > > Yes i know.....i'm a newbie. > But i'm currently learning the syntax of android using Eclipse. > I'm trying to get the network SSID and just through it to the > log.....for learning purpose i would say. > this is my part code: > > WifiInfo checkx = new WifiInfo(); > android.util.Log.v("sometag","SSID= " + checkx.getSSID()); > > I get a error on the "new WifiInfo()" part. > Saying: "The constructor WifiInfo() is not visible" > Why can't it find/see the contructor of this Class? > > It's comming from: > namespace: android.net.wifi.WifiInfo; > > I know...i'm a newbie but i've got to start somewhere....... > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

