 <p>Warning: I may be totally misunderstanding you, but if all you want is a log file, why sweat?</p> <p>Put this in a bat file (change the path to your tools directory, and yourappname is of course your app's name):</p> <pre><code>cd "C:\devAndroid\Software\android-sdk-windows-1.6_r1\android-sdk-windows-1.6_r1\tools" adb logcat -v time ActivityManager:W yourappname:D *:W &gt;"C:\devAndroid\log\yourappname.log" </code></pre> <p>Then in your code just do something similar to this:</p> <pre><code>Log.d("yourappname", "Your message"); </code></pre> <p>To create the log, connect the USB cable and run your bat file.</p> <p>Regards</p>