Code example for FragmentActivity

0
package com.calebgo.meadlog; 
 
import android.content.Intent; 
import android.os.Bundle; 
import android.support.v4.app.FragmentActivity; 
import android.support.v4.app.NavUtils; 
import android.view.MenuItem; 
 
public class BrewDetailActivity extends FragmentActivity { 
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_brew_detail); 
 
        getActionBar().setDisplayHomeAsUpEnabled(true); 
 
        if (savedInstanceState == null) {
            Bundle arguments = new Bundle();
            arguments.putString(BrewDetailFragment.ARG_ITEM_ID,
                    getIntent().getStringExtra(BrewDetailFragment.ARG_ITEM_ID)); 
            BrewDetailFragment fragment = new BrewDetailFragment();
            fragment.setArguments(arguments);
Connect your IDE to all the code out there  Get Codota for Java