Android Question Change base *.java before compile

Status
Not open for further replies.

M-CAP7AIN

Member
Hi ,I need change this section of code before compiling , this section generated with IDE.

B4X:
public static void initializeProcessGlobals() {
             try {
                Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
}

To
B4X:
Class.forName("CLASS.NAME" + ".Main" ....

I think this section give current class package name , application package name for this section not truešŸ¤”.

Thanks.
 

M-CAP7AIN

Member
i changed AndroidManifest.xml package manually:

AndroidManifest.xml -> manifest -> package="XX.YY"
AndroidManifest.xml -> manifest -> application -> android:name="ZZ.CC"


when StartActivity with intent , this section:
Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null);

return "XX.YY" package instead of "ZZ.CC" classname.

i find this section at (L*gic.*ll).[Reverse Engineering]šŸ˜Š
 
Upvote 0
Status
Not open for further replies.
Top