Android Open Source - AZBible Main Activity






From Project

Back to project page AZBible.

License

The source code is released under:

GNU General Public License

If you think the Android project AZBible 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.witgeeks.azbible;
/*  w  ww. ja va 2 s.  c om*/
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    /*if(BooksActivity.biblia.getBooks()!=null&&BooksActivity.biblia.getBooks().size()>0){
      Intent intent = new Intent(MainActivity.this, BooksActivity.class);
      startActivity(intent);
      this.finish();
    }*/
  }
  
  /** Called when the user clicks on a category */
  public void goToBooks(View view) {
    String bibleSelected = getBibleSelected(view.getTag().toString());
    
    Intent intent = new Intent(MainActivity.this, BooksActivity.class);
    intent.putExtra("bibleSelected", bibleSelected);
    startActivity(intent);
    this.finish();
  }
  
  private String getBibleSelected(String tag){
    switch(tag){
    case "rv1960":
      return BooksActivity.BIBLE_RV1960;
    case "nvi":
      return BooksActivity.BIBLE_NVI;
    }
    return "";
  }
}




Java Source Code List

com.witgeeks.azbible.BooksActivity.java
com.witgeeks.azbible.ChaptersActivity.java
com.witgeeks.azbible.LessonActivity.java
com.witgeeks.azbible.MainActivity.java
com.witgeeks.azbible.beans.Bible.java
com.witgeeks.azbible.beans.Book.java
com.witgeeks.azbible.beans.Chapter.java
com.witgeeks.azbible.beans.Verse.java
com.witgeeks.azbible.sqlite.DataBaseManager.java
com.witgeeks.azbible.sqlite.DbHelper.java
com.witgeeks.azbible.xml.XMLDOMParser.java