APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : B.Tech

Semester : SEMESTER 6

Year : 2018

Term : MARCH

Scheme : 2015 Full Time

Course Code : EC 312

Page:18





PDF Text (Beta):

View

view.

Intent

Intent is used to invoke components. It is mainly used to:

o Start the service o Launch
an activity o Display a web
page o Display a list of
contacts o Broadcast a
message o Dial a phone call

etc.

For example, you may write the following code to view the webpage.

Intent intent=new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("http://www.javatpoint.com"));
startActivity (intent) ;

Service

Service is a background process that can run for a long time.

There are two types of services local and remote. Local service is accessed from within the
application whereas remote service is accessed remotely from other applications running on the same
device.

Content Provider

Similar Question Papers