Professional Documents
Culture Documents
Roll No F17-038-BCMS
Class BSCS – 8(B)
Subject MAD
Assignment Class Task (Mids)
Received By Irfan Khalid
Question No 1 (B):
Write down some specific advantages and disadvantages of
both Android and IOS?
ANDROID
Advantages:
Disadvantages:
Apps run in the background: In the older version of Android,
most apps always run in the background and come to foreground
as they wish. But in new version of android apps cannot
automatically come to foreground. As some apps run in the
background then it consumes mobile battery and your device
battery vanishes quickly.
Developers have a tough time: Learning and developing android
apps is hard because there are a variety of screen sizes and to make
app adaptive to all screen sizes is challenging for the developers.
Developers have to write more code and are difficult to
troubleshoot the app for final delivery. It is also difficult to make
complex apps and doing advanced animation is hard.
IOS
Advantages:
Excellent UI and fluid responsive
Developers can design apps because less number of models
Metal and shiny coating are ultimate for Apple devices
Jail breaking for customization
Disadvantages:
Question No 2 (A):
What is intent? Briefly explain the how to create
intent in more than one activities?
INTENT
Intent is an abstract description of an operation to be performed.
It can be used with start Activity to launch
an Activity, broadcast Intent to send it to any
interested Broadcast Receiver components, and Context. Start
Service (Intent) or Context. Bind Service (Intent, Service
Connection) to communicate with a background Service.
Intent provides a facility for performing late runtime binding
between the codes in different applications. Its most significant
use is in the launching of activities, where it can be thought of as
the glue between activities. It is basically a passive data
structure holding an abstract description of an action to be
performed.
Intent is a messaging object you can use to request an action
from another app component. Although intents facilitate
communication between components in several ways, there are
three fundamental use cases:
Starting an activity
Starting a service
Delivering a broadcast
Question No 2 (B):
How many file are required for one activity in android?
Briefly explain.
onCreate()
onCreate() is called when the activity is first created.
onStart()
onStart() is called when the activity is becoming visible to the
user.
Question No 3 (A):
Briefly explain the any four name of database that using in
android application?
SQLiteOpenHelper(Context, String,
SQLiteDatabase+ICursorFactory, Int32, IDatabaseErrorHandler)
Create a helper object to create, open, and/or manage a
database. SQLiteOpenHelper(IntPtr, JniHandleOwnership) A
constructor used when creating managed representations of JNI
objects; called by the runtime.
Architecture Of SQLite: