Update MainActivity.java

Sometimes the Intent.setData() and Intent.setType() can cause conflicts. Change to Intent.setDataAndType().