id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73,694,224 | Android: How to reference to an outside View, in RecyclerView | <p>Hi I have an simple app with <code>Bottom Navigation Activity</code>. In <code>Home Fragment</code> I have a <code>Button</code> called <code>Fruits</code>. It opens a <code>PopupWindow</code>. In the popup is a <code>RecyclerView</code> with 4 <code>Buttons</code>(fruits names).</p>
<p>I want, when I press on a <co... | Hi I have an simple app with Bottom Navigation Activity . In Home Fragment I have a Button called Fruits . It opens a PopupWindow . In the popup is a RecyclerView with 4 Buttons (fruits names). I want, when I press on a Button in the PopupWindow , to change the name of Button (called Fruits ) form home_fragment , in wh... | android|kotlin|android-recyclerview | 0 | 2022-09-12T19:13:23.050Z | 2,022 | 9 | 19 | 0 | 32 | 1 | 454 | 61 | 3 | 5 | true | false | false | false | false | false | zero |
73,694,239 | How to find the path of the edge of the picture with artificial intelligence? | <p>I want to learn the path of bitmap's edge with artificial intelligence and drawing contour. I want, how can I do this? I left an example image below, the stroke path drawn in the picture is given a neon effect, but it used the edge to do this, I want to do exactly that, how can I do that?</p>
<p><a href="https://i.s... | I want to learn the path of bitmap's edge with artificial intelligence and drawing contour. I want, how can I do this? I left an example image below, the stroke path drawn in the picture is given a neon effect, but it used the edge to do this, I want to do exactly that, how can I do that? click to see the picture In th... | android|machine-learning|path|bitmap|contour | -1 | 2022-09-12T19:14:54.703Z | 2,022 | 9 | 19 | 0 | 20 | 0 | 456 | 77 | 5 | 0 | false | true | false | false | false | true | negative |
73,694,248 | Why is defining navigation version as val throwing error in the build.gradle? | <p>Why are version number declared as val type throwing errors in the build.gradle of my android project. Changing it to def fixes it but what is the issue? Documentation states to choose val for kotlin and def for groovy language.</p> | Why are version number declared as val type throwing errors in the build.gradle of my android project. Changing it to def fixes it but what is the issue? Documentation states to choose val for kotlin and def for groovy language. | android|kotlin|build.gradle|android-jetpack-compose|android-architecture-navigation | 0 | 2022-09-12T19:16:10.713Z | 2,022 | 9 | 19 | 0 | 32 | 0 | 228 | 77 | 5 | 0 | false | true | false | false | false | false | zero |
73,694,324 | Having error in R.string R.id so on java android studio | <pre><code> getServerResult.launch(
Intent(mContext, ChangeServerActivity::class.java)
)
} else if (vpnStart && !isServerSelected) {
mContext.toast(getResources().getString(R.string.disconnect_first))
} else {
... | [CODE] This is the code and error is :"unresolved reference: string" | java|android-studio|android-studio-3.0|android-studio-2.3|android-statusbar | -1 | 2022-09-12T19:23:49.867Z | 2,022 | 9 | 19 | 0 | 16 | 0 | 78 | 55 | 5 | 1 | true | true | false | false | false | true | negative |
73,694,481 | Is it possible to use a recyclerView inside a form? | <p>I'm developing an app to store TV shows informations. The use can add shows and then view its collection. I want, when adding a show, to be able to also add seasons to it, and several if need be.</p>
<p>I have <code>Show</code> and <code>Season</code> models, and I've created an <code>AddShowActivity</code> with its... | I'm developing an app to store TV shows informations. The use can add shows and then view its collection. I want, when adding a show, to be able to also add seasons to it, and several if need be. I have Show and Season models, and I've created an AddShowActivity with its add_show_activity layout. I've started using And... | android|forms|android-recyclerview | 0 | 2022-09-12T19:39:44.090Z | 2,022 | 9 | 19 | 0 | 39 | 1 | 1,292 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
73,694,537 | Is there any way to build a mock GPS app that can set my current location at several places in android studio | <p>Hey I'm a beginner in android java. is there any way to build an android app that can show my current location at several places same time???</p> | Hey I'm a beginner in android java. is there any way to build an android app that can show my current location at several places same time??? | android-studio|mocking|location|android-gps | 0 | 2022-09-12T19:46:00.057Z | 2,022 | 9 | 19 | 0 | 7 | 0 | 141 | 109 | 4 | 0 | false | true | false | false | false | false | zero |
73,694,538 | Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider when calling image from URI in RecyclerView Adapter | <p>I am trying to load an image from URI and my code works in a activity but when I tried to load the image from an <code>RecyclerView.Adapter</code> in <code>onBindViewHolder</code> it shows me this error. And also am calling this adapter from a <code>Fragment</code>.</p>
<p>Edit:</p>
<p>The path of URI is an image wh... | I am trying to load an image from URI and my code works in a activity but when I tried to load the image from an RecyclerView.Adapter in onBindViewHolder it shows me this error. And also am calling this adapter from a Fragment . Edit: The path of URI is an image which user picks from the device and when I have tried to... | android|image|uri|android-permissions|permission-denied | 0 | 2022-09-12T19:46:03.330Z | 2,022 | 9 | 19 | 0 | 20 | 0 | 585 | 138 | 5 | 4 | true | true | false | false | false | false | zero |
73,694,566 | How to send array in custom Firebase analytics event? | <p>I use Firebase Analytics in my project. I created custom event that contains array of items.
In DebugView, I receive error code 21. This error code means that event does not support array parameters.
So, is there any way to solve this error?</p> | I use Firebase Analytics in my project. I created custom event that contains array of items. In DebugView, I receive error code 21. This error code means that event does not support array parameters. So, is there any way to solve this error? | android|firebase-analytics | 0 | 2022-09-12T19:49:19.147Z | 2,022 | 9 | 19 | 0 | 34 | 0 | 241 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
73,694,681 | Specific Activity shareable link in android studio (java) | <p>I want to make an activity to shareable. When the user clicks on that link instead of the home page of the application, specific activity opens but I don't know how to create this.
I made this to share the app link but want to change it to open specific activity(activity name : DifferentScreen).</p>
<pre><code>Inten... | I want to make an activity to shareable. When the user clicks on that link instead of the home page of the application, specific activity opens but I don't know how to create this. I made this to share the app link but want to change it to open specific activity(activity name : DifferentScreen). [CODE] | java|android|android-studio|android-intent|share | 0 | 2022-09-12T20:00:51.023Z | 2,022 | 9 | 20 | 0 | 18 | 1 | 303 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
73,694,688 | Error when running app after updating gradle version - Task :app:generatePackageList FAILED | <p>I'm newbie using react-native and I've been trying to update the gradle version for a few days now..</p>
<p>Currently I use version 6.5, my react-native version is: 0.60.0 I need to update gradle from version 6.5 to version 7.2, but when trying to run the application using this new version of gradle I get the follow... | I'm newbie using react-native and I've been trying to update the gradle version for a few days now.. Currently I use version 6.5, my react-native version is: 0.60.0 I need to update gradle from version 6.5 to version 7.2, but when trying to run the application using this new version of gradle I get the following error:... | android|react-native | 0 | 2022-09-12T20:01:27.603Z | 2,022 | 9 | 20 | 0 | 20 | 0 | 563 | 91 | 2 | 1 | true | true | false | false | false | false | zero |
73,694,727 | Accessing to inner class in java | <p>I'm a beginner in libGdx and I'm making a simple game.</p>
<p>I wrote a nested class. As you can see here:</p>
<pre><code>public class classes{
public class GameObject{
//declaring section
private Texture texture;
private Texture[] spawnAnimation;
private Texture[] de... | I'm a beginner in libGdx and I'm making a simple game. I wrote a nested class. As you can see here: [CODE] I went to the other file, in the other class, and I tried to set the object texture [CODE] once I try to access it. I face this error: aan instance for an enclosing class is required note: I'm making this game for... | java|android|libgdx|2d|game-development | 0 | 2022-09-12T20:05:59.967Z | 2,022 | 9 | 20 | 0 | 38 | 1 | 407 | 32 | 5 | 2 | true | false | false | false | false | false | zero |
73,694,757 | Why can't it find getPackageManager? | <p>I have tried to open the Gmail app via this:</p>
<pre><code>import android.content.Intent;
public class GmailApp {
public static void OpenGmail() {
Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.gm");
if(intent != null){
startActivity(in... | I have tried to open the Gmail app via this: [CODE] It says it can't find it. But how? I've read this article right here Can't find getPackageManager() method in android But I don't understand it. Can anyone give me an example code that will work? | java|android | -3 | 2022-09-12T20:09:53.333Z | 2,022 | 9 | 20 | 0 | 29 | 1 | 251 | 36 | 2 | 1 | true | false | false | false | false | true | negative |
73,694,776 | How to setup Firebase distribution in a flutter app | <p>I'm trying to add firebase distribution to my flutter app following <a href="https://firebase.google.com/docs/android/setup#console" rel="nofollow noreferrer">these instructions</a></p>
<p>Everything is file until I get to step 3.b which says "In your module (app-level) Gradle file (usually //build.gradle), add... | I'm trying to add firebase distribution to my flutter app following these instructions Everything is file until I get to step 3.b which says "In your module (app-level) Gradle file (usually //build.gradle), add the Google services plugin". I can't figure out what "app-module" refers to or where the ... | flutter|build.gradle|flutter-android | 0 | 2022-09-12T20:12:01.480Z | 2,022 | 9 | 20 | 0 | 16 | 0 | 551 | 51 | 3 | 1 | true | true | false | false | false | false | zero |
73,694,781 | How to make Jetpack Compose FlowRow RTL | <p>I want to show a list elements in a <code>FlowRow</code> and I want the <code>FlowRow</code> direction to be RTL.<br />
I tried using <code>CompositionLocalProvider</code> but it didn't change anything:</p>
<pre><code>CompositionLocalProvider(LocalLayoutDirection provides LayoutDirection.Rtl) {
FlowRow(
... | I want to show a list elements in a FlowRow and I want the FlowRow direction to be RTL. I tried using CompositionLocalProvider but it didn't change anything: [CODE] | android|android-jetpack-compose | 1 | 2022-09-12T20:12:22.383Z | 2,022 | 9 | 20 | 0 | 19 | 1 | 164 | 39 | 2 | 1 | true | false | false | false | false | false | low |
73,694,825 | hide only a view from all recycler view items | <p>I have a recycler view item that has few Views. I have a setting that will set the visibility of one Image view after the Recycler view is displayed. What is the best way to achieve this behavior?</p>
<p><a href="https://i.stack.imgur.com/nqOyv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nqOyv... | I have a recycler view item that has few Views. I have a setting that will set the visibility of one Image view after the Recycler view is displayed. What is the best way to achieve this behavior? What I tried, in the adapter ViewHolder class, I set a boolean that would hide the element and then call notifysetDataChang... | java|android|kotlin | 0 | 2022-09-12T20:16:35.913Z | 2,022 | 9 | 20 | 0 | 35 | 2 | 485 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
73,694,872 | Show hourly price on Stripe payment instead of deposit price | <p>For a rental company, we need to set up deferred payment.</p>
<p>When a user rents an item we must lock $25 on his credit card (a deposit).
He will be charged $1 per hour. If he returns his item within 5 hours, he will be charged $5. After 25 hours we consider the item lost and it is charged the full price $25.</p>
... | For a rental company, we need to set up deferred payment. When a user rents an item we must lock $25 on his credit card (a deposit). He will be charged $1 per hour. If he returns his item within 5 hours, he will be charged $5. After 25 hours we consider the item lost and it is charged the full price $25. At the time of... | android|google-api|stripe-payments|payment|google-pay | 3 | 2022-09-12T20:21:33.823Z | 2,022 | 9 | 20 | 0 | 164 | 1 | 812 | 60 | 5 | 1 | true | false | false | false | false | false | low |
73,694,893 | Update button text based on recyclerview item count | <p>I am creating a android project. I have a recyclerview and a button below it. I want to change my button text based on how many items are on the recyclerview.Any help will be appreciated.</p> | I am creating a android project. I have a recyclerview and a button below it. I want to change my button text based on how many items are on the recyclerview.Any help will be appreciated. | java|android|kotlin | -1 | 2022-09-12T20:22:59.073Z | 2,022 | 9 | 20 | 0 | 29 | 1 | 187 | 51 | 3 | 0 | false | false | false | false | false | true | negative |
73,694,958 | Having problem when trying to take 'screenshot' from composable using AndroidView to show video with exoplayer | <p>I'm using jetpack compose to build a screen with a background video using exoplayer and, as we know, exoplayer didn't have native support with compose yet, so we need to start a player using AndroidView. But I need to take a screenshot from the composable, I'm taking the screenshot using:</p>
<pre><code>LocalView.cu... | I'm using jetpack compose to build a screen with a background video using exoplayer and, as we know, exoplayer didn't have native support with compose yet, so we need to start a player using AndroidView. But I need to take a screenshot from the composable, I'm taking the screenshot using: [CODE] And the problem is that... | android|android-jetpack-compose|android-view|exoplayer | 0 | 2022-09-12T20:31:37.530Z | 2,022 | 9 | 20 | 0 | 31 | 0 | 871 | 110 | 4 | 3 | true | true | false | false | false | false | zero |
73,695,027 | Google suggested Security ProviderInstaller downgrade TLS to 1.2? | <p>Using OkHttp and <a href="https://developer.android.com/training/articles/security-gms-provider" rel="nofollow noreferrer">Google Security ProviderInstaller</a> any connection to a domain that supports both TLS1.2 and TLS1.3 are made using 1.2 version. Without ProviderInstaller all works fine using 1.3.</p>
<p>this ... | Using OkHttp and Google Security ProviderInstaller any connection to a domain that supports both TLS1.2 and TLS1.3 are made using 1.2 version. Without ProviderInstaller all works fine using 1.3. this is sample code, using last version of okhttp and play-services-basement on Android 12 [CODE] the log result are [CODE] D... | android|google-play-services|tls1.3|providerinstaller | 3 | 2022-09-12T20:39:58.150Z | 2,022 | 9 | 20 | 0 | 58 | 0 | 463 | 65 | 4 | 2 | true | true | false | false | false | false | low |
73,695,034 | previousBackStackEntry does not function consistently | <p>I've been stuck with the following problem for 2 days now:</p>
<p>I have Composable Main, from where I navigate to a dialog:</p>
<pre><code>@Composable
fun Main(navController: NavHostController) {
val mainViewModel: MainViewModel = viewModel()
val mainViewState by mainViewModel.state.collectAsState()
val placeResu... | I've been stuck with the following problem for 2 days now: I have Composable Main, from where I navigate to a dialog: [CODE] The SearchPlace dialog is defined in NavHost like this: [CODE] And this is how I close SearchPlaceDialog to return to Main: [CODE] Everything works fine: when I first go to SearchPlaceDialog, it ... | android|kotlin|android-jetpack-compose|composable | 0 | 2022-09-12T20:40:39.360Z | 2,022 | 9 | 20 | 0 | 28 | 0 | 589 | 53 | 4 | 3 | true | true | false | false | false | false | zero |
73,695,190 | Hello World Android app which takes the 'hello world' text from the ViewModel and shows in composable | <p>I am creating a sample Android app.</p>
<p>I would just like to have a <code>MainActivity</code> which shows a 'Hello World' composable.</p>
<p>It should retrieve the "Hello World" text from a <code>ViewModel</code>.</p>
<p>Main issue I am having is how to use the <code>ViewModel</code> in <code>MainActivi... | I am creating a sample Android app. I would just like to have a MainActivity which shows a 'Hello World' composable. It should retrieve the "Hello World" text from a ViewModel . Main issue I am having is how to use the ViewModel in MainActivity . I would like to do this without the use of Dagger/Hilt. How can... | android|android-jetpack-compose|android-viewmodel | 0 | 2022-09-12T20:59:01.727Z | 2,022 | 9 | 20 | 0 | 39 | 0 | 331 | 101 | 3 | 0 | false | true | false | false | false | false | zero |
73,695,271 | Import an existing RSA Key / CERT into android keystore (PEM Format / PCKS1) | <p>I am trying to import an existing RSA private / public key into the android keystore (Android 7.0.3.2, Emulator).</p>
<p>I have both keys as PCKS 1 inside PEM files. I tried making them a pcks12 file with openssl, but when I try to import those with the below code:</p>
<pre><code>private void getCertsFromP12(String ... | I am trying to import an existing RSA private / public key into the android keystore (Android 7.0.3.2, Emulator). I have both keys as PCKS 1 inside PEM files. I tried making them a pcks12 file with openssl, but when I try to import those with the below code: [CODE] It says file corrupt or password invalid. When I try t... | java|android | 0 | 2022-09-12T21:09:19.570Z | 2,022 | 9 | 21 | 0 | 15 | 0 | 554 | 76 | 2 | 2 | true | true | false | false | false | false | zero |
73,695,287 | .NET Maui Blazor App not working on Physical Devices | <p>I have created a .NET Maui Blazor app that was working fine on all Android simulators and physical devices until yesterday. The issue is that when I try to run the app through the debugger in Visual Studio clicking the links to navigate to different pages doesn't work, the app is responsive (meaning, I can scroll on... | I have created a .NET Maui Blazor app that was working fine on all Android simulators and physical devices until yesterday. The issue is that when I try to run the app through the debugger in Visual Studio clicking the links to navigate to different pages doesn't work, the app is responsive (meaning, I can scroll on th... | android|.net|maui-blazor | 0 | 2022-09-12T21:11:42.483Z | 2,022 | 9 | 21 | 0 | 208 | 2 | 1,748 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
73,695,294 | Dependency 'androidx.webkit:webkit:1.5.0' requires 'compileSdkVersion' to be set to 32 or higher | <p>According to the <a href="https://pub.dev/packages/webview_flutter" rel="nofollow noreferrer">documentation</a> for "webview_flutter", the package requires Android SDK 20+. Immediately after running <code>flutter pub add webview_flutter</code> and restarting my app (without even attempting to use <code>Web... | According to the documentation for "webview_flutter", the package requires Android SDK 20+. Immediately after running flutter pub add webview_flutter and restarting my app (without even attempting to use WebView yet), I'm greeted with the following error: [CODE] The device I'm testing on and compiling for is ... | flutter|android-webview|webview-flutter | 0 | 2022-09-12T21:12:15.207Z | 2,022 | 9 | 21 | 0 | 601 | 1 | 810 | 96 | 3 | 3 | true | false | false | false | false | false | zero |
73,695,304 | Postgres 12: Emojis/Reactions between iOS and Android | <p>I am adding chat messaging to an iOS app and want to use emojis/reactions within messages (text inside a message) and to messages (as reactions to a message) - very similar to messenger/instagram messages.</p>
<p>We're using Postgres 12 (open to upgrading to 13 or 14, if need be).</p>
<p>Adding emojis/reactions as p... | I am adding chat messaging to an iOS app and want to use emojis/reactions within messages (text inside a message) and to messages (as reactions to a message) - very similar to messenger/instagram messages. We're using Postgres 12 (open to upgrading to 13 or 14, if need be). Adding emojis/reactions as part of the messag... | android|ios|postgresql|cross-platform|emoji | 0 | 2022-09-12T21:13:31.393Z | 2,022 | 9 | 21 | 0 | 24 | 0 | 941 | 53 | 5 | 0 | false | true | false | false | false | false | zero |
73,695,396 | Add a "Share/Send To" capability to an Android app | <p>I am developing an Android app that has the feature of converting a video to an audio file.</p>
<p>I want to add a feature that makes the user able to enter his studio, then when they click on the <code>video-share</code> option (to share the video), to find my application icon at the bottom. Without the need to ope... | I am developing an Android app that has the feature of converting a video to an audio file. I want to add a feature that makes the user able to enter his studio, then when they click on the video-share option (to share the video), to find my application icon at the bottom. Without the need to open the application. How ... | java|android|video | 0 | 2022-09-12T21:24:47.613Z | 2,022 | 9 | 21 | 0 | 27 | 1 | 334 | 50 | 3 | 0 | false | false | false | false | false | false | zero |
73,695,456 | How to Edit or customize a android wear operation system | <p>is there any method to customize or edit in the operation system itself " android wear " for watch , the editing can be manual no problem edit programing or some icons or some screen shape or edit design ext...
I want to edit this and reinstall it as update to my watch if it possible .</p> | is there any method to customize or edit in the operation system itself " android wear " for watch , the editing can be manual no problem edit programing or some icons or some screen shape or edit design ext... I want to edit this and reinstall it as update to my watch if it possible . | javascript|android|xml|android-studio|android-layout | -1 | 2022-09-12T21:31:48.653Z | 2,022 | 9 | 21 | 0 | 9 | 0 | 296 | 56 | 5 | 0 | false | true | false | false | false | true | negative |
73,695,782 | Viewing android.jar files in Android studio | <p>I have a question on viewing android.jar files in Android studio.</p>
<p>I'm looking at the android.jar in Android API 19 platform.</p>
<p>There is a class, AlarmManager.java
The class contains a variable: private final IAlarmManager mService;
IAlarmManager is red, and I'm seeing "Cannot resolve symbol IAlarmMa... | I have a question on viewing android.jar files in Android studio. I'm looking at the android.jar in Android API 19 platform. There is a class, AlarmManager.java The class contains a variable: private final IAlarmManager mService; IAlarmManager is red, and I'm seeing "Cannot resolve symbol IAlarmManager" Why i... | android|android-studio|jar | 0 | 2022-09-12T22:17:07.403Z | 2,022 | 9 | 22 | 0 | 13 | 0 | 476 | 43 | 3 | 0 | false | true | false | false | false | false | zero |
73,695,836 | Additional small file when installing mobile card game. What be? | <p>I play a mobile online card game that is also available on PC and Mac. When I download the 650ish MB install file for android from the Google play store, as soon as I start it up it asks me to download a very small file, 2-3 mb (it varies slightly) which I am also asked to do after every update which are about twice... | I play a mobile online card game that is also available on PC and Mac. When I download the 650ish MB install file for android from the Google play store, as soon as I start it up it asks me to download a very small file, 2-3 mb (it varies slightly) which I am also asked to do after every update which are about twice a ... | android | -1 | 2022-09-12T22:26:13.960Z | 2,022 | 9 | 22 | 0 | 14 | 0 | 707 | 64 | 1 | 0 | false | true | false | false | false | true | negative |
73,695,844 | Cannot change number of audio channels field for mediarecorder | <p>For an application, I'm setting up the <a href="https://developer.android.com/reference/android/media/MediaRecorder" rel="nofollow noreferrer"><code>MediaRecorder</code></a> using the following:</p>
<pre><code>mediaRecorder.setAudioSource(AudioSource.MIC);
mediaRecorder.setVideoSource(VideoSource.SURFACE);
Camcorder... | For an application, I'm setting up the MediaRecorder using the following: [CODE] Despite setting cpHigh.audioChannels = 2; the saved files have mono audio. If I change the code to have mediaRecorder.setAudioChannels(2); instead, it still doesn't work; I'm still seeing Mono, instead of Stereo. Any idea why? | android|mediarecorder|android-mediarecorder | 0 | 2022-09-12T22:27:24.233Z | 2,022 | 9 | 22 | 0 | 17 | 0 | 307 | 62 | 3 | 1 | true | true | false | false | false | false | zero |
73,695,851 | I don't see what's wrong with my code because every time I run it and go to the second screen in kotlin, it crashes. Is there any logic thats wrong? | <p>Basically, this is the second activity code. My app is a math game where it gives you random numbers and depending on the gamemode you are playing, it will either ask you to add or subtrtact or multiply or divide the numbers. The home screen is 4 buttons and each button says one of addition subtraction multiplicatio... | Basically, this is the second activity code. My app is a math game where it gives you random numbers and depending on the gamemode you are playing, it will either ask you to add or subtrtact or multiply or divide the numbers. The home screen is 4 buttons and each button says one of addition subtraction multiplication a... | android|kotlin | -1 | 2022-09-12T22:28:27.987Z | 2,022 | 9 | 22 | 0 | 38 | 0 | 694 | 148 | 2 | 1 | true | true | false | false | false | true | negative |
73,696,086 | How to make instrumented test if I need to use @Composable? | <p>I had an instrumented test that worked, however, then was added additional param to the object which required to call the <code>@Composable</code> function, so the entire test method should be marked as <code>@Composable</code>, so I added this annotation to the function, however, it starts to throw the error:</p>
<... | I had an instrumented test that worked, however, then was added additional param to the object which required to call the @Composable function, so the entire test method should be marked as @Composable , so I added this annotation to the function, however, it starts to throw the error: [CODE] So, the method looks like ... | android|unit-testing|android-jetpack-compose|jetpack|instrumented-test | 0 | 2022-09-12T23:06:35.683Z | 2,022 | 9 | 23 | 0 | 21 | 0 | 542 | 59 | 5 | 3 | true | true | false | false | false | false | zero |
73,696,120 | Network requests not working on react native | <p>I need you help.
For several days I have spent hours and hours trying, and looking for a solution but nothing.</p>
<p>I have to make a network request to use the <a href="https://www.themoviedb.org/documentation/api" rel="nofollow noreferrer">TMDB API</a>.
So I do this (for example):</p>
<pre><code> const url = '... | I need you help. For several days I have spent hours and hours trying, and looking for a solution but nothing. I have to make a network request to use the TMDB API . So I do this (for example): [CODE] But I never have response. I have try with fetch and Axios, but it's always the same: no response, no error, noting. Th... | android|react-native|axios|fetch | -1 | 2022-09-12T23:12:05.767Z | 2,022 | 9 | 23 | 0 | 56 | 1 | 777 | 44 | 4 | 1 | true | false | false | false | false | true | negative |
73,696,173 | How can fragments switched from action/toolbar custom button/menu Item? | <p>[How can I use this + on the toolbar to switch from one fragment to another?<a href="https://i.stack.imgur.com/FcyaX.png" rel="nofollow noreferrer">1</a></p> | [How can I use this + on the toolbar to switch from one fragment to another? 1 | android|kotlin|menu | -1 | 2022-09-12T23:27:11.447Z | 2,022 | 9 | 23 | 0 | 21 | 0 | 78 | 71 | 3 | 0 | false | true | false | false | false | true | negative |
73,696,541 | Instrumental testing - how to check the view is not existing (JetpackCompose)? | <p>I am using Jetpack compose and there is such an implementation</p>
<pre><code>...
imgRes?.let {
Spacer(modifier = Modifier.width(4.dp))
Image(
painter = it,
contentDescription = when (metadata.hasSubscription) {
true -> stringResource(id... | I am using Jetpack compose and there is such an implementation [CODE] So, when imgRes is not null, I put the view on the screen with dedicated contentDescription according to the hasSubscription state, correspondently in testing, I am checking if the view with specific contentDescription existing on the screen, however... | android|unit-testing|testing | 0 | 2022-09-13T00:52:05.127Z | 2,022 | 9 | 0 | 1 | 37 | 0 | 606 | 78 | 3 | 1 | true | true | false | false | false | false | zero |
73,696,547 | How to add depedency dagger hilt in new Android Studio Eel? | <p>So I updated my android studio version from Dolphin to the newest one (Eel)</p>
<p>build.gradle (project) only contains plugins (<strong>no buildscript, repositories, and dependencies</strong>):</p>
<pre><code>plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version... | So I updated my android studio version from Dolphin to the newest one (Eel) build.gradle (project) only contains plugins ( no buildscript, repositories, and dependencies ): [CODE] and the build.gradle (module) [CODE] I am confused because when I put this code in the build.gradle [CODE] the error shown [CODE] | android|gradle|dagger-hilt | 0 | 2022-09-13T00:53:50.703Z | 2,022 | 9 | 0 | 1 | 49 | 1 | 309 | 59 | 3 | 4 | true | false | false | false | false | false | zero |
73,696,594 | FCM push notifications for Android not working direct to token | <p>These used to work and now do not. I can't pinpoint exactly when they stopped working.
I am using Capacitor 3 and upgraded from Capacitor 2 recently.</p>
<p>"@capacitor-community/fcm": "^2.0.2",
"@capacitor/push-notifications": "^1.0.9"</p>
<p><strong>This is the error I get:<... | These used to work and now do not. I can't pinpoint exactly when they stopped working. I am using Capacitor 3 and upgraded from Capacitor 2 recently. "@capacitor-community/fcm": "^2.0.2", "@capacitor/push-notifications": "^1.0.9" This is the error I get: [CODE] Things I have test... | android|ionic-framework|firebase-cloud-messaging|capacitor | -1 | 2022-09-13T01:05:33.907Z | 2,022 | 9 | 1 | 1 | 46 | 1 | 1,882 | 62 | 4 | 6 | true | false | false | false | false | true | negative |
73,696,622 | Android alarm manager only repeats once after reboot | <p>I'm trying to send a broadcast intent using alarm manager roughly every 60 seconds</p>
<p>I'm using the following function to set the alarm manager:</p>
<pre><code>fun alarm(context: Context) {
println("load alarms5")
val alarmManager =
context.getSystemService(Context.ALARM_SER... | I'm trying to send a broadcast intent using alarm manager roughly every 60 seconds I'm using the following function to set the alarm manager: [CODE] If I use the function normally it sets the alarm correctly and I every 60 seconds or so the intent is sent. But when I use the following function to set the alarm when the... | android|kotlin|android-intent|broadcastreceiver|alarmmanager | 0 | 2022-09-13T01:12:52.777Z | 2,022 | 9 | 1 | 1 | 25 | 0 | 489 | 52 | 5 | 4 | true | true | false | false | false | false | zero |
73,696,891 | How to set the size of the indicator icon in Indicator3? | <p>I am used ViewPager2 and CircleIndicator 3 for my image slider but the size of the unselected and selected icons isn't equal.</p>
<p><a href="https://i.stack.imgur.com/OEI5X.png" rel="nofollow noreferrer">image description</a></p>
<p>This is my code:</p>
<pre><code><me.relex.circleindicator.CircleIndicator3
... | I am used ViewPager2 and CircleIndicator 3 for my image slider but the size of the unselected and selected icons isn't equal. image description This is my code: [CODE] Anyone knows how to set size (width and height) for the indicator icon? Any help will be appreciated. Thanks! | java|android|viewpagerindicator | 0 | 2022-09-13T02:14:49.037Z | 2,022 | 9 | 2 | 1 | 32 | 0 | 277 | 56 | 3 | 1 | true | true | false | false | false | false | zero |
73,697,054 | I had a crash running the Android project | <p>I had a crash after upgrading Gradle to 7.5.3 -" couldn't find libflutter.so ". I don't know if this is due to my upgrade or not, I have specified the machine class to compile on in build.gradle and declared "jnilibs.srcdir 'libs'".<a href="https://i.stack.imgur.com/J9GB8.png" rel="nofollow noref... | I had a crash after upgrading Gradle to 7.5.3 -" couldn't find libflutter.so ". I don't know if this is due to my upgrade or not, I have specified the machine class to compile on in build.gradle and declared "jnilibs.srcdir 'libs'". enter image description here enter image description here | android | 0 | 2022-09-13T02:48:17.263Z | 2,022 | 9 | 2 | 1 | 28 | 0 | 310 | 41 | 1 | 0 | false | true | false | false | false | false | zero |
73,697,110 | Problemas con la autenticación de Google - GoogleClientId - WebClientId en React Native | <p>I'm making my app in Expo and I decided to authenticate with Google so I used the command "<strong>npx create-expo-app --template bare-minimum</strong>" to be able to use native code. I followed the steps of Firebase -> "**<a href="https://rnfirebase.io/**%22" rel="nofollow noreferrer">https://rnfi... | I'm making my app in Expo and I decided to authenticate with Google so I used the command " npx create-expo-app --template bare-minimum " to be able to use native code. I followed the steps of Firebase -> "** https://rnfirebase.io/**" . When I change the code for " webClientId " I get this... | firebase|react-native|android-studio|google-cloud-platform|google-oauth | 0 | 2022-09-13T02:58:41.957Z | 2,022 | 9 | 2 | 1 | 38 | 0 | 594 | 87 | 5 | 1 | true | true | false | false | false | false | zero |
73,697,116 | Add enabled_accessibility_services to batch file command | <p>I am making a batch file that installs some apps for the user by using adb. Some of the apps need accessibility services enabled, so it runs command:
<code>adb shell settings put secure enabled_accessibility_services package.name/service.name</code></p>
<p>the problem is, when I change the value of <code>enabled_acc... | I am making a batch file that installs some apps for the user by using adb. Some of the apps need accessibility services enabled, so it runs command: adb shell settings put secure enabled_accessibility_services package.name/service.name the problem is, when I change the value of enabled_accessibility_services it ruins ... | android|batch-file|adb | 0 | 2022-09-13T02:59:47.080Z | 2,022 | 9 | 2 | 1 | 27 | 0 | 859 | 56 | 3 | 0 | false | true | false | false | false | false | zero |
73,697,328 | Handle background task every second in both android and ios with react native | <p>I want to process background task to send location data every second to server,
I tried a few libraries but it doesn't work with 1s cycle
I read some articles that ios is very strict about this
Currently, is there any way I can make this work well on both android and ios?</p> | I want to process background task to send location data every second to server, I tried a few libraries but it doesn't work with 1s cycle I read some articles that ios is very strict about this Currently, is there any way I can make this work well on both android and ios? | android|react-native|background-process | 0 | 2022-09-13T03:44:04.093Z | 2,022 | 9 | 3 | 1 | 28 | 0 | 272 | 77 | 3 | 0 | false | true | false | false | false | false | zero |
73,697,354 | firebase App Check won't verify app in firestore in release mode but does in debug mode when app check is enforced on real device | <p>So I implemented App check in my android studio project. And since it was a new app with no users I thought it best to enforce app check from the start. And I have no problem running the app if the app is running on debug mode. But when I create a release APK or bundle I app won't read anything from the Firebase Fir... | So I implemented App check in my android studio project. And since it was a new app with no users I thought it best to enforce app check from the start. And I have no problem running the app if the app is running on debug mode. But when I create a release APK or bundle I app won't read anything from the Firebase Firest... | android | 0 | 2022-09-13T03:49:02.410Z | 2,022 | 9 | 3 | 1 | 42 | 2 | 567 | 129 | 1 | 1 | true | false | false | false | false | false | zero |
73,697,439 | Flutter: Should GoogleService-Info.plist be in git ignore | <h2>Description of issue</h2>
<p>I have a flutter GitHub repo which only has the following git ignore items. I am encountering several different issues that I believe are all related and am looking for some help with regards to what items should be added to gitignore to prevent issues when working on this repo with oth... | Description of issue I have a flutter GitHub repo which only has the following git ignore items. I am encountering several different issues that I believe are all related and am looking for some help with regards to what items should be added to gitignore to prevent issues when working on this repo with other collabora... | android|ios|git|flutter|dart | 0 | 2022-09-13T04:04:15.520Z | 2,022 | 9 | 4 | 1 | 54 | 0 | 1,349 | 57 | 5 | 3 | true | true | false | false | false | false | zero |
73,697,520 | Execution failed for task ':backend:endpointsClientLibs' when increasing com.android.tools.build:gradle version | <p>I get this error when I try to upgrade my project level gradle from <code>'com.android.tools.build:gradle:7.0.4'</code> to <code>'com.android.tools.build:gradle:7.2.2'</code> (Or anything higher than 7.0.4 in general):</p>
<pre><code>Unable to find method ''java.lang.reflect.Type com.fasterxml.jackson.databind.intro... | I get this error when I try to upgrade my project level gradle from 'com.android.tools.build:gradle:7.0.4' to 'com.android.tools.build:gradle:7.2.2' (Or anything higher than 7.0.4 in general): [CODE] The error in the logs says: [CODE] Looks like it is related to the cloud endpoints module I have. Is there a fix for thi... | android|gradle|google-cloud-endpoints | 0 | 2022-09-13T04:19:55.723Z | 2,022 | 9 | 4 | 1 | 25 | 0 | 375 | 111 | 3 | 2 | true | true | false | false | false | false | zero |
73,697,595 | Prevent android activity from expanding into navigation bar | <p>I am using a NativeActivity with the style <code>@android:style/Theme.DeviceDefault.NoActionBar.FullScreen</code>. However, the Activity expanded behind the system navigation bar, which is not what I want.</p>
<p>(Black region on the left is due to device cutout, which is what I intended)</p>
<p>I tried to search ab... | I am using a NativeActivity with the style @android:style/Theme.DeviceDefault.NoActionBar.FullScreen . However, the Activity expanded behind the system navigation bar, which is not what I want. (Black region on the left is due to device cutout, which is what I intended) I tried to search about this topic and couldn't f... | android|android-activity|navigation|styles | 0 | 2022-09-13T04:34:20.253Z | 2,022 | 9 | 4 | 1 | 29 | 1 | 425 | 59 | 4 | 0 | false | false | false | false | false | false | zero |
73,697,663 | While loop only shows the last record in android studio | <p>I created an Arraylist in my db_operation.java</p>
<pre><code>public ArrayList<House> viewAllHouse(){
SQLiteDatabase db = getReadableDatabase();
String sql = "SELECT * FROM HOUSE";
Cursor cursor = db.rawQuery(sql,null);
ArrayList<House> houses = new ArrayList<>();
if (... | I created an Arraylist in my db_operation.java [CODE] and followed by the HouseAdapter.java [CODE] and this is where I show the customer the houselist [CODE] but the issue is it only shows the last record only. if i have 3 records it shows 3 records but the last record is repeated 3 times. please help pardon my lack of... | java|android-studio | 0 | 2022-09-13T04:50:03.813Z | 2,022 | 9 | 4 | 1 | 33 | 1 | 355 | 55 | 2 | 3 | true | false | false | false | false | false | zero |
73,697,695 | Share post is not working on ios but same working on android this is ionic app | <p><strong>Share post is not working on ios but same working on android this is ionic app</strong>
Hi everyone! i am working on ionic app and i have integrated walls.io. basically this is a social wall where we have posts. and i have embedded iframe of this library. where user can see posts and share post on facebook ... | Share post is not working on ios but same working on android this is ionic app Hi everyone! i am working on ionic app and i have integrated walls.io. basically this is a social wall where we have posts. and i have embedded iframe of this library. where user can see posts and share post on facebook ,twitter etc its work... | android|ios|ionic-framework | 1 | 2022-09-13T04:56:54.877Z | 2,022 | 9 | 4 | 1 | 18 | 0 | 381 | 78 | 3 | 0 | false | true | false | false | false | false | low |
73,697,709 | Download Speed is slow in Android | <p>I have a list of PDFs that I need to download all PDFs in one click. I have implemented a foreground service to do the task. In this service I am enqueuing the list of PDFs in the Android DownloadManager's request to handle the downloads.</p>
<p>For the enqueue of request, I am inserting 6 PDF's in request for the f... | I have a list of PDFs that I need to download all PDFs in one click. I have implemented a foreground service to do the task. In this service I am enqueuing the list of PDFs in the Android DownloadManager's request to handle the downloads. For the enqueue of request, I am inserting 6 PDF's in request for the first time ... | android|performance|android-studio|android-download-manager | 2 | 2022-09-13T04:59:55.453Z | 2,022 | 9 | 4 | 1 | 50 | 0 | 703 | 33 | 4 | 2 | true | true | false | false | false | false | low |
73,697,756 | Cannot create an instance of class ViewModel - android | <p>I have <code>ViewModel</code> like bellow:</p>
<pre><code>class LoginViewModel(
private val networkAvailable: NetworkAvailable,
private val app: Application,
private val getLoginUseCase: GetLoginUseCase
) : AndroidViewModel(app) {
.....
}
</code></pre>
<p>And here is <code>LoginViewModelFactory</code>:... | I have ViewModel like bellow: [CODE] And here is LoginViewModelFactory : [CODE] I edited like bellow but not work: [CODE] And: [CODE] And here: [CODE] And: [CODE] And: [CODE] I can't call LoginViewModel | android|dagger-2|android-viewmodel|dagger-hilt | 0 | 2022-09-13T05:09:25.753Z | 2,022 | 9 | 5 | 1 | 56 | 1 | 202 | 54 | 4 | 7 | true | false | false | false | false | false | zero |
73,697,778 | Mac M1 react-native error occurs,,,,error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. Please help me | <p>error Failed to launch emulator. Reason: No emulators found as an output of <code>emulator -list-avds</code>.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...</p>
<blockquote>
<p>Configure project :app
Unable to detect AGP versions for included... | error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds . warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. info Installing the app... Configure project :app Unable to detect AGP versions for included builds. All projects in the build ... | javascript|reactjs|react-native|android-studio|sdk | -1 | 2022-09-13T05:12:18.767Z | 2,022 | 9 | 5 | 1 | 74 | 0 | 5,086 | 149 | 5 | 0 | false | true | false | false | false | true | negative |
73,697,801 | how to pass xFile as a function parameter in flutter | <p>I want to upload images to the server using flutter and HTTP package. I am able to display user-selected images but I want to upload them to the server but when I try to pass the image file to the function it gives me an error.</p>
<p><strong>Image Picker Code :</strong></p>
<pre><code> XFile? uploadimage;
final I... | I want to upload images to the server using flutter and HTTP package. I am able to display user-selected images but I want to upload them to the server but when I try to pass the image file to the function it gives me an error. Image Picker Code : [CODE] **services file code ** [CODE] function body [CODE] | android|flutter|http | 0 | 2022-09-13T05:16:14.550Z | 2,022 | 9 | 5 | 1 | 31 | 2 | 306 | 52 | 3 | 3 | true | false | false | false | false | false | zero |
73,697,931 | Where does libc.so come from on android app? | <p>The callstack from firebase crashlytics contains a lot of unsymbolized functions from android native library ( libc.so, libui.so, libbinder.so .... )<br />
I'm tring to know what is the function.<br />
But i don't know how to get debug symbols of the shared libraries.<br />
I even don't know where shared libraries c... | The callstack from firebase crashlytics contains a lot of unsymbolized functions from android native library ( libc.so, libui.so, libbinder.so .... ) I'm tring to know what is the function. But i don't know how to get debug symbols of the shared libraries. I even don't know where shared libraries come from. Is it conta... | android|linux | 0 | 2022-09-13T05:36:45.673Z | 2,022 | 9 | 5 | 1 | 23 | 0 | 379 | 44 | 2 | 0 | false | true | false | false | false | false | zero |
73,698,094 | Show info messages for all markers in android goolge map | <p><br />
I want to show infoMessage for all markers that i show in map fragment, just like this:</p>
<p><a href="https://i.stack.imgur.com/Wz7Cq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wz7Cq.jpg" alt="enter image description here" /></a></p>
<p>Now, i just can show for one marker and i think... | I want to show infoMessage for all markers that i show in map fragment, just like this: Now, i just can show for one marker and i think normally it couldnt possible to do\ any idea? Im working with android studio and java. | java|android|google-maps | -2 | 2022-09-13T05:56:52.560Z | 2,022 | 9 | 5 | 1 | 25 | 0 | 222 | 56 | 3 | 0 | false | true | false | false | false | true | negative |
73,698,118 | icon and screenshots update issue | <p>3 months ago I had updated my game icon and screenshots and after a few days, I again updated the new icon and continuously update the icon & ss but it still showed the old icon and ss plzzz anyone can guide what the issue and what I have to do to resolve the issue?</p> | 3 months ago I had updated my game icon and screenshots and after a few days, I again updated the new icon and continuously update the icon & ss but it still showed the old icon and ss plzzz anyone can guide what the issue and what I have to do to resolve the issue? | android | -2 | 2022-09-13T05:59:35.150Z | 2,022 | 9 | 5 | 1 | 9 | 0 | 266 | 33 | 1 | 0 | false | true | false | false | false | true | negative |
73,698,119 | Javascript in Android Studio | <p>How can I show javascript extension in android studio while writing an API in android studio using nodejs?</p> | How can I show javascript extension in android studio while writing an API in android studio using nodejs? | javascript|android|node.js|android-studio|extension-methods | 0 | 2022-09-13T05:59:55.647Z | 2,022 | 9 | 5 | 1 | 23 | 0 | 106 | 28 | 5 | 0 | false | true | false | false | false | false | zero |
73,698,131 | Question on the behaviour of Android push notification system (Android 10 and above) | <p>Is it possible that a downloaded and installed app can still do push notifications even though the <strong>user has never once launched</strong> the app?</p> | Is it possible that a downloaded and installed app can still do push notifications even though the user has never once launched the app? | android|push-notification|google-play | 0 | 2022-09-13T06:01:22.447Z | 2,022 | 9 | 6 | 1 | 32 | 1 | 136 | 84 | 3 | 0 | false | false | false | false | false | false | zero |
73,698,148 | Getting the string from the server side and separating the code fragment from the string in Kotlin | <p>I made an Android application where the users ask questions, but they may use programming codes in their questions. How can I separate the programming codes from the normal texts in Kotlin? If you can explain, I want to change the background of the codes. Like this
<a href="https://i.stack.imgur.com/azZe4.jpg" rel="... | I made an Android application where the users ask questions, but they may use programming codes in their questions. How can I separate the programming codes from the normal texts in Kotlin? If you can explain, I want to change the background of the codes. Like this enter image description here | java|android|android-studio|kotlin|frontend | 0 | 2022-09-13T06:03:11.027Z | 2,022 | 9 | 6 | 1 | 41 | 1 | 294 | 98 | 5 | 0 | false | false | false | false | false | false | zero |
73,698,187 | Gradle always downloads dependencies with latest version | <p>I have an app that uses 'library 1' and 'library 2' . Let's say library1 uses coil version-1(an image library for example) and library2 uses coil version 2... when implementing both library 1 and library 2 in my app... only the latest version of coil i.e., coil version 2 is downloaded... is there any way to mitigate... | I have an app that uses 'library 1' and 'library 2' . Let's say library1 uses coil version-1(an image library for example) and library2 uses coil version 2... when implementing both library 1 and library 2 in my app... only the latest version of coil i.e., coil version 2 is downloaded... is there any way to mitigate th... | android|gradle|android-gradle-plugin|dependencies | 0 | 2022-09-13T06:07:22.577Z | 2,022 | 9 | 6 | 1 | 35 | 2 | 329 | 56 | 4 | 0 | false | false | false | false | false | false | zero |
73,698,332 | The property 'files' can't be unconditionally accessed because the receiver can be 'null' | <p>Recently i made a file_picker using bloc builder, and then i couldn't make a variable because there's an error on this code:</p>
<pre><code> onTap: () async {
FilePickerResult? result = await FilePicker.platform.pickFiles();
PlatformFile file = result.files.first;
if (res... | Recently i made a file_picker using bloc builder, and then i couldn't make a variable because there's an error on this code: [CODE] the error that being highlighted is on PlatformFile file = result.files.first; and here's my full code: [CODE] | android|ios|flutter|dart|filepicker | 0 | 2022-09-13T06:23:13.840Z | 2,022 | 9 | 6 | 1 | 54 | 3 | 242 | 89 | 5 | 2 | true | false | false | false | false | false | zero |
73,698,497 | Android application restarts while selecting the location permission | <p>I am trying to build an application that ask for the location permission. I am trying to resolve an issue that application restarts while selecting the location permission. So what happens is when I select the option "while using the app.." the app restarts and goes to * Main.class*.
What am I doing wrong ... | I am trying to build an application that ask for the location permission. I am trying to resolve an issue that application restarts while selecting the location permission. So what happens is when I select the option "while using the app.." the app restarts and goes to * Main.class*. What am I doing wrong her... | java|android-studio|google-maps|android-permissions | 0 | 2022-09-13T06:39:59.197Z | 2,022 | 9 | 6 | 1 | 25 | 1 | 499 | 68 | 4 | 2 | true | false | false | false | false | false | zero |
73,698,596 | /usr/bin/env: ‘sh\r’: No such file or directory in linux while running react-native | <p>I'm windows user transitioning to linux. I've set up environment and everything according to docs but when i run npx react-native run-android i'm getting following error. What is the solution? I've tried installing dos2unix nad running <code>dos2unix ./gradlew clean</code> for testing and it says gradlew not found. ... | I'm windows user transitioning to linux. I've set up environment and everything according to docs but when i run npx react-native run-android i'm getting following error. What is the solution? I've tried installing dos2unix nad running dos2unix ./gradlew clean for testing and it says gradlew not found. Envoirnment vari... | android|linux|react-native|android-studio|gradle | 0 | 2022-09-13T06:49:20.943Z | 2,022 | 9 | 6 | 1 | 31 | 1 | 417 | 83 | 5 | 1 | true | false | false | false | false | false | zero |
73,698,821 | Bluetooth in react-native in new Android 12 and above | <p>I am trying to scan Bluetooth Devices but startDiscovery just won't work, I have tried some old solutions of this but still no solution is working here. I have tried using some packages but they don't provide the solution I want.</p>
<pre class="lang-java prettyprint-override"><code>package com.bt67;
import android... | I am trying to scan Bluetooth Devices but startDiscovery just won't work, I have tried some old solutions of this but still no solution is working here. I have tried using some packages but they don't provide the solution I want. [CODE] This is the code I have written to startDiscovery() of Bluetooth Device but it is n... | java|android|react-native|bluetooth | 0 | 2022-09-13T07:08:59.107Z | 2,022 | 9 | 7 | 1 | 60 | 2 | 429 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
73,699,217 | How to convert ByteString to Image in Android? | <p>I'm trying to convert from ByteString to Image once i receive the ByteString from Socket Connection.</p>
<p>A string which I received from Socket Connection onMessage
<strong>[size=302697hex=7c53657276657252657475726e4469723d54454d505f4449527c496d61676546696c654e616d653d496d6167655f3030312e6a70677c030905ffd8ffe00010... | I'm trying to convert from ByteString to Image once i receive the ByteString from Socket Connection. A string which I received from Socket Connection onMessage [size=302697hex=7c53657276657252657475726e4469723d54454d505f4449527c496d61676546696c654e616d653d496d6167655f3030312e6a70677c030905ffd8ffe000104a…] How can I get... | android|image|kotlin|sockets | 0 | 2022-09-13T07:43:40.877Z | 2,022 | 9 | 7 | 1 | 38 | 1 | 491 | 46 | 4 | 0 | false | false | false | false | false | false | zero |
73,699,248 | Error Kotlin: Could not find com.android.tools.build:aapt2:7.2.2-7984345 | <p>how to solve this error?
Error Gradle Kotlin:</p>
<p>'Could not find com.android.tools.build:aapt2:7.2.2-7984345'</p>
<p>This error comes when I want to run the app.</p>
<p><a href="https://i.stack.imgur.com/QWVog.png" rel="nofollow noreferrer">enter image description here</a></p> | how to solve this error? Error Gradle Kotlin: 'Could not find com.android.tools.build:aapt2:7.2.2-7984345' This error comes when I want to run the app. enter image description here | android|android-studio|kotlin | -1 | 2022-09-13T07:46:22.740Z | 2,022 | 9 | 7 | 1 | 45 | 0 | 180 | 72 | 3 | 0 | false | true | false | false | false | true | negative |
73,699,284 | DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath' | <p>I am new to android development and I was developing an eye detecting video player app but I am getting this weird error in build i.e. when i am trying to run the app on my device:
Caused by: <code>org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve al... | I am new to android development and I was developing an eye detecting video player app but I am getting this weird error in build i.e. when i am trying to run the app on my device: Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files f... | android|android-studio|gradle|android-gradle-plugin|build.gradle | 0 | 2022-09-13T07:48:49.013Z | 2,022 | 9 | 7 | 1 | 56 | 0 | 559 | 128 | 5 | 4 | true | true | false | false | false | false | zero |
73,699,291 | Setting container width automatically in flutter | <p>I am loading data from Api. So I need to set it inside a container. So I can't set a fixed width. The width should change automatically or expand according to the length of data. Is there any way to do this?</p> | I am loading data from Api. So I need to set it inside a container. So I can't set a fixed width. The width should change automatically or expand according to the length of data. Is there any way to do this? | android|flutter|flutter-layout|containers | 0 | 2022-09-13T07:49:16.630Z | 2,022 | 9 | 7 | 1 | 27 | 2 | 207 | 48 | 4 | 0 | false | false | false | false | false | false | zero |
73,699,332 | How to decrease execution time in transposed convolution operation? | <p>I have implemented an encoder-decoder architecture-based neural network with Neural Network API(NNAPI) Android Ndk.</p>
<p>There are 5 encoders and 5 decoders.
The first encoder's input dimension is -> 1x160084 and the last encoder's output dimensions are 1x624. It takes 6 seconds to finish.
Every encoder contain... | I have implemented an encoder-decoder architecture-based neural network with Neural Network API(NNAPI) Android Ndk. There are 5 encoders and 5 decoders. The first encoder's input dimension is -> 1x160084 and the last encoder's output dimensions are 1x624. It takes 6 seconds to finish. Every encoder contains two convolu... | neural-network|android-ndk|encoder-decoder|nnapi | -1 | 2022-09-13T07:52:20.783Z | 2,022 | 9 | 7 | 1 | 19 | 0 | 1,376 | 67 | 4 | 0 | false | true | false | false | false | true | negative |
73,699,525 | Adding cookies to Custom Tabs in Android | <p>I'm trying to pass a cookie to custom tabs like in webview so that the user doesn't have to login, I've seen other questions but all of them were 6+ years old so I'm wondering if it's possible to do that now. Did they implement a direct way to pass cookies or is it gonna be a workaround?</p> | I'm trying to pass a cookie to custom tabs like in webview so that the user doesn't have to login, I've seen other questions but all of them were 6+ years old so I'm wondering if it's possible to do that now. Did they implement a direct way to pass cookies or is it gonna be a workaround? | android|kotlin|chrome-custom-tabs|android-customtabs | 0 | 2022-09-13T08:07:05.850Z | 2,022 | 9 | 8 | 1 | 41 | 1 | 288 | 40 | 4 | 0 | false | false | false | false | false | false | zero |
73,699,560 | How to convert a list object to other list object in kotlin | <p>I have a list of products and a list of types, but to know what type the product belongs to I need to rely on the ID in the type list, so I need to convert it to a new NewProducts list and its type is a String, not an Integer.</p>
<pre><code>data class Product(val id:String,val name:String,val price:Float,val type:I... | I have a list of products and a list of types, but to know what type the product belongs to I need to rely on the ID in the type list, so I need to convert it to a new NewProducts list and its type is a String, not an Integer. [CODE] corresponding to the above data is the JSON snippet below: Products: [CODE] and Type m... | java|android|android-studio|kotlin | 0 | 2022-09-13T08:09:22.493Z | 2,022 | 9 | 8 | 1 | 44 | 2 | 449 | 59 | 4 | 5 | true | false | false | false | false | false | zero |
73,699,573 | Saving progressbar progress when changing to landscape(Android,Java) | <p>I am trying to save the progress of a progressbar when changing screen oriantation. I really dont know where to look for the answer and hope someone here could help me.</p>
<p>XML</p>
<pre><code> android:id="@+id/pb"
style="?android:attr/progressBarStyleHorizontal"
android:... | I am trying to save the progress of a progressbar when changing screen oriantation. I really dont know where to look for the answer and hope someone here could help me. XML [CODE] I have button where everytime it get clicked on will increase the progress, but when i change the oriantation the progress resets. Thanks in... | java|android|android-studio | 0 | 2022-09-13T08:10:10.653Z | 2,022 | 9 | 8 | 1 | 29 | 1 | 329 | 68 | 3 | 1 | true | false | false | false | false | false | zero |
73,699,595 | How can I recolor texts and icons that exist in androidx.preference, BottomNavigationView, and DrawerLayout automatically when the user changes theme | <p><em>The user can change the appearance of the app from the SettingsFragment.</em></p>
<p><em>The SettingsFragment built using <a href="https://developer.android.com/jetpack/androidx/releases/preference" rel="nofollow noreferrer">androidx.preference</a></em></p>
<p><em>When the user changes the appearance from the ap... | The user can change the appearance of the app from the SettingsFragment. The SettingsFragment built using androidx.preference When the user changes the appearance from the app settings, onConfigurationChanged will be called instead of recreating the activity. That means I should set the colors to texts and icons that e... | android | 0 | 2022-09-13T08:11:54.030Z | 2,022 | 9 | 8 | 1 | 15 | 0 | 672 | 149 | 1 | 1 | true | true | false | false | false | false | zero |
73,699,614 | Android Studio My name is not displaying in second activity after passing through first Activity | <p><a href="https://i.stack.imgur.com/sxDX7.jpg" rel="nofollow noreferrer">Main Activity 2</a></p>
<p><a href="https://i.stack.imgur.com/D7gd4.jpg" rel="nofollow noreferrer">MAIN ACTIVITY</a></p>
<p>Android Studio My name is not displaying in second activity after passing through first Activity</p> | Main Activity 2 MAIN ACTIVITY Android Studio My name is not displaying in second activity after passing through first Activity | android-studio | 0 | 2022-09-13T08:13:16.633Z | 2,022 | 9 | 8 | 1 | 25 | 4 | 126 | 96 | 1 | 0 | false | false | false | false | false | false | zero |
73,699,617 | The method loadContainerPreferNonDefault takes too long during initialization | <p>As docs <a href="https://developers.google.com/tag-platform/tag-manager/android/v4#init" rel="nofollow noreferrer">https://developers.google.com/tag-platform/tag-manager/android/v4#init</a> describing, the method loadContainerPreferNonDefault is non-blocking, while it still takes more than 500ms in Pixel 3.</p>
<p><... | As docs https://developers.google.com/tag-platform/tag-manager/android/v4#init describing, the method loadContainerPreferNonDefault is non-blocking, while it still takes more than 500ms in Pixel 3. Is the duration normal? Or the container file(11KB) is too large to load quickly. | android|google-tag-manager | 0 | 2022-09-13T08:13:20.807Z | 2,022 | 9 | 8 | 1 | 16 | 0 | 279 | 77 | 2 | 0 | false | true | false | false | false | false | zero |
73,699,634 | Cannot access 'androidx.lifecycle.LifecycleOwner | <p>what should I do for handle this error?</p>
<p>I have done it before and it work
now I create new project and faced this error
how can I solve this?</p>
<p><a href="https://i.stack.imgur.com/Zn2fe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zn2fe.png" alt="enter image description here" /></a>
... | what should I do for handle this error? I have done it before and it work now I create new project and faced this error how can I solve this? | classpath|androidx|lifecycle|conflict | 0 | 2022-09-13T08:14:41.567Z | 2,022 | 9 | 8 | 1 | 8 | 0 | 141 | 48 | 4 | 0 | false | true | false | false | false | false | zero |
73,699,640 | File format not supported when sharing through whatsapp | <pre><code> val share: Intent
try {
share = Intent(Intent.ACTION_SEND)
share.putExtra(Intent.EXTRA_TEXT, shareString)
if (media != null) {
share.putExtra(Intent.EXTRA_STREAM, media)
share.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
if (FileUtilities... | [CODE] // Here media is the media uri // Sharing for the video working fine but when I try to share an image I am getting the error that file format not supported enter image description here | android|kotlin|android-intent|share | 0 | 2022-09-13T08:14:58.827Z | 2,022 | 9 | 8 | 1 | 30 | 0 | 191 | 55 | 4 | 1 | true | true | false | false | false | false | zero |
73,699,670 | Error when trying to create a view model factory class in Android Kotlin | <p>I get this error when trying to create a view model factory class. I have no idea to fix this. Can anyone help me please?</p>
<pre><code>Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option
</code></pre>
<p><a href="https://i.stack.imgur.com/BJcew.png" rel="nofollow nore... | I get this error when trying to create a view model factory class. I have no idea to fix this. Can anyone help me please? [CODE] Error ViewModel Factory [CODE] } | android|kotlin|mvvm|viewmodel|android-viewmodel | 0 | 2022-09-13T08:17:41.053Z | 2,022 | 9 | 8 | 1 | 55 | 1 | 161 | 72 | 5 | 2 | true | false | false | false | false | false | zero |
73,699,748 | my firestore query is not working in android | <p>i am working on an application where i am using search for my users fetching data from firestore and trying to execute a query but it is not working please guide me why it is not working</p>
<p><strong>CODE FOR SEARCHVIEW</strong></p>
<pre><code> searchbar.setOnQueryTextListener(new SearchView.OnQueryTextListener()... | i am working on an application where i am using search for my users fetching data from firestore and trying to execute a query but it is not working please guide me why it is not working CODE FOR SEARCHVIEW [CODE] CODE FOR SEARCHDATA METHOD [CODE] | java|android|firebase|google-cloud-firestore | 0 | 2022-09-13T08:22:44.890Z | 2,022 | 9 | 8 | 1 | 38 | 0 | 247 | 44 | 4 | 2 | true | true | false | false | false | false | zero |
73,699,847 | INSTALL_PARSE_FAILED_MANIFEST_MALFORMED adb ERROR while running an app in Flutter | <p>I am trying to launch an app on my Emulator (Android 12, API 31). I am receiving the following error which prevents the app from launching:</p>
<pre><code>**adb: failed to install /Users/mac/Flutter_Projects/aatawala-app/build/app/outputs/flutter-apk/app.apk: Failure
[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed ... | I am trying to launch an app on my Emulator (Android 12, API 31). I am receiving the following error which prevents the app from launching: [CODE] I have added the following lines in my AndroidManifest.xml file, within both the and [CODE] AndroidManifest.xml Code : [CODE] I would like to know what exactly is causing th... | android|flutter|android-studio | 0 | 2022-09-13T08:30:20.470Z | 2,022 | 9 | 8 | 1 | 28 | 1 | 349 | 81 | 3 | 3 | true | false | false | false | false | false | zero |
73,699,942 | android studio TV application arrow keys not working any solution? | <p>i have an android TV application built in android studio, i have a home page activity containg 4 linearLayouts to be clickable</p>
<p>the problem is when the activity is opened, i click on RIGHT arrow to focus on first linearlayout but nothing is clicked or focused</p>
<p>It is working by using the mouse...i don't w... | i have an android TV application built in android studio, i have a home page activity containg 4 linearLayouts to be clickable the problem is when the activity is opened, i click on RIGHT arrow to focus on first linearlayout but nothing is clicked or focused It is working by using the mouse...i don't want to use the mo... | android|android-tv|leanback | 0 | 2022-09-13T08:39:31.110Z | 2,022 | 9 | 8 | 1 | 24 | 0 | 412 | 66 | 3 | 2 | true | true | false | false | false | false | zero |
73,700,018 | How to get currency according to country code in Android? | <p>In below code I can get country code (2 alpha). Is it possible to get currency according to the country code? If yes please tell me how? I don't want to add any runtime permission for this app.</p>
<pre><code>final TelephonyManager tm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
final St... | In below code I can get country code (2 alpha). Is it possible to get currency according to the country code? If yes please tell me how? I don't want to add any runtime permission for this app. [CODE] | java|android|location|currency | 1 | 2022-09-13T08:45:37.977Z | 2,022 | 9 | 8 | 1 | 53 | 1 | 200 | 57 | 4 | 1 | true | false | false | false | false | false | low |
73,700,041 | how to create folder in android/app/src/main with expo eas? | <p>I'm working on to make android application with react-native and expo.
I'm using library to render some 3d object.</p>
<p><strong>.obj format file need to be in android/app/src/main/assets to use that library.</strong></p>
<p>I can load pictures something like .jpg, .png but .obj.</p>
<p>I don't control the android ... | I'm working on to make android application with react-native and expo. I'm using library to render some 3d object. .obj format file need to be in android/app/src/main/assets to use that library. I can load pictures something like .jpg, .png but .obj. I don't control the android folder with git because it creates too mu... | android|react-native|expo|eas|expo-file-system | 0 | 2022-09-13T08:47:18.640Z | 2,022 | 9 | 8 | 1 | 48 | 0 | 832 | 59 | 5 | 0 | false | true | false | false | false | false | zero |
73,700,168 | Simpler way to create multiple appends for a custom numpad | <p>is there a faster/simpler way to make this:? I'm creating a numpad in my Android App which I use 10 buttons for and a delete button. Right now I'm doing it like this but like this it's gonna take a lot of code.</p>
<pre><code> num0.setOnClickListener(){
editTextNumberPassword.append("0")
}
... | is there a faster/simpler way to make this:? I'm creating a numpad in my Android App which I use 10 buttons for and a delete button. Right now I'm doing it like this but like this it's gonna take a lot of code. [CODE] | android|android-studio|kotlin | 0 | 2022-09-13T08:57:05.810Z | 2,022 | 9 | 8 | 1 | 32 | 1 | 217 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
73,700,293 | how to integrate offline google map of specific area in android studio java | <p>i'm new in android developer its been a week since i am working on application to provide offline google map of specific area i was trying so much but can't go near to solve it i now i need to use a tiles but i don't know how. if any one know how to how to integrate offline google map so please help me out i am stu... | i'm new in android developer its been a week since i am working on application to provide offline google map of specific area i was trying so much but can't go near to solve it i now i need to use a tiles but i don't know how. if any one know how to how to integrate offline google map so please help me out i am stuck i... | java|android | 0 | 2022-09-13T09:05:33.267Z | 2,022 | 9 | 9 | 1 | 21 | 0 | 495 | 75 | 2 | 0 | false | true | false | false | false | false | zero |
73,700,305 | Flutter Mapbox GL doesn't work after closing the apk (and opening again) | <p><code>MapBox</code> works on emulator and when connected via cable, but it doesn't work on the APK, precisely: it works the <strong>first time</strong> you open the apk(it draws a path on a map), but when you close the app and open it again, it doesn't draw any path.</p>
<p>Deleting user data and cache didn't do the... | MapBox works on emulator and when connected via cable, but it doesn't work on the APK, precisely: it works the first time you open the apk(it draws a path on a map), but when you close the app and open it again, it doesn't draw any path. Deleting user data and cache didn't do the trick, only clean uninstall and install... | flutter|mapbox|flutter-dependencies|mapbox-gl|mapbox-android | -1 | 2022-09-13T09:06:23.993Z | 2,022 | 9 | 9 | 1 | 39 | 1 | 515 | 72 | 5 | 0 | false | false | false | false | false | true | negative |
73,700,307 | Flutter android build.gradle unable to resolve class GradleException | <p>In my flutter app, <code>flutter build apk</code> succeeds without warning but android.app.build.gradle has an error in this code:</p>
<pre><code>def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flu... | In my flutter app, flutter build apk succeeds without warning but android.app.build.gradle has an error in this code: [CODE] The error is unable to resolve class GradleException whereis flutter returns "/home/mark/dev/flutter/bin/flutter". flutter doctor -v returns Flutter version 3.3.1 on channel stable at /... | android|flutter | 0 | 2022-09-13T09:06:39.870Z | 2,022 | 9 | 9 | 1 | 115 | 0 | 460 | 68 | 2 | 1 | true | true | false | false | false | false | zero |
73,700,353 | I want to click on a button that is under (behind) the BottomSheetDialogFragment. Is it possible to do this? | <ol>
<li>I want to click on a button that is under (behind) the BottomSheetDialogFragment. Is it possible to do this? (see diagram)</li>
</ol>
<p><img src="https://i.stack.imgur.com/JySL5.png" alt="Diagram png" /></p>
<ol start="2">
<li>I am also interested in the question, is it possible for the BottomSheetDialogFragm... | I want to click on a button that is under (behind) the BottomSheetDialogFragment. Is it possible to do this? (see diagram) I am also interested in the question, is it possible for the BottomSheetDialogFragment to collapse not completely but half of its entire height when the user does MotionEvent.ACTION_DOWN not on it? | android|android-bottomsheetdialog|bottomsheetdialogfragment | 0 | 2022-09-13T09:10:18.260Z | 2,022 | 9 | 9 | 1 | 32 | 0 | 320 | 108 | 3 | 0 | false | true | false | false | false | false | zero |
73,700,522 | how to upload image to server using dio flutter | <p>I want to upload an image from flutter to the server but I am failed. I tried with http package but it not worked. Then i found dio package useful and easy but I am getting following error when I use <strong>FormData</strong>.</p>
<p><strong>the name 'FormData' is defined in the libraries 'package:dio/src/form_data.... | I want to upload an image from flutter to the server but I am failed. I tried with http package but it not worked. Then i found dio package useful and easy but I am getting following error when I use FormData . the name 'FormData' is defined in the libraries 'package:dio/src/form_data.dart (via package:dio/dio.dart)' a... | android|flutter|dart|dio | 0 | 2022-09-13T09:24:19.563Z | 2,022 | 9 | 9 | 1 | 32 | 2 | 503 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
73,700,642 | Recycler view with volley library in not showing items (Kotlin) | <p>The App is working fine The JSON data has also been fetched but the recycler view not showing the data even the recycler view is also not showing.</p>
<p>Here Im Sharing my code below please help me to find out the problem,</p>
<p>My app does not show any error while compiling, all app working completely fine.</p>
<... | The App is working fine The JSON data has also been fetched but the recycler view not showing the data even the recycler view is also not showing. Here Im Sharing my code below please help me to find out the problem, My app does not show any error while compiling, all app working completely fine. course_rv_item.xml [CO... | android|xml|kotlin|gradle | 0 | 2022-09-13T09:33:49.147Z | 2,022 | 9 | 9 | 1 | 29 | 1 | 448 | 63 | 4 | 6 | true | false | false | false | false | false | zero |
73,700,656 | Why is MediumTopAppBar (and Large) showing two TextField in compose? | <p>I am trying to make the title of a screen editable.</p>
<pre class="lang-kotlin prettyprint-override"><code>MediumTopAppBar(
title = {
val name: String? = "Some Title"
var input by remember { mutableStateOf(name ?: "") }
when (state.isEditingTitle) {
true -... | I am trying to make the title of a screen editable. [CODE] When I click on the title Text(...) and the view gets recomposed the AppBar shows two TextFields How do I ignore the top one and only show the one in the bottom, like the Text() is only shown in the bottom? (Fyi: the two TextInputs have their own remembered sta... | android-jetpack-compose|compose-recomposition | 0 | 2022-09-13T09:34:59.273Z | 2,022 | 9 | 9 | 1 | 28 | 1 | 663 | 68 | 2 | 1 | true | false | false | false | false | false | zero |
73,700,706 | How to call final outside class in flutter? | <p>My form bloc is showing the alert "LateInitializationError: Field 'fileFieldBloc' has not been initialized". I initialize <code>final InputFieldBloc<PlatformFile?,Object> fileFieldBloc;</code> inside <code>class HomePage extends StatefulWidget</code> which was a stateful widget, but i can't call <cod... | My form bloc is showing the alert "LateInitializationError: Field 'fileFieldBloc' has not been initialized". I initialize final InputFieldBloc<PlatformFile?,Object> fileFieldBloc; inside class HomePage extends StatefulWidget which was a stateful widget, but i can't call fileFieldBloc inside class _HomePageSta... | android|ios|flutter|dart|bloc | 0 | 2022-09-13T09:38:02.260Z | 2,022 | 9 | 9 | 1 | 33 | 2 | 584 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
73,700,744 | Proguard rules for Jetpack GameActivity | <p>I'm trying to use <a href="https://developer.android.com/games/agdk/game-activity" rel="nofollow noreferrer">Jetpack GameActivity</a> in my project, but I encounter a strange issue with Proguard. My project has 2 modules, <code>app</code> and <code>my-lib</code>:</p>
<ul>
<li><p><code>my-lib</code> module has <code>... | I'm trying to use Jetpack GameActivity in my project, but I encounter a strange issue with Proguard. My project has 2 modules, app and my-lib : my-lib module has MyActivity which extends GameActivity : api 'androidx.games:games-activity:1.2.1' app module has MainActivity which extends MyActivity from my-lib module impl... | android|android-ndk | 0 | 2022-09-13T09:40:04.510Z | 2,022 | 9 | 9 | 1 | 25 | 0 | 1,203 | 39 | 2 | 0 | false | true | false | false | false | false | zero |
73,700,763 | Caused by: org.gradle.api.GradleException: File google-services.json is missing. The Google Services Plugin cannot function without it | <p>I added the depndecies and plugins and of course the json file to the right place but stiil got the error above</p> | I added the depndecies and plugins and of course the json file to the right place but stiil got the error above | android|firebase|kotlin | 0 | 2022-09-13T09:41:30.913Z | 2,022 | 9 | 9 | 1 | 26 | 0 | 111 | 134 | 3 | 0 | false | true | false | false | false | false | zero |
73,700,777 | how to solve this kotlin plugin problem in android project? | <p>I cloned this udacity project and seems to have an earlier version of kotlin plugin and gradle. all good until i add a new fragment so when the gradle sync it shows this error</p>
<p>Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org... | I cloned this udacity project and seems to have an earlier version of kotlin plugin and gradle. all good until i add a new fragment so when the gradle sync it shows this error Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains... | android|kotlin|gradle | 0 | 2022-09-13T09:42:40.570Z | 2,022 | 9 | 9 | 1 | 50 | 1 | 528 | 59 | 3 | 0 | false | false | false | false | false | false | zero |
73,700,808 | On touch close AndroidX DialogFragment | <p>Any ideas...?
Using import androidx.fragment.app.DialogFragment, I want to close the dialog when the user touches it. Touch outside dialog closes the dialog (good). I tried</p>
<pre><code>dialog!!.setCancelable(true) // no effect
dialog!!.onTouchEvent...// not intuitive solution
</code></pre>
<p>There is no onClick ... | Any ideas...? Using import androidx.fragment.app.DialogFragment, I want to close the dialog when the user touches it. Touch outside dialog closes the dialog (good). I tried [CODE] There is no onClick event and I do not want a button. Thanks | kotlin|androidx|dialogfragment | 0 | 2022-09-13T09:44:44.887Z | 2,022 | 9 | 9 | 1 | 34 | 1 | 240 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
73,700,811 | Android Virtual Device Look Embaded window to Android Studio | <p>I am new to mobile development, i have a really simple problem but i couldn't solve it</p>
<p>For use Android Virtual Device, I installed Android Studio and downlaod Pixel 2 phone in Device Manager. When i started device, it looks inside the Android Studio window, there is screenshot <a href="https://i.stack.imgur.c... | I am new to mobile development, i have a really simple problem but i couldn't solve it For use Android Virtual Device, I installed Android Studio and downlaod Pixel 2 phone in Device Manager. When i started device, it looks inside the Android Studio window, there is screenshot Virtual device in Android Studio window . ... | android|android-studio|virtual-device-manager | 0 | 2022-09-13T09:45:14.130Z | 2,022 | 9 | 9 | 1 | 16 | 1 | 533 | 60 | 3 | 0 | false | false | false | false | false | false | zero |
73,700,839 | How to override TalkBack announcement for SearchView | <p>My app has a SearchView component implemented in the menu bar like this:</p>
<pre><code><item
android:id="@+id/global_tx_list_toolbar_search"
android:icon="@drawable/ic_search_mag_glass_24dp"
android:title="Search"
app:actionViewClass="androidx.appcompat.widget.S... | My app has a SearchView component implemented in the menu bar like this: [CODE] With TalkBack on, when I click the search icon and the SearchView widget opens, it announces "Space, edit box, ...". I would like it to announce "Search, edit box, ..." How can I do this? I cannot reference the internal ... | android|searchview|talkback | 0 | 2022-09-13T09:46:42.970Z | 2,022 | 9 | 9 | 1 | 16 | 0 | 390 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
73,700,893 | Why I got : Unhandled Exception: 'package:flutter/src/material/scaffold.dart | <p>I'm new with flutter and I want to connect devices with bluetooth. Actually the scan is workin very well but for connecting devices an exception was occured.
The exception is :
<strong>Unhandled Exception: 'package:flutter/src/material/scaffold.dart': Failed assertion: line 269 pos 7: '_scaffolds.isNotEmpty': Scaffo... | I'm new with flutter and I want to connect devices with bluetooth. Actually the scan is workin very well but for connecting devices an exception was occured. The exception is : Unhandled Exception: 'package:flutter/src/material/scaffold.dart': Failed assertion: line 269 pos 7: '_scaffolds.isNotEmpty': ScaffoldMessenger... | android|flutter|dart|bluetooth|scaffold | 0 | 2022-09-13T09:51:11.237Z | 2,022 | 9 | 9 | 1 | 42 | 1 | 469 | 76 | 5 | 1 | true | false | false | false | false | false | zero |
73,700,906 | Dragging Fragments | <p>I have an android app showing multiple fragments on the screen. It is mainly used on tablets. I would like to have the possibility to reposition those fragments by dragging them. Something like the windows are moved on the PC/Mac</p>
<p>Currently, they are fixed in FrameLayout containers inside the main ConstraintLa... | I have an android app showing multiple fragments on the screen. It is mainly used on tablets. I would like to have the possibility to reposition those fragments by dragging them. Something like the windows are moved on the PC/Mac Currently, they are fixed in FrameLayout containers inside the main ConstraintLayout. I ca... | android|android-fragments|drag-and-drop | 0 | 2022-09-13T09:51:49.947Z | 2,022 | 9 | 9 | 1 | 12 | 0 | 344 | 18 | 3 | 0 | false | true | 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.