Android Question showing object converted to a string

Makumbi

Well-Known Member
Licensed User
more also after installing version b4a. 9.0 i getting error at the log

Log(jp)

showing object converted to a string this is a programming mistake please help
 

DonManfred

Expert
Licensed User
Longtime User
How could we help? You are giving us around ZERO Informations.

What is jp? Where is the project showing the issue?
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
This is not related to B4A 9.0.


I get this this when attempting to Log output from an Object .. ie FusedLocationProvider example

B4X:
Log("Last Known Location : " & flp.GetLastKnownLocation)

You get ... Object converted to string. This is probably a programming mistake (Warning #7)


This does not happen when using Smart String Literals.https://www.b4x.com/android/forum/threads/b4x-smart-string-literal.50135/

Try ...
B4X:
Log($"${jp}"$)

Or disable warnings (not recommended) https://www.b4x.com/android/forum/threads/compiler-warnings.28950/#content
 
Last edited:
Upvote 0

mangojack

Expert
Licensed User
Longtime User
it just print the string jp. No problem here...
I had to edit my post .. I left out the Curlys ..:)

Without seeing any of his code .. it is hard to know what 'jp' is .. but I think it will be an object of some sort.
 
Upvote 0

Makumbi

Well-Known Member
Licensed User
Aggree. See #2 ;-)
i have used this
Log($"${jp}"$) example and it works thank you very much

But also i wanted to know the steps of implementing fire base messaging in this new version of b4a9.0 because i want to send out messages privately to my customers to receive notifications on my app even wen it is not opened because currently i do not receive any message not until i open my app thank you
 
Upvote 0
Top