id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72,996,270 | google-cardboard, Quickstart for Google Cardboard for Unity, Build failed with error: resourse’style/theme.appcombat.noactionbar’ not found | <p>I’m a new developer and I'm trying for first time to building an android project according to this google forum to make VR projects for Androids: Quickstart for Google Cardboard for Unity | <a href="https://developers.google.com/cardboard/develop/unity/quickstart" rel="nofollow noreferrer">https://developers.googl... | I’m a new developer and I'm trying for first time to building an android project according to this google forum to make VR projects for Androids: Quickstart for Google Cardboard for Unity | https://developers.google.com/cardboard/develop/unity/quickstart But trying building this string occurred: resourse’style/theme.ap... | c#|android|unity3d|virtual-reality|google-cardboard | 0 | 2022-07-15T15:25:59.450Z | 2,022 | 7 | 15 | 4 | 31 | 1 | 640 | 139 | 5 | 0 | false | false | false | false | false | false | zero |
72,996,381 | Retrieve data from a specific array from a json | <p>I have a admin app written with Java to be able to manage my users</p>
<p>I created a custom json</p>
<p>This is what my JSON looks like</p>
<pre><code>[
{
"userId": 1,
"email": "user1@gmail.com",
"sponsorship": true,
"create": 274
},
{
&quo... | I have a admin app written with Java to be able to manage my users I created a custom json This is what my JSON looks like [CODE] In my List I just display email address Now my problem, for example if I click on the List which contains the email user1@gmail.com , I want to display in a Dialog the data related to this e... | java|api|android-studio | 0 | 2022-07-15T15:33:34.823Z | 2,022 | 7 | 15 | 4 | 25 | 1 | 473 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
72,996,410 | Making a custom drop down list that contains items and an editText android | <p>I want to make a drop-down list that contains a list of items and an editText to add more items to the menu</p>
<p>the items contains text and a checkList</p>
<p>my question is what is the best method (Java) I can follow to make that possible</p>
<p>a visualization of what I want to make would look something like th... | I want to make a drop-down list that contains a list of items and an editText to add more items to the menu the items contains text and a checkList my question is what is the best method (Java) I can follow to make that possible a visualization of what I want to make would look something like this | java|android|drop-down-menu | 0 | 2022-07-15T15:35:22.763Z | 2,022 | 7 | 15 | 4 | 37 | 0 | 298 | 74 | 3 | 0 | false | true | false | false | false | false | zero |
72,996,562 | Gradle Duplicate class | <p>When trying to use the IDnow library with the TrueLayer library Gradle fails to build due to a <code>duplicate class</code> error. The problem is that the duplicated class is bundled inside IDnow and if I try to exclude it from TrueLayer, my app fails at runtime.</p>
<pre><code>> Duplicate class org.bouncycastle.... | When trying to use the IDnow library with the TrueLayer library Gradle fails to build due to a duplicate class error. The problem is that the duplicated class is bundled inside IDnow and if I try to exclude it from TrueLayer, my app fails at runtime. [CODE] | android|gradle | 0 | 2022-07-15T15:45:32.040Z | 2,022 | 7 | 15 | 4 | 159 | 2 | 257 | 22 | 2 | 1 | true | false | false | false | false | false | zero |
72,996,885 | Is getClassName() enough to identify an activity in android? | <p>If I'm using an accessibility service to get the activity that user currently has opened anywhere on their device, is <code>event.getClassName()</code> enough to distinguish this activity from any other activity on the device?</p>
<pre><code>@Override
public void onAccessibilityEvent(AccessibilityEvent event) {
... | If I'm using an accessibility service to get the activity that user currently has opened anywhere on their device, is event.getClassName() enough to distinguish this activity from any other activity on the device? [CODE] So is it enough or is it possible that getClassName() might be the same for another activity? Meani... | android|android-activity | 1 | 2022-07-15T16:14:05.507Z | 2,022 | 7 | 16 | 4 | 26 | 1 | 413 | 60 | 2 | 1 | true | false | false | false | false | false | low |
72,996,951 | Why onCreate Method not called in MainActivity of Flutter App? | <p>I am developing a app in Flutter with Flutter Project Embedding v2</p>
<p>In the Android project, in the MainActivty.kt which extends FlutterActivity, none of the lifecycle methods called.</p>
<p>Why ?</p>
<p>The MainActivity added in manifest with launcher intent but still it not working at all</p>
<p>Even the brea... | I am developing a app in Flutter with Flutter Project Embedding v2 In the Android project, in the MainActivty.kt which extends FlutterActivity, none of the lifecycle methods called. Why ? The MainActivity added in manifest with launcher intent but still it not working at all Even the breakpoints set in the MainActivity... | android|flutter|kotlin|android-lifecycle|flutter-android | 0 | 2022-07-15T16:19:57.473Z | 2,022 | 7 | 16 | 4 | 10 | 0 | 449 | 62 | 5 | 0 | false | true | false | false | false | false | zero |
72,996,977 | Render Problem with Android Studio 2021 2.1.15 (the style does not change in the emulator) | <p>I am learning to build an app with android studio and using Kotlin. I just started changing the style of the "TextView" element but the view in the emulator isn't changing.
Here is the code of "activity_main.xml" :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
&l... | I am learning to build an app with android studio and using Kotlin. I just started changing the style of the "TextView" element but the view in the emulator isn't changing. Here is the code of "activity_main.xml" : [CODE] Here is the code of "values\themes.xml" [CODE] Here is the code of &... | android|xml|android-studio|kotlin | 0 | 2022-07-15T16:21:45.873Z | 2,022 | 7 | 16 | 4 | 23 | 1 | 594 | 90 | 4 | 5 | true | false | false | false | false | false | zero |
72,997,025 | Why "OpenCV's CV_Error" isn't catchable in Android owned C++ sources? | <p>I'm using OpenCV(4.2.0) in an android project. When calling some opencv methods from android project's C++ files, opencv throws <code>CV_Error</code> and the application terminates/crashes. Instead of the crash I want to handle the exception and resume the program. Is there anyway to catch those exceptions in the pr... | I'm using OpenCV(4.2.0) in an android project. When calling some opencv methods from android project's C++ files, opencv throws CV_Error and the application terminates/crashes. Instead of the crash I want to handle the exception and resume the program. Is there anyway to catch those exceptions in the projects' C++ file... | android|c++|opencv|android-ndk | 0 | 2022-07-15T16:24:57.873Z | 2,022 | 7 | 16 | 4 | 22 | 1 | 670 | 69 | 4 | 2 | true | false | false | false | false | false | zero |
72,997,238 | how to call Strings in mainactivity.xml from Strings.xml file | <ol>
<li><p>I want to Call it in TextView</p>
<pre><code><string name="Std_Name">Name: Muhammad Abdullah</string>
<string name="Std_Phone">Phone: +923338157028</string>
</code></pre>
</li>
</ol> | I want to Call it in TextView [CODE] | java|android|xml|android-studio | 1 | 2022-07-15T16:43:10.113Z | 2,022 | 7 | 16 | 4 | 51 | 4 | 36 | 61 | 4 | 1 | true | false | false | false | false | false | low |
72,997,240 | Android Studio's Translations Editor doesn't load - stuck on "Loading string resource data" loading indicator | <p>When I try to open the Translation Editor it gets stuck on "Loading string resource data" and I get an IDE error. This used to work fine a few weeks ago until adding in the <code>en-001</code> and <code>es-419</code> locales. I tried a new project and Translation editor did open fine until I added those sp... | When I try to open the Translation Editor it gets stuck on "Loading string resource data" and I get an IDE error. This used to work fine a few weeks ago until adding in the en-001 and es-419 locales. I tried a new project and Translation editor did open fine until I added those specific locales. I'll include ... | android|android-studio|localization|translation | 0 | 2022-07-15T16:43:22.183Z | 2,022 | 7 | 16 | 4 | 46 | 1 | 362 | 109 | 4 | 1 | true | false | false | false | false | false | zero |
72,997,303 | How to get the height of widgets in ListView in Flutter? | <p>I am creating a widget that takes a <code>List</code> of <code>Widget</code>s and allows selecting a <code>Widget</code> upon them, that's when this <code>Widget</code> will become decorated (for example a colored rectangle will be drawn around it). I used <code>CustomMultiChildLayout</code> widget because I need th... | I am creating a widget that takes a List of Widget s and allows selecting a Widget upon them, that's when this Widget will become decorated (for example a colored rectangle will be drawn around it). I used CustomMultiChildLayout widget because I need the height of the Widget s in the List in order to animate the decora... | android|flutter|performance|dart | 0 | 2022-07-15T16:49:04.070Z | 2,022 | 7 | 16 | 4 | 29 | 1 | 1,160 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
72,997,374 | Upload file to firebase | <p>I wrote a program that saves the data series in a txt file and I want to upload that file to firebase.
My problem is that I cannot choose the file in which the data is saved to be uploaded to Firebase
Please guide me with the source code or...</p> | I wrote a program that saves the data series in a txt file and I want to upload that file to firebase. My problem is that I cannot choose the file in which the data is saved to be uploaded to Firebase Please guide me with the source code or... | android|firebase|select|upload | 0 | 2022-07-15T16:56:16.973Z | 2,022 | 7 | 16 | 4 | 27 | 0 | 243 | 23 | 4 | 0 | false | true | false | false | false | false | zero |
72,997,403 | Android Camera2 - Manual White Balance | <p>Various incomplete versions of this question have been asked a few times and all the answers have been lacking. With Android and Camera2 in order to set a manual white balance you have to define two things; color correction gains (which apply to the Bayer channels) and a color correction transform matrix (which app... | Various incomplete versions of this question have been asked a few times and all the answers have been lacking. With Android and Camera2 in order to set a manual white balance you have to define two things; color correction gains (which apply to the Bayer channels) and a color correction transform matrix (which applies... | android|android-camera2|color-theory | 0 | 2022-07-15T16:58:23.153Z | 2,022 | 7 | 16 | 4 | 23 | 0 | 3,270 | 38 | 3 | 0 | false | true | false | false | false | false | zero |
72,997,530 | java.lang.RuntimeException: cannot find implementation for com.example.laptopsdb.AppDatabase. AppDatabase_Impl does not exist (July 2022) | <p><em>Yes I have already tried some old guides, I described it below.</em></p>
<p>I created new project for Room Database in Kotlin Android. I followed the official google documentation for it.</p>
<p><a href="https://developer.android.com/training/data-storage/room" rel="nofollow noreferrer">https://developer.android... | Yes I have already tried some old guides, I described it below. I created new project for Room Database in Kotlin Android. I followed the official google documentation for it. https://developer.android.com/training/data-storage/room If I follow as per documentation I get error [CODE] I also tried changing room-runtime ... | android|kotlin|android-room | 1 | 2022-07-15T17:10:17.933Z | 2,022 | 7 | 17 | 4 | 91 | 1 | 1,120 | 137 | 3 | 6 | true | false | false | false | false | false | low |
72,997,626 | pop off stack screens when other screen of drawer navigator is viewed | <p>React Native</p>
<p>I have a stack Navigator inside a Drawer Navigator. Here Beneficiaries is a Stack Navigation with Home screen ,Add benificairy and view Beneficiary as Stack Screens. If i click on a button in this stack's home screen i navigate to Add Beneficiary screen and now if i go to other screen in drawer n... | React Native I have a stack Navigator inside a Drawer Navigator. Here Beneficiaries is a Stack Navigation with Home screen ,Add benificairy and view Beneficiary as Stack Screens. If i click on a button in this stack's home screen i navigate to Add Beneficiary screen and now if i go to other screen in drawer navigator a... | android|react-native | 0 | 2022-07-15T17:19:08.690Z | 2,022 | 7 | 17 | 4 | 12 | 0 | 1,731 | 69 | 2 | 3 | true | true | false | false | false | false | zero |
72,997,754 | How do I create a ListView with numbers having rounded background in Android? | <p>I want to create a ListView with numbers having rounded background in Android. I have included the sample image below.</p>
<p><a href="https://i.stack.imgur.com/iBMn5.png" rel="nofollow noreferrer">Listview with numbers with rounded background</a></p> | I want to create a ListView with numbers having rounded background in Android. I have included the sample image below. Listview with numbers with rounded background | android-listview | 0 | 2022-07-15T17:31:19.393Z | 2,022 | 7 | 17 | 4 | 14 | 0 | 164 | 77 | 1 | 0 | false | true | false | false | false | false | zero |
72,997,810 | How to get context in non composable function (Viewmodel) - Jetpack Compose | <p>Hello developers in a composable function i can get context like this : LocalContext.current but how can i get it from a viewmodel class ???This is my viewmodel:</p>
<pre><code>class LoginViewModel(
private val _global: GlobalServices = GlobalServices(),
private val _login:LoginModel= LoginModel(),
priva... | Hello developers in a composable function i can get context like this : LocalContext.current but how can i get it from a viewmodel class ???This is my viewmodel: [CODE] | android-jetpack-compose | 0 | 2022-07-15T17:36:32.977Z | 2,022 | 7 | 17 | 4 | 59 | 1 | 168 | 75 | 1 | 1 | true | false | false | false | false | false | zero |
72,997,933 | How to Animate An Image in Jetpack Compose? | <p>I haven't seen any posts that are searching for what I want. I simply want to animate an icon to go across the screen. Just an Image, to go left to right upon showing the composable.</p>
<p>So far I've only seen that Animations are launched with a button click or when something happens, but I want this Animation to ... | I haven't seen any posts that are searching for what I want. I simply want to animate an icon to go across the screen. Just an Image, to go left to right upon showing the composable. So far I've only seen that Animations are launched with a button click or when something happens, but I want this Animation to launch whe... | android|android-studio|kotlin|android-jetpack-compose | 0 | 2022-07-15T17:49:58.070Z | 2,022 | 7 | 17 | 4 | 222 | 2 | 353 | 43 | 4 | 0 | false | false | false | false | false | false | zero |
72,997,956 | How to make a ListView in a Fragment display my data (Android)? | <p>I'm working on my Android app and have a Fragment FragmentBlank with TextView messages_list in it. In the FragmentBlank.kt I wrote these 5 lines:</p>
<pre><code>override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
val view = inflater.inflate(R... | I'm working on my Android app and have a Fragment FragmentBlank with TextView messages_list in it. In the FragmentBlank.kt I wrote these 5 lines: [CODE] But after I run my application I see that messages_list is empty. How could I fix it? | android|kotlin|listview|mobile | 1 | 2022-07-15T17:52:42.397Z | 2,022 | 7 | 17 | 4 | 44 | 1 | 238 | 63 | 4 | 1 | true | false | false | false | false | false | low |
72,997,994 | Android canvas sizing | <p>When I creating custom View which is extends by android.view.View I used onDraw methods to draw something with canvas.</p>
<p>For example I created RectangleTextView and inside the onDraw methods I did like this</p>
<pre><code>Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.RED);
... | When I creating custom View which is extends by android.view.View I used onDraw methods to draw something with canvas. For example I created RectangleTextView and inside the onDraw methods I did like this [CODE] to create rectangle background with red color and it's might have 100 w/h (square) and I draw next stuff to ... | android|canvas | 0 | 2022-07-15T17:55:54.887Z | 2,022 | 7 | 17 | 4 | 34 | 0 | 888 | 21 | 2 | 3 | true | true | false | false | false | false | zero |
72,998,018 | Accessing XML of another activity from activity | <p>in my project, I am trying to access the xml of another activity from one activity, but I am getting an error. (I want to make ConstraintLayout "GONE" when I access the xml of activity_main 2 from activity_main and press the button)</p>
<p>this is the error message: void <code>androidx.constraintlayout.wi... | in my project, I am trying to access the xml of another activity from one activity, but I am getting an error. (I want to make ConstraintLayout "GONE" when I access the xml of activity_main 2 from activity_main and press the button) this is the error message: void androidx.constraintlayout.widget.ConstraintLa... | java|android|xml|android-studio|android-constraintlayout | 0 | 2022-07-15T17:57:50.430Z | 2,022 | 7 | 17 | 4 | 35 | 0 | 401 | 47 | 5 | 1 | true | true | false | false | false | false | zero |
72,998,093 | "[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Future<File>' is not a subtype of type 'File?' in type cast" Error | <p>I'm trying to upload a pic with Flutter and upload this image to imgur. But I am getting an error. Before that, let me show you my codes:</p>
<pre><code>FloatingActionButton.large(
child: Icon(Icons.folder, color: Colors.white, size: 45,),
backgroundColor: Color.fromARGB(255, 36, 36, 36),
onPressed: () async {... | I'm trying to upload a pic with Flutter and upload this image to imgur. But I am getting an error. Before that, let me show you my codes: [CODE] When I try this code I get this error: [CODE] How can I solve this problem? Thanks in advance for your help. | android|flutter|imagepicker | 0 | 2022-07-15T18:04:46.783Z | 2,022 | 7 | 18 | 4 | 2,007 | 2 | 253 | 145 | 3 | 2 | true | false | false | false | false | false | zero |
72,998,104 | How to get multiple product details from Google Play Billing 5? | <p>How do you query a list of products from google play billing 5?</p>
<p>From <a href="https://developer.android.com/google/play/billing/integrate#java" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/integrate#java</a>, we query the details of a single product by passing the name of the pr... | How do you query a list of products from google play billing 5? From https://developer.android.com/google/play/billing/integrate#java , we query the details of a single product by passing the name of the product to setProductId , [CODE] But that only gets a single product, thus when you try to print out List<ProductDet... | android|google-play|play-billing-library | 1 | 2022-07-15T18:06:09.483Z | 2,022 | 7 | 18 | 4 | 372 | 3 | 507 | 63 | 3 | 1 | true | false | false | false | false | false | low |
72,998,242 | Overwhelmed by layouts, what are my alternatives to make a layout like this, but dynamic number of items? | <p><a href="https://i.stack.imgur.com/n4RAy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n4RAy.png" alt="enter image description here" /></a></p>
<p>I'm a flutter user trying out kotlin dev first time, but im kinda confused what the best alternatives for this type of layouts are.</p>
<p>I understa... | I'm a flutter user trying out kotlin dev first time, but im kinda confused what the best alternatives for this type of layouts are. I understand that I use recyclerview for a dynamic number of items. And since theres two dynamic ones (one for number of sets, one for each exercise). Do I use two nested recyclerviews? | android|kotlin | 0 | 2022-07-15T18:24:05.887Z | 2,022 | 7 | 18 | 4 | 38 | 1 | 317 | 105 | 2 | 0 | false | false | false | false | false | false | zero |
72,998,292 | Is there any delay on workmanager execution when started from background thread vs when started from main thread? | <p>I have a oneTimeRequest that run some task now I want to know what is the diffrence when I enque this request in workmanager via main thread and background thread. Is there any delay in starting dowork ?</p> | I have a oneTimeRequest that run some task now I want to know what is the diffrence when I enque this request in workmanager via main thread and background thread. Is there any delay in starting dowork ? | android|android-workmanager | 0 | 2022-07-15T18:28:53.443Z | 2,022 | 7 | 18 | 4 | 26 | 0 | 203 | 113 | 2 | 0 | false | true | false | false | false | false | zero |
72,998,339 | Ionic Angular '[console.error]: "ERROR" {}' without any explanation / log | <p><a href="https://i.stack.imgur.com/aJPD1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aJPD1.png" alt="enter image description here" /></a></p>
<p>Hello, I am having errors in my Ionic App.</p>
<p>I'm running</p>
<pre><code>ionic cordova run android --livereload --consolelogs --serverlogs
</code... | Hello, I am having errors in my Ionic App. I'm running [CODE] with a physical phone. As you can see I'm able to see console.logs, but there must be an error that is creating the [CODE] But it doesn't explain anything! There is no error logs or stack trace error. I don't have any console.error in my code, so it must be ... | android|angular|ionic-framework | 0 | 2022-07-15T18:33:58.157Z | 2,022 | 7 | 18 | 4 | 25 | 2 | 432 | 73 | 3 | 2 | true | false | false | false | false | false | zero |
72,998,388 | How can I handle touch's in the same time and long Touch in android studio | <p>hello I making 2d game in android studio so I drew with canvas 3 circle (buttons) two in the right side of the screen that on of them when touch it the player move right and the other one move left . in the left side of the screen there a circle (button) to the jump so when I keep touching the screen on keys that mo... | hello I making 2d game in android studio so I drew with canvas 3 circle (buttons) two in the right side of the screen that on of them when touch it the player move right and the other one move left . in the left side of the screen there a circle (button) to the jump so when I keep touching the screen on keys that moves... | android-studio|touch-event | 0 | 2022-07-15T18:40:07.363Z | 2,022 | 7 | 18 | 4 | 14 | 0 | 478 | 74 | 2 | 1 | true | true | false | false | false | false | zero |
72,998,452 | How can I add a .aar file as a package in my flutter android application? | <p>I just received a <code>*.aar</code> file from my vendor, which turned out to be the SDK I need to use to consume their service. But since my application is in Flutter how can I import that SDK and use its methods from my flutter application.</p> | I just received a *.aar file from my vendor, which turned out to be the SDK I need to use to consume their service. But since my application is in Flutter how can I import that SDK and use its methods from my flutter application. | java|android|flutter|sdk | 1 | 2022-07-15T18:46:53.353Z | 2,022 | 7 | 18 | 4 | 27 | 1 | 229 | 73 | 4 | 0 | false | false | false | false | false | false | low |
72,998,539 | how to make many ViewModelFactory in kodein with kotlin | <p>i use kodein principle in mvvm to set my ViewModelFactory with repositories</p>
<pre><code>class AddSpendApplication: Application(), KodeinAware {
override val kodein: Kodein = Kodein.lazy {
import(androidXModule(this@AddSpendApplication))
bind() from singleton { PersonalAccountingDateBase(instance()) }
... | i use kodein principle in mvvm to set my ViewModelFactory with repositories [CODE] so when i have many ViewModel in my app , i should make ViewModelFactory for every ViewModel i have then get each repository instance to the ViewModelFactory in kodein scope . with many ViewModelFactory i have how to make them in kodein ... | android|kotlin|kodein | 0 | 2022-07-15T18:56:38.710Z | 2,022 | 7 | 18 | 4 | 34 | 1 | 474 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
72,998,851 | CMD issue in Android Studio and Flutter | <p>I had run <code>flutter doctor --android-licenses</code> in the CMD and it shows <code>y/n</code>. But before clicking <code>y</code> it automatically goes back to the command prompt like <code>c:\users\asus></code>. Any suggestions except reset are appreciated</p> | I had run flutter doctor --android-licenses in the CMD and it shows y/n . But before clicking y it automatically goes back to the command prompt like c:\users\asus> . Any suggestions except reset are appreciated | flutter|android-studio | 0 | 2022-07-15T19:33:42.157Z | 2,022 | 7 | 19 | 4 | 24 | 1 | 211 | 39 | 2 | 0 | false | false | false | false | false | false | zero |
72,998,858 | In Flutter How do you navigate to a different page and click on a button to navigate to a specfic bottomnavigationtab? I am using Gnav | <p>I am trying to understand how to return to a specific bottomtabindex. As of now I used a hacky way of ading an index to the HomePage as you can see. The issue is I cannot pass the Game object to HomePage too because it feels anti pattern. The Game Object should be passed to the Game Widget/screen</p>
<pre><code>cla... | I am trying to understand how to return to a specific bottomtabindex. As of now I used a hacky way of ading an index to the HomePage as you can see. The issue is I cannot pass the Game object to HomePage too because it feels anti pattern. The Game Object should be passed to the Game Widget/screen [CODE] //create game w... | android|ios|flutter|dart|flutter-navigation | 0 | 2022-07-15T19:34:07.403Z | 2,022 | 7 | 19 | 4 | 22 | 0 | 332 | 134 | 5 | 2 | true | true | false | false | false | false | zero |
72,999,046 | Tensorflow Lite model run does not change the output buffer | <h2>The Problem</h2>
<p>I have been working on implementing a super resolution model with Tensorflow Lite. I have an empty bitmap 4x the size of the input bitmap (which is <code>bmp</code>):</p>
<pre><code>Bitmap out = Bitmap.createBitmap(bmp.getWidth() * 4, bmp.getHeight() * 4, Bitmap.Config.ARGB_8888);
</code></pre>
... | The Problem I have been working on implementing a super resolution model with Tensorflow Lite. I have an empty bitmap 4x the size of the input bitmap (which is bmp ): [CODE] And I converted both bitmaps to TensorImage s [CODE] However, when I run the model ( InterpreterApi tflite ): [CODE] The bitmap from superImage ha... | android|tensorflow|bitmap|tensorflow-lite | 0 | 2022-07-15T19:58:02.027Z | 2,022 | 7 | 19 | 4 | 25 | 0 | 1,017 | 59 | 4 | 4 | true | true | false | false | false | false | zero |
72,999,185 | Flutter Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker) Error | <p>I'm trying to use <a href="https://pub.dev/packages/image_picker" rel="nofollow noreferrer">image_picker</a> on Windows 10. But when the file selection screen is triggered, I get an error like this:</p>
<pre><code>[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No imple... | I'm trying to use image_picker on Windows 10. But when the file selection screen is triggered, I get an error like this: [CODE] What could this problem be caused by? Codes: [CODE] Thanks for help. | android|flutter|imagepicker | 0 | 2022-07-15T20:15:22.083Z | 2,022 | 7 | 20 | 4 | 35 | 1 | 196 | 146 | 3 | 2 | true | false | false | false | false | false | zero |
72,999,194 | HMS About the Device and Network Abuse policy | <p>The error message:</p>
<blockquote>
<p>Your app contains content that doesn’t comply with the Device and Network Abuse policy. We found your app is using a non-compliant version of Huawei Mobile Services SDK SDK which contains code to download or install applications from unknown sources outside of Google Play.
Give... | The error message: Your app contains content that doesn’t comply with the Device and Network Abuse policy. We found your app is using a non-compliant version of Huawei Mobile Services SDK SDK which contains code to download or install applications from unknown sources outside of Google Play. Given the nature of the SDK... | android|huawei-mobile-services|huawei-developers | -1 | 2022-07-15T20:16:30.147Z | 2,022 | 7 | 20 | 4 | 246 | 1 | 492 | 45 | 3 | 2 | true | false | false | false | false | true | negative |
72,999,195 | How to animate the next item smoothly when expanding the previous item in recyclerview | <p>I'm making an <code>expandable nested recyclerview</code>.</p>
<p>I have implemented both a parent recycler view and a child(nested) recycler view, but I would like the next item to be pushed out more smoothly when the previous item is expanded.</p>
<p>I'll show you an example image.</p>
<p><strong>First what I want... | I'm making an expandable nested recyclerview . I have implemented both a parent recycler view and a child(nested) recycler view, but I would like the next item to be pushed out more smoothly when the previous item is expanded. I'll show you an example image. First what I want. But what I made. If you look at the GIF fi... | android|kotlin|android-recyclerview|epoxy | 1 | 2022-07-15T20:16:43.027Z | 2,022 | 7 | 20 | 4 | 40 | 0 | 757 | 86 | 4 | 1 | true | true | false | false | false | false | low |
72,999,263 | How do I make a button that quits the application in Android Studio using the Java programming language? | <p>I've been trying to use Google to search on how to make a simple quit button in java on Android Studio IDE. Unfortunately all of the tutorials on Youtube or otherwise are all tutorials on how to make functioning buttons in the Kotlin programming language. The reason why I need to make the button in Java is that it i... | I've been trying to use Google to search on how to make a simple quit button in java on Android Studio IDE. Unfortunately all of the tutorials on Youtube or otherwise are all tutorials on how to make functioning buttons in the Kotlin programming language. The reason why I need to make the button in Java is that it is f... | java|android | -2 | 2022-07-15T20:24:18.737Z | 2,022 | 7 | 20 | 4 | 36 | 1 | 407 | 104 | 2 | 0 | false | false | false | false | false | true | negative |
72,999,274 | Emulator: Process finished with exit code 134 (interrupted by signal 6: SIGABRT) on Linux | <p>So I am on Garuda Linux (based on Arch), and I wanted to get some Android programming done. So when I decided to install Android Studio 3.5.2 (yes, this is not the latest version), I made a new project. And when I ran the default Hello World program Android Studio gives you, it gave me this error:</p>
<pre><code>Emu... | So I am on Garuda Linux (based on Arch), and I wanted to get some Android programming done. So when I decided to install Android Studio 3.5.2 (yes, this is not the latest version), I made a new project. And when I ran the default Hello World program Android Studio gives you, it gave me this error: [CODE] I would like t... | java|android-studio | 0 | 2022-07-15T20:25:50.707Z | 2,022 | 7 | 20 | 4 | 47 | 0 | 499 | 89 | 2 | 1 | true | true | false | false | false | false | zero |
72,999,315 | Internal Error when executing TextRecognition using CameraX in realtime | <p>I am attempting to us ML Kit to do some realtime text detection from CameraX on an Android app.</p>
<p>My ImageAnalyser is as follows:</p>
<pre><code>package com.renegade.CoWarrior;
import android.annotation.SuppressLint;
import android.media.Image;
import android.util.Log;
import androidx.annotation.NonNull;
imp... | I am attempting to us ML Kit to do some realtime text detection from CameraX on an Android app. My ImageAnalyser is as follows: [CODE] I configure this analyzer by this code: [CODE] I didn't know what to put for the Executor so I made this : [CODE] The error I am being flooded with is : [CODE] The log slightly before t... | android|firebase|android-layout|android-camerax|google-mlkit | 0 | 2022-07-15T20:30:46.913Z | 2,022 | 7 | 20 | 4 | 119 | 1 | 500 | 71 | 5 | 5 | true | false | false | false | false | false | zero |
72,999,322 | How do i whitelist a redirect URL for my android app | <p>Im trying to work with spotify's API, with java on Android studio and one of the requirement is that i whitelist a redirect URI that the Spotify Accounts Service will use to callback to my app after authorization. I've only worked with a weather API in an android app ive built with java on android studio and i didn'... | Im trying to work with spotify's API, with java on Android studio and one of the requirement is that i whitelist a redirect URI that the Spotify Accounts Service will use to callback to my app after authorization. I've only worked with a weather API in an android app ive built with java on android studio and i didn't w... | java|android|api|redirect|whitelist | 0 | 2022-07-15T20:31:47.507Z | 2,022 | 7 | 20 | 4 | 62 | 1 | 368 | 52 | 5 | 0 | false | false | false | false | false | false | zero |
72,999,488 | Expo eject throwing error - Something went wrong installing JavaScript dependencies, check your npm logfile or run npm install again manually | <p>Till few hours ago expo eject was working completely fine. Suddenly it has started throwing error.</p>
<p><strong>Things to consider:</strong></p>
<ol>
<li>I recently updated to Node v16 and npm v8.</li>
<li>Tried uninstall expo-cli, re-installing, downgrading, upgrading.</li>
<li>To install packages I have to run n... | Till few hours ago expo eject was working completely fine. Suddenly it has started throwing error. Things to consider: I recently updated to Node v16 and npm v8. Tried uninstall expo-cli, re-installing, downgrading, upgrading. To install packages I have to run npm with flag --legacy-peer-deps. But, most likely it's bec... | android|ios|react-native|expo|eas | 1 | 2022-07-15T20:52:04.210Z | 2,022 | 7 | 20 | 4 | 124 | 1 | 535 | 141 | 5 | 0 | false | false | false | false | false | false | low |
72,999,702 | How does Firebase FireStore Read Count works? Does it relay on Document? or Document Field? of Document Field Data? | <p>I am developing an app using Firestore as a database and am a bit confused about firestore reads, I ma how does it count 1 read?</p>
<p><strong>1.</strong> If whenever I call any document from the collection, does this document read cost me as 1 read?
note: the document has 10 string fields with data
so does it cost... | I am developing an app using Firestore as a database and am a bit confused about firestore reads, I ma how does it count 1 read? 1. If whenever I call any document from the collection, does this document read cost me as 1 read? note: the document has 10 string fields with data so does it cost me 1 read? (document read)... | android|firebase|android-studio|firebase-realtime-database|google-cloud-firestore | -1 | 2022-07-15T21:19:22.230Z | 2,022 | 7 | 21 | 4 | 40 | 1 | 1,238 | 115 | 5 | 2 | true | false | false | false | false | true | negative |
72,999,747 | How to Completely Exclude File from Gradle sourceSet? | <p>There is a file in my Android Apps <code>res</code> directory that Gradle doesn't like: "OWNERS". The file must be there, but Gradle gives the following error when compiling:</p>
<pre><code>'O' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9... | There is a file in my Android Apps res directory that Gradle doesn't like: "OWNERS". The file must be there, but Gradle gives the following error when compiling: [CODE] I have tried excluding it with the following, but it makes no difference: [CODE] To be clear, I don't care what happens to this file as it re... | android|gradle|android-gradle-plugin | 1 | 2022-07-15T21:26:01.367Z | 2,022 | 7 | 21 | 4 | 62 | 0 | 582 | 53 | 3 | 2 | true | true | false | false | false | false | low |
72,999,820 | Can Firebase's onNewToken() fire when the app is backgrounded or killed? | <p>I am trying to understand the behavior of Firebase Cloud Messaging's client app <a href="https://firebase.google.com/docs/cloud-messaging/android/client#monitor-token-generation" rel="nofollow noreferrer">onNewToken</a> method.</p>
<p>Within the documentation you see several references to several events which can ca... | I am trying to understand the behavior of Firebase Cloud Messaging's client app onNewToken method. Within the documentation you see several references to several events which can cause FCM to regenerate the token but no comprehensive list. Some samplings: On initial startup of your app, the FCM SDK generates a registra... | android|firebase|firebase-cloud-messaging | 0 | 2022-07-15T21:37:11.473Z | 2,022 | 7 | 21 | 4 | 38 | 1 | 1,841 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
72,999,854 | Android Studio Server data transfer | <p>I am developing an app in android studio and I would appreciate some help with it.</p>
<p>The idea is to make the app get data from some type of online server/database/whatever would be the best option. Then after retrieving data from there it would use it to display the data in app and user would be able to interac... | I am developing an app in android studio and I would appreciate some help with it. The idea is to make the app get data from some type of online server/database/whatever would be the best option. Then after retrieving data from there it would use it to display the data in app and user would be able to interact with dat... | java|android|database|android-studio|server | 0 | 2022-07-15T21:43:00.647Z | 2,022 | 7 | 21 | 4 | 24 | 0 | 634 | 35 | 5 | 0 | false | true | false | false | false | false | zero |
72,999,951 | Kotlin. Mockk: Missing mocked calls inside every | <p>I'm using mockk library fo testing my business logic. I have interactor which I want to test. My interactor retrieve in constructor data class. Fox example:</p>
<pre><code> data class Test(
var data1: Data1? = null,
var data2: Data2? = null,
var data3: Data3? = null
// etc
)
... | I'm using mockk library fo testing my business logic. I have interactor which I want to test. My interactor retrieve in constructor data class. Fox example: [CODE] Inside my test I'm trying to make partial mocking: [CODE] And I get error: Missing mocked calls inside every { ... } block: make sure the object inside the ... | android|unit-testing|kotlin|junit|mockk | 0 | 2022-07-15T21:56:44.217Z | 2,022 | 7 | 21 | 4 | 208 | 1 | 591 | 48 | 5 | 3 | true | false | false | false | false | false | zero |
72,999,959 | Translate animation not moving smoothly | <p>I am trying to make a card game, I use translate animation to move the cards when user plays. It came to my notice that the animation works smoothly for device with higher android versions and performs poorly and Jacky on android 5.0 down. How can I make the animation moves smoothly on all devices? Below is my metho... | I am trying to make a card game, I use translate animation to move the cards when user plays. It came to my notice that the animation works smoothly for device with higher android versions and performs poorly and Jacky on android 5.0 down. How can I make the animation moves smoothly on all devices? Below is my method u... | java|android-studio|kotlin|android-layout|translate-animation | 0 | 2022-07-15T21:57:26.097Z | 2,022 | 7 | 21 | 4 | 43 | 0 | 350 | 39 | 5 | 1 | true | true | false | false | false | false | zero |
73,000,329 | Mock boolean property using Mockk is not working | <p>I'm using Mockk and I want to test a MediatorLiveData that depends of some boolean properties of the class.</p>
<p>I was using <code>mockkConstructor(Boolean::class)</code> but suddenly a warning appears on the console log and all the test cases fails (I'm not sure but seems to be happening after updating the Kotlin... | I'm using Mockk and I want to test a MediatorLiveData that depends of some boolean properties of the class. I was using mockkConstructor(Boolean::class) but suddenly a warning appears on the console log and all the test cases fails (I'm not sure but seems to be happening after updating the Kotlin version) WARNING: Non ... | android|unit-testing|kotlin|mockk | 0 | 2022-07-15T23:04:02.850Z | 2,022 | 7 | 23 | 4 | 134 | 0 | 542 | 48 | 4 | 2 | true | true | false | false | false | false | zero |
73,000,372 | Make link inside of string clickable: Java | <p>I am creating a messaging system in Java using android studio.</p>
<p>People can send messages back and forth. But if they send a link, it just shows up as regular text. I want the part that is the link to show up as a clickable link and the rest just text.</p>
<p>I checked all day on this site and others but no see... | I am creating a messaging system in Java using android studio. People can send messages back and forth. But if they send a link, it just shows up as regular text. I want the part that is the link to show up as a clickable link and the rest just text. I checked all day on this site and others but no seems to do this in ... | java|android|string | 0 | 2022-07-15T23:12:55.410Z | 2,022 | 7 | 23 | 4 | 110 | 1 | 494 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
73,000,532 | Why am I getting SecurityException in WearableActivityController.onDestroy in WearOS on Samsung Watch 4? | <p>This exception happens when a parent class is called from my WearOS main activity derived from WearableActivity:</p>
<pre><code>class MainActivity() : WearableActivity(),
CapabilityClient.OnCapabilityChangedListener {
...
override fun onDestroy() {
super.onDestroy() // <--- Here !!!
if ... | This exception happens when a parent class is called from my WearOS main activity derived from WearableActivity: [CODE] The full stack trace from Google Play is below. The watch model is Samsung Watch 4 running Android 11. I didn't see the crash on other watches. [CODE] | wear-os|android-11|samsung-galaxy-watch-4 | 0 | 2022-07-15T23:45:22.373Z | 2,022 | 7 | 23 | 4 | 24 | 1 | 270 | 104 | 3 | 2 | true | false | false | false | false | false | zero |
73,000,534 | Flatlist not displaying anything on Android but works fine on iOS | <p>I got a Flatlist, that takes its data from an API through Axios, and it works perfectly fine on iOS simulator, however, on Android simulator it's just a blank screen. If I take away the Flatlist component and just display the Article object it works on Android but as I put back the Flatlist it won't show anything. A... | I got a Flatlist, that takes its data from an API through Axios, and it works perfectly fine on iOS simulator, however, on Android simulator it's just a blank screen. If I take away the Flatlist component and just display the Article object it works on Android but as I put back the Flatlist it won't show anything. As I... | android|reactjs|react-native|flatlist | 0 | 2022-07-15T23:46:00.787Z | 2,022 | 7 | 23 | 4 | 46 | 1 | 451 | 65 | 4 | 3 | true | false | false | false | false | false | zero |
73,000,649 | recreate activity with animation not work | <p>Change all my activity to ViewModel to keep the UI data because I need to recreate the activity when switching to dark mode or applying a theme.</p>
<p>I created the fade in and fade out animations to add them, but I can't get it.</p>
<p>I already tried</p>
<pre><code>recreate()
overridePendingTransition(in, out)
f... | Change all my activity to ViewModel to keep the UI data because I need to recreate the activity when switching to dark mode or applying a theme. I created the fade in and fade out animations to add them, but I can't get it. I already tried [CODE] Even if it is not with animation, when recreating the activity the transi... | android|kotlin|recreate | 0 | 2022-07-16T00:13:04.790Z | 2,022 | 7 | 0 | 5 | 32 | 1 | 463 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
73,000,951 | How can I make a background service for timer without showing a notification? | <p>I have tried many solution but useless, all say use foreground service.</p>
<p>is there a way to <strong>trick</strong> android or to use a proper way.</p>
<p>i know it's restriction from android to inform the user that an app is draining the battery without using it.</p> | I have tried many solution but useless, all say use foreground service. is there a way to trick android or to use a proper way. i know it's restriction from android to inform the user that an app is draining the battery without using it. | java|android | -3 | 2022-07-16T01:33:43.787Z | 2,022 | 7 | 1 | 5 | 40 | 1 | 237 | 77 | 2 | 0 | false | false | false | false | false | true | negative |
73,001,208 | Huawei Safety Detect checkURL API threat return empty list even when using malicious url for testing | <p>Im trying to check if url is malicious in my app. But the output always return that the link is safe even when i put malicious link. Im developing the app using Android Studio and use both GMS and HMS library. Im running the app on my device which is Samsung and its working fine except for the problem i mention abov... | Im trying to check if url is malicious in my app. But the output always return that the link is safe even when i put malicious link. Im developing the app using Android Studio and use both GMS and HMS library. Im running the app on my device which is Samsung and its working fine except for the problem i mention above. ... | android-studio|huawei-mobile-services | 1 | 2022-07-16T02:54:54.947Z | 2,022 | 7 | 2 | 5 | 66 | 1 | 524 | 100 | 2 | 1 | true | false | false | false | false | false | low |
73,001,270 | How to do scrollable clickable text in Glance widget? | <p>I want to do the following:</p>
<pre><code>Column(modifier = modifier.verticalScroll().clickable(
onClick = actionStartActivity(MainActivity::class.java)
)) {
Text(text = "some really long text")
}
</code></pre>
<p>The problem is that there is no verticalScroll modifier, so the only way I can figure... | I want to do the following: [CODE] The problem is that there is no verticalScroll modifier, so the only way I can figure out how to get the content to scroll is by using a LazyColumn, however if I try to add a clickable modifier to the LazyColumn then the widget won't load. If I wrap the LazyColumn in a Column I can th... | android-jetpack-compose|glance-appwidget|glance | 0 | 2022-07-16T03:13:31.017Z | 2,022 | 7 | 3 | 5 | 64 | 1 | 533 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
73,001,402 | Cannot fill background of display cutout on landscape with desired color, looks ugly on Huawei | <p>I developed app and thought everything is right with full screen until I run it on huawei cloud debugging real devices and discovered it is not working there. I tried everything and don't see much about it anywhere.
It looks like I cannot get system bar space when running on landscape to disappear.<a href="https://i... | I developed app and thought everything is right with full screen until I run it on huawei cloud debugging real devices and discovered it is not working there. I tried everything and don't see much about it anywhere. It looks like I cannot get system bar space when running on landscape to disappear. I can see similar be... | android|fullscreen|huawei-mobile-services|huawei-developers | 1 | 2022-07-16T03:57:06.437Z | 2,022 | 7 | 3 | 5 | 101 | 1 | 984 | 94 | 4 | 6 | true | false | false | false | false | false | low |
73,001,525 | No Android SDK found. Try setting the ANDROID_SDK_ROOT environment variable. android studio flutter build on windows | <p>recieved this error on android studio flutter app apk generation..[!] No Android SDK found. Try setting the ANDROID_SDK_ROOT environment variable.
Process finished with exit code 1</p>
<p>How do I fix this I am running on windows</p> | recieved this error on android studio flutter app apk generation..[!] No Android SDK found. Try setting the ANDROID_SDK_ROOT environment variable. Process finished with exit code 1 How do I fix this I am running on windows | android|windows|flutter | 0 | 2022-07-16T04:29:55.473Z | 2,022 | 7 | 4 | 5 | 50 | 1 | 222 | 116 | 3 | 0 | false | false | false | false | false | false | zero |
73,001,615 | Get only head values from firebase database | <p>I have a users database in firebase that contains user's first name and last name
<a href="https://i.stack.imgur.com/wtxNV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtxNV.png" alt="Firebase Database" /></a>
So, i want to take only the head name (i.e) Stephen, Steve, Tony e.t.c.
And i want to... | I have a users database in firebase that contains user's first name and last name So, i want to take only the head name (i.e) Stephen, Steve, Tony e.t.c. And i want to show them as a list in a recycler view. Is this possible? This is my java object [CODE] and i have created my adapter that extends RecyclerView.Adapter<... | java|android|firebase|firebase-realtime-database | 1 | 2022-07-16T04:52:20.037Z | 2,022 | 7 | 4 | 5 | 29 | 0 | 374 | 43 | 4 | 1 | true | true | false | false | false | false | low |
73,001,646 | android: Notify a fragment when something happened in another fragment | <p>I Built a fragment (using jetpack compose to built the views) and in this fragment I have a button. every time this button was clicked, I want to notify another fragment to do something.
How can I do that?
I use MVVM and MVI design patterns.
Thanks.</p> | I Built a fragment (using jetpack compose to built the views) and in this fragment I have a button. every time this button was clicked, I want to notify another fragment to do something. How can I do that? I use MVVM and MVI design patterns. Thanks. | kotlin|mvvm|fragment|android-jetpack-compose | 0 | 2022-07-16T04:59:32.017Z | 2,022 | 7 | 4 | 5 | 43 | 1 | 249 | 70 | 4 | 0 | false | false | false | false | false | false | zero |
73,001,706 | flutter signature do not match and problem with AndroidId | <ul>
<li><p>I am working on a Flutter project , where I am checking the AndroidId of a device while loading the app, using the device_info_pluging package.</p>
</li>
<li><p>I am working on the project on 2 computers, usually switching between them twice a week, pulling and pushing the changes to/from GitHub private rep... | I am working on a Flutter project , where I am checking the AndroidId of a device while loading the app, using the device_info_pluging package. I am working on the project on 2 computers, usually switching between them twice a week, pulling and pushing the changes to/from GitHub private repository. Working with a physi... | flutter|github|signature|android-identifiers | 1 | 2022-07-16T05:15:41.620Z | 2,022 | 7 | 5 | 5 | 67 | 2 | 1,475 | 57 | 4 | 1 | true | false | false | false | false | false | low |
73,001,726 | APIs to handle the app resume in RecyclerView in android | <p>I have a RecyclerView :</p>
<pre><code>class MyCustomRecyclerView @JvmOverloads constructor(...) : RecyclerView(...)
{
override fun onSaveInstanceState(): Parcelable? {
Log.i("MY_TAG", "onSaveInstanceState")
return super.onSaveInstanceState()
}
override fun onRestoreI... | I have a RecyclerView : [CODE] And I am using this RecyclerView in a Fragment [CODE] On clicking the "home" button and launching the app again from the recent apps, the onPause() and onResume() APIs of the fragment are getting called and I am able to startSomeWork() and stopSomeWork() . But I want to do the s... | android|android-recyclerview|onresume|onpause|onsaveinstancestate | 0 | 2022-07-16T05:20:01.003Z | 2,022 | 7 | 5 | 5 | 24 | 0 | 672 | 56 | 5 | 2 | true | true | false | false | false | false | zero |
73,001,757 | Why setZoomChangeListener is not working in camera2 Android? | <p>I am using the camera2 api and zoom the cameraview programically using setZoom() . It is zooming the camera as required but onZoomChange() method of setZoomChangeListener() is never getting called, my code is as follows .</p>
<pre><code> camera.setZoomChangeListener(new Camera.OnZoomChangeListener() {
@Overrid... | I am using the camera2 api and zoom the cameraview programically using setZoom() . It is zooming the camera as required but onZoomChange() method of setZoomChangeListener() is never getting called, my code is as follows . [CODE] I want to perform some action when zoom is completed , So how it is possible? | android|android-camera2 | 0 | 2022-07-16T05:27:20.030Z | 2,022 | 7 | 5 | 5 | 18 | 0 | 306 | 60 | 2 | 1 | true | true | false | false | false | false | zero |
73,001,827 | Jetpack Compose ConstraintLayout TextField baseline moves | <p>I'm experimenting with Jetpack Compose and ConstraintLayout.</p>
<p>I have a Text()-Resource and a TextField. I want the Text to vertically align with TextFields baseline.</p>
<pre class="lang-kotlin prettyprint-override"><code>@Composable
fun MyComposable() {
ContraintLayout {
val (text, textfield) = cr... | I'm experimenting with Jetpack Compose and ConstraintLayout. I have a Text()-Resource and a TextField. I want the Text to vertically align with TextFields baseline. [CODE] When I use this composable, the text "foo" is perfectly aligned with the baseline of textfield. But when i focus the textfield and the lab... | android-jetpack-compose|android-constraintlayout|android-jetpack | 1 | 2022-07-16T05:45:57.383Z | 2,022 | 7 | 5 | 5 | 81 | 0 | 524 | 57 | 3 | 1 | true | true | false | false | false | false | low |
73,001,969 | How to copy a directory in android API 30 | <p>My app is a cloud storage on target SDK 30, I want to download folders in API 30 but it doesn't work.</p>
<p>At first, the user is directed to the SAF environment using ACTION_CREATE_DOCUMENT, after selecting the path, the files are downloaded in the App Data path and then copied to the path selected by the user.</p... | My app is a cloud storage on target SDK 30, I want to download folders in API 30 but it doesn't work. At first, the user is directed to the SAF environment using ACTION_CREATE_DOCUMENT, after selecting the path, the files are downloaded in the App Data path and then copied to the path selected by the user. [CODE] [CODE... | android|copy|storage|saf|android-api-30 | 0 | 2022-07-16T06:18:56.907Z | 2,022 | 7 | 6 | 5 | 24 | 0 | 321 | 41 | 5 | 2 | true | true | false | false | false | false | zero |
73,002,034 | Cannot process test roots and app roots in the same compilation unit Hilt Android | <p>I get this build error:</p>
<pre><code>Cannot process test roots and app roots in the same compilation unit:
</code></pre>
<p>When I am trying to write the instrumented test like this:</p>
<pre><code>@HiltAndroidTest
class DataRecognitionRepositoryImplTest {
@get:Rule
var hiltRule = HiltAndroidRule(this)
... | I get this build error: [CODE] When I am trying to write the instrumented test like this: [CODE] I have also created my own runner like this: [CODE] And set it like: [CODE] My root build file: [CODE] I have tried searching a lot but did not find anything useful apart from this: https://dagger.dev/hilt/flags But I am no... | android|dagger-hilt | 0 | 2022-07-16T06:31:27.490Z | 2,022 | 7 | 6 | 5 | 87 | 1 | 375 | 81 | 2 | 5 | true | false | false | false | false | false | zero |
73,002,202 | Path to "device protected storage" or "direct boot" sharedprefs file | <p>Starting with Android Nougat, I used the following code to move the sharedprefs location from the "credential encrypted storage" to "device encrypted storage" so that I can access it before the user unlocks the device (otherwise known as DirectBoot):</p>
<pre><code>if (Build.VERSION.SDK_INT >=... | Starting with Android Nougat, I used the following code to move the sharedprefs location from the "credential encrypted storage" to "device encrypted storage" so that I can access it before the user unlocks the device (otherwise known as DirectBoot): [CODE] The old location for the file was in /data... | android|encryption|sharedpreferences | 0 | 2022-07-16T07:01:32.213Z | 2,022 | 7 | 7 | 5 | 32 | 0 | 528 | 68 | 3 | 1 | true | true | false | false | false | false | zero |
73,002,226 | How to inject fragment with a view model factory for instrumentation testing in Android | <p>I have the following Dagger component setup which works well for my app.</p>
<pre><code>@Singleton
@Component(
modules = [
ApiModule::class,
DatabaseModule::class,
ViewModelModule::class,
ActivityModule::class,
AndroidSupportInjectionModule::class
]
)
interface AppComp... | I have the following Dagger component setup which works well for my app. [CODE] I wish to provide a custom implementation for the ApiModule (Retrofit mock) and DatabaseModule (InMemory Room DB) for instrumentation testing. So I created a test component as below: [CODE] My fragment requires an injection of ViewModelProv... | android|android-fragments|android-espresso|dagger-2|android-testing | 0 | 2022-07-16T07:05:07.300Z | 2,022 | 7 | 7 | 5 | 56 | 1 | 459 | 87 | 5 | 5 | true | false | false | false | false | false | zero |
73,002,307 | Acces userinput from kivyMD costum user input | <p>I was looking through the documentation kivyMD docs and saw this neat example <a href="https://kivymd.readthedocs.io/en/latest/components/dialog/index.htm" rel="nofollow noreferrer">Example</a>. However, where is the user input stored? Suppose we wanted to get the city name and print it to the console. Does anybody ... | I was looking through the documentation kivyMD docs and saw this neat example Example . However, where is the user input stored? Suppose we wanted to get the city name and print it to the console. Does anybody know? Custom content class. [CODE] picture of screen | python|android|kivy|kivymd | 0 | 2022-07-16T07:18:17.640Z | 2,022 | 7 | 7 | 5 | 53 | 1 | 262 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
73,002,318 | Adding a MetricAffectingSpan to an EditText causes it to scroll to the cursor location | <p>I contribute to a text editor app and have observed the following behavior: When I add or remove a <code>MetricAffectingSpan</code> (have tested with <code>LineHeightSpan</code> and <code>TextAppearanceSpan</code>), the edit text jumps to the current cursor location.</p>
<p>The jump appears to be triggered by a call... | I contribute to a text editor app and have observed the following behavior: When I add or remove a MetricAffectingSpan (have tested with LineHeightSpan and TextAppearanceSpan ), the edit text jumps to the current cursor location. The jump appears to be triggered by a call to bringPointIntoView() in onPreDraw() . Adding... | android|textview|android-edittext|spannable | 0 | 2022-07-16T07:19:26.970Z | 2,022 | 7 | 7 | 5 | 24 | 1 | 634 | 86 | 4 | 0 | false | false | false | false | false | false | zero |
73,002,360 | How to prevent the user from entering two dots in a text field jetpack compose | <p>I have a Text Field in android jetpack compose, which used to get number from user including floating points. How to prevent user from entering 2 dots in the input.
For Eg: Number should be 56.54,.266, 367.5</p>
<p>Should not be like this: 34.3.5</p> | I have a Text Field in android jetpack compose, which used to get number from user including floating points. How to prevent user from entering 2 dots in the input. For Eg: Number should be 56.54,.266, 367.5 Should not be like this: 34.3.5 | kotlin|android-jetpack-compose | 1 | 2022-07-16T07:25:53.030Z | 2,022 | 7 | 7 | 5 | 79 | 1 | 239 | 78 | 2 | 0 | false | false | false | false | false | false | low |
73,002,389 | How to get default OutgoingPhoneAccount in Xamarin Android? | <p>Hello Android Developers, I am trying to get the line1 phone number using an instance of TelcomManager class except that it needs a PhoneAccountHandle parameter supplied for it to work. How do I get the default outgoing call phone account to use here. The code I have tried is listed below. The post is in Android Jav... | Hello Android Developers, I am trying to get the line1 phone number using an instance of TelcomManager class except that it needs a PhoneAccountHandle parameter supplied for it to work. How do I get the default outgoing call phone account to use here. The code I have tried is listed below. The post is in Android Java w... | android|xamarin | 0 | 2022-07-16T07:32:13.563Z | 2,022 | 7 | 7 | 5 | 37 | 0 | 537 | 59 | 2 | 1 | true | true | false | false | false | false | zero |
73,002,475 | Receiving step counter events when app is not in the foreground | <p>I want my app to be informed anytime the step counter sensor detects a step. As said in the doc, I register a listener for this sensor and never unregister it. I have also tried to launch a <code>JobService</code> at a regular interval, then tried to launch a <code>PeriodicWorker</code>, but this two objects are onl... | I want my app to be informed anytime the step counter sensor detects a step. As said in the doc, I register a listener for this sensor and never unregister it. I have also tried to launch a JobService at a regular interval, then tried to launch a PeriodicWorker , but this two objects are only informed of a step count c... | java|android|android-sensors | 0 | 2022-07-16T07:46:11.923Z | 2,022 | 7 | 7 | 5 | 25 | 0 | 520 | 63 | 3 | 0 | false | true | false | false | false | false | zero |
73,002,532 | How to keep efficiently continuous memory in RAM for Kotlin Multiplatform mobile project | <p>A mobile app receives series of 4 bytes long packets. There can be about ~1M of those packets received in one session. The app can analyse them once all packets are received, so there is a need to store them somehow. I wonder what is the best approach in terms of memory size efficiency for Kotlin Multiplatform Mobil... | A mobile app receives series of 4 bytes long packets. There can be about ~1M of those packets received in one session. The app can analyse them once all packets are received, so there is a need to store them somehow. I wonder what is the best approach in terms of memory size efficiency for Kotlin Multiplatform Mobile p... | android|ios|kotlin|memory|kotlin-multiplatform | 2 | 2022-07-16T07:55:51.240Z | 2,022 | 7 | 7 | 5 | 94 | 1 | 854 | 88 | 5 | 0 | false | false | false | false | false | false | low |
73,002,623 | How to make OTP login with retrofit2 with java in mvvm design pattern? | <p>I have a field for a phone number on one page and OTP verification on another Activity.
I have to make an API call in my app using Retrofit2. I am new to API integration.</p> | I have a field for a phone number on one page and OTP verification on another Activity. I have to make an API call in my app using Retrofit2. I am new to API integration. | java|android|api|mvvm|retrofit2 | 0 | 2022-07-16T08:11:08.520Z | 2,022 | 7 | 8 | 5 | 72 | 0 | 170 | 70 | 5 | 0 | false | true | false | false | false | false | zero |
73,002,652 | Check if app's in foreground or background | <p>I want to update user status in firestore to online and offline according to whether the app runs in the background or foreground. I'm using <strong>LifecycleObserver</strong> for it, but the <strong>problem is I have to call it in every single activity for it to work</strong>.</p>
<p>Is there a way to do this witho... | I want to update user status in firestore to online and offline according to whether the app runs in the background or foreground. I'm using LifecycleObserver for it, but the problem is I have to call it in every single activity for it to work . Is there a way to do this without having to call it in every activity? Obs... | android|kotlin|google-cloud-firestore | 0 | 2022-07-16T08:17:48.680Z | 2,022 | 7 | 8 | 5 | 78 | 1 | 361 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
73,002,688 | RecyclerView's last item is cut off when TextView Error Banner is visible. I'm using Constraint Layout with Barrier | <p>I'm not sure how to ask this question. It seems easy to do but I'm not sure why it's not working. Anyways, here goes. I have this Error Banner that should be visible only if the total "Weight" for the Categories is less than or greater than 100. However my issue is that when the error banner is visible, my... | I'm not sure how to ask this question. It seems easy to do but I'm not sure why it's not working. Anyways, here goes. I have this Error Banner that should be visible only if the total "Weight" for the Categories is less than or greater than 100. However my issue is that when the error banner is visible, my Re... | android|android-recyclerview|android-constraintlayout|barrier | 0 | 2022-07-16T08:24:24.443Z | 2,022 | 7 | 8 | 5 | 40 | 1 | 1,041 | 115 | 4 | 4 | true | false | false | false | false | false | zero |
73,002,841 | in Appium, how to get next element? | <p>I am trying to write test for some email application. There is a 'To' box for the recipients and 'Subject' and so on. I want to write a test using Appium that could be usable for next versions of the app with probable changes, so I want to use the same method human eyes uses: write the recipients address in the box ... | I am trying to write test for some email application. There is a 'To' box for the recipients and 'Subject' and so on. I want to write a test using Appium that could be usable for next versions of the app with probable changes, so I want to use the same method human eyes uses: write the recipients address in the box nex... | android|mobile|appium|tdd|bdd | 0 | 2022-07-16T08:53:24.577Z | 2,022 | 7 | 8 | 5 | 54 | 0 | 594 | 35 | 5 | 0 | false | true | false | false | false | false | zero |
73,002,890 | I'm having trouble linking a profile in my contacts app | <p>I created the contacts and profile interface in my contacts application that I have been working on for a while. However, I was stuck in the section of going to the profile of the person I clicked on my contacts that I designed with listview. I am waiting for support from my friends who understand Kotlin well.
[1]: ... | I created the contacts and profile interface in my contacts application that I have been working on for a while. However, I was stuck in the section of going to the profile of the person I clicked on my contacts that I designed with listview. I am waiting for support from my friends who understand Kotlin well. [1]: htt... | kotlin|android-intent | 0 | 2022-07-16T09:02:43.833Z | 2,022 | 7 | 9 | 5 | 21 | 0 | 393 | 55 | 2 | 0 | false | true | false | false | false | false | zero |
73,002,941 | I am getting problem in speech recognition in android | <p>I know it is silly question as I am new I am working on notes app I have add speech recognition feature with simply adds text into textview whatever we speak. It is working perfectly but the problem is that when I use second time in same the previous text get deleted and gets new text. I need to get the old text be ... | I know it is silly question as I am new I am working on notes app I have add speech recognition feature with simply adds text into textview whatever we speak. It is working perfectly but the problem is that when I use second time in same the previous text get deleted and gets new text. I need to get the old text be lik... | java|android|android-studio | -1 | 2022-07-16T09:10:41.280Z | 2,022 | 7 | 9 | 5 | 28 | 1 | 365 | 53 | 3 | 1 | true | false | false | false | false | true | negative |
73,002,963 | react native a11y: should every Touchable have an explicit accessibilityRole assigned? | <p>the <a href="https://reactnative.dev/docs/accessibility#accessible" rel="nofollow noreferrer">react native a11y docs</a> mention that all <code>Touchable</code>s are <code>accessible=true</code> by default, which means they group all the labels within, and announce as one single label.</p>
<p>That said, it seems <co... | the react native a11y docs mention that all Touchable s are accessible=true by default, which means they group all the labels within, and announce as one single label. That said, it seems Touchable s are not announced as interactive on VoiceOver by default, while Talkback announces "Double tap to activate" wh... | android|ios|react-native|accessibility|voiceover | 1 | 2022-07-16T09:13:40.587Z | 2,022 | 7 | 9 | 5 | 25 | 0 | 644 | 86 | 5 | 0 | false | true | false | false | false | false | low |
73,002,974 | How to check all of items in Android | <p>I want develop test application and for this I want use this API : <a href="https://www.themealdb.com/api/json/v1/1/lookup.php?i=52772" rel="nofollow noreferrer">https://www.themealdb.com/api/json/v1/1/lookup.php?i=52772</a></p>
<p>In this API for show some info use many field, such as <code>strIngredient1</code>, <... | I want develop test application and for this I want use this API : https://www.themealdb.com/api/json/v1/1/lookup.php?i=52772 In this API for show some info use many field, such as strIngredient1 , strIngredient2 , strIngredient3 and more to strIngredient15 . I want first check each of this items, and when not empty. t... | android|kotlin | 0 | 2022-07-16T09:15:41.663Z | 2,022 | 7 | 9 | 5 | 45 | 1 | 500 | 36 | 2 | 0 | false | false | false | false | false | false | zero |
73,003,039 | TelecomManager.getLine1Number returning null for a valid PhoneAccountHandle | <p>Google told me that in order for me to be able to use either TelephonyManager or TelcomManager to read device identifiers I need one of the requirements stated on the documentation for the respective device identifiers such as <code>GetImei</code> or <code>GetLine1Number</code>. I decided to meet the requirement tha... | Google told me that in order for me to be able to use either TelephonyManager or TelcomManager to read device identifiers I need one of the requirements stated on the documentation for the respective device identifiers such as GetImei or GetLine1Number . I decided to meet the requirement that states The caller needs to... | java|c#|android|xamarin | 1 | 2022-07-16T09:26:33.140Z | 2,022 | 7 | 9 | 5 | 37 | 1 | 886 | 75 | 4 | 1 | true | false | false | false | false | false | low |
73,003,058 | I have a problem with Simple Android Activity Lifecycle | <p>Could you explain me, why both of my Android 12 and Android 8 does not call method onSaveInstanceState()</p>
<pre><code>class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState... | Could you explain me, why both of my Android 12 and Android 8 does not call method onSaveInstanceState() [CODE] My Logcat: 2022-07-16 11:37:30.344 29235-29235/com.elene.activitylifecycle23 D/AAAAA: onCreate 2022-07-16 11:37:30.346 29235-29235/com.elene.activitylifecycle23 D/AAAAA: onStart 2022-07-16 11:37:30.346 29235-... | kotlin|android-activity|onsaveinstancestate | 0 | 2022-07-16T09:28:36.313Z | 2,022 | 7 | 9 | 5 | 34 | 1 | 2,302 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
73,003,074 | Firebase.Database.FirebaseException loading data | <p>I can't figure it out.</p>
<p>I'm trying to load data from my Firebase database into a Xamarin Android app and I'm always getting this type of error.</p>
<p><img src="https://i.stack.imgur.com/3hi16.png" alt="Image" /></p>
<p>This is the stack call.</p>
<pre><code>0xC in System.Runtime.ExceptionServices.ExceptionDis... | I can't figure it out. I'm trying to load data from my Firebase database into a Xamarin Android app and I'm always getting this type of error. This is the stack call. [CODE] This is how I get those data: [CODE] And this is Elementi.cs class: [CODE] Also I noticed that if I use LimitToLast(10), obviously with OrderbyKey... | c#|android|xamarin|firebase-realtime-database | 0 | 2022-07-16T09:30:30.800Z | 2,022 | 7 | 9 | 5 | 48 | 0 | 680 | 48 | 4 | 3 | true | true | false | false | false | false | zero |
73,003,083 | DDD in Android app : communication between aggregate and application service | <p>I'm trying to apply <code>domain driven design</code> in an Android project. There is a common use case that the <code>User</code> wants to change his/her name and this new name should be synced with backend.</p>
<pre><code>class User {
// ...
fun changeName(newName:String, service: AccountService) {
... | I'm trying to apply domain driven design in an Android project. There is a common use case that the User wants to change his/her name and this new name should be synced with backend. [CODE] As above code snippet shows, can I inject an application service to do the synchronization with Backend, or there is a better way ... | android|domain-driven-design|ddd-service | 0 | 2022-07-16T09:31:46.280Z | 2,022 | 7 | 9 | 5 | 91 | 1 | 349 | 76 | 3 | 1 | true | false | false | false | false | false | zero |
73,003,118 | PendingIntent flag error with use of notifications on Flutter | <p>I'm trying to use the Locally plugin to display notifications on my Flutter app but I'm still getting the same error when using it.</p>
<blockquote>
<p>Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Android 12</p>
</blockquote>
<p>I... | I'm trying to use the Locally plugin to display notifications on my Flutter app but I'm still getting the same error when using it. Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Android 12 I tried all the solutions I found but it didn... | android|flutter|notifications|android-pendingintent | 0 | 2022-07-16T09:36:16.087Z | 2,022 | 7 | 9 | 5 | 66 | 0 | 470 | 61 | 4 | 3 | true | true | false | false | false | false | zero |
73,003,203 | How can I set text in another TextView in RecyclerView | <p>I created a <code>RecyclerView</code> adapter. And when I add a new item I need to set the text in two <code>TextView</code>. In the first <code>TextView(android:id="@+id/text")</code> I can set text without any problem. How could I set text in <code>TextView(android:id="@+id/textCost")</code> by... | I created a RecyclerView adapter. And when I add a new item I need to set the text in two TextView . In the first TextView(android:id="@+id/text") I can set text without any problem. How could I set text in TextView(android:id="@+id/textCost") by methot: [CODE] enter image description here Because S... | android|android-studio|android-recyclerview | 0 | 2022-07-16T09:51:35.070Z | 2,022 | 7 | 9 | 5 | 48 | 1 | 582 | 54 | 3 | 5 | true | false | false | false | false | false | zero |
73,003,226 | How to pend flutter method channel callback (android native java code) for an android listener | <p>I have a flutter app that run a java code in some situations.
I wrote java code in method call handler in <code>MethodCahnnel</code>.
In this callback I call another method that is communicate with a serial port using <a href="https://github.com/mik3y/usb-serial-for-android" rel="nofollow noreferrer">usb-serial-for-... | I have a flutter app that run a java code in some situations. I wrote java code in method call handler in MethodCahnnel . In this callback I call another method that is communicate with a serial port using usb-serial-for-android and wait for data in onNewData listener. I want to send back this data to flutter. and I am... | java|android|flutter|usbserial | 1 | 2022-07-16T09:55:43.297Z | 2,022 | 7 | 9 | 5 | 65 | 0 | 607 | 94 | 4 | 1 | true | true | false | false | false | false | low |
73,003,292 | How to allow Android App to get data from a laser scanner on a PDA running on android | <p>We have paid a PDA with a manufacturer. This PDA includes a laser scanner of Zebra brand and the model is <a href="https://www.zebra.com/us/en/products/oem/oem-engines/oem-array-imager-scan-engines/se4100-se4107.html" rel="nofollow noreferrer">SE4100</a>. We want to develop an android application for the PDA because... | We have paid a PDA with a manufacturer. This PDA includes a laser scanner of Zebra brand and the model is SE4100 . We want to develop an android application for the PDA because it runs on Android. We have asked the supplier to send us the SDK to allow us to develop our application. He sent us the source code of an andr... | java|android|android-native-library | 0 | 2022-07-16T10:05:23.997Z | 2,022 | 7 | 10 | 5 | 49 | 0 | 924 | 85 | 3 | 1 | true | true | false | false | false | false | zero |
73,003,293 | Android ActivityResultContracts.CreateDocument onResult is never called | <p>In my app it is supposed that users can choose a path to save their texts through SAF. I use <code>ActivityResultContracts.CreateDocument</code> to do this, which will provide the Uri of the created file so that I can operate on that file, such as writing contents to its outputStream. However, although the file is c... | In my app it is supposed that users can choose a path to save their texts through SAF. I use ActivityResultContracts.CreateDocument to do this, which will provide the Uri of the created file so that I can operate on that file, such as writing contents to its outputStream. However, although the file is created successfu... | android|android-jetpack-compose|activity-result-api | 0 | 2022-07-16T10:05:45.167Z | 2,022 | 7 | 10 | 5 | 46 | 1 | 1,149 | 71 | 3 | 3 | true | false | false | false | false | false | zero |
73,003,366 | LocationServices.getFusedLocationProviderClient(Activity()) - Attempt to invoke virtual method 'getApplicationContext()' on a null object reference | <p>I'm building an android app which using a map fragment.
Lately I redesigned my app and moved the map view to a fragment.
everything worked before, I'm asking for permissions and manifest has the parent activity of the current fragment.</p>
<p>While I'm trying to get fused location provider as following:</p>
<pre><co... | I'm building an android app which using a map fragment. Lately I redesigned my app and moved the map view to a fragment. everything worked before, I'm asking for permissions and manifest has the parent activity of the current fragment. While I'm trying to get fused location provider as following: [CODE] I'm getting: E/... | android|kotlin|google-maps|nullpointerexception | 0 | 2022-07-16T10:16:24.467Z | 2,022 | 7 | 10 | 5 | 57 | 1 | 2,233 | 147 | 4 | 2 | true | false | false | false | false | false | zero |
73,003,424 | Adding spacing between BottomNavigationItem's icon & label | <p>I'm trying to build out my Bottom navigation like this:</p>
<pre><code>@Composable
fun BottomNavBar(navController: NavController) {
Column(
Modifier.background(colorResource(id = R.color.pastel_orange_white))
) {
BottomNavigation(
modifier = Modifier
.defaultMinSiz... | I'm trying to build out my Bottom navigation like this: [CODE] I need to add some extra space between the label and the icon parts, since I'm applying a small background color to the selected item. I tried with paddings, column arrangements, etc. but didn't find something that actually affected the spacing. Any pointer... | android|kotlin|android-jetpack-compose | 1 | 2022-07-16T10:27:04.637Z | 2,022 | 7 | 10 | 5 | 74 | 1 | 322 | 58 | 3 | 1 | true | false | false | false | false | false | low |
73,003,483 | Android linking Faild | <p>ERROR:C:\Users\aron.kibet\AndroidStudioProjects\Status_Saver22\app\src\main\res\layout\activity_main.xml:2: AAPT: error: attribute layout_height (aka com.example.status_saver22:layout_height) not found.</p> | ERROR:C:\Users\aron.kibet\AndroidStudioProjects\Status_Saver22\app\src\main\res\layout\activity_main.xml:2: AAPT: error: attribute layout_height (aka com.example.status_saver22:layout_height) not found. | java|android|android-studio|kotlin|android-layout | 0 | 2022-07-16T10:36:59.457Z | 2,022 | 7 | 10 | 5 | 32 | 1 | 202 | 21 | 5 | 0 | false | false | false | false | false | false | zero |
73,003,512 | Kotlin not making request Volley - android | <p>I am trying to "dynamically" create CardView and then fill TextView with data from an API call. The thing is, to me it seems like the request is not getting called.</p>
<p>I created an adapter class based on <a href="https://developer.android.com/guide/topics/ui/layout/recyclerview" rel="nofollow noreferre... | I am trying to "dynamically" create CardView and then fill TextView with data from an API call. The thing is, to me it seems like the request is not getting called. I created an adapter class based on Create dynamically lists with RecyclerView which is working fine and I am adding as many windows as needed. A... | android|kotlin|android-volley | 0 | 2022-07-16T10:42:31.457Z | 2,022 | 7 | 10 | 5 | 27 | 1 | 830 | 42 | 3 | 3 | true | false | false | false | false | false | zero |
73,003,517 | How can I solve the SecurityException error in Android 12? | <p>I request the ACCESS_FINE_LOCATION and ACCESS_FINE_LOCATION permission in real time</p>
<p>And it asks for gps information as below</p>
<p>There was no problem before, but I get a SecurityException error on certain devices using Android 12</p>
<p>Do you have any way to solve this problem?</p>
<p>I've searched severa... | I request the ACCESS_FINE_LOCATION and ACCESS_FINE_LOCATION permission in real time And it asks for gps information as below There was no problem before, but I get a SecurityException error on certain devices using Android 12 Do you have any way to solve this problem? I've searched several ways but haven't been able to... | android | 3 | 2022-07-16T10:43:28.923Z | 2,022 | 7 | 10 | 5 | 44 | 2 | 388 | 58 | 1 | 2 | true | false | false | false | false | false | low |
73,003,538 | How to swap the selected recycler view item with the first item with change background color | <p><a href="https://i.stack.imgur.com/8jWnh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8jWnh.jpg" alt="enter image description here" /></a>here I change the background of the selected item position and set that item to the first position init</p>
<pre><code> override fun onBindViewHolder(hold... | here I change the background of the selected item position and set that item to the first position init [CODE] I tried different ways but I failed | android|kotlin|android-recyclerview|adapter|android-adapter | 0 | 2022-07-16T10:46:48.450Z | 2,022 | 7 | 10 | 5 | 82 | 1 | 146 | 92 | 5 | 1 | true | false | false | false | false | false | zero |
73,003,566 | IDE Error Occured - java.lang.AssertionError: Assertion failed | <p>I have a problem with my Android Studio. Whatever project i run, this error occur. I had tried to delete android studio and reinstall Android Studio, but problem still occur. I don't know what to do. I'd really appreciate it if anyone could help me.</p>
<pre><code>java.lang.AssertionError: Assertion failed
at com.an... | I have a problem with my Android Studio. Whatever project i run, this error occur. I had tried to delete android studio and reinstall Android Studio, but problem still occur. I don't know what to do. I'd really appreciate it if anyone could help me. [CODE] enter image description here | java|android-studio | 1 | 2022-07-16T10:52:41.563Z | 2,022 | 7 | 10 | 5 | 212 | 0 | 285 | 62 | 2 | 1 | true | true | false | false | false | false | low |
73,003,590 | how to connect flutter app with oracle database on local server? | <p>I don't know how to connect flutter app to a oracle database resides on local server. I want to communicate directly with database without using any RESTFUL API. if anyone have solution please let me know</p> | I don't know how to connect flutter app to a oracle database resides on local server. I want to communicate directly with database without using any RESTFUL API. if anyone have solution please let me know | flutter|android-studio|dart | 0 | 2022-07-16T10:56:40.717Z | 2,022 | 7 | 10 | 5 | 48 | 0 | 204 | 64 | 3 | 0 | false | true | false | false | false | false | zero |
73,003,613 | Is there a keyboard shortcut to fold all of the code at once in Android Studio? | <p>i have big code in every file in my project and i need a shortcut to reduce the whole code in specific file with one click instead of doing it manual</p>
<p>i have taken screenshot to explain it</p>
<p><a href="https://i.stack.imgur.com/sEAjH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sEAjH.p... | i have big code in every file in my project and i need a shortcut to reduce the whole code in specific file with one click instead of doing it manual i have taken screenshot to explain it in my case i am clicking manual to every single line and every time I am restarting android studio it expanded again I don't know wh... | android-studio|keyboard-shortcuts|code-folding | 0 | 2022-07-16T11:00:42.430Z | 2,022 | 7 | 11 | 5 | 27 | 1 | 322 | 79 | 3 | 0 | false | false | false | false | false | false | zero |
73,003,761 | Xamarin Erase device through Device admin api | <p>I am writing a company device management tool for a small company. Due to the scope of the project I have decided to write this in C# using Xamarin.</p>
<p>One of the key features I need to implement is the ability to remote wipe the android device and I know this can be achieved through the Device admin API.</p>
<p... | I am writing a company device management tool for a small company. Due to the scope of the project I have decided to write this in C# using Xamarin. One of the key features I need to implement is the ability to remote wipe the android device and I know this can be achieved through the Device admin API. The issue I am h... | java|c#|android|xamarin|admin | 0 | 2022-07-16T11:22:17.400Z | 2,022 | 7 | 11 | 5 | 38 | 0 | 719 | 45 | 5 | 1 | true | true | false | false | false | false | zero |
73,003,978 | com.android.tools.r8.CompilationFailedException | <p>When trying to build my Xamarin project in Visual Studio 2022 I am receiving this error:</p>
<pre><code>java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\120\lp\100\jl\bin\classes.jar : com/google/android/gms/measurement/internal/zzai.class... | When trying to build my Xamarin project in Visual Studio 2022 I am receiving this error: [CODE] My build log shows this: [CODE] I have used 7zip to extract the specified zzai.class file however I don't know what to do from here. Trying to edit the file in notepad++ just shows noninterpretable code. | c#|android|visual-studio|xamarin | 0 | 2022-07-16T11:55:41.860Z | 2,022 | 7 | 11 | 5 | 193 | 1 | 299 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.