Scan Barcode And qrcode Programmatically In Android Studio


Step 3: Updating AndroidManifest.xml file


Download 139.41 Kb.
bet2/7
Sana16.04.2023
Hajmi139.41 Kb.
#1358704
1   2   3   4   5   6   7

Step 3: Updating AndroidManifest.xml file


add camera permission between …. tag.

We will use camera of the android device to scan the barcode.
For using camera, we have to get permission from the user.

Step 4: Updating activity_main.xml file:


Copy following code into android_main.xml file:

xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.exampledemo.parsaniahardik.scanbarcodeqrdemonuts.MainActivity">

Download 139.41 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling