Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android application control flow?

I am very new to Android application development. Just started Hello world android application yesterday.

I was wondering whether there will be any control flow in the android application, like the Struts MVC, Spring MVC etc. has in them.

I am working on enhancing the android application, so I thought that knowing the flow of control would be a good start.

like image 261
Ritesh Mengji Avatar asked Apr 21 '11 20:04

Ritesh Mengji


People also ask

What are the flow control in Android?

Control flow integrity (CFI) is a security mechanism that disallows changes to the original control flow graph of a compiled binary, making it significantly harder to perform such attacks. In Android 8.1, we enabled LLVM's implementation of CFI in the media stack.

What is control flow in mobile application development?

This allows for constructing models that execute different operations based on the input values or execute operations multiple times without unrolling. This is important for use cases such as dynamic RNN and seq2seq.

What does a control flow do?

The control flow is the order in which the computer executes statements in a script. Code is run in order from the first line in the file to the last line, unless the computer runs across the (extremely frequent) structures that change the control flow, such as conditionals and loops.

What is an example of flow control?

Xon-Xoff is an example of a flow control protocol that sync the sender with the receiver. It transmits a transmit off signal when the receiver no longer has space in its buffer and a transmit on signal when the receiver can resume taking data.


2 Answers

The following three materials will be very good for you if you'd like to know the control flow of an Android application:

Application Fundamentals

http://developer.android.com/guide/topics/fundamentals.html

Activity

http://developer.android.com/guide/topics/fundamentals/activities.html

Task and Back Stack

http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html

like image 60
shihpeng Avatar answered Sep 22 '22 08:09

shihpeng


The below flow explain about android application execution flow.

  1. All resource files are combined together by AAP[Android Asset Packing Tool]. Resource files are like audio video images other asset related files. 2.Java files converted into .class files by JVM.So, the out of the jvm will be .class files, that are heavy weight to put into android. So, that one more level of process will be taken place.

  2. So, the .Class files are entered as input to DX tool. Basically, this is a tool which will convert .class files to .dex files. That mean Dalvik executable file. Those files are eligible to execute on DVM (Dalvik Virtual Machine)

  3. After getting .dex files, packed them APK builder. Which is basically, Application Packaging. So, this packed files kept into devices and that will be executed by DVM.

Android Application Workflow

like image 45
Daniel Raja Singh Avatar answered Sep 23 '22 08:09

Daniel Raja Singh