2017년 3월 4일 토요일

Is it possible to create a QR code with app inventor?


I am creating an application where I want to pass information to another mobile device from my app inventor project. It is a simple text string. I want my app inventor program to create a QR code on the screen that could them be scanned by the other device. Any ideas or suggestions would be much appreciated.

--
Although a QR code is likely not the most efficient way to pass information from one device to another (Bluetooth or the Near-Field functions are likely better), it is easy to create a QR code.
First create an activity starter.  Set the properties to what's inside the quotation marks:
Action: "android.intent.action.VIEW"
Set the "[YOUR TEXT]" part of the DataURi to whatever you want the generated QR code to say.

Then set something to trigger the activity starter, like a button.

--
yes, the Google Chart API is a nice API, however it is officially deprecated, but it is still working, see also https://google-developers.appspot.com/chart/image/
here is an alternative solution with some JavaScript https://puravidaapps.com/qr.php

--

댓글 없음:

댓글 쓰기