remove android main thread (java) and add many functions to android env