App Inventor Code Snippets
網址:http://puravidaapps.com/snippets.php
Canvas
Web Viewer and App Inventor
-
How to read a HTML page stored as asset inside of App Inventor
-
development path: file:///mnt/sdcard/AppInventor/assets/<檔名>.html
-
production path: file:///android_asset/<檔名>.html
-
-
App Inventor and animated gifs
-
development path: file:///mnt/sdcard/AppInventor/assets/<檔名>.gif
-
production path: file:///android_asset/<檔名>.gif
-
與網頁交換字串:
webviewstring.html
以 javascript 排序:
以網頁中 javascript 計算最大值:
max.html
Activity Starter
啟動 QuickMark APP:
啟動 Waze APP,若未安裝,詢問是否安裝,若回答「確定」,則至 Play 商店安裝此 APP:
Other Stuff
-
How to build a simple compass app with App Inventor
-
An enhancement to the compass app to provide additionally the direction to a waypoint
-
How to trigger something if device is facing down
-
How to create a nested listpicker
-
How to get a date in format YYYY-MM-DD
-
How to get leading zeros in App Inventor
-
How to get the day of year
-
How to parse a result
-
How to use the Sound Recorder
-
New formatting possibilities with the Notifier
-
New formatting possibilities with the Label
-
How to play a random sound when the device is shaken
-
How does the lookup in pairs block work?
-
How to pick a random item from a list without picking duplicates?
-
How to take a picture or pick an image and share it
-
A workaround for the decimal separator problem
-
How to get european or chinese characters from Web ResponseContent
-
How to use the YandexTranslate component
-
How to read a file stored as asset in App Inventor
-
How to keep the screen on
-
How to create a directory