FileDocCategorySizeDatePackage
MainActivity.javaAPI DocAndroid 5.1 API1548Thu Mar 12 22:22:44 GMT 2015com.example.android.musicbrowserdemo

MainActivity

public class MainActivity extends android.support.v4.app.FragmentActivity
Main activity class.

Fields Summary
private static final String
BROWSER_FRAGMENT_TAG
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)


    
        
        super.onCreate(icicle);

        Log.d("MainActivity", "-------------------------------------------------------");

        // If we are starting afresh, start at the app list.
        final FragmentManager fm = getSupportFragmentManager();
        if (fm.findFragmentById(android.R.id.content) == null) {
            fm.beginTransaction().add(android.R.id.content, new AppListFragment()).commit();
        }