Relative Content

Tag Archive for javaandroid-studio

when i run my app from android studio 2023 jellyfish (java language) through an pixel 4 emulator im gettting an error minsdk

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.android.material:material:1.12.0] C:Usersjoshu.gradlecachestransforms-484c9c5e97f7f101ffd1750ba12f4c6d7transformedmaterial-1.12.0AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project’s minSdk version to at least 19,
or use tools:overrideLibrary=”com.google.android.material” to force usage (may lead to runtime failures)

Android Studio change button stroke

I set my button stroke color, but it takes the primary color instead of the one I set. How can I set my selection to what I want instead of the primary. I am using this xml on EditText also it takes correctly the color. I guess Button has default settings and the one of them is color:primary or something

No item can be selected in spinner

In my android app I use 3 different spinners, but one of them won’t show my selection.
When I click on it I can see all the item in it, but when I select one of them nothing shows in the spinner itself, and the app goes on as if I didn’t select anything.
The problem might be that I’m filling items in my spinner after selecting an item in another spinner, but the spinner shows items I would expect it to have when clicking on it, it just doesn’t select any of them when it should.

Android Studio Assignment

Scenario
You have been tasked to develop an application which manages student tasks. An instructor
should be a to add tasks for students. A task should have a taskID, taskName, dueDate, and
a module where the test is for. A module should have a moduleID, moduleName, and the
duration for the module. Modules should be added by an admin. Students should also be
added by the admin, and students should have a studentID, studentName, studentSurname,
and the Dob. Students and instructors should be able to sign into the system to access
different functionalities.
Functionality for students include:
• Access tasks created by the instructor.
• Indicate whether the tasks are completed or not.
Functionality for the instructor includes:
• Creating tasks for students.
Functionality for adminsinclude:
• Creating students’ records.
• Creating module records.
• Creating instructor records.
You are required to implement a login activity to control access between the different roles
(admin, instructor, and a student) and use a navigation activity to group the different activities
for a specific user role. Each functionality in the program should have its own activity.