Page 586 - 3-2
P. 586

<uses-permission android:name="android.permission.INTERNET"/>
                    <service
                        android:name=".MyService"
                        android:enabled="true"
                        android:exported="true"></service>
                </application>


            </manifest>


            ●  Activity_Camera
            <?xml version="1.0" encoding="utf-8"?>
            <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:app="http://schemas.android.com/apk/res-auto"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                tools:context="org.androidtown.mdp_0608.CameraActivity">


                <Button
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Back"
                    android:id="@+id/backbutton"
                    android:onClick="BackButtonOnClicked"
                    />


                <FrameLayout
                    android:layout_below="@+id/backbutton"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent">
                <ImageView
                    android:layout_width="match_parent"
                    android:id="@+id/img"
                    android:layout_height="match_parent"
                    />


                </FrameLayout>


            </RelativeLayout>


            ●  Camera_Activity
            package org.androidtown.mdp_0608;


            import android.content.Intent;
            import android.graphics.Bitmap;


                                                         - 586 -
   581   582   583   584   585   586   587   588   589   590   591