Application Development Questions

Q:

How to select more than one option from list in android xml file? Give an example.

Answer

Specify android id, layout height and width as depicted in the following example.


<ListView android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_parent"></ListView>

Report Error

View answer Workspace Report Error Discuss

0 1598
Q:

What is the function of an intent filter?

Answer

Because every component needs to indicate which intents they can respond to, intent filters are used to filter out intents that these components are willing to receive. One or more intent filters are possible, depending on the services and activities that is going to make use of it.

Report Error

View answer Workspace Report Error Discuss

0 1589
Q:

What is local storage concept in HTML 5?

Answer

Many times we would like to store information about the user locally in the computer. For example let’s say user has half-filled a long form and suddenly the internet connection breaks off. So the user would like you to store this information locally and when the internet comes back.He would like to get that information and send it to the server for storage.


Modern browsers have storage called as “Local storage” in which you can store this information.

Report Error

View answer Workspace Report Error Discuss

0 1587
Q:

Explain the correct way to manage Outlets memory?

Answer

Create them as properties in the header that are retained. In the viewDidUnload set the outlets to nil(i.e self.outlet = nil). Finally in dealloc make sure to release the outlet.

Report Error

View answer Workspace Report Error Discuss

0 1550
Q:

Is it possible to use or add a fragment without using a user interface?

Answer

Yes, it is possible to do that, such as when you want to create a background behavior for a particular activity. You can do this by using add(Fragment,string) method to add a fragment from the activity.

Report Error

View answer Workspace Report Error Discuss

0 1535