Update MainActivity.java

For prevent the app crashes, could try the app resolve the intent and after start.