Skip to main content

Posts

Showing posts from November, 2013

Android: To Display the system log inside your application

To display the system log inside your application, filtered for your own application-name, you could insert the following as an inner class: private static final String LogCatCommand = "logcat ActivityManager:I *:S" ; private static final String ClearLogCatCommand = "logcat -c" ; private class MonitorLogThread extends Thread{     public MonitorLogThread(){     }     BufferedReader br ;     @Override     public void run() {         try {             Process process;             process = Runtime.getRuntime().exec( ClearLogCatCommand );                 process = Runtime.getRuntime().exec( LogCatCommand );                 br = new BufferedReader ( new InputStreamReader (process.getInputStream()));                 String line;                 // Check if it matches the pattern                 while (((line= br .readLine()) != null ) && ! this .isInterrupted()){                 // Fi

Error : Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.ToolsLocator.

Error: Plug-in com.android.ide.eclipse.adt was unable to load class com.android.ide.eclipse.adt.ToolsLocator. An error occurred while automatically activating bundle com.android.ide.eclipse.adt Solution If you have not added ADT then do the Following steps. Help -> Add New Software -> Add. In  Name  option write ADT And if you have installed ADT in your Computer then add its path in  Location  like jar:file:/D:/ADT-16.0.1.zip!/ And then ADT will install. And if there is a problem try to remove that adt and install again. remove the ADT repo (Window->Preferences->Install/Updates->Available Software Sites) add Indigo repo ("http://download.eclipse.org/releases/indigo") run updates add ADT repo again and install Restarting the application (Or) Restarting the computer. Some projects did not load.I think reinstalling ADT should do the trick. This problem is also caused by updating plugin. I have done this in the following way.  Help >