Android Interview Questions For Freshers

 Android Interview Questions For Freshers

Android Interview Questions For Freshers and Experience

How many activity call backs methods in android ?
[showhide type="linkIshand11" more_text="Show Answer" less_text="Hide Answer"]Answer :  six - onCreate(), on Start(), on Resume(), onPause(), onStop() and onDestroy()[/showhide]

 

Oncreate() receives parameters of savedInstancestate, which is ______ object

[showhide type="linkIshand21" more_text="Show Answer" less_text="Hide Answer"]Answer: Its a Bundle Object which contains the acivities previously saved state.[/showhide]

 

If activity has never existed before, the value of Bundle object is ?

[showhide type="linkIshand31" more_text="Show Answer" less_text="Hide Answer"]Answer: Null[/showhide]

 

Which call back methods are called immediately after onCreate() method finishes ?

[showhide type="linkIshand41" more_text="Show Answer" less_text="Hide Answer"]Answer: onStart() and onResume()[/showhide]

 

Which call back method initializes the code that maintains UI(User Interface)

[showhide type="linkIshand51" more_text="Show Answer" less_text="Hide Answer"]Answer: onstart() method[/showhide]

 

In what stage users interacts with app ?

[showhide type="linkIshand61" more_text="Show Answer" less_text="Hide Answer"]Answer: onResume() state[/showhide]

 

When interruption events happens like receiving a phone call or screen turnoff, which callback method is called ?[showhide type="linkIshand71" more_text="Show Answer" less_text="Hide Answer"]Answer: onPause() [/showhide]

 

If user leaving activity, which callback method is called[showhide type="linkIshand81" more_text="Show Answer" less_text="Hide Answer"]Answer: onPause()[/showhide]

 

If activity is no longer visible to user, which callback methods is called by system[showhide type="linkIshand91" more_text="Show Answer" less_text="Hide Answer"]Answer: onStop()[/showhide]

On which callback method instance, usually saves information to database[showhide type="linkIshand101" more_text="Show Answer" less_text="Hide Answer"]Answer: onStop()[/showhide]

 

Which callback method is called while activity been destroyed ?[showhide type="linkIshand111" more_text="Show Answer" less_text="Hide Answer"]Answer: onDestroy()[/showhide]

 

To start new activity which callback method is called?[showhide type="linkIshand121" more_text="Show Answer" less_text="Hide Answer"]Answer: startActivity() or startActivityForResult()[/showhide]

 

Which object as to pass in startActivity() or startActivityForResult() ?[showhide type="linkIshand124541" more_text="Show Answer" less_text="Hide Answer"]Answer: Intent object[/showhide]

 

Why Intent object is used ?[showhide type="linkIshand131" more_text="Show Answer" less_text="Hide Answer"]Answer: To specify exactly to start an activity or action to perform[/showhide]

 

Why startActivityForResult() is used ?[showhide type="linkIshand141" more_text="Show Answer" less_text="Hide Answer"]Answer:If we want result back from an activity. Ex : If user selects contact number from list of Contacts, When its ends, it has to returns the contact number which as selected.[/showhide]

 

Which call back method is called when user presses Back Button ?[showhide type="linkIshand151" more_text="Show Answer" less_text="Hide Answer"]Answer: finish() method[/showhide]

 

Activity is recreated after it previously destroyed, we can recover saved state from ?[showhide type="linkIshand161" more_text="Show Answer" less_text="Hide Answer"]Answer: Bundle[/showhide]

 

For Restoring the state, we can implement __________ or ___________[showhide type="linkIshand171" more_text="Show Answer" less_text="Hide Answer"]Answer: onCreate or onRestoreInstanceState(). In onRestoreInstanceState() system calls after onStart() method.[/showhide]

 

Snippet for Email Message

Intent intent = new Intent( Intent.ACTION_SEND);

intent.putextra(Intent.EXTRA_EMAIL, recipentArray);

startActivity(intent)

 

Learn More

Complete Android Programs code for Beginners –Click Here

 

Follow Us – Never Miss Update

Fb/PageTwitterGoogle+InstagramPinterest 

 

Related search:

Advance android interview questions, ANDROID, android design interview questions, android handler interview questions, Android Interview Questions, Android Interview Questions For Freshers, Android Interview Questions For Freshers and experience, Android Interview Questions For Freshers in pdf, android interview questions github, android interview questions medium, android interview questions quora, android multiple choice questions and answers, senior android interview questions,android interview questions, android interview,android interview questions for 1 year experience, android viva questions,android technical interview questions,android development interview questions,android service interview questions,android java interview questions, android developer interview questions and answers for freshers, android interview preparation, android concepts for interview,android programming interview questions,junior android developer interview questions, android job interview questions, java android interview questions, google android interview questions, android related interview questions, common android interview questions, latest android interview questions, android life cycle interview questions, interview questions for senior android developer, android interview questions and answers, android interview questions pdf, android interview questions for freshers, interview questions for android developer fresher

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Comments