This tutorial is to show how to change the ApplicationPackage name for an app which contains multiple screens.
What? In this tutorial we'll create a simple app called testapp that will include 2 screens. We will change the default package name and will include a Button to switch from Screen1 to Screen2.
Why? Yo may have an app that was developed in MIT AI and published to Google Play Store. MIT AI uses package naming convention of appinventor.ai_YourEmail.YourAppName (where YourEmail is your google email e.g. jdoe01). You can easily import this app into AppyBuilder, but that will cause the package name to be changed. For this reason, we can use feature below to change the AppyBuilder default package name and use same package name that was used in MIT AI.
How? Image below shows how to change the defaykt package name using ApplicationPackage property (only be visible to Scrreen1 which will globally apply to entire app).
Let's name our app testapp and attempt to change default package to com.example.testapp as shown below.
For this tutorial, we assume your email is firstname.lastname@example.org
Our simple app includes a button and clicking the button should start Screen2. The blocks to accomplish this is shown in image below. When opening another screen, we using convention of .appname.Screen2 (the screen that you want opened).
NOTE: If your email includes dot; e.g. jdoe.01, replace the dot with underscore; e.g. jdoe_01.testapp.Screen2
NOTE: If you change package name AND have multiple screens, switching screens won't work in companion. You'll have to create .apk
Attached .aia includes source for this tutorial
testapp.aia (4.2 KB)