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

MainActivity

public class MainActivity extends android.support.v7.app.ActionBarActivity
Main activity of the app.

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


    
        
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .add(R.id.container, new PlaceholderFragment())
                    .commit();
        }

    
public booleanonCreateOptionsMenu(android.view.Menu menu)


        // Inflate the menu; this adds items to the action bar if it is present.
        //getMenuInflater().inflate(R.menu.main, menu);
        return true;
    
public booleanonOptionsItemSelected(android.view.MenuItem item)

        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        // if (id == R.id.action_settings) {
        // return true;
        // }
        return super.onOptionsItemSelected(item);