• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions
  • /
  • Android

Android interview questions and answers for freshers Page 7

Android Select Another Category Select Another Topic

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70

Android Question Topics

    Programming (118)

  • Basics (1)
  • Technical (114)
  • Variables (1)
Keep an EYE (0)
Solved Question (1) UnSolved Question (117)
Pages: 12FirstPrev3456789101112NextLast
Advertisements

(#M40158000) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Every application will have by default one thread. True or false?

Options
1) false, by default no threads available for a given application
2) True, always any given application will have default one main thread.
3) True, but it is not always, some times it may not have any thread.
4) both 2 and 3

Asked In Android Ashish (8 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution Technical

(#M40157999) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

How to monitor service connection status in bound services?

Options
1) using isServiceConnected(), it returns true if service is connected
2) using onServiceDisConnected(), this function will be called if connection is broken
3) client can keep polling to service if it is available or not.
4) using ServiceConnection class.

Asked In Android Ashish (8 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical
Advertisements

(#M40157998) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

What are the various return values of onStartCommand(), and when to use what?

Options
1) START_STICKY - in case if android stops our service forcefully, then restart service by sending intent null
2) START_NOT_STICKY - in case if android stops our service forcefully, then don't restart, until user restarts it.
3) START_REDELIVER_INTENT- in case if android stops our service forcefully, then restart service by sending re-sending the intent.
4) all options are true

Asked In Android Ashish (8 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40157997) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Updating UI from service: How to access progress bar from a service?

Options
1) Send progressbar id through intent extras & access it in service
2) Make progress bar as static variable, and access that variable from service.
3) If you want to touch UI from service, trigger a dynamically registered receiver in activity from service, And update UI from that dynamic receiver with in that activity
4) put all UI controls in a common class and access it from all components.

Asked In Android Ashish (8 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Technical

(#M40157996) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

How to pass data from activity to service?
Options
1) pass data in intent-putextras, and using setResult()
2) pass data in intent-putextras, and say startService() with that intent
3) store it in common database and access it through both activity and service.
4) can be done using both the ways 2 and 3 options.

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40157995) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Is it possible to have a service with multiple threads in it? How to achieve this?

Options
1) you can't have more than one thread in a service.
2) you can create multiple threads in a service
3) option 2 is possible by creating thread in onCreate()
4) option 2 is possible by creating thread in onStartCommand() of your service class.

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40157994) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

How to update UI from a service that has threads?
Options
1) Create a thread in the Service class and directly access UI components of your activity
2) Since updating UI from other thread directly is not possible, communicate with Main UI thread for the UI updates
3) Use Intent Service
4) Either use option 1 or option 2

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Technical

(#M40157993) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

How to create a service with multiple threads in it?
Options
1) Create a service with creating thread in onStartCommand
2) Use Intent Service
3) Create a service with one thread in OnCreate().
4) Either use option1 or use Async task with service

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical

(#M40157992) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Bound service: binding to a service, what is the function that needs to be implemented in service class?
Options
1) onCreate()
2) onBind() & onUnbind()
3) ServiceConnectionListener in client side.
4) all above 3 are required

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (1) Submit Your Solution Variables

(#M40157991) ANDROID QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

start a service from activity and close activity, what will happen to that service, will it be alive or dead?

Options
1) service will also be killed
2) service will be alive for some time, and will be killed by android garbage collector.
3) service will run for ever, no body can stop it now, and it leaks memory.
4) service will be keep running in the background but it can stop itself when the work given to it is done. Or others also can kill that service using stopService(), or android also can kill the service forcefully in case of low memory scenarios.

Asked In Android Ashish (8 years ago)
Unsolved
Is this Puzzle helpful?   (0)   (0) Submit Your Solution Technical
Keep an EYE (0)
Solved Question (1) UnSolved Question (117)
Pages: 12FirstPrev3456789101112NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

A man whose mind has gone astray should study mathematics.

Francis Bacon

MATHEMATICS is the key of every problem.

vivek .R

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com