Operating Systems have developed a lot in the past few decades. Starting from normal phones to recent smart or mini phone, it has come a long way. Smartphones have evolved from Palm OS in 1996 to Blackberry OS to Android. One of the most widely used mobile OS is Android. Android is a mobile OS that was developed by Google and it runs on the Linux kernel and primarily designed for touchscreen mobile devices. Android applications are written in Java programming language. Android is available as open source for developers to build their own applications which can be further be sold in the android market. Here are some Android developer Q & A for you
1)What is Android architecture?
Ans: Android architecture consists of the following 5 elements
- Application Framework
- Android runtime
- Linux Kernel
2) Why do you want to become an Android Developer and what are some of the advantages of Android?
Ans: I want to become a developer with all the strengths of the chosen platform. I have personally liked the platform and made efforts to train myself pretty well. Some of the key advantages of Android are listed below
- It is Open source
- Has platform diversity.
- Experience with Java as it is the language of choice for Android app development
3)What is NDK?
Ans: The NDK which is the Native Development Kit provides all the tools that are used to build apps that access a device natively. Android has the NDK to support native development in C and C++ other than the Android Software Development Kit which supports Java.
4) What is a Google Android SDK?
Ans: It is a set of tools that are needed by developers to enable them to write apps on Android-enabled devices. It has a graphical interface which has an Android handheld environment, thus enabling them to test and debug
5)What are the 7 lifecycle methods of Android activity and what are they used for?
Ans: The seven lifecycle methods of Android activity are as follows onCreate(), onStart(), onRestart(), onResume(), onPause(), onStop(), and onDestroy(). The main purpose is to help structure the code as how you want an activity can perform throughout its lifecycle on the device.
6)Write code to launch a new activity within your application?
Ans: The main goal of this question is to test your knowledge of explicit intent which defines the activity of the developer who wished to start.
Intent myIntent = new Intent(this, MyActivityNew.class);
7) Can an android application be programmed only in Java?
Ans: No. It is not necessary as you can program Android apps using NDK in C and C++. The NDK is said to be a toolkit that allows us to implement parts of the app using the native code languages such as C and C++.
8) Where must you declare the activity that you do so that the system can access it?
Ans: Activity is said to be declared in the manifest file and here is some sample code
9) What are the various storage methods that are used in Android?
Ans: Android offers many options for data persistence. Shared preferences will be storing private and primitive data in key-value pairs. This will sometimes get limited and you cannot save your own java types. Internal storage which stored private data in your device memory.