Android interview questions

Want to become an expert in cracking Android interview questions?

Start with practicing the questions below. Whether a question involves multiple choice or live coding, we will give you hints as you go and tell you if your answers are correct or incorrect.

After that, take our timed public Android interview questions test.

To use our service for testing developers, purchase one of the paid plans for companies.


1. ScreenOrientation
Android Event handling Public

Which of these methods are called when the screen changes orientation from portrait to landscape in Android?

Easy  
3min
Solve question

2. SharedPreferences
Android Data storage Public

What is the value of String number after the following code snippet:

SharedPreferences pref = getApplicationContext().getSharedPreferences("MyPref", MODE_PRIVATE);
Editor editor = pref.edit();
editor.putString("1", "2");
editor.putString("3", "4");
String number = pref.getString("2", "3");
Easy  
3min
Solve question

3. Parcelable
Android Interprocess communication Public

Which statements are true for the Parcelable interface?

Hard  
2min
Solve question

4. MediaPlayer
Android Multithreading Public

Which statements are correct for the following code in Splash Activity if the wave file sound is 3 seconds long?

    MediaPlayer mp = MediaPlayer.create(getBaseContext(), R.raw.sound);
    Thread timer = new Thread() {
        @Override
        public void run() {
            try {
                sleep(1000);
                Intent main = new Intent(Splash.this, MainActivity.class);
                startActivity(main);
                finish();
            } catch (InterruptedException e) {}
        }
    };
    timer.start();
    mp.start();
Hard  
3min
Solve question

If you feel ready, take one of our timed public Android interview questions tests:

Not exactly what you are looking for? Go to our For developers section.