Android Open Source - hello-contexthub-android Main Activity






From Project

Back to project page hello-contexthub-android.

License

The source code is released under:

MIT License

If you think the Android project hello-contexthub-android 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.contexthub.hellocontexthub;
/*from w w w.  java  2 s  . com*/
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Window;

public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        setProgressBarIndeterminate(true);

        if(savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .add(android.R.id.content, new GeofencesMapFragment()).commit();
        }
    }
}




Java Source Code List

com.contexthub.hellocontexthub.ApplicationTest.java
com.contexthub.hellocontexthub.GeofencesMapFragment.java
com.contexthub.hellocontexthub.HelloContextHubApp.java
com.contexthub.hellocontexthub.MainActivity.java