Question-31. How is the use of web view in Android ?

Answer- WebView is UI component that can display either remote web-pages or static HTML.

 

Question-32. Why can’t you run java byte code on Android ?

Answer- Android uses DVM (Dalvik Virtual Machine ) rather using JVM(Java Virtual Machine), if we want, we can get access to .jar file as a library.

 

Question-33. How does android track the application on process ?

Answer- Android provides a Unique ID to all applications is called as Linux ID,this ID is used to track each application.

 

Question-34. How to change application name after its deployment ?

Answer- It’s not truly recommended to change application name after it’s deployment, if we change, it will impact on all other internal components.

 

Question-35. Define the application resource file in android ?

Answer- JSON,XML bitmap.etc are application resources. You can injected these files to build process and can load them from the code.

 

Question-36. How to launch an activity in android ?

Answer- Using with intent, we can launch an activity.

         Intent intent = new Intent(this, MyTestActivity.class);
         startActivity(intent);

 

Question-37. How do you pass the data to sub-activities android ?

Answer- Using with Bundle, we can pass the data to sub activities.

        Bundle bun = new Bundle();

        bun.putString("EMAIL", "contact@tutorials.com");

 

Question-38. What is singleton class in android ?

Answer- A class which can create only an object, that object can be share able to all other classes.

 

Question-39. What is fragment in android ?

Answer- Fragment is a piece of activity, if you want to do turn your application 360 degrees, you can do this by fragment.

 

Question-40. What is sleep mode in android ?

Answer- Sleep mode mean CPU will be sleeping and it doesn’t accept any commands from android device except Radio interface layer and alarm.