Application Development Questions

Q:

What items are important in every Android project?

Answer

 These are the essential items that are present each time an Android project is created:


- AndroidManifest.xml


- build.xml


- bin/


- src/


- res/


- assets/

Report Error

View answer Workspace Report Error Discuss

2 907
Q:

What is the importance of having an emulator within the Android environment?

Answer

The emulator lets developers “play” around an interface that acts as if it were an actual mobile device. They can write and test codes, and even debug. Emulators are a safe place for testing codes especially if it is in the early design phase.

Report Error

View answer Workspace Report Error Discuss

2 580
Q:

What is the use of controller object UIApplication?

Answer

Controller object UIApplication is used without subclassing to manage the application event loop.


It coordinates other high-level app behaviors. 


It works along with the app delegate object which contains app-level logic.

Report Error

View answer Workspace Report Error Discuss

1 458
Q:

What is the importance of XML-based layouts?

Answer

The use of XML-based layouts provides a consistent and somewhat standard means of setting GUI definition format. In common practice, layout details are placed in XML files while other items are placed in source files.

Report Error

View answer Workspace Report Error Discuss

0 453
Q:

Write code snippet to retrieve IMEI number of Android phone?

Answer

TelephonyManager class can be used to get the IMEI number. It provides access to information about the telephony services on the device.


Code


        TelephonyManager mTelephonyMgr = (TelephonyManager)


        getSystemService(Context.TELEPHONY_SERVICE);


        String imei = mTelephonyMgr.getDeviceId();

Report Error

View answer Workspace Report Error Discuss

0 396