Posts Tagged ‘dev’
Bitmap bmp = BitmapFactory.decodeFile(Environment.getExternalStorageDirectory()
+ strStoragePath+strLocalFileName+strJPGext);
ivThumbnailPlaceHolder.setImageBitmap(bmp);
That is the code.
This “Environment.getExternalStorageDirectory()+ strStoragePath+strLocalFileName+strJPGext” actually meant the file path, for example : “mnt/sdcard/yourfolder/blabla.jpg”.
Android Tutorial : Log.v – Show variable to LogCat (Like system println, echo, or console writeLine)
Posted April 17, 2012
on:final String TAG = “MyActivity”;
Log.v(TAG, “Index=” + intNumber);
Screenshot of use of log v command
public static int getMetricDPI(Activity myActivityReference)
{
//created by Erwin Fransiscus
//get display DPI
DisplayMetrics metrics = new DisplayMetrics();
myActivityReference.getWindowManager().getDefaultDisplay().getMetrics(metrics);
return metrics.densityDpi;
}
it returns integer
I’ve tried several tutorial to create splash screen and most of them does not work.
And somehow i found this indonesian link website and it is work.
http://pratamawijaya.com/programming/programming-membuat-splash-screen-pada-android
so if someone need a working one, you can visit the link.
and this is the english google-translated link for the website above : http://translate.googleusercontent.com/translate_c?hl=en&rurl=translate.google.com&sl=id&tl=en&twu=1&u=http://pratamawijaya.com/programming/programming-membuat-splash-screen-pada-android&usg=ALkJrhgvoM_ev8pdNZt8ZHcPbcKLH7T8JQ