logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the main reason of using process lifecycle in Android?


  • Correct Answer
  • The android system will keep all the process that are hosting the services together at one place till the time the service is not started or connected to the client The priority of the process is divided when running low on memory or when the process has to be killed The process lifecycle is as follows: - The service is running currently then the methods onCreate(), onStartCommand(), and onDestroy()methods, will run in the foreground to execute the process without being killed - The service is already started then the process can be considered as less important then the processes that are currently visible and used This is done as there are only few processes that are visible to the users on the screen - The clients are bounded to the services they are providing requires more priority in the execution list - The service that is started uses startForeground(int, Notification)API to allow all the services to run in the foreground state The system considers only the services where the user is still active as the services not to be killed 


  • Technology problems


    Search Results


    • 1. What is factory method in AngularJS ?

    • Options
    • A. It generates the facts and figures
    • B. It is used to create the service
    • C. It is used to calculate the factorial of a number
    • D. All the above
    • Discuss
    • 2. What are the core directives of AngularJS?
    • Discuss
    • 3. What is a data binding in AngularJS?
    • Discuss
    • 4. How to upload struts file in DHTML?
    • Discuss
    • 5. Explain in brief B2B, B2C, C2B and C2C.
    • Discuss
    • 6. Explain about Blackberry Enterprise Server.
    • Discuss
    • 7. What is 3G?
    • Discuss
    • 8. Describe how to step through code in .NET.
    • Discuss
    • 9. What are the Web Form Events available in ASP.NET?
    • Discuss
    • 10. What are the benefits of using of ADO.NET in .NET 4.0.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment