Accessing Images in Android External Storage


To access the list of media files (such as Audio, Images and Video) from an External Storage device in android, the Media provider can be used. An example of using the Media provider to access all Image type files on the External Storage: Cursor mCursor = getContentResolver() .query( MediaStore.Images.Media....

Read More


Starting new Activity in Android


From an Activity To start a new Activity from another Activity: Intent intent = new Intent(this, OtherActivity.class); startActivity(intent); From a Service Intent intent = new Intent(this, OtherActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); (adsbygoogle = window.adsbygoogle || []).push({}); From somewhere else To start an Activity...

Read More