Archive for the 'android' Category

13
Aug
11

viewing log output on Android


If your app’s dying like crazy, or you want to see your own debugging output, and you want to see the logs/stacktrace, do this:

  1. make sure your AVD’s started
  2. open a command prompt and write adb shell
  3. write logcat

13
Aug
11

android set color from xml file


Here’s how you set a color, defined in your colors.xml, from code:


textView.setTextColor(getResources().getColor(R.color.red));




Blog Stats

  • 223,848 hits