Mobile programing Flashcards

1
Q

What is mobile programming and what are the types of mobile programming?

A

Mobile programming means building/developing software applications that run on mobile devices. There are two types, each is defined by the OS the resulting application is run on.

For Native Application Development: The resulting application will run on a specific mobile operating system

For Cross-platform Application Development: The resulting applications will run on multiple mobile operation system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a state?

A

A state is a set of current conditions that define the characteristics and behaviors of processes, services, and activities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 4 states a process can have?

A
  1. Running state: The process is in execution
  2. Sleeping: The process is waiting for an event before beginning execution.
  3. Zombie: The process has completed execution but the memory it occupied has not been freed.
  4. Dead: The process has completed execution and the memory it occupied has been freed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 4 states an activity can have?

A
  1. Created: The activity has been created but has not yet started
  2. Started: The activity has started and is now visible to the user
  3. Paused: The activity is no longer visible to the user but is still in memory
  4. Stopped: The activity is no longer visible to the user and is no longer in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the different loops involved in monitoring an activity?

A
  1. The activity lifecycle loop: creating, starting, pausing, and stopping activities
  2. The service lifecycle loop: creating, starting, and stopping services
  3. The Broadcast receiver lifecycle loop: receiving and processing broadcast messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When is a foreground activity killed?

A

Then the system needs to free memory or resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between a foreground service and a background service?

A

Foreground services run in the foreground and provide notifications to users, while background services run in the background and do not provide notifications to the user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an intent?

A

It is a message that allows components to communicate with each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly