- Home /
Question by
AsDeveloper14 · May 26, 2017 at 10:08 AM ·
native pluginnative
scan wifi using AndroidJavaObject
hi . I want to scan wifi by using AndroidJavaObject.
I can get ssid with this code :
AndroidJavaObject activity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");
var wifiManager = activity.Call<AndroidJavaObject>("getSystemService", "wifi");
debug1.text = wifiManager.Call<AndroidJavaObject>("getConnectionInfo").Call<string>("getSSID");
I want to return ListArray from java but I dont know how to do it!!
see this document and compare "getScanResults" and "getConnectionInfo". sorry for poor english.
Comment