Android Question Ignore error message

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

please...
It is possible ignore specified error message...

I get error message in standard msg box and I can disable this message box, because the error is not important....is it possible?

Thank you
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
Yes Giga, please...

I get this error message:
B4X:
java.lang.RuntimeException: Object should first be initialized (JavaObject)

This message is in messagebox and I want only know, please, if it is possible to disable msg window when the error start.....

Thank you very much
best regards

p4ppc
 
Upvote 0

RandomCoder

Well-Known Member
Licensed User
Longtime User
You should initialise the object before attempting to use it, but if for whatever reason you don't want to do this, you could place the code in a Try, Catch block which you would then be able to ignore the error.

Regards,
RandomCoder.
 
Upvote 0

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear Erel and Random coder,

I have used both = Try Catch block and JO.isInitialized and the message is not opening,
I think that this solution for eliminatig error message is OK

It is SOLVED
Thank you very much for your help...
p4ppc
 
Upvote 0
Top