my onCreate() looks like:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Thread(new IpAddressCallable()).start();
int n=100;
for(int i=1;i<=n&&!gotWifiUpOrFail;i++)
try {
Thread.sleep(100);
} catch(InterruptedException e) {
System.out.println("5 caught: "+e);
}
initialize();
}
i need to wait to force a wifi conection since the tablets come up in a: "no internet access detected won't automatically reconnect" mode (apparently since 5.1 or so).
the initialization buids the gui and does a: setContentView(relativeLayout), so i can not run this from another thread.
is this sane way to wait for something like this?