Search code examples
androidlogcat

printing values of variables in logcat for debugging in android


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...


Solution

  • Log.d("ADebugTag", "Value: " + Float.toString(myFloatVar));