Set 1
Set 1
Q No. Questions
Gtart
Read
failed succeeded
Attempt to read from
network data source
No Done
ACTVITY
SHUTDOWN
Page 3 of 11
() ldentity the name of the four states of Android lifecycle events
Process Name of the event
The activity started by the user and running
foreground
started
d yby ue User, s running. ?
or something
is overlaying part of the screen
The activity started by the user, is running
but is hidden by other activities that have
been launched or switched
Either the activity was never started
Table. B1.1 Events of Android Lifecyle
(4 Marks-[Uc 2)
() llustratethe three situations of On Create () method linthe Activity sub classes
1. Activity started.
Activity running.
3. Activity based on resources
(6 Marks -[UC, 2)
82 Consider the diagram for fiow of intents in Androld systern. This Android system contains wo activity.
which contains Activity A and Activity B. Activity Astart the process when Activity Bis ready to start
the process
ntent
tartActivity) onCate
Actiity A Activity B
We A y n
Agcstio
Internet
Prry Sere
UAge
Bedret tvw
Fig. C2.1
Wi-FIMana
Aterthe sCan,
activates a se Exampiono the Start scan 0 method
Wi-FiManager calls the SCAN RESULTS AVAILABLE_
ACTION ntent ldentify
the methods after executing the below statenents
Android. Permission. ACCESS_WIFI_STATE IS hecessary or c a n WLEIMar
Android Permission CHANGE_WIF_STATE B
neessayMarks -Ap/C. 21)
(0) Accerlometer is a device, which used for adjusting the sensitivity of threshold value. This device
has two possible outputs that is the threshold value is static or not By using this, choose the
threshold value and method for adapting environment.
On sensor
1or 0, On Sensor)
1 and. 0 On view)
(2 Marks-[UIC, 2)
public booleanConnectToNetworkWPA(String networkSSID, String password)
WifiConfigurationconf =new WifiConfiguration(0:
cont SSiID"+ networkSSID 1
conf.preSharedKey=password 1
Consider the above code and predict whether the output of network and password are valid and
invalid
(4 Marks -[An/C, 2)
(w)Choose the different types of sensors
Motion Sensors
Personal Sensors
Environmental Sensor
V Valuable sensors
Position Sensors
(2 Marks-[UIC, 2)
C3 Multthreading is a fundamental aspect of computer programming and it increases the logical
complexity of the code Dart using muitithreading functionality for synchronization problems does not
share memory. Therefore, the data is not lsolated. In the asynchronous problems, the coding part too
easy comparedto the testing process of Dart in Java or C#
) Identify the name of thefestng process given below
Testing name
Kind af tests made on smail pleces of Dart code such as
classes or functions
Kind of tests made on Flutter widgets
Kind of tests in which different parts of the code are
eombined and tested
togeehe.C31 Testing (3 Marks- [UIC, 21)
Page 6 ofi1
The official Flutter plugin for both Android Studio and VSCode
supDOrts unit festing s0 that yoU
can run tests in a more frendly way. Unit testing in Androidis given below
break
return true:
Jcatch (Exception ex)
System.out printin(Arrays. toString(ex.getStackTrace();:
return false;
ckaos
E2 Creatinga single library paCKage ot e o fi and consistenoy with other
people's work Consider the example of library package of an app
Page 9ofi1
E21 Andrgid Sbra
ldernty the heart of Androit pacikage ne it ther ties frumth gvenFyE21
MatuS.I
Cansder oionm
port hecoding br ibrary tunctons in e package
pot soe
Rearte he above cooe usng impot stateets as glvenbelow
imootet
FIútièr:
Gmmynit÷
FigB4Rutter community
name for the ncbons gven bew
dertity the package
Flutter functions
Package name
Approved By
Verified By