the app is working as expected in Eclipse