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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44,184,769 | Android Room - Select query with LIKE | <p>I'm trying to make a query to search all objects whose names contain text:</p>
<pre><code>@Query("SELECT * FROM hamster WHERE name LIKE %:arg0%")
fun loadHamsters(search: String?): Flowable<List<Hamster>>
</code></pre>
<p>Messages:</p>
<pre><code>Error:no viable alternative at input 'SELECT * F... | I'm trying to make a query to search all objects whose names contain text: [CODE] Messages: [CODE] Also, I'm trying: [CODE] Messages: [CODE] How to fix this? | android|kotlin|android-room | 149 | 2017-05-25T15:53:41.447Z | 2,017 | 5 | 15 | 3 | 66,636 | 4 | 157 | 37 | 3 | 4 | true | false | true | true | true | false | high |
71,935,802 | Map as a function parameter in Flutter | <p>Error: <code>Non-nullable instance field id must be initialised.</code></p>
<p>Source: <code>Picture.fromMap</code></p>
<pre><code>import 'dart:typed_data'; // Uint8List
class Picture {
int id;
String title;
Uint8List? picture;
Picture({this.id = 0, this.title = "", this.picture });
Picture.fromMap... | Error: Non-nullable instance field id must be initialised. Source: Picture.fromMap [CODE] What is the way to initialise Map when being passed to a function parameter, or how to solve this error? | android|flutter|dart | 0 | 2022-04-20T07:35:00.927Z | 2,022 | 4 | 7 | 2 | 261 | 4 | 194 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
72,138,752 | Android Studio strings.xml: 'NBSP' suddenly appeared in my strings.xml files | <p>I suddenly have the mention 'NBSP' in my strings.xml files, just before special characters (!, ?, ....)</p>
<p><a href="https://i.stack.imgur.com/NniDc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NniDc.png" alt="enter image description here" /></a></p>
<p>These 'NBSP' do not appear in my app w... | I suddenly have the mention 'NBSP' in my strings.xml files, just before special characters (!, ?, ....) These 'NBSP' do not appear in my app when I run it. Also, when I do a copy/paste, they are not copied. I have hundreds of them in many languages. They are not found in Android Studio by CTRL+F. A mess to remove... An... | java|android|android-studio|kotlin|localizable.strings | 1 | 2022-05-06T08:52:32.107Z | 2,022 | 5 | 8 | 4 | 64 | 1 | 360 | 76 | 5 | 0 | false | false | false | false | false | false | low |
72,138,865 | PNG Image which received from c++ server, crashes on java android client | <p>I'm developing android marine navigation client.
The client should receive nautical chart images from c++ server.
I'm sending data via socket. (from c++: ClientSocket.h, to java: java.net.Socket)</p>
<p>Receiving image size was fine.(I bearly noticed that the byte order of java integer type is reversed c++ order)</p... | I'm developing android marine navigation client. The client should receive nautical chart images from c++ server. I'm sending data via socket. (from c++: ClientSocket.h, to java: java.net.Socket) Receiving image size was fine.(I bearly noticed that the byte order of java integer type is reversed c++ order) But Image da... | java|android|c++|image|format | 0 | 2022-05-06T09:01:42.453Z | 2,022 | 5 | 9 | 4 | 35 | 1 | 619 | 72 | 5 | 3 | true | false | false | false | false | false | zero |
72,138,878 | Fastcv with Android Studio | <p>We are compiling fastcv sample application in android. I have installed JDK7.0, NDK>16.I have copied libfastcv.a into NDK root(eg <em>sdk/ndk/<NDK_VERSION>/platforms/<ANDROID_VERSION>/arch-arm/usr/lib</em>) and <strong>libfastcv.h</strong> into (<em>sdk/ndk/<NDK_VERSION>/platforms/<ANDROID_VE... | We are compiling fastcv sample application in android. I have installed JDK7.0, NDK>16.I have copied libfastcv.a into NDK root(eg sdk/ndk/<NDK_VERSION>/platforms/<ANDROID_VERSION>/arch-arm/usr/lib ) and libfastcv.h into ( sdk/ndk/<NDK_VERSION>/platforms/<ANDROID_VERSION>/arch-arm/usr/include ). While building the appli... | android|android-studio|android-ndk|fastcv | 0 | 2022-05-06T09:02:50.823Z | 2,022 | 5 | 9 | 4 | 92 | 0 | 1,524 | 26 | 4 | 0 | false | true | false | false | false | false | zero |
72,138,898 | Kotlin Bundle send null values | <p>I try to send values of my data from one fragment which is contains Instruments to HolderList which is contain Holder data for comparing values in ArrayList of String which is equal to instrument.id , but when i'm sending values, it's always null. I haven't a lot of experience with sending data between Fragments, bu... | I try to send values of my data from one fragment which is contains Instruments to HolderList which is contain Holder data for comparing values in ArrayList of String which is equal to instrument.id , but when i'm sending values, it's always null. I haven't a lot of experience with sending data between Fragments, but o... | android|kotlin|android-fragments|nullpointerexception|bundle | 0 | 2022-05-06T09:04:21.180Z | 2,022 | 5 | 9 | 4 | 137 | 0 | 490 | 30 | 5 | 4 | true | true | false | false | false | false | zero |
72,138,917 | Manifest merger failed with multiple errors Android studio React native | <p>Hi i am a new reactnative developer and i cant start my new poject in android sttudio i get always the same error here are some pictures.</p>
<p><a href="https://i.stack.imgur.com/3kIrR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3kIrR.png" alt="enter image description here" /></a></p>
<p>This... | Hi i am a new reactnative developer and i cant start my new poject in android sttudio i get always the same error here are some pictures. This is mine AndroidManifest.xml [CODE] i tryed to put this but it didnt work so i dont know what to do anymore tools:replace="android:allowBackup" //Add this in the manife... | javascript|android|react-native|android-studio | 1 | 2022-05-06T09:05:20.973Z | 2,022 | 5 | 9 | 4 | 139 | 1 | 492 | 71 | 4 | 1 | true | false | false | false | false | false | low |
72,138,942 | How to Initial android Exoplayer play and pause buttons with custom UI? | <p>I'm using Exoplayer 2.17.1 and want to customize UI. Everything works OK but it can not Initialize the play and pause buttons as you can see in the photo and show both of them and it doesn't work.</p>
<p><a href="https://i.stack.imgur.com/mx7dA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mx7dA... | I'm using Exoplayer 2.17.1 and want to customize UI. Everything works OK but it can not Initialize the play and pause buttons as you can see in the photo and show both of them and it doesn't work. In fragment_home.xml: [CODE] Custome_Exo_Layout: [CODE] Java: [CODE] } clickableview.xml: [CODE] | android-studio|exoplayer2.x | 0 | 2022-05-06T09:07:15.707Z | 2,022 | 5 | 9 | 4 | 547 | 2 | 293 | 71 | 2 | 4 | true | false | false | false | false | false | zero |
72,138,951 | Add adblock in webview | <p>I'm trying to add adblock in my fragment, and when I'm tryed inisialize webview I got underline <code>this</code> on <code>new AdBlockerWebView.init(this).initializeWebView(webView);</code> line</p>
<pre><code>package com.example.bottomnavigationview;
import android.os.Bundle;
import android.view.KeyEvent;
import a... | I'm trying to add adblock in my fragment, and when I'm tryed inisialize webview I got underline this on new AdBlockerWebView.init(this).initializeWebView(webView); line [CODE] where I need put line new AdBlockerWebView.init(this).initializeWebView(webView); to fix my error? | android|android-studio|webview|android-webview|adblock | 0 | 2022-05-06T09:07:41.927Z | 2,022 | 5 | 9 | 4 | 213 | 1 | 274 | 22 | 5 | 1 | true | false | false | false | false | false | zero |
72,138,994 | How to fix User interaction disclosure : Eligibility issue in Play Store Family Requirement Policy? | <p>Issue:</p>
<p>You must accurately disclose the app's interactive elements on the content rating questionnaire in the Play Console, including whether:</p>
<ul>
<li>users can interact or exchange information;</li>
<li>your app shares user-provided personal information with third parties</li>
<li>youur app shares the u... | Issue: You must accurately disclose the app's interactive elements on the content rating questionnaire in the Play Console, including whether: users can interact or exchange information; your app shares user-provided personal information with third parties youur app shares the user's physical location with other users ... | android|google-play|google-play-console | 3 | 2022-05-06T09:12:35.947Z | 2,022 | 5 | 9 | 4 | 244 | 0 | 1,008 | 99 | 3 | 0 | false | true | false | false | false | false | low |
72,139,015 | Android - mixing NavGraph with ViewPager2 | <p>I'm looking for the following design in my android app:</p>
<p>I want the main screen to be a TabLayout with 3 tabs, and a ViewPager2.
From each one of the 3 fragments (Fragment1, Fragment2, Fragment3) corresponding to the tabs, there are some actions the user can do to navigate to other fragments--those don't have ... | I'm looking for the following design in my android app: I want the main screen to be a TabLayout with 3 tabs, and a ViewPager2. From each one of the 3 fragments (Fragment1, Fragment2, Fragment3) corresponding to the tabs, there are some actions the user can do to navigate to other fragments--those don't have the TabLay... | java|android|xml|android-fragments | 0 | 2022-05-06T09:14:06.670Z | 2,022 | 5 | 9 | 4 | 36 | 0 | 1,318 | 41 | 4 | 5 | true | true | false | false | false | false | zero |
72,139,034 | Android TV emulator managing network speed in runtime | <p>In the old days, when testing my app on an Android TV emulator, I changed the Internet speed through the cellular tab in extended controls (while the application was running). Now this tab is gone and I can only set the internet speed limit when the emulator starts, without being able to test a sudden change in inte... | In the old days, when testing my app on an Android TV emulator, I changed the Internet speed through the cellular tab in extended controls (while the application was running). Now this tab is gone and I can only set the internet speed limit when the emulator starts, without being able to test a sudden change in interne... | android|android-studio|android-emulator|android-tv | 0 | 2022-05-06T09:16:19.543Z | 2,022 | 5 | 9 | 4 | 53 | 0 | 443 | 53 | 4 | 0 | false | true | false | false | false | false | zero |
72,139,294 | MPAndroidChart how can I stop the line when there is no data yet? | <p>I am using MPAndroidLineChart to display some data over the course of a week. This works fine. My problem is this
If, for example, today is Wednesday, I'd like the line chart to abruptly stop at the Wednesday point on the X axis, although the axis goes from Sunday to Saturday. I have attached an example of my curren... | I am using MPAndroidLineChart to display some data over the course of a week. This works fine. My problem is this If, for example, today is Wednesday, I'd like the line chart to abruptly stop at the Wednesday point on the X axis, although the axis goes from Sunday to Saturday. I have attached an example of my current c... | mpandroidchart | 0 | 2022-05-06T09:35:57.220Z | 2,022 | 5 | 9 | 4 | 27 | 2 | 324 | 65 | 1 | 0 | false | false | false | false | false | false | zero |
72,139,297 | How to migrate from Material Design 2 to Material Design 3 | <p>I have an application which is designed using Material Design 2. I have not submitted that to Playstore yet.
I am now trying to upgrade that application to Material Design 3. AFAIK, the themes etc present in Material Design 3 will not work on below Android 12 devices. So, I am not able to understand how to support M... | I have an application which is designed using Material Design 2. I have not submitted that to Playstore yet. I am now trying to upgrade that application to Material Design 3. AFAIK, the themes etc present in Material Design 3 will not work on below Android 12 devices. So, I am not able to understand how to support Mate... | android|material-ui|material-design|google-play-services|material-design-3 | 0 | 2022-05-06T09:36:12.210Z | 2,022 | 5 | 9 | 4 | 363 | 1 | 630 | 58 | 5 | 0 | false | false | false | false | false | false | zero |
72,139,334 | Why onAdDismissedFullScreenContent is being called lately? | <p>I have created a function to show interstitial ad before showing another activity.
It's working but <code>onAdDismissedFullScreenContent</code> is being called 2-3 sec lately after closing the ad. It causes previous screen to stand-by.
There's a chance to re-click the button to show the wanted Activity.</p>
<p>I rea... | I have created a function to show interstitial ad before showing another activity. It's working but onAdDismissedFullScreenContent is being called 2-3 sec lately after closing the ad. It causes previous screen to stand-by. There's a chance to re-click the button to show the wanted Activity. I really don't understand ho... | java|android|admob|interstitial | 3 | 2022-05-06T09:38:22.843Z | 2,022 | 5 | 9 | 4 | 162 | 1 | 443 | 58 | 4 | 3 | true | false | false | false | false | false | low |
72,139,453 | Share file .txt Android | <p>I'm trying to share a .txt file to another app (gmail for example) but I have some problems. I decided to use the file provider. When I select gmail among the apps to share the file with, the app returns me the "Couldn't attach file" toast.</p>
<p>I write the file txt in internal memory with this method:</... | I'm trying to share a .txt file to another app (gmail for example) but I have some problems. I decided to use the file provider. When I select gmail among the apps to share the file with, the app returns me the "Couldn't attach file" toast. I write the file txt in internal memory with this method: [CODE] I sh... | java|android|file|share|sharing | 2 | 2022-05-06T09:46:11.347Z | 2,022 | 5 | 9 | 4 | 41 | 1 | 482 | 23 | 5 | 4 | true | false | false | false | false | false | low |
72,139,502 | how to return result in cmd if you use adb to send a broadcast | <p>I have a BroadcastReceiver like this:</p>
<pre class="lang-kotlin prettyprint-override"><code> class PlatformAccountReceiver:
BroadcastReceiver(), CoroutineScope by MainScope() {
override fun onReceive(context: Context, intent: Intent) {
when (intent.action) {
ACTION_GET_STATUS -> ... | I have a BroadcastReceiver like this: [CODE] And I send a broadcast from adb adb shell am broadcast -p com.example.demo -a com.example.ACTION_GET_STATUS Can I return some results to cmd, and show result to user? | android|cmd|broadcastreceiver|adb | 0 | 2022-05-06T09:50:14.917Z | 2,022 | 5 | 9 | 4 | 38 | 0 | 211 | 62 | 4 | 1 | true | true | false | false | false | false | zero |
72,139,521 | Data not visible | <ol>
<li>My Variable Class</li>
</ol>
<pre class="lang-kotlin prettyprint-override"><code>data class QnaVariable( val questionOne: String, val answerOne : String, val questionTwo: String, val answerTwo : String)
</code></pre>
<ol start="2">
<li>My ViewModel Class</li>
</ol>
<pre class="lang-kotlin prettyprint-override... | My Variable Class [CODE] My ViewModel Class [CODE] My Fragment Class [CODE] | android|kotlin | 0 | 2022-05-06T09:51:49.333Z | 2,022 | 5 | 9 | 4 | 40 | 1 | 75 | 16 | 2 | 3 | true | false | false | false | false | false | zero |
72,139,583 | Recycler View life cycle methods | <p>The flow of recycler view function call is: <br/>
<em><strong>getItemCount() -> getItemViewType() -> onCreateViewHolder() -> onBindViewHolder()</strong></em> <br/><br/>
The size of array list is 15 and the number of visible views on screen is 0 to 6. This is the log once the adapter is set. <br/>
<a href="h... | The flow of recycler view function call is: getItemCount() -> getItemViewType() -> onCreateViewHolder() -> onBindViewHolder() The size of array list is 15 and the number of visible views on screen is 0 to 6. This is the log once the adapter is set. getItemCount() is called thrice even before a view is created. Why? Onc... | java|android|kotlin|android-recyclerview | 0 | 2022-05-06T09:56:09.887Z | 2,022 | 5 | 9 | 4 | 35 | 1 | 922 | 32 | 4 | 0 | false | false | false | false | false | false | zero |
72,139,600 | How to reduce apk size when using FFmpeg | <p>App is developed it's size is hardly 30MB and when integrated FFmpeg Library its size goes to 135MB which is Too much.</p>
<p>Anyone know anything?</p> | App is developed it's size is hardly 30MB and when integrated FFmpeg Library its size goes to 135MB which is Too much. Anyone know anything? | android|ffmpeg|apk|android-ffmpeg | 1 | 2022-05-06T09:57:17.283Z | 2,022 | 5 | 9 | 4 | 171 | 1 | 140 | 40 | 4 | 0 | false | false | false | false | false | false | low |
72,139,663 | App Crashes when Room DB Entity Class object boolean value is changed to false | <p>I have a Room DB setup in my app and it was working well until recently when the app started crashing. It happens that I have a boolean value as a field in the Entity table and when ever the value changes to true the app crashes even if the DB is not updated.</p>
<p>I have the following error in my logs.</p>
<blockq... | I have a Room DB setup in my app and it was working well until recently when the app started crashing. It happens that I have a boolean value as a field in the Entity table and when ever the value changes to true the app crashes even if the DB is not updated. I have the following error in my logs. E/SQLiteLog: (1) no s... | java|android|android-studio|kotlin|android-room | 0 | 2022-05-06T10:01:49.403Z | 2,022 | 5 | 10 | 4 | 56 | 0 | 4,125 | 78 | 5 | 2 | true | true | false | false | false | false | zero |
72,139,732 | using startActivity() to open a share dialog, but content was less than what i see in log | <p>when using <strong>startActivity()</strong> to open a share dialog, but content was less than what i see in log. Can anyone explain this phenomenon?</p>
<pre><code> private static final String TAG = "MainActivity";
private void testShare() {
List<Intent> intentList = new ArrayList<&... | when using startActivity() to open a share dialog, but content was less than what i see in log. Can anyone explain this phenomenon? [CODE] this is what the log shows: the log shows here can see 28 apps and this is the effect of running: is the effect of running but here just only show 5 apps by the way, i'm using andro... | android|android-activity | 0 | 2022-05-06T10:06:49.030Z | 2,022 | 5 | 10 | 4 | 18 | 0 | 435 | 89 | 2 | 2 | true | true | false | false | false | false | zero |
72,139,808 | Android Studio Bumblebee : wifi pairing always getting disconnected | <p>I manage to connect my device. But a few minutes after, it gets disconnected and I have to restart the whole connection procedure to connect it again.</p>
<p>How to solve this problem?</p>
<p>Thanks</p> | I manage to connect my device. But a few minutes after, it gets disconnected and I have to restart the whole connection procedure to connect it again. How to solve this problem? Thanks | android|android-studio|adb|android-studio-bumblebee | 0 | 2022-05-06T10:12:12.867Z | 2,022 | 5 | 10 | 4 | 24 | 0 | 184 | 67 | 4 | 0 | false | true | false | false | false | false | zero |
72,139,906 | React native keyboard covering input | <p>I have pages with inputs aligned to the bottom of the page, when the keyboard pops up it covers the inputs. To solve this I am using, <a href="https://i.stack.imgur.com/s5DxG.png" rel="nofollow noreferrer">KeyboardAwareScrollView</a></p>
<p>However, I now get the the grey box scrolling off the screen when the keyboa... | I have pages with inputs aligned to the bottom of the page, when the keyboard pops up it covers the inputs. To solve this I am using, KeyboardAwareScrollView However, I now get the the grey box scrolling off the screen when the keyboard pops up. How can I keep the content all on one screen and only scrollable for small... | android|ios|react-native | 0 | 2022-05-06T10:19:17.210Z | 2,022 | 5 | 10 | 4 | 24 | 0 | 338 | 36 | 3 | 1 | true | true | false | false | false | false | zero |
72,139,941 | Android >= 11 navigate between folder to find file without manage_external_storage permission | <p>I have an app that have to update some machine firmware.
Until targeting API 29 there are no problem, now Google Play Store need to target at least API30... and the struggle started.</p>
<p>The file manager picker I've used is no more compatible (unmaintained since February 2020), I've found a new one (arte programa... | I have an app that have to update some machine firmware. Until targeting API 29 there are no problem, now Google Play Store need to target at least API30... and the struggle started. The file manager picker I've used is no more compatible (unmaintained since February 2020), I've found a new one (arte programar material... | android|android-11|android-12|android-api-30 | 0 | 2022-05-06T10:22:14.473Z | 2,022 | 5 | 10 | 4 | 197 | 1 | 922 | 93 | 4 | 0 | false | false | false | false | false | false | zero |
72,140,041 | Testing custom Lint rule with custom scopes | <p>On the project I have a bunch of custom Lint rules. At some point of time I had a need to report single issue with different severity, depending on the <code>scope</code>. Since issue is tightly coupled with a scope I created two issues:</p>
<pre><code>val ISSUE_1 = Issue.create(
...
severity = WARNING,
imp... | On the project I have a bunch of custom Lint rules. At some point of time I had a need to report single issue with different severity, depending on the scope . Since issue is tightly coupled with a scope I created two issues: [CODE] Then in some place within the detector I've implemented the following logic: [CODE] Eve... | android|lint|android-lint | 0 | 2022-05-06T10:30:02.180Z | 2,022 | 5 | 10 | 4 | 54 | 0 | 784 | 43 | 3 | 5 | true | true | false | false | false | false | zero |
72,140,148 | CPU, RAM stress android | <p>I have a task to compare the performance of Java and Kotlin programs. I would like to measure CPU memory and RAM usage. I read somewhere that a good idea for CPU stress is to generate random numbers and sort them, however I have a problem how to stress RAM. What is the ways can to stress CPU and RAM in android?</p> | I have a task to compare the performance of Java and Kotlin programs. I would like to measure CPU memory and RAM usage. I read somewhere that a good idea for CPU stress is to generate random numbers and sort them, however I have a problem how to stress RAM. What is the ways can to stress CPU and RAM in android? | java|android|kotlin|cpu|ram | 0 | 2022-05-06T10:38:37.200Z | 2,022 | 5 | 10 | 4 | 93 | 0 | 312 | 23 | 5 | 0 | false | true | false | false | false | false | zero |
72,140,168 | Some Androids requires manually sending RATS and adding block numbers in transceive() for NfcA tags (ISO 14443-4A) | <p>When reading NfcA tags, I found that some Android models (e.g. Samsung S8) requires me to explicitly send out RATS before SELECT and to send any I-blocks, the block number (2/3) has to be inserted explicitly at the first byte of the command and the block number will also appear in the 1st byte of the response, i.e.<... | When reading NfcA tags, I found that some Android models (e.g. Samsung S8) requires me to explicitly send out RATS before SELECT and to send any I-blocks, the block number (2/3) has to be inserted explicitly at the first byte of the command and the block number will also appear in the 1st byte of the response, i.e. Cod... | android|nfc | 0 | 2022-05-06T10:40:10.620Z | 2,022 | 5 | 10 | 4 | 70 | 1 | 707 | 114 | 2 | 2 | true | false | false | false | false | false | zero |
72,140,170 | How to create drawable/bitmap with a nested image which has one corner out of the circle background? | <p>I need to create smth like below. Image should be nested inside the circle background and one of the corners should be out of this circle "pocket". I think we need smth like a mask but don't understand what instruments I can use to achieve this effect.</p>
<p><a href="https://i.stack.imgur.com/vCyvS.png" r... | I need to create smth like below. Image should be nested inside the circle background and one of the corners should be out of this circle "pocket". I think we need smth like a mask but don't understand what instruments I can use to achieve this effect. | android|canvas|bitmap|drawable | 0 | 2022-05-06T10:40:22.007Z | 2,022 | 5 | 10 | 4 | 25 | 1 | 262 | 100 | 4 | 0 | false | false | false | false | false | false | zero |
72,140,176 | Error inflating Class Fragment in Recyclerview with Navigation Activity | <p>I'm making an app that uses Android studio to write and call messages. This error message appears during the process of inflating the recycler view into the fragment.</p>
<p>How can I fix it? Why can't this be inflated?</p>
<p>here is error messages...</p>
<p><div class="snippet" data-lang="js" data-hide="false" dat... | I'm making an app that uses Android studio to write and call messages. This error message appears during the process of inflating the recycler view into the fragment. How can I fix it? Why can't this be inflated? here is error messages... [CODE] and this HomeFragment that the recycler view should see. [CODE] This is Na... | java|android|android-studio|android-fragments|android-recyclerview | 0 | 2022-05-06T10:40:51.737Z | 2,022 | 5 | 10 | 4 | 48 | 1 | 566 | 71 | 5 | 6 | true | false | false | false | false | false | zero |
72,140,188 | How to show large icon in notification | <p><a href="https://i.stack.imgur.com/ykmiW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ykmiW.jpg" alt="enter image description here" /></a></p>
<p>There is a small icon and a large icon in the attached image of a notification. I would like to create a similar notification. I am able to set the s... | There is a small icon and a large icon in the attached image of a notification. I would like to create a similar notification. I am able to set the small icon using NotificationCompat.Builder(context).setSmallIcon() . But I am not able to set the large icon. Can anyone please help me with this. [CODE] I tried adding th... | android|push-notification|notifications|android-notifications | 0 | 2022-05-06T10:42:11.783Z | 2,022 | 5 | 10 | 4 | 750 | 2 | 374 | 38 | 4 | 1 | true | false | false | false | false | false | zero |
72,140,221 | RecyclerView list shows 4 item only(have 200 items) and cant scroll the list | <p>This is my Recycler View adapter class:</p>
<pre><code>public class CustomAdapter extends RecyclerView.Adapter<CustomAdapter.viewHolder> implements Filterable {
Context context;
OnBoardingFirstScreen activity;
public static ArrayList<CountryCodeModel> arrayList,arrayListFiltered;
pub... | This is my Recycler View adapter class: [CODE] This is my recyclerview XML part: [CODE] in custom adapter class if i set getItemCount() to return the size instead of limit it loads all 200 items and in xml it is wrap content lists gets out of the screen. I want to load 4 items at a time in my list and want my recyclerv... | java|android|android-recyclerview|android-adapter | 0 | 2022-05-06T10:45:05.380Z | 2,022 | 5 | 10 | 4 | 67 | 0 | 407 | 76 | 4 | 2 | true | true | false | false | false | false | zero |
72,140,231 | How does Firebase Authentication Android SDK persist the refresh token? | <p>I was reading through the docs but I could not find how the SDK persists the refresh token on the device to be able to keep the user authenticated when the app is killed.</p>
<p>What I would like to find out is:</p>
<ul>
<li>Where the refresh token is stored</li>
<li>How the refresh token is protected to prevent a m... | I was reading through the docs but I could not find how the SDK persists the refresh token on the device to be able to keep the user authenticated when the app is killed. What I would like to find out is: Where the refresh token is stored How the refresh token is protected to prevent a malicious actor from stealing it ... | android|firebase|firebase-authentication | 4 | 2022-05-06T10:46:06.117Z | 2,022 | 5 | 10 | 4 | 159 | 1 | 353 | 71 | 3 | 0 | false | false | false | false | false | false | low |
72,140,269 | The method '[]' can't be unconditionally invoked because the receiver can be 'null' what is the problem | <p>I want to show the staff list in the Firebase database. However, I am getting the following error.</p>
<pre><code>import 'package:firebase_database/firebase_database.dart';
class Drivers
{
String? name;
String? phone;
String? email;
String? id;
String? car_color;
String? car_model;
String? car_number;
Drivers({thi... | I want to show the staff list in the Firebase database. However, I am getting the following error. [CODE] What is the problem with my code?? I tried to put ! symbol after .value but nothing is happen | android|firebase|flutter|firebase-realtime-database | 0 | 2022-05-06T10:49:19.460Z | 2,022 | 5 | 10 | 4 | 45 | 4 | 199 | 103 | 4 | 1 | true | false | false | false | false | false | zero |
72,140,298 | How to make item selectable in recycler view and use it? | <p>I have followed android developer documents to create the recycler view. But now I would like to make the item selectable.</p>
<p>Currently have created <code>itemAdapter.kt</code></p>
<pre><code>class ItemAdapter(
private val context: Context,
private val dataset: List<Mode>,
private val itemClick... | I have followed android developer documents to create the recycler view. But now I would like to make the item selectable. Currently have created itemAdapter.kt [CODE] Then there is data file called Modes.kt [CODE] Then there is model file called Model.kt [CODE] How do I get the selected item for my function in the mai... | android|kotlin | 0 | 2022-05-06T10:50:56.177Z | 2,022 | 5 | 10 | 4 | 73 | 2 | 552 | 56 | 2 | 4 | true | false | false | false | false | false | zero |
72,140,338 | AndroidViewClient: unable to dump correctly the view | <p>I'm trying to use CulebraTester2 to dump the Window hierarchy. I'm testing an app where the text of some TextView changes: the first time I call <code>dumpWindowHierarchy</code> the obtained JSON content corresponds to the text shown, when the text changes and I try to call again <code>dumpWindowHierarchy</code>, th... | I'm trying to use CulebraTester2 to dump the Window hierarchy. I'm testing an app where the text of some TextView changes: the first time I call dumpWindowHierarchy the obtained JSON content corresponds to the text shown, when the text changes and I try to call again dumpWindowHierarchy , the text of the TextView remai... | android|androidviewclient | 0 | 2022-05-06T10:53:36.780Z | 2,022 | 5 | 10 | 4 | 87 | 1 | 712 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
72,140,343 | Custom view in layout doesn't show while using "match_parent" | <p>I have a constraint layout that consists of two <code>TextView</code>s and a custom <code>BoxBackgroundView</code>. I want the box background to scale in size with the text, but when I use <code>"match_parent"</code> on the background and <code>"wrap_content"</code> on the constraint layout, the ... | I have a constraint layout that consists of two TextView s and a custom BoxBackgroundView . I want the box background to scale in size with the text, but when I use "match_parent" on the background and "wrap_content" on the constraint layout, the background doesn't show. I'm guessing that it just ha... | java|android|android-custom-view|android-constraintlayout | 1 | 2022-05-06T10:53:56.003Z | 2,022 | 5 | 10 | 4 | 31 | 0 | 419 | 61 | 4 | 2 | true | true | false | false | false | false | low |
72,140,349 | How to get notifications click/open updates in RNFirebase | <p>I am using RNfirebase to push notifications to my React native application. When the app is in background I am trying to send a notifications which is working fine in the app and I am clicking the notification and the app get opened but the end click/opens sections is not getting updated in table in firebase console... | I am using RNfirebase to push notifications to my React native application. When the app is in background I am trying to send a notifications which is working fine in the app and I am clicking the notification and the app get opened but the end click/opens sections is not getting updated in table in firebase console. B... | android|ios|firebase|firebase-cloud-messaging|react-native-firebase | 0 | 2022-05-06T10:54:23.120Z | 2,022 | 5 | 10 | 4 | 133 | 0 | 359 | 57 | 5 | 1 | true | true | false | false | false | false | zero |
72,140,366 | Location service status couldn't be determined when try to retrieve location data via a backgroud service | <p>everyone, I'm trying to get the location data every time the application run a script via a background service for same reasons, but I got every time</p>
<blockquote>
<p>Location service status couldn't be determined</p>
</blockquote>
<p>error, I'm using the Location package version 4.3.0 and gradle 4.1.0.</p>
<p>my... | everyone, I'm trying to get the location data every time the application run a script via a background service for same reasons, but I got every time Location service status couldn't be determined error, I'm using the Location package version 4.3.0 and gradle 4.1.0. my current code is: [CODE] | android|flutter|location | 0 | 2022-05-06T10:55:55.857Z | 2,022 | 5 | 10 | 4 | 55 | 0 | 293 | 105 | 3 | 1 | true | true | false | false | false | false | zero |
72,140,496 | Xamarin MAUI application not shows correct output | <p>I have downloaded Visual Studio 2022 Professional (preview) version from
<a href="https://docs.microsoft.com/en-us/dotnet/maui/get-started/first-app?pivots=devices-android" rel="nofollow noreferrer">MS Document</a>. Also I have followed the other steps to create first sample application using .Net MAUI template afte... | I have downloaded Visual Studio 2022 Professional (preview) version from MS Document . Also I have followed the other steps to create first sample application using .Net MAUI template after VS installed. It does create new project with all the required dependency. I have installed Android sdk api v30 and created a simu... | xamarin|xamarin.forms|xamarin.android|xamarin.ios|.net-maui | 0 | 2022-05-06T11:06:34.160Z | 2,022 | 5 | 11 | 4 | 200 | 0 | 823 | 49 | 5 | 1 | true | true | false | false | false | false | zero |
72,140,572 | After changed JAVA.VERSION to 11 I get "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8" | <p>I have changed <code>sourceCompatibility</code> and <code>targetCompatibility</code> to <code>JavaVersion.VERSION_11</code> in build. gradle files for all modules. In my PC I have JDK 11, JAVA_HOME and path are ok, in project:</p>
<p><a href="https://i.stack.imgur.com/06Nke.jpg" rel="nofollow noreferrer"><img src="h... | I have changed sourceCompatibility and targetCompatibility to JavaVersion.VERSION_11 in build. gradle files for all modules. In my PC I have JDK 11, JAVA_HOME and path are ok, in project: But I still get Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 11 to run. You are cu... | android|gradle|android-gradle-plugin | 1 | 2022-05-06T11:12:43.793Z | 2,022 | 5 | 11 | 4 | 3,119 | 2 | 715 | 120 | 3 | 0 | false | false | true | false | false | false | low |
72,140,741 | Xamarin Forms Editor Scrollbar | <p>I have a need for an Editor, with a checkbox in a left margin for each line.</p>
<p>(When the user clicks on the check box, the text for that line changes color.)</p>
<p>At the moment I can create the check boxes dynamically in a grid when newlines are added to the editor.</p>
<p>However once the editor scrolls, I h... | I have a need for an Editor, with a checkbox in a left margin for each line. (When the user clicks on the check box, the text for that line changes color.) At the moment I can create the check boxes dynamically in a grid when newlines are added to the editor. However once the editor scrolls, I have no way to sync the s... | android|xamarin|canvas|scroll|editor | -1 | 2022-05-06T11:26:27.873Z | 2,022 | 5 | 11 | 4 | 204 | 1 | 881 | 30 | 5 | 0 | false | false | false | false | false | true | negative |
72,140,816 | on swipe how can i set text in text field after that edit text and insert again on that position where we swipe | <p>on swipe how can I set text in the text field after that edit text and insert it again in that position. swipe in Dismissible and after swipe, I want my text on the input text field and change the text and add the text in the same position can you please help me <strong>strong text</strong>
<a href="https://i.stack.... | on swipe how can I set text in the text field after that edit text and insert it again in that position. swipe in Dismissible and after swipe, I want my text on the input text field and change the text and add the text in the same position can you please help me strong text enter image description here [CODE] | android|flutter | 0 | 2022-05-06T11:33:05.557Z | 2,022 | 5 | 11 | 4 | 18 | 0 | 310 | 111 | 2 | 1 | true | true | false | false | false | false | zero |
72,140,863 | Itemdecoration in Jetpack compose | <p>I am currently in the process of evaluating whether or not we can migrate our rather complex UI to jetpack compose at this stage and I am struggling with the following problem.</p>
<p>I am having an infinite scrolling vertical List of various different conceptual components. Some of them are headers, then there can ... | I am currently in the process of evaluating whether or not we can migrate our rather complex UI to jetpack compose at this stage and I am struggling with the following problem. I am having an infinite scrolling vertical List of various different conceptual components. Some of them are headers, then there can be some te... | android|android-jetpack-compose | 1 | 2022-05-06T11:37:38.810Z | 2,022 | 5 | 11 | 4 | 325 | 2 | 1,003 | 33 | 2 | 1 | true | false | false | false | false | false | low |
72,140,877 | artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath' | <p>I have working an application without problem in Android Studio 3.2.1 After a long time of absence, I just downloaded Androoid Studio 2021.1 and when I try to run my appli_cation I get this error.</p>
<p><a href="https://i.stack.imgur.com/S0Bp5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S0Bp5... | I have working an application without problem in Android Studio 3.2.1 After a long time of absence, I just downloaded Androoid Studio 2021.1 and when I try to run my appli_cation I get this error. I tried this solution lien but it didn't change anything I've been looking for a solution for 2 days now. I have already tr... | android|android-studio | 1 | 2022-05-06T11:39:07.463Z | 2,022 | 5 | 11 | 4 | 455 | 0 | 560 | 149 | 2 | 2 | true | true | false | false | false | false | low |
72,140,965 | Android NavigationRail Show multiple label lines for item text | <p>I'm developing a NavigationRail and I wanted to display the text of each item in two lines, as show in this official example, but it keeps getting ellipsized in the end. I've tried to redefine the applying style but nothing seems to work.</p>
<p><a href="https://i.stack.imgur.com/MeSIu.png" rel="nofollow noreferrer"... | I'm developing a NavigationRail and I wanted to display the text of each item in two lines, as show in this official example, but it keeps getting ellipsized in the end. I've tried to redefine the applying style but nothing seems to work. Any help? Thanks in advance! | android|navigation | 1 | 2022-05-06T11:46:10.003Z | 2,022 | 5 | 11 | 4 | 127 | 1 | 267 | 62 | 2 | 0 | false | false | false | false | false | false | low |
72,141,061 | Service info.mqtt.android.service.MqttService has > leaked IntentReceiver | <p>I keep having this error log when ever i toggle off a switch in my app.</p>
<blockquote>
<p>E/ActivityThread: Service info.mqtt.android.service.MqttService has
leaked IntentReceiver
info.mqtt.android.service.ping.AlarmPingSender$AlarmReceiver@9cd447c
that was originally registered here. Are you missing a call to
unr... | I keep having this error log when ever i toggle off a switch in my app. E/ActivityThread: Service info.mqtt.android.service.MqttService has leaked IntentReceiver info.mqtt.android.service.ping.AlarmPingSender$AlarmReceiver@9cd447c that was originally registered here. Are you missing a call to unregisterReceiver()? andr... | java|android|kotlin|mqtt | 0 | 2022-05-06T11:53:39.307Z | 2,022 | 5 | 11 | 4 | 129 | 0 | 1,447 | 73 | 4 | 1 | true | true | false | false | false | false | zero |
72,141,226 | Can matomo customize and track screen views like Firebase analytics? | <p>I am trying to migrate my application from Firebase to Matomo. One feature I would like to have is to keep track of average time user spends on a certain screen. While firebase generates it automatically for activities I can customise it with</p>
<pre><code>Bundle bundle = new Bundle();
bundle.putString(FirebaseAnal... | I am trying to migrate my application from Firebase to Matomo. One feature I would like to have is to keep track of average time user spends on a certain screen. While firebase generates it automatically for activities I can customise it with [CODE] But Matomo has very limited documentation especially on tracking user ... | android|firebase-analytics|matomo|event-tracking | 0 | 2022-05-06T12:07:21.997Z | 2,022 | 5 | 12 | 4 | 94 | 0 | 388 | 68 | 4 | 1 | true | true | false | false | false | false | zero |
72,141,399 | Unity android gradle build fails duplicate class | <p>I have been looking for the last few days for a solution to my problem. I have multiple SDKs imported in my project (firebase, facebook, admob, etc) and it was all working fine.</p>
<p>But I then needed to import a AndroidInstallReferrer plugin (this one: <a href="https://assetstore.unity.com/packages/tools/integrat... | I have been looking for the last few days for a solution to my problem. I have multiple SDKs imported in my project (firebase, facebook, admob, etc) and it was all working fine. But I then needed to import a AndroidInstallReferrer plugin (this one: https://assetstore.unity.com/packages/tools/integration/android-install... | android|android-studio|unity3d|gradle|sdk | 0 | 2022-05-06T12:20:44.333Z | 2,022 | 5 | 12 | 4 | 429 | 0 | 634 | 48 | 5 | 1 | true | true | false | false | false | false | zero |
72,141,404 | I am not able to launch main activity while provisioning device | <p><strong>This is my AdminReceiver</strong></p>
<pre><code>public class MyDeviceAdminReceiver extends DeviceAdminReceiver {
private final String TAG = MyDeviceAdminReceiver.class.getName();
</code></pre>
<p>this method is not calling from receiver ....</p>
<pre><code> @Override
public void onProfileProvisio... | This is my AdminReceiver [CODE] this method is not calling from receiver .... [CODE] This method is called but onProfileComplete is no calling I was trying every possibilities but isn't work please help... [CODE] | java|android | 0 | 2022-05-06T12:21:06.807Z | 2,022 | 5 | 12 | 4 | 24 | 0 | 212 | 63 | 2 | 3 | true | true | false | false | false | false | zero |
72,141,428 | Can't remove a line from conf file | <p>When I build my ktor project It fails and it tells me about a line which causes the failure. The line is located in the application.conf file:</p>
<pre><code>ktor {
development = true
deployment {
//the problem is with "heroku logs --tail"
port = 8080heroku logs --tail
port =... | When I build my ktor project It fails and it tells me about a line which causes the failure. The line is located in the application.conf file: [CODE] When I try to remove the line and then build the project it returns back again. How can I remove it? | android|kotlin|intellij-idea|ktor | 0 | 2022-05-06T12:23:10.123Z | 2,022 | 5 | 12 | 4 | 27 | 1 | 250 | 34 | 4 | 1 | true | false | false | false | false | false | zero |
72,141,434 | Shell script in Gradle build: java.io.IOException | <p>I have the following lines in my build.gradle file of my Android project:</p>
<pre><code>"./prebuild.sh".execute()
</code></pre>
<p>But during the build I get this error:</p>
<pre><code>java.io.IOException: Cannot run program "./prebuild.sh": error=2, No such file or directory
</code></pre>
<p>Th... | I have the following lines in my build.gradle file of my Android project: [CODE] But during the build I get this error: [CODE] The prebuild.sh script is in the root directory of the app and executable. What's weird is that this exact build works for everyone on the team, just not on my machine (M1). I also remember tha... | android|shell|gradle|build.gradle | 0 | 2022-05-06T12:23:49.140Z | 2,022 | 5 | 12 | 4 | 139 | 2 | 661 | 49 | 4 | 4 | true | false | false | false | false | false | zero |
72,141,513 | Unable to add view to a window with TYPE_PHONE params android | <p>I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view</p>
<p>I tried to use <code>WindowManager.LayoutParams.TYPE_PHONE</code> but its deprecated after oreo and app crashes if I try to add a view to that window with params set to <code>Win... | I am trying to create a floating view which should appear on top of everything but notification panel and settings app hide my view I tried to use WindowManager.LayoutParams.TYPE_PHONE but its deprecated after oreo and app crashes if I try to add a view to that window with params set to WindowManager.LayoutParams.TYPE_... | java|android|android-windowmanager | 0 | 2022-05-06T12:30:17.357Z | 2,022 | 5 | 12 | 4 | 39 | 0 | 413 | 61 | 3 | 3 | true | true | false | false | false | false | zero |
72,141,536 | HTTP server in Android emulator not accessible from host | <p>On my Android emulator device I have deployed HTTP server on port 8080</p>
<pre><code>> adb -s 127.0.0.1 shell
generic_x86:/ $ netstat -atn
Active Internet connections (established and servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 0 :::8080 ::... | On my Android emulator device I have deployed HTTP server on port 8080 [CODE] However, when I try to access it from the host the port seems to closed: [CODE] In my host Resource Manager I am not seeing any process listening on that port Why is the port not visible on host? | android | -1 | 2022-05-06T12:32:29.143Z | 2,022 | 5 | 12 | 4 | 47 | 1 | 273 | 56 | 1 | 2 | true | false | false | false | false | true | negative |
72,141,704 | Why i can't install something on termux android? | <p>Its still get error, error and error again, i trying to install it again but still error</p>
<p>The error:</p>
<pre><code> CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/lib/apt/methods/https": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libcurl.so... | Its still get error, error and error again, i trying to install it again but still error The error: [CODE] | android|termux | 3 | 2022-05-06T12:47:19.533Z | 2,022 | 5 | 12 | 4 | 3,523 | 1 | 106 | 48 | 2 | 1 | true | false | true | false | false | false | low |
72,141,708 | Do I have to use Bundle for data exchange between activity and fragment? | <p>Multiple Fragments are created in one Activity to switch pages to Fragment binding. At this point, the data in Main Activity must be used by all fragments.</p>
<p>So I did it like this.
I called method in Activity that return data in activity.
↓ fragment.java</p>
<pre><code>MainActivity main = (MainActivity) getActi... | Multiple Fragments are created in one Activity to switch pages to Fragment binding. At this point, the data in Main Activity must be used by all fragments. So I did it like this. I called method in Activity that return data in activity. ↓ fragment.java [CODE] And this is getCurrentUserID() in MainActivity. [CODE] This ... | android|android-fragments|android-fragmentactivity | 0 | 2022-05-06T12:47:27.530Z | 2,022 | 5 | 12 | 4 | 27 | 0 | 434 | 72 | 3 | 2 | true | true | false | false | false | false | zero |
72,141,746 | Android Alarm Manager Plus in Flutter never fires periodic | <p>Android Alarm Manager Plus in Flutter never fires periodic after 1 minute regularly</p> | Android Alarm Manager Plus in Flutter never fires periodic after 1 minute regularly | android|flutter | 0 | 2022-05-06T12:50:21.573Z | 2,022 | 5 | 12 | 4 | 29 | 0 | 83 | 58 | 2 | 0 | false | true | false | false | false | false | zero |
72,141,834 | Time Format String | <p>I am trying to decode the date-time receiving from my APIs in my required format "yyyy-MM-dd"</p>
<p>I receive time in 2 format</p>
<pre><code>1. "2022-05-05T11:32:12.542Z"
2. "2022-05-06T07:33:46.59928+00:00"
</code></pre>
<p>I am able to decode first format by parsing it using followi... | I am trying to decode the date-time receiving from my APIs in my required format "yyyy-MM-dd" I receive time in 2 format [CODE] I am able to decode first format by parsing it using following pattern [CODE] but not able to understand the format for the 2nd condition. Some more example example of 2nd Condition ... | java|android|kotlin|date|datetime-format | 1 | 2022-05-06T12:56:46.577Z | 2,022 | 5 | 12 | 4 | 284 | 2 | 448 | 18 | 5 | 4 | true | false | false | false | false | false | low |
72,141,924 | Can't initialize ACRA. Method getPluginConfigurationBuilder not found | <p>everyone!
I'm trying to use ACRA in my Android project. I have followed recommendations at <a href="https://www.acra.ch/docs/Setup" rel="nofollow noreferrer">ACRA Setup</a>. My app.java file is almost identical to that on <a href="https://www.acra.ch/docs/Setup" rel="nofollow noreferrer">ACRA Setup</a>, but Android ... | everyone! I'm trying to use ACRA in my Android project. I have followed recommendations at ACRA Setup . My app.java file is almost identical to that on ACRA Setup , but Android Studio still shows me that method builder.getPluginConfigurationBuilder() was not found. I have tried Clean / Sync Gradle / Build numerous time... | android|acra | 1 | 2022-05-06T13:03:53.903Z | 2,022 | 5 | 13 | 4 | 137 | 1 | 768 | 69 | 2 | 3 | true | false | false | false | false | false | low |
72,142,219 | On Complete on Normal function in Kotlin | <p>I have a Piece of code I want to execute just after the completing the first function</p>
<pre><code> doc_ViewModel.encryption(img,txt,uid!!)
</code></pre>
<p>The above is just a random function [User defined]
After this function is completed I want to trigger a block of Code but I am unable to access to On C... | I have a Piece of code I want to execute just after the completing the first function [CODE] The above is just a random function [User defined] After this function is completed I want to trigger a block of Code but I am unable to access to On Complete Or On Success Listner via user defined functions So in short, how ca... | android|kotlin | 0 | 2022-05-06T13:26:27.703Z | 2,022 | 5 | 13 | 4 | 55 | 0 | 441 | 40 | 2 | 1 | true | true | false | false | false | false | zero |
72,142,252 | Can one implement an update system like the CoinMarketCap app in Ionic | <p>I'm currently building an Ionic app which will be getting very frequent updates. If possible, I want to avoid sending users to the app/play store each time I push a change (which will probably happen at least twice per month).</p>
<p>I use the coinmarketcap mobile app a lot which <em>seems</em> to be built on <em>so... | I'm currently building an Ionic app which will be getting very frequent updates. If possible, I want to avoid sending users to the app/play store each time I push a change (which will probably happen at least twice per month). I use the coinmarketcap mobile app a lot which seems to be built on some sort of browser rend... | android|ios|reactjs|ionic-framework|auto-update | 0 | 2022-05-06T13:28:20.113Z | 2,022 | 5 | 13 | 4 | 32 | 0 | 648 | 70 | 5 | 0 | false | true | false | false | false | false | zero |
72,142,632 | Android pause and resume ringtone playback | <p>In android, is there any way to pause ringtone playback, play audio and then resume ringtone playback.</p>
<p>Using PhoneStateListener
Could stop ringtone using below code</p>
<pre><code>TelephonyManager mgr = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
if(mgr.getCallState... | In android, is there any way to pause ringtone playback, play audio and then resume ringtone playback. Using PhoneStateListener Could stop ringtone using below code [CODE] But could not gain audio focus to play audio, audio focus request fails for below code [CODE] | android | 0 | 2022-05-06T13:52:29.060Z | 2,022 | 5 | 13 | 4 | 42 | 1 | 265 | 42 | 1 | 2 | true | false | false | false | false | false | zero |
72,142,651 | NavGraph with dynamic destinations - restore after process kill | <p>This is the setup:</p>
<ul>
<li>View-based Android UI</li>
<li>Using androidx.navigation library (tested with versions 2.4.1 and 2.5.0-beta01)</li>
<li>Activity, consisting of a bottom bar and a <code>NavHostFragment</code></li>
</ul>
<p>What's special is that the navigation structure is defined by the server. The t... | This is the setup: View-based Android UI Using androidx.navigation library (tested with versions 2.4.1 and 2.5.0-beta01) Activity, consisting of a bottom bar and a NavHostFragment What's special is that the navigation structure is defined by the server. The top-level destinations are available during Activity.onCreate(... | android|androidx|android-navigation|android-navigation-graph | 0 | 2022-05-06T13:54:51.470Z | 2,022 | 5 | 13 | 4 | 152 | 0 | 1,447 | 63 | 4 | 2 | true | true | false | false | false | false | zero |
72,142,731 | Clone Android tablet | <p>I have 200 android tablets all the same make and model and identical. I want to get one of them and install a few apps and make changes to some settings and so on and basically personalize it and then create an image of this device and clone it to all other 199 devices.
This is to avoid the time that is required to ... | I have 200 android tablets all the same make and model and identical. I want to get one of them and install a few apps and make changes to some settings and so on and basically personalize it and then create an image of this device and clone it to all other 199 devices. This is to avoid the time that is required to per... | android|image|clone|tablet | 0 | 2022-05-06T14:00:21.143Z | 2,022 | 5 | 14 | 4 | 80 | 0 | 517 | 20 | 4 | 0 | false | true | false | false | false | false | zero |
72,142,872 | Android Studio AVD always Cold Boots | <p>I am running Android Studio 2021.1.1 patch 3 (just updated from a previous version) on Windows 10.</p>
<p>I have a Pixel 2 API 30 AVD that I use a single app in. Recently, the app crashed, and made the emulated phone unusable, so I had to go in to the AVD manager and select the "Cold Boot Now" option.</p>... | I am running Android Studio 2021.1.1 patch 3 (just updated from a previous version) on Windows 10. I have a Pixel 2 API 30 AVD that I use a single app in. Recently, the app crashed, and made the emulated phone unusable, so I had to go in to the AVD manager and select the "Cold Boot Now" option. After cold boo... | android|avd | 0 | 2022-05-06T14:10:48.113Z | 2,022 | 5 | 14 | 4 | 63 | 0 | 1,426 | 36 | 2 | 0 | false | true | false | false | false | false | zero |
72,143,005 | Animate objects in another column in LazyVerticalGrid | <p>I have a <code>LazyVerticalGrid</code> with items that I animate with <code>animateDpAsState</code> and <code>width</code> upon click on the button. The items below do move downwards but there is a problem with the side items. Is there a convinient way to make those move too? <a href="https://hnet.com/video-to-gif/v... | I have a LazyVerticalGrid with items that I animate with animateDpAsState and width upon click on the button. The items below do move downwards but there is a problem with the side items. Is there a convinient way to make those move too? Here's a link to showcase what I'm talking about | android|android-jetpack-compose | 0 | 2022-05-06T14:19:47.163Z | 2,022 | 5 | 14 | 4 | 64 | 0 | 286 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
72,143,103 | Android ndk compile error, arm-linux-androideabi-gcc is not excutable | <p>I tried to build a app using andriod NDK</p>
<pre><code>./waf configure -T debug --android=armeabi-v7a,4.9,21
</code></pre>
<p>but the compile failed with the error</p>
<p>config.log</p>
<pre><code>Checking for 'gcc' (C compiler)
find program=['gcc', 'cc'] paths=['/home/kkw07054/android-ndk-r10e', '/home/kkw07054/bi... | I tried to build a app using andriod NDK [CODE] but the compile failed with the error config.log [CODE] how can i solve this? | android|android-ndk | 0 | 2022-05-06T14:26:39.973Z | 2,022 | 5 | 14 | 4 | 117 | 0 | 125 | 69 | 2 | 2 | true | true | false | false | false | false | zero |
72,143,227 | User isn't getting redirected after sign-out, the page just keeps loading | <p>Device: Samsung Galaxy S9/Android 10
Build number: Firefox v 99.1.1
Problem:
Using Firefox as default browser, the user is failed to get redirected from webview back to app. This issue is not reproducible on other devices nor browsers
SDK Version:</p>
<p>Amplify Android v1.29.0</p>
<p>Code used:</p>
<p>The onSuccess... | Device: Samsung Galaxy S9/Android 10 Build number: Firefox v 99.1.1 Problem: Using Firefox as default browser, the user is failed to get redirected from webview back to app. This issue is not reproducible on other devices nor browsers SDK Version: Amplify Android v1.29.0 Code used: The onSuccess Action of Amplify.Auth.... | android|firefox|mobile|browser|default | 0 | 2022-05-06T14:35:25.727Z | 2,022 | 5 | 14 | 4 | 12 | 0 | 430 | 73 | 5 | 0 | false | true | false | false | false | false | zero |
72,143,246 | Why I am not able to use mobile authentication with firebase in jetpack compose? | <p>I am try to learning android jetpack compose, I have simple app, and I want to use mobile authentication with firebase for my project. I am using MVVM in the project, so when I debug the project, it throw an error like</p>
<blockquote>
<p>You must specify an Activity on your PhoneAuthOptions. Please call
#setActivit... | I am try to learning android jetpack compose, I have simple app, and I want to use mobile authentication with firebase for my project. I am using MVVM in the project, so when I debug the project, it throw an error like You must specify an Activity on your PhoneAuthOptions. Please call #setActivity() for the .build() in... | android|kotlin|firebase-authentication|android-jetpack-compose | 1 | 2022-05-06T14:36:42.890Z | 2,022 | 5 | 14 | 4 | 337 | 2 | 488 | 80 | 4 | 4 | true | false | false | false | false | false | low |
72,143,273 | Put an image from camera with migradoc or pdfsharp with xamarin forms | <p>I have a problem that I can't put an image from the camera to the pdf. It put the same error <code>"Image could not read"</code>. How can I do it?
This is the path they gave me when I take a photo =</p>
<pre><code>"/storage/emulated/0/Android/data/com.companyname.atecresacalculator/files/Pictures/foto... | I have a problem that I can't put an image from the camera to the pdf. It put the same error "Image could not read" . How can I do it? This is the path they gave me when I take a photo = [CODE] code from CompartirInformacion(SharedInformation): [CODE] where I added into the pdf: [CODE] Clicked to take the pho... | c#|xamarin|xamarin.forms|xamarin.android | 2 | 2022-05-06T14:38:58.327Z | 2,022 | 5 | 14 | 4 | 124 | 1 | 330 | 69 | 4 | 4 | true | false | false | false | false | false | low |
72,143,297 | How to create in-app keyboard in android using jetpack compose? | <p>In View system, we can using <em>InputConnection</em> to <a href="https://stackoverflow.com/questions/9577304/how-can-you-make-a-custom-keyboard-in-android#answer-45005691">create in-app keyboard</a>. But in Jetpack compose, i don't know how to do that. Can you help me, please?</p> | In View system, we can using InputConnection to create in-app keyboard . But in Jetpack compose, i don't know how to do that. Can you help me, please? | android|input|keyboard|textfield|android-jetpack-compose | 2 | 2022-05-06T14:40:28.183Z | 2,022 | 5 | 14 | 4 | 133 | 0 | 150 | 63 | 5 | 0 | false | true | false | false | false | false | low |
72,143,322 | How to open file with custom extension on android 11 via action open document | <p>How i can open file with my extension settings. Framework see this file,but i can't open it. when i set mime_type <em>/</em> all ok,but it allow to open all file types,but i want to open only .settings file extansion. Thanks everybody for the help.</p>
<pre><code> Intent i=new Intent(Intent.ACTION_OPEN_DOCUMENT);
... | How i can open file with my extension settings. Framework see this file,but i can't open it. when i set mime_type / all ok,but it allow to open all file types,but i want to open only .settings file extansion. Thanks everybody for the help. [CODE] | java|android|kotlin|android-intent|mime-types | 0 | 2022-05-06T14:42:50.293Z | 2,022 | 5 | 14 | 4 | 124 | 0 | 246 | 77 | 5 | 1 | true | true | false | false | false | false | zero |
72,143,421 | Android application works with debugger but not in release mode | <p>I have been trying to implement a debouncer for my application, I am trying to reduce requests to the server using this debouncer, eventually, I managed to implement the debouncer but, it seems to work only when I am using the debugger to debug the app.</p>
<p>This is how I implemented the debugger</p>
<pre><code>pu... | I have been trying to implement a debouncer for my application, I am trying to reduce requests to the server using this debouncer, eventually, I managed to implement the debouncer but, it seems to work only when I am using the debugger to debug the app. This is how I implemented the debugger [CODE] This is my Debounced... | java|android | 0 | 2022-05-06T14:49:37.537Z | 2,022 | 5 | 14 | 4 | 33 | 1 | 896 | 63 | 2 | 4 | true | false | false | false | false | false | zero |
72,143,710 | Can I use react native to build a app with another frontend? | <p>Sorry if there is already a similar question with answer and if there is, put the link here so I can reach it.</p>
<p>I'm having a difficuty these days...
I was told to create a new integration with a terminal called TERMINAL SMART G800 from GERTEC.
Here in the company we are usually use Cordova but it is deprecated... | Sorry if there is already a similar question with answer and if there is, put the link here so I can reach it. I'm having a difficuty these days... I was told to create a new integration with a terminal called TERMINAL SMART G800 from GERTEC. Here in the company we are usually use Cordova but it is deprecated and aband... | android|react-native|frontend|apk | 0 | 2022-05-06T15:10:21.937Z | 2,022 | 5 | 15 | 4 | 20 | 0 | 995 | 60 | 4 | 0 | false | true | false | false | false | false | zero |
72,143,745 | Execution failed for task ':vision-camera-code-scanner:checkDebugAndroidTestAarMetadata' | <p>So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects.</p>
<p>I followed the official Detox tutorial and this one
<a href="https://varunon9.medium.com/e2e-testing-of-react-native-app-android-using-detox-a-step-by-step-guide-bfb520c1a9ac" rel="nofollow nore... | So I have been at this for a while now, I recently tried to add Detox tests to android in my react native projects. I followed the official Detox tutorial and this one https://varunon9.medium.com/e2e-testing-of-react-native-app-android-using-detox-a-step-by-step-guide-bfb520c1a9ac But when I'm trying to build the proje... | android|react-native|testing|build|detox | 1 | 2022-05-06T15:12:59.807Z | 2,022 | 5 | 15 | 4 | 826 | 1 | 1,271 | 88 | 5 | 0 | false | false | false | false | false | false | low |
72,143,826 | Only 70% users get firebase notification Received | <p><a href="https://i.stack.imgur.com/1ZmK3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ZmK3.png" alt="enter image description here" /></a></p>
<p>I am using Latest firebase "firebase-bom:29.0.3" SDK And I am sending notification by Topic and also tried by token array in previous code<... | I am using Latest firebase "firebase-bom:29.0.3" SDK And I am sending notification by Topic and also tried by token array in previous code Android Code [CODE] NotificationCompat.Builder notificationBuilder =new NotificationCompat.Builder(this, channelId) [CODE] NotificationManagerCompat notificationManager = ... | android|firebase|push-notification | 0 | 2022-05-06T15:18:07.393Z | 2,022 | 5 | 15 | 4 | 19 | 0 | 736 | 49 | 3 | 3 | true | true | false | false | false | false | zero |
72,143,839 | Convert a short DateTime string with date and time to DateTime | <p>Having trouble with my Android project here trying to convert a string of DateTime into an actual DateTime object.
here's the code I wrote:</p>
<pre><code>string strDateTime = reminder.Date + " " + ((ReminderByTime)reminder).ReminderTime;
userDateTime = DateTime.ParseExact(strDateTime, "MM/dd/yyyy HH/... | Having trouble with my Android project here trying to convert a string of DateTime into an actual DateTime object. here's the code I wrote: [CODE] While running the problem I've checked the values and they do coordinate: How can I fix this? | c#|string|datetime|xamarin.android | -1 | 2022-05-06T15:19:08.493Z | 2,022 | 5 | 15 | 4 | 62 | 1 | 240 | 62 | 4 | 1 | true | false | false | false | false | true | negative |
72,143,904 | How to play YouTube Video in mp3 with YouTube Url or video Id in android studio | <p>I want to play the youtube video in mp3 from the URL or the video Id. I'm finding the solutions from the last 5 days on the internet but there is not any answer that clearly tell how I can play the video like an audio player.</p> | I want to play the youtube video in mp3 from the URL or the video Id. I'm finding the solutions from the last 5 days on the internet but there is not any answer that clearly tell how I can play the video like an audio player. | android|video|youtube|playback | 0 | 2022-05-06T15:24:08.280Z | 2,022 | 5 | 15 | 4 | 124 | 0 | 225 | 79 | 4 | 0 | false | true | false | false | false | false | zero |
72,143,927 | Pass context with Hilt from ViewModel to data source | <p>I'm trying to use Hilt to pass context along to my data source class, below:</p>
<pre><code>public class PostDataSource extends PageKeyedDataSource<Integer, Post> {
// we will start from the first page which is 1
public static final int PAGE_SIZE = 25;
// we will start from the first page which i... | I'm trying to use Hilt to pass context along to my data source class, below: [CODE] PostDataSource has a data source factory: [CODE] And finally, here is the ViewModel class. This ViewModel is called from my fragment: [CODE] I don't understand how I would get context in PostDataSource using Hilt's dependency injection.... | android|dependency-injection|dagger|dagger-hilt | 0 | 2022-05-06T15:25:16.440Z | 2,022 | 5 | 15 | 4 | 171 | 1 | 401 | 52 | 4 | 4 | true | false | false | false | false | false | zero |
72,143,967 | Why `supportFragmentManager.backStackEntryCount` is empty after `add()` fragment to stack | <p>In Android app (Kotlin) I have <code>Activity</code> with <code>container</code> what have <code>fragment A</code> in it.
On user interaction, I am adding <code>fragment B</code> to <code>container</code> by:</p>
<pre class="lang-kotlin prettyprint-override"><code>supportFragmentManager.commit {
add(containe... | In Android app (Kotlin) I have Activity with container what have fragment A in it. On user interaction, I am adding fragment B to container by: [CODE] Why when I go back in stack by hitting hardware back button (calls onBackPressed() in activity) the supportFragmentManager.backStackEntryCount is zero? Do I need to also... | android|fragment-backstack | 0 | 2022-05-06T15:28:14.590Z | 2,022 | 5 | 15 | 4 | 25 | 0 | 582 | 89 | 2 | 1 | true | true | false | false | false | false | zero |
72,144,171 | After click view not display on screen if I set visibility to VISIBLE - Android | <p>I got a view and in xml it is visible</p>
<pre><code><LinearLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</code></pre>
<p>Then I do some manipulation with the d... | I got a view and in xml it is visible [CODE] Then I do some manipulation with the data and I make it to invisible [CODE] But I have reset button that suppose to set the container back to visible after click [CODE] But after click I still do not see that container appears. What might be the issue? | android | 0 | 2022-05-06T15:43:31.973Z | 2,022 | 5 | 15 | 4 | 17 | 2 | 297 | 79 | 1 | 3 | true | false | false | false | false | false | zero |
72,144,256 | Is there difference between `Class.newInstance()` and `Class()` in Kotlin? | <p>Is there a any functional difference in Kotlin between those?</p>
<pre class="lang-kotlin prettyprint-override"><code>class Foo {
companion object {
fun newInstance() = Foo()
}
}
// Create new instance somewhere else
val foo = Foo.newInstance()
</code></pre>
<p>and</p>
<pre class="lang-kotlin prettyprin... | Is there a any functional difference in Kotlin between those? [CODE] and [CODE] I think that the first approach is just adding more boilerplate code and taking more memory because of companion object. Am I right? Note: I am in Android environment and Foo is actually an Fragment in my case, if it matters. | android|kotlin | 0 | 2022-05-06T15:49:59.843Z | 2,022 | 5 | 15 | 4 | 59 | 2 | 305 | 74 | 2 | 2 | true | false | false | false | false | false | zero |
72,144,372 | Android APP crashes while Loading the ads | <p>I am trying to make a social media application. I am trying to insert ads in between the posts.
In the below code when running app crashes while executing the adaptor.
i have added the adaptor code. sorry for the big code. when i comment the ads and run, post is coming properly. problem is when i include the ad cod... | I am trying to make a social media application. I am trying to insert ads in between the posts. In the below code when running app crashes while executing the adaptor. i have added the adaptor code. sorry for the big code. when i comment the ads and run, post is coming properly. problem is when i include the ad code ap... | android|kotlin|android-fragments|android-recyclerview|ads | 0 | 2022-05-06T15:58:40.503Z | 2,022 | 5 | 15 | 4 | 64 | 0 | 391 | 41 | 5 | 1 | true | true | false | false | false | false | zero |
72,144,570 | TextView and data structures with practically unlimited capacity? | <p>I need a <code>TextView</code>-like widget that is able to show file contents of arbitrary size. <a href="https://developer.android.com/reference/kotlin/android/widget/TextView" rel="nofollow noreferrer">Android default <code>TextView</code></a> can hold and display 2^31 characters, which is just 2GiB. Same with oth... | I need a TextView -like widget that is able to show file contents of arbitrary size. Android default TextView can hold and display 2^31 characters, which is just 2GiB. Same with other data structures used for holding (linear) file contents such as ArrayList , ByteArray , CharSequence and similar with Int type length/si... | android|arrays|kotlin|textview|sequence | 0 | 2022-05-06T16:16:41.320Z | 2,022 | 5 | 16 | 4 | 24 | 1 | 1,360 | 65 | 5 | 0 | false | false | false | false | false | false | zero |
72,144,606 | How to determine and delete unused dependencies in Android Studio safely? | <p>IDE: Android Studio Bumblebee 2021.1.1</p>
<p>I see a lot of dependencies in my project (project structure -> dependencies -> all modules) which are not added via build.gradle (module).</p>
<p>How can I verify that these are not used somewhere indirectly and how to delete them safely?</p>
<p>In .idea\libraries... | IDE: Android Studio Bumblebee 2021.1.1 I see a lot of dependencies in my project (project structure -> dependencies -> all modules) which are not added via build.gradle (module). How can I verify that these are not used somewhere indirectly and how to delete them safely? In .idea\libraries I see the relevant xml file b... | android|android-studio|gradle|intellij-idea | 1 | 2022-05-06T16:20:45.710Z | 2,022 | 5 | 16 | 4 | 200 | 1 | 800 | 73 | 4 | 1 | true | false | false | false | false | false | low |
72,144,612 | Azure B2C broken when explicitly-declared value for android:exported is used | <p>My Xamarin.Forms application uses Azure AD B2C for authentication. Currently, I have to use Android 12 instead of Android 10. According to the documentation, it required a certain change:</p>
<blockquote>
<p>Warning: If an activity, service, or broadcast receiver uses intent
filters and doesn't have an explicitly-de... | My Xamarin.Forms application uses Azure AD B2C for authentication. Currently, I have to use Android 12 instead of Android 10. According to the documentation, it required a certain change: Warning: If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for androi... | xamarin.forms|xamarin.android|msal|azure-b2c | 0 | 2022-05-06T16:21:34.673Z | 2,022 | 5 | 16 | 4 | 76 | 1 | 835 | 76 | 4 | 1 | true | false | false | false | false | false | zero |
72,144,638 | Profile Pic not displaying on Card View in Andorid Studio Kotlin | <p>I am trying to get a users profile pic to be displayed beside their booking on a card in my recyclerview. The profile pic is displaying in my nav drawer, a default one for non-google users, or the profile pic of the Google user. However imageUri appears empty when I call it and the images are not being stored in my ... | I am trying to get a users profile pic to be displayed beside their booking on a card in my recyclerview. The profile pic is displaying in my nav drawer, a default one for non-google users, or the profile pic of the Google user. However imageUri appears empty when I call it and the images are not being stored in my fir... | android|kotlin|firebase-storage | 0 | 2022-05-06T16:23:28.130Z | 2,022 | 5 | 16 | 4 | 46 | 1 | 977 | 64 | 3 | 6 | true | false | false | false | false | false | zero |
72,144,700 | How can i implement a Web Server in Android Studio (Java) and react to requests? | <p>Is it possible to create a local web server in Java (Android Studio IDE) and send broadcasts containing e.g the parameter f (http://localhost:8888/?f=SOMEDATA) to another app??
Thanks</p> | Is it possible to create a local web server in Java (Android Studio IDE) and send broadcasts containing e.g the parameter f (http://localhost:8888/?f=SOMEDATA) to another app?? Thanks | java|android|webserver | 1 | 2022-05-06T16:29:16.747Z | 2,022 | 5 | 16 | 4 | 77 | 0 | 183 | 80 | 3 | 0 | false | true | false | false | false | false | low |
72,144,804 | blogger authentication issues in android | <p>I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue then how can i force to check this option and when user will give permission then open another activity . Any one who can help me to resolve this issue</p>
<pr... | I am working on blogger api and i am using this method to request blogger accesstoken, but problem is if user not select Manage your blog option and continue then how can i force to check this option and when user will give permission then open another activity . Any one who can help me to resolve this issue [CODE] } | java|android|blogger | 0 | 2022-05-06T16:38:48.643Z | 2,022 | 5 | 16 | 4 | 13 | 0 | 318 | 40 | 3 | 1 | true | true | false | false | false | false | zero |
72,144,816 | Check if "Remove permissions if app is unused" is disabled for a particular app | <p>How can I programmatically determine whether the "Remove permissions if app is unused" setting is enabled or disabled for a particular app?</p> | How can I programmatically determine whether the "Remove permissions if app is unused" setting is enabled or disabled for a particular app? | android | 1 | 2022-05-06T16:39:41.220Z | 2,022 | 5 | 16 | 4 | 198 | 2 | 149 | 79 | 1 | 0 | false | false | false | false | false | false | low |
72,144,829 | Which Java version is the fastest on and is supported by Android? | <p>I heard that Java is becoming faster on newer versions of Android that it's almost as fast as C++, and the performance depends on the type of code/operations. Is this true? If it is, which Java version is the fastest on Android and is supported for Android development?</p>
<p>I currently probably have Java 11; it sa... | I heard that Java is becoming faster on newer versions of Android that it's almost as fast as C++, and the performance depends on the type of code/operations. Is this true? If it is, which Java version is the fastest on Android and is supported for Android development? I currently probably have Java 11; it said so when... | java|android|performance|version|language-comparisons | -4 | 2022-05-06T16:40:49.210Z | 2,022 | 5 | 16 | 4 | 449 | 1 | 848 | 65 | 5 | 1 | true | false | false | false | false | true | negative |
72,144,918 | When delete key pressed: java.lang.IllegalArgumentException: end cannot negative. [end: -1] | <p>I was building an app using the Jetpack Compose library, I had an <code>OutlinedTextField</code> composable and I accidently pressed the delete key on the keyboard. the cursor was at the end of the textfield. suddenly the app crashed.</p>
<p><strong>Error</strong></p>
<pre><code>java.lang.IllegalArgumentException: e... | I was building an app using the Jetpack Compose library, I had an OutlinedTextField composable and I accidently pressed the delete key on the keyboard. the cursor was at the end of the textfield. suddenly the app crashed. Error [CODE] this is understandable because there were no character to delete, but I dont want the... | android|android-jetpack-compose | 2 | 2022-05-06T16:46:50.007Z | 2,022 | 5 | 16 | 4 | 250 | 0 | 379 | 91 | 2 | 2 | true | true | false | false | false | false | low |
72,145,050 | Cant create an alarm in Xamerin Android C# | <p>Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isnt working. Here is it:</p>
<pre><code>private void BtnAlarm_Click(object sender, EventArgs e)
{
Intent intentAlarm = new Intent(this, typeof(AlarmReceiver));
// #2 - Pending intent... | Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isnt working. Here is it: [CODE] The debugger wont run onto this activity: [CODE] Just to be clear, while running her app the alarm was working. | c#|android|xamarin.android|alarmmanager | 0 | 2022-05-06T16:59:13.617Z | 2,022 | 5 | 16 | 4 | 31 | 1 | 253 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
72,145,108 | Hilt Instrumentation Fragment tests failing - Unable to resolve activity for: Intent | <p>I refactored from Dagger2 to Hilt. Everything is fine except my Fragment Instrumentation tests. They are failing with this error:</p>
<pre><code>java.lang.RuntimeException: Unable to resolve activity for: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.example.movies/.HiltTes... | I refactored from Dagger2 to Hilt. Everything is fine except my Fragment Instrumentation tests. They are failing with this error: [CODE] Test Setup [CODE] I got the launchFragmentInHiltContainer code from the google architecture samples as the recommended way. I have a HiltTestActivity and manifest file in the debug fo... | android|android-espresso|android-testing|dagger-hilt | 0 | 2022-05-06T17:04:10.837Z | 2,022 | 5 | 17 | 4 | 151 | 1 | 473 | 84 | 4 | 2 | true | false | false | false | false | false | zero |
72,145,186 | How to save the selection of a spinner in a dialog box | <p>I have a dialog box with a spinner in it.</p>
<p>So far, I have managed to code the spinner so that it saves the last known selection whenever I open up the dialog box again containing said spinner.</p>
<p>Albeit, I'm trying to get shared preferences to save the index of the selection and then retrieve it in my acti... | I have a dialog box with a spinner in it. So far, I have managed to code the spinner so that it saves the last known selection whenever I open up the dialog box again containing said spinner. Albeit, I'm trying to get shared preferences to save the index of the selection and then retrieve it in my activity's onCreate, ... | android|sharedpreferences|android-alertdialog|android-spinner|android-dialog | 0 | 2022-05-06T17:11:48.910Z | 2,022 | 5 | 17 | 4 | 46 | 0 | 865 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
72,145,266 | Sorting and getting position or row nth number of sqlite database for Android studio | <p>I have this table of students</p>
<pre><code> public void onCreate(SQLiteDatabase db) {
String createTableStatement= "CREATE TABLE " + STUDENT_TABLES + " (" + ID_COL + " INTEGER PRIMARY KEY AUTOINCREMENT, "
+ STUDENT_NAME_COL + " STRING, " + ENGLISH_CLASS_COL... | I have this table of students [CODE] Please how do i get the position of student according to their mark.? example if Mary had 10 marks and Joe had 9 marks the last column of Mary would be 1 or 1st | android|sql|database | 0 | 2022-05-06T17:19:04.887Z | 2,022 | 5 | 17 | 4 | 96 | 2 | 197 | 84 | 3 | 1 | true | false | false | false | false | false | zero |
72,145,363 | Pass Date from Datepicker to Spinner selected item and load API Response in Fragment | <p>I have a working app where user select an option from Spinner the datepicker auto open user select the date and view data. However, I am trying to include an Imagebutton(calendar) which opens a date picker and than on selection of date data should load. <strong>The process should be : select Option from spinner ->... | I have a working app where user select an option from Spinner the datepicker auto open user select the date and view data. However, I am trying to include an Imagebutton(calendar) which opens a date picker and than on selection of date data should load. The process should be : select Option from spinner -> select date ... | android-studio|android-fragments|android-spinner|android-datepicker|android-imagebutton | 0 | 2022-05-06T17:29:14.023Z | 2,022 | 5 | 17 | 4 | 99 | 1 | 788 | 84 | 5 | 2 | true | false | false | false | false | false | zero |
72,145,409 | Firebase React Native Expo login error with google | <p>Error message : <code>(0, _auth.signInWithRedirect) is not a function. (In '(0, _auth.signInWithRedirect)(_firebaseConfig.authentication, _firebaseConfig.provider)', '(0, _auth.signInWithRedirect)' is undefined)</code></p>
<hr />
<p>Even though I did everything right, it gives this error. It works on the web but I g... | Error message : (0, _auth.signInWithRedirect) is not a function. (In '(0, _auth.signInWithRedirect)(_firebaseConfig.authentication, _firebaseConfig.provider)', '(0, _auth.signInWithRedirect)' is undefined) Even though I did everything right, it gives this error. It works on the web but I get this error on my android ph... | android|firebase|react-native|expo | 0 | 2022-05-06T17:33:45.490Z | 2,022 | 5 | 17 | 4 | 420 | 1 | 351 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
72,145,456 | How can I kill an app that I have started earlier in Android? | <p>My app executes other apps depending on different events. For example, if the Bluetooth gets connected to "my loudspeaker" then my app launches Spotify. This works correctly.</p>
<p>Is there a way to kill the started app by code? for example when the Bluetooth gets disconnected from "my loudspeaker&qu... | My app executes other apps depending on different events. For example, if the Bluetooth gets connected to "my loudspeaker" then my app launches Spotify. This works correctly. Is there a way to kill the started app by code? for example when the Bluetooth gets disconnected from "my loudspeaker". I hav... | android | 0 | 2022-05-06T17:39:02.643Z | 2,022 | 5 | 17 | 4 | 11 | 0 | 913 | 61 | 1 | 4 | true | true | false | false | false | false | zero |
72,145,475 | How to know if a support library already supports AndroidX? | <p>I have project in unity, that uses Mapbox,<br />
Mapbox includes the following support library: support-v4-25.1.0.aar<br />
This library comes as an .aar file and NOT as a gradle <code>implementation</code> command<br />
When trying to build the project i get this error:</p>
<blockquote>
<p>Could not determine the d... | I have project in unity, that uses Mapbox, Mapbox includes the following support library: support-v4-25.1.0.aar This library comes as an .aar file and NOT as a gradle implementation command When trying to build the project i get this error: Could not determine the dependencies of task ':launcher:lintVitalRelease'. Coul... | android|unity3d|android-support-library|androidx | 0 | 2022-05-06T17:40:53.980Z | 2,022 | 5 | 17 | 4 | 145 | 1 | 2,515 | 59 | 4 | 1 | 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.