Android Question Release (obsfucated) error and Sell app

kepler

Active Member
Licensed User
Longtime User
Hi,

I've tryed to compile my project in the release-obsfucated mode.

I'm getting:

Parsing code. 0.08
Compiling code. 0.20

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. 0.00
Generating R file. 0.08
Compiling generated Java code. Error
javac 1.7.0_60
src\gate13th\earthquakelive\world.java:21: error: code too large
public static String _process_globals() throws Exception{
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Can someone point me out to the possible error?

Also, I'm thinking of selling - by a small fee - the app.

Does the licence Library protects my app?
Does Play Store charges any fee?

I'm a little bit lost...

Kind regards....and sorry for the trouble...

Kepler
 

eurojam

Well-Known Member
Licensed User
Longtime User
Does Play Store charges any fee?
yes they will take 30%, which they add on your price. If you sell your app for 1 Euro, it will cost 1,33 Euro in the store. If your app is for free, there will no additional fees.
 
Upvote 0

kepler

Active Member
Licensed User
Longtime User
Thanks eurojam :)

Meanwhile, I've solved the problem of the size of the module "world".

But my Action Bar Menu doesn't work with the obfuscated code :(

Kepler
 
Upvote 0

kepler

Active Member
Licensed User
Longtime User
Hi,

Here's the problem... I've remembered the rules for obfuscating. I was calling one of the menus like this:

B4X:
AB.AddButton(LoadBitmap(File.DirAssets, "home.png"), "", 4, 1, "Home", "")

The action parameter "Home" is turned into a string - so it's not assumed as the defined action. If we, however, put "Home_m" (notice the "_", no blank spaces) as the action, the string is not modified, and everything goes right :)

Kind regards,

Kepler
 
Upvote 0
Top