[android-developers] Re: Logcat debug level --help
Hello All, Thanks for your inputs, Filtering of log message helped me lot to debug. Regards, Yash. -- Forwarded message -- From: Michael Date: Thu, Apr 7, 2011 at 7:01 PM Subject: [android-developers] Re: Logcat debug level --help To: Android Developers try adb logcat *:e On Thu, Apr 7, 2011 at 11:07 AM, Skyler Kaufman wrote: > Hello Yash :) > > You can pass logcat a filter specifying which level of event to show, in > the form tag:priority, where the priority is given as the single letter > prefix you have mentioned. Sounds like you don't want to specify a tag, so > you can just use * (all tags). For example, to show only error messages: > > $ logcat *:E > > There's some documentation on filters for logcat at > http://developer.android.com/guide/developing/debugging/debugging-log.html#filteringOutput > > > ~skyler > > On Thu, Apr 7, 2011 at 6:12 AM, Yash Jain wrote: > >> 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. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "android-platform" group. >> To post to this group, send email to android-platf...@googlegroups.com. >> To unsubscribe from this group, send email to >> android-platform+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/android-platform?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Find Command Prompt on Android Filesystem
Hello All, Can you please help me in finding the command prompt on android filesystem. I am trying to automate few task, the procedure is i will find the command prompt (#) and then execute few commands but to encounter command prompt i have to press enter, could you please let me know how to simulate enter key in shell scripts. Can anyone help me to supress the messages to be displayed on console for android file system. Thanks and Regards, Yash. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] captureDispatchPointer and captureDispatchKey - Monkey
Hello All, I have a question ??? I want to know how captureDispatchPointer and captureDispatchKey works. basically i want to create an event(tap) on touchscreen at a desired co-ordinates. I searched and ended up in the below description but i do not understand what these arguments corresponds to. captureDispatchPointer( downTime, eventTime, action, x, y, pressure, size, metaState, xPrecision, yPrecision, device, edgeFlags) captureDispatchKey(downTime, eventTime, action, code, repeat, metaState, device, scancode) Any Links/Documents will be helpful. Thanks, Yash. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help writing a sample Android App
Hello All, I am new to java and android Apps. Basically i want to test weather a media file can be played on my mobile device so to do this i wanted to write android application which does play a media file and if it fails then it throws an error. I tried writing an application which will playback from a file 1.mp3 stored on my SDCard, but i am not able to execute it on a mobile. Please find the sample code below, package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import android.media.MediaPlayer; import java.io.IOException; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ private MediaPlayer mPlayer; public String path = "\1.mp3"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); setContentView(tv); mPlayer = new MediaPlayer(); try { mPlayer.setDataSource(path); mPlayer.prepare(); mPlayer.start(); } catch (IOException e) { tv.setText("Error Creating media Player"); } } } Please let me know , if i am on a right direction. Any tutorial or a sample code to playback a video/audio file stored on a SDCard will be helpful. Thanks and Regards, Yeshpal Jain. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Running .apk on Board
Hello Guys, I have a dumb question !!! I have created an android application in eclipse but i do not know how to run the same on Board. I tried copying test.apk to /system/app/. but my application is not visible in menu. Please help me on running an application on Board. Also i tried to run the same on a emulator i receive a mesage "Waiting for HOME ('android.process.acore') to be launched..." and then nothing happens on the emulator(oops It Hangs !!!) References: I followed the below link to create a sample project. http://www.vogella.de/articles/Android/article.html#first Thanks and Regards, Yash. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Howto: Run the Test cases available in framework
Hello All, I have a dumb questions ??. [?] I want to make my testing automated, so i am trying to explore on the test frame work available on the android. I need help on how to run the testcases available in frame work through command line. for ex: /frameworks/base/graphics/tests/graphicstests/src/android/graphics/GraphicsPerformanceTests.java Thanks and Regards, Yeshpal Jain. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en<<346.png>>
[android-developers] Logcat debug level --help
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. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en