Getting log information

by sudheer » Sun, 07 Sep 2008 09:26:46 GMT

Sponsored Links
 Hello All

I am running an application in emulator. how can I get the logs re
directed to a file in android file system (say ../../tmp/mylog.txt)??
any idea?
I tried using adb logcat -f "file" option but it isn't returning any i doing something wrong?
or is there a method to do this.

my scenario is
I install an application using install command
I execute the application (using activity manager)
I need to get the adb logs generated for this application execution to
a file in android file system
which I will recover later to my work station.

I  tried using adb logcat -f option and it didn't dump any data into
the file.
whats the best way to do this?

any pointers will be appreciated.

Best Regards,


Other Threads

1. Disable 3G (UMTS) via code

Is it possible to disable 3G network via code? I know how to disable
3G using phone settings, but I want to do this via code. Is it

Our application is working fine on GPRS (2G) and sometimes on 3G ( it
depends on the strength of UMTS signal), but when the 3G signal is
week, network connection is stacked sometimes for 10-15 seconds. As
you may assume, it's critical for our game.

I am using a simple socket Tcp connection. You can see my code, which
is quite simple, below:

sc =,
is = sc.getInputStream();
os = sc.getOutputStream();
//sender extent thread and do all network job

//Trying to read data

if (is != null)
                availiable = is.available();
                if (availiable>=5)
                        byte[] buf = new byte[5];

Everything is working fine on the emulator and on 2G, but with 3G I
sometimes get: 'is.available()=0' for 10 -15 seconds (I tested this
using device debugging).

It seems that 3G network isn't stable. It happend to most of our users
that downloaded our application from the android market.

Can anybody help me out here?



2. How to listen for outside touch events for PopupWindow

I want to listen for outside touch events for PopupWindow so that i
can dismiss it when user touched outside of popup window. I'm calling
popupWnd.setOutsideTouchable(true); but how that popup window is
informed of outside touch events?


3. Send files as MMS

4. building android for dream and for a new target

5. Sending data to an application running of device from host

6. 3D in android

7. Can't display MyLocationOverlay