Error wile calling exec("logcat");

by Arun » Tue, 09 Mar 2010 23:27:33 GMT


Sponsored Links
 Hi All,

I am trying to collect the logcat logs from an application, I created
a thread and run the following code

Process pProcLogMain = Runtime.getRuntime().exec("logcat -f
logcat_main_2.txt");

It creates the file but with no content. And, I get the following
error:
Diag_LSM: Diag_LSM_Init: Failed to open handle to windiag driver,
error = 13

I have used similar code as in
 http://code.google.com/p/android-random/source/browse/trunk/Logcat/src/org/devtcg/tools/logcat/LogcatProcessor.java 

Appreciate if you can help me how to come over this.

Regards,
-Arun

--



Other Threads

1. Reflection / backward compatibility question

Hi all. The examples at...

http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html

...show some good ideas of testing methods against incompatible
versions.

But the method I want to call is DisplayMetrics.densityDpi(); (since
level 4) which returns an int value. None of these examples return any
values, they're all void.

How would I do this?

Thanks.

-- 

2. Wrong Position when using Big Images

Hallo,

i just stumpled over this:

In want to place an Image on the Bottom of the Screen, so i used an
RelativeLayout placed an ImageView in it:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
 android:layout_width="wrap_content"
android:layout_height="wrap_content" >

 <ImageView android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 android:layout_alignParentBottom="true" android:src="@drawable/hand"
android:layout_gravity="bottom"/>
</RelativeLayout>

My Emulator ist API Version 8, with Screen Dimension 480x800. The
Image in the HDPI Folder was 652x652 in 240DPI. If i run it with this
Image (hand) i always get the Image Scaled but it shows up much more
over the Bottom as i would expect. The Image has NO transparent Border
that may would cause this.

When i scale the Image down to apx. width of the Screen (480x480) i
get a result i would expect.

Anybody can explain why Android Layout like this ?

PS: I did not put any other Images of that in the folders "mdpi" or
"ldpi" as alternatives !

best regards,
Jens




-- 

3. Ringtone playing just once.

4. Pinch Zoom on Image

5. Customizing a RelativeLayout

6. SQLite Implementation

7. HTC Evo Brand New feat HTC HD 2 and HTC touch Pro