Today we are going to provide you a QR Code Scanner and generator App source code for Free , in this App we have created a beautiful and Simple UI for best User experience ,
if you want to develop your own QR Code Scanner and Generator App then you can use our source code to develop your App :
Source Code link : Download
Demo App Link : Download
Features
QR code scanner : in this app you can scan any type of QR code like , text QR , link QR , e-mail QR etc.
QR code generator : in this app we have also provided QR code generating feature so you can easily generate QR code of your any type of text
- Generate QR Code of your text , link and e-mail
- Scan any type of QR Code
- Admob integrated
- Simple Code
- App created in Android Studio with JAVA and XML
- Latest Version of API
Sample Code of our Layout :
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusedByDefault="false"
android:visibility="visible"
tools:context=".MainActivity">
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:cursorVisible="true"
android:hint="Text/URL Here...!"
android:textAlignment="center" />
<ImageView
android:id="@+id/code"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_below="@+id/edit_text"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:src="@drawable/qr" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/bannerAds"
android:layout_marginBottom="5dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_margin="10dp"
android:background="@color/colorPrimary">
<Button
android:id="@+id/generateQ"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:text="Generate"
android:textAllCaps="false"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/saveQ"
android:layout_width="80dp"
android:layout_height="50dp"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:padding="10dp"
android:src="@drawable/ic_baseline_save_alt_24" />
<ImageView
android:id="@+id/shareQ"
android:layout_width="80dp"
android:layout_height="50dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:padding="10dp"
android:src="@drawable/ic_baseline_share_24" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/scanQR"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@color/colorPrimary">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/bg_qr"
android:paddingLeft="100dp"
android:paddingTop="5dp"
android:paddingRight="100dp"
android:paddingBottom="5dp"
android:text="Scan"
android:textColor="#FFFFFF"
android:textSize="20sp"
/>
</RelativeLayout>
</LinearLayout>
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/bannerAds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/bannerAd"/>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:focusedByDefault="false"
android:visibility="visible"
tools:context=".MainActivity">
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:cursorVisible="true"
android:hint="Text/URL Here...!"
android:textAlignment="center" />
<ImageView
android:id="@+id/code"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_below="@+id/edit_text"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp"
android:src="@drawable/qr" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/bannerAds"
android:layout_marginBottom="5dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_margin="10dp"
android:background="@color/colorPrimary">
<Button
android:id="@+id/generateQ"
android:layout_width="120dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:text="Generate"
android:textAllCaps="false"
android:textColor="#FFFFFF"
android:textSize="15sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/saveQ"
android:layout_width="80dp"
android:layout_height="50dp"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:padding="10dp"
android:src="@drawable/ic_baseline_save_alt_24" />
<ImageView
android:id="@+id/shareQ"
android:layout_width="80dp"
android:layout_height="50dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_margin="10dp"
android:background="@drawable/bg_qr"
android:padding="10dp"
android:src="@drawable/ic_baseline_share_24" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/scanQR"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="10dp"
android:background="@color/colorPrimary">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:background="@drawable/bg_qr"
android:paddingLeft="100dp"
android:paddingTop="5dp"
android:paddingRight="100dp"
android:paddingBottom="5dp"
android:text="Scan"
android:textColor="#FFFFFF"
android:textSize="20sp"
/>
</RelativeLayout>
</LinearLayout>
<com.google.android.gms.ads.AdView xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/bannerAds"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adSize="SMART_BANNER"
ads:adUnitId="@string/bannerAd"/>
</RelativeLayout>