Skip to main content
0 votes
1 answer
516 views

I am implementing screen which shown terms and conditions text something like. By continuing you are agreeing to our terms of service. When user clicks on terms of service sub string I am ...
DCoder's user avatar
  • 3,528
0 votes
0 answers
105 views

We have a wrapper class for checking the Android SDK version, and it uses the ChecksSdkIntAtLeast annotation. Here's a trimmed example of the class with just one getter and the logging removed: class ...
StormFoo's user avatar
  • 1,199
0 votes
1 answer
864 views

I am new in Android developtment usign Bazel. I have put the @Keep annotation to prevent the obfuscation. To use it we need to import the library import androidx.annotation.Keep; In the project we'...
rmh's user avatar
  • 309
0 votes
1 answer
1k views

I have an issue after I deleted and updated some libraries from my project when I open any class that imports androidx.annotation.NonNull; I see error that Cannot resolve symbol 'NonNull' I do a ...
user3661581's user avatar
0 votes
1 answer
1k views

I haven't built an app in android using this library before android.annotation.SystemApi, but my project now requires it. Is there something wrong in my import statement that prevents me from using ...
san phil's user avatar
1 vote
1 answer
1k views

Normally, if we have a int parameter id to present a resource ID in Android. we could add annotations like @StringRes or @DrawableRes from androidx.annotation. So that IDE could use the information to ...
Gasol's user avatar
  • 2,557
0 votes
0 answers
62 views

Let's say we have the following interfaces - @Retention(RetentionPolicy.SOURCE) @StringDef({EventA.EVENT}) public @interface EventA{ String EVENT= "eventA"; } @...
nirkov's user avatar
  • 829
1 vote
1 answer
835 views

I am trying to use @ChecksSdkIntAtLeast annotation to convert our java utility functions into kotlin properties that would not require @SuppressLint("NewApi"). But anyway I write the ...
Majkeee's user avatar
  • 1,332
5 votes
1 answer
8k views

I would use the BadgeDrawable in my Android app on a Button, the issue is that when i'm trying to set to the button layout the badgeDrawable via attachBadgeDrawable i get an error on it which says: ...
NiceToMytyuk's user avatar
  • 4,497
1 vote
0 answers
559 views

Android Annotations relies heavily on resource IDs as annotation attributes. With each such attribute in code, the latest Android Studio issues a warning saying "Resource IDs will be non-final in ...
javaxian's user avatar
  • 2,504
16 votes
1 answer
1k views

The annotation @RequiresApi is helpful for requiring that the annotated element is only called on the given API level or higher. However, there does not appear to be a corresponding annotation for ...
ashughes's user avatar
  • 7,263
0 votes
1 answer
898 views

In recent release build creation, one of my classes which had @SerializedName member was getting obfuscated, which didn't happen in previous release. My class: data class Segments( @...
Ajay's user avatar
  • 926
0 votes
1 answer
174 views

I want to add the @Click Android Annotation to button which is not defined in the layout.xml, but created in onCreate and added programmatically to a SearchView: @EActivity public class ...
cauchy000's user avatar
-4 votes
3 answers
2k views

What do these annotations mean in this Kotlin code in android? @SuppressLint("SimpleDateFormat") fun convertLongToDateString(systemTime: Long): String { return SimpleDateFormat("EEEE MMM-dd-yyyy' ...
Akhil Pandey's user avatar
2 votes
1 answer
247 views

In one of my existing projects I already added the following libraries for use annotation shared preference def AAVersion = "4.6.0" dependencies { annotationProcessor "org.androidannotations:...
Komal's user avatar
  • 89

15 30 50 per page
1
2 3 4 5
33