Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8914631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:46:14+00:00 2026-06-15T04:46:14+00:00

I do have an activity class, with logic mostly residing in other classes in

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:46:16+00:00Added an answer on June 15, 2026 at 4:46 am

    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!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Activity class which has an attribute that references an AsyncTask instance
I have a non-Activity class (let's call it NonActivity) that needs to post a
So i have this activity : public class settings_dock extends Activity { AlertDialog alert;
I have class A which extends the Activity class. This class is in package
I have a problem to test my non activity-class which need the context of
I have a list of objects called Activity: class Activity { public Date activityDate;
I have 4 buttons that when click starts a new activity class. This works
I have an activity view that I have added in AppDelegate class to tap
I have the next code: class Printer{ Activity activity; public Printer (Activity activity) {
I have a Class A which runs activity via startActivityForResult by passing Intent to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.