Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

navigate to another activity in android

OnClickListener onClickListener = new OnClickListener() {
    @Override
    public void onClick(View v) {
        startActivity(new Intent(action));
    }
};

Button button = (Button) findViewById(id);
button.setOnClickListener(onClickListener);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #navigate #activity #android
ADD COMMENT
Topic
Name
4+2 =