Q&A
Q. If I am developing an app that places images in a ListView or GridView, should I use BitmapFactory.Options to check the image size for each image?
A. If you do not have control of the size of the images coming from the server, then checking size is important. If you do have control over the images, then the ideal scenario is to have appropriately sized images. You can also check out open source projects such as Thumbor for resizing images from a server and Picasso for handling images in code. See https://github.com/globocom/thumbor/wiki and https://github.com/square/picasso.
Q.Is VideoView the only way to play a video on Android?
A. No, VideoView is one of the easier ways to play a video. You can also play a video via an ActionView intent or by using MediaPlayer. To show a video using an intent, create a Uri and an Intent as follows:
Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(videoUri, "video/mp4"); startActivity(intent);