Why Future thread doesn't work in background of application?
问题 Today I found a wierd problem. What I want is to check server availability (Particularly SSL checking) once application started and display proper message if server is down. This process should work in background and user is able to navigate the app if server has problem (app can works offline). What I did is simple. In main activity I have @Override protected void onStart() { super.onStart(); // Check Internet connection // Check Location sensor // Check server accessibility BackendCheck