Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #409 from tillsunrise/master
Browse files Browse the repository at this point in the history
#2 #71 第2次实验
  • Loading branch information
zengsn authored Oct 6, 2020
2 parents 51cf53d + e5be681 commit aee7bb1
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 1 deletion.
24 changes: 24 additions & 0 deletions students/net1814080903202/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.hzuapps.androidlabs.net1814080903202">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Scan1814080903202Activity"></activity>
<activity android:name=".Comment1814080903202Activity" />
<activity android:name=".Moment1814080903202Activity" />
<activity android:name=".Net1814080903202Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
14 changes: 14 additions & 0 deletions students/net1814080903202/Comment1814080903202Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package edu.hzuapps.androidlabs.net1814080903202;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class Comment1814080903202Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment1814080903202);
}
}
14 changes: 14 additions & 0 deletions students/net1814080903202/Moment1814080903202Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package edu.hzuapps.androidlabs.net1814080903202;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class Moment1814080903202Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_moment1814080903202);
}
}
44 changes: 43 additions & 1 deletion students/net1814080903202/Net1814080903202Activity.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,46 @@
package edu.hzuapps.androidlabs.net1814080903202;

public class Net1814080903202Activity{
import androidx.appcompat.app.AppCompatActivity;

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

public class Net1814080903202Activity extends AppCompatActivity implements View.OnClickListener {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_net1814080903202);
Button btn1 = (Button)findViewById(R.id.button1);
Button btn2 = (Button)findViewById(R.id.button2);
Button btn3 = (Button)findViewById(R.id.button3);
btn1.setOnClickListener(this);
btn2.setOnClickListener(this);
btn3.setOnClickListener(this);
}

@Override
public void onClick(View v) {
final Net1814080903202Activity thisActivity = this;
Intent intent,intent1;
switch (v.getId()){
case R.id.button1:
intent = new Intent(thisActivity, Moment1814080903202Activity.class);
thisActivity.startActivity(intent);
intent1 = new Intent(Intent.ACTION_CALL);
break;
case R.id.button2:
intent = new Intent(thisActivity, Comment1814080903202Activity.class);
thisActivity.startActivity(intent);
intent1 = new Intent(Intent.ACTION_CALL);
break;
case R.id.button3:
intent = new Intent(thisActivity, Scan1814080903202Activity.class);
thisActivity.startActivity(intent);
intent1 = new Intent(Intent.ACTION_CALL);
break;
}
}
}
14 changes: 14 additions & 0 deletions students/net1814080903202/Scan1814080903202Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package edu.hzuapps.androidlabs.net1814080903202;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class Scan1814080903202Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_scan1814080903202);
}
}

0 comments on commit aee7bb1

Please sign in to comment.