jeudi 28 mai 2015

Application crashed due to empty database

when i am pressing the btn app is crashing beacause there is no data in the database .

   public void viewBtn(View v){


   try {

    Intent  i2 = new Intent(this,view.class);


   startActivityForResult(i2,500);


   overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left); 

} catch (Exception e) {


    Toast.makeText(this,"Add Some Course First ",Toast.LENGTH_LONG).show();
}

Aucun commentaire:

Enregistrer un commentaire