Mobile Computing [Assignment :- 06]


Assignment: – 06 (Chapter 11,12,16)

1)      What is Content Provider? List default content providers.

2)      Explain following content providers with example. (Purpose, URI to access the resource, Example, Fetching some of important columns, permission required <uses-permission> tag)

  1. MediaStore
  2. Browser
  3. CallLog
  4. Contacts

3)      Write a android application to fetch all audio files and bind it to the listview, play the audio file when user clicks on any audio file from listview.

4)      Write android application to fetch images from the sdcard and bind it to the gallery control. Use appropriate content provider.

5)      Write android application to list out all website visited by the user along with several information such as how many times user has visited that site, whether it is bookmarked etc.

6)      Write android application to retrieve call log information and separate them in terms of incoming call, outgoing call and missed call.

7)      How to modify Content Providers data? Explain insert, update and delete operation on data of Content Provider with suitable example.

8)      How to create custom content provider? Write steps to create custom content provider. (Steps, permission required to act as content provider, importance of UriMatcher Class, implementing insert(),update(),delete(), query() methods).

9)      What is Live folder? How it can be useful? Explain process of creating LiveFolder.

10)  Write android application to read xml located on internet.

11)  Explain HttpURLConnection class to fetch information about content, content type, data and time information of the data available on web.

12)  Explain five methods of XMLPullParser Class.

13)  Write android application to parse xml file available on the web and display data stored within xml file to the TextView.

14)  List and explain XMLPullParser Events.

15)  Explain following ways to assign time consuming tasks to new thread other then UI Thread with example. (Two ways : 1) AsyncTask 2) Custom way)

  1. AsyncTask (Methods need to override, how interaction happen between UI Thread & New thread designed for background process, example, method required to be overridden)
  2. Custom way (Create new thread, post progress, specify way of interaction using handler between UI Thread and new thread)

16)  Write android application to parse xml file available on web to search for image tag and attribute value for href till end of document. Show these images in ImageSwitcher. Create separate thread to do this task in background & post the image to UI Thread.

17)  Write android application to use NetworkInfo class to get information about various network types. (Information such as Available, Connected etc.)

18)  Explain TelephoneManager Class to retrieve information about call state.

19)   Write android application to retrieve information about the state of the service. What is the importance of retrieving these information?

20)  Write android code to format phone number as per the current locale.

21)  Write android code to send sms to given phone no.

22)  Explain process of receiving sms and displaying in the textview.

23)  Write android application that makes call to given phone no.

Mobile Computing [Assignment :- 05]

Assignment :- 05 (Chapter 10)
  1. What is preference? Explain with example to store, update & delete data using private preference.
  2. Explain shared preferences to transfer data between activities with example.
  3. Write a program to create & write a data file, open that file & display in textview.
  4. Write a code to perform following operations with SQLite Databae.
    1. Create Database
    2. Create Table (with autoincrement, not null, primary key constraints)
    3.  Inserting, Updating, Deleting records.
  5. Explain query() method to retrieve data from database.
  6. Explain rawquery() method & SQLiteQueryBuilder class to retrieve data from SQLite database.
  7. What is persistent database? Write a code to create persistent database.
  8. Explain cursoradapter to  bind data with container controls.

Mobile Computing [Assignment :- 04]

Assignment :- 04 (Chapter 7,8,9)
  1. Define View & ViewGroup. Differentiate View with ViewGroup.
  2. Write a note on Hierarchy Viewer Tool.
  3. What is Layout? Explain following layouts for designing interface with example. (purpose, tag, major attributes, xml file code example, screen design, when it is more suitable?)
    1. LinearLayout
    2. FrameLayout
    3. RelativeLayout
    4. TableLayout.
  4. Explain in brief ArrayAdapter & CursorAdaptter. Differentiate ArrayAdapter vs. CursorAdapter.
  5. Explain following container controls with suitable example.
    1. ListView
    2. GalleryView
    3. GridView
  6. Explain tab control with suitable example.
  7. Explain appropriate methods of paint class to perform following tasks.
    1. To set color (setColor())
    2. Paint antialiasing
    3. Setting style (setStyle())
    4. Applying gradient effect (setShader())
    5. Setting text effects (text size, set typeface)
  8. Explain various methods of the canvas to draw Circle, Rectangle, RoundedRectangle, Oval, Text (Method name, example).
  9. Explain  Linear Gradient, Radial Gradient, Sweep Gradient paint gradients.
  10. How to set “Bitmap” on canvas? Explain following operations on Bitmap picture.
    1. Scaling
    2. Rotate
    3. Scale
  11. Write example to draw following objects using ShapeDrawable.
    1. Rectangle
    2. Rounded Rectangle
    3. Oval & Circle
    4. Arc
    5. Line
    6. Path
  12. How android supports animation? Differentiate frame-by-frame vs. Tweened animation.
  13. Explain frame-by-frame animation with example.
  14. Explain Tweened animation (animation as xml resource & programmatically, sequential tweened animation example) with following transformations.
    1. Transparency
    2. Rotating
    3. Scaling
    4. Movement
  15. What is interpolator? List & explain different interpolator.

Mobile Computing [Assignment :- 03]

Assignment :- 03

  1. Explain following widgets with example. (Widget Purpose, description about widget, Designing XML (Specify major attribute) & Java way, Provide suitable example to handle at least one event of widget, at least 3 methods of the widget)
    1. TextView
    2. EditText
    3. AutoCompleteTextView
    4. MultiAutoCompleteTextView
    5. TimePicker
    6. DatePicker
    7. Chronometer
    8. Spinner
    9. Button
    10. ToggelButton
    11. ImageButton
    12. CheckBox
    13. RadioGroups, RadioButton
    14. ProgressBar
    15. SeekBar
    16. RatingBar
    17. DigitalClock
    18. AnalogClock
    19. OptionsMenu
    20. ContextMenu
  2. Explain handling following events with example.
    1. Touch mode change
    2. Events on the screen (PreDraw, GlobalLayout, GlobalFocusChange)
    3. Long Click
    4. Focus Change
  3. What are dialogs in android? Explain dialog supported by android with example.                          (Provide example for each dialog i.e. AlertDialog, CharacterPickerDialog, DatePickerDialog,          ProgressDialog, TimePickerDialog)
  4. Explain lifecycle of a Dialog.
  5. Explain creating & applying “Style” & “Theme” to android application with example.

           

Mobile Computing [Assignment :- 02]

Assignment: – 02

Date: – 10/08/2011

Submission Date: – 25/08/2011

  • Write a brief note on OHA.
  • List and explain in detail advantages and features of android platform.
  • Explain underlying architecture of android platform. (Draw the figure)
  • Write a brief note on following

AVD
DDMS
ADB

  • List and explain 3 methods of Log class. How it is useful for debugging application explain with example.
  • Explain following in detail. (Ref book : 01 & Text book)

Content providers
Activity
Intent
Service
Broadcast receivers
Widgets
Notifications

  • What is activity stack? How android platform manages various activities?
  • Explain various states of activities of application. Draw the fig. that demonstrates state change of activity. (Ref book:01 pg no. 79 & fig 3.7)
  • Explain lifecycle of an activity with example.
  • Write a brief note on “androidmanifest.xml” file. Explain purpose and importance of this file for android project.
  • Explain following with respect to “androidmanifest.xml” file (Tags used & example) (Ref book : 01 & Text book)

Application’s Identity (versioncode, app icon, app name etc.)
Application’s system requirements (used-sdk , sdk versions..)
Application platform requirements (uses-configuration supported input methods, uses-feature device features, supports-screens screen sizes, external libraries)
Registering permission for application’s requirements (uses-permission e.g. camera)

  • Explain registering application’s activities to androidmanifest.xml file? How to make any activity as main activity, explain with example.
  • Explain resources with respect to android.
  • Explain handling following resources with suitable example

Accessing string, string-array resources
Accessing Boolean, Integer resources
Accessing Color resources
Accessing Dimension resources

Mobile Computing [Assignment: – 01]

Assignment: – 01

Date: – 15/07/2011

Submission Date: – 25/07/2011

Explore Android market & related applications (Minimum 3 Applications)

 

Write a report containing the following details for each android application which must be from different domains. There must be one page for each application.

Format of report should be :

Filename : <Enrollment no>.doc

No. of Pages : at least 3 pages.

Content:

1)    Name of Application.

2)    Domain.

3)    Source URL.

4)    Description.

5)    Application Screen Shots (At least 3 screen shot containing major functionality).

6)    Comments. (Facilities that can be improved, limitation of current application).

7)    Similar applications.