i am really confused right now because whenever i create a new android app with blank activity it always comes out with fragment_main.xml.. i just wanted to create a blank a
While creating a new Application, just copy the Layout Name to the Fragment Layout Name (e.g. activity_main)
Voila!!! You get an activity without the fragment part.
Remove this portion of the code from activity:
if (savedInstanceState == null) {
getSupportFragmentManager().beginTransaction()
.add(R.id.container, new PlaceholderFragment())
.commit();
Clean the project.