Application Development Questions

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 1489
Q:

What do you know about Intents?

Answer

- Notification messages to the user from an Android enabled device can be displayed using Intents.


- There are two types of Intents - Explicit Intent, Implicit Intent.


 


Implicit Intent:


- In case of Implicit Intent, an intent is just declared. 


- It is for the platform to find an activity that can respond to it.


- Since the target component is not declared, it is used for activating components of other applications.


 


Explicit Intent


- Explicit intent specifies the particular activity that should respond to the intent. 


- They are used for application internal messages.

Report Error

View answer Workspace Report Error Discuss

0 1481
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 1461
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 1455
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 1361