0% found this document useful (0 votes)
56 views4 pages

Group No:-5 Weekly Report: - 10: Submitted By, Akhil Job Atmaram S Nithin K M Sanalghosh N B

Group 5's weekly report discusses work done by four members: Akhil Job worked on a SharedPreference class to allow storing app data and managing settings. Atmaram S worked on AsyncTask and Handler to perform background tasks and publish results on the UI thread. Nithin K M familiarized with Handler to display background computations on the interface without freezing it. Sanalghosh N B familiarized with defining properties to widgets by importing libraries, setting layouts, and using methods like setTextColor and setBackgroundColor.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Group No:-5 Weekly Report: - 10: Submitted By, Akhil Job Atmaram S Nithin K M Sanalghosh N B

Group 5's weekly report discusses work done by four members: Akhil Job worked on a SharedPreference class to allow storing app data and managing settings. Atmaram S worked on AsyncTask and Handler to perform background tasks and publish results on the UI thread. Nithin K M familiarized with Handler to display background computations on the interface without freezing it. Sanalghosh N B familiarized with defining properties to widgets by importing libraries, setting layouts, and using methods like setTextColor and setBackgroundColor.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

GROUP NO:- 5

WEEKLY REPORT:- 10

Submitted by,
Akhil Job
Atmaram S
Nithin K M
Sanalghosh N B

Akhil Job:1. Working on Shared Preference Class.


It basically allows user to store app data, and gives
scope to manage various app settings like font size,
font color etc.
It accesses the shared preferences file that's
identified by the resource string
R.string.preference_file_key and opens it using the
private mode so the file is accessible by only your
app.
Context context = getActivity();
SharedPreferences sharedPref =
context.getSharedPreferences(getString(R.string.prefer
ence_file_key), Context.MODE_PRIVATE);

Atmaram S:1. Working on AsyncTask and Handler.


AsyncTask enables proper and easy use of the UI
thread. This class allows to perform background
operations and publish results on the UI thread without
having to manipulate threads and/or handlers.
AsyncTask is designed to be a helper class around
Thread and Handler and does not constitute a generic
threading framework. AsyncTasks should ideally be
used for short operations (a few seconds at the most.)

An asynchronous task is defined by a computation that


runs on a background thread and whose result is
published on the UI thread.
An asynchronous task is defined by 3 generic types,
called Params, Progress and Result, and 4 steps, called
onPreExecute, doInBackground, onProgressUpdate and
onPostExecute.

Nithin K M:1. Familiarized with Handler.


A Handler basically allows to display computations in
background thread on the interface, in such a way that
the computations don't freeze the system or the
interface.
When you create a new Handler, it is bound to the
thread / message queue of the thread that is creating it
-- from that point on, it will deliver messages and
runnables to that message queue and execute them as
they come out of the message queue.
When posting or sending to a Handler, one can either
allow the item to be processed as soon as the message
queue is ready to do so, or specify a delay before it
gets processed or absolute time for it to be processed.
The latter two allow you to implement timeouts, ticks,
and other timing-based behavior.

Sanalghosh N B:1. Familiarized with defining properties to widgets.


This is accomplished by first importing the
android.graphics.Color library and later setting the
various layouts and defining the text, backgroung etc
using the setText, setBackgroundColor paradigms etc.
respectively.

Example:
RelativeLayout App_Layout = new RelativeLayout(this);
App_Layout.setBackgroundColor(Color.Green);

NB: the above code sets the app background color to


green.

You might also like