52821

Log in android development

Question:

I am using android.util.Logfor logging purposes in my Android application. In short my code is as

import android.util.Log; ... private static final String TAG = "myActivity"; // Creating a tag ... public void onCreate(Bundle savedInstanceState) { .... Log.i(TAG,"My INFO_msg should be print "); }

The problem is that, when my application runs, this LOG message doesn't appear on the console window. Is it printed on another window ? If my work is to print LOG messages on console window then what will be the process.

Answer1:

You can find it in the LogCat window (Window > Show view > Other, Android > Logcat)

Recommend

  • How to automatically Open the app without user action on receiving a push on Android
  • Not able to Sustain value of a string variable after leaving the class
  • onInvitationReceived Not Being Called
  • Call TextToSpeech Activity Without Any UI Display
  • NHibernate manually control fetching
  • Git describe fails to return most recent annotated tag
  • NSScanner Loop Question
  • presentShareDialogWithParams posts to FB wall, but callback handler results say error
  • how to adjust image in a panel in Java swing?
  • Ajax Loaded meta Tags
  • Initializer list vs. initialization method
  • Control modification in presentation layer
  • Get one-time binding to work for ng-if
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • Fetching methods from BroadcastReceiver to update UI
  • Volley JsonObjectRequest send headers in GET Request
  • Possible to stop flickering java tooltip in heavyweight mode?
  • Validaiting emails with Net.Mail MailAddress
  • sending/ receiving email in Java
  • Javascript + PHP Encryption with pidCrypt
  • Eraser for UIBezierPath
  • Importing jscolor library in angular 2
  • AT Commands to Send SMS not working in Windows 8.1
  • Cannot Parse HTML Data Using Android / JSOUP
  • How to delete a row from a dynamic generate table using jquery?
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Proper way to use connect-multiparty with express.js?
  • Suggestions to manage Login/Logout transitions
  • JTable with a ScrollPane misbehaving
  • Getting Messege Twice Using IMvxMessenger
  • Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`
  • apache spark aggregate function using min value
  • unknown Exception android
  • EntityFramework adding new object to nested object collection
  • Checking variable from a different class in C#
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Sorting a 2D array using the second column C++
  • How can i traverse a binary tree from right to left in java?
  • failed to connect to specific WiFi in android programmatically
  • How can I use threading to 'tick' a timer to be accessed by other threads?