Logcat debug level --help

by Yash Jain » Thu, 07 Apr 2011 21:13:00 GMT


Sponsored Links
 Hello All,
I have one dumb question,
when i read a logcat message through command logcat -d, i will get a list of
all events with the prefix I, V, D, W, and E which represent *I*nformation,
*V*erbose, *D*ebug, *W*arning and *E*rror.
I am interested only to display the error messages in the log file( logcat
-f log_error.txt) or to the console( logcat -d).
Can anyone help me to print only the error log messages.

Thanks in advance.

Regards,
Yash Jain.

-- 



Re: Logcat debug level --help

by Michael » Fri, 08 Apr 2011 07:01:48 GMT


 try adb logcat *:e




-- 


Sponsored Links


Re: Logcat debug level --help

by Yash Jain » Tue, 12 Apr 2011 13:47:02 GMT


 Hello All,
Thanks for your inputs, Filtering of log message helped me lot to debug.

Regards,
Yash.


---------- Forwarded message ----------
From: Michael <michaeldh...@gmail.com>
Date: Thu, Apr 7, 2011 at 7:01 PM
Subject: [android-developers] Re: Logcat debug level --help
To: Android Developers <android-developers@googlegroups.com>


try adb logcat *:e





>> 



Other Threads

1. Viewing more details in list item using Listactivity and onListItemClick

Hi,

I'm new to Android, and am using ListActivity to view a list of items.
I would like to click on an item and expand that clicked list item to
show more details. I was able to get the click triggered using
onListItemClick, but don't know how to create an expanded view upon
clicking. Any help woudl be greatly appreciated.

Thanks.

--~--~---------~--~----~------------~-------~--~----~

2. ClassCastException if the same lib is used

Hello,

Hopefully someone can help me. I do have e realy strange problem.

I have 4 Projects:
1. Is the Application it self
2. Is a Library with a StatisticView
3. and 4. Is a spezial subProject. The views in here will be used by
the main Application.

All Projects (1., 3. and 4.) needs Project 2.

Project 1. 3. and 4. have the same shared user id (with out a can't
start an activity form an other Project)

I have a TabView.
1. Tab is a view out of the main Application
2. A View (StatisticView out of Project 3)
2. A View (StatisitcView out of Project 4)

Now the Problem.

I can open the StatisitcView (in Tab 2) without any problem, but do i
tap on Tab 3 the following exception will be thrown (same effect when
i start with Tab 3 and then Tab 2):

07-28 22:45:16.605: ERROR/AndroidRuntime(982): Uncaught handler:
thread main exiting due to uncaught exception
07-28 22:45:16.715: DEBUG/dalvikvm(982): GC freed 3225 objects /
205560 bytes in 99ms
07-28 22:45:16.745: ERROR/AndroidRuntime(982):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{ch.fhnw.aswissbook.plugin.sms/
ch.fhnw.aswissbook.plugin.sms.gui.ActDetailsSMS}:
java.lang.ClassCastException:
ch.fhnw.aswissbook.gui.statistics.StatisticView
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2140)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.ActivityThread.startActivityNow(ActivityThread.java:1988)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
122)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.LocalActivityManager.startActivity
(LocalActivityManager.java:335)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.widget.TabHost$IntentContentStrategy.getContentView
(TabHost.java:592)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.widget.TabHost.setCurrentTab(TabHost.java:302)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:118)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:268)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.View.performClick(View.java:2083)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.View.onTouchEvent(View.java:3497)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.View.dispatchTouchEvent(View.java:3152)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:809)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1085)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.Activity.dispatchTouchEvent(Activity.java:1873)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.os.Handler.dispatchMessage(Handler.java:88)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.os.Looper.loop(Looper.java:123)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
java.lang.reflect.Method.invokeNative(Native Method)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
java.lang.reflect.Method.invoke(Method.java:515)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
dalvik.system.NativeStart.main(Native Method)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): Caused by:
java.lang.ClassCastException:
ch.fhnw.aswissbook.gui.statistics.StatisticView
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
ch.fhnw.aswissbook.plugin.sms.gui.ActDetailsSMS.onCreate
(ActDetailsSMS.java:37)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
07-28 22:45:16.745: ERROR/AndroidRuntime(982):     ... 29 more

Please help me.

Thanks a lot for your replay

--~--~---------~--~----~------------~-------~--~----~

3. Network Status API

4. developer.android.com is not opening..

5. SSL/TLS implementation?

6. android magnify feature similar to iphone

7. WebView and HTTP Post requests