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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,827,555 | How to make a view that takes views from xml file | <p>I created a custom KeyboardView, I want the keyboard to take inputs from a xml file in the xml folder of android studio just like <a href="https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/inputmethodservice/Keyboard.java" rel="nofollow noreferrer">the default keyboard view in andr... | I created a custom KeyboardView, I want the keyboard to take inputs from a xml file in the xml folder of android studio just like the default keyboard view in android that is populated from a xml file (Row and Key) . I can create a layout file for the keyboard and it works fine but I think it will be easier to just edi... | android|xml | 0 | 2022-07-01T09:59:00.880Z | 2,022 | 7 | 9 | 4 | 49 | 1 | 605 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
72,827,613 | sendBroadcast() - Permission Denial: not allowed to send broadcast android.intent.action.USER_PRESENT | <p>Im trying to manually send a broadcast in Android Studio</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_USER_PRESENT);
sendBroadcast(intent);
</code></pre>
<p>does not work.</p>
<p>Error code:</p>
<pre><code>Permission Denial: not allowed to send broadcast android.intent.action.USER_PRESENT
</code></pre>
<p... | Im trying to manually send a broadcast in Android Studio [CODE] does not work. Error code: [CODE] Is there any way to send a Broadcast or execute the receiver manually? thx :) | android|android-studio|android-broadcast | 0 | 2022-07-01T10:03:17.267Z | 2,022 | 7 | 10 | 4 | 109 | 0 | 175 | 101 | 3 | 2 | true | true | false | false | false | false | zero |
72,827,646 | Register when Android app is being disturbed by something external (from the OS/System) | <p>I have a camera activity that can record video. I think that some of the code for setting up the video recording possibility also runs some code (under the hood) for preventing the recording to be disturbed if a phone call or an alarm goes off. (However I need to stop the recording when an alarm goes off.)</p>
<p>I ... | I have a camera activity that can record video. I think that some of the code for setting up the video recording possibility also runs some code (under the hood) for preventing the recording to be disturbed if a phone call or an alarm goes off. (However I need to stop the recording when an alarm goes off.) I would like... | android|broadcastreceiver|interrupt|alarm|video-recording | 0 | 2022-07-01T10:06:15.950Z | 2,022 | 7 | 10 | 4 | 26 | 0 | 545 | 87 | 5 | 0 | false | true | false | false | false | false | zero |
72,827,730 | I am not getting data from firebase realtime database | <p><img src="https://i.stack.imgur.com/EF589.png" alt="enter image description here" /></p>
<p>This is my recylerviews onBindViewholder method and its code if i directly copy the image link to the Picasso.get.load(text) then it works fine but i am not getting data profile picture from firebase realtime database though ... | This is my recylerviews onBindViewholder method and its code if i directly copy the image link to the Picasso.get.load(text) then it works fine but i am not getting data profile picture from firebase realtime database though i am able to get the data from any other class in this project. [CODE] | java|android|firebase-realtime-database | 0 | 2022-07-01T10:13:23.400Z | 2,022 | 7 | 10 | 4 | 39 | 0 | 295 | 53 | 3 | 1 | true | true | false | false | false | false | zero |
72,827,829 | Open Android "real" browser when link clicked in embedded/system browser with JavaScript | <p>I'm driving traffic to a landing page with PPC on Twitter. Naturally, when they click on the ad in the Twitter app, it opens "embedded" in Twitter, which is usually WebView, but sometimes some vendor specific browser such as MIUI.</p>
<p>The issue I have is that 1/3rd+ of my traffic is running on Android 1... | I'm driving traffic to a landing page with PPC on Twitter. Naturally, when they click on the ad in the Twitter app, it opens "embedded" in Twitter, which is usually WebView, but sometimes some vendor specific browser such as MIUI. The issue I have is that 1/3rd+ of my traffic is running on Android 10 or earli... | javascript|android|android-webview|android-10.0 | 0 | 2022-07-01T10:22:04.197Z | 2,022 | 7 | 10 | 4 | 56 | 0 | 1,182 | 88 | 4 | 0 | false | true | false | false | false | false | zero |
72,827,865 | How to run API call inside background runnable and receive response to multiples fragment in java? | <p>i want to call api request every x second using Runnable and read live response to multiple fragment on every api call.</p>
<p>i try bellow code but if start runnable from FragmentA then can't get response on FragmentB even if runnable already run api call in background.
when i run <code>RunnableDemo(mContext, this,... | i want to call api request every x second using Runnable and read live response to multiple fragment on every api call. i try bellow code but if start runnable from FragmentA then can't get response on FragmentB even if runnable already run api call in background. when i run RunnableDemo(mContext, this, JsonRpc.Method.... | java|android|android-fragments | 0 | 2022-07-01T10:25:19.373Z | 2,022 | 7 | 10 | 4 | 30 | 0 | 732 | 98 | 3 | 3 | true | true | false | false | false | false | zero |
72,827,909 | Android Studio Chipmunk not showing android device for flutter app installation | <p>I have updated to android studio chipmunk, I created a sample flutter project where my android device is not showing in the flutter tab to install the flutter app. I am able to run a sample android project. I tried re-installing chipmunk and SDK as fresh but it doesn't help me.
<a href="https://i.stack.imgur.com/OdE... | I have updated to android studio chipmunk, I created a sample flutter project where my android device is not showing in the flutter tab to install the flutter app. I am able to run a sample android project. I tried re-installing chipmunk and SDK as fresh but it doesn't help me. | android|flutter|android-studio|chipmunk | 0 | 2022-07-01T10:29:23.177Z | 2,022 | 7 | 10 | 4 | 259 | 1 | 278 | 79 | 4 | 0 | false | false | false | false | false | false | zero |
72,827,988 | How to resolve view pushing problem of Android keyboard when clicking on EditText? | <p>In my Android app, when a user clicks on EditText the keyboard appears and just pushes all the screen views upwards dislocating my UI components.</p>
<p>How can I solve this issue, I want the keyboard to overlay over my UI components and then the user can type what he/she wants.</p> | In my Android app, when a user clicks on EditText the keyboard appears and just pushes all the screen views upwards dislocating my UI components. How can I solve this issue, I want the keyboard to overlay over my UI components and then the user can type what he/she wants. | android|xml|kotlin|user-interface|android-edittext | 0 | 2022-07-01T10:36:45.433Z | 2,022 | 7 | 10 | 4 | 21 | 1 | 272 | 82 | 5 | 0 | false | false | false | false | false | false | zero |
72,828,009 | Is it possible to make Gradle build fail if apk artifacts are not generated for some reason? | <p>Actually I'm using Gradle with Bamboo for Continuous Deployment and I've noticed that, with an edit I've done, when Bamboo builds my application, it doesn't build the .apk artifacts on Bamboo. Nevertheless, the build is done successfully.</p>
<p>My questions is that I would make the Gradle build fail if artifacts ar... | Actually I'm using Gradle with Bamboo for Continuous Deployment and I've noticed that, with an edit I've done, when Bamboo builds my application, it doesn't build the .apk artifacts on Bamboo. Nevertheless, the build is done successfully. My questions is that I would make the Gradle build fail if artifacts are not gene... | android|gradle|apk|bamboo|artifact | 0 | 2022-07-01T10:38:13.350Z | 2,022 | 7 | 10 | 4 | 37 | 1 | 488 | 92 | 5 | 0 | false | false | false | false | false | false | zero |
72,828,195 | How to draw Composable Preview to HTML file | <p>This is a general question, I'm looking for ideas. The goal is to write a documentation system.<br />
So, I want to draw my Composable function on the HTML page.<br />
What comes to my mind:</p>
<ol>
<li><code>@Preview</code> already draws it somehow but I'm not sure that it's easy to adapt it to HTML. At the first ... | This is a general question, I'm looking for ideas. The goal is to write a documentation system. So, I want to draw my Composable function on the HTML page. What comes to my mind: @Preview already draws it somehow but I'm not sure that it's easy to adapt it to HTML. At the first glance, I haven't found such possibility.... | android|html|android-jetpack-compose | 1 | 2022-07-01T10:55:18.760Z | 2,022 | 7 | 10 | 4 | 29 | 1 | 566 | 43 | 3 | 0 | false | false | false | false | false | false | low |
72,828,197 | In flutter I'm facing error in android studio terminal in every command i was typing | <p><em><strong>'flutter' is not recognized as an internal or external command,
operable program or batch file.</strong></em></p>
<p>I'm getting flutter error or anything error when in run any command in terminal in Android studio. I lookup all settings but didn't get any solution, I also changed terminal sdk but still ... | 'flutter' is not recognized as an internal or external command, operable program or batch file. I'm getting flutter error or anything error when in run any command in terminal in Android studio. I lookup all settings but didn't get any solution, I also changed terminal sdk but still getting same error. Terminal Error S... | android|flutter|android-studio|dart|terminal | 0 | 2022-07-01T10:55:52.617Z | 2,022 | 7 | 10 | 4 | 31 | 0 | 325 | 84 | 5 | 0 | false | true | false | false | false | false | zero |
72,828,284 | Firestore_core initialization error, nothing wokrs | <p>I am having this issue, where this error appears:</p>
<pre><code>Performing hot restart...
Syncing files to device sdk gphone64 x86 64...
Restarted application in 1,035ms.
E/flutter ( 6967): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method Fi... | I am having this issue, where this error appears: [CODE] I am initializing firebase the standard way: [CODE] This error occured suddenly when I changed picture for icon and splashscreen in pubspec.yaml file. Since then I reupploaded the same picture without success. Might be something with the new release of flutter_co... | android|flutter|firebase|dart|google-cloud-firestore | 2 | 2022-07-01T11:03:37.077Z | 2,022 | 7 | 11 | 4 | 157 | 1 | 727 | 50 | 5 | 4 | true | false | false | false | false | false | low |
72,828,309 | Custom shape size in Jetpack Compose | <p>Is there a way to add your own shape size in Jetpack Compose using Kotlin extensions?</p>
<p>Default Shapes class implementation in Jetpack Compose:</p>
<pre><code>val Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(4.dp),
large = RoundedCornerShape(0.dp)
)
</code></pre>
<p>Th... | Is there a way to add your own shape size in Jetpack Compose using Kotlin extensions? Default Shapes class implementation in Jetpack Compose: [CODE] This is how I tried to add a new shape size: [CODE] But I am getting the Receiver parameter is never used warning and cannot use the new size in my Composables. Thanks for... | android|material-ui|android-jetpack-compose | 2 | 2022-07-01T11:05:55.840Z | 2,022 | 7 | 11 | 4 | 138 | 2 | 332 | 36 | 3 | 2 | true | false | false | false | false | false | low |
72,828,367 | Is there a way to call Google Assistant using custom app name? | <p>My application name is quite general, so Assistant often opens a Web page instead of activating an Action.</p>
<p>Normally, Google Assistant uses the application name as a part of the calling phrase to verify which app to start. But according to my problem, it is better to provide an opportunity to declare the user'... | My application name is quite general, so Assistant often opens a Web page instead of activating an Action. Normally, Google Assistant uses the application name as a part of the calling phrase to verify which app to start. But according to my problem, it is better to provide an opportunity to declare the user's own cust... | android|google-assistant|app-actions | 0 | 2022-07-01T11:10:56.377Z | 2,022 | 7 | 11 | 4 | 47 | 1 | 553 | 62 | 3 | 0 | false | false | false | false | false | false | zero |
72,828,385 | How to integrate android service_entitlement library into the android app? | <p>I have a back end application which is supposed to work as Entitlement server in TS.43 flow. I want to test this application by triggering TS.43 flow on my android device.
I have tried to do it with the help of the following documentation:
<a href="https://source.android.com/devices/tech/connect/ims-service-entitlem... | I have a back end application which is supposed to work as Entitlement server in TS.43 flow. I want to test this application by triggering TS.43 flow on my android device. I have tried to do it with the help of the following documentation: https://source.android.com/devices/tech/connect/ims-service-entitlement#entitlem... | java|android|telecommunication | 0 | 2022-07-01T11:12:28.627Z | 2,022 | 7 | 11 | 4 | 46 | 0 | 1,086 | 74 | 3 | 0 | false | true | false | false | false | false | zero |
72,828,456 | Android java button value check | <p>I'm trying to learn basic stuff in android studio with java. I need to create 1 activity where we need a Button and a text to input. When the button is clicked to check is the input value is between 3 words "Primary, Secondary , Higher). Here is the mainactivity code</p>
<pre><code>public class MainActivity ext... | I'm trying to learn basic stuff in android studio with java. I need to create 1 activity where we need a Button and a text to input. When the button is clicked to check is the input value is between 3 words "Primary, Secondary , Higher). Here is the mainactivity code [CODE] } | java|android|android-button | 1 | 2022-07-01T11:17:41.373Z | 2,022 | 7 | 11 | 4 | 40 | 1 | 281 | 31 | 3 | 1 | true | false | false | false | false | false | low |
72,828,480 | Can't run Flutter project in Android Studio | <p>I've just created a new Flutter project, and when I tried to run it on my Android Device errors appeared. I've tried deleting <code>gradle-7.4-all</code> folder, but it doesn't help. What do I do?</p>
<p>Here is the full error:</p>
<pre><code>Exception in thread "main" java.net.ConnectException: Connection... | I've just created a new Flutter project, and when I tried to run it on my Android Device errors appeared. I've tried deleting gradle-7.4-all folder, but it doesn't help. What do I do? Here is the full error: [CODE] | flutter|android-studio | 0 | 2022-07-01T11:19:14.967Z | 2,022 | 7 | 11 | 4 | 42 | 0 | 214 | 43 | 2 | 1 | true | true | false | false | false | false | zero |
72,828,567 | Is there any way to use SSIM on two images in java? | <p>Is there any way to use SSIM on two images in java? I've been trying for a week now. I'm trying to find difference between two images and need an output showing the difference highlighted. I used absdiff before but its not as efficient when there is light interference.
Please suggest me a practical way to solve to t... | Is there any way to use SSIM on two images in java? I've been trying for a week now. I'm trying to find difference between two images and need an output showing the difference highlighted. I used absdiff before but its not as efficient when there is light interference. Please suggest me a practical way to solve to this... | java|android|feature-extraction|ssim | 0 | 2022-07-01T11:27:09.190Z | 2,022 | 7 | 11 | 4 | 21 | 0 | 329 | 51 | 4 | 0 | false | true | false | false | false | false | zero |
72,828,635 | Navigation drawer below TopAppBar in Jetpack Compose | <ul>
<li>I am using <code>Jetpack Compose</code> for developing one app which contains multiple screens and we can navigate to them using <code>Navigation Drawer</code>.</li>
<li>How can I put my navigation drawer below <strong><code>TopAppBar</code></strong> (<code> or Toolbar</code>). Below is the gif for the issue:<... | I am using Jetpack Compose for developing one app which contains multiple screens and we can navigate to them using Navigation Drawer . How can I put my navigation drawer below TopAppBar ( or Toolbar ). Below is the gif for the issue: Below is the composable function for my screen: [CODE] | android|kotlin|android-jetpack-compose | 1 | 2022-07-01T11:33:28.797Z | 2,022 | 7 | 11 | 4 | 131 | 1 | 289 | 52 | 3 | 1 | true | false | false | false | false | false | low |
72,828,665 | android studio navigtion not woring when movieng with fragments in java | <p>so i wanted to creat a footer navigtion on the main activity and a fragment view above it
but now when i try to use the normal navigtion with the navigtion grafh it just crashes.
mainActivity java code:</p>
<pre><code>package com.example.mywatchlist;
import androidx.appcompat.app.AppCompatActivity;
import androidx.... | so i wanted to creat a footer navigtion on the main activity and a fragment view above it but now when i try to use the normal navigtion with the navigtion grafh it just crashes. mainActivity java code: [CODE] main activity.xml: [CODE] and now it crashes when i try to move in this fragment: fragment to move from java c... | android-studio | 0 | 2022-07-01T11:36:27.683Z | 2,022 | 7 | 11 | 4 | 21 | 2 | 443 | 71 | 1 | 6 | true | false | false | false | false | false | zero |
72,828,730 | How to implement setText to integer dataType in Kotlin? | <p><a href="https://i.stack.imgur.com/0kCyl.png" rel="nofollow noreferrer">I want to set data from my editText which has integer typedata. if it is string, we can make setTake, but how we can implement it at integer?</a></p>
<p>The warning is</p>
<p>None of the following functions can be called with the arguments suppl... | I want to set data from my editText which has integer typedata. if it is string, we can make setTake, but how we can implement it at integer? The warning is None of the following functions can be called with the arguments supplied. setText(CharSequence!) defined in com.google.android.material.textfield.TextInputEditTex... | android-studio|kotlin|integer|settext | -1 | 2022-07-01T11:41:21.427Z | 2,022 | 7 | 11 | 4 | 34 | 1 | 401 | 55 | 4 | 0 | false | false | false | false | false | true | negative |
72,828,731 | How can I keep the state of editor-fold in Android Studio Chipmunk | 2021.2.1? | <p>I use the latest Android Studio Chipmunk | 2021.2.1.</p>
<p>I can use the following code to collapse or expand a a section code.</p>
<p>It seems that Android Studio can't keep the state of <code>editor-fold</code>, for example, I have collapsed the section code, but sometimes it is expanded automatically in Android ... | I use the latest Android Studio Chipmunk | 2021.2.1. I can use the following code to collapse or expand a a section code. It seems that Android Studio can't keep the state of editor-fold , for example, I have collapsed the section code, but sometimes it is expanded automatically in Android Studio. How can I keep the st... | android-studio | 1 | 2022-07-01T11:41:27.513Z | 2,022 | 7 | 11 | 4 | 108 | 0 | 811 | 78 | 1 | 3 | true | true | false | false | false | false | low |
72,828,741 | TransitionDrawable flickers | <p>I have a picture of a lightbulb</p>
<pre><code><transition xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/light_bulb_off" />
<item android:drawable="@drawable/light_bulb_on" />
</transition>
</code></pre>
<p>... | I have a picture of a lightbulb [CODE] I also have the folowing method to turn on/off this lightbulb depending on condition [CODE] Now, if I call this method from a button, in normal intervals like 2seconds, everything is fine, the light turns on and there is a nice transition effect but I also have a background thread... | android | 0 | 2022-07-01T11:42:01.403Z | 2,022 | 7 | 11 | 4 | 14 | 1 | 1,398 | 27 | 1 | 3 | true | false | false | false | false | false | zero |
72,828,753 | Empty state of NavHostFragment of Android Navigation Component | <p><strong>Background</strong></p>
<p>In app I have couple of NavHostFragments that are displayed in different parts of screen:</p>
<ul>
<li>defaultNavHost is used for switching between tabs</li>
<li>inside one of fragments of defaultNavHost, I have another navHost for BottomSheets</li>
<li>There is a need for another ... | Background In app I have couple of NavHostFragments that are displayed in different parts of screen: defaultNavHost is used for switching between tabs inside one of fragments of defaultNavHost, I have another navHost for BottomSheets There is a need for another navHost that could display fragments on top of everything ... | android|android-jetpack-navigation | 0 | 2022-07-01T11:43:28.877Z | 2,022 | 7 | 11 | 4 | 39 | 0 | 1,109 | 62 | 2 | 2 | true | true | false | false | false | false | zero |
72,828,799 | DeadSystemException in HMSPackageManager | <p>I faced DeadSystemException in app on Huawei devices when HMSPackageManager tries to get info about services from Android PackageManager.</p>
<p>Stacktrace:</p>
<pre><code>Fatal Exception: java.lang.RuntimeException: android.os.DeadSystemException
at android.app.ApplicationPackageManager.queryIntentServicesAsUser... | I faced DeadSystemException in app on Huawei devices when HMSPackageManager tries to get info about services from Android PackageManager. Stacktrace: [CODE] Crash occurs on Android 8/9/10/11, so likely it's not android problem. Crash happens only on Huawei devices. Our app not call HMSPackageManager from any place, so ... | android|huawei-mobile-services | 1 | 2022-07-01T11:47:19.823Z | 2,022 | 7 | 11 | 4 | 76 | 1 | 402 | 40 | 2 | 1 | true | false | false | false | false | false | low |
72,828,873 | the probleem in flutter it is occcoureed when i try to make run | <p>when io try to mak run on phone in flutter it always show me this
FAILURE: Build failed with an exception.</p>
<ul>
<li><p>Where:
Build file 'C:\Users\3mrxc\OneDrive\��� ������\flutter_application_1\android\app\build.gradle' line: 23</p>
</li>
<li><p>What went wrong:
A problem occurred evaluating project ':app'.</p>... | when io try to mak run on phone in flutter it always show me this FAILURE: Build failed with an exception. Where: Build file 'C:\Users\3mrxc\OneDrive\��� ������\flutter_application_1\android\app\build.gradle' line: 23 What went wrong: A problem occurred evaluating project ':app'. Failed to apply plugin 'com.android.int... | android | 0 | 2022-07-01T11:53:11.240Z | 2,022 | 7 | 11 | 4 | 11 | 0 | 1,096 | 63 | 1 | 0 | false | true | false | false | false | false | zero |
72,828,994 | samsung device not connect to other device using web socket | <p>Now i'm try to connect with other device using samsung S6 Lite. Here i have a problem while connecting to the other device it's trying to connect and after few second it's <code>OnClose</code> method will call in my web socket listener.</p>
<p>I have tried on same thing in Samsung S7, Samsung S5 and emulator it's wo... | Now i'm try to connect with other device using samsung S6 Lite. Here i have a problem while connecting to the other device it's trying to connect and after few second it's OnClose method will call in my web socket listener. I have tried on same thing in Samsung S7, Samsung S5 and emulator it's working fine. Only i got ... | android|node.js|connection|java-websocket | 0 | 2022-07-01T12:02:48.953Z | 2,022 | 7 | 12 | 4 | 23 | 0 | 464 | 59 | 4 | 2 | true | true | false | false | false | false | zero |
72,829,080 | GPS Operation Solution for Samsung SM-113NU Tablet | <p>We had problems whit GPS location and the solution was to change <strong>/system/etc/gps.conf</strong> or <strong>/etc/gps.conf</strong></p>
<p>Original file:</p>
<pre><code>NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://gllto1.glpals.com/7day/v3/latest/lto2.dat
XTRA_SERVER_2=http://gllto2.glpals.com/7da... | We had problems whit GPS location and the solution was to change /system/etc/gps.conf or /etc/gps.conf Original file: [CODE] Solution #1) Modified file: [CODE] Solution #2) Modified file: [CODE] Requirements: Download the related firmware for your tablet from https://www.sammobile.com/firmwares/ Extract the files and t... | server|operating-system|gps|android-gps | 0 | 2022-07-01T12:11:28.997Z | 2,022 | 7 | 12 | 4 | 92 | 0 | 896 | 50 | 4 | 4 | true | true | false | false | false | false | zero |
72,829,108 | Flutter: I am not able able fetch data from Firebase | <p>There are four quotes in the firestore but in the output i am not been able to fetch those. Following is the quotesPage and below that quotesController.</p>
<pre><code>fetchQuotes(String catId) {
print(catId);
try {
quotesList.bindStream(firebaseFirestore
.collection('quotes')
.where(
... | There are four quotes in the firestore but in the output i am not been able to fetch those. Following is the quotesPage and below that quotesController. [CODE] | android|flutter|firebase|google-cloud-firestore | 0 | 2022-07-01T12:14:43.953Z | 2,022 | 7 | 12 | 4 | 26 | 1 | 159 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
72,829,138 | How to pass API data value into the sfslider in Flutter? | <p>How to pass the API data value into the sfslider if I pass the static value to the slider it can be draggable. But if I give the API data value directly it can drag but not update the new value and return to the API response value position.</p>
<p>I saw some of the solutions they said declare a static value outside ... | How to pass the API data value into the sfslider if I pass the static value to the slider it can be draggable. But if I give the API data value directly it can drag but not update the new value and return to the API response value position. I saw some of the solutions they said declare a static value outside of a widge... | android|flutter|api|dart | 0 | 2022-07-01T12:16:50.277Z | 2,022 | 7 | 12 | 4 | 34 | 0 | 410 | 56 | 4 | 1 | true | true | false | false | false | false | zero |
72,829,140 | How to prepopulate realm file in Kotlin SDK? | <p>In Java SDK, I was creating Realm.Configuration object with the realm file that located in asset folder. I couldn't find any equivalent property in Realm Kotlin SDK</p>
<p>in java SDK:</p>
<pre><code>val populatedRealmConfiguration = RealmConfiguration.Builder()
.schemaVersion(REALM_VERSION)
.compactOnLaunch... | In Java SDK, I was creating Realm.Configuration object with the realm file that located in asset folder. I couldn't find any equivalent property in Realm Kotlin SDK in java SDK: [CODE] I have followed the migration guide: https://www.mongodb.com/docs/realm/sdk/kotlin/migrate-from-java-sdk-to-kotlin-sdk/ How to use &quo... | android|kotlin|realm | 2 | 2022-07-01T12:16:55.560Z | 2,022 | 7 | 12 | 4 | 82 | 2 | 363 | 44 | 3 | 1 | true | false | false | false | false | false | low |
72,829,166 | Bottom navigation bar doesn't show after unlock device | <p>When I open my app for the first time, the bottom navigation bar appears with other content in container. When I lock the device and then unlock, only the content is shown, the bottom navigation bar is not shown.
This bug is not reproduced on the emulator. I noticed this on my device (samsung).
Does anyone have any ... | When I open my app for the first time, the bottom navigation bar appears with other content in container. When I lock the device and then unlock, only the content is shown, the bottom navigation bar is not shown. This bug is not reproduced on the emulator. I noticed this on my device (samsung). Does anyone have any sug... | android|bottomnavigationview|android-bottomnav | 0 | 2022-07-01T12:19:27.830Z | 2,022 | 7 | 12 | 4 | 17 | 0 | 354 | 54 | 3 | 0 | false | true | false | false | false | false | zero |
72,829,176 | Is there a way to come back on last page in Navigation stack, and not execute OnApearing method in Xamarin? | <p>So, I have <code>Page1</code>, with some input fields that my user already filled, and, there is a button that opens a new Page (let's call it <code>Page2</code>).</p>
<p>This is the code I used to go on <code>Page2</code>.</p>
<pre><code>Application.Current.MainPage.Navigation.PushModalAsync(new NavigationPage(new ... | So, I have Page1 , with some input fields that my user already filled, and, there is a button that opens a new Page (let's call it Page2 ). This is the code I used to go on Page2 . [CODE] This is the code I used to came back on Page1 . [CODE] Now, I'd like to, somehow, when user finishes what he had on Page2 , he press... | xamarin|xamarin.forms|xamarin.android | 1 | 2022-07-01T12:20:17.620Z | 2,022 | 7 | 12 | 4 | 65 | 1 | 530 | 107 | 3 | 2 | true | false | false | false | false | false | low |
72,829,183 | How to close the app on Back Pressed in Log In fragment? | <p>I am using Navigation Components and Firebase authentication and I have two fragment <strong>[A]</strong> and <strong>[B]</strong>. where <strong>A-> Log In</strong> Fragment, <strong>B-> User List</strong>. When I successfully Logged-In from [A], I navigate to the fragment [B]. There is a Sign-Out button in [... | I am using Navigation Components and Firebase authentication and I have two fragment [A] and [B] . where A-> Log In Fragment, B-> User List . When I successfully Logged-In from [A], I navigate to the fragment [B]. There is a Sign-Out button in [B] Fragment. when Sign Out button is pressed I signout from firebase and na... | java|android|android-fragments|android-architecture-navigation | 1 | 2022-07-01T12:20:46.410Z | 2,022 | 7 | 12 | 4 | 51 | 2 | 506 | 56 | 4 | 0 | false | false | false | false | false | false | low |
72,829,251 | Appium [ Javascript ] [WD] - Scroll to an element which is not visible but enabled or clickable | <p>I am using appium javascript client with uiautomator2 as the automation engine for android.
In one of screen having multiple buttons like Button 1, Button 2, Button 3 ...etc stacked horizantal with scroll. However, only first two buttons will be visible on page load [ Refer Screen shot].</p>
<p>I want to click on bu... | I am using appium javascript client with uiautomator2 as the automation engine for android. In one of screen having multiple buttons like Button 1, Button 2, Button 3 ...etc stacked horizantal with scroll. However, only first two buttons will be visible on page load [ Refer Screen shot]. I want to click on button 4. Ha... | javascript|appium-android | 0 | 2022-07-01T12:25:47.710Z | 2,022 | 7 | 12 | 4 | 38 | 0 | 594 | 95 | 2 | 1 | true | true | false | false | false | false | zero |
72,829,276 | In Xamarin can we have own name and location for google-services.json ? Can we change the content of file dynamically after application installed? | <p>I wanted to have my own name for google.services.json file and also some custom location inside my application.</p>
<p>And when we launch the application, I want to load the content of file from api. Is it possible to override the content of the file or not?</p> | I wanted to have my own name for google.services.json file and also some custom location inside my application. And when we launch the application, I want to load the content of file from api. Is it possible to override the content of the file or not? | xamarin|xamarin.forms|push-notification|xamarin.android|firebase-cloud-messaging | 0 | 2022-07-01T12:27:44.633Z | 2,022 | 7 | 12 | 4 | 38 | 0 | 251 | 146 | 5 | 0 | false | true | false | false | false | false | zero |
72,829,281 | Set wallpaper using Intent "set as wallpaper" | <p>I want to set image as wallpaper using Intent "set a from my android device.
My question is: how do I programmatically invoke the built-in "Set Wallpaper" feature using a Glide images recyclerview?</p>
<pre><code>button4.setOnClickListener(new View.OnClickListener() {
@Override
public... | I want to set image as wallpaper using Intent "set a from my android device. My question is: how do I programmatically invoke the built-in "Set Wallpaper" feature using a Glide images recyclerview? [CODE] } catch (Exception e) { [CODE] | android-intent|android-glide|wallpaper|android-wallpaper | 0 | 2022-07-01T12:28:29.447Z | 2,022 | 7 | 12 | 4 | 19 | 0 | 250 | 45 | 4 | 2 | true | true | false | false | false | false | zero |
72,829,391 | How to create a selector for a Button programmatically | <p>How to create a selector programmatically (Kotlin) for an ImageButton with the following requirements.</p>
<ul>
<li>Only the background scales by 25% while the image remains the same size while the button is at the <code>Pressed</code> state.</li>
<li>The background colour of the button at the <code>Pressed</code> s... | How to create a selector programmatically (Kotlin) for an ImageButton with the following requirements. Only the background scales by 25% while the image remains the same size while the button is at the Pressed state. The background colour of the button at the Pressed state is different from that of the normal (default)... | android|button|selector|android-button|programmatically | 1 | 2022-07-01T12:38:37.770Z | 2,022 | 7 | 12 | 4 | 54 | 2 | 470 | 54 | 5 | 0 | false | false | false | false | false | false | low |
72,829,401 | Will my Admob account be banned if I export a flutter app to apk and use it on my phone | <p>I initially built the application to aab and uploaded it to the play store and the application is still in the review, if I make an apk version and install it on my phone and the phones of my friends, there will be a problem knowing that the application contains ads.</p> | I initially built the application to aab and uploaded it to the play store and the application is still in the review, if I make an apk version and install it on my phone and the phones of my friends, there will be a problem knowing that the application contains ads. | android|flutter|dart|google-play|admob | 0 | 2022-07-01T12:39:23.637Z | 2,022 | 7 | 12 | 4 | 60 | 1 | 267 | 87 | 5 | 0 | false | false | false | false | false | false | zero |
72,829,428 | Android 12 ACCESS_FINE_LOCATION returned as PERMISSION_DENIED even though it's GRANTED | <p>On Android 12 devices (API 31),</p>
<p>User has GRANTED both the precise and approximate permissions and app is working fine post that.<br/>
When user <strong>turns off the device location</strong> by going into settings, I see the ACCESS_FINE_LOCATION permission as NOT GRANTED. <br/>
When checked by navigating into... | On Android 12 devices (API 31), User has GRANTED both the precise and approximate permissions and app is working fine post that. When user turns off the device location by going into settings, I see the ACCESS_FINE_LOCATION permission as NOT GRANTED. When checked by navigating into settings, we see precise location is ... | android|kotlin|android-location|android-12 | 0 | 2022-07-01T12:41:54.140Z | 2,022 | 7 | 12 | 4 | 246 | 1 | 631 | 86 | 4 | 1 | true | false | false | false | false | false | zero |
72,829,536 | How to get a list of classes that extend from a base class in Kotlin? | <p>consider following classes structure in Kotlin:</p>
<pre class="lang-kotlin prettyprint-override"><code>open class Base {
...
}
class A : Base() {
...
}
class B : Base() {
...
}
...
class Z : Base() {
...
}
</code></pre>
<p>How would I go around getting a list of ALL classes (<code>A</code>-<code>Z</... | consider following classes structure in Kotlin: [CODE] How would I go around getting a list of ALL classes ( A - Z in this particular example) that inherit from Base class? I tried using reflection with BaseTest::class.nestedClasses and other reflection properties but they don't seem to be finding number of extending c... | android|kotlin|oop|inheritance|reflection | 1 | 2022-07-01T12:50:55.487Z | 2,022 | 7 | 12 | 4 | 99 | 1 | 336 | 69 | 5 | 1 | true | false | false | false | false | false | low |
72,829,674 | how to add a git non-android library project as a sub module, to android project | <p>I am working on project were I have to initialize this repo <a href="https://github.com/livekit/protocol" rel="nofollow noreferrer">https://github.com/livekit/protocol</a> as submodule in my android project. How can I achieve this?</p> | I am working on project were I have to initialize this repo https://github.com/livekit/protocol as submodule in my android project. How can I achieve this? | android|git-submodules | 0 | 2022-07-01T13:01:44.897Z | 2,022 | 7 | 13 | 4 | 23 | 1 | 155 | 80 | 2 | 0 | false | false | false | false | false | false | zero |
72,829,699 | Android Studio is showing error after updating app icon | <p><a href="https://i.stack.imgur.com/R7B3L.png" rel="nofollow noreferrer">Getting This error again and again tried many things I was trying to update the app icon</a></p> | Getting This error again and again tried many things I was trying to update the app icon | android-studio | 0 | 2022-07-01T13:03:33.077Z | 2,022 | 7 | 13 | 4 | 13 | 0 | 88 | 55 | 1 | 0 | false | true | false | false | false | false | zero |
72,829,886 | Keyboard appears and disappears when md-autocomplete in bottom part of screen | <p>I'm facing a bug and I'm running out of leads as to why it happens : on mobile, when the users taps on an md-autocomplete (<a href="https://material.angularjs.org/latest/api/directive/mdAutocomplete" rel="nofollow noreferrer">from the angular-material library</a>) that is on the bottom part of the screen, the soft k... | I'm facing a bug and I'm running out of leads as to why it happens : on mobile, when the users taps on an md-autocomplete ( from the angular-material library ) that is on the bottom part of the screen, the soft keyboard appears and disappears right away). I've only debugged on Android so far but the bug was initially s... | javascript|android|jquery|angularjs | 0 | 2022-07-01T13:17:15.347Z | 2,022 | 7 | 13 | 4 | 32 | 0 | 1,799 | 77 | 4 | 0 | false | true | false | false | false | false | zero |
72,829,930 | How to add AndroidDebugKey to the Google Cloud API Key Restriction | <p>I develop an Android App, that uses some of Googles APIs (e.g. Firebase Cloud Messaging API, Places API...). The API Keys should be restricted to my specific App and to the subset of all Google APIs, that the app uses. So calls to the API should be possible just from my app and it should also be possible to call jus... | I develop an Android App, that uses some of Googles APIs (e.g. Firebase Cloud Messaging API, Places API...). The API Keys should be restricted to my specific App and to the subset of all Google APIs, that the app uses. So calls to the API should be possible just from my app and it should also be possible to call just a... | android|security|mobile|google-api|android-signing | 0 | 2022-07-01T13:20:28.840Z | 2,022 | 7 | 13 | 4 | 35 | 1 | 925 | 66 | 5 | 0 | false | false | false | false | false | false | zero |
72,829,956 | I've encountered an issue with programmatically validating USB-Debugging option with disabled Developer Options. Is it possible? | <p>In my android application I've added a check for USB-Debugging. I've found an issue with a specific device model where USB-Debugging was enabled even though Developer Option is disabled.</p>
<p>The code sample was from</p>
<pre><code>if (Settings.Secure.getInt(this.getContentResolver(), Settings.Global.ADB_ENABLED, ... | In my android application I've added a check for USB-Debugging. I've found an issue with a specific device model where USB-Debugging was enabled even though Developer Option is disabled. The code sample was from [CODE] Once I manually re-closed the USB-Debugging only then the code was working normally. The device was O... | java|android|usb-debugging | 2 | 2022-07-01T13:22:27.610Z | 2,022 | 7 | 13 | 4 | 31 | 0 | 497 | 128 | 3 | 1 | true | true | false | false | false | false | low |
72,830,056 | Updating OpenJDK in Android Studio | <p>My computer gets weekly security scans and every week, I am notified of vulnerabilities in Android Studio. Mostly related to the embedded OpenJDK. For example right now, it says I have 11.0.12 2021-07-20 and I need to update to a version greater than 11.0.14. Would going to the beta channel get me a newer version... | My computer gets weekly security scans and every week, I am notified of vulnerabilities in Android Studio. Mostly related to the embedded OpenJDK. For example right now, it says I have 11.0.12 2021-07-20 and I need to update to a version greater than 11.0.14. Would going to the beta channel get me a newer version? Seei... | android-studio | 0 | 2022-07-01T13:30:28.273Z | 2,022 | 7 | 13 | 4 | 23 | 0 | 514 | 34 | 1 | 1 | true | true | false | false | false | false | zero |
72,830,096 | custom built android library returning 401 | <p>I have built a custom library to be used by few of my friends. The git-hub repository is private but before I generate the library through jitpack I make the repository public, get the library implementation, use it in my new project, then turn the repository back to private. For some time it works completely fine b... | I have built a custom library to be used by few of my friends. The git-hub repository is private but before I generate the library through jitpack I make the repository public, get the library implementation, use it in my new project, then turn the repository back to private. For some time it works completely fine but ... | android|github|android-library|http-status-code-401 | 0 | 2022-07-01T13:33:59.490Z | 2,022 | 7 | 13 | 4 | 18 | 0 | 531 | 42 | 4 | 0 | false | true | false | false | false | false | zero |
72,830,158 | Android - run long process to check tcp packets | <p>I want to make a process that checks the incoming tcp packetd to the device. I looked for many answers by but every answer says somthing different.
To run this process all the time, should I use <code>AlarmManager</code> and schedule another one from the previous one?
Or there is better way?
I know that <code>JobSch... | I want to make a process that checks the incoming tcp packetd to the device. I looked for many answers by but every answer says somthing different. To run this process all the time, should I use AlarmManager and schedule another one from the previous one? Or there is better way? I know that JobScheduler is good for spe... | java|android|alarmmanager|android-pendingintent|android-jobscheduler | 0 | 2022-07-01T13:38:02.933Z | 2,022 | 7 | 13 | 4 | 18 | 0 | 598 | 47 | 5 | 0 | false | true | false | false | false | false | zero |
72,830,162 | Dagger2 & Kotlin: lateinit property has not been initialized | <p>I trying to inject presenter using Dagger, but I get an error: lateinit property loginPresenter has not been initialized. I can't find what I may be doing wrong. See the code above from my classes. This is the first time I'm facing this problem.</p>
<p>LoginActvity.kt</p>
<pre><code>package com.xsavzh.vkfriends.acti... | I trying to inject presenter using Dagger, but I get an error: lateinit property loginPresenter has not been initialized. I can't find what I may be doing wrong. See the code above from my classes. This is the first time I'm facing this problem. LoginActvity.kt [CODE] LoginPresenter.Kt [CODE] Logcat (Verbose): [CODE] G... | android|kotlin|dagger | 0 | 2022-07-01T13:38:22.700Z | 2,022 | 7 | 13 | 4 | 104 | 0 | 352 | 60 | 3 | 4 | true | true | false | false | false | false | zero |
72,830,190 | Android intent returning null when moving back and forth of activities | <p>I have an app where a user can create/login an account, when the user logs in, I pass their valid email as an intent to the main/landing activity .</p>
<p>I also have another activity for the user profile, from which I pass the intent from the landing activity (the user email).</p>
<p>With the user email I created q... | I have an app where a user can create/login an account, when the user logs in, I pass their valid email as an intent to the main/landing activity . I also have another activity for the user profile, from which I pass the intent from the landing activity (the user email). With the user email I created queries to get all... | java|android|sqlite | -1 | 2022-07-01T13:40:23.420Z | 2,022 | 7 | 13 | 4 | 54 | 1 | 1,612 | 70 | 3 | 3 | true | false | false | false | false | true | negative |
72,830,191 | Increase bitmap size without scaling image | <p>I would like to increase the size of a Bitmap in my Android application.</p>
<p>It sounds like a very simple operation but I cannot find how to do so anywhere.
Here is an image to illustrate what I am trying to achieve here:
<a href="https://i.stack.imgur.com/6vnTr.png" rel="nofollow noreferrer"><img src="https://i.... | I would like to increase the size of a Bitmap in my Android application. It sounds like a very simple operation but I cannot find how to do so anywhere. Here is an image to illustrate what I am trying to achieve here: Basically, I'd like to create a new bitmap that has the same width as the original, but a bigger heigh... | java|android|bitmap | 0 | 2022-07-01T13:40:32.610Z | 2,022 | 7 | 13 | 4 | 43 | 1 | 418 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
72,830,273 | React-native android build fails due to missing files in the gradle cache? | <p>I am currently working on a react-native for ios and android. I wanted to add 4 new packages (<code>react-native-gesture-handler</code>, <code>react-native-reanimated</code>, <code>react-native-safe-area-context</code> and <code>@gorhom/bottom-sheet</code>) which then caused me some trouble when installing so I swit... | I am currently working on a react-native for ios and android. I wanted to add 4 new packages ( react-native-gesture-handler , react-native-reanimated , react-native-safe-area-context and @gorhom/bottom-sheet ) which then caused me some trouble when installing so I switched to another package which would replace these 4... | react-native|gradle|caching|android-gradle-plugin|metro-bundler | 1 | 2022-07-01T13:47:08.337Z | 2,022 | 7 | 13 | 4 | 164 | 0 | 1,554 | 74 | 5 | 3 | true | true | false | false | false | false | low |
72,830,384 | CollectionView SelectionChange event not working properly in Android (.Net MAUI) | <p>I'm trying to create custom tabs control in .Net MAUI, for that, I had first tried it with ScrollView and BindableStackLayout control but in that, I'm facing a problem.</p>
<h3>Reported here <a href="https://stackoverflow.com/questions/72804245/scrollview-control-not-working-properly-in-net-maui-android/72813874">Cu... | I'm trying to create custom tabs control in .Net MAUI, for that, I had first tried it with ScrollView and BindableStackLayout control but in that, I'm facing a problem. Reported here Custom tabs with ScrollView bug So, as an alternative approach or work-around, I have tried to develop the same Tabs control using Collec... | xamarin|xamarin.android|.net-6.0|maui|.net-maui | 0 | 2022-07-01T13:55:53.413Z | 2,022 | 7 | 13 | 4 | 383 | 1 | 1,379 | 80 | 5 | 3 | true | false | false | false | false | false | zero |
72,830,427 | Android TabLayOut is not picking up colorPrimary | <p>Android tab layout background color is white when it should be trasparent.</p>
<p><a href="https://i.stack.imgur.com/Wdkyi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wdkyi.png" alt="enter image description here" /></a></p>
<p>It won't pick up the colorPrimary in the below code:</p>
<pre><code... | Android tab layout background color is white when it should be trasparent. It won't pick up the colorPrimary in the below code: [CODE] colors.xml: [CODE] Xaml tabs on page: [CODE] MainActivity.cs: [CODE] I've gone through a number of stack overflow questions regarding tab layout and i can't find any difference in my co... | android|android-tablayout | 0 | 2022-07-01T13:59:38.870Z | 2,022 | 7 | 13 | 4 | 30 | 1 | 358 | 48 | 2 | 4 | true | false | false | false | false | false | zero |
72,830,450 | How can I implement an architecturally clean sign-in screen in Jetpack compose? | <p>My app uses Firebase authentication and I'm implementing a typical sign-in screen with buttons to sign in with Google, email etc. It's surprisingly difficult. I have a <code>LocalUser</code> class to hold the user's profile (name, email etc), state (whether they're logged in or in the process of logging in etc), and... | My app uses Firebase authentication and I'm implementing a typical sign-in screen with buttons to sign in with Google, email etc. It's surprisingly difficult. I have a LocalUser class to hold the user's profile (name, email etc), state (whether they're logged in or in the process of logging in etc), and provide methods... | firebase-authentication|android-jetpack-compose|android-viewmodel|google-identity | 0 | 2022-07-01T14:01:20.880Z | 2,022 | 7 | 14 | 4 | 143 | 0 | 961 | 79 | 4 | 0 | false | true | false | false | false | false | zero |
72,830,468 | How to Implement TextWatcher in EditText - Android? | <p>I am inflating a Linear Layout dynamically <code>2 times</code> which has some editTexts and some TextViews</p>
<p>The layouts are inflated successfully, but when I am setting a TextWatcher , then the effect is seen only on the 2nd inflated layout and not on first one</p>
<p>This is how I am inflating layout:</p>
<p... | I am inflating a Linear Layout dynamically 2 times which has some editTexts and some TextViews The layouts are inflated successfully, but when I am setting a TextWatcher , then the effect is seen only on the 2nd inflated layout and not on first one This is how I am inflating layout: [CODE] This is the TextWatcher I am ... | android|android-edittext | 2 | 2022-07-01T14:02:53.267Z | 2,022 | 7 | 14 | 4 | 58 | 0 | 474 | 51 | 2 | 3 | true | true | false | false | false | false | low |
72,830,494 | when my xamarin form app run, it's has stopped? | <p>I create a blank app in xamarin form for Android. when i run blank app in emulator thas work exactly, but when add Xamarin.Form.GoogleMaps to my page and run in emulator show error!<br/>
error message = "Application has stopped"<br/>
I did the following to add Xamarin.Form.GoogleMaps . <br/><br/>
1- downlo... | I create a blank app in xamarin form for Android. when i run blank app in emulator thas work exactly, but when add Xamarin.Form.GoogleMaps to my page and run in emulator show error! error message = "Application has stopped" I did the following to add Xamarin.Form.GoogleMaps . 1- download latest version Xamari... | android|google-maps|xamarin|xamarin.forms|xamarin.android | 0 | 2022-07-01T14:05:05.570Z | 2,022 | 7 | 14 | 4 | 63 | 2 | 1,481 | 47 | 5 | 0 | false | false | false | false | false | false | zero |
72,830,583 | I am learning Android studio and doing a rectangle calculator, my kotlin has 19 errors and cannot figure it out | <p>I am learning Android studio and doing a rectangle calculator. My Kotlin has 19 errors, and I cannot figure it out. I keep getting unresolved errors for btn, functions that cannot be called, and expecting an element. I am trying to do a calculator that takes height and width and then calculates area and perimeter. J... | I am learning Android studio and doing a rectangle calculator. My Kotlin has 19 errors, and I cannot figure it out. I keep getting unresolved errors for btn, functions that cannot be called, and expecting an element. I am trying to do a calculator that takes height and width and then calculates area and perimeter. Just... | android|android-studio|kotlin|calculator | 0 | 2022-07-01T14:12:59.640Z | 2,022 | 7 | 14 | 4 | 74 | 1 | 431 | 111 | 4 | 1 | true | false | false | false | false | false | zero |
72,830,604 | Android Hilt - Question about binding per activity | <p>I've a question about implementing bindings per activity. Let me give you background. In application I've for ex. two activities, both of them inject same simple provider with two different values. When I create two separate modules for both activities with @ActivityRetainedComponent scope - compiler gives me error ... | I've a question about implementing bindings per activity. Let me give you background. In application I've for ex. two activities, both of them inject same simple provider with two different values. When I create two separate modules for both activities with @ActivityRetainedComponent scope - compiler gives me error tha... | android|dependency-injection|dagger|dagger-hilt | 0 | 2022-07-01T14:14:57.933Z | 2,022 | 7 | 14 | 4 | 56 | 0 | 814 | 50 | 4 | 4 | true | true | false | false | false | false | zero |
72,830,627 | Can pass data from View to ViewModel? | <p>Is there mistake if I pass data from View to ViewModel? For example, pass url from <code>onPageFinished</code> event of WebView. I am confused because all source tell that ViewModel mustn't have any link to View. In this case will be such link or not? Or if type of argument will be custom data class than just string... | Is there mistake if I pass data from View to ViewModel? For example, pass url from onPageFinished event of WebView. I am confused because all source tell that ViewModel mustn't have any link to View. In this case will be such link or not? Or if type of argument will be custom data class than just string? [CODE] [CODE] | android|kotlin|mvvm|android-architecture-components | 0 | 2022-07-01T14:16:26.190Z | 2,022 | 7 | 14 | 4 | 97 | 1 | 319 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
72,830,697 | How get updated value before navigate back to Fragment from dialogFragment? | <p>I'm have Fragment and DialogFragment, they have own viewmodel's. After click "Ok" in dialogFragment call method, that update record in DB and <a href="https://developer.android.com/guide/navigation/navigation-programmatic#returning_a_result" rel="nofollow noreferrer">return result</a> to parentFragment, bu... | I'm have Fragment and DialogFragment, they have own viewmodel's. After click "Ok" in dialogFragment call method, that update record in DB and return result to parentFragment, but navigate to parentFragment work faster then update DB, and list not updated. Now i just use sleep(500) , to wait updated value, how... | android|kotlin|kotlin-coroutines | 0 | 2022-07-01T14:22:05.633Z | 2,022 | 7 | 14 | 4 | 39 | 0 | 368 | 75 | 3 | 2 | true | true | false | false | false | false | zero |
72,830,721 | EuiccManager switchToSubscription | <p>I am prototyping an eSIM install/subscription use case by following the following doc: <a href="https://source.android.com/devices/tech/connect/esim-overview" rel="nofollow noreferrer">https://source.android.com/devices/tech/connect/esim-overview</a>:</p>
<p>I have successfully download the profile that I can subsc... | I am prototyping an eSIM install/subscription use case by following the following doc: https://source.android.com/devices/tech/connect/esim-overview : I have successfully download the profile that I can subscribe to it if I use the device settings app. However it fails silently if I try to subscribe to it using the fol... | android|euiccmanager | 0 | 2022-07-01T14:23:17.473Z | 2,022 | 7 | 14 | 4 | 73 | 1 | 428 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
72,830,732 | How to notify adapter if the fragment deatched or destroyed [needed for Admob NativeAd AdViewHolder] | <p>In my app, I have implemented ad mob native ads inside my <code>PostAdapter</code> class, I have 7 different fragments, and I need to know when the fragment is detached or destroyed to call <code>nativeAd.destroy()</code> to avoid leaks like said in the <strong><a href="https://developers.google.com/admob/android/na... | In my app, I have implemented ad mob native ads inside my PostAdapter class, I have 7 different fragments, and I need to know when the fragment is detached or destroyed to call nativeAd.destroy() to avoid leaks like said in the documentation Be sure to use the destroy() method on loaded native ads. This frees up utiliz... | android|kotlin|android-fragments|admob|android-lifecycle | 0 | 2022-07-01T14:24:46.307Z | 2,022 | 7 | 14 | 4 | 68 | 1 | 651 | 100 | 5 | 3 | true | false | false | false | false | false | zero |
72,830,879 | How to locate an element in android app in new screen with Appium | <p>I'm starting to automate a test for an Android mobile app with Appium which is a calculator application on my mobile.</p>
<p>To start, I want to test a simple additive "2 + 3 = 5" equation, I use Eclipse and Appium inspector to get the element Id.
This is my code :</p>
<pre><code>public class CalculatorTes... | I'm starting to automate a test for an Android mobile app with Appium which is a calculator application on my mobile. To start, I want to test a simple additive "2 + 3 = 5" equation, I use Eclipse and Appium inspector to get the element Id. This is my code : [CODE] The calculator app start with , If I click o... | java|android|appium-android | 0 | 2022-07-01T14:37:36.500Z | 2,022 | 7 | 14 | 4 | 85 | 0 | 646 | 65 | 3 | 2 | true | true | false | false | false | false | zero |
72,830,963 | Android WorkManager getting reference to Worker class | <p>I'm facing following problem: there's my class which inherits <code>CoroutineWorker</code>. Logic of this worker is complicated enough, in fact <code>doWork()</code> calls bunch of other routines inside and catches (<code>collect</code>) results of several <code>StateFlow</code>s, like:</p>
<pre><code> override su... | I'm facing following problem: there's my class which inherits CoroutineWorker . Logic of this worker is complicated enough, in fact doWork() calls bunch of other routines inside and catches ( collect ) results of several StateFlow s, like: [CODE] Questions: Can I somehow return/put collected StateFlow values (values ar... | java|android|kotlin|kotlin-coroutines|android-workmanager | 1 | 2022-07-01T14:43:46.527Z | 2,022 | 7 | 14 | 4 | 85 | 1 | 717 | 53 | 5 | 1 | true | false | false | false | false | false | low |
72,831,154 | why getIntExtra() is always default value | <p><strong>at first my declaration is:</strong></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-js lang-js prettyprint-override"><code> public static final String EXTRA_TEXT="com.example.application.example.EXTR... | at first my declaration is: [CODE] my MainActivity get number and text: [CODE] my Activity2 should get the number and text: [CODE] The text is well received, but the number value is always 0. | java|android|android-activity|default | 0 | 2022-07-01T14:59:13.097Z | 2,022 | 7 | 14 | 4 | 27 | 1 | 191 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
72,831,183 | How can map a rectf on a rotated bitmap | <p>How can i map a RectF bounding box on android if the bitmap is (or not) rotated ?</p>
<p>I already have the RectF on the left image, need to map its coordinates to the right image.</p>
<p><a href="https://i.stack.imgur.com/F5H8h.png" rel="nofollow noreferrer">Awesome paint description</a></p> | How can i map a RectF bounding box on android if the bitmap is (or not) rotated ? I already have the RectF on the left image, need to map its coordinates to the right image. Awesome paint description | java|android|matrix | 0 | 2022-07-01T15:01:27.213Z | 2,022 | 7 | 15 | 4 | 20 | 1 | 199 | 39 | 3 | 0 | false | false | false | false | false | false | zero |
72,831,363 | HiltViewModel is not cleared after navigation | <p>After creating a new project in Android Studio and adding the relevant dependencies:</p>
<pre><code>buildscript {
ext {
compose_version = '1.1.0-beta01'
}
dependencies {
classpath("com.google.dagger:hilt-android-gradle-plugin:2.38.1")
}
}// Top-level build file where you ca... | After creating a new project in Android Studio and adding the relevant dependencies: [CODE] I use Hilt to manage dependency injections: [CODE] Then in my MainActivity, I use composition and navigation: [CODE] The issue I have is when navigating between FirstScreen and SecondScreen, the logcat shows that the init logs a... | android|android-jetpack-compose|dagger-hilt|android-jetpack-navigation | 0 | 2022-07-01T15:17:11.630Z | 2,022 | 7 | 15 | 4 | 125 | 1 | 871 | 45 | 4 | 3 | true | false | false | false | false | false | zero |
72,831,377 | How to embed WebView in Java in Android Auto | <p>I'm new to Java and am currently developing an Android Auto app.
It's using WebView to display local HTML files.
I've tried many ways, but everything went wrong.</p>
<p>My App can start in Android Auto, but embedding WebView fails every time.
And the Internet is like empty on this subject.
Here is what I'm trying cu... | I'm new to Java and am currently developing an Android Auto app. It's using WebView to display local HTML files. I've tried many ways, but everything went wrong. My App can start in Android Auto, but embedding WebView fails every time. And the Internet is like empty on this subject. Here is what I'm trying currently: [... | java|android|webview|auto|android-auto | 0 | 2022-07-01T15:17:53.580Z | 2,022 | 7 | 15 | 4 | 71 | 0 | 446 | 44 | 5 | 1 | true | true | false | false | false | false | zero |
72,831,431 | How to set Textview height between two imageview | <p>I have a <code>TextView</code> to display order items and quantity. But it overlaps with the divider lines above and below. How to fix this?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?><!--https://www.youtube.com/watch?v=18VcnYN5_LM !-->
<androidx.constraintlayout.widget.C... | I have a TextView to display order items and quantity. But it overlaps with the divider lines above and below. How to fix this? [CODE] Sample image is found in https://imgur.com/a/EPsUeI3 As you can see in the image the order items and quantity TextView is overlapping with ImageView . The text for TextView comes from a... | android|xml|android-layout|textview|imageview | 0 | 2022-07-01T15:22:25.937Z | 2,022 | 7 | 15 | 4 | 41 | 1 | 340 | 48 | 5 | 2 | true | false | false | false | false | false | zero |
72,831,533 | How to run a block of code when we have successful payment in Razorpay API? | <p>I am building a bus booking app and in it I am using the Razorpay API. Right now the intent in below code is being run when the payment is not successful as well.Right now if I just click the done button and go back, the intent is called. I only want to call the intent when the payment is successful. How do I run th... | I am building a bus booking app and in it I am using the Razorpay API. Right now the intent in below code is being run when the payment is not successful as well.Right now if I just click the done button and go back, the intent is called. I only want to call the intent when the payment is successful. How do I run the i... | java|android|api|razorpay | 0 | 2022-07-01T15:30:33.213Z | 2,022 | 7 | 15 | 4 | 51 | 1 | 380 | 75 | 4 | 1 | true | false | false | false | false | false | zero |
72,831,583 | Does Google Pixel 1 still has unlimited storage for photos and videos in 2022 and will it stay so forever? | <p>If google pixel 1 still has this feature (unlimited storage for photos and videos) in pixel 1 then I can use the phone as a cloud media server to store all my pictures and videos.
I don't want to risk buying the phone if this feature is unavailable.</p> | If google pixel 1 still has this feature (unlimited storage for photos and videos) in pixel 1 then I can use the phone as a cloud media server to store all my pictures and videos. I don't want to risk buying the phone if this feature is unavailable. | android|server|storage|media|google-pixel | 0 | 2022-07-01T15:35:13.580Z | 2,022 | 7 | 15 | 4 | 255 | 2 | 249 | 106 | 5 | 0 | false | false | false | false | false | false | zero |
72,831,651 | Firebase Vision confusing characters | <p>I'm using Firebase Vision, from MLKit, together with CameraX for text recognition in Android. The problem is that the results are not very consistent. Depending on the font, these recognitions may vary. For example, sometimes it's confusing the character 'b' with the digit '6'. This is not a problem if you only need... | I'm using Firebase Vision, from MLKit, together with CameraX for text recognition in Android. The problem is that the results are not very consistent. Depending on the font, these recognitions may vary. For example, sometimes it's confusing the character 'b' with the digit '6'. This is not a problem if you only need di... | android|kotlin|ocr|android-camerax|firebase-mlkit | 1 | 2022-07-01T15:40:37.057Z | 2,022 | 7 | 15 | 4 | 32 | 1 | 539 | 36 | 5 | 0 | false | false | false | false | false | false | low |
72,831,690 | Why does my activity calls onCreate if opened from notification | <p>I am building an Android app which should just open the app once its notifications are clicked.</p>
<pre><code> private void createNotificationChannel() {
// Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library
/... | I am building an Android app which should just open the app once its notifications are clicked. [CODE] I followed this guide: https://developer.android.com/training/notify-user/navigation The notifications display correctly and once I click them it takes me to MainActivity, but it restarts MainActivity. Why does this h... | java|android | 1 | 2022-07-01T15:43:51.103Z | 2,022 | 7 | 15 | 4 | 53 | 2 | 428 | 63 | 2 | 2 | true | false | false | false | false | false | low |
72,831,758 | is there a way to force jetpack compose time picker dialog to use the clock face instead of the spinner in the UI | <p>not sure how compose decides witch to show, but I have gotten different views within the same app. Seems like a bug. Surprised I see no option to force the UI into one mode or the other. In the docs I see an xml attribute: android:timePickerMode; but know of no way to implement this in compose. This is just a genera... | not sure how compose decides witch to show, but I have gotten different views within the same app. Seems like a bug. Surprised I see no option to force the UI into one mode or the other. In the docs I see an xml attribute: android:timePickerMode; but know of no way to implement this in compose. This is just a general q... | android-jetpack-compose | 0 | 2022-07-01T15:49:17.387Z | 2,022 | 7 | 15 | 4 | 82 | 0 | 548 | 113 | 1 | 1 | true | true | false | false | false | false | zero |
72,831,874 | Share tests them beetween several packages in Android Espresso UI testing (Kotlin) | <p>I have two packages for the Espresso tests in my project, <code>package A</code> and <code>package B</code>.<br />
<code>Package A</code> acts as default package to run tests on Jenkins, contains 100+ tests, but in specified cases I don't need to run them all, but only several from each class.</p>
<p>So, I created a... | I have two packages for the Espresso tests in my project, package A and package B . Package A acts as default package to run tests on Jenkins, contains 100+ tests, but in specified cases I don't need to run them all, but only several from each class. So, I created a package B , which contains selected tests from Packag... | android|package|android-espresso|android-testing | 0 | 2022-07-01T15:58:31.453Z | 2,022 | 7 | 15 | 4 | 29 | 0 | 966 | 82 | 4 | 2 | true | true | false | false | false | false | zero |
72,831,902 | Android: SQLite: Deleting records | <p>I managed to find good examples where the android development team failed to provide. However, I wish to ask if the delete can be used only in Main Activity or only in the DBHelper? I'm unsure if DBHelper.java might be called DBAdapter as some examples seem to show. The specific syntax I'm referring to is this which... | I managed to find good examples where the android development team failed to provide. However, I wish to ask if the delete can be used only in Main Activity or only in the DBHelper? I'm unsure if DBHelper.java might be called DBAdapter as some examples seem to show. The specific syntax I'm referring to is this which yo... | android|android-sqlite|sql-delete | 0 | 2022-07-01T16:01:02.103Z | 2,022 | 7 | 16 | 4 | 34 | 1 | 580 | 33 | 3 | 0 | false | false | false | false | false | false | zero |
72,831,942 | image called from firebase shows up in emulator but not showing up in phone | <p>My app has a nav header which displays the photo of user as well as a activity that shows one
the output is shown properly on my laptop Emulator but does not show up when I run the app on a device no errors (checked to send a toast in case the info fetched is null did not trigger)</p>
<p>I also tried resizing the im... | My app has a nav header which displays the photo of user as well as a activity that shows one the output is shown properly on my laptop Emulator but does not show up when I run the app on a device no errors (checked to send a toast in case the info fetched is null did not trigger) I also tried resizing the image to fit... | android|imageview|firebase-storage | 1 | 2022-07-01T16:04:10.673Z | 2,022 | 7 | 16 | 4 | 24 | 0 | 779 | 75 | 3 | 1 | true | true | false | false | false | false | low |
72,832,011 | How to fade in/out audio in android without FFMPEG | <p>I want make audio fade in/out <strong>without ffmpeg</strong> in android.
I want decrease volume of audio at end of music for 5 seconds in sequential not one percent or two percents for example first second volume must be 0.8f and second second must be 0.6, repeat this only for 5 last seconds in audio file and save ... | I want make audio fade in/out without ffmpeg in android. I want decrease volume of audio at end of music for 5 seconds in sequential not one percent or two percents for example first second volume must be 0.8f and second second must be 0.6, repeat this only for 5 last seconds in audio file and save the audio file. Than... | android|audio | 0 | 2022-07-01T16:10:10.527Z | 2,022 | 7 | 16 | 4 | 17 | 0 | 336 | 50 | 2 | 0 | false | true | false | false | false | false | zero |
72,832,057 | Proguard rule for Huawei push client | <p>I have <code>Unable to create application im.app.android.core.AppDemoApplication: e3.b: com.pushserver.android.huaweiPushClient cant cast com.myApp.android.push_lib.huawei.HcmPushClient to PushClient</code> error</p>
<p>What proguard rule should I add? I have tried <code>-keep class com.myApp.android.push_lib.** { ... | I have Unable to create application im.app.android.core.AppDemoApplication: e3.b: com.pushserver.android.huaweiPushClient cant cast com.myApp.android.push_lib.huawei.HcmPushClient to PushClient error What proguard rule should I add? I have tried -keep class com.myApp.android.push_lib.** { *; } but after that I just see... | android|proguard | 0 | 2022-07-01T16:13:59.047Z | 2,022 | 7 | 16 | 4 | 49 | 1 | 382 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
72,832,088 | Download generated APK using Google Play Android Developer API | <p>I have several packages in Google Play Store and deploy and publish the packages in bundles .abb format. I set the store to replace the signature of apps. We need to test applications with the final signature and sideload them to the device therefore we need apks and must download generated apks from the signed bund... | I have several packages in Google Play Store and deploy and publish the packages in bundles .abb format. I set the store to replace the signature of apps. We need to test applications with the final signature and sideload them to the device therefore we need apks and must download generated apks from the signed bundle ... | android|google-api|google-play | 0 | 2022-07-01T16:17:19.483Z | 2,022 | 7 | 16 | 4 | 120 | 1 | 1,822 | 62 | 3 | 0 | false | false | false | false | false | false | zero |
72,832,234 | The method isn't defined for the class | <p>I am trying to create an app using an api key provided by newsapi.org but whenever I try to run the project the following error comes:</p>
<pre><code> lib/pages/news_page.dart:17:5: Error: 'News' isn't a type.
News news = News();
^^^^
lib/pages/news_page.dart:17:17: Error: The method 'News' isn't defined ... | I am trying to create an app using an api key provided by newsapi.org but whenever I try to run the project the following error comes: [CODE] The code for the page is following [CODE] The fetch_data code is [CODE] I have tried running flutter clean and restarting vs code but the error still persists. The api key has be... | android|flutter | 0 | 2022-07-01T16:31:10.940Z | 2,022 | 7 | 16 | 4 | 80 | 2 | 331 | 38 | 2 | 3 | true | false | false | false | false | false | zero |
72,832,275 | Google ML Kit, BarcodeScannerOptions Adding barcode reading type dynamically | <p>I added select buttons. However, I cannot transfer the data here to the options section.
my codes are as follows. How can I add the dark parts programmatically?</p>
<p>BarcodeScannerOptions options = new BarcodeScannerOptions.Builder()
.setBarcodeFormats(<em><strong>settings.getBarcodeEan13(),settings.getBarcodeEan8... | I added select buttons. However, I cannot transfer the data here to the options section. my codes are as follows. How can I add the dark parts programmatically? BarcodeScannerOptions options = new BarcodeScannerOptions.Builder() .setBarcodeFormats( settings.getBarcodeEan13(),settings.getBarcodeEan8() ).build(); public ... | android|barcode-scanner|google-mlkit | 0 | 2022-07-01T16:34:39.257Z | 2,022 | 7 | 16 | 4 | 102 | 1 | 455 | 76 | 3 | 1 | true | false | false | false | false | false | zero |
72,832,362 | Room database is recreated at app restart | <p>Using Android API 32 and Room 2.4.2</p>
<p>Room database is created like this</p>
<pre><code>companion object {
@Volatile
private var INSTANCE: AppDatabase? = null
fun getDatabase(context: Context): AppDatabase {
val tempInstance = INSTANCE
if (tempInstance != null)
return te... | Using Android API 32 and Room 2.4.2 Room database is created like this [CODE] The schema is version 1 and prepopulated db asset is version 0 . When the app is started for the frist time the room db is created and populated with the asset data correctly. But whenever the app is restarted the room db is created and popul... | android-room | 2 | 2022-07-01T16:43:56.857Z | 2,022 | 7 | 16 | 4 | 88 | 1 | 514 | 41 | 1 | 1 | true | false | false | false | false | false | low |
72,832,481 | Crashlytics works on production but doesn't work on test | <p>It's a weird situation. I have a react native app that has a test and production environment. On the production side, my app is correctly integrated with crashlytics. But when I try to integrate on test apk, I see only <strong>"App detected and we're waiting for a crash!"</strong>
<a href="https://i.stack.... | It's a weird situation. I have a react native app that has a test and production environment. On the production side, my app is correctly integrated with crashlytics. But when I try to integrate on test apk, I see only "App detected and we're waiting for a crash!" SS Test and prod use the same application, th... | android|firebase|crashlytics | 2 | 2022-07-01T16:55:04.583Z | 2,022 | 7 | 16 | 4 | 144 | 0 | 755 | 56 | 3 | 0 | false | true | false | false | false | false | low |
72,832,517 | Android - how to create file object from Imageview image | <p>Im making and android app which let the user select an image from the phone and load it to an ImageView. The further process is to send the image as a POST request to a PHP script</p>
<p>It all works fine if I load the image to a File object from the file location, but this require that the user open a setting on th... | Im making and android app which let the user select an image from the phone and load it to an ImageView. The further process is to send the image as a POST request to a PHP script It all works fine if I load the image to a File object from the file location, but this require that the user open a setting on the phone wh... | android|kotlin|post|imageview | 1 | 2022-07-01T16:59:34.840Z | 2,022 | 7 | 16 | 4 | 97 | 1 | 486 | 56 | 4 | 1 | true | false | false | false | false | false | low |
72,832,599 | AudioManager.isBluetoothScoOn returns wrong value | <p>I don’t have much knowledge about Bluetooth. As android documentation lacks details I'm really confused about this. I'm trying to route a webRTC call to a Bluetooth headset. By calling <code>am.startBluetoothSco()</code> I can route the audio to the BT headset successfully. But when I read the value using <code>am.i... | I don’t have much knowledge about Bluetooth. As android documentation lacks details I'm really confused about this. I'm trying to route a webRTC call to a Bluetooth headset. By calling am.startBluetoothSco() I can route the audio to the BT headset successfully. But when I read the value using am.isBluetoothScoOn it som... | android|bluetooth|android-bluetooth|a2dp|bluetooth-sco | 2 | 2022-07-01T17:07:28.280Z | 2,022 | 7 | 17 | 4 | 76 | 0 | 738 | 49 | 5 | 0 | false | true | false | false | false | false | low |
72,832,600 | pending intent in notification not working if app is open | <p>Please be informed we are sending push notification with a URl attached to pendingIntent for addAction button. AddAction button opens the mainactivity of app and directs to url in the webview. This sequence (pendingintent) works perfectly when app is closed, but when it is open, notification just stands there and op... | Please be informed we are sending push notification with a URl attached to pendingIntent for addAction button. AddAction button opens the mainactivity of app and directs to url in the webview. This sequence (pendingintent) works perfectly when app is closed, but when it is open, notification just stands there and opens... | android|push-notification | 0 | 2022-07-01T17:07:45.073Z | 2,022 | 7 | 17 | 4 | 111 | 1 | 489 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
72,832,648 | How to check how many Observers are created on a single LiveData in Android | <p>I am Struggling to find a way to check how many observers and subjects are present in android studio and When they are garbage collected.</p>
<p>A detail explanation would be appreciated</p> | I am Struggling to find a way to check how many observers and subjects are present in android studio and When they are garbage collected. A detail explanation would be appreciated | android|android-livedata|observer-pattern | 0 | 2022-07-01T17:13:10.380Z | 2,022 | 7 | 17 | 4 | 51 | 0 | 179 | 75 | 3 | 0 | false | true | false | false | false | false | zero |
72,832,717 | How to take backup locally of my Android App in Android Studio | <p>I m new to Android Dev.
I have built an app(yet not released on play store) and thinking to add new features to it. But i m not confident enough and I think I might make mistakes and my app might get worse. How to I create a local backup of my android app? Should I just copy the files in which I set my projects to a... | I m new to Android Dev. I have built an app(yet not released on play store) and thinking to add new features to it. But i m not confident enough and I think I might make mistakes and my app might get worse. How to I create a local backup of my android app? Should I just copy the files in which I set my projects to anot... | android|android-studio|kotlin | 1 | 2022-07-01T17:20:02.160Z | 2,022 | 7 | 17 | 4 | 22 | 1 | 360 | 62 | 3 | 0 | false | false | false | false | false | false | low |
72,832,725 | How to access Arraylist of fragment from a fragment class | <p>I have 2 fragments called "Home fragment" and "Code Fragment".
I have an arraylist of fragments in the main activity.
I have set the "home fragment" on the main View and I have a button on the home fragment.
I want to add the "Code fragment" to the arraylist and and show it i... | I have 2 fragments called "Home fragment" and "Code Fragment". I have an arraylist of fragments in the main activity. I have set the "home fragment" on the main View and I have a button on the home fragment. I want to add the "Code fragment" to the arraylist and and show it in pl... | java|android|android-studio|arraylist|fragment | 0 | 2022-07-01T17:21:01.860Z | 2,022 | 7 | 17 | 4 | 26 | 0 | 508 | 57 | 5 | 0 | false | true | false | false | false | false | zero |
72,832,802 | How to show Multiple color text in same Text view with Jetpack Compose? | <p>I want to display text in multiple colors/style within same Text() component. How can i achieve this using Jetpack Compose?</p>
<p>Sample:</p>
<p><a href="https://i.stack.imgur.com/ATJxI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ATJxI.png" alt="enter image description here" /></a></p> | I want to display text in multiple colors/style within same Text() component. How can i achieve this using Jetpack Compose? Sample: | android|kotlin|user-interface|android-jetpack-compose | 1 | 2022-07-01T17:29:18.840Z | 2,022 | 7 | 17 | 4 | 275 | 1 | 131 | 71 | 4 | 0 | false | false | false | false | false | false | low |
72,832,867 | I made animation in android and got this error | <pre><code><?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate
android:duration="@android:Integer/config_mediumAnimTime"
android:fromYDelta="100%p"
android:toYDelta... | [CODE] after this code i got this error @android:Integer/config_mediumAnimTime' is incompatible with attribute duration (attr) integer. | java|android|xml|android-studio | 1 | 2022-07-01T17:36:40.697Z | 2,022 | 7 | 17 | 4 | 39 | 1 | 135 | 46 | 4 | 1 | true | false | false | false | false | false | low |
72,833,025 | Jetpack Compose: Textfield doenst lose focus on click outside of it | <p>I am trying to implement a searchbar in my Compose app. I have a textfield, which I want to lose focus of and hide the keyboard, when I click outside of the textfield. However, I can't figure out how to do it. I did try to do it this way, which I saw on github.</p>
<p>However, i did some changes. The original soluti... | I am trying to implement a searchbar in my Compose app. I have a textfield, which I want to lose focus of and hide the keyboard, when I click outside of the textfield. However, I can't figure out how to do it. I did try to do it this way, which I saw on github. However, i did some changes. The original solution used th... | android|kotlin|android-jetpack-compose|android-jetpack-compose-text | 1 | 2022-07-01T17:54:48.813Z | 2,022 | 7 | 17 | 4 | 387 | 1 | 714 | 67 | 4 | 2 | true | false | false | false | false | false | low |
72,833,103 | Getting images to dislay using fromHtml in Android Studio | <p>I am currently using fromHtml in Android Studio to display a webpage's text and images in a TextView. While I am able to load the text just fine, displaying the images doesn't seem to work as expected, leaving small cyan squares in place of where images should be when running the application. After doing some resear... | I am currently using fromHtml in Android Studio to display a webpage's text and images in a TextView. While I am able to load the text just fine, displaying the images doesn't seem to work as expected, leaving small cyan squares in place of where images should be when running the application. After doing some research,... | java|android-studio|picasso|fromhtml | 0 | 2022-07-01T18:02:45.313Z | 2,022 | 7 | 18 | 4 | 19 | 0 | 706 | 57 | 4 | 1 | true | true | false | false | false | false | zero |
72,833,106 | Hosting Android ndk-sample in QT | <p>i'm trying to host one of the samples in "android/ndk-samples" within the QT framework but am unsure how to go about linking these.</p>
<p>I hesitate to guess it involves the QJniObject / QJniEnvironment classes but am unsure what I would use as the entry point for a given sample</p>
<p>Is something like t... | i'm trying to host one of the samples in "android/ndk-samples" within the QT framework but am unsure how to go about linking these. I hesitate to guess it involves the QJniObject / QJniEnvironment classes but am unsure what I would use as the entry point for a given sample Is something like this even possible... | android|android-ndk|qt6 | 0 | 2022-07-01T18:03:10.697Z | 2,022 | 7 | 18 | 4 | 16 | 0 | 383 | 32 | 3 | 0 | false | true | false | false | false | false | zero |
72,833,107 | Jetpack Compose Wear OS Scroll to top onResume | <p>I have a Wear OS Overlay built with Compose, that uses a <code>ScalingLazyColumn</code> and <code>rememberScalingLazyListState()</code> for scrolling. When the user leaves the overlay and returns I want the column to scroll to the top instead of saving their location. Is there a way to do this?</p>
<p>The screen use... | I have a Wear OS Overlay built with Compose, that uses a ScalingLazyColumn and rememberScalingLazyListState() for scrolling. When the user leaves the overlay and returns I want the column to scroll to the top instead of saving their location. Is there a way to do this? The screen uses LiveData / State so elements recom... | android|android-jetpack-compose|wear-os | 1 | 2022-07-01T18:03:18.580Z | 2,022 | 7 | 18 | 4 | 106 | 1 | 426 | 46 | 3 | 1 | true | false | false | false | false | false | low |
72,833,124 | Push Notification didn't appear on Android through Twilio Notify | <p>I am learning twilio android push notification, twlio have already provided a 'notifications-quickstart-android' app on github, I cloned it and made the changes as mentioned on the official docs of twilio,</p>
<p>But after creating the binding on android app,</p>
<p>(Also after pressing on register binding, the clos... | I am learning twilio android push notification, twlio have already provided a 'notifications-quickstart-android' app on github, I cloned it and made the changes as mentioned on the official docs of twilio, But after creating the binding on android app, (Also after pressing on register binding, the closes or ithink cras... | android|push-notification|twilio | 0 | 2022-07-01T18:05:23.083Z | 2,022 | 7 | 18 | 4 | 46 | 0 | 743 | 64 | 3 | 0 | false | true | false | false | false | false | zero |
72,833,213 | ionic cordova run android and java version | <p>so I'm basically trying to run my ionic app on an android device, and the command "ionic cordova run android --device" get as far as telling me an error occurred due to:</p>
<pre><code>Requirements check failed for JDK 1.8.x! Detected version: 16.0.0
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environme... | so I'm basically trying to run my ionic app on an android device, and the command "ionic cordova run android --device" get as far as telling me an error occurred due to: [CODE] So, after verifying which java versions I had and successfully changing the version to a 1.8.X, so when I run java -version, it retur... | java|android|ionic-framework|javac | 1 | 2022-07-01T18:14:33.660Z | 2,022 | 7 | 18 | 4 | 97 | 1 | 1,364 | 42 | 4 | 6 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.