当前位置:网站首页>简单的页面跳转活动
简单的页面跳转活动
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();
}
}
边栏推荐
- 使用docker安装mysql
- Win Go development kit installation configuration, GoLand configuration
- The first time I wrote a programming interview question for Niu Ke: input a string and return the letter with the most occurrences of the string
- swift project, sqlcipher3 -> 4, cannot open legacy database is there a way to fix it
- Remember a gorm transaction and debug to solve mysql deadlock
- BI - SQL 丨 WHILE
- Service discovery of kubernetes
- 240...循迹
- Check if IP or port is blocked
- 29. 删除链表中重复的节点
猜你喜欢

Garbage Collector CMS and G1

Entry name 'org/apache/commons/codec/language/bm/gen_approx_greeklatin.txt' collided

2023年起,这些地区软考成绩低于45分也能拿证

极大似然估计

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

CASE2023

Nanoprobes Polyhistidine (His-) Tag: Recombinant Protein Detection Protocol

Lombok

Good News | AR opens a new model for the textile industry, and ALVA Systems wins another award!

Nanoprobes丨1-mercapto-(triethylene glycol) methyl ether functionalized gold nanoparticles
随机推荐
Reflex WMS Intermediate Series 7: What should I do if I want to cancel the picking of an HD that has finished picking but has not yet been loaded?
Nanoprobes丨1-mercapto-(triethylene glycol) methyl ether functionalized gold nanoparticles
【web】Understanding Cookie and Session Mechanism
【Unity入门计划】2D Game Kit:初步了解2D游戏组成
Handwritten Blog Platform ~ Day Two
Redis for distributed applications in Golang
From 2023 onwards, these regions will be able to obtain a certificate with a score lower than 45 in the soft examination.
Install mysql using docker
灰度传感器、、、diy原理。。图
messy website
项目场景 with ERRTYPE = cudaError CUDA failure 999 unknown error
789. 数的范围
Unable to log in to the Westward Journey
BioVendor人俱乐部细胞蛋白(CC16)Elisa试剂盒研究领域
[LeetCode Daily Question]——654. The largest binary tree
Nanoprobes纳米探针丨Nanogold偶联物的特点和应用
ros多客户端请求服务
C#测试项目中属性的用法
qt点云配准软件
cocos中使用async await异步加载资源