id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73,056,989 | In android how do I change activity from a global function? | <p>I have a global functions class and one function i am writing checks the validity of the session by comparing the session and user id from localstorage to the database value and when it is invalid i want the user to be sent back to the login.class but instead my app crashes i have searched on SO about this problem a... | I have a global functions class and one function i am writing checks the validity of the session by comparing the session and user id from localstorage to the database value and when it is invalid i want the user to be sent back to the login.class but instead my app crashes i have searched on SO about this problem and ... | java|android|global|android-context | 0 | 2022-07-20T19:09:17.167Z | 2,022 | 7 | 19 | 2 | 22 | 0 | 491 | 59 | 4 | 1 | true | true | false | false | false | false | zero |
73,057,001 | Build error despite having the correct Kotlin version | <p>It's ridiculous, that I am getting this error, when I do have: <code>id 'org.jetbrains.kotlin.android' version '1.6.10' apply false</code></p>
<p><strong>Update:</strong> Everything worked fine all day. The moment, I decided to incorporate this, <a href="https://dagger.dev/hilt/" rel="nofollow noreferrer">https://da... | It's ridiculous, that I am getting this error, when I do have: id 'org.jetbrains.kotlin.android' version '1.6.10' apply false Update: Everything worked fine all day. The moment, I decided to incorporate this, https://dagger.dev/hilt/ , that's when problems began to occur. Not sure of why, I followed all the instruction... | android|config|android-jetpack-compose | 0 | 2022-07-20T19:10:14.540Z | 2,022 | 7 | 19 | 2 | 187 | 1 | 453 | 53 | 3 | 4 | true | false | false | false | false | false | zero |
73,057,088 | I can't show my toast message with Flutter | <pre><code>Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
signInButton(
context,
() {
Navigator.of(context).push(MaterialPageRoute(
builder: (context) => const HomeScreen(),
));
},
child: const Text("Toast Message"),
),
],
)
... | [CODE] Same Example in here I made almost the same code as seen in the link. The only difference is that I defined the button as a separate widget and gave the values inside the widget. But when I go to HomeScreen, I can't see the Toast message. Do I need to define this in the widget too? [CODE] These are the codes o... | android|flutter|text | 1 | 2022-07-20T19:18:07.823Z | 2,022 | 7 | 19 | 2 | 76 | 1 | 419 | 42 | 3 | 2 | true | false | false | false | false | false | low |
73,057,096 | Android pass Edit Text data onChange from Activity to Fragment | <p>I have a main activity with a heading and a search field (edit text), I want to be able to search and the results are immediately shown in the fragment, like an onChange instead of waiting for the user to click a button to filter results. (which is in the activity).</p>
<p>I can get it working if I include the Edit ... | I have a main activity with a heading and a search field (edit text), I want to be able to search and the results are immediately shown in the fragment, like an onChange instead of waiting for the user to click a button to filter results. (which is in the activity). I can get it working if I include the Edit Text in my... | java|android | 0 | 2022-07-20T19:18:31.163Z | 2,022 | 7 | 19 | 2 | 52 | 2 | 684 | 62 | 2 | 0 | false | false | false | false | false | false | zero |
73,057,168 | Can't open or find downloaded mp3 file | <p>I am downloading audio file in mp3 and trying to play it with a music player but can't find the mp3 file anywhere. I can only see it from my app. No music player apps can access it.
Here is the code.</p>
<pre><code>Future<String?> saveAudio(bytes, fileName) async {
Directory directory;
try {
... | I am downloading audio file in mp3 and trying to play it with a music player but can't find the mp3 file anywhere. I can only see it from my app. No music player apps can access it. Here is the code. [CODE] | android|flutter|dart | 1 | 2022-07-20T19:26:00.617Z | 2,022 | 7 | 19 | 2 | 46 | 0 | 206 | 38 | 3 | 1 | true | true | false | false | false | false | low |
73,057,406 | Problems configuring the Tranxit driver app | <p>Well, I have a project developed in java and I want to emulate it using android stdio. I did all the firebase settings, downloaded the <strong>google-services.json</strong> file, configured the <strong>build.gradle</strong> file with the application id. I'm using <strong>API 31</strong> to emulate the application as... | Well, I have a project developed in java and I want to emulate it using android stdio. I did all the firebase settings, downloaded the google-services.json file, configured the build.gradle file with the application id. I'm using API 31 to emulate the application as specified in the configuration file (bluid.gradle) . ... | java|android|android-studio|android-api-31 | 1 | 2022-07-20T19:51:23.830Z | 2,022 | 7 | 19 | 2 | 17 | 0 | 695 | 43 | 4 | 0 | false | true | false | false | false | false | low |
73,057,479 | android reverse engineering: http api signature (MD5 calculation) | <p>Maybe someone can help me here. I have the following android system and an android app, which gets MCU firmware, boot logo and an app for car settings via a Chinese server:
<a href="https://2-din.ru/product/Opel-Astra-J-2010-2015-7051" rel="nofollow noreferrer">https://2-din.ru/product/Opel-Astra-J-2010-2015-7051</a... | Maybe someone can help me here. I have the following android system and an android app, which gets MCU firmware, boot logo and an app for car settings via a Chinese server: https://2-din.ru/product/Opel-Astra-J-2010-2015-7051 The MCU is responsible for the interaction between my Android car radio and the connected Canb... | android|reverse-engineering|dex|smali|http-post-vars | 0 | 2022-07-20T19:58:34.350Z | 2,022 | 7 | 19 | 2 | 105 | 1 | 3,475 | 65 | 5 | 10 | true | false | false | false | false | false | zero |
73,057,575 | File watcher failed repeatedly and has been disabled | <p>Since an unexpected power loss a while back (my computer just went off) I'm getting this pesky warning from Android Studio at launch:</p>
<blockquote>
<p>/!\ External file changes sync may be slow</p>
<p>File watcher failed repeatedly and has been disabled</p>
</blockquote>
<p>I understand the message, but I have no... | Since an unexpected power loss a while back (my computer just went off) I'm getting this pesky warning from Android Studio at launch: /!\ External file changes sync may be slow File watcher failed repeatedly and has been disabled I understand the message, but I have no idea what I should do about it. Apart from that wa... | android-studio | 6 | 2022-07-20T20:08:39.530Z | 2,022 | 7 | 20 | 2 | 1,066 | 1 | 393 | 52 | 1 | 0 | false | false | false | false | false | false | medium |
73,057,797 | How to use the "Scan QR code" quick tile to my app's advantage? | <p>In Android 13, we have a new quick tile "Scan QR code". When we scan a QR with it, it takes us to the relevant app or if there are multiple apps that supports this QR data type it lets us choose and navigates to that app.</p>
<p>For example, if we scan an UPI QR code, it shows us all the apps that support ... | In Android 13, we have a new quick tile "Scan QR code". When we scan a QR with it, it takes us to the relevant app or if there are multiple apps that supports this QR data type it lets us choose and navigates to that app. For example, if we scan an UPI QR code, it shows us all the apps that support scanning U... | qr-code|android-13 | 1 | 2022-07-20T20:29:18.843Z | 2,022 | 7 | 20 | 2 | 31 | 0 | 496 | 63 | 2 | 0 | false | true | false | false | false | false | low |
73,057,800 | Ui state not working correctly in jetpack compose | <p>I am using MutableStateFlow <a href="https://developer.android.com/kotlin/flow/stateflow-and-sharedflow#stateflow" rel="nofollow noreferrer">UI State</a> in jetpack compose. I am not getting proper flow of my UI event. In UI state there is <strong>Empty</strong>, <strong>Loading</strong>, <strong>Success</strong> an... | I am using MutableStateFlow UI State in jetpack compose. I am not getting proper flow of my UI event. In UI state there is Empty , Loading , Success and Error state. I setup a Empty state when I initialise a variable. When I am starting to call api before that I am trigger Loading state. On that basis I am triggering S... | android|kotlin|android-jetpack-compose|android-jetpack | 1 | 2022-07-20T20:29:34.560Z | 2,022 | 7 | 20 | 2 | 258 | 1 | 1,030 | 49 | 4 | 7 | true | false | false | false | false | false | low |
73,057,820 | how to save selected radio button and spinner data by value using rest API? | <p>I am using rest API and facing some issue when embedding an API. How do I save spinner and radio button data by value and using retrofit2.This API is for calculating BMR and BMR Please help!</p>
<p>Here is BMIquestions.java</p>
<pre><code>
public class BMIquestions extends AppCompatActivity implements View.OnClickLi... | I am using rest API and facing some issue when embedding an API. How do I save spinner and radio button data by value and using retrofit2.This API is for calculating BMR and BMR Please help! Here is BMIquestions.java [CODE] Here is activity_bmiquestions.xml [CODE] Here is Api Interface [CODE] Here is RetrofitClient.jav... | java|android|mysql|xml|retrofit2 | 1 | 2022-07-20T20:31:51.457Z | 2,022 | 7 | 20 | 2 | 32 | 0 | 356 | 75 | 5 | 4 | true | true | false | false | false | false | low |
73,057,988 | How to get current date with reset time 00:00 in kotlin | <p>Hey I am using calendar instance to get current date and time.</p>
<pre><code>private fun getCurrentCalendar() { Calendar.getInstance() }
</code></pre>
<p>Output:- <code>Wed Jul 20 21:45:52 GMT+01:00 2022</code></p>
<p>If I want to reset time I need to use this function</p>
<pre><code>fun resetCalendarTime(calendar:... | Hey I am using calendar instance to get current date and time. [CODE] Output:- Wed Jul 20 21:45:52 GMT+01:00 2022 If I want to reset time I need to use this function [CODE] it will give this [CODE] My question is there any efficient way of doing that or this is fine in android? | android|kotlin|date|datetime|time | 0 | 2022-07-20T20:50:35.490Z | 2,022 | 7 | 20 | 2 | 97 | 1 | 278 | 55 | 5 | 3 | true | false | false | false | false | false | zero |
73,058,043 | React Native: Make sure an external app is running in the background | <p>I want to make sure an external app on the phone (say Spotify) is open in the background without me having to manually open it and make it appear in the foreground (using intents or links).</p>
<p>I'm making an app that uses the Spotify API with React Native.
I read in another thread that you can not implement a <a ... | I want to make sure an external app on the phone (say Spotify) is open in the background without me having to manually open it and make it appear in the foreground (using intents or links). I'm making an app that uses the Spotify API with React Native. I read in another thread that you can not implement a Web Playback ... | android|reactjs|react-native|spotify | 0 | 2022-07-20T20:56:53.460Z | 2,022 | 7 | 20 | 2 | 73 | 0 | 1,069 | 68 | 4 | 0 | false | true | false | false | false | false | zero |
73,058,197 | convert string to object using Moshi | <p>for some reason I want to transform this data class</p>
<pre><code>@JsonClass(generateAdapter = true)
data class Planetary(
val localDate: LocalDate,
val title: String,
)
</code></pre>
<p>and I have created adapter for <code>LocalDate</code></p>
<pre><code>class DayAdapter {
@ToJson
fun toJson(date: LocalDat... | for some reason I want to transform this data class [CODE] and I have created adapter for LocalDate [CODE] and here is how I try to parcel Planetary to string [CODE] but it gives an error says Failed to find the generated JsonAdapter class for class Planetary | android|kotlin|moshi | 0 | 2022-07-20T21:14:35.730Z | 2,022 | 7 | 21 | 2 | 62 | 1 | 259 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
73,058,198 | AndroidStudio Chipmunk heap size for tests runtime | <p>How can I increase heap size for my tests runtime? Tried Appearance & Behavior > System Settings > Memory Settings with no results.
Using:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bi... | How can I increase heap size for my tests runtime? Tried Appearance & Behavior > System Settings > Memory Settings with no results. Using: Android Studio Chipmunk | 2021.2.1 Patch 1 Build #AI-212.5712.43.2112.8609683, built on May 18, 2022 Runtime version: 11.0.12+0-b1504.28-7817840 amd64 VM: OpenJDK 64-Bit Server VM b... | runtime|heap-memory|android-studio-chipmunk | 0 | 2022-07-20T21:14:42.127Z | 2,022 | 7 | 21 | 2 | 32 | 0 | 558 | 50 | 3 | 0 | false | true | false | false | false | false | zero |
73,058,265 | glReadPixels fills the buffer with black pixels in some Android devices | <p>I'm working on a Haxe game that builds to both Android and iOS, and just recently it's been noticed that a routine that was used to take screenshots of the game and use it to share to social networks has a very weird behavior. In some devices it works perfectly (especially in AVDs) but in some devices the code resul... | I'm working on a Haxe game that builds to both Android and iOS, and just recently it's been noticed that a routine that was used to take screenshots of the game and use it to share to social networks has a very weird behavior. In some devices it works perfectly (especially in AVDs) but in some devices the code results ... | java|android|opengl-es|screenshot | 0 | 2022-07-20T21:21:19.273Z | 2,022 | 7 | 21 | 2 | 55 | 0 | 1,924 | 71 | 4 | 1 | true | true | false | false | false | false | zero |
73,058,588 | Invalid version code when uploading xamarin app to Play Console | <p>I've created first application version for closed testing on Android Console with the version code set to <code>1</code> and version name to <code>1.0</code>. Now try to upgrade to version <code>2</code>/<code>2.0</code>. I've created an archive (Archive for Publishing in Visual Studio) and then signed the bundle. V... | I've created first application version for closed testing on Android Console with the version code set to 1 and version name to 1.0 . Now try to upgrade to version 2 / 2.0 . I've created an archive (Archive for Publishing in Visual Studio) and then signed the bundle. Visual Studio archive explorer shows my bundle with ... | xamarin|xamarin.android | 0 | 2022-07-20T22:03:07.867Z | 2,022 | 7 | 22 | 2 | 39 | 0 | 593 | 63 | 2 | 0 | false | true | false | false | false | false | zero |
73,058,639 | Unable to auto set BackgroundColor in TopAppBar in Jetpack Compose | <p>I have a theme like this.</p>
<pre><code>@Composable
fun WorkoutTimerTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = false,
content: @Composable () -> Unit
) {
val colorScheme = when {
dynamicColor && Buil... | I have a theme like this. [CODE] I override every single color for DarkColorScheme and LightColorScheme to Color.Red. Then I create my activity content like this. [CODE] Why my TopAppBar background color always look like this? (violet) Why never Red? What's the point? | android-jetpack-compose | 0 | 2022-07-20T22:10:02.767Z | 2,022 | 7 | 22 | 2 | 41 | 2 | 268 | 66 | 1 | 2 | true | false | false | false | false | false | zero |
73,058,709 | How to Trim an Audio File in Android Java audioplayer mobile app | <p>I'm trying to create a Android application with audio player with feature functionality to trim audio like in Audacity so user will be able to set start and end of playing audio file on seekbar.</p>
<p>I searched a lot on the web and tried, but I could not solve this problem.</p>
<p><a href="https://i.stack.imgur.co... | I'm trying to create a Android application with audio player with feature functionality to trim audio like in Audacity so user will be able to set start and end of playing audio file on seekbar. I searched a lot on the web and tried, but I could not solve this problem. This part between two thumbs should be played. Man... | java|android|mobile|android-mediaplayer|seekbar | 0 | 2022-07-20T22:21:56.440Z | 2,022 | 7 | 22 | 2 | 51 | 0 | 400 | 64 | 5 | 2 | true | true | false | false | false | false | zero |
73,058,835 | Where is the right place to unzip Android Windows emulator zip file | <p>I am installing Android Studio but am having this error</p>
<pre><code>Preparing "Install Android Emulator (revision: 31.2.10)".
Downloading https://dl.google.com/android/repository/emulator-windows_x64-8420304.zip
java.net.NoRouteToHostException: No route to host: connect
Warning: An error occurred while ... | I am installing Android Studio but am having this error [CODE] I guess this error has to due with internet connection being too slow and not being able to download at https://dl.google.com/android/repository/emulator-windows_x64-8420304.zip file. I have manually downloaded emulator-windows_x64-8420304.zip . My question... | android|android-studio | 2 | 2022-07-20T22:38:36.833Z | 2,022 | 7 | 22 | 2 | 52 | 1 | 431 | 67 | 2 | 1 | true | false | false | false | false | false | low |
73,058,856 | How to load a model to use on ARFragment | <p>I'm trying to implement a AR app using sceneform and I want to load a model.glb to play:</p>
<pre><code>placeObjectOnScene(arFragment!!, anchor, Uri.parse("model.glb"))
@RequiresApi(Build.VERSION_CODES.N)
private fun placeObjectOnScene(fragment: ArFragment, anchor: Anchor, uri: Uri) {
ModelRe... | I'm trying to implement a AR app using sceneform and I want to load a model.glb to play: [CODE] but when I run the app the model doesn't exist. I put the model on raw folder but the app can't find it. | android|kotlin|arcore | 0 | 2022-07-20T22:42:06.363Z | 2,022 | 7 | 22 | 2 | 32 | 2 | 200 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
73,058,950 | Possible to Divert/Forward Functions in Android? | <p>I just wanted to know if there is any way to divert/forward a <strong>system class's methods</strong>. Means to change it's function while in app.</p>
<p>Example: One of my Jar libraries is using <code>java.io.File</code> 's method <code>length()</code> several times. I want to edit/code the <code>length()</code> (l... | I just wanted to know if there is any way to divert/forward a system class's methods . Means to change it's function while in app. Example: One of my Jar libraries is using java.io.File 's method length() several times. I want to edit/code the length() (like some kind of inheritance but not really) and make it cache th... | java|android|reflection | 0 | 2022-07-20T22:56:43.370Z | 2,022 | 7 | 22 | 2 | 24 | 1 | 425 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
73,058,955 | Binary XML file line #27: Binary XML file line #27: Error inflating class androidx.appcompat.widget.ActionBarContainer | <p>I have an error when starting my application, well, it's nothing special, it's just the safe application that Android Studio gives you and I get this error that I can't solve.</p>
<p>I am starting this app on my Alcatel 5041C mobile, when I open the app I get an error "The app has stopped"</p>
<p>Run: (err... | I have an error when starting my application, well, it's nothing special, it's just the safe application that Android Studio gives you and I get this error that I can't solve. I am starting this app on my Alcatel 5041C mobile, when I open the app I get an error "The app has stopped" Run: (error) [CODE] Androi... | java|android|xml|android-studio | 1 | 2022-07-20T22:57:19.743Z | 2,022 | 7 | 22 | 2 | 64 | 0 | 392 | 118 | 4 | 4 | true | true | false | false | false | false | low |
73,058,963 | Why is there all this black space between each of the images? | <p>When I run this XML in an android app, it shows perfectly in the emulator. But when ran in the actual device, there are huge blank spaces between each of the images. I'm trying to create a simple social media type app.</p>
<p>Also, I am wondering how I can take user input, such as a new post they create, and upload ... | When I run this XML in an android app, it shows perfectly in the emulator. But when ran in the actual device, there are huge blank spaces between each of the images. I'm trying to create a simple social media type app. Also, I am wondering how I can take user input, such as a new post they create, and upload it into th... | android|xml | 1 | 2022-07-20T22:59:15.097Z | 2,022 | 7 | 22 | 2 | 25 | 0 | 345 | 61 | 2 | 1 | true | true | false | false | false | false | low |
73,059,000 | Motion layout does not work as shown in Android Studio | <p>I'm trying to make a collapse animation using motion layout. This animation must occur when the user drags the list down (ie the chips must be kept whenever the user scrolls).</p>
<p>Android Studio has a tool in video format showing what the animation we are designing would look like. When I run through it (as shown... | I'm trying to make a collapse animation using motion layout. This animation must occur when the user drags the list down (ie the chips must be kept whenever the user scrolls). Android Studio has a tool in video format showing what the animation we are designing would look like. When I run through it (as shown below), i... | android|kotlin|android-layout|animation|android-motionlayout | 0 | 2022-07-20T23:06:03.930Z | 2,022 | 7 | 23 | 2 | 52 | 0 | 542 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
73,059,003 | Bluetooth connection between arduino and a mobile device, HC05 module, Android Studio(JAVA) | <p>I am trying to create a Bluetooth communication connection between an Arduino and an Android device, the app monitors the level of liquid from a barrel and if needed the app can also turn off the water flow, can I make the Arduino also receive and send data to the mobile device? If yes how. I appreciate any document... | I am trying to create a Bluetooth communication connection between an Arduino and an Android device, the app monitors the level of liquid from a barrel and if needed the app can also turn off the water flow, can I make the Arduino also receive and send data to the mobile device? If yes how. I appreciate any documentati... | android|android-studio|arduino|bluetooth|iot | 1 | 2022-07-20T23:06:24.670Z | 2,022 | 7 | 23 | 2 | 120 | 2 | 442 | 91 | 5 | 0 | false | false | false | false | false | false | low |
73,059,416 | How do I extract the call to setOnClickListener? | <p>I have a bunch of button functions that merely toasts the label on the button.</p>
<pre><code>override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.button1.setOnClickListener {
Toast.makeText(activity?.applicationContext,binding.b... | I have a bunch of button functions that merely toasts the label on the button. [CODE] I would like to replace these with a single val or fun that extracts all of that Toast code so that I can just use something like [CODE] or [CODE] Neither of those even compile. What's the right syntax to do that? | android|kotlin | 0 | 2022-07-21T00:23:42.400Z | 2,022 | 7 | 0 | 3 | 33 | 3 | 299 | 48 | 2 | 3 | true | false | false | false | false | false | zero |
73,059,436 | Unit testing | Mocking FileOutputStream using Mockk.io | <p>I need to test three things from the below mentioned method:</p>
<ul>
<li>verify <code>output.write(any<ByteArray>())</code> is called</li>
<li>verify <code>output.close()</code> is called</li>
<li>assert that <code>fullPath</code> is returned</li>
</ul>
<pre><code>fun saveFile(fullPath: String, model: SomeDat... | I need to test three things from the below mentioned method: verify output.write(any<ByteArray>()) is called verify output.close() is called assert that fullPath is returned [CODE] Facing issue: Mocking FileOutputStream Tried: [CODE] Please help me to write correct test case using Mockk.io/Mockito | android|unit-testing|kotlin|mockito|mockk | 0 | 2022-07-21T00:26:30.430Z | 2,022 | 7 | 0 | 3 | 62 | 0 | 298 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
73,059,507 | Renaming item with DiffUtil not updating RecyclerView | <p>For an app I am making I have a list in which I display pixel art creations, I do this with a <code>RecyclerView</code> and <code>DiffUtil</code>, here is the code:</p>
<pre><code>package com.therealbluepandabear.pixapencil.adapters
import android.content.Context
import android.view.LayoutInflater
import android.vi... | For an app I am making I have a list in which I display pixel art creations, I do this with a RecyclerView and DiffUtil , here is the code: [CODE] ViewHolder: [CODE] Here is the result: When the user long taps on a project, they get the following dialog: When they press 'Rename', they get the following dialog where the... | android|kotlin|android-recyclerview|android-diffutils | 0 | 2022-07-21T00:43:59.893Z | 2,022 | 7 | 0 | 3 | 61 | 1 | 785 | 53 | 4 | 4 | true | false | false | false | false | false | zero |
73,059,619 | Kotlin version conflict? | <p>I'm working on maintaining an Android library that is using Kotlin v1.2.1.
There are more than 500 applications using the library (published on Maven).
What happens if I upgrade Kotlin version to the latest - current is 1.6.10?</p>
<ul>
<li>Any conflicts?</li>
<li>Do 500 using applications need to upgrade also?</li>... | I'm working on maintaining an Android library that is using Kotlin v1.2.1. There are more than 500 applications using the library (published on Maven). What happens if I upgrade Kotlin version to the latest - current is 1.6.10? Any conflicts? Do 500 using applications need to upgrade also? | android|kotlin | 0 | 2022-07-21T01:07:01.710Z | 2,022 | 7 | 1 | 3 | 58 | 1 | 290 | 24 | 2 | 0 | false | false | false | false | false | false | zero |
73,059,653 | Setting proxy on Android | <p>The application is based on Xamarin. How can I set up a proxy for the entire Android device? There is a Drony application, it implements it through something like a VPN. Is this some kind of library or maybe a function in the Android API? I will be grateful for any tips on where to go. Since now it is unclear where ... | The application is based on Xamarin. How can I set up a proxy for the entire Android device? There is a Drony application, it implements it through something like a VPN. Is this some kind of library or maybe a function in the Android API? I will be grateful for any tips on where to go. Since now it is unclear where to ... | c#|android|xamarin | 0 | 2022-07-21T01:15:22.900Z | 2,022 | 7 | 1 | 3 | 46 | 0 | 326 | 24 | 3 | 0 | false | true | false | false | false | false | zero |
73,059,689 | How to insert a data into a predefined sql database? | <p>So I have pre defined sql database where I have a method that gets only 4 data and inserts it into the database. And I have another method that only gets 1 data and inserts it into the database but all I get is another row in the database.</p>
<p>Here's my code</p>
<p>`public class DBHelper extends SQLiteOpenHelper ... | So I have pre defined sql database where I have a method that gets only 4 data and inserts it into the database. And I have another method that only gets 1 data and inserts it into the database but all I get is another row in the database. Here's my code `public class DBHelper extends SQLiteOpenHelper { [CODE] public B... | java|database|android-studio | 2 | 2022-07-21T01:21:14.530Z | 2,022 | 7 | 1 | 3 | 23 | 0 | 538 | 52 | 3 | 2 | true | true | false | false | false | false | low |
73,059,819 | use android xml databinding in choosing what view to display | <p>is this syntax possible in android XML data binding?</p>
<pre><code>"@{isRegistration ?
<EditText .......} :
<TextView.......
"
</code></pre>
<p>I not so sure if this syntax is now possible since data binding is now offering this kind of flexibility in</p>
<pre><code> View.visibility
</code>... | is this syntax possible in android XML data binding? [CODE] I not so sure if this syntax is now possible since data binding is now offering this kind of flexibility in [CODE] Thank you in advance. | android|android-layout|android-databinding | 0 | 2022-07-21T01:50:55.067Z | 2,022 | 7 | 1 | 3 | 32 | 1 | 196 | 60 | 3 | 2 | true | false | false | false | false | false | zero |
73,059,823 | Find out react-native native dependency version for Android | <p>On iOS, we can easily check which version of a Pod that a package has used. But I cannot find this information out on Android. We have to check that the native dependency used for <code>@react-native-firebase</code> is not a particular version with a crash bug for RTL users on Android. How can I find out the native ... | On iOS, we can easily check which version of a Pod that a package has used. But I cannot find this information out on Android. We have to check that the native dependency used for @react-native-firebase is not a particular version with a crash bug for RTL users on Android. How can I find out the native dependency versi... | android|react-native|gradle | 0 | 2022-07-21T01:51:14.483Z | 2,022 | 7 | 1 | 3 | 19 | 0 | 361 | 59 | 3 | 0 | false | true | false | false | false | false | zero |
73,060,012 | How do I prevent the system's dark theme from changing the color of a View? | <p>So as an experiment, I have made a service that creates a little floating window rectangle that you can drag around the screen. It is supposed to be a white rectangle with a black border.</p>
<p>Here is the layout for the view I am inflating with <code>LayoutInflater.inflate()</code>:</p>
<pre><code><?xml versio... | So as an experiment, I have made a service that creates a little floating window rectangle that you can drag around the screen. It is supposed to be a white rectangle with a black border. Here is the layout for the view I am inflating with LayoutInflater.inflate() : [CODE] and here is the xml for the drawable: [CODE] H... | android|android-layout|android-view|android-styles | 0 | 2022-07-21T02:24:18.170Z | 2,022 | 7 | 2 | 3 | 37 | 1 | 929 | 75 | 4 | 2 | true | false | false | false | false | false | zero |
73,060,027 | Android Studio Cycle Editor | <p>I'm currently learning KeyCycle in android studio. The book says to refer to control panel, but I can't find it anywhere. I clicked many things, but it didn't show up. How can I open this control panel (Cycle Editor)? I'm stuck at this part. Anyone can tell me please? Thank you~ Here is the picture of the panel that... | I'm currently learning KeyCycle in android studio. The book says to refer to control panel, but I can't find it anywhere. I clicked many things, but it didn't show up. How can I open this control panel (Cycle Editor)? I'm stuck at this part. Anyone can tell me please? Thank you~ Here is the picture of the panel that I ... | android | 0 | 2022-07-21T02:27:00.810Z | 2,022 | 7 | 2 | 3 | 16 | 0 | 369 | 27 | 1 | 0 | false | true | false | false | false | false | zero |
73,060,048 | Android bluetooth scan periodic advertising | <p>I am new to Android develop and bluetooth stuff so if my question sound stupid please forgive me, I am working on Nordic 52840 using their nrf connect sdk 2.0.0 example bluetooth periodic advertising, I want to scan my nordic device and receive the advertising data using android phone Android 10.0, I can find other ... | I am new to Android develop and bluetooth stuff so if my question sound stupid please forgive me, I am working on Nordic 52840 using their nrf connect sdk 2.0.0 example bluetooth periodic advertising, I want to scan my nordic device and receive the advertising data using android phone Android 10.0, I can find other dev... | java|android|android-studio|bluetooth | 2 | 2022-07-21T02:31:46.057Z | 2,022 | 7 | 2 | 3 | 74 | 1 | 484 | 43 | 4 | 1 | true | false | false | false | false | false | low |
73,060,203 | Unity 2022.2.0b1 get IP of device | <p>I wonder what code i can use to get the IP of the player in my Unity game for mobile (IOS and Android) in the Unity 2022.2.0b1 using C#.</p>
<p>Have been looking up here on other questions, but they seems outdated.</p> | I wonder what code i can use to get the IP of the player in my Unity game for mobile (IOS and Android) in the Unity 2022.2.0b1 using C#. Have been looking up here on other questions, but they seems outdated. | c#|android|ios|unity3d | 0 | 2022-07-21T02:59:28.723Z | 2,022 | 7 | 2 | 3 | 78 | 2 | 207 | 33 | 4 | 0 | false | false | false | false | false | false | zero |
73,060,337 | Thoughts on best way to make a sound for alarm clock app, and to have it's volume attached to the alarm clock system volume and not media volume? | <p><a href="https://i.stack.imgur.com/IKevm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IKevm.jpg" alt="alarm volume" /></a>Hello, I am having trouble figuring out the best way to make an alarm clock noise for my alarm clock app. I want to start the noise when the broadcast receiver is activated.... | Hello, I am having trouble figuring out the best way to make an alarm clock noise for my alarm clock app. I want to start the noise when the broadcast receiver is activated. I am able to create a media player, but the noise is attached to the media volume. I am not sure how to tie the noise to the alarm volume like goo... | android|kotlin|android-mediaplayer | 0 | 2022-07-21T03:24:05.730Z | 2,022 | 7 | 3 | 3 | 21 | 0 | 485 | 145 | 3 | 0 | false | true | false | false | false | false | zero |
73,060,571 | ListView Custom adapter TextView initialize inside try catch block not showing | <p>Trying to fetch data from SQLite and initialize some text view data but the problem is that text view does not show the data that initialize inside the try-catch block. Is there any better solution to accomplish this problem?</p>
<pre><code>@Override
public View getView(int position, View convertView, ViewGroup pare... | Trying to fetch data from SQLite and initialize some text view data but the problem is that text view does not show the data that initialize inside the try-catch block. Is there any better solution to accomplish this problem? [CODE] | android|listview|adapter | 0 | 2022-07-21T04:03:41.553Z | 2,022 | 7 | 4 | 3 | 38 | 1 | 232 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
73,060,717 | I want to merge the total price and quantity of the item in cart which is selected multiple times from movies list instead of same listings multiple | <blockquote>
<p>The problem lies in section where i am getting and sending results. some problem with the logic is there because the items of same kind are listed multiple times instead of updating existing row
when i add same item again it generates another row and post it there instead of updating existing same item ... | The problem lies in section where i am getting and sending results. some problem with the logic is there because the items of same kind are listed multiple times instead of updating existing row when i add same item again it generates another row and post it there instead of updating existing same item row [CODE] | java|android|mobile|shopping-cart | 0 | 2022-07-21T04:31:30.463Z | 2,022 | 7 | 4 | 3 | 23 | 0 | 314 | 148 | 4 | 1 | true | true | false | false | false | false | zero |
73,060,888 | Android pagination can't show the data list | <p>this is my first time using pagination for android because I need to load 8000++ data list using retrofit and recyclerview. After I tried it, no error appears on logcat, my response is successful but my data doesnt showed up.
Please kindly help me to solve this, I need this apps for submission. Thanks in advance.</p... | this is my first time using pagination for android because I need to load 8000++ data list using retrofit and recyclerview. After I tried it, no error appears on logcat, my response is successful but my data doesnt showed up. Please kindly help me to solve this, I need this apps for submission. Thanks in advance. Here'... | java|android|pagination|retrofit | 0 | 2022-07-21T04:55:40.460Z | 2,022 | 7 | 4 | 3 | 30 | 0 | 417 | 43 | 4 | 3 | true | true | false | false | false | false | zero |
73,060,937 | Problem occurred configuring root project 'android' | <p><a href="https://i.stack.imgur.com/jOiLu.png" rel="nofollow noreferrer">I am facing this problem for few days. I tried by deleting .gradle cache file, by deleting lock file, by using sdk 3.0.0, 2.10.0, 3.0.1, I modified build.gradle file, I have manually downloaded gradle and declared path. But none of this worked, ... | I am facing this problem for few days. I tried by deleting .gradle cache file, by deleting lock file, by using sdk 3.0.0, 2.10.0, 3.0.1, I modified build.gradle file, I have manually downloaded gradle and declared path. But none of this worked, Can anyone please tell me how can I fix this issue? | android|flutter|gradle | 0 | 2022-07-21T05:02:51.790Z | 2,022 | 7 | 5 | 3 | 27 | 0 | 296 | 51 | 3 | 0 | false | true | false | false | false | false | zero |
73,060,948 | Android. Data binding not working after recreating the fragment view | <p>I'm using MVVM with databinding. After I navigate (with jetpack navigation) from fragment A to fragment B, and then back to fragment A the view of fragment A is recreated.</p>
<p>To solve this problem I create a field in my fragment class to save my view:</p>
<pre><code>private var contentView: View? = null
overr... | I'm using MVVM with databinding. After I navigate (with jetpack navigation) from fragment A to fragment B, and then back to fragment A the view of fragment A is recreated. To solve this problem I create a field in my fragment class to save my view: [CODE] And it works, but now after recreating the view of fragment, the... | android|android-fragments|android-databinding|android-viewmodel|android-jetpack-navigation | 0 | 2022-07-21T05:04:00.237Z | 2,022 | 7 | 5 | 3 | 102 | 1 | 621 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
73,060,949 | onBackPressed() not called / Android | <p>I am testing a tiny Android App where I need to perform some action when a back button is pressed. I have prepared the following function in Kotlin:</p>
<pre><code>override fun onBackPressed() {
super.onBackPressed()
println("onBackPressed CALLED")
}
</code></pre>
<p>I must be missing some detail, ... | I am testing a tiny Android App where I need to perform some action when a back button is pressed. I have prepared the following function in Kotlin: [CODE] I must be missing some detail, because the function is never called. I expect it to be called when the back button is pressed. Any comment from a second eye may be ... | android|kotlin | -1 | 2022-07-21T05:04:14.133Z | 2,022 | 7 | 5 | 3 | 70 | 2 | 719 | 36 | 2 | 5 | true | false | false | false | false | true | negative |
73,060,958 | Google Pay Offer Passes not expiring | <p>We're creating Google Offer Passes for an initiative. According to the documentation passes can be expired by setting the <code>validTimeInterval </code> field in the Offer Object JSON. The doc says:</p>
<blockquote>
<p>The time period this object will be active and object can be used. An
object's state will be chan... | We're creating Google Offer Passes for an initiative. According to the documentation passes can be expired by setting the validTimeInterval field in the Offer Object JSON. The doc says: The time period this object will be active and object can be used. An object's state will be changed to expired when this time period ... | android|google-pay | 0 | 2022-07-21T05:06:52.010Z | 2,022 | 7 | 5 | 3 | 20 | 1 | 760 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
73,060,964 | Share Video Preview Image using ACTION_SEND with Android Sharesheet | <p>Since Android 10+, the Android Sharesheet has supported providing image previews of files shared using <code>ACTION_SEND</code>.
Making a custom <code>ActivityResultContract</code> with the <a href="https://developer.android.com/training/sharing/send#send-binary-content" rel="nofollow noreferrer">Android documentati... | Since Android 10+, the Android Sharesheet has supported providing image previews of files shared using ACTION_SEND . Making a custom ActivityResultContract with the Android documentation for sending binary content , you get something like this: [CODE] However, this does not result in a preview image in the Sharesheet. ... | android|kotlin|android-jetpack-compose|android-sharesheet | 0 | 2022-07-21T05:07:29.980Z | 2,022 | 7 | 5 | 3 | 46 | 1 | 342 | 67 | 4 | 1 | true | false | false | false | false | false | zero |
73,061,024 | when i click a button in my app, it makes app go to main fragment forcibly | <p>This app is already run normal, but when i click some button, i don't know why my app go to profile fragment (main fragment) can someone help me? my plan when the button clicked, it go to "<code>fragment_hasil_pengecekan</code>" fragment with result from form. for the details you can see this image :<a hre... | This app is already run normal, but when i click some button, i don't know why my app go to profile fragment (main fragment) can someone help me? my plan when the button clicked, it go to " fragment_hasil_pengecekan " fragment with result from form. for the details you can see this image : enter image descrip... | java|android|xml | 0 | 2022-07-21T05:16:43.177Z | 2,022 | 7 | 5 | 3 | 27 | 0 | 388 | 74 | 3 | 0 | false | true | false | false | false | false | zero |
73,061,114 | Android Location updates not updating | <p>I am using <code>FusedLocationProviderClient</code> for listening location updates. And I am using foreground service for obtaining location updates when the user is not inside the app.</p>
<pre><code>class DriverService : LifecycleService() {
private lateinit var fusedLocationClient: FusedLocationProviderCl... | I am using FusedLocationProviderClient for listening location updates. And I am using foreground service for obtaining location updates when the user is not inside the app. [CODE] When I am inside the app it is working perfectly fine but as soon as I quit the application, location updates stop working. | android|location|foreground-service | 0 | 2022-07-21T05:28:54.467Z | 2,022 | 7 | 5 | 3 | 28 | 2 | 303 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
73,061,164 | ComposeView inside SwipeRefreshLayout refresh issue | <p>I am trying to migrate a recyclerview to compose Lazy List.</p>
<p>The recyclerview was inside swipeRefreshLayout. So I added the composeView in the xml and added the compose. But when I scroll to the bottom of the list and try to scroll up - swipe to refresh is being triggered. Is there an option to fix this?</p>
<... | I am trying to migrate a recyclerview to compose Lazy List. The recyclerview was inside swipeRefreshLayout. So I added the composeView in the xml and added the compose. But when I scroll to the bottom of the list and try to scroll up - swipe to refresh is being triggered. Is there an option to fix this? [CODE] | android|android-jetpack-compose|android-jetpack | 0 | 2022-07-21T05:35:01.830Z | 2,022 | 7 | 5 | 3 | 47 | 0 | 311 | 51 | 3 | 1 | true | true | false | false | false | false | zero |
73,061,190 | Dagger-hilt error while compiling project | <p>Getting error below while using dagger-hilt</p>
<blockquote>
<p>Unsupported metadata version. Check that your Kotlin version is >=
1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0</p>
</blockquote>
<p>Please note that I already followed some topics fr... | Getting error below while using dagger-hilt Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0 Please note that I already followed some topics from stackoverflow and other documentation Hilt Unsu... | android|kotlin|gradle|dependency-injection|dagger-hilt | 2 | 2022-07-21T05:39:58.217Z | 2,022 | 7 | 5 | 3 | 1,146 | 1 | 1,143 | 41 | 5 | 9 | true | false | false | false | false | false | low |
73,061,194 | I've facing problem in android dependecy injection | <p>What is best module in Android for dependency handling?</p>
<ol>
<li>Dragger</li>
<li>Hilt</li>
</ol>
<p>I'm little bit confused</p> | What is best module in Android for dependency handling? Dragger Hilt I'm little bit confused | android | -3 | 2022-07-21T05:40:29.140Z | 2,022 | 7 | 5 | 3 | 33 | 1 | 92 | 50 | 1 | 0 | false | false | false | false | false | true | negative |
73,061,216 | Exoplayer2 with before after videos changes first video when clip and shape used with Modifier.graphicsLayer? | <p>I build a before/after layout that runs two Images, Composables or videos at the same time. It works except with Exoplayer2 showing 2 vidoes. When second video is loaded first video changes to second one.</p>
<p>I made a reproducible sample below. It happens if i set <code>shape</code> and <code>clip</code> with <co... | I build a before/after layout that runs two Images, Composables or videos at the same time. It works except with Exoplayer2 showing 2 vidoes. When second video is loaded first video changes to second one. I made a reproducible sample below. It happens if i set shape and clip with Modifier.graphicsLayer [CODE] How i cre... | android|android-jetpack-compose|exoplayer|exoplayer2.x | 0 | 2022-07-21T05:43:29.760Z | 2,022 | 7 | 5 | 3 | 95 | 0 | 593 | 109 | 4 | 5 | true | true | false | false | false | false | zero |
73,061,331 | Cannot resolve symbol altbeacon | <p>Good day everyone! I am new to android development and I have a confusion. I was trying to work with iBeacons (university project) but i've encountered the following problem. It keeps saying: "Cannot resolve symbol altbeacon".</p>
<p>I have added this line</p>
<pre><code>implementation 'org.altbeacon:andro... | Good day everyone! I am new to android development and I have a confusion. I was trying to work with iBeacons (university project) but i've encountered the following problem. It keeps saying: "Cannot resolve symbol altbeacon". I have added this line [CODE] in my dependencies according to official instructions... | android|ibeacon|android-ibeacon | 0 | 2022-07-21T05:58:28.953Z | 2,022 | 7 | 5 | 3 | 40 | 1 | 514 | 31 | 3 | 4 | true | false | false | false | false | false | zero |
73,061,388 | Updating an app that has sensitive permissions on the Google Play Console | <p>I'm am trying to update my app on Google Play Console. I have releases in the open/internal tracks that are non-compliant as an early app version had the QUERY_ALL_PACKAGES permission.</p>
<p>I have since removed this permission, created new releases (for each track) and uploaded a new app bundle that should be comp... | I'm am trying to update my app on Google Play Console. I have releases in the open/internal tracks that are non-compliant as an early app version had the QUERY_ALL_PACKAGES permission. I have since removed this permission, created new releases (for each track) and uploaded a new app bundle that should be compliant. I s... | android|flutter|android-permissions|google-play-console | 2 | 2022-07-21T06:04:01.730Z | 2,022 | 7 | 6 | 3 | 276 | 2 | 586 | 73 | 4 | 0 | false | false | false | false | false | false | low |
73,061,399 | Check if Exoplayer downloaded file is still available in storage | <p>I am downloading my HLS audio file using exoplayer and would like to know if file is downloaded. Exoplayer has given a way to check if file downloaded or not -</p>
<pre><code>Download download = downloadManager.getDownloadIndex().getDownload(id);
return download != null && download.state != Download.STATE_FA... | I am downloading my HLS audio file using exoplayer and would like to know if file is downloaded. Exoplayer has given a way to check if file downloaded or not - [CODE] It works fine in every cases except one of it. It detects if file is downloaded properly unless we manually go to the filemanager app and delete the down... | java|android|kotlin|exoplayer | 3 | 2022-07-21T06:05:36.290Z | 2,022 | 7 | 6 | 3 | 65 | 0 | 539 | 64 | 4 | 1 | true | true | false | false | false | false | low |
73,061,417 | Safari on iOS unable to show a normal CSS font as bold | <p>I am using the "Kaushan Script" font on a web page, and it is only defined for normal font weight. But I use it for bold text, which is normally no problem because the most browsers can emulate a bold font.</p>
<p>It works fine on every browser on PC and Android, but not for Safari on iOS, it still shows a... | I am using the "Kaushan Script" font on a web page, and it is only defined for normal font weight. But I use it for bold text, which is normally no problem because the most browsers can emulate a bold font. It works fine on every browser on PC and Android, but not for Safari on iOS, it still shows as normal f... | android|css|ios|fonts | 0 | 2022-07-21T06:07:12.580Z | 2,022 | 7 | 6 | 3 | 89 | 1 | 558 | 54 | 4 | 0 | false | false | false | false | false | false | zero |
73,061,425 | Getting android.widget.Editor.drawHardwareAccelerated (Editor.java) exception only on Android 8 and 8.1 versions | <p>I have lost a week (now months) trying to figure out what exactly causing this problem, but no luck:(
This problem started happening in my app after a recent update, which changed the entire project from java to Kotlin.</p>
<p>I tried my best to replicate this exception in a device i have with Oreo(android 8) but no... | I have lost a week (now months) trying to figure out what exactly causing this problem, but no luck:( This problem started happening in my app after a recent update, which changed the entire project from java to Kotlin. I tried my best to replicate this exception in a device i have with Oreo(android 8) but no luck. As ... | java|android|kotlin|hardware-acceleration | 2 | 2022-07-21T06:08:37.860Z | 2,022 | 7 | 6 | 3 | 136 | 0 | 912 | 112 | 4 | 3 | true | true | false | false | false | false | low |
73,061,540 | can't use process tag in androidmanifext.xml without the colon | <p>Im trying to create a receiver to use in an alarm manager. Everything works fine until the app activity is destroyed. Even though I set the alarm in the alarm manager, this stops the receiver from running the code within onReceive(). I got the code to run when the app is present in the foreground, but not when it is... | Im trying to create a receiver to use in an alarm manager. Everything works fine until the app activity is destroyed. Even though I set the alarm in the alarm manager, this stops the receiver from running the code within onReceive(). I got the code to run when the app is present in the foreground, but not when it is de... | java|android|process|tags|alarmmanager | 0 | 2022-07-21T06:20:43.393Z | 2,022 | 7 | 6 | 3 | 19 | 0 | 926 | 62 | 5 | 2 | true | true | false | false | false | false | zero |
73,061,559 | How can I get the text of editText? | <p>Im trying to make a random interger with hashcode of a particular String and I have to get the String from the editText. Below is a code I tried.</p>
<pre><code>findViewById<View>(R.id.goButton).setOnClickListener{
val intent = Intent(this, Activity2::class.java)
intent.putIntegerArrayListExtra... | Im trying to make a random interger with hashcode of a particular String and I have to get the String from the editText. Below is a code I tried. [CODE] A List made of random integers are tossed to Activity2 . The point is I have to get the text from the editText but editText.getText().toString() doesn't work. I have c... | android|android-studio|kotlin | 0 | 2022-07-21T06:23:14.907Z | 2,022 | 7 | 6 | 3 | 58 | 0 | 405 | 35 | 3 | 1 | true | true | false | false | false | false | zero |
73,061,600 | Uri is always getting null | <p>I tried to Open my device contact via my app I was getting correct Uri meanwhile I tried to Open my device contact from Google Phone App via My app. In this case Uri is always getting null.</p>
<p>can any one suggest for this issue.</p> | I tried to Open my device contact via my app I was getting correct Uri meanwhile I tried to Open my device contact from Google Phone App via My app. In this case Uri is always getting null. can any one suggest for this issue. | android|uri|android-contacts|intentfilter | 0 | 2022-07-21T06:28:32.440Z | 2,022 | 7 | 6 | 3 | 17 | 0 | 225 | 26 | 4 | 0 | false | true | false | false | false | false | zero |
73,061,810 | Find a value in Kotlin Data Class | <p>i'm actually new to Kotlin android development. I'm making an app that uses Google sheets as a database. My app can successfully run after Google sign in. In fact I want my user to sign in to app, if their email ID is present in the Emails sheet in the Google sheet. So I have done following steps in my code so far.<... | i'm actually new to Kotlin android development. I'm making an app that uses Google sheets as a database. My app can successfully run after Google sign in. In fact I want my user to sign in to app, if their email ID is present in the Emails sheet in the Google sheet. So I have done following steps in my code so far. Sig... | android|kotlin|google-signin|data-class | 0 | 2022-07-21T06:49:18.447Z | 2,022 | 7 | 6 | 3 | 239 | 1 | 958 | 33 | 4 | 2 | true | false | false | false | false | false | zero |
73,061,917 | How to order by if else condition in room android? | <p>I have a list of items each item has ranking. Some rankings are zero. I want to query items by ranking ascending order if it is not zero and then remaining items which has ranking equal to zero. I hope it is understandable. :))</p>
<pre><code>data class Item(
val id:Int,
val ranking:Int
)
</code></pre> | I have a list of items each item has ranking. Some rankings are zero. I want to query items by ranking ascending order if it is not zero and then remaining items which has ranking equal to zero. I hope it is understandable. :)) [CODE] | android|sqlite|android-sqlite|android-room | 0 | 2022-07-21T06:57:41.970Z | 2,022 | 7 | 6 | 3 | 59 | 2 | 234 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
73,062,128 | Howto stream audio file during call in Android 12? | <p>I know it has been asked many times before, but now it looks possible to me in A12...
i have a phone App which is the default one, and it's also a System app,
i'm able to record live call,
my goal is to play a short audio file during the call as many other stock phone Apps do, in order to warn the other side that &q... | I know it has been asked many times before, but now it looks possible to me in A12... i have a phone App which is the default one, and it's also a System app, i'm able to record live call, my goal is to play a short audio file during the call as many other stock phone Apps do, in order to warn the other side that "... | android|streaming|call | 0 | 2022-07-21T07:17:44.720Z | 2,022 | 7 | 7 | 3 | 87 | 0 | 510 | 50 | 3 | 1 | true | true | false | false | false | false | zero |
73,062,219 | Accessing ViewModel MutableState from unit tests' Dispatcher? | <p>I am using MutableStates in the ViewModel for Compose</p>
<pre><code>var desiredDate: MutableState<Date?> = mutableStateOf(null)
</code></pre>
<p>and additionally I want to receive changes of the state <em>inside</em> the model</p>
<pre><code> snapshotFlow { desiredDate.value }
.onEach { updateC... | I am using MutableStates in the ViewModel for Compose [CODE] and additionally I want to receive changes of the state inside the model [CODE] and this works quite fine as productive code. Now I want to test updating one state causes update of other in unit tests. I am using classical MainCoroutineRule to override the Di... | android|kotlin|kotlin-coroutines|mutable | 0 | 2022-07-21T07:27:07.020Z | 2,022 | 7 | 7 | 3 | 66 | 0 | 513 | 61 | 4 | 2 | true | true | false | false | false | false | zero |
73,062,220 | how can i set images in recyclerview | <p>I have a recyclerview. I want to adjust it according to different screenshots. I have an xml that I inflate into adapter. How can ı do ?</p>
<p>i am using guideline for regular pages but ı didnt this</p>
<p><a href="https://i.stack.imgur.com/pMBts.jpg" rel="nofollow noreferrer">This is the order I want</a></p>
<p>Bu... | I have a recyclerview. I want to adjust it according to different screenshots. I have an xml that I inflate into adapter. How can ı do ? i am using guideline for regular pages but ı didnt this This is the order I want But this is what comes out in different screenshots Example 1 Other one Example 2 My xml codes [CODE] ... | java|android | 0 | 2022-07-21T07:27:08.773Z | 2,022 | 7 | 7 | 3 | 33 | 0 | 398 | 36 | 2 | 2 | true | true | false | false | false | false | zero |
73,062,332 | WIFI connection through Flutter application | <p>I want to share the wifi credentials through my flutter application and connect that wifi automatically when the app is installed is there any solution for this</p> | I want to share the wifi credentials through my flutter application and connect that wifi automatically when the app is installed is there any solution for this | android|ios|flutter|wifi | 0 | 2022-07-21T07:36:14.983Z | 2,022 | 7 | 7 | 3 | 36 | 0 | 160 | 43 | 4 | 0 | false | true | false | false | false | false | zero |
73,062,355 | How to make sure My Backend APIs Are being called by my Client Applications only and not through other channels like Postman | <p>how can I make sure My Backend APIs Are being called by my Client Applications only and not through other channels like Postman.</p>
<p>I do have user access token in my android app but some data is public which does not require any type of user access token or users can access without login. how can I add token bas... | how can I make sure My Backend APIs Are being called by my Client Applications only and not through other channels like Postman. I do have user access token in my android app but some data is public which does not require any type of user access token or users can access without login. how can I add token based access ... | android | -1 | 2022-07-21T07:38:05.950Z | 2,022 | 7 | 7 | 3 | 26 | 1 | 407 | 124 | 1 | 0 | false | false | false | false | false | true | negative |
73,062,391 | I am getting build error while building the project | <p>Unable to load class 'org.gradle.api.services.BuildService'.</p>
<p>This is an unexpected error. Please file a bug containing the idea.log file.</p> | Unable to load class 'org.gradle.api.services.BuildService'. This is an unexpected error. Please file a bug containing the idea.log file. | android|android-studio|gradle|android-service | 1 | 2022-07-21T07:41:43.983Z | 2,022 | 7 | 7 | 3 | 110 | 1 | 137 | 51 | 4 | 0 | false | false | false | false | false | false | low |
73,062,504 | How do i query a collection of firestore that has so many documents without an error in flutter? | <p>I'm trying to fetch some data from firebase firestore.</p>
<p>Below is the code that i used to fecth data</p>
<pre><code>Future<List<Candidate>> findCandidateByName(String name) async {
final docs = await FirebaseFirestore.instance
.collection('candidates')
.where('name', isEqualTo: name)
... | I'm trying to fetch some data from firebase firestore. Below is the code that i used to fecth data [CODE] However, whenever i call this function app crashes while querying. Below is the debug console message before the app crashing E/AndroidRuntime(25623): java.lang.OutOfMemoryError: Firestore (24.1.2) ran out of memor... | android|flutter|firebase|google-cloud-firestore | 0 | 2022-07-21T07:49:57.970Z | 2,022 | 7 | 7 | 3 | 59 | 2 | 668 | 96 | 4 | 1 | true | false | false | false | false | false | zero |
73,062,583 | send parameter from activity to Fragment kotlin | <p>i´m traying to send parameter to fragment. I´m using Volley Class to get data from my db with mysql. I´m transform my response in jsonObject and create my arguments:</p>
<pre><code>val stringRequest: StringRequest = object : StringRequest(
Method.POST, EndPoint.URL,
Response.Listener { respon... | i´m traying to send parameter to fragment. I´m using Volley Class to get data from my db with mysql. I´m transform my response in jsonObject and create my arguments: [CODE] In my Profile activity i´m receiving my parameters: [CODE] But i´m setting my values in EditText but i can´t show it when execute my app. In my fra... | android|kotlin | -1 | 2022-07-21T07:56:12.397Z | 2,022 | 7 | 7 | 3 | 48 | 2 | 628 | 47 | 2 | 6 | true | false | false | false | false | true | negative |
73,062,631 | Android WebView cache get cleared when activity destroyed | <p><strong>Android WebView cache get cleared when activity destroyed</strong></p>
<p>I've two activities A & B, activity B has a WebView.
When I launch activity B(WebView) from A and navigates between Webpages cache works fine but when I back to activity A and relaunch activity B I saw that every resources reloaded... | Android WebView cache get cleared when activity destroyed I've two activities A & B, activity B has a WebView. When I launch activity B(WebView) from A and navigates between Webpages cache works fine but when I back to activity A and relaunch activity B I saw that every resources reloaded again. I want to prevent reloa... | android|caching|webview|cache-control | 1 | 2022-07-21T08:00:29.183Z | 2,022 | 7 | 8 | 3 | 29 | 0 | 445 | 57 | 4 | 0 | false | true | false | false | false | false | low |
73,062,636 | Get duration/length in milliseconds of GIF file | <p>I know there are plenty of similar questions available on SO but most of them are using the MOVIE class, which is deprecated. Now Android suggests using the AnimatedImageDrawable class for GIFs but it doesn't provide any mechanism to get the duration/length of GIF.</p>
<p>Please do let me know if any mechanism is av... | I know there are plenty of similar questions available on SO but most of them are using the MOVIE class, which is deprecated. Now Android suggests using the AnimatedImageDrawable class for GIFs but it doesn't provide any mechanism to get the duration/length of GIF. Please do let me know if any mechanism is available fo... | android|kotlin|gif|android-glide | 2 | 2022-07-21T08:00:53.400Z | 2,022 | 7 | 8 | 3 | 47 | 0 | 331 | 47 | 4 | 0 | false | true | false | false | false | false | low |
73,062,669 | how to resolve Null Pointer Exception in android? | <p>i'm working with fragments. I have created a List fragment and a Detail fragment.
when i click on an item in the list the app crashes and it gives the following null pointer exception.</p>
<blockquote>
<p>Attempt to invoke virtual method 'void
android.widget.TextView.setText(java.lang.CharSequence)' on a null
object... | i'm working with fragments. I have created a List fragment and a Detail fragment. when i click on an item in the list the app crashes and it gives the following null pointer exception. Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference I tried solu... | android|android-fragments | 0 | 2022-07-21T08:04:05.053Z | 2,022 | 7 | 8 | 3 | 43 | 1 | 540 | 49 | 2 | 6 | true | false | false | false | false | false | zero |
73,062,682 | Filter user journey using user_id on firebase analytics | <p>I want to track the user journey for each unique user. At the moment my app is firing firebase events on each action that I want to track. I just need to filter the user journey against the user_id on firebase analytics.</p>
<p>I have set the user_id using setUserId and I have also tried to create custom audience by... | I want to track the user journey for each unique user. At the moment my app is firing firebase events on each action that I want to track. I just need to filter the user journey against the user_id on firebase analytics. I have set the user_id using setUserId and I have also tried to create custom audience by using thi... | android|firebase|kotlin|firebase-analytics | 1 | 2022-07-21T08:05:10.337Z | 2,022 | 7 | 8 | 3 | 58 | 0 | 379 | 55 | 4 | 0 | false | true | false | false | false | false | low |
73,062,695 | Some packages not visible even after adding <queries> tag to AndroidManifest.xml (Android 12 device) | <p>I have implemented some code in my app in order to get a list of accessibility services installed on my device using <code>AccessibilityManager.getInstalledAccessibilityServiceList</code>. Since devices running Android 11 and above are subjected to <a href="https://developer.android.com/training/package-visibility/d... | I have implemented some code in my app in order to get a list of accessibility services installed on my device using AccessibilityManager.getInstalledAccessibilityServiceList . Since devices running Android 11 and above are subjected to package visibility filtering , I added a <queries> tag in my manifest like this: [C... | android|accessibilityservice|android-12 | 0 | 2022-07-21T08:06:22.017Z | 2,022 | 7 | 8 | 3 | 48 | 0 | 955 | 100 | 3 | 1 | true | true | false | false | false | false | zero |
73,062,722 | What would happen to Activity's properties when the onDestroy call? | <p>Two types of scenarios might happen when the onDestroy method calls! One is when config change occurs and another one is when the activity is finishing. Assuming we have an Activity with some properties. What would happen to these properties in these two scenarios?(I mean are they going to be dismantled or going to ... | Two types of scenarios might happen when the onDestroy method calls! One is when config change occurs and another one is when the activity is finishing. Assuming we have an Activity with some properties. What would happen to these properties in these two scenarios?(I mean are they going to be dismantled or going to be ... | android|memory-management|garbage-collection|android-lifecycle | 0 | 2022-07-21T08:08:12.940Z | 2,022 | 7 | 8 | 3 | 27 | 1 | 330 | 67 | 4 | 0 | false | false | false | false | false | false | zero |
73,062,867 | Failed to push files to /Android/data/ on Samsung Tab S8, but it works fine on Tab S7 | <p>The console output is like this (there is 1 file and 1 subfolder in current directory, and 10 files in this subfolder):</p>
<pre><code>user$ adb push * /sdcard/Android/data/com.xxx.xxx.xxx
adb: error: failed to copy 'Subfolder/subfile1.txt' to '/sdcard/Android/data/com.xxx.xxx.xxx/Subfolder/subfile1.txt': remote sec... | The console output is like this (there is 1 file and 1 subfolder in current directory, and 10 files in this subfolder): [CODE] However, when entering the folder, the 'Subfolder' has already been created, but no file has been pushed (even if it shows '11 files pushed'). And after I tried to push again, there is no error... | android|shell|adb|samsung | 0 | 2022-07-21T08:20:22.123Z | 2,022 | 7 | 8 | 3 | 70 | 1 | 1,119 | 85 | 4 | 4 | true | false | false | false | false | false | zero |
73,062,892 | Play audio (WebRTC Call and Music) through earpiece in Android || Shift between speaker and earpiece Realtime | <p>I am developing a WebRTC p2p Android application. I want to play audio through an earpiece instead of a Speaker.</p>
<p>I have already tried the following methods but nothing worked.</p>
<ul>
<li><p>Modified audio manager settings like this</p>
<pre><code> audioManager = context.getSystemService(AudioManager.class);... | I am developing a WebRTC p2p Android application. I want to play audio through an earpiece instead of a Speaker. I have already tried the following methods but nothing worked. Modified audio manager settings like this [CODE] Also tried using an android media player to play the audio.mp3 file like this [CODE] | webrtc|android-mediaplayer|android-audiomanager|speaker|webrtc-android | 0 | 2022-07-21T08:22:10.453Z | 2,022 | 7 | 8 | 3 | 66 | 0 | 309 | 109 | 5 | 2 | true | true | false | false | false | false | zero |
73,062,923 | Why parent of fragment is null after pause? | <p>When I run app and use it no crash. <code>BottomSheetBehavior</code> works correctly. But if I return to app after a long time pause in background, it crashing with null point exception when try to cast <code>view.parent as View</code> in order to find View with <code>BottomSheetBehavior</code>.</p>
<p>Why fragment ... | When I run app and use it no crash. BottomSheetBehavior works correctly. But if I return to app after a long time pause in background, it crashing with null point exception when try to cast view.parent as View in order to find View with BottomSheetBehavior . Why fragment don't have parent after pause? How to fix it? I ... | android|kotlin|android-fragments|dependency-injection|android-lifecycle | 3 | 2022-07-21T08:24:32.527Z | 2,022 | 7 | 8 | 3 | 156 | 3 | 557 | 43 | 5 | 3 | true | false | false | false | false | false | low |
73,062,942 | Never allow my flutter app to deep sleep mode | <p>FYI: If some apps are not used for long time android system putting apps in sleep mode!</p>
<p>ques: is there a way to prevent it in flutter,cause my background process not working in deep sleep mode & I am not to get Notification message from FCM?</p> | FYI: If some apps are not used for long time android system putting apps in sleep mode! ques: is there a way to prevent it in flutter,cause my background process not working in deep sleep mode & I am not to get Notification message from FCM? | android|flutter|firebase-cloud-messaging|background-process | 0 | 2022-07-21T08:26:09.913Z | 2,022 | 7 | 8 | 3 | 92 | 1 | 241 | 45 | 4 | 0 | false | false | false | false | false | false | zero |
73,063,058 | someone can tell me why I can't get the cpp log in dmesg or logcat? | <p>I add some code log at below in android automotive10 source code</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>
diff --git a/frameworks/av/services/audiopolicy... | I add some code log at below in android automotive10 source code [CODE] I knew some C++ log code can't capture Android, so I add .H file, but it was unuseless someone can help me, thanks | android|c++ | 0 | 2022-07-21T08:34:53.600Z | 2,022 | 7 | 8 | 3 | 25 | 0 | 186 | 67 | 2 | 1 | true | true | false | false | false | false | zero |
73,063,137 | flutter RangeError (index): Invalid value: Not in inclusive range 0..4: 5 on CarouselSlider | <p>I want to show the all images from the API in the carousel and for items, I want to show 2 items per slide.
and it works correctly what I want. but in every last item, it shows me the error of <code>CarouselSlider</code>. I don't know why it gives me this error. I tried to solve it but failed because I don't know wh... | I want to show the all images from the API in the carousel and for items, I want to show 2 items per slide. and it works correctly what I want. but in every last item, it shows me the error of CarouselSlider . I don't know why it gives me this error. I tried to solve it but failed because I don't know why they give me ... | android|flutter|flutter-layout|flutter-dependencies|flutter-slider | 0 | 2022-07-21T08:40:34.840Z | 2,022 | 7 | 8 | 3 | 87 | 2 | 508 | 91 | 5 | 1 | true | false | false | false | false | false | zero |
73,063,170 | could you show me latest executable flutter FCM push notification example code in android? | <p>I'm newbie in flutter, in progress using badge notification to my app, I got trouble.</p>
<p>Anything else in web example I tried but it's not worked to me.</p>
<p>Could you show me basic snippet to understand flutter badge notification android version?</p>
<p>Not only badge notification, but basic push notification... | I'm newbie in flutter, in progress using badge notification to my app, I got trouble. Anything else in web example I tried but it's not worked to me. Could you show me basic snippet to understand flutter badge notification android version? Not only badge notification, but basic push notification example also would help... | android|flutter|push-notification|firebase-cloud-messaging|badge | -2 | 2022-07-21T08:42:51.490Z | 2,022 | 7 | 8 | 3 | 46 | 1 | 327 | 90 | 5 | 0 | false | false | false | false | false | true | negative |
73,063,249 | animateFloatAsState sometimes creates runtime type error on Jetpack Compose | <p>The code below (<code>ImageFace()</code>) works very well nearly all of the time. However, some times, without any interaction at all, I will get a fatal error posted above. This happens when I leave my app running on the emulator for a few hours (but sometimes it happens instantly). And once I run the app again, th... | The code below ( ImageFace() ) works very well nearly all of the time. However, some times, without any interaction at all, I will get a fatal error posted above. This happens when I leave my app running on the emulator for a few hours (but sometimes it happens instantly). And once I run the app again, the error again ... | android|android-jetpack-compose|android-jetpack | 0 | 2022-07-21T08:48:53.317Z | 2,022 | 7 | 8 | 3 | 36 | 1 | 875 | 75 | 3 | 2 | true | false | false | false | false | false | zero |
73,063,359 | Converting date to string is not working well | <p>I'm trying to post date data by using retrofit2 in Android Java.
I don't know why it happened. Because I wrote code to convert Date to String.
Also when debugging, I could check string result.</p>
<ul>
<li><p>My Goal: "created_time": "2022-07-15 18:17:20"</p>
</li>
<li><p>Result: "created_ti... | I'm trying to post date data by using retrofit2 in Android Java. I don't know why it happened. Because I wrote code to convert Date to String. Also when debugging, I could check string result. My Goal: "created_time": "2022-07-15 18:17:20" Result: "created_time": "java.text.SimpleDate... | java|android | 0 | 2022-07-21T08:57:19.143Z | 2,022 | 7 | 8 | 3 | 75 | 2 | 348 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
73,063,371 | "Can't access ViewModels from detached fragment" on interface onclick | <p>I'm getting error "Can't access ViewModels from detached fragment" when onClick method implemented by AirportOnClickListener try do do anything with viewmodel (trigger event, set var etc). What's wrong with my code? I'm using hilt for DI<br />
@AndroidEntryPoint
class SearchFragment @Inject constructor() :... | I'm getting error "Can't access ViewModels from detached fragment" when onClick method implemented by AirportOnClickListener try do do anything with viewmodel (trigger event, set var etc). What's wrong with my code? I'm using hilt for DI @AndroidEntryPoint class SearchFragment @Inject constructor() : Fragment... | android|kotlin|dagger-hilt | 0 | 2022-07-21T08:57:43.920Z | 2,022 | 7 | 8 | 3 | 81 | 0 | 382 | 69 | 3 | 4 | true | true | false | false | false | false | zero |
73,063,430 | How to declare a method that I can use within task execution time with gradle configuration caching enabled? | <p>how do I declare a method that I can use within task execution time with gradle configuration caching enabled?
e.g.</p>
<pre><code>def logOut(String message) {
println("generate_pluginversionslist - $message")
}
afterEvaluate {
if (project.hasProperty("android")) {
android {
... | how do I declare a method that I can use within task execution time with gradle configuration caching enabled? e.g. [CODE] it stops working when enabling configuration caching and rebuilding in gradle.properties [CODE] after rebuilding it shows this error every time where it states it suddenly can’t find the logOut met... | android|gradle|caching|configuration | 0 | 2022-07-21T09:03:24.617Z | 2,022 | 7 | 9 | 3 | 51 | 0 | 339 | 108 | 4 | 3 | true | true | false | false | false | false | zero |
73,063,459 | How to play youtube video using playlist in andriod studio | <p>my error is whan click on youtube play list and display all playlist videos. when click on video then app Stop working. So how to resolve this issue?</p>
<pre><code>package com.app.dataapitest;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import androi... | my error is whan click on youtube play list and display all playlist videos. when click on video then app Stop working. So how to resolve this issue? [CODE] Here is player activity [CODE] Here is player xml [CODE] | api|android-studio|youtube | 1 | 2022-07-21T09:05:18.107Z | 2,022 | 7 | 9 | 3 | 30 | 0 | 213 | 58 | 3 | 3 | true | true | false | false | false | false | low |
73,063,460 | Cache flow in ViewModel | <p>I have a ViewModel</p>
<pre><code>@HiltViewModel
class GreetingCoverScreenViewModel @Inject constructor(
private val repository: PersonalizationRepository
) : ViewModel(){
fun getIllustrations(occasionCode: String): Flow<PagingData<Illustration>> = repository.getIllustrations(
occasi... | I have a ViewModel [CODE] [CODE] [CODE] the function getIllustrations returns a Flow with a PagingData and I want to cache this in my GreetingCoverScreenViewModel but the flow is not cached when recomposing my screen it actually recreating new Flow So how can I cache the flow that returned by a function? Please help | android-jetpack-compose|kotlin-coroutines|coroutine|android-viewmodel|android-paging | 0 | 2022-07-21T09:05:38.697Z | 2,022 | 7 | 9 | 3 | 93 | 1 | 317 | 23 | 5 | 3 | true | false | false | false | false | false | zero |
73,063,513 | Is it possible to access Context, Application, Activity anywhere statically? | <p>So the question is, is it really possible to access <code>Context</code>, <code>Application</code> and specially <code>Activity</code> anywhere. Like as in other static class methods without passing parameters?</p>
<p>Eg:</p>
<pre><code>public static class YOUR_CLASS{
public static void YOUR_FUNCTION(){
... | So the question is, is it really possible to access Context , Application and specially Activity anywhere. Like as in other static class methods without passing parameters? Eg: [CODE] | java|android|android-activity|reflection|android-application-class | -1 | 2022-07-21T09:09:42.703Z | 2,022 | 7 | 9 | 3 | 29 | 1 | 183 | 76 | 5 | 1 | true | false | false | false | false | true | negative |
73,063,539 | java.lang.RuntimeException: Cannot create an instance of class | <p>When I start my app, it run fine without error but after run app is crashed everytime.and show logcat Messages</p>
<blockquote>
<p>com.example.weatherapp, PID: 15301
java.lang.RuntimeException: Cannot create an instance of class com.example.weatherapp.Presentation.WeatherViewModel
at androidx.lifecycle.ViewModelProv... | When I start my app, it run fine without error but after run app is crashed everytime.and show logcat Messages com.example.weatherapp, PID: 15301 java.lang.RuntimeException: Cannot create an instance of class com.example.weatherapp.Presentation.WeatherViewModel at androidx.lifecycle.ViewModelProvider$NewInstanceFactory... | kotlin|android-jetpack-compose | 0 | 2022-07-21T09:11:18.440Z | 2,022 | 7 | 9 | 3 | 52 | 1 | 8,987 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
73,063,562 | How to save the state of dialog box after it has been dismissed | <p>I have Dialog box to enter pin. if user enters the invalid pin it starts the timer.
When i dismiss the dialog box on back button and then again opens the dialog box on item click it resets it states and timer is gone.Its a pin dialog box . when user enters the wrong pin a timer starts under pin layout such that he c... | I have Dialog box to enter pin. if user enters the invalid pin it starts the timer. When i dismiss the dialog box on back button and then again opens the dialog box on item click it resets it states and timer is gone.Its a pin dialog box . when user enters the wrong pin a timer starts under pin layout such that he cann... | android|android-dialogfragment|android-dialog | 0 | 2022-07-21T09:13:28.173Z | 2,022 | 7 | 9 | 3 | 40 | 1 | 752 | 63 | 3 | 2 | true | false | false | false | false | false | zero |
73,063,646 | How to best change systemBarsBehavior with Jetpack Compose? | <p>I'm using Compose and I want to have a fullscreen composable while also modifying the swipe behavior of the system bars.</p>
<p>I'm using the <a href="https://google.github.io/accompanist/systemuicontroller/" rel="nofollow noreferrer">Google Accompanist SystemUiController</a> to hide and show the system bars which w... | I'm using Compose and I want to have a fullscreen composable while also modifying the swipe behavior of the system bars. I'm using the Google Accompanist SystemUiController to hide and show the system bars which works just fine, but does not allow to control the swipe behavior. I am able to set the system bars behavior... | android|android-jetpack-compose|android-immersive | 1 | 2022-07-21T09:20:04.960Z | 2,022 | 7 | 9 | 3 | 45 | 0 | 581 | 59 | 3 | 1 | true | true | false | false | false | false | low |
73,063,882 | Is there any alternatives for google-Filament? | <p>I have been using google Filament for Few weeks and I can't find adequate tutorials or documentation for it even though the git is helpfull , is there any alternate for it .
Basically I want to make a android app that supports glb file and animations in it and the 3d model should be visible as a static small UI win... | I have been using google Filament for Few weeks and I can't find adequate tutorials or documentation for it even though the git is helpfull , is there any alternate for it . Basically I want to make a android app that supports glb file and animations in it and the 3d model should be visible as a static small UI window ... | android|android-studio|3d|google-filament | 0 | 2022-07-21T09:36:31.067Z | 2,022 | 7 | 9 | 3 | 92 | 0 | 366 | 46 | 4 | 0 | false | true | false | false | false | false | zero |
73,063,906 | How to add stickyness to fullscreen ScrollableRow elements with Jetpack Compose? | <p>I have a <code>ScrollableRow</code> with lets say 5 fullscreen composables.</p>
<pre><code>ScrollableRow(
modifier = Modifier.fillMaxSize(),
scrollState = scrollState) {
myData.items.forEachIndexed{ index, pageItem ->
showPage(pageItem)
}
}
</code></pre>
<p>Everything is shown ... | I have a ScrollableRow with lets say 5 fullscreen composables. [CODE] Everything is shown so far, but when I swipe left/right it stops exactly on the position, where I stopped swiping: As you can see and imagne, almost everytime it stops between two of these full screen composables. I'd rather have a kind of stickyness... | android-jetpack-compose|android-jetpack|android-scrollable-tabs|android-jetpack-compose-row | 1 | 2022-07-21T09:38:11.210Z | 2,022 | 7 | 9 | 3 | 49 | 1 | 629 | 80 | 4 | 1 | true | false | false | false | false | false | low |
73,064,056 | What is the proper way to use EditText content change listener? | <p>Am trying to do something when my EditText content is changed.</p>
<p>Here is 3 ways i find to do it.</p>
<h2>1.</h2>
<pre><code>edittext.addTextChangedListener {
//my code
}
</code></pre>
<ol start="2">
<li></li>
</ol>
<hr />
<pre><code>edittext.doAfterTextChanged {
//my code
}
</code></pre>
<ol start="3">
... | Am trying to do something when my EditText content is changed. Here is 3 ways i find to do it. 1. [CODE] [CODE] [CODE] All works perfectly for my purpose. Can somebody explain if there is any difference between each of them, any advantage or disadvantage using a particular way or simply all of them same? | android|kotlin|android-edittext | 0 | 2022-07-21T09:50:23.043Z | 2,022 | 7 | 9 | 3 | 42 | 1 | 305 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
73,064,100 | Saving a csv log file in internal storage | <p>Description: I'm trying to log the data I have coming from firestore into a csv file, and I have the following methods to do it.</p>
<pre><code>public interface ExportPojo {
String generateExportValues();
String generateExportHeaders();}
</code></pre>
<hr />
<pre><code>public static File generateCSV(Context context,... | Description: I'm trying to log the data I have coming from firestore into a csv file, and I have the following methods to do it. [CODE] [CODE] [CODE] Problem: The client would like the user to navigate the file directory, find the csv file, and open it. But after running the methods, I can't find the exported file. I'v... | java|android | 0 | 2022-07-21T09:53:51.637Z | 2,022 | 7 | 9 | 3 | 29 | 1 | 402 | 41 | 2 | 3 | true | false | false | false | false | false | zero |
73,064,116 | E/RecyclerView: No adapter attached; skipping layout in my fragment | <p>I can run this and I also got data appear but I got this warning on my Run terminal
"E/RecyclerView: No adapter attached; skipping layout
No adapter attached; skipping layout"</p>
<p>How can I solve this</p>
<pre><code>class SpacedFragment : Fragment() {
private lateinit var kanjiViewModel : KanjiViewM... | I can run this and I also got data appear but I got this warning on my Run terminal "E/RecyclerView: No adapter attached; skipping layout No adapter attached; skipping layout" How can I solve this [CODE] } | java|android|android-studio|kotlin|android-room | 1 | 2022-07-21T09:55:17.950Z | 2,022 | 7 | 9 | 3 | 66 | 2 | 215 | 67 | 5 | 1 | true | false | false | false | false | false | low |
73,064,121 | Issue with the BottomSheetDialogFragment in - Android | <p>I was just upgrading the old android project and everything I have done properly and at the last I am just getting below error :</p>
<pre><code> 2022-07-21 15:19:06.548 19455-19455/com.brian.skyazul E/USNET: USNET: appName: com.packagename
2022-07-21 15:19:48.290 19455-19455/com.brian.skyazul E/AndroidRuntime: FAT... | I was just upgrading the old android project and everything I have done properly and at the last I am just getting below error : [CODE] There is a code as below for BottomSheetFragment : [CODE] Error is pointing at below line : mFilterDialog.show(getActivity().getSupportFragmentManager(), mFilterDialog.getTag()); More ... | android|fragment|bottom-sheet|android-bottomsheetdialog|bottomsheetdialogfragment | 0 | 2022-07-21T09:55:37.523Z | 2,022 | 7 | 9 | 3 | 47 | 1 | 389 | 53 | 5 | 3 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.