Android Open Source - androidactionbar Location Found






From Project

Back to project page androidactionbar.

License

The source code is released under:

Apache License

If you think the Android project androidactionbar listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package info.androidhive.actionbar;
/*  w  w w  .jav a 2  s . c  om*/
import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;

public class LocationFound extends Activity {
  
   @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_location_found);
 
        // get action bar   
        ActionBar actionBar = getActionBar();
        
        //actionBar.setIcon(R.drawable.ico_actionbar);
        
        // Enabling Up / Back navigation
        actionBar.setDisplayHomeAsUpEnabled(true);
    }
}




Java Source Code List

info.androidhive.actionbar.LocationFound.java
info.androidhive.actionbar.MainActivity.java
info.androidhive.actionbar.SearchResultsActivity.java