当前位置:网站首页>简单的页面跳转活动
简单的页面跳转活动
2022-08-02 02:24:00 【天真小巫】
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void gotoSecondActivity(View V)
{
Intent it=new Intent(this,Main2Activity.class);
startActivity(it);
}
}
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
public class Main2Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
}
public void goBack(View view)
{
finish();
}
}
边栏推荐
- Project Background Technology Express
- 使用DBeaver进行mysql数据备份与恢复
- leetcode/字符串中的变位词-s1字符串的某个排列是s2的子串
- 240...循迹
- Talking about the "horizontal, vertical and vertical" development trend of domestic ERP
- 【 wheeled odometer 】
- Rasa 3.x 学习系列- Rasa - Issues 4873 dispatcher.utter_message 学习笔记
- 51. 数字排列
- NIO's Sword
- 使用docker安装mysql
猜你喜欢

oracle query scan full table and walk index

工程师如何对待开源

【LeetCode每日一题】——704.二分查找

The state status is displayed incorrectly after the openGauss switch
![[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)](/img/ed/ffced88c9d23c20ccf380494051381.jpg)
[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)

记一次gorm事务及调试解决mysql死锁

How engineers treat open source

LeetCode brush diary: LCP 03. Machine's adventure

IMU预积分的简单理解

Nanoprobes多组氨酸 (His-) 标签标记:重组蛋白检测方案
随机推荐
oracle query scan full table and walk index
Handwriting a blogging platform ~ the first day
MySQL - CRUD operations
Talking about the "horizontal, vertical and vertical" development trend of domestic ERP
nacos startup error, the database has been configured, stand-alone startup
Ringtone 1161. Maximum In-Layer Elements and
Service discovery of kubernetes
[ORB_SLAM2] SetPose, UpdatePoseMatrices
C#测试项目中属性的用法
菜刀webshell特征分析
BioVendor人俱乐部细胞蛋白(CC16)Elisa试剂盒研究领域
【web】理解 Cookie 和 Session 机制
Win Go development kit installation configuration, GoLand configuration
项目后台技术Express
Chopper webshell feature analysis
网络层解析——IP协议、地址管理、路由选择
messy website
Oracle19c安装图文教程
Garbage Collector CMS and G1
¶ Backtop back to the top is not effective