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,240,620 | How to get color of X Y pixel in python from android screen as fast as is possible with adb or another solution | <p>I try write some automatic app in python, and i have to check color pixel from mobile as fast as possible. I try take screenshot, and take pixel from photo. But it is too slow,</p>
<p>Thanks!</p> | I try write some automatic app in python, and i have to check color pixel from mobile as fast as possible. I try take screenshot, and take pixel from photo. But it is too slow, Thanks! | android|colors|adb | 0 | 2022-05-14T13:21:37.127Z | 2,022 | 5 | 13 | 5 | 101 | 1 | 184 | 111 | 3 | 0 | false | false | false | false | false | false | zero |
72,240,633 | How to remove everything from ListView using a button onClick? | <p>How to remove everything from ListView using a button onClick? When i try "fullCourseList.clear();", I can't add any more courses and the page is refreshed only after visiting the page again</p>
<pre><code>import static com.example.diplom.MainActivity.fullCourseList;
import androidx.appcompat.app.AppCompa... | How to remove everything from ListView using a button onClick? When i try "fullCourseList.clear();", I can't add any more courses and the page is refreshed only after visiting the page again [CODE] | java|android | 0 | 2022-05-14T13:23:26.453Z | 2,022 | 5 | 13 | 5 | 60 | 3 | 207 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
72,240,646 | HTML : why doesn't drag events work in android? | <p>I have a project that uses ondrag events(like ondragover and ondragend) but these events doesnt fired in android.i converted html to apk with Website 2 apk builder pro.what should i do?</p> | I have a project that uses ondrag events(like ondragover and ondragend) but these events doesnt fired in android.i converted html to apk with Website 2 apk builder pro.what should i do? | javascript|android|html | 0 | 2022-05-14T13:25:20.360Z | 2,022 | 5 | 13 | 5 | 12 | 0 | 185 | 47 | 3 | 0 | false | true | false | false | false | false | zero |
72,240,689 | How to manage firebase sign-in in another class | <p>I have 3 different Fragments to sign in.
This is one of fragment to sign-in.</p>
<pre><code>@AndroidEntryPoint
class SettingFragment : Fragment(){
lateinit var binding: FragmentSettingBinding
private lateinit var auth: FirebaseAuth
private lateinit var googleSignInClient : GoogleSignInClient
override fun onCreate(... | I have 3 different Fragments to sign in. This is one of fragment to sign-in. [CODE] I call three method ( 1. configure_google_login() , 2. firebaseAuthWithGoogle() , 3. override onActivityResult() ) , and initialize GoogleSignInClient in this Fragment. The problem is that I have 3 Fragments to sign-in , and I wrote sam... | android|firebase|kotlin|firebase-authentication | 0 | 2022-05-14T13:32:22.193Z | 2,022 | 5 | 13 | 5 | 24 | 0 | 693 | 47 | 4 | 1 | true | true | false | false | false | false | zero |
72,240,725 | Explicit concurrent copying GC freed, Xamarin.Forms | <p>I want to create the data model asynchronously. I am using MVVM.
My code looks like this.</p>
<p><strong>class Page (code behind):</strong></p>
<pre><code>public partial class PageMusicPlayerView : TabbedPage
{
public PageMusicPlayerView()
{
InitializeComponent();
PageMusicPlayerViewModel vie... | I want to create the data model asynchronously. I am using MVVM. My code looks like this. class Page (code behind): [CODE] class PageMusicPlayerViewModel (view model): [CODE] class MusicPlaylistModel (model): [CODE] class MusicItemModel (model): [CODE] Model ListMusic is bound to a view. I provide the MusicItemModel cl... | c#|android|xamarin.forms | 0 | 2022-05-14T13:35:45.277Z | 2,022 | 5 | 13 | 5 | 534 | 1 | 807 | 51 | 3 | 5 | true | false | false | false | false | false | zero |
72,240,812 | using Checkbox in react native. Android emulator returns an Error | <p>I need to use Checkbox in my react native app. However, CheckBox was removed from react native library so I had to use CheckBox from @react-native-community/checkbox.
I followed the instruction, installed it using NPM, imported etc.
VS code doesnt give any errors.
However, Android emulator gives me this Error
<a hre... | I need to use Checkbox in my react native app. However, CheckBox was removed from react native library so I had to use CheckBox from @react-native-community/checkbox. I followed the instruction, installed it using NPM, imported etc. VS code doesnt give any errors. However, Android emulator gives me this Error Error mes... | react-native|checkbox|android-emulator | 0 | 2022-05-14T13:45:50.840Z | 2,022 | 5 | 13 | 5 | 77 | 0 | 447 | 65 | 3 | 0 | false | true | false | false | false | false | zero |
72,240,825 | Cannot call this method while RecyclerView is computing a layout or scrolling androidx.recyclerview.widget.RecyclerView | <p>I have a recyclerview with check boxes and names, After checking the desirable checkboxes I want a list of them but the recyclerView recycles the items on scroll, So I wanted to update the particular item in the adapter but this error occurss</p>
<pre><code>java.lang.IllegalStateException: Cannot call this method w... | I have a recyclerview with check boxes and names, After checking the desirable checkboxes I want a list of them but the recyclerView recycles the items on scroll, So I wanted to update the particular item in the adapter but this error occurss [CODE] Here is my recycler view code [CODE] And here is my Adapter Code [CODE... | android|kotlin|android-recyclerview|android-listadapter | 0 | 2022-05-14T13:47:42.510Z | 2,022 | 5 | 13 | 5 | 242 | 0 | 321 | 119 | 4 | 3 | true | true | false | false | false | false | zero |
72,240,834 | Android selector layout of a menu item not working on a checkable item | <p>I am trying to make a favourite item in the menu that can display a hollow heart when unchecked and a solid one when checked</p>
<p>However the selector approach is not working, I managed to make it work in code with a boolean value that is toggled and a <code>item.setIcon()</code> method. But I want to understand w... | I am trying to make a favourite item in the menu that can display a hollow heart when unchecked and a solid one when checked However the selector approach is not working, I managed to make it work in code with a boolean value that is toggled and a item.setIcon() method. But I want to understand why my selector approach... | java|android|xml | 0 | 2022-05-14T13:49:11.080Z | 2,022 | 5 | 13 | 5 | 29 | 0 | 943 | 70 | 3 | 3 | true | true | false | false | false | false | zero |
72,240,936 | HorizontalPager with LazyColum inside another LazyColum - Jetpack Compose | <p>I want a similiar effect to TikToks profile screen.
On top is the <code>ProfilPicture</code> and <code>username</code>, below that is a <code>stickyHeader</code> with a <code>TabRow</code> (<code>Posts</code>, <code>Drafts</code>, <code>Likes</code>, <code>Favorites</code>) and below that is a <code>HorizontalPager<... | I want a similiar effect to TikToks profile screen. On top is the ProfilPicture and username , below that is a stickyHeader with a TabRow ( Posts , Drafts , Likes , Favorites ) and below that is a HorizontalPager with the 4 Screens ( Posts , Drafts , Likes , Favorites ), each of these screens contain a list. If I build... | android|kotlin|android-jetpack-compose|lazycolumn|jetpack-compose-accompanist | 8 | 2022-05-14T14:02:03.337Z | 2,022 | 5 | 14 | 5 | 1,967 | 1 | 1,560 | 73 | 5 | 3 | true | false | false | false | false | false | medium |
72,241,151 | Can the *.mdb file be open in two thread at the same time? | <p>Android Objectbox Version 3.1.2<br />
Flutter Objectbox Version 1.4.1</p>
<p>Android code does read/write operation<br />
Flutter code only does read operation</p>
<p>Sometimes the android side throws this exception:<br />
<em><strong>Could not renew tx (another read transaction is still active on this thread) (erro... | Android Objectbox Version 3.1.2 Flutter Objectbox Version 1.4.1 Android code does read/write operation Flutter code only does read operation Sometimes the android side throws this exception: Could not renew tx (another read transaction is still active on this thread) (error code -30783) This exception never occurs when... | objectbox|flutter-objectbox|objectbox-android|objectbox-java | 0 | 2022-05-14T14:31:53.697Z | 2,022 | 5 | 14 | 5 | 56 | 1 | 372 | 58 | 4 | 2 | true | false | false | false | false | false | zero |
72,241,344 | Android studio custom icon state_focused not working | <p><strong>custom_email_icon.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:drawable="@drawable/ic_email_focused&qu... | custom_email_icon.xml [CODE] activity_main.xml [CODE] Icon color change not working when I clicked to text. Same problem with the password line. | java|android|android-studio | -1 | 2022-05-14T14:53:54.277Z | 2,022 | 5 | 14 | 5 | 35 | 2 | 144 | 52 | 3 | 2 | true | false | false | false | false | true | negative |
72,241,348 | How the AudioManager receive productName for device? From sysfs? Where I can find example? | <p>I want to know how AudioManager in AudioDeviceInfo receives the product name of the connected device.</p> | I want to know how AudioManager in AudioDeviceInfo receives the product name of the connected device. | android|android-audiomanager | 0 | 2022-05-14T14:54:15.523Z | 2,022 | 5 | 14 | 5 | 9 | 0 | 101 | 90 | 2 | 0 | false | true | false | false | false | false | zero |
72,241,376 | How to call a function on a RecyclerView Item click [android] | <p>I did an OnClickListenner on RecyclerView Item in the ViewHolder class
Item = small card + big card
like that</p>
<pre><code>init {
itemView.setOnClickListener {
if (prod_cardL.visibility==View.GONE){
prod_cardL.visibility= View.VISIBLE
prod_cardS.visibilit... | I did an OnClickListenner on RecyclerView Item in the ViewHolder class Item = small card + big card like that [CODE] I want it so when the user clicks the item gets bigger. Or make it small if it's already big. I want to know how to do what I wrote between ()? | android|kotlin|mobile|android-recyclerview|onclick | 0 | 2022-05-14T14:56:35.577Z | 2,022 | 5 | 14 | 5 | 61 | 0 | 260 | 61 | 5 | 1 | true | true | false | false | false | false | zero |
72,241,442 | Error: no suitable method found for add(int,int) | <p>ImageSpinner adapter = new ImageSpinner(context, Icons);
spinner.setAdapter(adapter);</p>
<p>ImageSpinner adapter = new ImageSpinner(context, Icons);
spinner.setAdapter(adapter);</p>
<p>ImageSpinner adapter = new ImageSpinner(context, Icons);
spinner.setAdapter(adapter);</p> | ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapter(adapter); ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapter(adapter); ImageSpinner adapter = new ImageSpinner(context, Icons); spinner.setAdapter(adapter); | java|android | 0 | 2022-05-14T15:05:57.780Z | 2,022 | 5 | 15 | 5 | 34 | 1 | 257 | 48 | 2 | 0 | false | false | false | false | false | false | zero |
72,241,579 | Buildozer issue: sh.CommandNotFound: ./gradlew | <p>I've been trying to package an application created using python and kivy for android on buildozer by running on Ubuntu wsl:</p>
<pre><code>buildozer -v android debug deploy run
</code></pre>
<p>I've encountered the error:</p>
<p><strong>sh.CommandNotFound: ./gradlew</strong></p>
<p><strong>WARNING: Received a --sdk ... | I've been trying to package an application created using python and kivy for android on buildozer by running on Ubuntu wsl: [CODE] I've encountered the error: sh.CommandNotFound: ./gradlew WARNING: Received a --sdk argument, but this argument deprecated and does nothing. This is despite having the file gradlew in my pr... | python|android|kivy|gradlew|buildozer | 0 | 2022-05-14T15:21:00.857Z | 2,022 | 5 | 15 | 5 | 62 | 0 | 429 | 46 | 5 | 2 | true | true | false | false | false | false | zero |
72,241,610 | How to create a timer on Button and save in SharedPreferences(android) | <p>I want to create a button that after clicking this button will be not clickable for 1 min, but after restarting a program, this button is clickable cuz i didn't understand - how to save this in sharedpreferences</p>
<pre><code>btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(... | I want to create a button that after clicking this button will be not clickable for 1 min, but after restarting a program, this button is clickable cuz i didn't understand - how to save this in sharedpreferences [CODE] But how I need to save that in sharedpreferences? | java|android|button|sharedpreferences | 0 | 2022-05-14T15:23:58.620Z | 2,022 | 5 | 15 | 5 | 21 | 1 | 268 | 70 | 4 | 1 | true | false | false | false | false | false | zero |
72,241,614 | textview icon instead of real text | <p>In the preview window of Android Studio sometimes <strong>instead of actual text</strong> (a few lines of text) I see the <strong>TextView</strong> icon as in the picture. I tested various <strong>layout_width</strong> and <strong>layout_height</strong> settings and still can't get rid of this problem.
The text appe... | In the preview window of Android Studio sometimes instead of actual text (a few lines of text) I see the TextView icon as in the picture. I tested various layout_width and layout_height settings and still can't get rid of this problem. The text appears again only if it is very short text . I did not have this problem w... | android-studio|textview | 0 | 2022-05-14T15:24:18.173Z | 2,022 | 5 | 15 | 5 | 19 | 0 | 366 | 34 | 2 | 0 | false | true | false | false | false | false | zero |
72,241,701 | How can I create monthly repeating tasks in Flutter/Firebase? | <p>I am currently working on a finance app, where the user can create many transactions.</p>
<p>To make the user's job a little easier, I want to add transactions that repeat themselves every month.
I use Flutter/Firebase for the app and if a user has a Netflix subscription for example, they have to pay money for it ev... | I am currently working on a finance app, where the user can create many transactions. To make the user's job a little easier, I want to add transactions that repeat themselves every month. I use Flutter/Firebase for the app and if a user has a Netflix subscription for example, they have to pay money for it every month.... | android|database|firebase|flutter|google-cloud-firestore | 0 | 2022-05-14T15:35:31.273Z | 2,022 | 5 | 15 | 5 | 71 | 0 | 479 | 61 | 5 | 0 | false | true | false | false | false | false | zero |
72,241,826 | How to detect state of ModalBottomSheetState while swiping bottom sheet in compose | <p>simple question, How to detect state of ModalBottomSheetState while swiping bottom sheet in compose?
I mean, I want to know how can I find out where state of ModalBottomSheetState is going to be?</p> | simple question, How to detect state of ModalBottomSheetState while swiping bottom sheet in compose? I mean, I want to know how can I find out where state of ModalBottomSheetState is going to be? | android|kotlin|android-jetpack-compose|bottom-sheet | 0 | 2022-05-14T15:50:42.657Z | 2,022 | 5 | 15 | 5 | 431 | 0 | 195 | 82 | 4 | 0 | false | true | false | false | false | false | zero |
72,241,829 | FFMpeg Add multiple Gifs/Watermarks to a video | <p>I'm trying to add various Gifs/Watermarks to a video, but I'm having a problem getting it to work properly.</p>
<p>We're assuming the video is 60 seconds long and I'm adding one Gif image. The output looks correct, the sound is on, the gif animates, and the video doesn't stop. here is the code:</p>
<pre><code> ... | I'm trying to add various Gifs/Watermarks to a video, but I'm having a problem getting it to work properly. We're assuming the video is 60 seconds long and I'm adding one Gif image. The output looks correct, the sound is on, the gif animates, and the video doesn't stop. here is the code: [CODE] When I try to add multip... | android|kotlin|ffmpeg | 0 | 2022-05-14T15:50:53.920Z | 2,022 | 5 | 15 | 5 | 45 | 1 | 568 | 46 | 3 | 2 | true | false | false | false | false | false | zero |
72,241,859 | Executor pauses and doesn't process pending queues | <p>I have a long-running task of creating a bitmap saving it and recreating more bitmaps which I was doing on a single background thread</p>
<pre><code>ExecutorService executor = Executors.newSingleThreadExecutor();
Handler handler = new Handler(Looper.getMainLooper());
executor.execute(() -> {...bitmap work ...}
</... | I have a long-running task of creating a bitmap saving it and recreating more bitmaps which I was doing on a single background thread [CODE] But it's taking really long time to process all the bitmaps so I created a thread pool to use multithreading to speed up the task. [CODE] But whenever I am using more than 1 threa... | java|android|multithreading | 2 | 2022-05-14T15:54:07.030Z | 2,022 | 5 | 15 | 5 | 55 | 2 | 636 | 50 | 3 | 3 | true | false | false | false | false | false | low |
72,241,887 | How do I achieve a layout like this? | <p>I'm an absolute noob to Android development and I'm trying to create a layout like the ones in the images I've attached. Each is a separate div section with it's own content. What do I need to do to achieve this? Do I use nested linear layouts or nested constrained layouts or are there other ways to do it? I'd like ... | I'm an absolute noob to Android development and I'm trying to create a layout like the ones in the images I've attached. Each is a separate div section with it's own content. What do I need to do to achieve this? Do I use nested linear layouts or nested constrained layouts or are there other ways to do it? I'd like to ... | android-layout | 0 | 2022-05-14T15:57:48.753Z | 2,022 | 5 | 15 | 5 | 13 | 0 | 435 | 36 | 1 | 0 | false | true | false | false | false | false | zero |
72,242,027 | Android Studio App Crash When using "Step Over" and "Step Into" | <p>when I try to debug my app in an emulator, it can stop at a breakpoint, but when I click "Step Out" and "Step into" during debugging, the Android App will simply crash. However, when I try to click "Run to cursor" or "Resume Program" to the next breakpoint, it will be fine.</p... | when I try to debug my app in an emulator, it can stop at a breakpoint, but when I click "Step Out" and "Step into" during debugging, the Android App will simply crash. However, when I try to click "Run to cursor" or "Resume Program" to the next breakpoint, it will be fine. Andro... | android | 0 | 2022-05-14T16:17:24.977Z | 2,022 | 5 | 16 | 5 | 171 | 0 | 2,420 | 63 | 1 | 1 | true | true | false | false | false | false | zero |
72,242,130 | Where to update visible RecyclerView Items? | <p>I have a recyclerview showing items like this:</p>
<p><a href="https://i.stack.imgur.com/rHJr8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHJr8.png" alt="screenshot of fragment" /></a></p>
<p>Selecting items calculates a total price from the number you see in the circle of each item, adding t... | I have a recyclerview showing items like this: Selecting items calculates a total price from the number you see in the circle of each item, adding them up while you select more items. The upper right corner shows how mach money is left. Now I want to grey out items if the money left is smaller of the price for an item,... | android|android-recyclerview | 1 | 2022-05-14T16:31:16.570Z | 2,022 | 5 | 16 | 5 | 101 | 2 | 2,587 | 43 | 2 | 4 | true | false | false | false | false | false | low |
72,242,176 | How can I zoom in of an image without enlargining it? | <p>I've been looking at a few methods of zooming in on images and I've found some similiar versions of this <a href="https://www.geeksforgeeks.org/how-to-implement-zoom-in-or-zoom-out-in-android/" rel="nofollow noreferrer">Zoom in GeeksForGeeks</a>.
Now my question is whether the zoom could also be built without enlarg... | I've been looking at a few methods of zooming in on images and I've found some similiar versions of this Zoom in GeeksForGeeks . Now my question is whether the zoom could also be built without enlarging the whole image, just keeping the size and only zooming in. (For example half display height and complete display wid... | kotlin|android-layout | 0 | 2022-05-14T16:37:21.303Z | 2,022 | 5 | 16 | 5 | 20 | 0 | 657 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
72,242,185 | How to update a specific value in List<Class>? | <p>I need to update one data in my <code>List<Cards></code>. Class Cards looks like this:</p>
<pre><code>public class Cards implements Comparable<Cards>{
private int cardImage, cardID, cardScore;
public Cards(int cardImage, int cardID, int cardScore){
this.cardImage = cardImage;
this.cardID = cardI... | I need to update one data in my List<Cards> . Class Cards looks like this: [CODE] In my MainActivity clas I initiated List cardsList = new ArrayList<>(); and filled it like this [CODE] Now I want to update values only for cardScore[i] . How can I do this? | java|android | 0 | 2022-05-14T16:38:31.433Z | 2,022 | 5 | 16 | 5 | 33 | 1 | 255 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
72,242,369 | ApolloNetworkException sometime on Apollo Mutation on Android | <p>I am using <code>ApolloClient</code> for Android. Sometime one mutation api failed with <code>ApolloNetworkException</code>. Problem is i can't generate in debugging. This exception occurs sometime in live version as i got some firebase <code>non fatal</code> log for this. And the message i got for this exception is... | I am using ApolloClient for Android. Sometime one mutation api failed with ApolloNetworkException . Problem is i can't generate in debugging. This exception occurs sometime in live version as i got some firebase non fatal log for this. And the message i got for this exception is Failed to execute http call As ApolloNet... | android|apollo|apollo-android | 1 | 2022-05-14T17:02:40.373Z | 2,022 | 5 | 17 | 5 | 46 | 0 | 714 | 61 | 3 | 1 | true | true | false | false | false | false | low |
72,242,382 | (Anrdoid) How to prepopulate the Room database | <p><a href="https://i.stack.imgur.com/a8Bfx.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a8Bfx.jpg" alt="enter image description here" /></a></p>
<p>I made a screen like the current image.</p>
<p>Data such as <code>A, B, C..</code> are currently being set by getting from the <code>strings.xml</cod... | I made a screen like the current image. Data such as A, B, C.. are currently being set by getting from the strings.xml resource file. I am now going to use Room DB instead of strings.xml and I want to get these data from Room . To do this, we need to pre-populate the Room with data. In the sample code I found, the meth... | android|android-room | 1 | 2022-05-14T17:04:48.577Z | 2,022 | 5 | 17 | 5 | 53 | 1 | 854 | 46 | 2 | 1 | true | false | false | false | false | false | low |
72,242,862 | How to open Android pop-up view from adb? | <p>in samsung galaxy s8 how open app in popup view from adb ?</p>
<p><img src="https://i.stack.imgur.com/i62Isl.jpg" alt="pop-up view" /></p> | in samsung galaxy s8 how open app in popup view from adb ? | android|adb|samsung-galaxy | 0 | 2022-05-14T18:18:41.527Z | 2,022 | 5 | 18 | 5 | 99 | 0 | 58 | 41 | 3 | 0 | false | true | false | false | false | false | zero |
72,242,884 | Android project can't find net.sourceforge.jtds.jdbc.Driver | <p>I want to connect database to android project using android studio and sql server management studio. I add dependencie in build.gradle, but when I try to login into my application give me this error</p>
<pre><code>W/System.err: java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
at java.lang.C... | I want to connect database to android project using android studio and sql server management studio. I add dependencie in build.gradle, but when I try to login into my application give me this error [CODE] This is my MainActivity class [CODE] This is my activity_main.xml [CODE] This is my build.gradle [CODE] And this i... | java|android | 1 | 2022-05-14T18:21:25.767Z | 2,022 | 5 | 18 | 5 | 84 | 1 | 383 | 59 | 2 | 5 | true | false | false | false | false | false | low |
72,242,900 | setAlarmClock() is not exact and system adjusts the time for it | <p>Android documentation for <code>setAlarmClock</code>:</p>
<blockquote>
<p>Invoke an alarm at a precise time in the future. Because these alarms are highly visible to users, <strong>the system never adjusts their delivery time</strong>. The system identifies these alarms as the most critical ones and leaves low-power... | Android documentation for setAlarmClock : Invoke an alarm at a precise time in the future. Because these alarms are highly visible to users, the system never adjusts their delivery time . The system identifies these alarms as the most critical ones and leaves low-power modes if necessary to deliver the alarms. But it l... | android|kotlin|alarm|android-alarms | 0 | 2022-05-14T18:23:06.993Z | 2,022 | 5 | 18 | 5 | 44 | 0 | 1,126 | 63 | 4 | 2 | true | true | false | false | false | false | zero |
72,242,987 | can't setup app events for the app (react native) on ads manager for android | <p>I had react native app I tried to get app events manual by these line</p>
<pre><code>await Facebook.logEventAsync('addToCart');
</code></pre>
<p>I can see these event on the event manager
<a href="https://i.stack.imgur.com/f923T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f923T.png" alt="ente... | I had react native app I tried to get app events manual by these line [CODE] I can see these event on the event manager but I can't see the events when I want to add ads or campaign | android|react-native|facebook|facebook-graph-api|facebook-events | 0 | 2022-05-14T18:36:49.647Z | 2,022 | 5 | 18 | 5 | 26 | 0 | 181 | 76 | 5 | 1 | true | true | false | false | false | false | zero |
72,243,044 | I have been trying to add a chat sdk to my project | <p>I added the cometchat sdk to my project but each time i try to run my app i get the following errors</p>
<pre><code>org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'
java.lang.RuntimeException:... | I added the cometchat sdk to my project but each time i try to run my app i get the following errors [CODE] I dont know if the build.gradle(app level) file of my project and build.gradle(app level, ui-kit) file of the imported uikit are conflicting. | android|kotlin|plugins|sdk|cometchat | 0 | 2022-05-14T18:45:13.507Z | 2,022 | 5 | 18 | 5 | 41 | 0 | 249 | 50 | 5 | 1 | true | true | false | false | false | false | zero |
72,243,102 | Using Resource wrapper with multiple entities and mapper classes in clean architecture android | <p>Let's say we have an app that is going to apply clean architecture principles.
we have repositories, data sources(local & remote), multiple value objects for each layer and mapper classes for mapping those objects.</p>
<p>There is also a wrapper class called Resource (similar to what is discussed in <a href="htt... | Let's say we have an app that is going to apply clean architecture principles. we have repositories, data sources(local & remote), multiple value objects for each layer and mapper classes for mapping those objects. There is also a wrapper class called Resource (similar to what is discussed in this post ). for example: ... | android|kotlin|wrapper|clean-architecture|mapper | 0 | 2022-05-14T18:54:25.930Z | 2,022 | 5 | 18 | 5 | 174 | 0 | 745 | 94 | 5 | 1 | true | true | false | false | false | false | zero |
72,243,248 | Delay before next line on code on android SurfaceView kotlin | <p>Hello how can I delay the next line of code after drawing because the sleep() doesn't seem to draw the bitmap with canvas take a look at this code I read somewhere that you need to use synchronize() but I'm a beginner and don't know much</p>
<pre><code> if (position == mGameThread!!.targetPosition[x]) {
... | Hello how can I delay the next line of code after drawing because the sleep() doesn't seem to draw the bitmap with canvas take a look at this code I read somewhere that you need to use synchronize() but I'm a beginner and don't know much [CODE] | android|kotlin|graphics | 0 | 2022-05-14T19:20:21.777Z | 2,022 | 5 | 19 | 5 | 45 | 0 | 244 | 60 | 3 | 1 | true | true | false | false | false | false | zero |
72,243,327 | Android studio balance with timer (java) | <p>I want to make on button press to start a timer and increment at same time , so let's say the balance is 0.00 i want it when the button is clicked to increase by 0.01 every 5 minutes and when the timer stops it stops increasing and the increment returns to zero</p> | I want to make on button press to start a timer and increment at same time , so let's say the balance is 0.00 i want it when the button is clicked to increase by 0.01 every 5 minutes and when the timer stops it stops increasing and the increment returns to zero | java|android-studio-2.2 | 0 | 2022-05-14T19:32:15.550Z | 2,022 | 5 | 19 | 5 | 23 | 0 | 261 | 40 | 2 | 0 | false | true | false | false | false | false | zero |
72,243,372 | Hide RecyclerView until List is sorted | <p>When my RecyclerView loads it shows the unsorted list for a few milliseconds and then switches to the sorted list.</p>
<p>Here is a video what it looks like: <a href="https://drive.google.com/file/d/14UnS54S9JNp9VPYxIOAHIiPnJjksdYOL/view" rel="nofollow noreferrer">https://drive.google.com/file/d/14UnS54S9JNp9VPYxIOA... | When my RecyclerView loads it shows the unsorted list for a few milliseconds and then switches to the sorted list. Here is a video what it looks like: https://drive.google.com/file/d/14UnS54S9JNp9VPYxIOAHIiPnJjksdYOL/view Does anyone know how i can fix this? Thanks in advance! This is my code: [CODE] The Comparator: [C... | java|android|android-recyclerview|comparator|sortedlist | 0 | 2022-05-14T19:37:59.313Z | 2,022 | 5 | 19 | 5 | 46 | 0 | 324 | 38 | 5 | 2 | true | true | false | false | false | false | zero |
72,243,373 | get position item from a multiple json array | <p>Hi i'm beginner of android and I have a big problem. I have this JSON file:</p>
<pre><code>{"People":
[{"boy":{"name":"Jack","id":"11"}},
{"girl":{"name":"Rose","id":"22"}]}
</code></pre>
<p>I do a RecyclerV... | Hi i'm beginner of android and I have a big problem. I have this JSON file: [CODE] I do a RecyclerView with jack and rose item. When I click Jack I want to get position of jack item and get ID item. For Example, when I click Jack item, I want: "id:11" and "position of ID item is:1" I try: [CODE] Whe... | android|android-recyclerview | 0 | 2022-05-14T19:38:12.007Z | 2,022 | 5 | 19 | 5 | 36 | 0 | 431 | 44 | 2 | 2 | true | true | false | false | false | false | zero |
72,243,399 | Image View doesn't match parent's rounded cornered background | <pre><code> <FrameLayout
android:id="@+id/flTodayTraining"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/fl_today_training_bg_margin_bottom"... | [CODE] That's the cornered background of the frame layout [CODE] As you can see in the image, it's rounded in the bottom, but not in the top, how do I make it rounded in all corners? Please give me an answer that works on all version, not only api 31 + | android|xml|android-studio | -1 | 2022-05-14T19:41:43.713Z | 2,022 | 5 | 19 | 5 | 30 | 2 | 252 | 61 | 3 | 2 | true | false | false | false | false | true | negative |
72,243,439 | How to make content center of horizontally equally divided views in ConstraintLayout android | <p>I need to divide 3 views equally horizontally and the content of the views to be centered. I tried using the link: <a href="https://medium.com/@nomanr/constraintlayout-chains-4f3b58ea15bb" rel="nofollow noreferrer">https://medium.com/@nomanr/constraintlayout-chains-4f3b58ea15bb</a></p>
<p>But I'm unable to make the ... | I need to divide 3 views equally horizontally and the content of the views to be centered. I tried using the link: https://medium.com/@nomanr/constraintlayout-chains-4f3b58ea15bb But I'm unable to make the views center and equally divided. I also tried using app:layout_constraintHorizontal_weight but that didn't work. ... | android|android-constraintlayout|chain|android-layout-weight | 0 | 2022-05-14T19:50:40.430Z | 2,022 | 5 | 19 | 5 | 18 | 1 | 373 | 92 | 4 | 1 | true | false | false | false | false | false | zero |
72,243,480 | Divide screen to two halves with a title for each and center a view inside each one that will shrink or expand to fill the space | <p>I'm trying to create this kind of layout in android.</p>
<p>I'm using constraint layout. I want to divide the screen with height y to two halves with y/2 height each.</p>
<p>Each one of them will have a textview as title which takes the whole width and has constant height.</p>
<p>And a circular custom view which I w... | I'm trying to create this kind of layout in android. I'm using constraint layout. I want to divide the screen with height y to two halves with y/2 height each. Each one of them will have a textview as title which takes the whole width and has constant height. And a circular custom view which I would like to expand or s... | android|android-constraintlayout | 0 | 2022-05-14T19:59:01.463Z | 2,022 | 5 | 19 | 5 | 27 | 1 | 732 | 128 | 2 | 0 | false | false | false | false | false | false | zero |
72,243,615 | I want to intent to select the image from gallery and camera option in WebView app (both together as picture shown) | <p>I want to like this as picture shown in WebView app</p>
<p><a href="https://i.stack.imgur.com/S6xUK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S6xUK.jpg" alt="enter image description here" /></a></p>
<p>Here is my code but I am not getting camera option only I am getting gallery in my app</p>... | I want to like this as picture shown in WebView app Here is my code but I am not getting camera option only I am getting gallery in my app [CODE] from this code I am getting only gallery option to select the image as below picture shown but I want to camera option to select the image as first picture shown . | java|android|image|android-intent|webview | 0 | 2022-05-14T20:23:28.737Z | 2,022 | 5 | 20 | 5 | 62 | 0 | 309 | 115 | 5 | 1 | true | true | false | false | false | false | zero |
72,243,671 | Android Studio - PocketModeLiteSensor Error | <p>I have a problem that I've already described on StackOverflow but still can't solve - Suddenly LogCat stopped working for me - I have no idea why! As soon as I click "Debug" in Android Studio and the app installs on my phone the only error I get in LogCat Tab is <code>E/SensorsHub: PocketModeLiteSensor :in... | I have a problem that I've already described on StackOverflow but still can't solve - Suddenly LogCat stopped working for me - I have no idea why! As soon as I click "Debug" in Android Studio and the app installs on my phone the only error I get in LogCat Tab is E/SensorsHub: PocketModeLiteSensor :input data ... | java|android-studio|debugging|logcat | 0 | 2022-05-14T20:33:27.713Z | 2,022 | 5 | 20 | 5 | 13 | 0 | 911 | 43 | 4 | 0 | false | true | false | false | false | false | zero |
72,243,696 | setOnClickListener is not showing the Toast or doing the Intent | <p>this is in Kotlin, it doesn't seem to work no matter what I try it's just a button with a click listener. Its function is to take me to another activity, I tried a toast but didn't show either. I tried not using the function and also didn't work. and can we use this method with a text view? I'm new in Kotlin so easy... | this is in Kotlin, it doesn't seem to work no matter what I try it's just a button with a click listener. Its function is to take me to another activity, I tried a toast but didn't show either. I tried not using the function and also didn't work. and can we use this method with a text view? I'm new in Kotlin so easy on... | android|android-studio|kotlin | -2 | 2022-05-14T20:37:13.240Z | 2,022 | 5 | 20 | 5 | 63 | 2 | 403 | 63 | 3 | 1 | true | false | false | false | false | true | negative |
72,243,779 | Can't install nodejs in Termux on Android | <p>When I do <code>pkg install nodejs</code> or <code>pkg install nodejs-lts</code><br />
it gives me a this message:</p>
<pre><code> Checking availability of current mirror: ok
Ign:1 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:2 https://dl.bintray.com/grimler/science-packages-24 science InRelea... | When I do pkg install nodejs or pkg install nodejs-lts it gives me a this message: [CODE] I do it a second time: pkg install nodejs-lts Output: [CODE] It doesn't let me install any pkg's. What I've tried: I've tried reinstalling Termux. I tried apt update and apt upgrade the Output: [CODE] I did termux-setup-storage wh... | android|node.js|termux | 0 | 2022-05-14T20:51:20.670Z | 2,022 | 5 | 20 | 5 | 444 | 1 | 476 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
72,243,885 | Visual Studio Code Flutter Emülatör Problem | <p>I made a todo Hive project that I watched on Youtube. When I run the emulator, I encounter a white screen. There is no error on the code. can you help me what should i do?</p> | I made a todo Hive project that I watched on Youtube. When I run the emulator, I encounter a white screen. There is no error on the code. can you help me what should i do? | android-emulator | 0 | 2022-05-14T21:11:18.313Z | 2,022 | 5 | 21 | 5 | 16 | 0 | 171 | 43 | 1 | 0 | false | true | false | false | false | false | zero |
72,243,969 | onPressed from MaterialButton were trigged when the page from initialRoute | <p>There're two buttons from my WelcomeScreen, when this page is loaded, two buttons will be pressed automatically.
two buttons were used by the external widget"RoundButton".
Why I knew those buttons were being pressed, because I was using print function, and I saw the first button and second button were pres... | There're two buttons from my WelcomeScreen, when this page is loaded, two buttons will be pressed automatically. two buttons were used by the external widget"RoundButton". Why I knew those buttons were being pressed, because I was using print function, and I saw the first button and second button were pressed... | android|flutter|dart | 0 | 2022-05-14T21:26:55.070Z | 2,022 | 5 | 21 | 5 | 39 | 2 | 768 | 74 | 3 | 3 | true | false | false | false | false | false | zero |
72,244,001 | `java.lang.NoSuchMethodError: No static method create` after update tensorflow lite to 0.4.0 | <p>After updating <code>org.tensorflow:tensorflow-lite-metadata</code>, <code>org.tensorflow:tensorflow-lite-task-vision</code> and <code>org.tensorflow:tensorflow-lite-support</code> app falls with error:</p>
<pre><code>java.lang.NoSuchMethodError: No static method create(Ljava/nio/ByteBuffer;Lorg/tensorflow/lite/Inte... | After updating org.tensorflow:tensorflow-lite-metadata , org.tensorflow:tensorflow-lite-task-vision and org.tensorflow:tensorflow-lite-support app falls with error: [CODE] What could be wrong? I couldn't find any breaking changes in changelog. | android|tensorflow|tensorflow-lite | 1 | 2022-05-14T21:31:46.190Z | 2,022 | 5 | 21 | 5 | 180 | 1 | 243 | 92 | 3 | 1 | true | false | false | false | false | false | low |
72,244,051 | Parsing Nested JSON give Unhandled Exception | <p>I am trying to parse complex Nested JSON, I have multiple classes to get down the JSON nests. I am looking for the numbers from this JSON</p>
<pre><code>{
"data": {
"attributes": {
"last_analysis_stats": {
"harmless": 81,
"malicious": 2,
... | I am trying to parse complex Nested JSON, I have multiple classes to get down the JSON nests. I am looking for the numbers from this JSON [CODE] but whenever I parse it, I get the error "Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Data'" the code that I am usi... | android|json|flutter|dart|nested | 1 | 2022-05-14T21:41:29.470Z | 2,022 | 5 | 21 | 5 | 21 | 1 | 338 | 44 | 5 | 2 | true | false | false | false | false | false | low |
72,244,079 | Compose: Why does a list initiated with "remember" trigger differently to Snapshot | <p>I've been messing around with Jetpack Compose and currently looking at different ways of creating/managing/updating State.</p>
<p>The full code I'm referencing is <a href="https://github.com/HoinzeyBear/SelfComposed/blob/main/app/src/main/java/com/example/selfcomposed/blog/AllAboutState.kt" rel="nofollow noreferrer"... | I've been messing around with Jetpack Compose and currently looking at different ways of creating/managing/updating State. The full code I'm referencing is on my github I have made a list a piece of state 3 different ways and noticed differences in behavior. When the first list button is pressed, it causes all 3 button... | android|kotlin|android-jetpack-compose | 2 | 2022-05-14T21:46:10.147Z | 2,022 | 5 | 21 | 5 | 199 | 1 | 1,181 | 82 | 3 | 2 | true | false | false | false | false | false | low |
72,244,120 | How to add markers in Google Maps in Flutter using the Geopoints data in Firebase Firestore | <p>I am new to Flutter and Firebase. How can I add multiple markers in Google Maps in my Flutter Application from retrieving geopoints data in Firebase Firestore?</p>
<p>Here is the image of the document field in Firestore
<a href="https://i.stack.imgur.com/l1roo.png" rel="nofollow noreferrer">Firestore Image</a></p> | I am new to Flutter and Firebase. How can I add multiple markers in Google Maps in my Flutter Application from retrieving geopoints data in Firebase Firestore? Here is the image of the document field in Firestore Firestore Image | android|firebase|flutter|dart|google-cloud-firestore | 1 | 2022-05-14T21:56:23.993Z | 2,022 | 5 | 21 | 5 | 49 | 0 | 228 | 91 | 5 | 0 | false | true | false | false | false | false | low |
72,244,130 | Getting / Searching in array | <p>How can I get the value of int "icon" from the Int values array with an example:</p>
<p>2 = R.drawable.ic_blue?</p>
<p>or: how to get: R.drawable.ic_blue? knowing id: 2?</p>
<pre><code>public class iconsList {
public class IntValues {
public int id;
public int icon;
public IntValues(int id... | How can I get the value of int "icon" from the Int values array with an example: 2 = R.drawable.ic_blue? or: how to get: R.drawable.ic_blue? knowing id: 2? [CODE] | java|android | 0 | 2022-05-14T21:58:25.040Z | 2,022 | 5 | 21 | 5 | 25 | 1 | 172 | 28 | 2 | 1 | true | false | false | false | false | false | zero |
72,244,175 | App is crashing while phone authentication before sending OTP to mobile | <p>A mobile app that is connected to firebase firestore. App crashes every time I try to send an OTP code to mobile.</p>
<p>Signup3rdClass.java</p>
<pre><code> @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layou... | A mobile app that is connected to firebase firestore. App crashes every time I try to send an OTP code to mobile. Signup3rdClass.java [CODE] activity_sign-up3rd_class.xml [CODE] VerifyOTP [CODE] logcat [CODE] someone told me that there is a problem in the country code picker library, so I changed the library but still,... | android|google-cloud-firestore|firebase-authentication|one-time-password|mobile-country-code | 0 | 2022-05-14T22:07:08.233Z | 2,022 | 5 | 22 | 5 | 24 | 0 | 538 | 71 | 5 | 6 | true | true | false | false | false | false | zero |
72,244,238 | How to save data from Firestore into string and use it localy | <pre><code>reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
@Override
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
if(task.getResult().exists()){
SkinType = task.getResult().getString("SkinType");
}
... | [CODE] I want to use SkinType String out of the method on complete | android|google-cloud-firestore | 1 | 2022-05-14T22:20:58.183Z | 2,022 | 5 | 22 | 5 | 22 | 0 | 66 | 61 | 2 | 1 | true | true | false | false | false | false | low |
72,244,263 | Unresolved reference when using a generated AAR with Composables | <p>I'm in the process of porting my <a href="https://github.com/leinardi/FloatingActionButtonSpeedDial/tree/master" rel="nofollow noreferrer">FloatingActionButtonSpeedDial</a> library to Compose and I've reached the step where I should publish the new Compose library to maven central but, when I generate the AAR, all t... | I'm in the process of porting my FloatingActionButtonSpeedDial library to Compose and I've reached the step where I should publish the new Compose library to maven central but, when I generate the AAR, all the composable classes throw an Unresolved reference . The crazy thing is that the the enum on the same package is... | android|android-gradle-plugin|android-jetpack-compose|aar | 2 | 2022-05-14T22:26:23.503Z | 2,022 | 5 | 22 | 5 | 221 | 2 | 775 | 64 | 4 | 0 | false | false | false | false | false | false | low |
72,244,287 | Just curious - ParcelFileDescriptor's getStatSize() returns file size in MB not MiB, why is Google making this complicated? | <p>Phone's File manager shows the size of a randomly selected image as 7.09 MB.
Android's ParcelFileDescriptor's getStatSize() method returns 7093426 bytes. This number is exactly equal to 7.09 something when you divide by 1,000,000, not 1,048,576.</p>
<pre><code>ParcelFileDescriptor pfd = this.getApplicationContext()... | Phone's File manager shows the size of a randomly selected image as 7.09 MB. Android's ParcelFileDescriptor's getStatSize() method returns 7093426 bytes. This number is exactly equal to 7.09 something when you divide by 1,000,000, not 1,048,576. [CODE] Why in the world would Google want to return the file size in MB as... | java|android|parcelfiledescriptor | 1 | 2022-05-14T22:30:18.007Z | 2,022 | 5 | 22 | 5 | 50 | 0 | 690 | 123 | 3 | 1 | true | true | false | false | false | false | low |
72,244,343 | Android Studio INSERT button not adding | <p>I try to Insert some random values to Realtime Database in Android Studio with Firebase,
it says that Data has been inserted when it hasn't. In another class I created a Students Class that contains getters for name ,last name and telephone number.
Here's the code:</p>
<pre><code>package com.example.school;
import ... | I try to Insert some random values to Realtime Database in Android Studio with Firebase, it says that Data has been inserted when it hasn't. In another class I created a Students Class that contains getters for name ,last name and telephone number. Here's the code: [CODE] | android|firebase|firebase-realtime-database | 1 | 2022-05-14T22:42:29.860Z | 2,022 | 5 | 22 | 5 | 23 | 1 | 272 | 39 | 3 | 1 | true | false | false | false | false | false | low |
72,244,359 | pwa has different background on mobile device | <p>I have a strange problem, when I launch my WPA in developing mode on my computer it has a white background, but if I launch it on my android phone after installing it on the device, it appears with a black background; so I think there is a setting in my phone that I do not know</p> | I have a strange problem, when I launch my WPA in developing mode on my computer it has a white background, but if I launch it on my android phone after installing it on the device, it appears with a black background; so I think there is a setting in my phone that I do not know | android|progressive-web-apps | 1 | 2022-05-14T22:47:08.157Z | 2,022 | 5 | 22 | 5 | 10 | 0 | 278 | 45 | 2 | 0 | false | true | false | false | false | false | low |
72,244,450 | Cannot reassign variable inside observer viewmodel | <p>So I created MVVM app in kotlin to fetch movies from TMDB api, using injections and coroutines.
My problem is that I cannot copy the list of returned movies into a new list I created or reassign any variables inside the livedata observer from the MainActivity the values of variables stays the same as they were after... | So I created MVVM app in kotlin to fetch movies from TMDB api, using injections and coroutines. My problem is that I cannot copy the list of returned movies into a new list I created or reassign any variables inside the livedata observer from the MainActivity the values of variables stays the same as they were after ex... | android|kotlin|mvvmcross|kotlin-coroutines|android-livedata | 0 | 2022-05-14T23:08:23.273Z | 2,022 | 5 | 23 | 5 | 79 | 0 | 740 | 50 | 5 | 2 | true | true | false | false | false | false | zero |
72,244,508 | Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' | <p>how can I fix this error in flutter with android studio</p>
<p>/C:/src/flutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.6.3/lib/get_navigation/src/snackbar/snackbar.dart:452:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null.</p>
<ul>
<li>'Sched... | how can I fix this error in flutter with android studio /C:/src/flutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/get-4.6.3/lib/get_navigation/src/snackbar/snackbar.dart:452:31: Error: Method 'addPostFrameCallback' cannot be called on 'SchedulerBinding?' because it is potentially null. 'SchedulerBinding' is from 'p... | flutter|android-studio | 6 | 2022-05-14T23:23:05.193Z | 2,022 | 5 | 23 | 5 | 6,944 | 4 | 541 | 76 | 2 | 0 | false | false | true | false | false | false | medium |
72,244,548 | ERRor:%android.database.CursorIndexOutOfBoundsException: Index 10 requested, with a size of 10% | <p>Here is the complete code.. So the problem is that if there are 9 records in the table and by clicking on the ButtonNext , the application does not crash and displays the message "This is the last page", and if there are 11 records and by clicking on the ButtonNext , the application does not crash too and ... | Here is the complete code.. So the problem is that if there are 9 records in the table and by clicking on the ButtonNext , the application does not crash and displays the message "This is the last page", and if there are 11 records and by clicking on the ButtonNext , the application does not crash too and goe... | java|android|sqlite|pagination | 0 | 2022-05-14T23:36:43.030Z | 2,022 | 5 | 23 | 5 | 41 | 0 | 543 | 95 | 4 | 1 | true | true | false | false | false | false | zero |
72,244,558 | Android Native API ANativeWindow_setFrameRate is undefined when linking | <p>Inside my "native.cpp" file I reference the native method;
<code>ANativeWindow_setFrameRate</code></p>
<p>But when I compile I get;</p>
<blockquote>
<p>ld: error: undefined symbol: ANativeWindow_setFrameRate</p>
</blockquote>
<p>Inside of "CMakeLists.txt" file I specify -landroid to link with API... | Inside my "native.cpp" file I reference the native method; ANativeWindow_setFrameRate But when I compile I get; ld: error: undefined symbol: ANativeWindow_setFrameRate Inside of "CMakeLists.txt" file I specify -landroid to link with API. Why am I getting this error? Thanks | android | 1 | 2022-05-14T23:39:33.113Z | 2,022 | 5 | 23 | 5 | 31 | 1 | 293 | 71 | 1 | 0 | false | false | false | false | false | false | low |
72,244,579 | How to link deletion in room data | <p>I have two data base or two tables ex:one for matches and one for chat jn event section in match note that the all messages is inserted in one table mean that every chat of every match is inserted in the same table
My target is when I delete a group of matches I need to automatically delete all chats of those match... | I have two data base or two tables ex:one for matches and one for chat jn event section in match note that the all messages is inserted in one table mean that every chat of every match is inserted in the same table My target is when I delete a group of matches I need to automatically delete all chats of those match wit... | java|android|sqlite|relational-database|android-room | 0 | 2022-05-14T23:45:03.520Z | 2,022 | 5 | 23 | 5 | 23 | 1 | 321 | 33 | 5 | 0 | false | false | false | false | false | false | zero |
72,244,580 | Change Spinner Text content programmatically | <p>I have a spinner, and I want to find a way to change the dropdown for my spinner. I want to change my text content through code, but I'm not sure how to do that.</p>
<p>This is the structure of my Spinner:</p>
<pre><code>val adapter: ArrayAdapter<String> = ArrayAdapter<String>(
... | I have a spinner, and I want to find a way to change the dropdown for my spinner. I want to change my text content through code, but I'm not sure how to do that. This is the structure of my Spinner: [CODE] I want to change the text in my spinner to a different list (unit2). | android|kotlin|spinner | 0 | 2022-05-14T23:45:12.013Z | 2,022 | 5 | 23 | 5 | 56 | 2 | 274 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
72,244,581 | Get tree of ancestors from a SQLite table with Room and Flows | <p>This is very tricky for me because I don't know if it can be done with a SQLite query or by recursively calling some function. It gets complicated because I also use <code>Flow</code> and <code>LiveData</code> with <code>ViewModel</code></p>
<p>Basically, my entity looks like this</p>
<pre><code>@Entity(
foreign... | This is very tricky for me because I don't know if it can be done with a SQLite query or by recursively calling some function. It gets complicated because I also use Flow and LiveData with ViewModel Basically, my entity looks like this [CODE] Now, imagine I have 5 items, each one parent of the next one [CODE] So, what ... | kotlin|android-room|kotlin-coroutines | 2 | 2022-05-14T23:45:37.857Z | 2,022 | 5 | 23 | 5 | 33 | 1 | 811 | 61 | 3 | 3 | true | false | false | false | false | false | low |
72,244,734 | How can I run PHP Code locally within a WebView App? | <p>So I have been issued a project with tight restrictions,
I need to run php files stored in local app directory for a WebView application. However I dont even know where to start as for implementing or integrating</p>
<p>I see the following apps in google play, claiming to have php server, mysql, etc.</p>
<p><a href=... | So I have been issued a project with tight restrictions, I need to run php files stored in local app directory for a WebView application. However I dont even know where to start as for implementing or integrating I see the following apps in google play, claiming to have php server, mysql, etc. https://play.google.com/s... | php|android|android-studio|webview | -2 | 2022-05-15T00:26:04.980Z | 2,022 | 5 | 0 | 6 | 292 | 1 | 1,073 | 52 | 4 | 0 | false | false | false | false | false | true | negative |
72,244,784 | Show screen before another app starts in android studio | <p>I'm doing an app that blocks the access to another apps when you have used them for an specific time, for example Facebook. So, my idea is to show a screen when you open the Facebook app that prevents you from accessing it but i don't know how to put my screen before these apps and block the acces.</p>
<p>Thanks! an... | I'm doing an app that blocks the access to another apps when you have used them for an specific time, for example Facebook. So, my idea is to show a screen when you open the Facebook app that prevents you from accessing it but i don't know how to put my screen before these apps and block the acces. Thanks! and if there... | java|android|android-studio | 0 | 2022-05-15T00:40:02.710Z | 2,022 | 5 | 0 | 6 | 35 | 0 | 403 | 55 | 3 | 0 | false | true | false | false | false | false | zero |
72,245,004 | Add an offer to an already existing user subscription in my Android app (Google Play IAP) | <p>Google Play IAP allows the developer to set up offers in the app subscription with trials and discounts.</p>
<p>If the offer is a <code>developer determined</code> offer the developer can add logic to the backend or frontend to allow a user to subscribe with that offer depending on some condition.</p>
<p>This works ... | Google Play IAP allows the developer to set up offers in the app subscription with trials and discounts. If the offer is a developer determined offer the developer can add logic to the backend or frontend to allow a user to subscribe with that offer depending on some condition. This works great, but how about applying ... | android|google-play|in-app-purchase | 3 | 2022-05-15T01:41:00.700Z | 2,022 | 5 | 1 | 6 | 145 | 0 | 968 | 89 | 3 | 0 | false | true | false | false | false | false | low |
72,245,204 | Android Studio button crashing | <p>Good day, ma'am/sir. I would like to ask how to fix this crash thing in <strong>Android Studio</strong> on my <strong>Bluestacks</strong> emulator; the problem is the <strong>button</strong>, every time I click it the application automatically closes. How do I fix this? Below is the image. Thank you in advance.</p>
... | Good day, ma'am/sir. I would like to ask how to fix this crash thing in Android Studio on my Bluestacks emulator; the problem is the button , every time I click it the application automatically closes. How do I fix this? Below is the image. Thank you in advance. app layout after clicking Code snippet Login page login p... | android|android-studio|android-layout|button | 0 | 2022-05-15T02:43:37.970Z | 2,022 | 5 | 2 | 6 | 29 | 0 | 384 | 30 | 4 | 0 | false | true | false | false | false | false | zero |
72,245,288 | How can I do work with a coroutine in a foreground service? Kotlin Android | <p>I am trying to build an app that will run in a foreground service and give feedback to the user only through audio.</p>
<p>I have followed this example: <a href="https://betterprogramming.pub/what-is-foreground-service-in-android-3487d9719ab6" rel="nofollow noreferrer">https://betterprogramming.pub/what-is-foregroun... | I am trying to build an app that will run in a foreground service and give feedback to the user only through audio. I have followed this example: https://betterprogramming.pub/what-is-foreground-service-in-android-3487d9719ab6 and it works as advertised: It shows with a TextView whether the service is running or not. A... | android|kotlin|kotlin-coroutines|foreground-service | 0 | 2022-05-15T03:09:52.310Z | 2,022 | 5 | 3 | 6 | 252 | 0 | 584 | 74 | 4 | 2 | true | true | false | false | false | false | zero |
72,245,332 | Kotlin Cannot Inflate Layout | <p>I am building an application that has a <code>GridView</code> that contains a dynamic amount of <code>CardView</code>s. I am having issues accessing the <code>TextView</code> elements in the individual items layout from the custom adapter that I am creating.</p>
<p><code>tvCastleName</code> and <code>tvShieldTime</... | I am building an application that has a GridView that contains a dynamic amount of CardView s. I am having issues accessing the TextView elements in the individual items layout from the custom adapter that I am creating. tvCastleName and tvShieldTime are unresolved references, and the application will not compile. main... | android-studio|kotlin | 1 | 2022-05-15T03:27:15.593Z | 2,022 | 5 | 3 | 6 | 42 | 1 | 370 | 28 | 2 | 3 | true | false | false | false | false | false | low |
72,245,454 | How to create unique id for each collection in Firebase? | <p>I want to create a unique id for collection call 'Reservation' and I'm not sure how to do it so. It currently has name, plate number, phone number and timestamp and I would like to create a unique id that holds each document. Can anyone help me on how to create a unique id for this collection? Heres the code that wh... | I want to create a unique id for collection call 'Reservation' and I'm not sure how to do it so. It currently has name, plate number, phone number and timestamp and I would like to create a unique id that holds each document. Can anyone help me on how to create a unique id for this collection? Heres the code that when ... | android|firebase|flutter|google-cloud-firestore | 0 | 2022-05-15T04:07:59.563Z | 2,022 | 5 | 4 | 6 | 319 | 3 | 387 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
72,245,562 | How to fixed the mapbox navigation puck's position and direction | <p>With the default mapbox navigation following mode, the puck will move to many positions on the screen and in many direction.<br />
How can I align it to center horizontal in <strong>bottom</strong> of the screen and the direction always point to <strong>top</strong>? Then only the map move, zoom and rotate.</p>
<p>I... | With the default mapbox navigation following mode, the puck will move to many positions on the screen and in many direction. How can I align it to center horizontal in bottom of the screen and the direction always point to top ? Then only the map move, zoom and rotate. I tried to override followingPitchPropertyOverride... | mapbox|mapbox-android|mapbox-navigation | 1 | 2022-05-15T04:45:48.717Z | 2,022 | 5 | 4 | 6 | 274 | 2 | 576 | 64 | 3 | 0 | false | false | false | false | false | false | low |
72,245,580 | Android Scoped Storage Permission for Download Folder to Download PDF | <p>I have an app that download specific pdf files using streamig Retrofit. I am upgrading my app targeting android 11. I have gone through many online documents and stackoverflow solutions and got it working. The files gets downloaded to Downloads folder.</p>
<p>With Scope Storage, do i need to ask for specific permiss... | I have an app that download specific pdf files using streamig Retrofit. I am upgrading my app targeting android 11. I have gone through many online documents and stackoverflow solutions and got it working. The files gets downloaded to Downloads folder. With Scope Storage, do i need to ask for specific permission to rea... | java|android|scoped-storage | 1 | 2022-05-15T04:52:05.410Z | 2,022 | 5 | 4 | 6 | 177 | 0 | 692 | 69 | 3 | 4 | true | true | false | false | false | false | low |
72,245,625 | ListView Item Duplicated when Save or Reload | <p>I am getting listView items duplicated after adding items and also when EDIT or DELETE menu item got selected, but when i re-open the app, items are not duplicated.</p>
<p>Posting some codes below:</p>
<p>SQLiteManager.java</p>
<pre><code>package com.example.sqlitetutorial;
import android.annotation.SuppressLint;
i... | I am getting listView items duplicated after adding items and also when EDIT or DELETE menu item got selected, but when i re-open the app, items are not duplicated. Posting some codes below: SQLiteManager.java [CODE] MemberAdapter.java [CODE] Member.java [CODE] MemberDetailActivity.java/Insert Data Class [CODE] EditMem... | java|android|listview|crud | 1 | 2022-05-15T05:03:14.770Z | 2,022 | 5 | 5 | 6 | 30 | 0 | 420 | 44 | 4 | 6 | true | true | false | false | false | false | low |
72,245,639 | okhttpClient requset download file fail,Server is built by Netty | <p>Now,i build nettyServer and use okHttp request download, but okhttp response not has dataiostream, could someone help me solve the problem?</p>
<p><code>code</code>
Server by Netty</p>
<pre><code> mServerBootstrap.group(mBossGroup, mWorkerGroup)
.channel(NioServerSocketChannel.class)
.hand... | Now,i build nettyServer and use okHttp request download, but okhttp response not has dataiostream, could someone help me solve the problem? code Server by Netty [CODE] and client okhttp request download [CODE] The reason is: clent can receiver repoonse log,but read buffer is error onResponse call=okhttp3.RealCall@86ad3... | java|android|websocket|netty|okhttp | 0 | 2022-05-15T05:08:31.723Z | 2,022 | 5 | 5 | 6 | 26 | 1 | 500 | 64 | 5 | 2 | true | false | false | false | false | false | zero |
72,245,710 | draw on a PGM file on android studios using canvas | <p>I wanted to know if it is possible to draw on a PGM file as we do on a bitmap using canvas in android studios.</p> | I wanted to know if it is possible to draw on a PGM file as we do on a bitmap using canvas in android studios. | android-studio|android-canvas|pgm | 0 | 2022-05-15T05:25:25.473Z | 2,022 | 5 | 5 | 6 | 19 | 0 | 110 | 50 | 3 | 0 | false | true | false | false | false | false | zero |
72,245,712 | How to receive USB device attached broadcast in Android Xamarin? | <p>I am trying to receive USB attached Broadcast events on my app with this code, I registered the IntentFilter statically and went an extra mile to register the Receiver and the IntentFilter in the OnCreate method of my MainActivity, however when I connect a USB cable to from my phone to my laptop, it does not call th... | I am trying to receive USB attached Broadcast events on my app with this code, I registered the IntentFilter statically and went an extra mile to register the Receiver and the IntentFilter in the OnCreate method of my MainActivity, however when I connect a USB cable to from my phone to my laptop, it does not call the c... | java|android|xamarin | 0 | 2022-05-15T05:25:42.550Z | 2,022 | 5 | 5 | 6 | 198 | 0 | 634 | 64 | 3 | 4 | true | true | false | false | false | false | zero |
72,245,730 | google_mobile_ads occurs an error when banner widget displayed | flutter | <p>I'm trying to display banner ad in my app on Android.
But an error occurs when <code>AdWidget()</code> called.</p>
<p><a href="https://i.stack.imgur.com/OpHl2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OpHl2.png" alt="enter image description here" /></a></p>
<pre><code> throw FlutterError.... | I'm trying to display banner ad in my app on Android. But an error occurs when AdWidget() called. [CODE] But I couldn't find the error in log. VScode just showed me this box.dart marked line. What I Did Edit AndroidManifest.xml Edited AndroidManifest.xml in android/app/src/main . [CODE] Initialize Admob [CODE] Create i... | android|flutter|dart|admob | 0 | 2022-05-15T05:28:13.097Z | 2,022 | 5 | 5 | 6 | 47 | 0 | 444 | 72 | 4 | 5 | true | true | false | false | false | false | zero |
72,245,734 | Micro QR code Decoder Library for Android | <p>Is there any open source micro QR code scanner for Android? Ive been going a fair bit and I only found Google's library and Zxing both of which do not support it.</p>
<p>I run an e-commerce business, and we have a lot of inventory all of which has been marked by microqr codes.</p>
<p>We are planning on integrate the... | Is there any open source micro QR code scanner for Android? Ive been going a fair bit and I only found Google's library and Zxing both of which do not support it. I run an e-commerce business, and we have a lot of inventory all of which has been marked by microqr codes. We are planning on integrate these microqr codes ... | java|android|qr-code | 1 | 2022-05-15T05:28:32.273Z | 2,022 | 5 | 5 | 6 | 123 | 0 | 436 | 41 | 3 | 0 | false | true | false | false | false | false | low |
72,245,785 | React Native Android Build Error Could not create task ':app:generateLintModuleInfo' | <p>Hi Everyone i'm still new on react native i have a problem that cant build app debug when build <code>gradlew assembleRelease</code>, after build have an error this</p>
<pre><code>* What went wrong:
Could not create task ':app:generateLintModuleInfo'.
> Failed to install the following SDK components:
patche... | Hi Everyone i'm still new on react native i have a problem that cant build app debug when build gradlew assembleRelease , after build have an error this [CODE] But i already installed and accept the license from android studio and i have install jdk & jre on my local pc the next log have like this 1 sample [CODE] is th... | android|react-native|build.gradle | 0 | 2022-05-15T05:43:43.930Z | 2,022 | 5 | 5 | 6 | 164 | 0 | 397 | 84 | 3 | 2 | true | true | false | false | false | false | zero |
72,245,788 | Video codec error com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: Android studio | <p>I am working on video player with ExoPlayer library and my working fine but in some device I am getting Video codec error, even I have try to use software decoder, but still getting same problem in some device. Any can help me to resolve this issue?</p>
<p>here is my code</p>
<pre><code>private void playVideo() {
... | I am working on video player with ExoPlayer library and my working fine but in some device I am getting Video codec error, even I have try to use software decoder, but still getting same problem in some device. Any can help me to resolve this issue? here is my code [CODE] | java|android|exoplayer | 0 | 2022-05-15T05:44:16.183Z | 2,022 | 5 | 5 | 6 | 558 | 0 | 272 | 145 | 3 | 1 | true | true | false | false | false | false | zero |
72,245,798 | Android Notification setSmallIcon() is not working for XiaoMi 10 | <p>I have tried uninstall app and reboot my phone,but setSmallIcon() still not working--always show the default rotbot icon.setSmallIcon()is working in other phones.Who know the answer,thanks!</p> | I have tried uninstall app and reboot my phone,but setSmallIcon() still not working--always show the default rotbot icon.setSmallIcon()is working in other phones.Who know the answer,thanks! | android | 0 | 2022-05-15T05:45:45.967Z | 2,022 | 5 | 5 | 6 | 14 | 0 | 189 | 64 | 1 | 0 | false | true | false | false | false | false | zero |
72,245,821 | None if the following functions can be called with the Arguments supplied Jetpack Compose Error | <p>I keep getting this error whenever I try to use a textfield in Compose, I have tried both Textfield implementations, ie one with a String value and TextFieldValue arguments but still get the error, I have also tried using
<code>var text = rememberSaveable{mutableStateOf("")}</code>
and
<code>var text by re... | I keep getting this error whenever I try to use a textfield in Compose, I have tried both Textfield implementations, ie one with a String value and TextFieldValue arguments but still get the error, I have also tried using var text = rememberSaveable{mutableStateOf("")} and var text by remember {mutableStateOf... | android|android-jetpack-compose | 0 | 2022-05-15T05:50:26.460Z | 2,022 | 5 | 5 | 6 | 176 | 2 | 469 | 95 | 2 | 1 | true | false | false | false | false | false | zero |
72,245,869 | Please solve this error as soon as possible | <p>Error detected in pubspec.yaml:
Error on line 37, column 3: Expected ':'.
╷
37 │ cupertino_icons: ^1.0.2:
│ ^
╵
Please correct the pubspec.yaml file at C:\Androidstudio\Projects_8.whatsappclone\pubspec.yaml
exit code 1</p> | Error detected in pubspec.yaml: Error on line 37, column 3: Expected ':'. ╷ 37 │ cupertino_icons: ^1.0.2: │ ^ ╵ Please correct the pubspec.yaml file at C:\Androidstudio\Projects_8.whatsappclone\pubspec.yaml exit code 1 | android|flutter|dart|get | -2 | 2022-05-15T06:00:22.570Z | 2,022 | 5 | 6 | 6 | 33 | 2 | 218 | 43 | 4 | 0 | false | false | false | false | false | true | negative |
72,245,970 | Long pressing an item on Android Chrome shows the context menu for a bit but then shows up an unwanted drag-and-drop item | <p>For example, when I long press an item, it shows the context menu but then the context menu gets closed a tiny bit after and summons a drag-and-drop box (containing the URL and the name of the page if it's a link, if it's an image it then just shows the floating image). It shows the item like I'm dragging it, but I ... | For example, when I long press an item, it shows the context menu but then the context menu gets closed a tiny bit after and summons a drag-and-drop box (containing the URL and the name of the page if it's a link, if it's an image it then just shows the floating image). It shows the item like I'm dragging it, but I am ... | android|drag-and-drop|long-press | 4 | 2022-05-15T06:21:14.773Z | 2,022 | 5 | 6 | 6 | 1,472 | 1 | 1,784 | 121 | 3 | 0 | false | false | false | false | false | false | low |
72,245,980 | Flutter: Is there any way to clean the contents in CustomPaint? | <p>Recently I'm using <code>CustomPaint</code> and <code>CustomPainter</code> to draw line chart. I want to implement the function that, once I click a <code>button</code>, the lines in <code>CustomPaint</code> will disappear, just like no lines have been painted.</p>
<p>So what function should I put in the <code>setSt... | Recently I'm using CustomPaint and CustomPainter to draw line chart. I want to implement the function that, once I click a button , the lines in CustomPaint will disappear, just like no lines have been painted. So what function should I put in the setState() of the button ? Thank for your help. | android|flutter|setstate|custom-painter|flutter-custompainter | 0 | 2022-05-15T06:23:59.903Z | 2,022 | 5 | 6 | 6 | 19 | 0 | 295 | 63 | 5 | 0 | false | true | false | false | false | false | zero |
72,245,991 | How can I run my selenium nodejs console application as android application? | <p>I have created a <em>nodejs</em> application which uses <em>selenium</em> as a dependency.
Now I am in need of running it as an android application. But I cannot find a way to add "<em>Chrome</em>" as a dependency, cause I am using chromedriver, which requires Chrome too. I cannot assure that client will h... | I have created a nodejs application which uses selenium as a dependency. Now I am in need of running it as an android application. But I cannot find a way to add " Chrome " as a dependency, cause I am using chromedriver, which requires Chrome too. I cannot assure that client will have installed chrome and add... | android|node.js|selenium|google-chrome|console | 0 | 2022-05-15T06:25:56.173Z | 2,022 | 5 | 6 | 6 | 19 | 0 | 455 | 76 | 5 | 0 | false | true | false | false | false | false | zero |
72,246,045 | Duplicate class io.grpc.Context found in modules jetified-grpc-context-1.44.1 | <p>I'm building a native Android app using Kotlin. I used Firebase for Authentication and Cloud Messaging without any problem. After adding the dependency for Firestore, I get 2 errors.</p>
<ol>
<li><p>Duplicate class io.grpc.Context found in modules jetified-grpc-context-1.44.1 (com.google.guava:guava:30.1.1-android) ... | I'm building a native Android app using Kotlin. I used Firebase for Authentication and Cloud Messaging without any problem. After adding the dependency for Firestore, I get 2 errors. Duplicate class io.grpc.Context found in modules jetified-grpc-context-1.44.1 (com.google.guava:guava:30.1.1-android) and jetified-grpc-c... | android|firebase|kotlin|google-cloud-firestore|build.gradle | 0 | 2022-05-15T06:35:49.193Z | 2,022 | 5 | 6 | 6 | 35 | 0 | 531 | 77 | 5 | 1 | true | true | false | false | false | false | zero |
72,246,172 | How to add click listener to Carousel item | <p>I've created a Carousel using MotionLayout by following this guide: <a href="https://developer.android.com/training/constraint-layout/motionlayout/carousel" rel="nofollow noreferrer">https://developer.android.com/training/constraint-layout/motionlayout/carousel</a></p>
<p>I've gotten everything from this guide worki... | I've created a Carousel using MotionLayout by following this guide: https://developer.android.com/training/constraint-layout/motionlayout/carousel I've gotten everything from this guide working - I can swipe through a carousel of items. However, I'm having trouble adding an onClickListener to my carousel's items. I've ... | android|kotlin|android-layout|android-motionlayout | 3 | 2022-05-15T07:02:05.883Z | 2,022 | 5 | 7 | 6 | 175 | 1 | 1,049 | 42 | 4 | 2 | true | false | false | false | false | false | low |
72,246,193 | Loading lots to small size images into auto scrolling list | <p>I am trying to implement trickplay for android TV app. I have list of local file urls to show in auto scrolling RecylerView when user press and hold FF/RW buttons.</p>
<p>I am not using glide for this case because it mostly shows empty images as the scroll speed is so fast</p>
<p>To show images faster I am creating ... | I am trying to implement trickplay for android TV app. I have list of local file urls to show in auto scrolling RecylerView when user press and hold FF/RW buttons. I am not using glide for this case because it mostly shows empty images as the scroll speed is so fast To show images faster I am creating List<Drawable> by... | android|android-recyclerview|android-imageview|android-drawable|android-bitmap | 0 | 2022-05-15T07:05:51.453Z | 2,022 | 5 | 7 | 6 | 13 | 0 | 665 | 58 | 5 | 2 | true | true | false | false | false | false | zero |
72,246,208 | How to make Flutter ListView height same as children height(dynamic) | <p>I want to make the ListView have a same height with its content, <br />
but always got <strong>Horizontal viewport was given unbounded height</strong> Errors <br />
I tried to defined a <strong>SizedBox with a height as parent of the ListView</strong>, but it seems weird <br />
All of the items was going strecth dow... | I want to make the ListView have a same height with its content, but always got Horizontal viewport was given unbounded height Errors I tried to defined a SizedBox with a height as parent of the ListView , but it seems weird All of the items was going strecth down How can i defined this ListView without defined a heigh... | android|ios|flutter|dart|listview | 0 | 2022-05-15T07:08:25.937Z | 2,022 | 5 | 7 | 6 | 76 | 3 | 496 | 68 | 5 | 2 | true | false | false | false | false | false | zero |
72,246,209 | Retrieve data from firebase using two queries into Recylerview without clearing the first query | <p>I want to sort the firebase and populate both data retrieved in one recyclerview. I want to query the database twice by showing at the top all the item that was added 2 days ago plus I want to show items added 4 days ago.</p>
<p>What i am doing.</p>
<p>I wrote the code to query my Database using order by</p>
<pre><c... | I want to sort the firebase and populate both data retrieved in one recyclerview. I want to query the database twice by showing at the top all the item that was added 2 days ago plus I want to show items added 4 days ago. What i am doing. I wrote the code to query my Database using order by [CODE] I am able to successf... | java|android|firebase-realtime-database | 0 | 2022-05-15T07:08:29.500Z | 2,022 | 5 | 7 | 6 | 17 | 0 | 851 | 95 | 3 | 1 | true | true | false | false | false | false | zero |
72,246,232 | Issue while using background_locator plugin while tracking background location in flutter | <p>I'm trying to track location in the background using flutter and to do so I'm using the <a href="https://pub.dev/packages/background_locator" rel="nofollow noreferrer">background_locator</a> plugin. It has been implemented in such a way that there are certain static callback functions that were registered. I've decl... | I'm trying to track location in the background using flutter and to do so I'm using the background_locator plugin. It has been implemented in such a way that there are certain static callback functions that were registered. I've declared a class variable of File type to save the log in the background. The global variab... | android|ios|flutter|dart|background | 0 | 2022-05-15T07:11:38.903Z | 2,022 | 5 | 7 | 6 | 496 | 2 | 1,100 | 89 | 5 | 1 | true | false | false | false | false | false | zero |
72,246,275 | How to open a dialog box on the click of a widget button in android | <p>I am trying to create a button in my app's widget. I expect it to open a dialog box when clicked. I am unsure of how to implement this.
Here is the widget's code:</p>
<pre><code>public class IncompleteTodosWidget extends AppWidgetProvider {
static void updateAppWidget(Context context, AppWidgetManager appWidget... | I am trying to create a button in my app's widget. I expect it to open a dialog box when clicked. I am unsure of how to implement this. Here is the widget's code: [CODE] Here is the code of the dialog box: [CODE] When I try clicking the view with id appwidget_text, my app gets opened instead of the dialog box. Where am... | java|android|react-native | 1 | 2022-05-15T07:19:44.237Z | 2,022 | 5 | 7 | 6 | 168 | 1 | 335 | 67 | 3 | 2 | true | false | false | false | false | false | low |
72,246,321 | Cannot Able to run App in iphone device after upgraded to Flutter 3.0 | <p>After i upgraded to <code>flutter 3.0</code> i cannot able to run on iphone device and the error is showing in <code>xcode</code> is <code>Command PhaseScriptExecution failed with a nonzero exit code </code>. Below is the error logs.</p>
<pre><code>Unhandled exception:
Exception: Command "rsync -8 -av --delete ... | After i upgraded to flutter 3.0 i cannot able to run on iphone device and the error is showing in xcode is Command PhaseScriptExecution failed with a nonzero exit code . Below is the error logs. [CODE] Android Studio Error logs [CODE] | xcode|flutter|android-studio | 2 | 2022-05-15T07:28:34.320Z | 2,022 | 5 | 7 | 6 | 33 | 0 | 234 | 69 | 3 | 2 | true | true | false | false | false | false | low |
72,246,437 | How to use ACTION_OPEN_DOCUMENT_TREE without startActivityForResult? | <p>I want to select a folder on my phone's SD card. At the moment I am doing this:</p>
<pre><code>activityResultLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(),
new ActivityResultCallback<ActivityResult>() {
@Override
public void onActivityResult(ActivityR... | I want to select a folder on my phone's SD card. At the moment I am doing this: [CODE] .. [CODE] How do I get the folder back from the activity? What if I display another activity - how can I tell which activityresult is which? [CODE] The old way of doing things makes sense to me (e.g. see here with request codes and i... | android|android-intent|onactivityresult | 0 | 2022-05-15T07:49:00.020Z | 2,022 | 5 | 7 | 6 | 49 | 0 | 392 | 68 | 3 | 3 | true | true | false | false | false | false | zero |
72,246,439 | the font size on the receipt is different when printing using different types of smartphones | <p>I'm having problems where every time I print receipts on various devices the font size will be different and sometimes the receipt can't load all the content according to what has been set. here I use the Printooth library and use Layout which is then converted to a bitmap</p> | I'm having problems where every time I print receipts on various devices the font size will be different and sometimes the receipt can't load all the content according to what has been set. here I use the Printooth library and use Layout which is then converted to a bitmap | android|kotlin|android-layout|printing|font-size | 0 | 2022-05-15T07:49:09.250Z | 2,022 | 5 | 7 | 6 | 50 | 1 | 273 | 92 | 5 | 0 | false | false | false | false | false | false | zero |
72,246,473 | AVD Small Frame Android studio issues | <h3>I am not able to open the AVD like seamless devices, it's always there in this small frame. How can I fix it?</h3>
<p><a href="https://i.stack.imgur.com/iMuyd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iMuyd.png" alt="" /></a></p> | I am not able to open the AVD like seamless devices, it's always there in this small frame. How can I fix it? | android|flutter|android-studio|avd|development-environment | 0 | 2022-05-15T07:55:01.143Z | 2,022 | 5 | 7 | 6 | 13 | 0 | 109 | 37 | 5 | 0 | false | true | false | false | false | false | zero |
72,246,478 | Unable to save (download) image file to iOS device using gallery_saver 2.3.2 | <p>I get his message in the terminal when trying to download an image from my flutter app using gallery_saver 2.3.2:</p>
<p>flutter: <a href="https://firebasestorage.googleapis.com/v0/b/my-app.appspot.com/o/user_image%2FA2cPGwK2J0T9c2JeKXXXXX.jpg?alt=media&token=d25fabd2-2902-4a93-8571-XXXXX" rel="nofollow noreferr... | I get his message in the terminal when trying to download an image from my flutter app using gallery_saver 2.3.2: flutter: https://firebasestorage.googleapis.com/v0/b/my-app.appspot.com/o/user_image%2FA2cPGwK2J0T9c2JeKXXXXX.jpg?alt=media&token=d25fabd2-2902-4a93-8571-XXXXX flutter: null flutter: File size:129453 flutte... | xcode|flutter|android-studio | 0 | 2022-05-15T07:55:37.107Z | 2,022 | 5 | 7 | 6 | 40 | 0 | 787 | 76 | 3 | 1 | 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.