Skip to main content
3 votes
1 answer
128 views

I'm developing an Android app that gathers a list of currently installed apps, both system & user-installed, and displays them on screen via LazyColumn using a Card composable. And when the user ...
Ryan Barillos's user avatar
0 votes
0 answers
40 views

I see several examples, such as in this sample code in the Android dev documentation or this blog post, which suggests that the way to get an Activity context is to use the syntax this@MainActivity. ...
BobDoolittle's user avatar
  • 1,892
-1 votes
1 answer
41 views

i m french and my english is not good,so i use google to translate,sorry for mistakes I've been stuck on a problem for quite some time here you go: I'm looking to make a small application that makes ...
vulcain1972's user avatar
1 vote
0 answers
52 views

I'm new to Hilt/Dagger. I have an existing project with a Singleton, and I need a parameter from the caller app stored in intent extras: @Module @InstallIn(SingletonComponent::class) class MyModule { ...
ocramot's user avatar
  • 1,411
0 votes
1 answer
35 views

I'm a beginner in Android development. I'm trying to build a simple live wallpaper app, inspired by https://github.com/cyunrei/Video-Live-Wallpaper. One of the modifications I want to make is to not ...
bmurauer's user avatar
  • 1,319
1 vote
0 answers
142 views

I have some questions regarding Hilt library based on this article I have read : When (and When Not) to Pass the Activity Context in Android Why we should inject Context instead of activity object in ...
Nadin Martini's user avatar
0 votes
1 answer
33 views

I have a class that extends WebSocketServer and waits for a request from the client application and if a message arrives, it should run an activity. The code below shows how this works. Note that the ...
behnam karimi's user avatar
0 votes
1 answer
255 views

val context = appContext context.getString(key) is returning string in default language of system in android 12 , while it is returning string in selected language in android 13. Is there any ...
Jithin Murali's user avatar
3 votes
2 answers
2k views

I am dealing with IllegalStateException crashes pertaining to the usage of getString in onViewCreated; looking at the stack trace this goes back through getResources into requireContext, which throws ...
MajinKenn's user avatar
  • 109
0 votes
2 answers
133 views

I have a RecyclerView adapter for displaying a list of movies. I need to use the context to initialize the genrePreferences variable in my adapter. Where is the appropriate place in the adapter's ...
İbrahim Uyar's user avatar
0 votes
0 answers
18 views

I have a recogniseText() function which does text recognition using google ML Kit, placed in TextRecognizerActivity. Initially, I received an image from gallery in MainActivity.kt, and passed it with ...
Yahya Abdul Majeed's user avatar
3 votes
0 answers
894 views

I'm working on an app that allows you to change the language locally. To make this work without having to restart the app, I'm using the ContextWrapper on the BaseActivity, where I assign the language ...
Deneb Chorny's user avatar
-1 votes
1 answer
103 views

I am using the following function in one of my activities of my app: public static float convertDpToPixel(float dp, Context context){ return dp * ((float) context.getResources().getDisplayMetrics()...
sacacorchos's user avatar
1 vote
2 answers
7k views

would like to start TimerView() in onClick - TimerView is a text composable but the above mentioned error appears - both are marked composables Composable fun LosB(BLY: String, YArray: ArrayList<...
VFarkas2023's user avatar
0 votes
1 answer
91 views

my app crashes all the time, when I want to access a specific fragment. The error is: FATAL EXCEPTION: main Process: com.akstudios.kindergarten, PID: 15680 java.lang.NullPointerException: Attempt to ...
EXTSY's user avatar
  • 59

15 30 50 per page
1
2 3 4 5
132