I do have an activity class, with logic mostly residing in other classes in particular the Player class. I had a bug I decided to trace by logging, and the logging messages I added never showed up, so I went up the calling stack until they started showing up, until I found the last message that showed, when the player touches the screen here:
public boolean onTouch(View v, MotionEvent event) {
Log.i("GA.onTouch()", "phase == false");
Player.test();
return true;
}
There was no comprehensible reason why the call wouldn’t succeed without error, so I created this test function:
public static void test() {
Toast.makeText(mParent, "so weird", Toast.LENGTH_SHORT).show();
Log.i("Player.test()", "");
}
the toast shows, but not the log. I do not wish to debug by toast, it’s quite cumbersome, could anyone tell me what could possibly cause the log call to fail/not register/whatever it is it does?
Thanks!
Log._does not work for empty messages. Do not know why 🙂Log.i("Player.test()", "hello..It will show");You need to give some message there!