app/src/main/java/com/jdots/ignou/MaterialActivity.java
/* Called when the user taps the button */
Called when the user taps the button
Called when the user taps the button
public void BClick53(View view) {
        ButtonTone();
        Intent intent = new Intent(this,  DocviewActivity.class);
        Button B11 = (Button) findViewById(R.id.B53);
        Spinner spin1= (Spinner) findViewById(R.id.spin1);
        String txt1 = spin1.getSelectedItem().toString();
        String txt2 = getString(R.string.BCS_053_title);
        String txt3=null;
        if(txt1.equals("Syllabus")){ txt3 = getString(R.string.BCS_053_syllabus);}
        if(txt1.equals("Summary")){ txt3 = getString(R.string.BCS_011_syllabus);}
        if(txt1.equals("Question Papers")){ txt3 = getString(R.string.course_bca);intent = new Intent(this,  QnActivity.class);}
        intent.putExtra(TOKEN1,txt1);
        intent.putExtra(TOKEN2,txt2);
        intent.putExtra(TOKEN3,txt3);
        startActivity(intent);
    }
public void BClick53 ( View view ) { ButtonTone ( ) ; Intent intent = new Intent ( this , DocviewActivity . class ) ; Button B11 = ( Button ) findViewById ( R . id . B53 ) ; Spinner spin1 = ( Spinner ) findViewById ( R . id . spin1 ) ; String txt1 = spin1 . getSelectedItem ( ) . toString ( ) ; String txt2 = getString ( R . string . BCS_053_title ) ; String txt3 = null ; if ( txt1 . equals ( "Syllabus" ) ) { txt3 = getString ( R . string . BCS_053_syllabus ) ; } if ( txt1 . equals ( "Summary" ) ) { txt3 = getString ( R . string . BCS_011_syllabus ) ; } if ( txt1 . equals ( "Question Papers" ) ) { txt3 = getString ( R . string . course_bca ) ; intent = new Intent ( this , QnActivity . class ) ; } intent . putExtra ( TOKEN1 , txt1 ) ; intent . putExtra ( TOKEN2 , txt2 ) ; intent . putExtra ( TOKEN3 , txt3 ) ; startActivity ( intent ) ; }
Called when the user taps the button
Called when the user taps the button