round button
إترك رسالتك
How make Scan QRCode and Save it in Google Sheet using Google App Script Android Studio - مدونة أون لاين كلاو | Online Claw

إعلان فوق المشاركات

demo-image
Scan-QR-Code-Save-the-Data-in-Google-Sheet-300x169

How make Scan QRCode and Save it in Google Sheet using Google App Script Android Studio

شارك المقالة



Step 1: Create new app script project. Click here to create App Script.

Step 2: Copy and paste the below script which recieves scanned data  and inserts in Google Sheet.

Step 3: Change the url of the spread sheet. Make sure sheet is shared .[anyone with the link can view]
Step 4: Go to Publish -> Deploy as web app. A window pop up, here ->Who has access to the app: ->  Anyone,                   even Anonymous
            Publish/UpdateCopy the published URL and store it.

2. Android Part

Step 1: Create new Android App from Android Studio
Step 2: Go to build.gradle[module: app] and add following dependencies.
note: If you are downloading the source code and modifying. Please make sure build tool version and compileSdk Version in build.gradle[module: dependancyapp] are compatible with your phone. If you are developing from the scratch then no issues, just dependency,

Step 3: Let’s add all layout files.

activity_main.xml  This adds a button to Scan
Step 4: add the following code to MainActivity.java which scans and calls web service
أختر أكثر من طريقة للتعليق!!

ليست هناك تعليقات:

إرسال تعليق

إعلان اسفل المشاركات

كن على أتصال

أكثر من 600,000+ متابع على مواقع التواصل الإجتماعي كن على إطلاع دائم معهم

نموذج الاتصال

الاسم

بريد إلكتروني *

رسالة *

عدد الزوار حالياً

.com/count2/3lJO/bg_FFFFFF/txt_000000/border_CCCCCC/columns_2/maxflags_12/viewers_0/labels_1/pageviews_1/flags_0/percent_0/

الصفحات

a