I recently started using MIT App Inventor and while I am not someone who is learning to program I find it a pleasure to use.
However I have need to set a custom package for my applications and have not seen many suggestions short of hacking the .apk which is nonsense imho.
As a long time Java developer I decided to add the functionality to a local copy of ai2 and this is me sharing it forward.
The changes allow you to always set a package when you:
- Create new Project
- Copy Project via "Save Project as"
- Import Project from computer via *.aia files
This patch affects both client and servlet side of the code and I have tried to make it easy to maintain. Sorry but I only speak English as such I would expect others to add the required translations.
NOTE: The system expects the last octet of the package to be the Project_Name so remember to add that to what you type (I thought that a better option that appending it and giving you results you cant see). Removing the Project Name octet is just how the system works and is not part of this patch.
Example Usage: Project Name "Chat"
packageName: com.example.Chat
activity: com.example.Screen1
package: com.example
I've also added a Dark Mode theme I call StaryNight to help save our eyes , Access in Settings->Enable DarkMode
Dark Mode