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

5 1629
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

3 1262
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 1048
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 890
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 883
Q:

In HTML 5 we do not need DTD why?

Answer

HTML 5 does not use SGML or XHTML it’s completely a new thing so you do not need to refer DTD. For HTML 5 you just need to put the below doctype code which makes the browser identify that this is a HTML 5 document.

Report Error

View answer Workspace Report Error Discuss

2 681
Q:

If I call performSelector:withObject:afterDelay: – is the object retained?

Answer

Yes the object is retained. It creates a timer that calls a selector on the current threads run loop. It may not be 100% precise time-wise as it attempts to dequeue the message from the run loop and perform the selector.

Report Error

View answer Workspace Report Error Discuss

0 638
Q:

Which API is used to write test scripts that help in exercising the application's user interface elements?

Answer

 UI Automation API is used to automate test procedures. Tests scripts are written in JavaScript to the UI Automation API.  This in turn simulates user interaction with the application and returns log information to the host computer.

Report Error

View answer Workspace Report Error Discuss

0 633