I have variables/fields in my activity which are of type float.Is there any way to log there values in logcat as Log.w,Low.v,Log.i are not helping me...
The tag of a log message is a short string indicating the system component from which the message originates (for example, "View" for the view system). The priority is one of the following character values, ordered from lowest to highest priority: V : Verbose (lowest priority) D : Debug.
Log.d("ADebugTag", "Value: " + Float.toString(myFloatVar));
Log.d("tag", "Value: " + float);
it will convert to string
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With