Friday, June 3, 2011

¿How to capture a screenshot programmatically ?

View myView = findViewById(R.id.form);
Bitmap bmp = Bitmap.createBitmap( myView.getMeasuredWidth() , myView.getMeasuredHeight() , Config.ARGB_8888);
Canvas canvas = new Canvas(bmp);
myView.draw(canvas);
try {
FileOutputStream out = new FileOutputStream( "/sdcard/screen.jpg" );
bmp.compress(Bitmap.CompressFormat.JPEG, 100, out);
out.flush();
out.close();
} catch (Exception e) {

e.printStackTrace();

}

Thursday, May 12, 2011

Google I/O 2011: Android Protips: Advanced Topics for Expert Android App Developers

Google I/O 2011 sessions

Some advices to take into account when you are devoloping applications for Android.

http://www.youtube.com/watch?v=twmuBbC_oB8

Wednesday, April 20, 2011

UI Design Patterns

In this video you can listen some recommendations from google developers to create more usable android applications.

Monday, April 18, 2011