Professional Documents
Culture Documents
MAD Suplementary Key
MAD Suplementary Key
KEY
PART - A
3. Name the three events you can override to save an activity state.
onSaveInstanceState(), onRestoreInstanceState() and discuss about how they are called in
onCreate().
4. How do you access the string resource stored in the strings.xml file?
<resources>
<string name=myString>abc</string>
</resources>
String str = getString(R.string.myString);
10. How do you generate a self sign certificate for signing your android application?
Keytool getkey v keystore my-release-key.jks keyalg RSA keysize 2048 validity
10000 alias my-alias
PART B
Example 2 marks
15. a. How to read from and write to files in internal and external storage in android.
Internal Storage Explanation and Example 4 marks
External Storage Explanation and Example 4 Marks.
b. Explain how to choose best storage option for persisting data in android.
List all data storage mechanisms and explain criteria to choose a good mechanism
for storing the data persistently.-3 marks
***@@@***