Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

go to activity android

//going to another activity while ending the 
//previous one so that users cannot go back
btListe = (ImageButton)findViewById(R.id.Button_Liste);
    btListe.setOnClickListener(new OnClickListener()
    {    public void onClick(View v)
        {
            intent = new Intent(main.this, ListViewImage.class);
            startActivity(intent);
            finish();
        }
    });
 
PREVIOUS NEXT
Tagged: #activity #android
ADD COMMENT
Topic
Name
6+4 =