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,003,994 | Add queries in runtime possible? | <p>is it possible to add queries in runtime? I know it is possible to change configurations and permissions but e.g if I want my app to interact with data of any app on my phone which is possible by having the packagename. But after API 30 I need to specify Apps I want to interact with as queries in the AndroidManifes... | is it possible to add queries in runtime? I know it is possible to change configurations and permissions but e.g if I want my app to interact with data of any app on my phone which is possible by having the packagename. But after API 30 I need to specify Apps I want to interact with as queries in the AndroidManifest.xm... | android | 0 | 2022-07-16T11:57:57.817Z | 2,022 | 7 | 11 | 5 | 32 | 2 | 587 | 32 | 1 | 0 | false | false | false | false | false | false | zero |
73,004,024 | How can i give input to my app through link? | <p>Basically I have made a video player app and everything is working fine. It can stream video through link when user enters the link of video in a particular activity but how can I make a link through which the video link can directly go inside my Uri code and stream the video..</p> | Basically I have made a video player app and everything is working fine. It can stream video through link when user enters the link of video in a particular activity but how can I make a link through which the video link can directly go inside my Uri code and stream the video.. | java|android|android-studio | 0 | 2022-07-16T12:02:29.287Z | 2,022 | 7 | 12 | 5 | 17 | 0 | 278 | 44 | 3 | 0 | false | true | false | false | false | false | zero |
73,004,208 | How do I save an image which was retrieved from an SQLite database into a object class object | <p>I have a database (recipeDB), a table called Recipes (int id, String name, int duration, blob image), and a custom class called Recipe (int id, String name, int duration, int image).</p>
<p>This is the code from the handler. When saving the image into the database, I converted the JPEG file using</p>
<p><strong>EDIT... | I have a database (recipeDB), a table called Recipes (int id, String name, int duration, blob image), and a custom class called Recipe (int id, String name, int duration, int image). This is the code from the handler. When saving the image into the database, I converted the JPEG file using EDIT 1 [CODE] The problem is,... | java|android|sqlite|android-studio | 0 | 2022-07-16T12:27:24.877Z | 2,022 | 7 | 12 | 5 | 33 | 0 | 632 | 93 | 4 | 4 | true | true | false | false | false | false | zero |
73,004,214 | CountDownTimer in Android ViewModel executes onFinish twice | <p>I tried to implement a timer in a ViewModel that after ten seconds returns to the previous view, but it doesn't work at all. I wonder if CountDownTimer can even be used in a ViewModel.</p>
<pre class="lang-kotlin prettyprint-override"><code>class PairingScreenViewModel(
private val routing: NavController,
) : Vi... | I tried to implement a timer in a ViewModel that after ten seconds returns to the previous view, but it doesn't work at all. I wonder if CountDownTimer can even be used in a ViewModel. [CODE] EDIT: This is my MainActivity.kt, I am probably doing something wrong with NavHostController. This is the first time I use andro... | android|kotlin|timer|android-viewmodel | 0 | 2022-07-16T12:28:36.737Z | 2,022 | 7 | 12 | 5 | 61 | 1 | 361 | 59 | 4 | 2 | true | false | false | false | false | false | zero |
73,004,239 | Flutter/Dart Data Class | <p>Currently I'm building a self practice eCommerce app using flutter (my back-end is in Laravel). Every time I make a model class, I always come across the issues in fromMap methods.</p>
<p>Currently I cant store my api response to the order (orders and orderItems class is given below).</p>
<p>Error says <strong>Unhan... | Currently I'm building a self practice eCommerce app using flutter (my back-end is in Laravel). Every time I make a model class, I always come across the issues in fromMap methods. Currently I cant store my api response to the order (orders and orderItems class is given below). Error says Unhandled Exception: type 'Lis... | android|json|laravel|flutter|dart | 0 | 2022-07-16T12:32:52.720Z | 2,022 | 7 | 12 | 5 | 369 | 0 | 513 | 23 | 5 | 4 | true | true | false | false | false | false | zero |
73,004,276 | How to remove or modify the space between title and message, and the space between message and button bar from alert dialog? | <p>I have implemented alert dialog using <strong>AlertDialog.Builder</strong> and used <strong>Theme.AppCompat.Light.Dialog.Alert theme</strong>. The problem I'm facing is I need to remove the space between the title and the message and the space between the message and the button bar from the alert dialog.</p>
<p><a h... | I have implemented alert dialog using AlertDialog.Builder and used Theme.AppCompat.Light.Dialog.Alert theme . The problem I'm facing is I need to remove the space between the title and the message and the space between the message and the button bar from the alert dialog. Here's my initial code to build the alert dialo... | android|android-appcompat|android-theme | 0 | 2022-07-16T12:37:43.663Z | 2,022 | 7 | 12 | 5 | 34 | 0 | 384 | 124 | 3 | 2 | true | true | false | false | false | false | zero |
73,004,355 | JNI DETECTED ERROR IN APPLICATION - crash while loading image from URL | <p>When I try to load some specific images that are somehow distorted I get the below error and then my app crashes:</p>
<pre><code>JNI DETECTED ERROR IN APPLICATION: JNI NewFloatArray called with pending exception java.lang.IllegalArgumentException: Parameter d must be in the range [0..1], was 10.35546875
java_vm_... | When I try to load some specific images that are somehow distorted I get the below error and then my app crashes: [CODE] This is how I try to load the image from URL: [CODE] This is the image I try to load and it crashes: image How can I catch this error so my app won't crash? I read similar questions but I couldn't fi... | java|android|java-native-interface|fresco | 1 | 2022-07-16T12:48:42.430Z | 2,022 | 7 | 12 | 5 | 71 | 0 | 344 | 70 | 4 | 2 | true | true | false | false | false | false | low |
73,004,384 | 'D:\flutter' is not recognized as an internal or external command, operable program or batch file | <p>Launching lib\main.dart on SM A908N in debug mode...
lib\main.dart:1
'D:\flutter' is not recognized as an internal or external command,
operable program or batch file.
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)</p> | Launching lib\main.dart on SM A908N in debug mode... lib\main.dart:1 'D:\flutter' is not recognized as an internal or external command, operable program or batch file. Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm) | flutter|gradle|visual-studio-code|android-emulator|assemble | 0 | 2022-07-16T12:52:59.360Z | 2,022 | 7 | 12 | 5 | 67 | 2 | 245 | 97 | 5 | 0 | false | false | false | false | false | false | zero |
73,004,412 | In Android, why 2 strings point to the same object if they are initialized by the same value, but not when the string goes through an intent? | <p>Why two different <code>String</code> variables point to the same object if they are initialized by the same value, but they point to different object if the string is passed through an <code>Intent</code>?</p>
<p>For example:</p>
<pre><code>public class MainActivity extends Activity {
public static String text... | Why two different String variables point to the same object if they are initialized by the same value, but they point to different object if the string is passed through an Intent ? For example: [CODE] [CODE] The output is [CODE] My question is why textC and MainActivity.textA point to the same "abc" but text... | android|string|android-intent | 1 | 2022-07-16T12:57:17.727Z | 2,022 | 7 | 12 | 5 | 49 | 1 | 360 | 141 | 3 | 3 | true | false | false | false | false | false | low |
73,004,455 | Flutter List View automatically scroll to the top with big item | <p>I'm using flutter 3.0.1,</p>
<p>I want to make a big scrollable list view with a lot of items. And then, automatically scroll to one element. I know how to do it, but I'm having trouble with the big list.</p>
<p>I've made a video of my problem. <a href="https://youtube.com/shorts/ekvsMC8Azrc" rel="nofollow noreferre... | I'm using flutter 3.0.1, I want to make a big scrollable list view with a lot of items. And then, automatically scroll to one element. I know how to do it, but I'm having trouble with the big list. I've made a video of my problem. https://youtube.com/shorts/ekvsMC8Azrc In the video you can see that I have a lot of big ... | android|flutter|listview | 1 | 2022-07-16T13:03:59.863Z | 2,022 | 7 | 13 | 5 | 162 | 1 | 1,100 | 63 | 3 | 2 | true | false | false | false | false | false | low |
73,004,557 | Jetpack Compose: Reading and storing Byte array from a URL stream in a Coroutine scope | <p>I am trying to use the Android MLKit text recognition tool to read the text in an image from the internet.</p>
<p>It requires an <code>InputImage</code> object, and I want to create one using the <a href="https://developers.google.com/android/reference/com/google/mlkit/vision/common/InputImage#fromByteArray(byte%5B%... | I am trying to use the Android MLKit text recognition tool to read the text in an image from the internet. It requires an InputImage object, and I want to create one using the fromByteArray method. I planned on opening a URL stream and reading it into a Byte array, in the code below. But I got a android.os.NetworkOnMai... | android|kotlin|android-jetpack-compose|kotlin-coroutines | 0 | 2022-07-16T13:19:55.670Z | 2,022 | 7 | 13 | 5 | 149 | 1 | 741 | 86 | 4 | 2 | true | false | false | false | false | false | zero |
73,004,584 | compileReleaseJavaWithJavac' task (current target 1.7) and 'compileReleaseKotlin' task (current target 1.8) jvm target compatibility should be same | <p>I'm Using a third party library as a jar download in my project called "bandlibrary". Getting following error.</p>
<p>[root@ip-172-31-23-189 hsandroidconsumer]# ./gradlew assembleABCRelease
Configuration on demand is an incubating feature.</p>
<blockquote>
<p>Configure project :app
Warning: The 'kotlin-and... | I'm Using a third party library as a jar download in my project called "bandlibrary". Getting following error. [root@ip-172-31-23-189 hsandroidconsumer]# ./gradlew assembleABCRelease Configuration on demand is an incubating feature. Configure project :app Warning: The 'kotlin-android-extensions' Gradle plugin... | java|android|kotlin|gradle|jvm | 0 | 2022-07-16T13:25:06.643Z | 2,022 | 7 | 13 | 5 | 28 | 0 | 1,707 | 147 | 5 | 0 | false | true | false | false | false | false | zero |
73,004,725 | testing Repository class that takes DAO parameter | <p>I am learning Kotlin to build a note app. I have created a repository class as shown below which takes a Dao parameter. For now, the source of data is just Dao but in the tutorial I am following, it calls an API class as well.</p>
<p>What I want to know is how do I test a repository classes logic?</p>
<pre><code>imp... | I am learning Kotlin to build a note app. I have created a repository class as shown below which takes a Dao parameter. For now, the source of data is just Dao but in the tutorial I am following, it calls an API class as well. What I want to know is how do I test a repository classes logic? [CODE] My test which is pass... | android|kotlin|junit4 | 2 | 2022-07-16T13:47:39.643Z | 2,022 | 7 | 13 | 5 | 37 | 0 | 559 | 49 | 3 | 2 | true | true | false | false | false | false | low |
73,004,726 | android studio access to google fit wear os | <p>How can i take access?</p>
<p>I am trying to create a project for my University.
Well, i want to get access to google fit with my <strong>wear</strong> to count steps (historical and real time).So far i make with the follow way.</p>
<pre><code> mSensorManager = (SensorManager)getSystemService(Context.SENSOR_SERVICE)... | How can i take access? I am trying to create a project for my University. Well, i want to get access to google fit with my wear to count steps (historical and real time).So far i make with the follow way. [CODE] Actually with Sensor Manager. Now i want to keep the data from the previous days.How? | java|android|android-studio|wear-os|android-sensors | 0 | 2022-07-16T13:47:45.403Z | 2,022 | 7 | 13 | 5 | 28 | 0 | 297 | 43 | 5 | 1 | true | true | false | false | false | false | zero |
73,004,747 | How to get EnabledSystemUIMode (i.e. system status/nav bar appearing or not), or get notified when the mode is changed in Flutter? | <p>In Flutter, we can <code>SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);</code> to make the app fullscreen (i.e. hide Android system status bar and nav bar).</p>
<p>However, I observed that, if the user manually swipes from bottom of screen upwards, the system bars will re-appear again. The big problem ... | In Flutter, we can SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); to make the app fullscreen (i.e. hide Android system status bar and nav bar). However, I observed that, if the user manually swipes from bottom of screen upwards, the system bars will re-appear again. The big problem is, Flutter code has no... | android|ios|flutter|dart | 0 | 2022-07-16T13:51:03.767Z | 2,022 | 7 | 13 | 5 | 18 | 1 | 717 | 130 | 4 | 0 | false | false | false | false | false | false | zero |
73,004,783 | Why Device Tree Changes With Newer Android Version? | <p>I Have Oreo Based Stock Rom And Its Relevant Device Tree.
I Want To Build Latest Version Of Aosp Or LineageOs Then Why Do I Need To Port My Current Device Tree To Newer Android Version.
As Far As I Knows Device Tree Is A Hardware Description And Should Not Change With Android Version Because The Hardware Information... | I Have Oreo Based Stock Rom And Its Relevant Device Tree. I Want To Build Latest Version Of Aosp Or LineageOs Then Why Do I Need To Port My Current Device Tree To Newer Android Version. As Far As I Knows Device Tree Is A Hardware Description And Should Not Change With Android Version Because The Hardware Information Is... | android|android-source|device-tree|lineageos | -2 | 2022-07-16T13:57:01.923Z | 2,022 | 7 | 13 | 5 | 138 | 1 | 691 | 51 | 4 | 0 | false | false | false | false | false | true | negative |
73,004,934 | How to change background color of button MaterialToolbar? | <p>How to change color of button MaterialToolbar when it pass to state pressed?</p>
<pre class="lang-xml prettyprint-override"><code> <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/main_toolbar"
android:layout_width="match_parent"
android:layout_he... | How to change color of button MaterialToolbar when it pass to state pressed? [CODE] On screenshot pressed state is round figure I tried to use ColorStateList , it does not work with MaterialToolbar . But worked with LinearLayout . [CODE] [CODE] | android|android-layout|android-xml | 3 | 2022-07-16T14:18:44.147Z | 2,022 | 7 | 14 | 5 | 284 | 4 | 244 | 57 | 3 | 3 | true | false | false | false | false | false | low |
73,004,956 | I can't redirect to another page when I click on listview | <p>I'm designing a phone book application, I've done most things, but I can't go to the profile of the person whose name I clicked. I would appreciate if you explain the use of setOnListener in detail.</p>
<p>class MainActivity : AppCompatActivity() {</p>
<pre><code>var listView: ListView? = null
lateinit var binding:... | I'm designing a phone book application, I've done most things, but I can't go to the profile of the person whose name I clicked. I would appreciate if you explain the use of setOnListener in detail. class MainActivity : AppCompatActivity() { [CODE] } My UserListAdapter codes: i don't know what to do now i hope help me ... | android|kotlin|adapter | 1 | 2022-07-16T14:21:41.867Z | 2,022 | 7 | 14 | 5 | 33 | 0 | 335 | 57 | 3 | 2 | true | true | false | false | false | false | low |
73,004,963 | Cannot find method getGridView() in Android View Binding | <p>I am using <a href="https://developer.android.com/topic/libraries/view-binding" rel="nofollow noreferrer">view binding</a> with Java and have the following activity_main XML file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
... | I am using view binding with Java and have the following activity_main XML file [CODE] The official example in the docs shows that views can be accessed through a camel-case getter, like this: [CODE] According to the example in the docs then, I should be able to access the GridView from the binding like this [CODE] How... | java|android|android-viewbinding | 1 | 2022-07-16T14:23:06.133Z | 2,022 | 7 | 14 | 5 | 58 | 1 | 401 | 56 | 3 | 3 | true | false | false | false | false | false | low |
73,005,030 | How to remove Unnecessary Blank space above Stack-Pageview inside Scaffold in Flutter? | <p><a href="https://i.stack.imgur.com/hptDS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hptDS.jpg" alt="The space is marked with the arrow" /></a>I'm making an on-boarding screen. Everything is working as expected but there is some space above the image as can be seen in the provided image which ... | I'm making an on-boarding screen. Everything is working as expected but there is some space above the image as can be seen in the provided image which shouldn't be there. I tried using MediaQuery.removePadding but that didn't help. Please look at the code and if you can suggest anything please do. I had the same proble... | android|flutter|dart|flutter-layout|flutter-pageview | 0 | 2022-07-16T14:32:40.700Z | 2,022 | 7 | 14 | 5 | 47 | 2 | 449 | 86 | 5 | 1 | true | false | false | false | false | false | zero |
73,005,172 | How to convert APK to AAB using Command Link | <p>I have an <strong>.apk</strong> File and need to convert it to <strong>.aab</strong> file.
I dont have source code so need to do it using Commands only</p>
<p>How can i convert .apk to .aab using Command line or Terminal?</p> | I have an .apk File and need to convert it to .aab file. I dont have source code so need to do it using Commands only How can i convert .apk to .aab using Command line or Terminal? | android|google-play|apk|android-app-bundle | 0 | 2022-07-16T14:50:22.893Z | 2,022 | 7 | 14 | 5 | 160 | 0 | 180 | 44 | 4 | 0 | false | true | false | false | false | false | zero |
73,005,175 | FFMPEG change videos size | <p>How do i change a video that is 1920x1080 to 1080x1920, and then "shrink" it so that it fills only half of the 1080x1920 screen size?
here is what i mean:</p>
<p><a href="https://i.stack.imgur.com/6bgjd.png" rel="nofollow noreferrer">1920x1080 original</a></p>
<p>needs to be changed to</p>
<p><a href="http... | How do i change a video that is 1920x1080 to 1080x1920, and then "shrink" it so that it fills only half of the 1080x1920 screen size? here is what i mean: 1920x1080 original needs to be changed to 1080x1920 that covers 50% of screen space only | ffmpeg|android-ffmpeg|pyffmpeg | -1 | 2022-07-16T14:50:39.990Z | 2,022 | 7 | 14 | 5 | 46 | 1 | 253 | 25 | 3 | 0 | false | false | false | false | false | true | negative |
73,005,190 | Attempt to invoke virtual method drawer layout | <p>I'm doing a project that solves some issues that car owners face everyday, so I have a navigation component where the end-user can go through them. The thing is I have an activity which the end-user is able to upload a profile picture every time the user uploads a profile picture the activity lags and go to another ... | I'm doing a project that solves some issues that car owners face everyday, so I have a navigation component where the end-user can go through them. The thing is I have an activity which the end-user is able to upload a profile picture every time the user uploads a profile picture the activity lags and go to another act... | java|android | 0 | 2022-07-16T14:52:24.333Z | 2,022 | 7 | 14 | 5 | 13 | 0 | 587 | 46 | 2 | 4 | true | true | false | false | false | false | zero |
73,005,318 | Animate canvas items that are based on a constantly changing list state | <p>TL;DR: How would I animate multiple item heights within the Canvas. <a href="https://i.imgur.com/Hd9Hx35.mp4" rel="nofollow noreferrer">Like the height of these spikes in a waveform.</a></p>
<p>A little back story: I'm writing an app to display the waveform of an ongoing audio recording. I'm taking the bytes directl... | TL;DR: How would I animate multiple item heights within the Canvas. Like the height of these spikes in a waveform. A little back story: I'm writing an app to display the waveform of an ongoing audio recording. I'm taking the bytes directly from an AudioRecord and calculating the amplitude every 1000ish samples and push... | android|kotlin|android-jetpack-compose | 0 | 2022-07-16T15:12:16.873Z | 2,022 | 7 | 15 | 5 | 31 | 1 | 958 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
73,005,413 | Unit Testing Firebase Realtime Database Android | <p>I am using Firebase Realtime database. I want to unit test my repository.
I am new to unit testing. I was doing normally like this:</p>
<pre><code> @Test
public void Insert(){
DataRepository dataRepository = new DataRepository();
int prevSize = dataRepository.getAllData().size();
}
</code></pre>
<p>.</p>
<... | I am using Firebase Realtime database. I want to unit test my repository. I am new to unit testing. I was doing normally like this: [CODE] . [CODE] But this was giving error at FirebaseDatabase.getInstance() saying it was not instantiate. So what is the solution or there is other process to unit test my repository. The... | java|android|unit-testing|firebase-realtime-database | 0 | 2022-07-16T15:25:18.213Z | 2,022 | 7 | 15 | 5 | 34 | 0 | 352 | 47 | 4 | 3 | true | true | false | false | false | false | zero |
73,005,554 | How to recreate an activity in instrumented tests without non-configuration instance being saved? | <p>So here is the deal. I know about <code>ActivityScenario.recreateActivity()</code>. It perfectly reproduces the configuration change case, when all the non-configuration instance from <code>onRetainNonConfigurationInstance()</code> (say ViewModelStore) is passed into the new activity.</p>
<p>But how would one test t... | So here is the deal. I know about ActivityScenario.recreateActivity() . It perfectly reproduces the configuration change case, when all the non-configuration instance from onRetainNonConfigurationInstance() (say ViewModelStore) is passed into the new activity. But how would one test the case when the activity is fully ... | android|testing|android-activity | 1 | 2022-07-16T15:43:32.647Z | 2,022 | 7 | 15 | 5 | 61 | 1 | 685 | 97 | 3 | 0 | false | false | false | false | false | false | low |
73,005,890 | how can i get all the data in document firestore? | <p>current i am working to my school project using android studio, it is an attendance system where I store my data to Firestore and the user are able to download/export the data to become Excel file. What I am trying to do is how can I get the all data in a single document of a Collection in firestore</p>
<p>here's th... | current i am working to my school project using android studio, it is an attendance system where I store my data to Firestore and the user are able to download/export the data to become Excel file. What I am trying to do is how can I get the all data in a single document of a Collection in firestore here's the code but... | java|android|firebase|google-cloud-firestore | 0 | 2022-07-16T16:27:29.670Z | 2,022 | 7 | 16 | 5 | 40 | 2 | 409 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
73,005,922 | Game terribly laggy for Meta Quest/Quest2 (Android) | <p>I was working on my game and noticed terribly low FPS and when running up to a certain area the whole screen goes bonkers and practically "flips" around. I am currently watching as many tutorials as I can to get better FPS but I decided to post here to see if this could be more of a help.</p>
<p>Today was ... | I was working on my game and noticed terribly low FPS and when running up to a certain area the whole screen goes bonkers and practically "flips" around. I am currently watching as many tutorials as I can to get better FPS but I decided to post here to see if this could be more of a help. Today was my first t... | android|lag|frame-rate|virtual-reality | 0 | 2022-07-16T16:30:28.990Z | 2,022 | 7 | 16 | 5 | 16 | 0 | 516 | 51 | 4 | 0 | false | true | false | false | false | false | zero |
73,006,011 | FileSystemException (FileSystemException: Cannot create file, path = './skipwelcomedata_bad_keys.hive' (OS Error: Read-only file system, errno = 30)) | <p>I have set up a data storage system with Hive in my Flutter application. After installing everything, I get this error:</p>
<pre><code>FileSystemException (FileSystemException: Cannot create file, path = './skipwelcomedata_bad_keys.hive' (OS Error: Read-only file system, errno = 30))
</code></pre>
<p>What is this er... | I have set up a data storage system with Hive in my Flutter application. After installing everything, I get this error: [CODE] What is this error? How can I solve it? Thanks for helps. | android|flutter|flutter-hive | 0 | 2022-07-16T16:42:58.267Z | 2,022 | 7 | 16 | 5 | 75 | 0 | 184 | 149 | 3 | 1 | true | true | false | false | false | false | zero |
73,006,307 | Gradle Sync: "Cannot find a variant matching build type 'null' and product flavors '[]' in module" [AGP] | <p>There's a syncing problem that only appears while trying to use Android Gradle Plugin version <code>7.2.0</code> and above; So, the sync is <strong>successful</strong> with AGP <code>7.1.3</code>, but <strong>fails</strong> with <code>7.2.1</code> or even <code>7.4.0-alpha08</code>. The project is a KMP project, but... | There's a syncing problem that only appears while trying to use Android Gradle Plugin version 7.2.0 and above; So, the sync is successful with AGP 7.1.3 , but fails with 7.2.1 or even 7.4.0-alpha08 . The project is a KMP project, but for the above reason, I assume the issue is related to AGP and its configuration. Proj... | android|kotlin|gradle|android-gradle-plugin|kotlin-multiplatform | 1 | 2022-07-16T17:25:05.690Z | 2,022 | 7 | 17 | 5 | 256 | 1 | 865 | 104 | 5 | 5 | true | false | false | false | false | false | low |
73,006,315 | Give Android application write permission to directory using adb? | <h2>Context</h2>
<p>After checking out the permissions of the <code>SMS import/export</code> application for android, using the command from <a href="https://stackoverflow.com/a/31753602/7437143">this answer</a>:</p>
<pre><code>adb shell dumpsys package com.github.tmo1.sms_ie > permissions.txt
</code></pre>
<p>I not... | Context After checking out the permissions of the SMS import/export application for android, using the command from this answer : [CODE] I noticed I am not able to detect where the permission is stored that grants the app permission to write to a folder. In particular: After I click ALLOW ACCESS TO "SMS_IE_OUTPUT&... | android|permissions|sms|adb | 0 | 2022-07-16T17:25:59.707Z | 2,022 | 7 | 17 | 5 | 56 | 0 | 725 | 65 | 4 | 3 | true | true | false | false | false | false | zero |
73,006,322 | Cannot resolve method 'loadAnimation' in 'AnimationUtils' | <pre><code> fabOpen= AnimationUtils.loadAnimation(this, R.anim.to_bottom_anim);
fabClose= AnimationUtils.loadAnimation(this, R.anim.from_bottom_anim);
rotateForward= AnimationUtils.loadAnimation(this, R.anim.rotate_open_anim);
rotateBackward= AnimationUtils.loadAnimation(this, R.anim.rotate_close_anim);
... | [CODE] in the above code,loadAnimation is showing red(error), and an error appears "Cannot resolve method 'loadAnimation' in 'AnimationUtils'". I was trying to add animation on a floatbutton. Please help me to resolve this issue. | java|android|xml|android-studio|error-handling | 0 | 2022-07-16T17:26:27.433Z | 2,022 | 7 | 17 | 5 | 17 | 0 | 239 | 57 | 5 | 1 | true | true | false | false | false | false | zero |
73,006,334 | How can I upgrade Xamarin Forms UWP (older format: shared code in .shproj not .csproj) to C# version 8.0 or higher? | <p>I have a Xamarin forms project with Uwp, and I'd like to know how to upgrade the C# version from 7.3 to 8.0+.</p>
<p>I followed these links:</p>
<p><a href="https://stackoverflow.com/questions/63708024/how-to-use-the-latest-c-sharp-version-in-xamarin-forms-projects">How to use the latest C# version in Xamarin Forms ... | I have a Xamarin forms project with Uwp, and I'd like to know how to upgrade the C# version from 7.3 to 8.0+. I followed these links: How to use the latest C# version in Xamarin Forms projects https://montemagno.com/use-csharp-8-everywehre/ which suggest adding the following to my csproj file: [CODE] or [CODE] I get th... | c#|android|ios|xamarin.forms|uwp | 2 | 2022-07-16T17:27:49.327Z | 2,022 | 7 | 17 | 5 | 88 | 0 | 630 | 115 | 5 | 4 | true | true | false | false | false | false | low |
73,006,372 | unable to access Clipboard Content from foreground service in Android 10+ | <p>I know that we can't access clipboard content from background services in 10+ but there is an application that shows copied text on a floating widget in Android 10+ devices using foreground service <a href="https://youtu.be/MaYmxt1qDHI" rel="nofollow noreferrer">here's that app</a>. I want to achieve that functional... | I know that we can't access clipboard content from background services in 10+ but there is an application that shows copied text on a floating widget in Android 10+ devices using foreground service here's that app . I want to achieve that functionality somehow! please help me. My app is working fine in android P and lo... | android|service|floating | 0 | 2022-07-16T17:34:36.843Z | 2,022 | 7 | 17 | 5 | 101 | 0 | 470 | 73 | 3 | 2 | true | true | false | false | false | false | zero |
73,006,452 | React Native - Strange error caught - {"line":25722,"column":33,"sourceURL":"http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify= | <p>My react native application is running on android virtual device (API 23)</p>
<p>Android Gradle Plugin Version - 7.2.0
Gradle Version - 7.4.2</p>
<p>build.gradle</p>
<pre><code>buildscript {
ext {
kotlinVersion = "1.5.0"
RNNKotlinVersion = kotlinVersion
buildToolsVersion = "... | My react native application is running on android virtual device (API 23) Android Gradle Plugin Version - 7.2.0 Gradle Version - 7.4.2 build.gradle [CODE] } An http request ( http://10.0.2.2:8888/myapp/auth ) is made to confirm login to my localhost server. I get an http response code 500 (email/password is incorrect).... | javascript|android|react-native | 0 | 2022-07-16T17:47:48.050Z | 2,022 | 7 | 17 | 5 | 70 | 1 | 584 | 144 | 3 | 3 | true | false | false | false | false | false | zero |
73,006,517 | saving data to realm database in Android inside a foreground service | <p>I'm using foreground service for continuous Bluetooth scanning to get data from an IoT device. Inside the foreground service after receiving the data from the IoT device I try to save it to realm internal database. The issue I noticed is that not all received data was saved in realm database. Is there anyway to test... | I'm using foreground service for continuous Bluetooth scanning to get data from an IoT device. Inside the foreground service after receiving the data from the IoT device I try to save it to realm internal database. The issue I noticed is that not all received data was saved in realm database. Is there anyway to test if... | java|android|bluetooth|realm | 0 | 2022-07-16T17:56:27.933Z | 2,022 | 7 | 17 | 5 | 28 | 0 | 732 | 68 | 4 | 2 | true | true | false | false | false | false | zero |
73,006,577 | I have an error with my Unity game In App Purchases | <blockquote>
<p>Unity IAP: Unity In-App Purchasing requires Unity Gaming Services to have been initialized before use.</p>
<ul>
<li>Find out how to initialize Unity Gaming Services by following the documentation <a href="https://docs.unity.com/ugs-overview/services-core-api.html#InitializationExample" rel="nofollow nor... | Unity IAP: Unity In-App Purchasing requires Unity Gaming Services to have been initialized before use. Find out how to initialize Unity Gaming Services by following the documentation https://docs.unity.com/ugs-overview/services-core-api.html#InitializationExample or download the 06 Initialize Gaming Services sample fro... | android|ios|unity3d|google-play|game-development | 0 | 2022-07-16T18:05:40.023Z | 2,022 | 7 | 18 | 5 | 803 | 1 | 1,130 | 51 | 5 | 0 | false | false | false | false | false | false | zero |
73,006,893 | How can i return a list from retrofit onResponse? | <p>I've seen a few similar questions but they don't seem to answer my problem exactly. I'm pulling a list with Retrofit and I want to export it to a list and create a listview. But I am not getting any return from onResponse. I've also tried returning a list directly with return. Please help.</p>
<p>this is the callbac... | I've seen a few similar questions but they don't seem to answer my problem exactly. I'm pulling a list with Retrofit and I want to export it to a list and create a listview. But I am not getting any return from onResponse. I've also tried returning a list directly with return. Please help. this is the callback func lis... | java|android|list|return|retrofit | 0 | 2022-07-16T18:55:18.737Z | 2,022 | 7 | 18 | 5 | 39 | 0 | 530 | 49 | 5 | 6 | true | true | false | false | false | false | zero |
73,006,970 | iText7 AbstractITextEvent is only for internal usage | <p>I am trying to create a new PDF file in the public Documents folder. iTex7 is launched directly from a Dialog created by an external library com.afollestad.materialdialogs.MaterialDialog.</p>
<pre><code> lateinit var writer : PdfWriter
path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_D... | I am trying to create a new PDF file in the public Documents folder. iTex7 is launched directly from a Dialog created by an external library com.afollestad.materialdialogs.MaterialDialog. [CODE] Sometiems this leads to an error: [CODE] Any help? Sorry I am a beginner in programming. | android|itext7 | 1 | 2022-07-16T19:08:05.323Z | 2,022 | 7 | 19 | 5 | 62 | 1 | 283 | 52 | 2 | 2 | true | false | false | false | false | false | low |
73,007,015 | Error in SpeechRecognizer for Android 10+ devices | <p>I want to enable speech recognition service in android for 10+ versions and from the link below, I found out solution</p>
<p><a href="https://stackoverflow.com/questions/64319117/speechrecognizer-not-available-when-targeting-android-11">SpeechRecognizer not available when targeting Android 11</a></p>
<p>and below is... | I want to enable speech recognition service in android for 10+ versions and from the link below, I found out solution SpeechRecognizer not available when targeting Android 11 and below is the code for the same [CODE] but while adding this in my code I am getting error Open quote is expected for attribute "android:... | android|xml | 0 | 2022-07-16T19:16:23.720Z | 2,022 | 7 | 19 | 5 | 25 | 0 | 475 | 49 | 2 | 1 | true | true | false | false | false | false | zero |
73,007,047 | Android Studio - Change app status bar to custom color? | <p>I know that you can change the status bar color in Android's themes.xml file with the following line:</p>
<pre><code><item name="android:statusBarColor" tools:targetApi="l">@color/teal_200</item>
</code></pre>
<p>That being said, if I want to customize the color (ie. make it a hex val... | I know that you can change the status bar color in Android's themes.xml file with the following line: [CODE] That being said, if I want to customize the color (ie. make it a hex value), how can I do this? | android|xml | 0 | 2022-07-16T19:21:48.423Z | 2,022 | 7 | 19 | 5 | 32 | 2 | 204 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
73,007,157 | What doe PackageManager.GET_META_DATA mean and why would an app not show up? | <p>I have an app that accepts certain data from other apps. Those other apps typically check to see if my app is installed. For some reason some of those other app developers do some convoluted checks and sometimes those fail. This often leads to me getting bad reviews because those apps tell the users to install my ap... | I have an app that accepts certain data from other apps. Those other apps typically check to see if my app is installed. For some reason some of those other app developers do some convoluted checks and sometimes those fail. This often leads to me getting bad reviews because those apps tell the users to install my app a... | android|android-11|android-package-managers | 1 | 2022-07-16T19:39:01.373Z | 2,022 | 7 | 19 | 5 | 68 | 1 | 1,239 | 76 | 3 | 1 | true | false | false | false | false | false | low |
73,007,316 | Android Kotlin - Saving Preferences (key value pair) - not working for me | <p>I am trying various simple Android Kotlin examples, to save some persistent data in my app.
To start, I am using a straight forward example of writing one key-value pair, and reading it back.
here's my code, in my activity's OnCreate()</p>
<pre><code>val sharedPrefFile = "MyPrefFile"
val sharedPreferences... | I am trying various simple Android Kotlin examples, to save some persistent data in my app. To start, I am using a straight forward example of writing one key-value pair, and reading it back. here's my code, in my activity's OnCreate() [CODE] I would expect the first getPref() call to read "no_name", which it... | android|kotlin | 0 | 2022-07-16T20:06:05.673Z | 2,022 | 7 | 20 | 5 | 57 | 1 | 515 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
73,007,371 | Unity editor save correct data fierbase but android phone not | <p>I have lines of code, and these work fine and good at my unity Editor, but when i test this at the phone data not saving but firebase work correct sort of login / register work correctly.</p>
<pre><code>private async Task SaveScore(int value)
{
string email = dbAuth.CurrentUser.Email.Split('@')[0];
await dat... | I have lines of code, and these work fine and good at my unity Editor, but when i test this at the phone data not saving but firebase work correct sort of login / register work correctly. [CODE] in other words, fields in the database are not created from the phone? | android|unity3d | 0 | 2022-07-16T20:14:25.767Z | 2,022 | 7 | 20 | 5 | 56 | 0 | 265 | 61 | 2 | 1 | true | true | false | false | false | false | zero |
73,007,481 | Android Studio Database inspector icon does not be shown | <p>im learning using room database in kotlin
but i cannot see database inspector icon in android studio.
has anyone any solution ?</p>
<p><a href="https://i.stack.imgur.com/y7GJA.jpg" rel="nofollow noreferrer">The picture of my android studtio home page</a></p> | im learning using room database in kotlin but i cannot see database inspector icon in android studio. has anyone any solution ? The picture of my android studtio home page | android|database|sqlite|android-studio|kotlin | -3 | 2022-07-16T20:32:57.243Z | 2,022 | 7 | 20 | 5 | 60 | 1 | 171 | 56 | 5 | 0 | false | false | false | false | false | true | negative |
73,007,595 | Android: Buttons in MaterialButtonToggleGroup not showing on screen | <p>I am trying to add two buttons to my layouts using the MaterialButtonGroup tag however they do not show up in my app or in the design view of Android Studio.</p>
<p>This is in my build.gradle. I've tried a few different versions.</p>
<pre><code> implementation 'com.google.android.material:material:1.6.1'
</code>... | I am trying to add two buttons to my layouts using the MaterialButtonGroup tag however they do not show up in my app or in the design view of Android Studio. This is in my build.gradle. I've tried a few different versions. [CODE] This is my xml [CODE] And this is what I see in app (Imgur link) I've tried moving the but... | android|android-studio|android-layout|material-design|material-components-android | 0 | 2022-07-16T20:52:27.643Z | 2,022 | 7 | 20 | 5 | 41 | 0 | 423 | 67 | 5 | 2 | true | true | false | false | false | false | zero |
73,007,684 | How to export canvas to Png image and save it to gallery in jetpack compose? | <p>I created an application for image editing. I create some effected-on images from the gallery but can't save them after editing them.</p>
<p>This is an example of a canvas that I want to save as png.</p>
<pre><code> var resizedBitmap: Bitmap? = null
Canvas(modifier = Modifier.fillMaxSize(0.75f)) {
val... | I created an application for image editing. I create some effected-on images from the gallery but can't save them after editing them. This is an example of a canvas that I want to save as png. [CODE] | android|android-studio|kotlin|android-jetpack-compose | 0 | 2022-07-16T21:12:18.047Z | 2,022 | 7 | 21 | 5 | 131 | 0 | 199 | 76 | 4 | 1 | true | true | false | false | false | false | zero |
73,007,745 | Kotlin Android - adding values to data class error, Why would it cause my app to crash | <p>I am trying to have a grid layout in a recyclerview to show and image text and a double variable. The goal is to add a search bar that will display the results to the recycleView. I am new to kotlin so forgive me if the problem is obvious. I am not sure exactly what is causing my app to crash, but I narrowed it dow... | I am trying to have a grid layout in a recyclerview to show and image text and a double variable. The goal is to add a search bar that will display the results to the recycleView. I am new to kotlin so forgive me if the problem is obvious. I am not sure exactly what is causing my app to crash, but I narrowed it down to... | android|kotlin|android-recyclerview | 1 | 2022-07-16T21:25:43.933Z | 2,022 | 7 | 21 | 5 | 53 | 1 | 874 | 86 | 3 | 8 | true | false | false | false | false | false | low |
73,007,798 | How to update an array item in the Realtime Database from within Android | <p>How to access a child inside real time database array child?</p>
<pre><code>String count = item_count.getText().toString();
firebaseDatabase = FirebaseDatabase.getInstance();
reference = firebaseDatabase.getReference();
reference.child("beverages").child(????).child("item_count").setValue(count... | How to access a child inside real time database array child? [CODE] this is my code but i don't know what should i put in the question marks. ] 1 | java|android|firebase-realtime-database | 0 | 2022-07-16T21:36:48.350Z | 2,022 | 7 | 21 | 5 | 110 | 2 | 145 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
73,007,880 | android)The application may be doing too much work on its main thread | <pre><code>private void Filter_save() {
MainActivity firstActivity = (MainActivity) MainActivity.firstActivity;
filter_button = findViewById(R.id.button_filter);
filter_button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent... | [CODE] I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread. I'm making an app that displays markers on a map. The following code controls which markers appear on the map. There is no problem if you turn off the app by going back or just turn off the app with finish(). Howev... | java|android|multithreading|thread-safety | 0 | 2022-07-16T21:55:15.737Z | 2,022 | 7 | 21 | 5 | 91 | 0 | 723 | 69 | 4 | 1 | true | true | false | false | false | false | zero |
73,007,981 | Adding links to internet using an imagebutton in Android Studio | <p>I am attempting to link to websites inside my app. I am using fragments, so I need to use binding. I have the ImageButtons set up already. I need the Java code that links to the website. I dont quite understand where everything goes</p>
<pre><code>public class DashboardFragment extends Fragment {
private FragmentDa... | I am attempting to link to websites inside my app. I am using fragments, so I need to use binding. I have the ImageButtons set up already. I need the Java code that links to the website. I dont quite understand where everything goes [CODE] I need to open multiple different websites, using different buttons for each. | java|android-studio | 0 | 2022-07-16T22:17:03.057Z | 2,022 | 7 | 22 | 5 | 30 | 1 | 317 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
73,008,083 | exoPlayer in chat RecycleView | <p>i have a small problem i am making app chatting is section of it chatting fragment contain
chat Recycle View that is contain exoplayer in it with custom control <em>the problem is</em>
exoplayer container is not scrolling well, seems little slow, black background appearing
witch give bad experience</p>
<p>here it is... | i have a small problem i am making app chatting is section of it chatting fragment contain chat Recycle View that is contain exoplayer in it with custom control the problem is exoplayer container is not scrolling well, seems little slow, black background appearing witch give bad experience here it is xml code: [CODE] a... | java|android|xml|android-layout|exoplayer | 0 | 2022-07-16T22:36:43.523Z | 2,022 | 7 | 22 | 5 | 21 | 0 | 440 | 29 | 5 | 2 | true | true | false | false | false | false | zero |
73,008,136 | How to stream data from Broadcast Receiver to Flutter? | <p>I want to stream data from Broadcast Receiver (native Android) to Flutter.</p>
<p>The Receiver :</p>
<pre><code>public class SentReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Log.d(TAG, "onReceive: " + intent.getAction());
int r... | I want to stream data from Broadcast Receiver (native Android) to Flutter. The Receiver : [CODE] This is the code in Flutter to receive the data: [CODE] I need a way to receive the delivery or sent report from native to Flutter or a way to access the Flutter SQLite database from native Android to update the rows. Datab... | android|flutter|sqlite | 0 | 2022-07-16T22:48:58.850Z | 2,022 | 7 | 22 | 5 | 152 | 1 | 402 | 54 | 3 | 4 | true | false | false | false | false | false | zero |
73,008,458 | Get URL & Query from WebView's onNavigationStateChange event | <p>Currently I am able to get the base URL of a page when clicked using the following WebView configuration</p>
<pre class="lang-js prettyprint-override"><code>const handleUrlChange = (url:string) => {
if (url == videUrl) return;
setVideoUrl(url);
console.log(url);
};
<WebView
startInLoadingState=... | Currently I am able to get the base URL of a page when clicked using the following WebView configuration [CODE] The problem is, the entire URL does not show. When going to https://m.youtube.com/watch?v=aqz-KE-bpKQ only https://m.youtube.com/ returns as url . I need to be able to read watch?v=aqz-KE-bpKQ as well to iden... | javascript|android|node.js|react-native|webview | 0 | 2022-07-17T00:13:17.670Z | 2,022 | 7 | 0 | 6 | 30 | 0 | 396 | 60 | 5 | 1 | true | true | false | false | false | false | zero |
73,008,524 | Java/Wordpress REST API - Keep user authenticated? | <p>I'm using the below code on my main activity to log the user into my app. The app's backend is Wordpress. The server returns a success message, and the user is authenticated, but as soon as I get to the next screen/activity, and attempt to have the user create a post to wordpress, the server returns the message</p>
... | I'm using the below code on my main activity to log the user into my app. The app's backend is Wordpress. The server returns a success message, and the user is authenticated, but as soon as I get to the next screen/activity, and attempt to have the user create a post to wordpress, the server returns the message "S... | java|android|wordpress|rest|wordpress-rest-api | 2 | 2022-07-17T00:34:14.343Z | 2,022 | 7 | 0 | 6 | 166 | 3 | 657 | 50 | 5 | 2 | true | false | false | false | false | false | low |
73,008,565 | Flutter : Even if the file name is renamed, the corresponding part of the import statement does not change | <p>I am developing an app using Android Studio and Flutter.</p>
<p>At the moment, when I change the file name by right-clicking >> Refactor >> Rename, an error occurs because the corresponding part of the import statement is the same as the file name before the change.</p>
<p>Is there a way to automatically... | I am developing an app using Android Studio and Flutter. At the moment, when I change the file name by right-clicking >> Refactor >> Rename, an error occurs because the corresponding part of the import statement is the same as the file name before the change. Is there a way to automatically change the import statement ... | flutter|android-studio|visual-studio-code | 0 | 2022-07-17T00:49:40.167Z | 2,022 | 7 | 0 | 6 | 18 | 0 | 414 | 106 | 3 | 0 | false | true | false | false | false | false | zero |
73,008,643 | Is there a way to await in getStateFromPath in react-navigation? | <p>I'm using a custom getStateFromPath function to resolve my paths to a state, though to resolve some of the path routes, I need to make an api request to a router endpoint.</p>
<p>Is there any way I can create an async getStateFromPath or achieve the desired effect ?</p>
<p>e.g. something like this would do the trick... | I'm using a custom getStateFromPath function to resolve my paths to a state, though to resolve some of the path routes, I need to make an api request to a router endpoint. Is there any way I can create an async getStateFromPath or achieve the desired effect ? e.g. something like this would do the trick [CODE] | android|ios|react-native|react-navigation|deep-linking | 1 | 2022-07-17T01:11:38.340Z | 2,022 | 7 | 1 | 6 | 79 | 0 | 310 | 64 | 5 | 1 | true | true | false | false | false | false | low |
73,008,705 | Can't get Admob example ads to show in Cordova app | <p>I have a simple app I made in vanilla JS that I want to convert to a mobile app. I can do it easily with Cordova, but I can't seem to get Admob ads to show up with any of the plugins I tried.</p>
<p>On this one I am using "admob-plus-cordova". I created it with the example app ID, and followed the instruct... | I have a simple app I made in vanilla JS that I want to convert to a mobile app. I can do it easily with Cordova, but I can't seem to get Admob ads to show up with any of the plugins I tried. On this one I am using "admob-plus-cordova". I created it with the example app ID, and followed the instructions in th... | javascript|android|cordova|admob|cordova-admob | 0 | 2022-07-17T01:28:51.503Z | 2,022 | 7 | 1 | 6 | 67 | 0 | 388 | 50 | 5 | 1 | true | true | false | false | false | false | zero |
73,008,833 | Cannot make chat bubble after second without arrow also the time setting with text | <p>Hello i cannot make chat bubble for one message with arrow and after that without arrow until the other will send message like in WhatsApp messages screen also I am not able to do the mechanism for timing and text to be shown in same row while message characters are more it will move to second line as shown in scree... | Hello i cannot make chat bubble for one message with arrow and after that without arrow until the other will send message like in WhatsApp messages screen also I am not able to do the mechanism for timing and text to be shown in same row while message characters are more it will move to second line as shown in screensh... | java|android|xml|kotlin|whatsapp | 0 | 2022-07-17T02:15:45.853Z | 2,022 | 7 | 2 | 6 | 31 | 0 | 412 | 82 | 5 | 0 | false | true | false | false | false | false | zero |
73,008,915 | What's the difference between the Kotlin and the Gradle version setting and IDE? | <p>I'm wondering if the difference of the kotlin version between gradle setting and ide.
I can see the kotlin version of IDE(Tools -> Kotlin -> Configure Kotlin).
And there is another Kotlin version defined in <code>build.gradle</code>.
I want to know the difference.
I think that the version in <code>buidl.gradle... | I'm wondering if the difference of the kotlin version between gradle setting and ide. I can see the kotlin version of IDE(Tools -> Kotlin -> Configure Kotlin). And there is another Kotlin version defined in build.gradle . I want to know the difference. I think that the version in buidl.gradle affects to real project an... | android|kotlin | 0 | 2022-07-17T02:40:32.077Z | 2,022 | 7 | 2 | 6 | 35 | 1 | 414 | 80 | 2 | 0 | false | false | false | false | false | false | zero |
73,009,090 | After adding tel: code reload icon not going away | <p>As I have added a code to make tel: links to go to phone app and dial. But after that my refresh code to hide refresh icon doesn't work. Can anyone help with this error as the Override is not working in the private class.</p>
<pre><code> //Webview stuff
webview = findViewById(R.id.webView);
... | As I have added a code to make tel: links to go to phone app and dial. But after that my refresh code to hide refresh icon doesn't work. Can anyone help with this error as the Override is not working in the private class. [CODE] | java|android-studio | 0 | 2022-07-17T03:34:18.443Z | 2,022 | 7 | 3 | 6 | 13 | 0 | 228 | 49 | 2 | 1 | true | true | false | false | false | false | zero |
73,009,094 | Could not resolve all artifacts for configuration ':classpath' error after restoring a backup | <p>I walked away from my pet project for a year, and now I'm getting this error:</p>
<pre><code>Could not resolve all artifacts for configuration ':classpath'.
</code></pre>
<p>Here is my build.gradle file:</p>
<pre><code> // Top-level build file where you can add configuration options common to all sub-projects/mod... | I walked away from my pet project for a year, and now I'm getting this error: [CODE] Here is my build.gradle file: [CODE] | java|android|android-studio | 0 | 2022-07-17T03:35:17.970Z | 2,022 | 7 | 3 | 6 | 38 | 0 | 121 | 93 | 3 | 2 | true | true | false | false | false | false | zero |
73,009,161 | Volley does not return any value, if I use the url in the browser it does return values, android studio | <p>I am using volley to extract the categories and posts from a wordpress site to display them in an android application, first the categories respond well to me, while I am adding the categories to a list, I am trying to extract the posts for another list, but it returns [], I use the url in the browser and it returns... | I am using volley to extract the categories and posts from a wordpress site to display them in an android application, first the categories respond well to me, while I am adding the categories to a list, I am trying to extract the posts for another list, but it returns [], I use the url in the browser and it returns th... | java|android|wordpress|android-volley|response | 0 | 2022-07-17T03:56:20.073Z | 2,022 | 7 | 3 | 6 | 26 | 0 | 371 | 103 | 5 | 1 | true | true | false | false | false | false | zero |
73,009,165 | Jetpack Compose - Room database not able to read from flow on release build | <p>I'm performing an action on an item and using the copy function to update its value in room database. It works as intended in debug version (the text changes color/value) but in release build it doesn't. It still works, I just don't see it reflects right away. If I navigate away from tab and back I can see the state... | I'm performing an action on an item and using the copy function to update its value in room database. It works as intended in debug version (the text changes color/value) but in release build it doesn't. It still works, I just don't see it reflects right away. If I navigate away from tab and back I can see the state up... | android-room|android-jetpack-compose|proguard|release | 0 | 2022-07-17T03:57:21.743Z | 2,022 | 7 | 3 | 6 | 92 | 0 | 515 | 75 | 4 | 2 | true | true | false | false | false | false | zero |
73,009,433 | Xamarin: Context Action Selected Item Background Color | <p>I have a ListView and a custom cell inside it. I added the context Menu and it works fine. The only problem is that when I long press an item in the list the selected item will have a white background on Android which is not visible so the user won't be able to see which item they are selecting. is there anay way to... | I have a ListView and a custom cell inside it. I added the context Menu and it works fine. The only problem is that when I long press an item in the list the selected item will have a white background on Android which is not visible so the user won't be able to see which item they are selecting. is there anay way to ch... | c#|android|xamarin|mobile | 0 | 2022-07-17T05:21:10.573Z | 2,022 | 7 | 5 | 6 | 39 | 1 | 330 | 54 | 4 | 0 | false | false | false | false | false | false | zero |
73,009,617 | Flutter app on MacOS return flutter.gradle error | <p>I am trying to run my flutter app on MacOS but it returns following error</p>
<blockquote>
<p>Script '/Users/macbookair/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156</p>
</blockquote>
<h2>Steps to Reproduce</h2>
<ol>
<li>Execute <code>flutter run</code></li>
<li>Tried <code>flutter clean</code></l... | I am trying to run my flutter app on MacOS but it returns following error Script '/Users/macbookair/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156 Steps to Reproduce Execute flutter run Tried flutter clean Tried flutter pub get Tried flutter pub upgrade Deleted .build build .idea pubspec.lock .dart_to... | flutter|macos|android-studio|dart | 0 | 2022-07-17T06:18:54.223Z | 2,022 | 7 | 6 | 6 | 38 | 0 | 440 | 48 | 4 | 2 | true | true | false | false | false | false | zero |
73,009,693 | Speach to Text using Google API on PWA | <p>I have an outsourced project written in <code>Android</code>, on that project they used <code>Speach to Text using Google API</code>, <a href="https://www.youtube.com/watch?v=pjK36SmQ_9A" rel="nofollow noreferrer">Exactly like this</a> Now we want to change the project and use <code>PWA</code> Instead of <code>Andro... | I have an outsourced project written in Android , on that project they used Speach to Text using Google API , Exactly like this Now we want to change the project and use PWA Instead of Android my question is: because the google-API is free on android-device , when we convert that into PWA , the Speach to Text using Goo... | android|google-api|progressive-web-apps | 0 | 2022-07-17T06:40:37.960Z | 2,022 | 7 | 6 | 6 | 26 | 0 | 355 | 38 | 3 | 0 | false | true | false | false | false | false | zero |
73,009,887 | Newer Androids with "Adaptive Motion Smoothness" causing animation_controller error | <p>My issue is randomly my app will crash and throw the following error:</p>
<pre><code>@pragma("vm:external-name", "AssertionError_throwNew")
external static _doThrowNew(
int assertionStart, int assertionEnd, Object? message);
════════ Exception caught by scheduler library ════════════════... | My issue is randomly my app will crash and throw the following error: [CODE] I have seen ALOT of these errors and not any solutions, but no one does enough debugging to find the source of the issue. After TONS of debugging, I have narrowed it down to only android phones with the "Adaptive Motion Smoothness" (... | android|flutter|dart | 1 | 2022-07-17T07:19:11.910Z | 2,022 | 7 | 7 | 6 | 60 | 0 | 617 | 83 | 3 | 1 | true | true | false | false | false | false | low |
73,009,899 | Could not resolve all files for configuration ':app:debugRuntimeClasspath' in latest version of Android studio 2022 | <p>I was trying to use my 1-year-old source code in the latest version of Android studio. I'm encountering a lot of issues. I've not been able to find any reasonable solution till now. I would really appreciate it if anybody could help me out.
Gradle code below:</p>
<pre><code>plugins {
id 'com.android.application'... | I was trying to use my 1-year-old source code in the latest version of Android studio. I'm encountering a lot of issues. I've not been able to find any reasonable solution till now. I would really appreciate it if anybody could help me out. Gradle code below: [CODE] Project: gwyn.app [CODE] Error I'm receiving [CODE] T... | android|build|android-gradle-plugin|android-support-library | 1 | 2022-07-17T07:21:15.397Z | 2,022 | 7 | 7 | 6 | 125 | 0 | 329 | 115 | 4 | 3 | true | true | false | false | false | false | low |
73,009,923 | play/pause button in notification is not working, android | <p>I have a music player.
in notification, I have three buttons(Prev, Play/Pause, Next)
when i click prev and next it works very good.
but when i click play/pause the music starts from the beginning</p>
<blockquote>
<p>on Start Command</p>
</blockquote>
<pre><code> if (actionName != null){
switch (actionName... | I have a music player. in notification, I have three buttons(Prev, Play/Pause, Next) when i click prev and next it works very good. but when i click play/pause the music starts from the beginning on Start Command [CODE] Notification Receiver [CODE] } Manifest [CODE] Next Code [CODE] Prev Code [CODE] Play/Pause Code [CO... | java|android|notifications|android-music-player | 0 | 2022-07-17T07:25:19.660Z | 2,022 | 7 | 7 | 6 | 59 | 0 | 383 | 57 | 4 | 6 | true | true | false | false | false | false | zero |
73,009,965 | Android: Unable to go back to previous page in Webview | <p>I'm loading a url in <code>WebView</code> which has a flow of 3-4 screens but I'm unable to go back to previous page even if it's available. I'm using below code in the fragment to load url in webview.</p>
<pre><code> binding.webView.settings.javaScriptEnabled = true
binding.webView.settings.minimumFontSize = re... | I'm loading a url in WebView which has a flow of 3-4 screens but I'm unable to go back to previous page even if it's available. I'm using below code in the fragment to load url in webview. [CODE] I have tried to handle by device back button also but it's not working. [CODE] Please let me know if I'm following any wrong... | android|kotlin|android-webview | 0 | 2022-07-17T07:31:53.760Z | 2,022 | 7 | 7 | 6 | 37 | 0 | 326 | 54 | 3 | 2 | true | true | false | false | false | false | zero |
73,009,991 | Unable to run flutter app after adding firebase_core dependency | <p>Before adding dependency of firebase_core, the app works fine but after adding dependency using flutter pub add then the error shows.Is there any problem with the plugins or something else.And also it shows same error in firebase_auth after adding dependency.So please help.</p>
<p>android/app/build.gradle:</p>
<pre>... | Before adding dependency of firebase_core, the app works fine but after adding dependency using flutter pub add then the error shows.Is there any problem with the plugins or something else.And also it shows same error in firebase_auth after adding dependency.So please help. android/app/build.gradle: [CODE] main.dart: [... | android|flutter|firebase|dart | 0 | 2022-07-17T07:37:10.410Z | 2,022 | 7 | 7 | 6 | 40 | 1 | 340 | 63 | 4 | 3 | true | false | false | false | false | false | zero |
73,010,004 | Flutter ReorderableDragStartListener issue detecting gesture on mobile device (but works fine in web browser) | <p>I want to have reorderable list in flutter with custom drag handle (that works immediately, without long press first).</p>
<p>To achieve that I did:</p>
<pre><code>buildDefaultDragHandles: false,
</code></pre>
<p>and I used <code>ReorderableDragStartListener</code>.</p>
<p>code:</p>
<pre><code>import 'package:flutte... | I want to have reorderable list in flutter with custom drag handle (that works immediately, without long press first). To achieve that I did: [CODE] and I used ReorderableDragStartListener . code: [CODE] On desktop (e.g. when run in Edge) it works as expected, drag handle is clicked (mouse down) and dragged up or down ... | android|flutter|flutter-material | 0 | 2022-07-17T07:39:32.220Z | 2,022 | 7 | 7 | 6 | 22 | 2 | 794 | 109 | 3 | 2 | true | false | false | false | false | false | zero |
73,010,134 | Issue with Playing dash(.mpd) in player with clearkeys | <p>I have built a simple app using exoplayer API in Android. It reads and plays this MPD Live Streaming file which are open urls by google. But can't play the following MPD with clearkeys.</p>
<p>I have also try to play these urls in webview and these are working fine but I don't know how to play these urls in player i... | I have built a simple app using exoplayer API in Android. It reads and plays this MPD Live Streaming file which are open urls by google. But can't play the following MPD with clearkeys. I have also try to play these urls in webview and these are working fine but I don't know how to play these urls in player in android ... | java|android | 0 | 2022-07-17T08:03:52.387Z | 2,022 | 7 | 8 | 6 | 43 | 0 | 547 | 54 | 2 | 0 | false | true | false | false | false | false | zero |
73,010,265 | How to publish 64 bit bundle app to google store with 32-bit .so files | <p>I've developed an Android app with Android Studio 2021 and have used some .so files.
When I debug the app it works successfully with this Gradle configs:</p>
<pre><code>android {
compileSdk 30
defaultConfig {
applicationId "com.sample"
minSdk 21
targetSdk 30
versionCode 6
versionNa... | I've developed an Android app with Android Studio 2021 and have used some .so files. When I debug the app it works successfully with this Gradle configs: [CODE] Then I decided to publish app on the google store, The store returned this error: This release is not compliant with the Google Play 64-bit requirement. Then I... | android|android-studio|build.gradle | 0 | 2022-07-17T08:25:55.557Z | 2,022 | 7 | 8 | 6 | 59 | 1 | 804 | 70 | 3 | 1 | true | false | false | false | false | false | zero |
73,010,333 | There is gap on the top of bottom navigation view androidx | <p>So i'm developing android app using kotlin, when i build bottom navigation bar, there is something like glitch as you can see on images below. Anyone knows why there is gap on top of bottom navigation view? it cause icon on selected item being cut off.</p>
<p><a href="https://i.stack.imgur.com/Bq5P0.jpg" rel="nofoll... | So i'm developing android app using kotlin, when i build bottom navigation bar, there is something like glitch as you can see on images below. Anyone knows why there is gap on top of bottom navigation view? it cause icon on selected item being cut off. Running App Design Source Code: [CODE] | androidx|bottomnavigationview | 0 | 2022-07-17T08:35:33.433Z | 2,022 | 7 | 8 | 6 | 29 | 0 | 291 | 58 | 2 | 1 | true | true | false | false | false | false | zero |
73,010,464 | Android Sound Localization | <p>Does anyone know how to do <strong>sound/media</strong> Localization in android like we do with strings translations to support different languages in the app? because i didn't find any good resources for this feature.</p>
<p><strong>EDIT -</strong> This is how i using the media resources files, by the way the strin... | Does anyone know how to do sound/media Localization in android like we do with strings translations to support different languages in the app? because i didn't find any good resources for this feature. EDIT - This is how i using the media resources files, by the way the strings localization work properly, but the sound... | android|kotlin|localization|android-mediaplayer|android-sound | 0 | 2022-07-17T08:58:18.317Z | 2,022 | 7 | 8 | 6 | 26 | 0 | 426 | 26 | 5 | 0 | false | true | false | false | false | false | zero |
73,010,538 | Flutter: Cannot initialise UID inside CollectionReference,when UID passed from One screen to Another | <p>Goal: I want to pass the <code>uid</code> which i get from my <code>homescreen.dart</code> to my <code>enroll.dart</code> and access data inside the firestore collection using the passed <code>uid</code></p>
<p>Here's how i pass data from <code>homescreen.dart</code> to <code>enroll.dart</code></p>
<pre><code>Futur... | Goal: I want to pass the uid which i get from my homescreen.dart to my enroll.dart and access data inside the firestore collection using the passed uid Here's how i pass data from homescreen.dart to enroll.dart [CODE] Here's how i access the data in my enroll.dart [CODE] Prolem: When i try to do so,it shows The instanc... | android|flutter|firebase|google-cloud-firestore|flutter-widget | 0 | 2022-07-17T09:09:28.813Z | 2,022 | 7 | 9 | 6 | 25 | 1 | 574 | 100 | 5 | 2 | true | false | false | false | false | false | zero |
73,010,557 | How to handle frequently changing row in recycler view in anroid | <p>I am working on a tool that list devices based on certain value and the signal of the device is one of them and its defined by RSSI value <a href="https://www.speedguide.net/faq/how-does-rssi-dbm-relate-to-signal-quality-percent-439" rel="nofollow noreferrer">rssi</a>
Here this(RSSI) value changes frequently which k... | I am working on a tool that list devices based on certain value and the signal of the device is one of them and its defined by RSSI value rssi Here this(RSSI) value changes frequently which keeps updating the rows in the recycler view. I have just started with recycler view and by looking internet I am using a list ada... | android|kotlin|android-recyclerview|listadapter|android-listadapter | 1 | 2022-07-17T09:11:23.533Z | 2,022 | 7 | 9 | 6 | 44 | 0 | 689 | 64 | 5 | 3 | true | true | false | false | false | false | low |
73,010,570 | Custom UI element changes shape when being animated in Android in a ConstraintLayout | <p>I want to create a simple custom UI element in Android and let it flow from the right border to the left rim of the display. The custom UI element is a rectangle with a symbol in it. Unfortunately, when having creating a second UI element while the first is being animated, the shape of the first custom UI element sh... | I want to create a simple custom UI element in Android and let it flow from the right border to the left rim of the display. The custom UI element is a rectangle with a symbol in it. Unfortunately, when having creating a second UI element while the first is being animated, the shape of the first custom UI element shape... | java|android|animation|android-constraintlayout | 1 | 2022-07-17T09:13:21.403Z | 2,022 | 7 | 9 | 6 | 35 | 0 | 1,844 | 84 | 4 | 2 | true | true | false | false | false | false | low |
73,010,582 | How to start_activity with intent of opening a url with Python? | <p>I am trying to open a Facebook post URL in the FB app. But Android is asking me to choose with which app to open the URL and ask me "Only once?" or "Always?".
I clicked always but it still doesn't open the FB app. I am stocked here.</p>
<p><strong>EDIT:</strong></p>
<p>These screenshots are showi... | I am trying to open a Facebook post URL in the FB app. But Android is asking me to choose with which app to open the URL and ask me "Only once?" or "Always?". I clicked always but it still doesn't open the FB app. I am stocked here. EDIT: These screenshots are showing what is going on on smartphones... | python-3.x|appium|appium-android|python-appium | 0 | 2022-07-17T09:15:16.397Z | 2,022 | 7 | 9 | 6 | 28 | 0 | 880 | 63 | 4 | 0 | false | true | false | false | false | false | zero |
73,010,651 | React native webview show website in logged in state | <p>I am new to react native and first time using the react-native-webview. We already have website build using wordpress now I tried the develop the app for the website.</p>
<p>My issue was when I try to open the URL in webview it asking the credentials to login the page. but I have already login in the mobile, now I t... | I am new to react native and first time using the react-native-webview. We already have website build using wordpress now I tried the develop the app for the website. My issue was when I try to open the URL in webview it asking the credentials to login the page. but I have already login in the mobile, now I tried to op... | android|ios|react-native|react-native-webview | 0 | 2022-07-17T09:27:36.353Z | 2,022 | 7 | 9 | 6 | 66 | 0 | 576 | 52 | 4 | 1 | true | true | false | false | false | false | zero |
73,010,704 | Xamarin HttpClient.PostAsync gives a NullReferenceException | <p>I am trying to connect a Xamarin Android app client to a Node.js server. The problem comes when I try to post data to the server, as the application gets blocked (without showing me where the error is) and the server doesn't receive data.</p>
<p><strong>Code:</strong></p>
<pre><code>public static async Task<strin... | I am trying to connect a Xamarin Android app client to a Node.js server. The problem comes when I try to post data to the server, as the application gets blocked (without showing me where the error is) and the server doesn't receive data. Code: [CODE] This is the Xamarin code: [CODE] This is the code for the Node.js se... | c#|android|node.js|http|xamarin | 0 | 2022-07-17T09:35:41.920Z | 2,022 | 7 | 9 | 6 | 64 | 0 | 325 | 59 | 5 | 2 | true | true | false | false | false | false | zero |
73,010,846 | How to make a button like this? [Kotlin] | <p><a href="https://i.stack.imgur.com/WpMqC.jpg" rel="nofollow noreferrer">Click here to see the image</a></p>
<p>I want to make a button like this how can I do it? I want to change the color of shadow of the button.</p> | Click here to see the image I want to make a button like this how can I do it? I want to change the color of shadow of the button. | android|kotlin | -1 | 2022-07-17T10:00:00.197Z | 2,022 | 7 | 10 | 6 | 57 | 2 | 130 | 40 | 2 | 0 | false | false | false | false | false | true | negative |
73,010,931 | How to learn material 3 component attribute use case | <p>Can someone help me on Material 3. I found this two method <code>darkColorScheme</code> and <code>lightColorScheme</code> . When I checked the definition of this function I found so many colors used in the function. I am confused which one using where so, Is there any documentation or blog where this type of attrib... | Can someone help me on Material 3. I found this two method darkColorScheme and lightColorScheme . When I checked the definition of this function I found so many colors used in the function. I am confused which one using where so, Is there any documentation or blog where this type of attribute is using i.e. secondaryCon... | android|kotlin|material-design|android-jetpack-compose|material-components-android | 1 | 2022-07-17T10:14:53.087Z | 2,022 | 7 | 10 | 6 | 68 | 1 | 489 | 52 | 5 | 0 | false | false | false | false | false | false | low |
73,010,991 | Mobiles connected - Send command to capture photo | <p><strong>SCENARIO</strong></p>
<p>I bought this selfie stick, which comes with a Bluetooth remote control. When I connect remote control with my phone, and press capture button it take photo from a distance.</p>
<p><strong>PROBLEM</strong></p>
<p>I lost that remote control and I am having this idea to
Connect two And... | SCENARIO I bought this selfie stick, which comes with a Bluetooth remote control. When I connect remote control with my phone, and press capture button it take photo from a distance. PROBLEM I lost that remote control and I am having this idea to Connect two Android phones via bluetooth. The mobile which is in tripod w... | android|bluetooth|camera | 1 | 2022-07-17T10:23:50.297Z | 2,022 | 7 | 10 | 6 | 26 | 0 | 948 | 49 | 3 | 0 | false | true | false | false | false | false | low |
73,011,012 | Android. The fragment is shown for a few seconds when it receives a result in order to navigate to a new screen | <p>Fox example, I have activities A, B, C. Each of these activities is a container for fragments F1, F2, F3. Also, I have another fragment - F4. This fragment which can be opened from fragments F1, F2, F3. In addition, from fragment F4 I need to perform navigation to activities A B and C and also remove from back stack... | Fox example, I have activities A, B, C. Each of these activities is a container for fragments F1, F2, F3. Also, I have another fragment - F4. This fragment which can be opened from fragments F1, F2, F3. In addition, from fragment F4 I need to perform navigation to activities A B and C and also remove from back stack fr... | android|android-fragments|android-activity|android-navigation|activity-result-api | 0 | 2022-07-17T10:27:29.617Z | 2,022 | 7 | 10 | 6 | 27 | 0 | 727 | 111 | 5 | 0 | false | true | false | false | false | false | zero |
73,011,034 | Android Navigation Error: You must call setGraph() before calling getGraph() | <p>I'm trying to make an memo app, and this is my first time with application programming.</p>
<p>When I tried to run the code on my device it just dies after showing the IntroActivity and the error log says: "You must call setGraph() before calling getGraph()"</p>
<p>Below is the code.</p>
<pre><code>class L... | I'm trying to make an memo app, and this is my first time with application programming. When I tried to run the code on my device it just dies after showing the IntroActivity and the error log says: "You must call setGraph() before calling getGraph()" Below is the code. [CODE] When I googled about this error ... | android|kotlin | 1 | 2022-07-17T10:32:53.083Z | 2,022 | 7 | 10 | 6 | 56 | 1 | 544 | 76 | 2 | 3 | true | false | false | false | false | false | low |
73,011,096 | How to identify which layout xml is running currently? | <p>I have to layout xml named activity_layout_1 and activity_layout_2 and one common Activity.
Based on different conditions, I set contentview of the two xml
In a case, I need to check which layout is currently set.</p>
<p>I can get the id as below:</p>
<pre><code>View currentView = this.getWindow().getDecorView().fin... | I have to layout xml named activity_layout_1 and activity_layout_2 and one common Activity. Based on different conditions, I set contentview of the two xml In a case, I need to check which layout is currently set. I can get the id as below: [CODE] Is there a better way to get/identify current layout running? | android|android-layout|setcontentview | 3 | 2022-07-17T10:42:49.943Z | 2,022 | 7 | 10 | 6 | 29 | 1 | 309 | 54 | 3 | 1 | true | false | false | false | false | false | low |
73,011,105 | Create over rides nothing | <pre><code>package com.example.studentregister
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.studentregister.db.StudentDao
import java.lang.IllegalArgumentException
class StudentViewModelFactory(
private val dao: StudentDao
):ViewModelProvider.Factory {
ove... | [CODE] This is a factory class. the error in override (problem in android studio: 'create' overrides nothing) goes away if i Remove the safecall operator from viewmodel but when i run the app the app, it crashes. Im sure when i run the code without safe call operator it runs into Classcast exception. Looking for explan... | android|kotlin | 0 | 2022-07-17T10:44:20.340Z | 2,022 | 7 | 10 | 6 | 49 | 0 | 369 | 25 | 2 | 1 | true | true | false | false | false | false | zero |
73,011,199 | Cannot use vibration in a Thread | <p>I'm trying to use the vibrator service inside a Thread class but when I do so, I have an error which says "Type mismatch: inferred type is String but Context was expected"</p>
<p>here is my code :</p>
<pre><code>class myThread: Thread() {
override fun run() {
var vibration = getSystemService(C... | I'm trying to use the vibrator service inside a Thread class but when I do so, I have an error which says "Type mismatch: inferred type is String but Context was expected" here is my code : [CODE] It works in my mainActivity class but it doesn't in a Thread. Thank you in advance for any help. | multithreading|android-studio|kotlin|android-context|android-vibration | 0 | 2022-07-17T11:00:52.663Z | 2,022 | 7 | 11 | 6 | 28 | 1 | 303 | 32 | 5 | 1 | true | false | false | false | false | false | zero |
73,011,339 | Flutter : Crhome view is not clear | <p>I have an app with flutter using facebook auth, when I click facebook login chrome app display with facebook page to login, but the page is not clear like this paic, when I try to use it the emulator not response:</p>
<p><a href="https://i.stack.imgur.com/YVcjk.png" rel="nofollow noreferrer"><img src="https://i.stac... | I have an app with flutter using facebook auth, when I click facebook login chrome app display with facebook page to login, but the page is not clear like this paic, when I try to use it the emulator not response: Any one have an Idea tosolve this, I have chnged High Dpi settings and nothing change. | flutter|google-chrome|android-emulator|screen | 0 | 2022-07-17T11:24:04.897Z | 2,022 | 7 | 11 | 6 | 18 | 0 | 300 | 34 | 4 | 0 | false | true | false | false | false | false | zero |
73,011,430 | Platform class kotlin.Unit requires explicit JsonAdapter to be registered | <p>In a retrofit interface I have defined a method return type as <strong>ApiModel</strong> <strong><</strong> <strong>Unit</strong> <strong>></strong>. but when I call the method I get the error below.</p>
<pre><code>Platform class kotlin.Unit requires explicit JsonAdapter to be registered
</code></pre>
<p>so I ... | In a retrofit interface I have defined a method return type as ApiModel < Unit > . but when I call the method I get the error below. [CODE] so I tried to create my own JsonAdapter as below. [CODE] but I face this error. [CODE] I also tried what this link describes, but it seems to have no effect. [CODE] Also this is my... | java|android|kotlin|json-deserialization|moshi | 2 | 2022-07-17T11:37:45.387Z | 2,022 | 7 | 11 | 6 | 96 | 0 | 343 | 73 | 5 | 5 | true | true | false | false | false | false | low |
73,011,471 | Android Wi-fi Connected through App but NOT Working | <p>i am developing an android application (single-mode) in which app is connected to wifi programmatcally. Everything works and i get a message "Connected"
But when i use internet in the application, it is not working.
I have attached code and sample image. please help.</p>
<pre><code> WifiNetworkSpecifier.B... | i am developing an android application (single-mode) in which app is connected to wifi programmatcally. Everything works and i get a message "Connected" But when i use internet in the application, it is not working. I have attached code and sample image. please help. [CODE] | android|android-studio|wifi|android-wifi | 0 | 2022-07-17T11:43:25.320Z | 2,022 | 7 | 11 | 6 | 62 | 1 | 284 | 51 | 4 | 1 | true | false | false | false | false | false | zero |
73,011,479 | C# Xamarin.Android Calling Dialogfragment from recyclerView | <p>I would like to display diaglog fragment by clicking a button/imageView (By clicking the sAddButton)from recyclerView. But when I clicked the button nothing shows up.
How do I achieve that here is my code.</p>
<p>My RecyclerView Adapter
I added an pulic eventhandler in myadapter (StockInItemClick)
then created a del... | I would like to display diaglog fragment by clicking a button/imageView (By clicking the sAddButton)from recyclerView. But when I clicked the button nothing shows up. How do I achieve that here is my code. My RecyclerView Adapter I added an pulic eventhandler in myadapter (StockInItemClick) then created a delegate meth... | c#|android|android-recyclerview|xamarin.android|android-dialogfragment | 0 | 2022-07-17T11:44:48.793Z | 2,022 | 7 | 11 | 6 | 25 | 1 | 645 | 59 | 5 | 2 | true | false | false | false | false | false | zero |
73,011,502 | How to make text green if chinese words are equals? | <p>I am learning Android Studio and I have a question: I wanna say something in chinese and there compare the word/phrase I said with the one that was displayed at the screen. And if these two words are equals - make text green. else - red. But it always red after I press the mic button.
Will appriciate any help</p>
<p... | I am learning Android Studio and I have a question: I wanna say something in chinese and there compare the word/phrase I said with the one that was displayed at the screen. And if these two words are equals - make text green. else - red. But it always red after I press the mic button. Will appriciate any help [CODE] } | android|android-studio | 0 | 2022-07-17T11:48:56.473Z | 2,022 | 7 | 11 | 6 | 28 | 1 | 319 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
73,011,527 | Trying to display buffer from node backend to ImageView Kotlin | <p>I'm having issues trying to display buffer images to Kotlin, I don't know if I'm doing it wrong, I've tried everything, The return of the backend looks like this. I use node backend and mongo db database.</p>
<p>Here is the output from backend I'm trying to display:</p>
<pre><code>{"type":"Buffer"... | I'm having issues trying to display buffer images to Kotlin, I don't know if I'm doing it wrong, I've tried everything, The return of the backend looks like this. I use node backend and mongo db database. Here is the output from backend I'm trying to display: [CODE] I had to shorten the array, Please how do I display t... | android|node.js|android-studio|kotlin|android-layout | 0 | 2022-07-17T11:53:08.437Z | 2,022 | 7 | 11 | 6 | 25 | 0 | 347 | 62 | 5 | 1 | true | true | false | false | false | false | zero |
73,011,683 | Unhandled Exception: FileSystemException: Directory listing failed, path = '/' (OS Error: Permission denied, errno = 13) flutter | <p>I want to search all mp3 files in my device using the below code</p>
<pre><code> await searchAudioFiles(root).forEach((file) => {
print(file)
});
Stream<File> searchAudioFiles(Directory dir) {
return Glob("**.mp3")
.list(root: dir.path)
.where((entity) => ent... | I want to search all mp3 files in my device using the below code [CODE] However I am getting the above error. despite allowing android to read external files in manifest as shown below. | android|flutter | 0 | 2022-07-17T12:14:06.477Z | 2,022 | 7 | 12 | 6 | 62 | 0 | 185 | 128 | 2 | 1 | true | true | false | false | false | false | zero |
73,011,692 | Using Horizontal LazyRow with items in compose | <p>I am trying to figure out what would be the best approach to create this type of design: <a href="https://gyazo.com/bae04894f7ef079a06ad71f733026f33" rel="nofollow noreferrer">https://gyazo.com/bae04894f7ef079a06ad71f733026f33</a></p>
<p><a href="https://gyazo.com/111eace0d8cdecdecad1c8a7b486faf7" rel="nofollow nore... | I am trying to figure out what would be the best approach to create this type of design: https://gyazo.com/bae04894f7ef079a06ad71f733026f33 https://gyazo.com/111eace0d8cdecdecad1c8a7b486faf7 Should I be using a Horizontal lazyRow as suggested with a scrollview or how would I go about doing this? Should I also create 1 ... | android|kotlin|android-jetpack-compose|scrollable|lazycolumn | 0 | 2022-07-17T12:15:12.700Z | 2,022 | 7 | 12 | 6 | 83 | 2 | 651 | 46 | 5 | 2 | true | false | false | false | false | false | zero |
73,011,908 | I'm getting checksum failed error on BouncyCastle FIPS Distribution | <p>I'm try to use BouncyCastle Provider FIPS distro on Android. When i implemented like this(gradle);</p>
<pre><code>// https://mvnrepository.com/artifact/org.bouncycastle/bc-fips
implementation 'org.bouncycastle:bc-fips:1.0.2.3'
</code></pre>
<p>I'm getting this checksum error;</p>
<pre><code>org.bouncycastle.crypto.f... | I'm try to use BouncyCastle Provider FIPS distro on Android. When i implemented like this(gradle); [CODE] I'm getting this checksum error; [CODE] and after i try to add like that but i'm getting same error like this too. [CODE] What should i do? Do I have to re-sign the package? | java|android|bouncycastle | 0 | 2022-07-17T12:45:22.337Z | 2,022 | 7 | 12 | 6 | 32 | 0 | 279 | 67 | 3 | 3 | true | 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.