We had an interesting support question today. Is it possible to install an app created with AppStudio on an Android device without an internet connection?
We got to work to see if there was a way. We found two methods:
As a WebApp
WebApps are run using the browser. The challenge was to get the files for the app installed on the device so the Chrome Browser could open them. Here’s how we did it:
- In Preferences, set the Deploy Location to “Deploy to a local or DropBox public folder”. (You’ll need the full version: the demo does not allow this.)
- Also in Preferences, set “Local Path” to a convenient folder on your desktop.
- In AppStudio, Deploy your app. The runtime files will be copied to your Local Path folder.
- Connect your Android device. You should get a prompt on your desktop’s screen asking how you want to open the device. Choose Browse Filesystem.
- On the desktop, browse to the device’s Downloads folder.
- Copy your Local Path folder to your device’s Downloads folder.
- Start the browser on the device.
- Enter the following URL into the browser (assuming your Local Path ends in ‘app’):
- The app should now be running on the device. It can be bookmarked so you can run it again easily. So far, we haven’t been able to add the bookmark to the Home screen and start it there.
As a Native App
You can also compile the app as a native app using PhoneGap, then install it on the device. Here’s how:
- Compile the app using PhoneGap.
- Copy the resulting .apk file to the Downloads folder on the device, as in steps 4-6 above.
- Use a file browser on the device to navigate to the .apk.
- Click on the .apk file to install it.