当前位置:网站首页>简单的页面跳转活动
简单的页面跳转活动
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();
}
}
边栏推荐
猜你喜欢

From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.

ros多客户端请求服务
![[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)](/img/ed/ffced88c9d23c20ccf380494051381.jpg)
[ORB_SLAM2] void Frame::ComputeImageBounds(const cv::Mat & imLeft)

Electronic Manufacturing Warehouse Barcode Management System Solution

Unable to log in to the Westward Journey

A good book for newcomers to the workplace

The principle and code implementation of intelligent follower robot in the actual combat of innovative projects

qt点云配准软件

Oracle数据类型介绍

openGauss切换后state状态显示不对
随机推荐
¶ Backtop back to the top is not effective
Lombok
菜刀webshell特征分析
LeetCode brush diary: LCP 03. Machine's adventure
A good book for newcomers to the workplace
AWR分析报告问题求助:SQL如何可以从哪几个方面优化?
灰度传感器、、、diy原理。。图
2022-08-01 mysql/stoonedb slow SQL-Q18 analysis
LeetCode 213. Robbery II (2022.08.01)
工程师如何对待开源
nacos startup error, the database has been configured, stand-alone startup
790. 数的三次方根
Moonbeam and Project integration of the Galaxy, bring brand-new user experience for the community
C#测试项目中属性的用法
qt点云配准软件
swift project, sqlcipher3 -> 4, cannot open legacy database is there a way to fix it
Rasa 3 x learning series - Rasa - 4873 dispatcher Issues. Utter_message study notes
CASE2023
What to study after the PMP exam?The soft exam ahead is waiting for you~
Nanoprobes纳米探针丨Nanogold偶联物的特点和应用