open new activity using android studio

Published: 28 September 2021
on channel: Fast Programming
1,342
51

open new activity using android studio #android #development #python #coding #short #easy #how

package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
private Button button ;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
button = findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
cadeauhommepage();
}
});
}
public void cadeauhommepage(){
Intent intent = new Intent(this,cadeauHomme.class);
startActivity(intent);

}
}


On this page of the site you can watch the video online open new activity using android studio with a duration of hours minute second in good quality, which was uploaded by the user Fast Programming 28 September 2021, share the link with friends and acquaintances, this video has already been watched 1,342 times on youtube and it was liked by 51 viewers. Enjoy your viewing!