Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use Java in Android Studio to complete the application Requirements The application will create a customized service (extend from service) to keep generating a

image text in transcribed

image text in transcribed

image text in transcribed

Please use Java in Android Studio to complete the application

Requirements The application will create a customized service (extend from service) to keep generating a random character every one second from A to Z using a new thread (DO NOT use application main thread). The service can be bound to the MainActivity of your application, so that the randomly generated characters can be displayed on the screen. Here are the important characteristics: There should be five buttons and one textview, start service, stop service, bind service, unbind service, and get random character, shown on the app (similar to the following screenshot). RandomNumberService Application START SERVICE STOP SERVICE BIND SERVICE UNBIND SERVICE START SERVICE STOP SERVICE BIND SERVICE UNBIND SERVICE GET RANDOM NUMBER The start button will trigger the random character generator service, The stop button will stop the service. The bind service button will bind the service with the main activity, The unbind service button will unbind the service. The get random character button will get the randomly generated character from the service and display it on the textview. Whenever the service status changed, you should display the current service status in the logcat. When random character generator service is running, the randomly generated characters must be shown in the logcat

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions