]> piware.de Git - android-PittiHelloWorld.git/blobdiff - app/src/main/AndroidManifest.xml
Add button to take a photo
[android-PittiHelloWorld.git] / app / src / main / AndroidManifest.xml
index a104c54751da24e5614f9bfcd3f473556c82f78e..2407a605f7b07c4846cd4433200853aee1dd51e2 100644 (file)
@@ -2,6 +2,9 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.example.pittihelloworld">
 
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.example.pittihelloworld">
 
+    <uses-feature android:name="android.hardware.camera" android:required="true" />
+    <!-- <uses-permission android:name="android.permission.CAMERA" /> does not help -->
+
     <application
         android:allowBackup="true"
         android:icon="@mipmap/ic_launcher"
     <application
         android:allowBackup="true"
         android:icon="@mipmap/ic_launcher"
@@ -9,6 +12,7 @@
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/AppTheme">
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:theme="@style/AppTheme">
+        <activity android:name=".DisplayMessageActivity" android:parentActivityName=".MainActivity" />
         <activity android:name=".MainActivity">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
         <activity android:name=".MainActivity">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />