This code has email and app name that gets attached to package name during compilation
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
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 :
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
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
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
i try it.. but this issu is comming se this pic
can u explain issue in words, I am confused
In case someone is still looking for a solution then here it is:
I saw some mistakes in your changes...
Though it works.
ckeck this file C:\AI2\AI2U\AI\WEB-INF\classes\com\google\appinventor\client\editor\youngandroid\blockly.js
};
/**
* Generate the beginning Yail code for an APK compilation (i.e., not the REPL)
*
* @param {String} packageName the name of the package for the app
* (e.g. "appinventor.ai_somebody.myproject.Screen1")
* @param {String} formName (e.g., "Screen1")
* @returns {String} Yail code
* @private
*/
Blockly.Yail.getYailPrelude = function(packageName