HELP ME WITH THIS JAVA CODE

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

HELP ME WITH THIS JAVA CODE

activity_camera.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_camera"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.user.learnandroid.CameraActivity"
android:orientation="vertical">
<TextView
android:id="@+id/activitytitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Demo for Camera Activity"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="@color/colorAccent"
android:layout_alignParentTop="true"
android:layout_marginLeft="40dp"
android:padding="15dp"/>
<TextView
android:id="@+id/progressinfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Let's see a simple example to capure image and set it t
android:layout_below="@id/activitytitle" android:textSize="15sp"
android:padding="10dp"|
android:textColor="@color/colorPrimary"
android:layout_marginTop="10dp"/>
<ImageView
android:id="@+id/imageview"
android:padding="5dp"
android:layout_width="match_parent"
android:layout_height="200dp" />
<Button
android:id="@+id/btncapture"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="
Capture Image
android:layout_gravity="center"
android:background="#1E88E5"
android:textColor="#ffffff".
android:layout_marginTop="20dp"/>
<Button
android:id="@+id/btnsource"
android:layout_width="350dp"
android:layout_height="wrap_content"
android:text="View Code for Audio Player Activity"
android:background="#1E88E5"
android:layout_marginTop="20dp"
android:layout_gravity="center"
android:textColor="#ffffff"/>
</LinearLayout>
Transcribed Image Text:activity_camera.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_camera" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.example.user.learnandroid.CameraActivity" android:orientation="vertical"> <TextView android:id="@+id/activitytitle" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Demo for Camera Activity" android:textSize="20sp" android:textStyle="bold" android:textColor="@color/colorAccent" android:layout_alignParentTop="true" android:layout_marginLeft="40dp" android:padding="15dp"/> <TextView android:id="@+id/progressinfo" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Let's see a simple example to capure image and set it t android:layout_below="@id/activitytitle" android:textSize="15sp" android:padding="10dp"| android:textColor="@color/colorPrimary" android:layout_marginTop="10dp"/> <ImageView android:id="@+id/imageview" android:padding="5dp" android:layout_width="match_parent" android:layout_height="200dp" /> <Button android:id="@+id/btncapture" android:layout_width="200dp" android:layout_height="wrap_content" android:text=" Capture Image android:layout_gravity="center" android:background="#1E88E5" android:textColor="#ffffff". android:layout_marginTop="20dp"/> <Button android:id="@+id/btnsource" android:layout_width="350dp" android:layout_height="wrap_content" android:text="View Code for Audio Player Activity" android:background="#1E88E5" android:layout_marginTop="20dp" android:layout_gravity="center" android:textColor="#ffffff"/> </LinearLayout>
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.user.learnandroid">
1
4
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission. ACCESS_FINE_LOCATION" />
6
7
8
9
10
11
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"|
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
12
13
14
15
16
17
18
19
20
<action android:name="android.intent.action.MAIN" />
21
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
22
23
</activity>
<activity android:name=".IntentActivity" />
<activity android:name=".IntentSecond" />
<activity android:name=".ToastActivity" />
<activity android:name=".NotificationActivity" />
<activity android:name=".WifiActivity" />
<activity android:name=".Wifijavahtmls" />
<activity android:name=".FormActivity" />
<activity android:name=".FormSecondActivity" />
<activity android:name=".DebugActivity" />
<activity android:name=".AlertActivity" />
<activity android:name=".OptionMenuActivity" />
<activity android:name=".ContextMenuActivity" />
<activity android:name=".ProgressActivity" />
<activity android:name=".AudioActivity" />
<activity android:name=".CameraActivity" />
<activity android:name=".VideoActivity" />
<activity android:name=".GpsActivity" />
<activity android:name=".SharedPreferenceActivity" />
<activity android:name=".MainSourceCode. MainSourceCodeAct"></activity>
</application>
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</manifest>
Transcribed Image Text:AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.user.learnandroid"> 1 4 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission. ACCESS_FINE_LOCATION" /> 6 7 8 9 10 11 <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name"| android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> 12 13 14 15 16 17 18 19 20 <action android:name="android.intent.action.MAIN" /> 21 <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 22 23 </activity> <activity android:name=".IntentActivity" /> <activity android:name=".IntentSecond" /> <activity android:name=".ToastActivity" /> <activity android:name=".NotificationActivity" /> <activity android:name=".WifiActivity" /> <activity android:name=".Wifijavahtmls" /> <activity android:name=".FormActivity" /> <activity android:name=".FormSecondActivity" /> <activity android:name=".DebugActivity" /> <activity android:name=".AlertActivity" /> <activity android:name=".OptionMenuActivity" /> <activity android:name=".ContextMenuActivity" /> <activity android:name=".ProgressActivity" /> <activity android:name=".AudioActivity" /> <activity android:name=".CameraActivity" /> <activity android:name=".VideoActivity" /> <activity android:name=".GpsActivity" /> <activity android:name=".SharedPreferenceActivity" /> <activity android:name=".MainSourceCode. MainSourceCodeAct"></activity> </application> 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 </manifest>
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education