Skip to content

Commit

Permalink
hzuapps#7 hzuapps#338 第七次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
15217598867 committed Apr 22, 2019
1 parent bb92ca0 commit 589cf99
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 224 deletions.
11 changes: 10 additions & 1 deletion students/soft1714080902417/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.hzuapps.androidlabs.soft1714080902417">

<uses-feature android:name="android.hardware.camera"
android:required="true" />

<uses-permission android:name="android.permission.INTERNET"></uses-permission>

<application
android:screenOrientation="landscape"
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=".TakePhotos">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".DowloadImage">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ public class Soft1714080902417MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button button1=(Button) findViewById(R.id.button1);
button1.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
Intent intent=new Intent(Soft1714080902417MainActivity.this,TakePhotos.class);
startActivity(intent);
}
});


Button button=(Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener()
{
Expand All @@ -25,6 +37,8 @@ public void onClick(View v)
}
});



}


Expand Down
Loading

0 comments on commit 589cf99

Please sign in to comment.