Android Open Source - coursera-android-001 Activity Loader Activity

From Project

Back to project page coursera-android-001.


The source code is released under:

MIT License

If you think the Android project coursera-android-001 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 course.labs.permissionslab;
//from   w w  w. j a  v  a 2  s .c  om
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ActivityLoaderActivity extends Activity {

  private static final String TAG = "Lab-Permissions";
  protected void onCreate(Bundle savedInstanceState) {

    Button startBookmarksButton = (Button) findViewById(;
    startBookmarksButton.setOnClickListener(new OnClickListener() {

      public void onClick(View v) {


  private void startBookMarksActivity() {
    Log.i(TAG, "Entered startBookMarksActivity()");
    // Start the BookmarksActivity
        Intent bookmarksActivity = new Intent(getApplicationContext(), BookmarksActivity.class);

Java Source Code List