Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

Whats are assets?How to Access assets ?

While the res directory contains structured values which are known to the Android platform, the assets
  directory can be used to store any kind of data.

You access this data via the AssetsManager which you can access the getAssets() method.
  The AssetsManager class allows to read a file in the assets folder as InputStream with the open()
  method. The following code shows an example for this.
  // Get the AssetManager
  AssetManager manager = getAssets();
  // Read a Bitmap from Assets

open ="logo.png");
  Bitmap bitmap = BitmapFactory.decodeStream(open);
  // Assign the bitmap to an ImageView in this layout
  ImageView view = (ImageView) findViewById(;
  } ccaattcchh (IOException e) {
  } ffiinnaallllyy {
  iiff (open != null) {
  ttrryy {
  } ccaattcchh (IOException e) {