Files
cuidamais_med/app/build/reports/lint-results-debug.txt

722 lines
60 KiB
Plaintext

/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:331: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
aVoid -> Toast.makeText(this, "Consulta " + newStatus.toLowerCase(), Toast.LENGTH_SHORT).show())
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:433: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
&& c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) {
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:433: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
&& c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) {
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:508: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
&& c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) {
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:508: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
&& c.getType().toLowerCase().contains(doctorName.toLowerCase().split(" ")[0])) {
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:42: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
text = text.toLowerCase().trim();
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:44: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
if ((item.getNome() != null && item.getNome().toLowerCase().contains(text)) ||
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:45: Warning: Implicitly using the default locale is a common source of bugs: Use toLowerCase(Locale) instead. For strings meant to be internal use Locale.ROOT, otherwise Locale.getDefault(). [DefaultLocale]
(item.getEmail() != null && item.getEmail().toLowerCase().contains(text))) {
~~~~~~~~~~~
Explanation for issues of type "DefaultLocale":
Calling String#toLowerCase() or #toUpperCase() without specifying an
explicit locale is a common source of bugs. The reason for that is that
those methods will use the current locale on the user's device, and even
though the code appears to work correctly when you are developing the app,
it will fail in some locales. For example, in the Turkish locale, the
uppercase replacement for i is not I.
If you want the methods to just perform ASCII replacement, for example to
convert an enum name, call String#toUpperCase(Locale.ROOT) instead. If you
really want to use the current locale, call
String#toUpperCase(Locale.getDefault()) instead.
https://developer.android.com/reference/java/util/Locale.html#default_locale
/Users/230405/Desktop/med Cuida+/app/build.gradle:13: Warning: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details. [OldTargetApi]
targetSdk 35
~~~~~~~~~~~~
Explanation for issues of type "OldTargetApi":
When your application or sdk runs on a version of Android that is more
recent than your targetSdk specifies that it has been tested with, various
compatibility modes kick in. This ensures that your application continues
to work, but it may look out of place. For example, if the targetSdk is
less than 14, your app may get an option button in the UI.
To fix this issue, set the targetSdk to the highest available value. Then
test your app to make sure everything works correctly. You may want to
consult the compatibility notes to see what changes apply to each version
you are adding support for:
https://developer.android.com/reference/android/os/Build.VERSION_CODES.html
as well as follow this guide:
https://developer.android.com/distribute/best-practices/develop/target-sdk.
html
https://developer.android.com/distribute/best-practices/develop/target-sdk.html
/Users/230405/Desktop/med Cuida+/gradle/wrapper/gradle-wrapper.properties:3: Warning: A newer version of Gradle than 9.4.1 is available: 9.5.0 [AndroidGradlePluginVersion]
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "AndroidGradlePluginVersion":
This detector looks for usage of the Android Gradle Plugin where the
version you are using is not the current stable release. Using older
versions is fine, and there are cases where you deliberately want to stick
with an older version. However, you may simply not be aware that a more
recent version is available, and that is what this lint check helps find.
/Users/230405/Desktop/med Cuida+/app/build.gradle:8: Warning: A newer version of compileSdk than 35 is available: 37 [GradleDependency]
compileSdk 35
~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:39: Warning: A newer version of androidx.appcompat:appcompat than 1.6.1 is available: 1.7.1 [GradleDependency]
implementation 'androidx.appcompat:appcompat:1.6.1'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:40: Warning: A newer version of com.google.android.material:material than 1.11.0 is available: 1.13.0 [GradleDependency]
implementation 'com.google.android.material:material:1.11.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:41: Warning: A newer version of androidx.constraintlayout:constraintlayout than 2.1.4 is available: 2.2.1 [GradleDependency]
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:42: Warning: A newer version of androidx.lifecycle:lifecycle-livedata-ktx than 2.7.0 is available: 2.10.0 [GradleDependency]
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:43: Warning: A newer version of androidx.lifecycle:lifecycle-viewmodel-ktx than 2.7.0 is available: 2.10.0 [GradleDependency]
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:44: Warning: A newer version of androidx.navigation:navigation-fragment than 2.7.7 is available: 2.9.8 [GradleDependency]
implementation 'androidx.navigation:navigation-fragment:2.7.7'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:45: Warning: A newer version of androidx.navigation:navigation-ui than 2.7.7 is available: 2.9.8 [GradleDependency]
implementation 'androidx.navigation:navigation-ui:2.7.7'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:48: Warning: A newer version of androidx.credentials:credentials than 1.5.0 is available: 1.6.0 [GradleDependency]
implementation 'androidx.credentials:credentials:1.5.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:49: Warning: A newer version of androidx.credentials:credentials-play-services-auth than 1.5.0 is available: 1.6.0 [GradleDependency]
implementation 'androidx.credentials:credentials-play-services-auth:1.5.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:51: Warning: A newer version of com.google.android.libraries.identity.googleid:googleid than 1.1.1 is available: 1.2.0 [GradleDependency]
implementation 'com.google.android.libraries.identity.googleid:googleid:1.1.1'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:55: Warning: A newer version of androidx.test.ext:junit than 1.1.5 is available: 1.3.0 [GradleDependency]
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:56: Warning: A newer version of androidx.test.espresso:espresso-core than 3.5.1 is available: 3.7.0 [GradleDependency]
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:59: Warning: A newer version of com.google.android.gms:play-services-location than 21.0.1 is available: 21.3.0 [GradleDependency]
implementation 'com.google.android.gms:play-services-location:21.0.1'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:73: Warning: A newer version of com.google.firebase:firebase-bom than 32.7.2 is available: 34.12.0 [GradleDependency]
implementation platform('com.google.firebase:firebase-bom:32.7.2')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "GradleDependency":
This detector looks for usages of libraries where the version you are using
is not the current stable release. Using older versions is fine, and there
are cases where you deliberately want to stick with an older version.
However, you may simply not be aware that a more recent version is
available, and that is what this lint check helps find.
/Users/230405/Desktop/med Cuida+/app/build.gradle:62: Warning: Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (com.google.ai.client.generativeai:generativeai:+) [GradleDynamicVersion]
implementation 'com.google.ai.client.generativeai:generativeai:+'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "GradleDynamicVersion":
Using + in dependencies lets you automatically pick up the latest available
version rather than a specific, named version. However, this is not
recommended; your builds are not repeatable; you may have tested with a
slightly different version than what the build server used. (Using a
dynamic version as the major version number is more problematic than using
it in the minor version position.)
/Users/230405/Desktop/med Cuida+/app/build.gradle:65: Warning: A newer version of com.google.guava:guava than 31.1-android is available: 33.6.0-android [NewerVersionAvailable]
implementation 'com.google.guava:guava:31.1-android'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:68: Warning: A newer version of com.squareup.retrofit2:retrofit than 2.9.0 is available: 3.0.0 [NewerVersionAvailable]
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:69: Warning: A newer version of com.squareup.retrofit2:converter-gson than 2.9.0 is available: 3.0.0 [NewerVersionAvailable]
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:70: Warning: A newer version of com.squareup.okhttp3:okhttp than 4.10.0 is available: 5.3.2 [NewerVersionAvailable]
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:81: Warning: A newer version of com.github.bumptech.glide:glide than 4.16.0 is available: 5.0.7 [NewerVersionAvailable]
implementation 'com.github.bumptech.glide:glide:4.16.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/build.gradle:82: Warning: A newer version of com.github.bumptech.glide:compiler than 4.16.0 is available: 5.0.7 [NewerVersionAvailable]
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NewerVersionAvailable":
This detector checks with a central repository to see if there are newer
versions available for the dependencies used by this project. This is
similar to the GradleDependency check, which checks for newer versions
available in the Android SDK tools and libraries, but this works with any
MavenCentral dependency, and connects to the library every time, which
makes it more flexible but also much slower.
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/ConsultaAdapter.java:40: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged]
notifyDataSetChanged();
~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:34: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged]
notifyDataSetChanged();
~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/PacienteAdapter.java:50: Warning: It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. [NotifyDataSetChanged]
notifyDataSetChanged();
~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NotifyDataSetChanged":
The RecyclerView adapter's onNotifyDataSetChanged method does not specify
what about the data set has changed, forcing any observers to assume that
all existing items and structure may no longer be valid. `LayoutManager`s
will be forced to fully rebind and relayout all visible views.
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:107: Warning: Set android:baselineAligned="false" on this element for better performance [DisableBaselineAlignment]
<LinearLayout
~~~~~~~~~~~~
Explanation for issues of type "DisableBaselineAlignment":
When a LinearLayout is used to distribute the space proportionally between
nested layouts, the baseline alignment property should be turned off to
make the layout computation faster.
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:7: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="@color/background_color"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:7: Warning: Possible overdraw: Root element paints background #FAFAFA with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="#FAFAFA">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:8: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="@color/background_color">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_login.xml:7: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="@color/background_color">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:6: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="@color/background_color">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_register.xml:7: Warning: Possible overdraw: Root element paints background @color/background_color with a theme that also paints a background (inferred theme is @style/Theme.Cuida) [Overdraw]
android:background="@color/background_color">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "Overdraw":
If you set a background drawable on a root view, then you should use a
custom theme where the theme background is null. Otherwise, the theme
background will be painted first, only to have your custom background
completely cover it; this is called "overdraw".
NOTE: This detector relies on figuring out which layouts are associated
with which activities based on scanning the Java code, and it's currently
doing that using an inexact pattern matching algorithm. Therefore, it can
incorrectly conclude which activity the layout is associated with and then
wrongly complain that a background-theme is hidden.
If you want your custom background on multiple pages, then you should
consider making a custom theme with your custom background and just using
that theme instead of a root element background.
Of course it's possible that your custom drawable is translucent and you
want it to be mixed with the background. However, you will get better
performance if you pre-mix the background with your drawable and use that
resulting image or color as a custom theme background instead.
/Users/230405/Desktop/med Cuida+/app/src/main/res/menu/bottom_nav_menu.xml:2: Warning: The resource R.menu.bottom_nav_menu appears to be unused [UnusedResources]
<menu xmlns:android="http://schemas.android.com/apk/res/android">
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/btn_outline_error.xml:2: Warning: The resource R.drawable.btn_outline_error appears to be unused [UnusedResources]
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/btn_outline_primary.xml:2: Warning: The resource R.drawable.btn_outline_primary appears to be unused [UnusedResources]
<shape xmlns:android="http://schemas.android.com/apk/res/android">
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/circle_bg_large.xml:2: Warning: The resource R.drawable.circle_bg_large appears to be unused [UnusedResources]
<shape xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:18: Warning: The resource R.color.purple_200 appears to be unused [UnusedResources]
<color name="purple_200">#93C5FD</color>
~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:19: Warning: The resource R.color.purple_500 appears to be unused [UnusedResources]
<color name="purple_500">#3B82F6</color>
~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:20: Warning: The resource R.color.purple_700 appears to be unused [UnusedResources]
<color name="purple_700">#1D4ED8</color>
~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:21: Warning: The resource R.color.teal_200 appears to be unused [UnusedResources]
<color name="teal_200">#60A5FA</color>
~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:22: Warning: The resource R.color.teal_700 appears to be unused [UnusedResources]
<color name="teal_700">#1E40AF</color>
~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/colors.xml:23: Warning: The resource R.color.black appears to be unused [UnusedResources]
<color name="black">#000000</color>
~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:2: Warning: The resource R.layout.dialog_change_password appears to be unused [UnusedResources]
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_launcher.xml:1: Warning: The resource R.drawable.ic_launcher appears to be unused [UnusedResources]
<vector xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_launcher_final.xml:2: Warning: The resource R.drawable.ic_launcher_final appears to be unused [UnusedResources]
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_launcher_round.xml:1: Warning: The resource R.drawable.ic_launcher_round appears to be unused [UnusedResources]
<vector xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_logo.png: Warning: The resource R.drawable.ic_logo appears to be unused [UnusedResources]
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_logo_scaled.xml:2: Warning: The resource R.drawable.ic_logo_scaled appears to be unused [UnusedResources]
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_nav_contactos.xml:1: Warning: The resource R.drawable.ic_nav_contactos appears to be unused [UnusedResources]
<vector xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_placeholder.xml:1: Warning: The resource R.drawable.ic_placeholder appears to be unused [UnusedResources]
<vector xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/navigation/mobile_navigation.xml:2: Warning: The resource R.navigation.mobile_navigation appears to be unused [UnusedResources]
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
^
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:3: Warning: The resource R.string.title_home appears to be unused [UnusedResources]
<string name="title_home">Início</string>
~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:4: Warning: The resource R.string.title_appointments appears to be unused [UnusedResources]
<string name="title_appointments">Consultas</string>
~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:5: Warning: The resource R.string.title_medication appears to be unused [UnusedResources]
<string name="title_medication">Medicação</string>
~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:6: Warning: The resource R.string.title_sns24 appears to be unused [UnusedResources]
<string name="title_sns24">SNS 24</string>
~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:7: Warning: The resource R.string.title_profile appears to be unused [UnusedResources]
<string name="title_profile">Perfil</string>
~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/strings.xml:16: Warning: The resource R.string.age_hint appears to be unused [UnusedResources]
<string name="age_hint">Idade</string>
~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/values/themes.xml:46: Warning: The resource R.style.ShapeAppearanceOverlay_App_CornerSize50Percent appears to be unused [UnusedResources]
<style name="ShapeAppearanceOverlay.App.CornerSize50Percent" parent="">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "UnusedResources":
Unused resources make applications larger and slow down builds.
The unused resource check can ignore tests. If you want to include
resources that are only referenced from tests, consider packaging them in a
test source set instead.
You can include test sources in the unused resource check by setting the
system property lint.unused-resources.include-tests=true, and to exclude
them (usually for performance reasons), use
lint.unused-resources.exclude-tests=true.
Available options:
**skip-libraries** (default is true):
Whether the unused resource check should skip reporting unused resources in libraries.
Many libraries will declare resources that are part of the library surface; other modules depending on the library will also reference the resources. To avoid reporting all these resources as unused (in the context of a library), the unused resource check normally skips reporting unused resources in libraries. Instead, run the unused resource check on the consuming app module (along with `checkDependencies=true`).
However, there are cases where you want to check that all the resources declared in a library are used; in that case, you can disable the skip option.
To configure this option, use a `lint.xml` file with an <option> like this:
```xml
<lint>
<issue id="UnusedResources">
<option name="skip-libraries" value="true" />
</issue>
</lint>
```
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/.!2449!ic_logo.png: Warning: Found bitmap drawable res/drawable/.!2449!ic_logo.png in densityless folder [IconLocation]
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/ic_logo.png: Warning: Found bitmap drawable res/drawable/ic_logo.png in densityless folder [IconLocation]
/Users/230405/Desktop/med Cuida+/app/src/main/res/drawable/logo_app.png: Warning: Found bitmap drawable res/drawable/logo_app.png in densityless folder [IconLocation]
Explanation for issues of type "IconLocation":
The res/drawable folder is intended for density-independent graphics such
as shapes defined in XML. For bitmaps, move it to drawable-mdpi and
consider providing higher and lower resolution versions in drawable-ldpi,
drawable-hdpi and drawable-xhdpi. If the icon really is density independent
(for example a solid color) you can place it in drawable-nodpi.
https://developer.android.com/guide/practices/screens_support.html
/Users/230405/Desktop/med Cuida+/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: Warning: The following unrelated icon files have identical contents: ic_launcher.png, ic_launcher_round.png [IconDuplicates]
/Users/230405/Desktop/med Cuida+/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: Warning: The following unrelated icon files have identical contents: ic_launcher.png, ic_launcher_round.png [IconDuplicates]
/Users/230405/Desktop/med Cuida+/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: Warning: The following unrelated icon files have identical contents: ic_launcher.png, ic_launcher_round.png [IconDuplicates]
/Users/230405/Desktop/med Cuida+/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: Warning: The following unrelated icon files have identical contents: ic_launcher.png, ic_launcher_round.png [IconDuplicates]
/Users/230405/Desktop/med Cuida+/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: Warning: The following unrelated icon files have identical contents: ic_launcher.png, ic_launcher_round.png [IconDuplicates]
Explanation for issues of type "IconDuplicates":
If an icon is repeated under different names, you can consolidate and just
use one of the icons and delete the others to make your application
smaller. However, duplicated icons usually are not intentional and can
sometimes point to icons that were accidentally overwritten or accidentally
not updated.
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:15: Warning: Missing contentDescription attribute on image [ContentDescription]
<ImageButton
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:10: Warning: Missing contentDescription attribute on image [ContentDescription]
<ImageView
~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:189: Warning: Missing contentDescription attribute on image [ContentDescription]
<ImageButton
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:225: Warning: Missing contentDescription attribute on image [ContentDescription]
<ImageButton
~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:234: Warning: Missing contentDescription attribute on image [ContentDescription]
<ImageButton
~~~~~~~~~~~
Explanation for issues of type "ContentDescription":
Non-textual widgets like ImageViews and ImageButtons should use the
contentDescription attribute to specify a textual description of the widget
such that screen readers and other accessibility tools can adequately
describe the user interface.
Note that elements in application screens that are purely decorative and do
not provide any content or enable a user action should not have
accessibility content descriptions. In this case, set their descriptions to
@null. If your app's minSdkVersion is 16 or higher, you can instead set
these graphical elements' android:importantForAccessibility attributes to
no.
Note that for text fields, you should not set both the hint and the
contentDescription attributes since the hint will never be shown. Just set
the hint.
https://developer.android.com/guide/topics/ui/accessibility/apps#special-cases
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:126: Warning: 'clickable' attribute found, please also add 'focusable' [KeyboardInaccessibleWidget]
android:clickable="true"
~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:143: Warning: 'clickable' attribute found, please also add 'focusable' [KeyboardInaccessibleWidget]
android:clickable="true"
~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "KeyboardInaccessibleWidget":
A widget that is declared to be clickable but not declared to be focusable
is not accessible via the keyboard. Please add the focusable attribute as
well.
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:100: Warning: Missing accessibility label: provide either a view with an android:labelFor that references this view or provide an android:hint [LabelFor]
<AutoCompleteTextView
~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_register.xml:84: Warning: Missing accessibility label: provide either a view with an android:labelFor that references this view or provide an android:hint [LabelFor]
<AutoCompleteTextView
~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "LabelFor":
Editable text fields should provide an android:hint or, provided your
minSdkVersion is at least 17, they may be referenced by a view with a
android:labelFor attribute.
When using android:labelFor, be sure to provide an android:text or an
android:contentDescription.
If your view is labeled but by a label in a different layout which includes
this one, just suppress this warning from lint.
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/ConsultaAdapter.java:90: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
textPacienteNome.setText("A carregar nome...");
~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/ConsultaAdapter.java:102: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
textPacienteNome.setText("Paciente s/ Nome");
~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/adapters/ConsultaAdapter.java:105: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
textPacienteNome.setText("Paciente Apagado");
~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:76: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvNome.setText("Nome: " + (nome != null ? nome : "N/D"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:76: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvNome.setText("Nome: " + (nome != null ? nome : "N/D"));
~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:77: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvIdade.setText("Idade: " + (idade != null ? idade : "N/D"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:77: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvIdade.setText("Idade: " + (idade != null ? idade : "N/D"));
~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:78: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvNumeroUtente.setText("Nº Utente: " + (numUtente != null ? numUtente : "N/D"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:78: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvNumeroUtente.setText("Nº Utente: " + (numUtente != null ? numUtente : "N/D"));
~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:79: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvSexo.setText("Sexo: " + (sexo != null ? sexo : "N/D"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:79: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvSexo.setText("Sexo: " + (sexo != null ? sexo : "N/D"));
~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:80: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvEmail.setText("Email: " + (email != null ? email : "N/D"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/DetalhePacienteActivity.java:80: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvEmail.setText("Email: " + (email != null ? email : "N/D"));
~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/auth/LoginActivity.java:95: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
loginButton.setText("A entrar...");
~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/auth/LoginActivity.java:108: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
loginButton.setText("Entrar");
~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/ui/auth/LoginActivity.java:156: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
loginButton.setText("Entrar");
~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:117: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvGreetingMain.setText("Olá, " + firstWord);
~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:117: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvGreetingMain.setText("Olá, " + firstWord);
~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:467: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
textAgendaVazia.setText("Não existem consultas agendadas para este dia.");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:629: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvGreetingMain.setText("Olá, " + firstWord);
~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:629: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvGreetingMain.setText("Olá, " + firstWord);
~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:633: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
"Especialidade: " + (doc.getString("especialidade") != null ? doc.getString("especialidade") : "--"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:633: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
"Especialidade: " + (doc.getString("especialidade") != null ? doc.getString("especialidade") : "--"));
~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:638: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvCedula.setText("Género: " + (sexo != null && !sexo.isEmpty() ? sexo : "--"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:638: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvCedula.setText("Género: " + (sexo != null && !sexo.isEmpty() ? sexo : "--"));
~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:639: Warning: Do not concatenate text displayed with setText. Use resource string with placeholders. [SetTextI18n]
tvHorario.setText("Horário: " + (horario != null && !horario.isEmpty() ? horario : "--"));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/java/com/example/medcuida/pro/MainActivity.java:639: Warning: String literal in setText can not be translated. Use Android resources instead. [SetTextI18n]
tvHorario.setText("Horário: " + (horario != null && !horario.isEmpty() ? horario : "--"));
~~~~~~~~~~~
Explanation for issues of type "SetTextI18n":
When calling TextView#setText
* Never call Number#toString() to format numbers; it will not handle
fraction separators and locale-specific digits properly. Consider using
String#format with proper format specifications (%d or %f) instead.
* Do not pass a string literal (e.g. "Hello") to display text. Hardcoded
text can not be properly translated to other languages. Consider using
Android resource strings instead.
* Do not build messages by concatenating text chunks. Such messages can not
be properly translated.
https://developer.android.com/guide/topics/resources/localization.html
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:22: Warning: Hardcoded string "Sair", should use @string resource [HardcodedText]
android:contentDescription="Sair"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:57: Warning: Hardcoded string "Informação Pessoal", should use @string resource [HardcodedText]
android:text="Informação Pessoal"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:67: Warning: Hardcoded string "Nome: A carregar...", should use @string resource [HardcodedText]
android:text="Nome: A carregar..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:75: Warning: Hardcoded string "Idade: A carregar...", should use @string resource [HardcodedText]
android:text="Idade: A carregar..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:83: Warning: Hardcoded string "Nº Utente: A carregar...", should use @string resource [HardcodedText]
android:text="Nº Utente: A carregar..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:91: Warning: Hardcoded string "Sexo: A carregar...", should use @string resource [HardcodedText]
android:text="Sexo: A carregar..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:99: Warning: Hardcoded string "Email: A carregar...", should use @string resource [HardcodedText]
android:text="Email: A carregar..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:125: Warning: Hardcoded string "Medicação Ativa", should use @string resource [HardcodedText]
android:text="Medicação Ativa"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:135: Warning: Hardcoded string "A carregar medicação...", should use @string resource [HardcodedText]
android:text="A carregar medicação..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:162: Warning: Hardcoded string "Ações", should use @string resource [HardcodedText]
android:text="Ações"
~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:172: Warning: Hardcoded string "Enviar para App do Paciente", should use @string resource [HardcodedText]
android:text="Enviar para App do Paciente"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_detalhe_paciente.xml:181: Warning: Hardcoded string "Partilhar Relatório", should use @string resource [HardcodedText]
android:text="Partilhar Relatório"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:26: Warning: Hardcoded string "Editar Dados Pessoais", should use @string resource [HardcodedText]
android:text="Editar Dados Pessoais"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:58: Warning: Hardcoded string "Editar foto", should use @string resource [HardcodedText]
android:contentDescription="Editar foto"/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:71: Warning: Hardcoded string "Nome", should use @string resource [HardcodedText]
android:hint="Nome"
~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:87: Warning: Hardcoded string "Especialidade", should use @string resource [HardcodedText]
android:hint="Especialidade"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:98: Warning: Hardcoded string "Sexo", should use @string resource [HardcodedText]
android:hint="Sexo">
~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:124: Warning: Hardcoded string "Início", should use @string resource [HardcodedText]
android:hint="Início"
~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:141: Warning: Hardcoded string "Fim", should use @string resource [HardcodedText]
android:hint="Fim"
~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:159: Warning: Hardcoded string "Email (Não editável)", should use @string resource [HardcodedText]
android:hint="Email (Não editável)"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_editar_perfil.xml:167: Warning: Hardcoded string "GUARDAR ALTERAÇÕES", should use @string resource [HardcodedText]
android:text="GUARDAR ALTERAÇÕES"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:29: Warning: Hardcoded string "Insira o seu email para recuperar a palavra-passe.", should use @string resource [HardcodedText]
android:text="Insira o seu email para recuperar a palavra-passe."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:55: Warning: Hardcoded string "Recuperar Palavra-passe", should use @string resource [HardcodedText]
android:text="Recuperar Palavra-passe"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_forgot_password.xml:63: Warning: Hardcoded string "Voltar ao Login", should use @string resource [HardcodedText]
android:text="Voltar ao Login"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_login.xml:86: Warning: Hardcoded string "Lembrar-me", should use @string resource [HardcodedText]
android:text="Lembrar-me"
~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:24: Warning: Hardcoded string "Olá", should use @string resource [HardcodedText]
android:text="Olá"
~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:78: Warning: Hardcoded string "Não tens consultas agendadas para este dia.", should use @string resource [HardcodedText]
android:text="Não tens consultas agendadas para este dia."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:99: Warning: Hardcoded string "Nomes dos Pacientes", should use @string resource [HardcodedText]
android:text="Nomes dos Pacientes"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:129: Warning: Hardcoded string "Pesquisar por nome...", should use @string resource [HardcodedText]
android:hint="Pesquisar por nome..."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:139: Warning: Hardcoded string "Nenhuma consulta marcada.", should use @string resource [HardcodedText]
android:text="Nenhuma consulta marcada."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:166: Warning: Hardcoded string "Histórico de Consultas", should use @string resource [HardcodedText]
android:text="Histórico de Consultas"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:211: Warning: Hardcoded string "Selecionar Dia", should use @string resource [HardcodedText]
android:text="Selecionar Dia"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:220: Warning: Hardcoded string "Data Selecionada", should use @string resource [HardcodedText]
android:text="Data Selecionada"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:249: Warning: Hardcoded string "Nenhuma consulta encontrada para este dia.", should use @string resource [HardcodedText]
android:text="Nenhuma consulta encontrada para este dia."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:309: Warning: Hardcoded string "Nome do Utilizador", should use @string resource [HardcodedText]
android:text="Nome do Utilizador"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:319: Warning: Hardcoded string "email@exemplo.com", should use @string resource [HardcodedText]
android:text="email@exemplo.com"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:335: Warning: Hardcoded string "Especialidade: --", should use @string resource [HardcodedText]
android:text="Especialidade: --"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:344: Warning: Hardcoded string "Género: --", should use @string resource [HardcodedText]
android:text="Género: --"
~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:353: Warning: Hardcoded string "Horário: --", should use @string resource [HardcodedText]
android:text="Horário: --"
~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:363: Warning: Hardcoded string "EDITAR DADOS", should use @string resource [HardcodedText]
android:text="EDITAR DADOS"
~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_main.xml:375: Warning: Hardcoded string "TERMINAR SESSÃO", should use @string resource [HardcodedText]
android:text="TERMINAR SESSÃO"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_register.xml:71: Warning: Hardcoded string "Especialidade", should use @string resource [HardcodedText]
android:hint="Especialidade"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/activity_register.xml:82: Warning: Hardcoded string "Sexo", should use @string resource [HardcodedText]
android:hint="Sexo">
~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:11: Warning: Hardcoded string "Alterar Palavra-passe", should use @string resource [HardcodedText]
android:text="Alterar Palavra-passe"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:26: Warning: Hardcoded string "Nova Palavra-passe", should use @string resource [HardcodedText]
android:hint="Nova Palavra-passe"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:43: Warning: Hardcoded string "Cancelar", should use @string resource [HardcodedText]
android:text="Cancelar"
~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/dialog_change_password.xml:50: Warning: Hardcoded string "Salvar", should use @string resource [HardcodedText]
android:text="Salvar" />
~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:33: Warning: Hardcoded string "Foto do utente", should use @string resource [HardcodedText]
android:contentDescription="Foto do utente"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:46: Warning: Hardcoded string "Nome do Paciente", should use @string resource [HardcodedText]
android:text="Nome do Paciente"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:55: Warning: Hardcoded string "Data e Hora", should use @string resource [HardcodedText]
android:text="Data e Hora"
~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:64: Warning: Hardcoded string "Pendente", should use @string resource [HardcodedText]
android:text="Pendente"
~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:88: Warning: Hardcoded string "Rejeitar", should use @string resource [HardcodedText]
android:text="Rejeitar" />
~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_consulta_medico.xml:96: Warning: Hardcoded string "Aceitar", should use @string resource [HardcodedText]
android:text="Aceitar" />
~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_paciente.xml:29: Warning: Hardcoded string "Foto do paciente", should use @string resource [HardcodedText]
android:contentDescription="Foto do paciente"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_paciente.xml:42: Warning: Hardcoded string "Nome do Paciente", should use @string resource [HardcodedText]
android:text="Nome do Paciente"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/layout/item_paciente.xml:51: Warning: Hardcoded string "email@exemplo.com", should use @string resource [HardcodedText]
android:text="email@exemplo.com"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/menu/menu_bottom.xml:6: Warning: Hardcoded string "Pacientes", should use @string resource [HardcodedText]
android:title="Pacientes" />
~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/menu/menu_bottom.xml:10: Warning: Hardcoded string "Agenda", should use @string resource [HardcodedText]
android:title="Agenda" />
~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/menu/menu_bottom.xml:14: Warning: Hardcoded string "Consultas", should use @string resource [HardcodedText]
android:title="Consultas" />
~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/230405/Desktop/med Cuida+/app/src/main/res/menu/menu_bottom.xml:18: Warning: Hardcoded string "Perfil", should use @string resource [HardcodedText]
android:title="Perfil" />
~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "HardcodedText":
Hardcoding text attributes directly in layout files is bad for several
reasons:
* When creating configuration variations (for example for landscape or
portrait) you have to repeat the actual text (and keep it up to date when
making changes)
* The application cannot be translated to other languages by just adding
new translations for existing string resources.
There are quickfixes to automatically extract this hardcoded string into a
resource lookup.
0 errors, 172 warnings