This is intended to be a set of instructions for creating a stand alone app (APK file) from your Basic Program. Below we will work out the actual steps involved and (with your real world feedback) use this as an outline for a tutorial video on the subject.
It might be best to view this post on your pc or a tablet with a large screen.Step one: Install Android Studio on your PC.
- Android Studio is available for Windows, Mac and Linux.
- Installing Android StudioStep Two: Export your APK Project
- Assuming you have compiled and tested your Basic program, go to the Main Console Screen. This is the first screen when you start Mintoris Basic. Touch the screen and select Export APK Project.
- Once on the Export screen, select the iCode file for your program. At this point most of the rest of the fields on the screen will be filled in with defaults.
- You must enter a company name. You probably want to use the same company name for all your apps. (or not).
- If your program uses a data folder select it. You must put all your data files, images, sound files or whatever under a single directory under the Mintoris.Basic/Data folder. You can only select one data folder to be packaged with your APK.
- Select private or public storage. Private storage is selected by default. If you use private storage, only your app will be able to access your data. You will not be able to view or exchange data with this private storage. If you uncheck private storage a public storage folder field will appear. This will be the name of the Root data folder in the public storage folder (what used to be called the sdCard). By default this folder is named the same as the name part of your iCode file. You may change it to whatever you like. This folder will be visible on your external storage (sdcard) and anyone can view or modify it's contents.
- You might want to check the Update data when version changes checkbox. On the first load it will not make a difference. Your data folder always gets unzipped and created on first load. But you may want to update your data when you change the version number. Maybe your image files have changed or whatever.
- Select your permissions. If you use a feature (like Bluetooth) you must check the permission. If you go to run your program and you get a forced close, then you probably didn't check a permission you should have.
- When done, press Export on at the bottom.Step Three: Move your ApkProject.zip file to your PC
- Your APK project should now be stored as a zip file in your Mintoris.Basic/iCode folder. If your program was named myprogram.icode, then your APK project file will be named myprogram.zip right next to your iCode file.
- I use WiFi File Explorer PRO
to transfer files from my Android devices to my PC. It makes life so much easier.
- Place your project file (myprogram.zip) in your StudioProjects folder on your PC. This is the Android Studio folder where all your APK projects will go. Unzip your project file here.Step Four: Import and Build your APK
- Start Android Studio. From the launch screen click Import Project and select the project folder under StudioProjects that you just unzipped.
- Let Android studio load your project and finish all it's tasks. Then Select Build->Generate Signed APK. The first time you compile an app you will have to Create New keystore. This is the digital signature used to sign your APK. After the first time you can just select your saved keystore. Your APK is then output.After you do this the first time it gets really easy.