Android Open Source - LocBox Single Fragment Activity






From Project

Back to project page LocBox.

License

The source code is released under:

MIT License

If you think the Android project LocBox 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 com.codebrane.locbox;
//from w w  w  . j a va2  s  .c  om
import android.app.Fragment;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public abstract class SingleFragmentActivity extends FragmentActivity {
  
  protected abstract Fragment createFragment();
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_fragment);

    if (savedInstanceState == null) {
      getFragmentManager().beginTransaction()
          .add(R.id.fragmentContainer, createFragment()).commit();
    }
  }

}




Java Source Code List

com.codebrane.locbox.LocationReceiver.java
com.codebrane.locbox.LocboxActivity.java
com.codebrane.locbox.LocboxManager.java
com.codebrane.locbox.SingleFragmentActivity.java
com.codebrane.locbox.controller.LocboxFragment.java
com.codebrane.locbox.model.CBLocation.java
com.codebrane.locbox.model.Walk.java