Custom Package Name Problem

Hello Friends. I try To change default Package Name In Appinventor Using This Line.

appinventor.ai_ = com.mycompany.
change it successfully. but allways app name = user email name
why this error
see below the picture

This code has email and app name that gets attached to package name during compilation

1 Like

thank you for ur reply... how to fix it.. can you tell me

Ok but, You want to integrate custom package in your appinventor ?

First of all You need to add a textbox that will set the package name

i try to due it usung this cod in form.java

@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING, defaultValue = "")
@SimpleProperty(userVisible = false)
public void MyPackage(String myPackage) {

}

but i dont know after what i due

mmm, let me give this a try, Will inform you if I succeed

1 Like

see this i add it.. but not change my package name in my apk file..... :sleepy: :sleepy: :sleepy: :sleepy:

1 Like

Probably u need to do some more code but, as u know, appybuilder sources have this, (they are only for learning, not for commercial purposes)

Have a look at appybuilder sources at :

1 Like

hello friend im edit below the java files..

Compiler.java
FileImporterImpl.java
Form.java
MockForm.java
OdeMessages.java
Project.java
ant more... (all 10 java fils)

Normaly (no Custom PKG NM ) my apk is werking good.

this is my no custom package Name androidMinifast.XML same code

<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="29" android:compileSdkVersionCodename="10" package="com.mycompany.test.No_PKG_Name"......

look like this.
this normal APK File

after I add My custom Package name to my apk . this its androidminifast code

android:compileSdkVersion="29" android:compileSdkVersionCodename="10" package="com.sample.pkg" platformBuildVersionCode="29"

My custom Package name currectly Come To My apk androidminifast.xml
but Apk Is Not Open.

This My custom Package name Sample APK File

I have been trying this for 3 weeks
please can urs check my apks and support me..
Thanks

hello anyone can help me..
my first problem is No further change

appinventor.ai_ = com.mycompany.
change it successfully. but allways app name = user email name
why this error

But appinventor.ai_ = com.mycompany. i change com.mycompany_ now is comming to correctly my App Name

Here u see email is attached during compilation

1 Like

I always say you to look for a while at Appybuilder sources, Only if your builder is not for commercial purposes

See, here they modified it like

1 Like

normaly i wanna get my package Name Is com.mycompany.userEmail.appname

The second facility I need

THen, simply replace appinventor with ur company name

1 Like

i try it.. but this issu is comming se this pic281169270000d1fd73ff31ddc1865e5746cf313a_2_652x500

can u explain issue in words, I am confused :sweat_smile:

1 Like

oh yes :rofl: :rofl: :rofl: :rofl: here

In case someone is still looking for a solution then here it is:

4 Likes

I saw some mistakes in your changes...

Though it works.