Android Question JDBC - b4j x b4a

Geraldo Silva

Member
Licensed User
Erel,
All right ?
Could you help me I'm using JDBC Sql in Mysql, but it doesn't run in Obsfuscated execution mode, but it runs normally in Debug mode


1650072094199.png

1650072122114.png
 

MicroDrie

Well-Known Member
Licensed User
Longtime User
You are aware that the underline character must be used with care? Obfuscation of a variable name is prevented by the _ character. For example, a reserved function word is preceded by an underline character in a variable with, for example, get_rect seen as the variable _rect.
 
Upvote 0

Geraldo Silva

Member
Licensed User
You are aware that the underline character must be used with care? Obfuscation of a variable name is prevented by the _ character. For example, a reserved function word is preceded by an underline character in a variable with, for example, get_rect seen as the variable _rect.


Hello, how are you
Thanks for the answer,
In fact, my app doesn't run when it's installed on the phone.
It only runs in development mode.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
but it doesn't run in Obsfuscated execution mode, but it runs normally in Debug mode
Without any programming code, we can only guess at the cause. The only thing you could try is to test the program without Obfuscation. If you don't want to share the full program, you could also add aditional display of a numbered message box in various places to get an idea how far the program works without problems.
 
Upvote 0

Geraldo Silva

Member
Licensed User
Without any programming code, we can only guess at the cause. The only thing you could try is to test the program without Obfuscation. If you don't want to share the full program, you could also add aditional display of a numbered message box in various places to get an idea how far the program works without problems.
So friend worse than not making a mistake
But I agree with you, I'm sending the file. could you please help me
 

Attachments

  • mdllistadedizimos.bas
    3.6 KB · Views: 211
  • mdlprincipal.bas
    4.5 KB · Views: 223
  • Starter.bas
    1 KB · Views: 234
  • sy.rar
    1.5 KB · Views: 221
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
Can you do the following. Under your program you first do an export to a zip file under the file menu. You can then extract this zip file to another file location. There you remove all information that you do not want to display, such as passwords, url and things like that. Then you do another export to zip file in the file menu and place that second zip file in the forum so that we also have the layout without disclosing sensitive information.
 
Upvote 0

Geraldo Silva

Member
Licensed User
Can you do the following. Under your program you first do an export to a zip file under the file menu. You can then extract this zip file to another file location. There you remove all information that you do not want to display, such as passwords, url and things like that. Then you do another export to zip file in the file menu and place that second zip file in the forum so that we also have the layout without disclosing sensitive information.
Sorry,
I already sent above.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
Sorry,
I already sent above.
No. You didn't understand.

The correct way to put your code in the forum to test is:
- don't put your code as image, but as text
- create a small project that has the same error as your full project
- avoid to put password and real urls in the example
- use the "File / Export to Zip" menu in the IDE or
- in B4XPages project use the link in the B4XMainPage module:
'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip
In fact, my app doesn't run when it's installed on the phone.
Do you see errors in the logs (or unfiltered logs)? Which errors?
 
Upvote 0
Top