Question: * * * * * Please code in Java using API 3 4 and Groovy DSL . Please state where to insert each code block

*****Please code in Java using API 34 and Groovy DSL. Please state where to insert each code block (android manifest, java main, main activity.xml) Thank you****
Develop code that allows a user to log in.
As you develop your code, use the Android Emulator feature of Android Studio to test your code. Your app should work for users who dont have accounts. Focus on the following functionality:
The app should check the username and password against the database when the user attempts to log in.
If the user has never logged into the application before, they should be able to create a new login and password. The application needs to save these to a table in the database.
Develop code to create a database shell and display that databases information on a users screen using a grid.
The SQLite database will store inventory items.
This is what is required for the inventory: A database with at least two tables, one to store the inventory items and one to store user logins and passwords
A screen for logging into the app
Note that the screen for logging into the app should also be used to create a login if the user has never logged in before.
A screen with a grid that displays all items in the inventory
A mechanism by which the user can add and remove items from the inventory
A mechanism by which the user can increase or decrease the number of a specific item in the inventory
A mechanism by which the application will notify the user when the amount of any item in the inventory has been reduced to zero.
Any information your application needs to function correctly should be held in the database. But remember, you are only creating the shell for the database so a user can populate its contents later.
Note that you will need tables in the database to store user information when it is not being displayed in the grid. This database will be persistent so no user information is lost when the app is closed. Be sure to test your code often with the Android Emulator.
Your completed database should allow a user to accomplish the following actions:
Create: The user should be able to add items to a database.
Delete: The user should be able to remove items from a database.
Update: The user should be able to change the value associated with individual database items (e.g., the number of a specific item in an inventory or the date of an event).
Read: The user should be able to view all the database items displayed as a grid.
Develop code that prompts users for permission to send SMS messaging notifications and makes the app function based on the individual user's response.
Keep in mind that your applications user might deny access to the permissions needed for sending text messages via SMS. If they do, the rest of your application should continue to function without this feature. Use the Android Emulator to test both possible user response options.
When you do, you will look for the following outcomes:
If the user grants permissions, the application should send alerts to the user as SMS messages. The alerts correspond to the specific notification trigger of the application you chose (e.g., low inventory, an upcoming event, or reaching a goal weight).
If the user denies permission, the rest of the application should continue to function without the SMS messaging notification feature.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!