• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/7

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

7 Cards in this Set

  • Front
  • Back

What is an application?

The application class in andriod is the base class within the andriod app that contains all other components.



The application class is instanitiated before any other class when the process for your application is created.



What is context?

Context is a handle for to the system; provides services like resolving resources obtaining access to DB and preferences. Context is like a handle to the environment your application is currently running in.



Application context: this context is tied to the lifecycle of the application. Application context can be used where you need a context whose lifecycle is seperate from the activity life cycle.



Activity Context: is tied to the lifecycle of the activity. Activity context should be use when you are passing context in the scope of the activity or you need the context whose lifecycle is attached to the current context.

What is ARMv7

Here are three CPU architectures in andriod.



ARMv7 is the most common as it is optimized for battery consumption.



ARM64 is an evolved version that supports 64 bit processing, more powerful computing



ARMx86 is the least used, since it is not battery friendly but is the most powerful.

Why ByteCode cannont run in andriod?

The main reason is andriod doesnt use a JVM, its heavey resource intensive and hence not suited for resource constrainted enviroment of a mobile device.



Andriod uses a DVM, Dalvik

What is a build gradle? and what can you use for it

Build types defines properties that gradle uses when building and packaging your app.



1. A build type defines how a module is built, for example whether proguard is run



2. A product flavour defines what ia built, such as which resources are included in the build



3. Gradle creates a build variant for every possible combination of your projects products flavours Nd built types.



Explain built process in android?

1. Involves compiling the resources folder usinf Android Asset Packaging Tool (AAPT)



2. Second step involves the java source code being compiled to .class file javac, and then the class files are converted toDalvk bytecode by the dx tool, which is included in the SDK tools. The output is classes.dex



3. Final step involves the android apk builder which takes all the input and build apk files.

What is andriod application architecture?

1. Service, will preform a background task


2. Intent, preform the inter connection between activities and data passing mechanism.


3. Resource Externalization, string and graphics


4. Notification, types of notification light, sound, icon, notification,dialog box and toast message


5. Content providers, will share data between application.