Team Leader Android Developer

  Home  Computer Programming  Team Leader Android Developer


“Team Leader Android Developer related Frequently Asked Questions by expert members with professional career as Team Leader Android Developer. These list of interview questions and answers will help you strengthen your technical skills, prepare for the new job interview and quickly revise your concepts”



67 Team Leader Android Developer Questions And Answers

1⟩ Tell us how do you find any view element into your program?

Findviewbyid : Finds a view that was identified by the id attribute from the XML processed inActivity.OnCreate(Bundle).

Syntax

[Android.Runtime.Register("findViewById", "(I)Landroid/view/View;", "GetFindViewById_IHandler")]

public virtual View FindViewById (Int32 id)

 152 views

2⟩ Tell me what is An Intent?

It is connected to either the external world of application or internal world of application, Such as, opening a pdf is an intent and connect to the web browser.etc.

 167 views

5⟩ Tell me where can you define the icon for your Activity?

The icon for an Activity is defined in the manifest file.

Code

<activity android:icon="@drawable/app_icon" android:name=".MyTestActivity"></activity>

which means you have to Open AndroidManifest.xml.Right under the root “manifest” node of the XML, we can see the “application” node. We have added this attribute to “application”. (The “icon” in “@drawable/icon” refers to the file name of the icon.)

android:icon=”@drawable/icon”

 146 views

8⟩ Explain me what is the difference between an implicit intent and explicit intent?

There are two types of Intent implicit and explicit intent, let see some more difference between them.

Implicit: Implicit intent is when you call system default intent like send email, send SMS, dial number.

For example,

Intent sendIntent = new Intent();

sendIntent.setAction(Intent.ACTION_SEND);

sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);

sendIntent.setType("text/plain")

startactivity(sendIntent);

Explicit: Explicit intent when you call you're on application activity from one activity to another

For example, first activity to second activity:

Intent intent = new Intent(first.this, second.class);

startactivity(intent);

 201 views

9⟩ Tell me how will you pass data to sub-activities?

We can use Bundles to pass data to sub-activities. There are like HashMaps that and take trivial data types. These Bundles transport information from one Activity to another

Code

Bundle b=new Bundle();

b.putString(“Email”, “ggl@xyz.com”);

i.putExtras(b); //where I is intent

 157 views

12⟩ Explain me why cannot you run standard Java bytecode on Android?

Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. First of all, we have to convert Java class files into Dalvik Executable files using an Android tool called “dx”. In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.

 143 views

13⟩ Tell me what is An android manifest file?

Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code.

 197 views

19⟩ Tell me can Android application only be programmed in Java?

No, it is not necessary. You can program Android apps can be created using NDK in C/C++. The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. Typically, good use cases for the NDK are CPU-intensive applications such as game engines, signal processing, and physics simulation.

 166 views

20⟩ Explain me what is Android?

Android is a stack of software for mobile devices which includes an Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine.

 185 views