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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59,936,866 | Duplicate data with FirebaseListAdapter and ListView on scrolling | <p>I'm writing a simple workout log. Here I'm populating a view using the FirebaseListAdapter and its working ok when I initially load it. The problem is that when I have more data and scroll down, the data gets duplicated every time. I understand that the fragment is recreated every time I scroll down or up but I coul... | I'm writing a simple workout log. Here I'm populating a view using the FirebaseListAdapter and its working ok when I initially load it. The problem is that when I have more data and scroll down, the data gets duplicated every time. I understand that the fragment is recreated every time I scroll down or up but I couldn'... | java|android|listview|firebase-realtime-database|adapter | 0 | 2020-01-27T18:28:30.367Z | 2,020 | 1 | 18 | 0 | 53 | 0 | 451 | 65 | 5 | 1 | true | true | false | false | false | false | zero |
59,937,016 | MenuItem on Navigation Drawer does not respond | <p>i am new to java programming, now i am working on a simple app that has an webview integrated that open a particular website.
My style is navigation drawer for the app. When i press an item from the drawer menu it doesn't work at all. I am trying to open a URL using the webview but nothing happens.
I have tried many... | i am new to java programming, now i am working on a simple app that has an webview integrated that open a particular website. My style is navigation drawer for the app. When i press an item from the drawer menu it doesn't work at all. I am trying to open a URL using the webview but nothing happens. I have tried many th... | java|android | 2 | 2020-01-27T18:39:35.477Z | 2,020 | 1 | 18 | 0 | 169 | 1 | 374 | 46 | 2 | 1 | true | false | false | false | false | false | low |
59,937,045 | Run php script on a Firebase service | <p>I need to send Firebase notifications from android device to another device. I know how to do it with java but it consider not a good practice to place private keys inside the android project in case someone hack it. So I need to do this through Firebase but I can't find any good reference to start with. </p>
<p>I ... | I need to send Firebase notifications from android device to another device. I know how to do it with java but it consider not a good practice to place private keys inside the android project in case someone hack it. So I need to do this through Firebase but I can't find any good reference to start with. I am already u... | php|android|firebase|web-services | 0 | 2020-01-27T18:43:00.330Z | 2,020 | 1 | 18 | 0 | 356 | 1 | 536 | 36 | 4 | 0 | false | false | false | false | false | false | zero |
59,937,055 | How to run this API in a Fragment? | <p>I'm just trying to run a Google Maps API following a tutorial I found on YouTube (<a href="https://www.youtube.com/watch?v=boyyLhXAZAQ" rel="nofollow noreferrer">https://www.youtube.com/watch?v=boyyLhXAZAQ</a>) and for some reason I don't know why but it works in the main activity but I can't get it working in my fr... | I'm just trying to run a Google Maps API following a tutorial I found on YouTube ( https://www.youtube.com/watch?v=boyyLhXAZAQ ) and for some reason I don't know why but it works in the main activity but I can't get it working in my fragment called "ElectionFragment.java" associated with "fragment_election.xml" Is it s... | android|google-maps|android-fragments | 0 | 2020-01-27T18:43:30.377Z | 2,020 | 1 | 18 | 0 | 87 | 1 | 515 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
59,937,086 | How Recompile Jar to dex using android phone? | <p>I have extracted Dex file using Apk editor And decomplied using Jadex Now I want to recompile Jar to Dex using android Phone
can any one help me ?</p> | I have extracted Dex file using Apk editor And decomplied using Jadex Now I want to recompile Jar to Dex using android Phone can any one help me ? | android|edit|dex|apktool|recompile | -1 | 2020-01-27T18:46:00.577Z | 2,020 | 1 | 18 | 0 | 754 | 1 | 146 | 45 | 5 | 0 | false | false | false | false | false | true | negative |
59,937,370 | Firebase storage download file to URI on Android | <p>I use Firebase storage to store images after they have been selected in the gallery or from the camera. I have a function <code>createUriForFile()</code> which I use to get an <code>URI</code> to store the image locally. When an image is selected it is stored in the correct place and, using glide and the same <code>... | I use Firebase storage to store images after they have been selected in the gallery or from the camera. I have a function createUriForFile() which I use to get an URI to store the image locally. When an image is selected it is stored in the correct place and, using glide and the same createUriForFile() as before, it is... | android|uri|firebase-storage|ioexception | 0 | 2020-01-27T19:06:25.883Z | 2,020 | 1 | 19 | 0 | 723 | 2 | 1,485 | 48 | 4 | 2 | true | false | false | false | false | false | zero |
59,937,391 | How to add Dynamic Intent to any Activity which is decided by the backend in Android? | <p>I am looking for a way to Add an Intent to a List of Items or Buttons or Banners and the Intent to the Activity is decided by the Server.</p>
<p>Take an Example. I have a List of Items(Suppose 4) with an Image that is coming from the Server. Each Item takes the user to a different Activity using Intent. I can pre-s... | I am looking for a way to Add an Intent to a List of Items or Buttons or Banners and the Intent to the Activity is decided by the Server. Take an Example. I have a List of Items(Suppose 4) with an Image that is coming from the Server. Each Item takes the user to a different Activity using Intent. I can pre-set the Inte... | java|android|android-intent | 0 | 2020-01-27T19:07:54.573Z | 2,020 | 1 | 19 | 0 | 101 | 2 | 822 | 85 | 3 | 1 | true | false | false | false | false | false | zero |
59,937,427 | else if loops do not stop when radio button is not checked, next activity opens anyway | <p>I'm quite new to coding in Android Studio and have produced a symptom checker that allows a user to check a series of yes and no radio buttons to answer questions. The problem is that even if one questions (yes and no) radio buttons are missed a 'toast' notification that I produced pops up but doesnt stop the user f... | I'm quite new to coding in Android Studio and have produced a symptom checker that allows a user to check a series of yes and no radio buttons to answer questions. The problem is that even if one questions (yes and no) radio buttons are missed a 'toast' notification that I produced pops up but doesnt stop the user from... | java|android | 0 | 2020-01-27T19:11:17.473Z | 2,020 | 1 | 19 | 0 | 81 | 2 | 781 | 86 | 2 | 1 | true | false | false | false | false | false | zero |
59,937,439 | Android Billing: changing the price of a subscription | <p>It's possible to change the price of an active subscription item, as described <a href="https://developer.android.com/google/play/billing/billing_subscriptions#change-price-sub" rel="nofollow noreferrer">here</a>. However, it is not clear to me whether the <strong>developer</strong> has to notify the user about the... | It's possible to change the price of an active subscription item, as described here . However, it is not clear to me whether the developer has to notify the user about the price change, and get their consent, or whether the developer can rely on Google Play to do this, as described here . My reading of this is that it'... | android|android-billing | 1 | 2020-01-27T19:11:57.767Z | 2,020 | 1 | 19 | 0 | 983 | 2 | 758 | 53 | 2 | 0 | false | false | false | false | false | false | low |
59,937,654 | Material edit text not rendering in android studio editor | <p>My android sudio design editor don't render material TextInputLayouts. I already tried invalidate caches. Every other element is rendering correct also other material elements</p>
<pre><code> <com.google.android.material.textfield.TextInputLayout
android:id="@+id/ti"
... | My android sudio design editor don't render material TextInputLayouts. I already tried invalidate caches. Every other element is rendering correct also other material elements [CODE] | android|android-studio|android-edittext|material-design|android-textinputlayout | 1 | 2020-01-27T19:27:41.520Z | 2,020 | 1 | 19 | 0 | 1,164 | 4 | 182 | 57 | 5 | 1 | true | false | false | false | false | false | low |
59,937,705 | Android studio Java.lang.OutOfMemoryError | <p>So, I've been creating my project and been using the emulator from android studio to run and test my application. Worked perfectly, but when testing on my android phone I have encountered a error:</p>
<pre><code>java.lang.OutOfMemoryError: Failed to allocate a 51321612 byte allocation with 16767424 free bytes
... | So, I've been creating my project and been using the emulator from android studio to run and test my application. Worked perfectly, but when testing on my android phone I have encountered a error: [CODE] I am trying to fix this but need some help. Here is my design code: [CODE] Here is the version of android studio tha... | android-studio | 0 | 2020-01-27T19:31:55.843Z | 2,020 | 1 | 19 | 0 | 343 | 2 | 467 | 41 | 1 | 3 | true | false | false | false | false | false | zero |
59,937,758 | not getting audio on a pjsip call out on android | <p>I have built the pjsua2 app and can get no audio on a dialed call. I am new to pjsip and cannot tell from the log if I missed anything. I do have a working demo using android's sip demo client that gives me hold music when i dial an extension on the asterisks switch. But the use case for my project is to leverage... | I have built the pjsua2 app and can get no audio on a dialed call. I am new to pjsip and cannot tell from the log if I missed anything. I do have a working demo using android's sip demo client that gives me hold music when i dial an extension on the asterisks switch. But the use case for my project is to leverage the p... | android|pjsip | 0 | 2020-01-27T19:36:23.800Z | 2,020 | 1 | 19 | 0 | 293 | 1 | 618 | 48 | 2 | 0 | false | false | false | false | false | false | zero |
59,937,922 | React JS- hide description div unless corresponding card is dealt | <p>React Question: I am trying to implement this method of activating divs based on whether or not a card gets dealt. So the plan is that there would be a SpellDescription in the div, and if the card count is greater than 0 (there are only one of each card) then the div would show. I was going to take this example:</... | React Question: I am trying to implement this method of activating divs based on whether or not a card gets dealt. So the plan is that there would be a SpellDescription in the div, and if the card count is greater than 0 (there are only one of each card) then the div would show. I was going to take this example: [CODE]... | javascript|android|reactjs|2d-games|playing-cards | 0 | 2020-01-27T19:49:57.357Z | 2,020 | 1 | 19 | 0 | 29 | 1 | 873 | 65 | 5 | 3 | true | false | false | false | false | false | zero |
59,938,031 | PUT Request with Android Studio | <p>I am trying to develop my own smart home app. For this I have to send a PUT request to my Raspberry.</p>
<p>I've already done it on my PC with this code:</p>
<pre><code>HttpResponse<String> response1 = Unirest.put("http://192.168.1.151:80/api/09107DA986/lights/1/state")
.header("Content-Type", "applica... | I am trying to develop my own smart home app. For this I have to send a PUT request to my Raspberry. I've already done it on my PC with this code: [CODE] Now I also try it on my cell phone with Android Studio, but I can't get it. I'm looking for a solution that is similar to my computer code. | java|android|http|put | 0 | 2020-01-27T19:56:59.250Z | 2,020 | 1 | 19 | 0 | 90 | 0 | 293 | 31 | 4 | 1 | true | true | false | false | false | false | zero |
59,938,108 | Without toast JSON response is not working why? | <p>I tried MYSQL, PHP JSON and VOlley request to log in to the user but when I do without toasting the final response user is not get logged in but when I use toast user gets logged in? why is it so</p>
<pre><code> StringRequest stringRequest = new StringRequest(Request.Method.POST,
URL_LOGIN,
... | I tried MYSQL, PHP JSON and VOlley request to log in to the user but when I do without toasting the final response user is not get logged in but when I use toast user gets logged in? why is it so [CODE] | java|android|json|android-volley | 0 | 2020-01-27T20:02:45.633Z | 2,020 | 1 | 20 | 0 | 41 | 0 | 202 | 47 | 4 | 1 | true | true | false | false | false | false | zero |
59,938,111 | Unable to understand ImageCaptureConfig.Builder() | <p>I am trying to implement CameraX using Java. I don't understand why they have used statements like <a href="https://developer.android.com/training/camerax/architecture#combine-use-cases" rel="nofollow noreferrer">this</a>.</p>
<pre><code>new ImageCaptureConfig.Builder().build();
new PreviewConfig.Builder().build();... | I am trying to implement CameraX using Java. I don't understand why they have used statements like this . [CODE] Whenever I try to implement, it shows compile error and Builder class remains in red color. Compile Error: [CODE] Import: [CODE] I did not find any inner class 'Builder' in ImageCaptureConfig.java file. Howe... | java|android|android-camerax | 1 | 2020-01-27T20:02:58.870Z | 2,020 | 1 | 20 | 0 | 894 | 1 | 634 | 49 | 3 | 3 | true | false | false | false | false | false | low |
59,938,134 | Trying to send a friend request | <p>I am trying to send a friend request with my code. I followed an easy tutorial on youtube. The code does not have any errors but its not working. Here the important part:<a href="https://i.stack.imgur.com/72qqg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/72qqg.png" alt="The task is not sucessf... | I am trying to send a friend request with my code. I followed an easy tutorial on youtube. The code does not have any errors but its not working. Here the important part: [CODE] Maybe the problem is that I am not using a RealTimeDatabase ? | java|android|firebase | 0 | 2020-01-27T20:04:05.900Z | 2,020 | 1 | 20 | 0 | 124 | 1 | 239 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
59,938,341 | Trying to display online pdf's in an android application (using kotlin) webview using google drive will occasionally produce errors | <p>I have been trying to fix this all day long. I am trying to display various pdf's saved online on a web view using google drive, so that it loads page by page, but doesn't download it locally.</p>
<p>Whenever I go into the webview to load the pdf it will usually work, but once every couple of tries I will get the f... | I have been trying to fix this all day long. I am trying to display various pdf's saved online on a web view using google drive, so that it loads page by page, but doesn't download it locally. Whenever I go into the webview to load the pdf it will usually work, but once every couple of tries I will get the following er... | android|android-studio|kotlin|webview|google-drive-api | 3 | 2020-01-27T20:19:08.733Z | 2,020 | 1 | 20 | 0 | 1,258 | 1 | 1,456 | 131 | 5 | 2 | true | false | false | false | false | false | low |
59,938,416 | How to extract text from element which is part of elements promise in appium | <p>I call this:</p>
<pre><code>const wd = require('wd')
const driver = await wd.promiseChainRemote("http://localhost:4723/wd/hub")
elements = await driver.elementsByAccessibilityId("commonElementsId")
</code></pre>
<p>and I received a promise object. My question is, how do I get a single element to which I can apply ... | I call this: [CODE] and I received a promise object. My question is, how do I get a single element to which I can apply text() method, so I get the text inside? I found a solution but it's for java. It looks like this: [CODE] This obviously doesn't work in javascript. Any ideas? | javascript|selenium-webdriver|appium-android | 0 | 2020-01-27T20:24:54.853Z | 2,020 | 1 | 20 | 0 | 579 | 1 | 279 | 76 | 3 | 2 | true | false | false | false | false | false | zero |
59,938,489 | How can I capture mouse wheel events in Android? | <p>I am writing an Android app, for use on a Chromebook, that uses a google map.</p>
<p>I can enable map zooming controls and I can also enable "pinch" gestures that will zoom the map in or out.</p>
<p>What I would like to do is allow the user's mouse wheel to zoom the map in and out as well.</p>
<p>Does Android hav... | I am writing an Android app, for use on a Chromebook, that uses a google map. I can enable map zooming controls and I can also enable "pinch" gestures that will zoom the map in or out. What I would like to do is allow the user's mouse wheel to zoom the map in and out as well. Does Android have a way to listen for mouse... | java|android|google-maps | -1 | 2020-01-27T20:31:58.233Z | 2,020 | 1 | 20 | 0 | 1,059 | 2 | 334 | 48 | 3 | 0 | false | false | false | false | false | true | negative |
59,938,698 | Setting input of Android TV using android App | <p>Currently, my HiSense Q8 android TV has a start up screen that has App, Youtube and Netflix icons. There is a series of clicks on the remote I need to go through to have it show input from HDMI input 1. What I'd like to have is an android app causes HDMI input 1 to be displayed on boot, without me need to use the re... | Currently, my HiSense Q8 android TV has a start up screen that has App, Youtube and Netflix icons. There is a series of clicks on the remote I need to go through to have it show input from HDMI input 1. What I'd like to have is an android app causes HDMI input 1 to be displayed on boot, without me need to use the remot... | android|input|selection|television | 0 | 2020-01-27T20:48:40.750Z | 2,020 | 1 | 20 | 0 | 1,743 | 2 | 1,114 | 45 | 4 | 7 | true | false | false | false | false | false | zero |
59,938,737 | How to detect that a user click on "open" inside the play store to launch my app? | <p>How to detect that a user clicks on the button "open" inside the play store to launch my app (when the app is already installed) instead of launching directly the app by tapping its icon inside android main screen? </p> | How to detect that a user clicks on the button "open" inside the play store to launch my app (when the app is already installed) instead of launching directly the app by tapping its icon inside android main screen? | android|google-play | 0 | 2020-01-27T20:52:07.873Z | 2,020 | 1 | 20 | 0 | 46 | 1 | 214 | 81 | 2 | 0 | false | false | false | false | false | false | zero |
59,938,818 | I need to remove the selected object from the listview from the arraylist | <p>The app has a contextual menu and a listview. If I give a listview line I skip the menu and I can delete it. But how do I get what object it is or what position it has in the arraylist?</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private ArrayList datos = new ArrayList();
private ListView l... | The app has a contextual menu and a listview. If I give a listview line I skip the menu and I can delete it. But how do I get what object it is or what position it has in the arraylist? [CODE] As much as I search on the internet I can't find anything that helps me, I've tried to getposition, getitemlongcicklistener and... | java|android-studio | 0 | 2020-01-27T20:58:30.253Z | 2,020 | 1 | 20 | 0 | 22 | 0 | 406 | 73 | 2 | 1 | true | true | false | false | false | false | zero |
59,938,863 | switching an image widget in timeline | <p>I want to create an android widget with switching image with time delay. I have no idea about how to do this. Should I create Thread in methood onUpdate?
this example of my layout.xml file:</p>
<pre><code> <ImageButton
android:id="@+id/imageViewWGT"
android:background="@drawable/dog" />
</c... | I want to create an android widget with switching image with time delay. I have no idea about how to do this. Should I create Thread in methood onUpdate? this example of my layout.xml file: [CODE] and this is what I want to known how to do correct: [CODE] | android|android-studio|android-widget|delay | 0 | 2020-01-27T21:02:14.773Z | 2,020 | 1 | 21 | 0 | 54 | 3 | 255 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
59,938,970 | How to communicate between two fragments | <p>I'm trying to create an Android app that will have two fragments. One containing a list of various cities and the other containing details about these cities. I'm new at mobile dev and am having a hard time figuring out how to communicate between them. So far I have the list of cities stored in a fragment but still ... | I'm trying to create an Android app that will have two fragments. One containing a list of various cities and the other containing details about these cities. I'm new at mobile dev and am having a hard time figuring out how to communicate between them. So far I have the list of cities stored in a fragment but still nee... | java|android|android-fragments | 0 | 2020-01-27T21:11:43.637Z | 2,020 | 1 | 21 | 0 | 91 | 3 | 601 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
59,939,112 | Get individual Id for every item in list | <p>I have a list view with one item for this moment. </p>
<pre><code><ContentPage.Content>
<StackLayout>
<ListView x:Name="MyListView"
CachingStrategy="RecycleElement"
SelectionMode="Single">
<ListView.ItemTemplate>
<DataTemplate>
... | I have a list view with one item for this moment. [CODE] I want to get an id or name or something who can individually get this item in my viewModel. For example If I have an id system on this item : [CODE] I'm looking for this kind of thing. I checked google but I didn't found something for me. | c#|xamarin|xamarin.forms|xamarin.android | 0 | 2020-01-27T21:24:39.180Z | 2,020 | 1 | 21 | 0 | 572 | 1 | 296 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
59,939,166 | add constraints so that each text view is one below the other | <p>I am trying to </p>
<ol>
<li>create a for loop and create text views on the go.</li>
<li>created a list of text views to hold all the text views.</li>
<li><p>finally add constraints so that each text view is one below the other.</p>
<p>constraintSet.connect(textViewsList.get(i-1).getId(), ConstraintSet.TOP,
textV... | I am trying to create a for loop and create text views on the go. created a list of text views to hold all the text views. finally add constraints so that each text view is one below the other. constraintSet.connect(textViewsList.get(i-1).getId(), ConstraintSet.TOP, textViewsList.get(i-2).getId(), ConstraintSet.BOTTOM,... | java|android|android-studio|android-constraintlayout | 0 | 2020-01-27T21:29:07.833Z | 2,020 | 1 | 21 | 0 | 136 | 1 | 417 | 61 | 4 | 1 | true | false | false | false | false | false | zero |
59,939,255 | Which browsers support intent scheme URL ("intent:mydata1#Intent;action=myaction1;type=text/plain;end";) | <p>Which browsers support intent scheme URL like <code>"intent://" + data + "#Intent;scheme=" + scheme + ";package=" + package_name + ";S.browser_fallback_url=" + store_link_encoded + ";S.market_referrer=" + referrer + ";end"</code></p> | Which browsers support intent scheme URL like "intent://" + data + "#Intent;scheme=" + scheme + ";package=" + package_name + ";S.browser_fallback_url=" + store_link_encoded + ";S.market_referrer=" + referrer + ";end" | android|android-intent|google-play | 1 | 2020-01-27T21:37:05.600Z | 2,020 | 1 | 21 | 0 | 98 | 0 | 216 | 104 | 3 | 0 | false | true | false | false | false | false | low |
59,939,265 | Android Picasso callback when using target | <p>I have a method that creates targets for Picasso like this:</p>
<pre><code>private void createTargets() {
Target target;
for (Id id : itemids) {
target = picassoImageTarget(getContext(), "imageDir", id.getId() + ".png");
imgTargets.add(new ImgTarget(id.getId(), target));
}
}
</code></pr... | I have a method that creates targets for Picasso like this: [CODE] and then I download images to disk this way: [CODE] it does what I want it to do, however I am unable to get a callback, because the constructor with callback exists only when using ImageView: Can someone help me find a solution to this? I don't underst... | java|android|picasso | 0 | 2020-01-27T21:37:49.340Z | 2,020 | 1 | 21 | 0 | 322 | 1 | 506 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
59,939,280 | How to write Xamarin.UITest case for Software Back Button on Android | <p>I am writing UITest cases for my Xamarin forms project. Now, i am stuck at Navigation Part. I know using "app.Back()" we can navigate back but on our Project Hardware Back Button is disabled. Is there any way we can use Navigation Bar "Back button" ? </p>
<p>I tried to get elements in Page by using following code "... | I am writing UITest cases for my Xamarin forms project. Now, i am stuck at Navigation Part. I know using "app.Back()" we can navigate back but on our Project Hardware Back Button is disabled. Is there any way we can use Navigation Bar "Back button" ? I tried to get elements in Page by using following code "AppResult[] ... | xamarin|xamarin.forms|xamarin.android|xamarin.uitest | 0 | 2020-01-27T21:38:56.670Z | 2,020 | 1 | 21 | 0 | 799 | 1 | 443 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
59,939,304 | how do i query firebase based on age but get the ID as well? | <p><a href="https://i.stack.imgur.com/KEdXp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEdXp.png" alt="enter image description here"></a></p>
<p>this is my database. how do i query them base on age (less then or more then) but for just 1 user (example = <strong>one</strong> random user based on... | this is my database. how do i query them base on age (less then or more then) but for just 1 user (example = one random user based on age less then ##) and then get the ID of user result ? | java|android|firebase-realtime-database | 1 | 2020-01-27T21:40:40.627Z | 2,020 | 1 | 21 | 0 | 71 | 0 | 188 | 60 | 3 | 0 | false | true | false | false | false | false | low |
59,939,372 | Execute android app in the background without activity | <p>I'm trying to create an application that runs a service in the second plan (background), like a service. Initially, for testing, I just implemented a code responsible for vibrating the smartphone, every 5 seconds.</p>
<p>Guided by the official Android documentation (<a href="https://developer.android.com/guide/comp... | I'm trying to create an application that runs a service in the second plan (background), like a service. Initially, for testing, I just implemented a code responsible for vibrating the smartphone, every 5 seconds. Guided by the official Android documentation ( https://developer.android.com/guide/components/services ), ... | java|android|background-process|intentservice | 0 | 2020-01-27T21:46:13.893Z | 2,020 | 1 | 21 | 0 | 335 | 0 | 1,059 | 54 | 4 | 3 | true | true | false | false | false | false | zero |
59,939,574 | How do I get the @user from firebase user from Twitter | <p>I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @
Any ideas?</p>
<p>I have tried this</p>
<pre><code>FirebaseAuth.getInstance().getCurrentUser().getDisplayName()
</code></pre>
<p>But it doesnt give me the @</p> | I am trying to access the Twitter username after logging in via firebase to Twitter, but the .getDisplayName method returns the user's name, not the @ Any ideas? I have tried this [CODE] But it doesnt give me the @ | android|firebase|twitter|firebase-authentication | 0 | 2020-01-27T22:06:19.163Z | 2,020 | 1 | 22 | 0 | 94 | 1 | 214 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
59,939,685 | Beginner here - RelativeLayout in Android Studio not working as expected | <p>I am simply trying to put two Edit Text views on the screen. One I want to alight with the left side, the other with the right side. However, in the Layout Editor, it shows my left text being aligned with the left side of the screen with a small buffer (as I would want), but my right text is all the way touching the... | I am simply trying to put two Edit Text views on the screen. One I want to alight with the left side, the other with the right side. However, in the Layout Editor, it shows my left text being aligned with the left side of the screen with a small buffer (as I would want), but my right text is all the way touching the ri... | android|android-studio|android-layout | 0 | 2020-01-27T22:17:03.523Z | 2,020 | 1 | 22 | 0 | 103 | 4 | 618 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
59,939,752 | Retrofit2 - Upload image to server give an Internal Server Error as response in android studio | <p>I am trying to send image files from my android app to a back end server. On Postman, images are sent and response code:200 is received.<a href="https://i.stack.imgur.com/6i6aN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6i6aN.png" alt="enter image description here"></a> </p>
<p>However, tryi... | I am trying to send image files from my android app to a back end server. On Postman, images are sent and response code:200 is received. However, trying to send images from my android app using retrofit, I keep receiving response code:500 Internal Server Error. Here is my code: [CODE] The NetworkClient [CODE] And then ... | java|android|node.js|retrofit|retrofit2 | 2 | 2020-01-27T22:22:30.360Z | 2,020 | 1 | 22 | 0 | 2,154 | 3 | 479 | 94 | 5 | 3 | true | false | false | false | false | false | low |
59,939,802 | How do I make RxJava call onErrorReturn() and still execute onError() | <p>When I call the Retrofit method <code>GetTodoRepository.fetchTodo()</code> from <code>MainViewModel</code> and call ends in a failure or any non-success result, I would like to let RxJava to both do <code>onErrorReturn()</code> and <code>onError()</code> so I can return a cached object in that case, but still notify... | When I call the Retrofit method GetTodoRepository.fetchTodo() from MainViewModel and call ends in a failure or any non-success result, I would like to let RxJava to both do onErrorReturn() and onError() so I can return a cached object in that case, but still notify MainViewModel that an error happend, so I can show err... | java|android|retrofit|rx-java|rx-java2 | 0 | 2020-01-27T22:27:54.517Z | 2,020 | 1 | 22 | 0 | 1,121 | 2 | 461 | 69 | 5 | 2 | true | false | false | false | false | false | zero |
59,939,879 | Animating a view in a fragment | <p>I'm trying to animate an imageview in a fragment. I tried by creating a XML animation and also by doing it in Kotlin, but everytime I run the app, it crashes.</p>
<pre><code>class WelcomeFragment : Fragment() {
private lateinit var binding: FragmentWelcomeBinding
private lateinit var zoomAnimation: Animation
priva... | I'm trying to animate an imageview in a fragment. I tried by creating a XML animation and also by doing it in Kotlin, but everytime I run the app, it crashes. [CODE] } First I tried using the fun zoomAnimation, after the fun scaler. Does this has something to do with the fact that I'm animating inside a fragment? Becau... | android|android-studio|android-fragments|kotlin|android-animation | 0 | 2020-01-27T22:36:50.070Z | 2,020 | 1 | 22 | 0 | 221 | 2 | 389 | 30 | 5 | 1 | true | false | false | false | false | false | zero |
59,939,902 | To Create data in the Firebase Database | <p>Why data in the firebase are created this way and not in the normal way</p>
<p><img src="https://i.stack.imgur.com/EjfTV.png" alt="enter image description here"></p>
<p><img src="https://i.stack.imgur.com/iNube.png" alt="enter image description here"></p>
<p>this is my code</p>
<pre><code>
ProductRef.child(IdMes... | Why data in the firebase are created this way and not in the normal way this is my code [CODE] | android|firebase|firebase-realtime-database | 0 | 2020-01-27T22:39:04.190Z | 2,020 | 1 | 22 | 0 | 28 | 1 | 94 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
59,939,966 | MaterialAlertDialogBuilder doesn't display margins for title and message | <p>I'm not really sure whether this is a bug, but I haven't found anyone online who has experienced this issue, so I wanted to try here first. </p>
<p>I'm trying to call a simple Material Alert Dialog in my Fragment with the following code:</p>
<pre><code>MaterialAlertDialogBuilder(context)
.setTitle("Dialog"... | I'm not really sure whether this is a bug, but I haven't found anyone online who has experienced this issue, so I wanted to try here first. I'm trying to call a simple Material Alert Dialog in my Fragment with the following code: [CODE] The context is the basic getContext() . However what I get displayed is the followi... | android|kotlin|android-alertdialog|android-styles|material-components-android | 3 | 2020-01-27T22:43:42.463Z | 2,020 | 1 | 22 | 0 | 304 | 0 | 619 | 72 | 5 | 1 | true | true | false | false | false | false | low |
59,940,058 | Android - if i start the camera - assignment detected data race | <p>When i start the camera with this Code:</p>
<pre><code>Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
// Ensure that there's a camera activity to handle the intent
if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
// Create the File where the ... | When i start the camera with this Code: [CODE] I get this error: [CODE] Does anyone know what the error message means and how I can fix the problem? | android|camera|signals|sigabrt | 0 | 2020-01-27T22:54:07.780Z | 2,020 | 1 | 22 | 0 | 190 | 0 | 148 | 63 | 4 | 2 | true | true | false | false | false | false | zero |
59,940,096 | Unable to import PreviewConfig class from package androidx.camera.core | <p>I am trying to use camerax api for a camera application,but i am facing a problem.
The class PreviewConfig is unable to resolve.
This is my build.gradle(app) file</p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
app... | I am trying to use camerax api for a camera application,but i am facing a problem. The class PreviewConfig is unable to resolve. This is my build.gradle(app) file [CODE] MainActivity.class file is [CODE] in the above code line,"import androidx.camera.core.PreviewConfig;" is not resolving. | android|android-studio|android-camerax | 3 | 2020-01-27T22:58:25.657Z | 2,020 | 1 | 22 | 0 | 5,299 | 3 | 289 | 70 | 3 | 2 | true | false | true | false | false | false | low |
59,940,110 | CardInputWidget is not animating when wrong details are entered | <p>CardInputWidget is not <a href="https://stripe.com/img/docs/mobile/android/android-card-input-widget.mp4" rel="nofollow noreferrer">animating</a> when wrong details are entered. It's mentioned in the <a href="https://stripe.dev/stripe-android/com/stripe/android/view/CardInputWidget.html" rel="nofollow noreferrer">do... | CardInputWidget is not animating when wrong details are entered. It's mentioned in the documentation site that it handles animation on its own. At least if I could get the error message, I could show in an alert box if not for the animation. I couldn't find answers. Please help with the issue. This is my code [CODE] Th... | java|android|kotlin|stripe-payments | 0 | 2020-01-27T23:00:05.093Z | 2,020 | 1 | 23 | 0 | 439 | 1 | 347 | 63 | 4 | 2 | true | false | false | false | false | false | zero |
59,940,125 | Get additional geolocation data (GnssStatus) in NativeScript application | <p>In my NativeScript app I need to get additional geolocation info like <strong>satellite count</strong> or <strong>satellite ids</strong> which isn't provided by nativescript-geolocation plugin.</p>
<p>I am trying to use GnssStatus class from android.location in NativeScript app with the following:</p>
<pre><code>c... | In my NativeScript app I need to get additional geolocation info like satellite count or satellite ids which isn't provided by nativescript-geolocation plugin. I am trying to use GnssStatus class from android.location in NativeScript app with the following: [CODE] After that I get an error: ERROR Error: JNI Exception o... | geolocation|nativescript|android-gnss | 0 | 2020-01-27T23:02:35.140Z | 2,020 | 1 | 23 | 0 | 116 | 1 | 413 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
59,940,207 | Bottom Navigation View with activities not working in Kotlin | <p>I am new to Kotlin, so I am having trouble on how to solve this.</p>
<p>I have created a bottom navigation view that I am using to switch between activities. When I call the BottomNavigationView.OnNavigationItemSelectedListener my app crashes and I dont know why. Can anyone please help?</p>
<p>I have searched, but... | I am new to Kotlin, so I am having trouble on how to solve this. I have created a bottom navigation view that I am using to switch between activities. When I call the BottomNavigationView.OnNavigationItemSelectedListener my app crashes and I dont know why. Can anyone please help? I have searched, but I only find answer... | android-studio|kotlin|nullpointerexception|bottomnavigationview | 1 | 2020-01-27T23:11:40.107Z | 2,020 | 1 | 23 | 0 | 5,440 | 2 | 3,266 | 60 | 4 | 2 | true | false | true | false | false | false | low |
59,940,322 | C# Connecting to MySql DB through android device | <p>I've just working with c# and mysql and have ran into a problem. I've created a mysql db(remote access) using mysql workbench. I've been using visual studio to write the code(c#), xamarin.forms. The aim is to connect the database on multiple platforms. I'm trying to make it connect through windows(uwp) and android, ... | I've just working with c# and mysql and have ran into a problem. I've created a mysql db(remote access) using mysql workbench. I've been using visual studio to write the code(c#), xamarin.forms. The aim is to connect the database on multiple platforms. I'm trying to make it connect through windows(uwp) and android, it ... | c#|android|mysql|database|xamarin.forms | 0 | 2020-01-27T23:26:26.520Z | 2,020 | 1 | 23 | 0 | 132 | 0 | 619 | 48 | 5 | 1 | true | true | false | false | false | false | zero |
59,940,427 | Why does my UI Button works in editor but not in android after being built? | <p>I have an annoying problem with my project on Unity2D. I have created a shop GUI, with buttons to purchase hats.
However, 4 out of the 6 hats buttons are working for some reason in the android build. Whereas for some reason all of them work in editor mode...
They all are in the same Canvas.</p>
<p>For some reason, ... | I have an annoying problem with my project on Unity2D. I have created a shop GUI, with buttons to purchase hats. However, 4 out of the 6 hats buttons are working for some reason in the android build. Whereas for some reason all of them work in editor mode... They all are in the same Canvas. For some reason, I moved the... | android|unity3d|canvas|game-engine | 0 | 2020-01-27T23:38:05.233Z | 2,020 | 1 | 23 | 0 | 1,232 | 1 | 1,042 | 75 | 4 | 0 | false | false | false | false | false | false | zero |
59,940,517 | error: cannot find symbol variable itemsAdapter | <p>I'm following a tutorial and I can't get my project to successfully run. I keep getting the error: cannot find symbol variable itemsAdapter, even though my class is in the same folder. Any ideas? Thank you
<a href="https://i.stack.imgur.com/rXk67.png" rel="nofollow noreferrer">MainActivity.java</a>
<a href="https://... | I'm following a tutorial and I can't get my project to successfully run. I keep getting the error: cannot find symbol variable itemsAdapter, even though my class is in the same folder. Any ideas? Thank you MainActivity.java itemsAdapter.java MainActivity.java: [CODE] ItemsAdapter.java: package com.example.simpletodo; [... | java|android|android-studio | 0 | 2020-01-27T23:49:02.233Z | 2,020 | 1 | 23 | 0 | 488 | 1 | 325 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
59,940,750 | Use back button instead of icon to register user input in Android | <p>(first-timer here, so apologies for protocol errors...)</p>
<p>I have an app where the user can edit an item, then click on an icon to have the edits saved. Now, I would like to have the edits saved when the "back" button is pressed.</p>
<p>I tried using onBackPressed, but that didn't help.</p>
<p>Some gory detai... | (first-timer here, so apologies for protocol errors...) I have an app where the user can edit an item, then click on an icon to have the edits saved. Now, I would like to have the edits saved when the "back" button is pressed. I tried using onBackPressed, but that didn't help. Some gory details... When the icon is clic... | android|android-intent|back-button|onactivityresult|onbackpressed | 0 | 2020-01-28T00:26:28.140Z | 2,020 | 1 | 0 | 1 | 41 | 0 | 820 | 65 | 5 | 0 | false | true | false | false | false | false | zero |
59,940,914 | setText() crashing the activity | <p>I'm very new to the android/java programming scene and am at the last stage of finalizing my Symptom Checker but have hit a snag yet again. A user is asked questions and can answer them with the provided yes/no radio buttons, there is a pair for each question. The problem I'm facing is that I want the 'textView' fou... | I'm very new to the android/java programming scene and am at the last stage of finalizing my Symptom Checker but have hit a snag yet again. A user is asked questions and can answer them with the provided yes/no radio buttons, there is a pair for each question. The problem I'm facing is that I want the 'textView' found ... | java|android | 0 | 2020-01-28T00:55:00.573Z | 2,020 | 1 | 0 | 1 | 70 | 3 | 1,265 | 31 | 2 | 3 | true | false | false | false | false | false | zero |
59,940,997 | Failing to update the table based on checked value | <p>I've a <code>listview</code> from the database with checkbox. My objectives is to insert the checked <code>listview</code> into a table and update another table based on the checked <code>listview</code>. Unfortunately, my SQL query did not work in the section. </p>
<p>Here is my code to insert the checked listview... | I've a listview from the database with checkbox. My objectives is to insert the checked listview into a table and update another table based on the checked listview . Unfortunately, my SQL query did not work in the section. Here is my code to insert the checked listview into BRTR table and update rows in WORKTR table b... | android-studio|checkbox|android-asynctask|sql-update|jtds | 0 | 2020-01-28T01:08:24.237Z | 2,020 | 1 | 1 | 1 | 47 | 0 | 480 | 50 | 5 | 1 | true | true | false | false | false | false | zero |
59,941,114 | How to add one resume event for entire Cordova app? | <p>I have a Cordova app with numerous HTML pages (probably a bad architecture, I know). Is there any way I can have one resume event that covers the entire app?</p>
<p>I want to know when the app resumes. I have added the resume event to one page and it works fine:</p>
<pre><code> document.addEventListener("resume"... | I have a Cordova app with numerous HTML pages (probably a bad architecture, I know). Is there any way I can have one resume event that covers the entire app? I want to know when the app resumes. I have added the resume event to one page and it works fine: [CODE] I would also have to add some html to each page - what is... | android|ios|cordova|events | 0 | 2020-01-28T01:32:20.620Z | 2,020 | 1 | 1 | 1 | 473 | 1 | 452 | 51 | 4 | 1 | true | false | false | false | false | false | zero |
59,941,169 | WorkManager WorkName table not being cleared after jobs complete | <p>I'm using WorkManager by calling <code>WorkManager.enqueueUniqueWork(String, ExistingWorkPolicy, OneTimeWorkRequest)</code>, I examined on the db on disk <code>androix.work.workdb</code> and noticed in the <code>WorkName</code> table there is an entry for each job I started. They aren't removed after the work comple... | I'm using WorkManager by calling WorkManager.enqueueUniqueWork(String, ExistingWorkPolicy, OneTimeWorkRequest) , I examined on the db on disk androix.work.workdb and noticed in the WorkName table there is an entry for each job I started. They aren't removed after the work completed. Is this normal? Will they automatica... | android|android-workmanager | 1 | 2020-01-28T01:44:27.550Z | 2,020 | 1 | 1 | 1 | 214 | 1 | 382 | 64 | 2 | 0 | false | false | false | false | false | false | low |
59,941,257 | java.lang.IllegalStateException: Fragment already added : | <p>so I have a BottomNavigation that have another TabLayout in some menu, when i click that menu it got me error like a title.
here's my code</p>
<p><strong>FavoriteFragment</strong></p>
<p>which contain fragment in BottomNavigation</p>
<pre><code>public class FavoriteFragment extends Fragment {
public FavoriteFrag... | so I have a BottomNavigation that have another TabLayout in some menu, when i click that menu it got me error like a title. here's my code FavoriteFragment which contain fragment in BottomNavigation [CODE] And i got pageradapter for my ViewPager SectionsPagerAdapter [CODE] And this is some fragment in TabLayout which g... | java|android|fragment|bottomnavigationview | 0 | 2020-01-28T02:00:24.303Z | 2,020 | 1 | 2 | 1 | 385 | 1 | 483 | 57 | 4 | 3 | true | false | false | false | false | false | zero |
59,941,362 | How do I get an Image from latitude and longitude using Google Places Api in Android? | <p>I'm trying to get an image from latitude and longitude information using Google Place API. Is this possible?</p> | I'm trying to get an image from latitude and longitude information using Google Place API. Is this possible? | android|google-places-api | 0 | 2020-01-28T02:16:42.960Z | 2,020 | 1 | 2 | 1 | 441 | 1 | 108 | 85 | 2 | 0 | false | false | false | false | false | false | zero |
59,941,543 | Create Junit test for Void method | <p>I am learning unit testing, I have some confusion, I have one Void method, Can you please explain to me how can I create a unit test for this method.</p>
<pre><code>public void eat(Food food){
mAmountOfEatenFood += food.eatFood(mNeededAmountOfFood - mAmountOfEatenFood);
if(mAmountOfEatenFood == mNeededAmountOfFood... | I am learning unit testing, I have some confusion, I have one Void method, Can you please explain to me how can I create a unit test for this method. [CODE] } | java|android|unit-testing|mockito|junit4 | 1 | 2020-01-28T02:45:35.957Z | 2,020 | 1 | 2 | 1 | 161 | 1 | 158 | 33 | 5 | 1 | true | false | false | false | false | false | low |
59,941,639 | How to wait and execute code after AsyncHttpClient() Done? | <p>I want to take data from API using AsyncHttpClient(), after that, I show the data to recycle view. but when trying to debug my code is run show the data to recycle view which is no data because not yet finish setData using AsyncHttpClient(). my question is how to run setData recycle view adapter after my setLeague i... | I want to take data from API using AsyncHttpClient(), after that, I show the data to recycle view. but when trying to debug my code is run show the data to recycle view which is no data because not yet finish setData using AsyncHttpClient(). my question is how to run setData recycle view adapter after my setLeague is f... | android|kotlin|asynchttpclient | 0 | 2020-01-28T03:02:36.200Z | 2,020 | 1 | 3 | 1 | 159 | 0 | 517 | 58 | 3 | 2 | true | true | false | false | false | false | zero |
59,941,727 | My app doesnt run in the Android simulator | <p>So I'm developing a chatting app, and I have been testing it in an android simulator (the pixel 3 option). But now I'm trying to make it run in another emulator (this time I choose a pixel 2) and doesn't run.</p>
<p><strong><em>I will pass some of the code, including the MainActivity.</em></strong></p>
<p><em>This... | So I'm developing a chatting app, and I have been testing it in an android simulator (the pixel 3 option). But now I'm trying to make it run in another emulator (this time I choose a pixel 2) and doesn't run. I will pass some of the code, including the MainActivity. This is from the LogCat [CODE] 2020-01-28 01:47:57.45... | android|android-studio|android-emulator | 0 | 2020-01-28T03:19:53.010Z | 2,020 | 1 | 3 | 1 | 85 | 2 | 737 | 42 | 3 | 7 | true | false | false | false | false | false | zero |
59,941,734 | OpenCV fonts in Android Studio | <p>Core.FONT_HERSHEY_SIMPLEX
Give me an error saying that such a symbol does not exist there, thus my question is how can i reference to provided fonts from OpenCv?</p> | Core.FONT_HERSHEY_SIMPLEX Give me an error saying that such a symbol does not exist there, thus my question is how can i reference to provided fonts from OpenCv? | android|opencv | 0 | 2020-01-28T03:20:45.767Z | 2,020 | 1 | 3 | 1 | 112 | 1 | 161 | 30 | 2 | 0 | false | false | false | false | false | false | zero |
59,941,977 | WorkManager: Do you need to manually dispose of Observables in a Worker? | <p>Lets say in your <code>doWork()</code> method you have an Observable that emits the progress of a download, do you need to manually dispose of this Observable to avoid memory leaks? And thus use RxWorker?</p>
<p>According to this <a href="https://stackoverflow.com/questions/41826478/do-i-have-to-unsubscribe-from-co... | Lets say in your doWork() method you have an Observable that emits the progress of a download, do you need to manually dispose of this Observable to avoid memory leaks? And thus use RxWorker? According to this Do I have to unsubscribe from completed observable? "On the JVM, an anonymous inner class maintains a referenc... | android|android-workmanager | 1 | 2020-01-28T04:04:25.327Z | 2,020 | 1 | 4 | 1 | 287 | 1 | 440 | 72 | 2 | 0 | false | false | false | false | false | false | low |
59,941,994 | How to test @Model data classes from Jetpack Compose? | <p>I'm trying to test a mapper function between my UI layer and my Domain layer. </p>
<p>But I get an exception thrown of <code>java.lang.IllegalStateException: Not in a frame</code></p>
<p>This exception goes away if I change my UIModel to have a <code>val</code> instead of a <code>var</code> but then it is useless ... | I'm trying to test a mapper function between my UI layer and my Domain layer. But I get an exception thrown of java.lang.IllegalStateException: Not in a frame This exception goes away if I change my UIModel to have a val instead of a var but then it is useless with the model updates that Jetpack Compose offers. Is ther... | android|testing|kotlin|android-jetpack-compose | 2 | 2020-01-28T04:06:51.083Z | 2,020 | 1 | 4 | 1 | 789 | 1 | 363 | 53 | 4 | 1 | true | false | false | false | false | false | low |
59,941,995 | Error react-native run-android app:instalDebug | <p>I have a problem here, which is when I run the react-native run-android command and reach the app: install Debug, I get an error which is:</p>
<pre><code>Execution failed for task ': app: install Debug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
</code></pre>
<p>I do... | I have a problem here, which is when I run the react-native run-android command and reach the app: install Debug, I get an error which is: [CODE] I do not know why the error could arise, Hopefully someone can give reasons and solutions to why the error can occur. Thank you very much | android|reactjs|compiler-errors|react-native | 0 | 2020-01-28T04:07:20.463Z | 2,020 | 1 | 4 | 1 | 76 | 2 | 283 | 46 | 4 | 1 | true | false | false | false | false | false | zero |
59,942,103 | Store Login state in SharedPreference | <p>I'm making the android app and i use the registration, login and logout screen. What I need is to save the login state. If the user logins once then he will never login again until his logout. I use <a href="https://developer.android.com/reference/android/content/SharedPreferences" rel="nofollow noreferrer">SharedPa... | I'm making the android app and i use the registration, login and logout screen. What I need is to save the login state. If the user logins once then he will never login again until his logout. I use SharedPareference but I face the many problems. There is my code: [CODE] Can you please give some advices why does my cod... | java|android|sharedpreferences | 0 | 2020-01-28T04:25:15.723Z | 2,020 | 1 | 4 | 1 | 84 | 1 | 335 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
59,942,157 | What it the alternative way to "ApnSetting.Builder" for the below android API 28 levels? | <p>I'm trying to create a mobile application to add APN(Access Point Network) into mobile application. Then I used ApnSetting.Builder() according to the android documentation follows.</p>
<pre><code>package com.example.myapplication;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
... | I'm trying to create a mobile application to add APN(Access Point Network) into mobile application. Then I used ApnSetting.Builder() according to the android documentation follows. [CODE] But ApnSetting.Builder() was added in the Android 9(API level 28). It not support to the below in API 28. [CODE] But I need to creat... | android | 2 | 2020-01-28T04:32:18.543Z | 2,020 | 1 | 4 | 1 | 760 | 1 | 533 | 88 | 1 | 2 | true | false | false | false | false | false | low |
59,942,189 | Any suggestions on creating xxhdpi,xxxhdpi watches in the android emulator? | <p>Since I don't have watches with xxhdpi and xxxhdpi,I've tried manually configuring an AVD to support both the resolution watches in emulator.</p>
<p>I'm trying to create a new profile for this(Parameters are added in attached screenshot)</p>
<p>But It is creating 480*480 hdpi watch device.As per DisplayMetrics pro... | Since I don't have watches with xxhdpi and xxxhdpi,I've tried manually configuring an AVD to support both the resolution watches in emulator. I'm trying to create a new profile for this(Parameters are added in attached screenshot) But It is creating 480*480 hdpi watch device.As per DisplayMetrics provided by android, 4... | android-emulator|wear-os|watch|android-wear-2.0 | 0 | 2020-01-28T04:35:13.013Z | 2,020 | 1 | 4 | 1 | 123 | 1 | 343 | 75 | 4 | 0 | false | false | false | false | false | false | zero |
59,942,217 | how to update ArrayList <Bitmap> after photo deletion? | <p>So I am populating my Bitmap ArrayList (photos) by adding images through gallery and camera photos and then saves the array of names into database and images into the storage. In the ImageAdapter class if I remove an image from the array list then without saving the list it successfully removes the image from the st... | So I am populating my Bitmap ArrayList (photos) by adding images through gallery and camera photos and then saves the array of names into database and images into the storage. In the ImageAdapter class if I remove an image from the array list then without saving the list it successfully removes the image from the stora... | java|android|bitmap | 0 | 2020-01-28T04:39:17.943Z | 2,020 | 1 | 4 | 1 | 57 | 1 | 616 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
59,942,308 | How to sum older data with new one in firebase | <p>I have table named poin and kegiatan, when I input score to kegiatan, its input to poin too, the problem is when I input score to poin and sum it with older data in poin, its will looping over and over. what should I do? Btw, this is how my database and code for input score to poin look like.</p>
<p><code>kegiatan ... | I have table named poin and kegiatan, when I input score to kegiatan, its input to poin too, the problem is when I input score to poin and sum it with older data in poin, its will looping over and over. what should I do? Btw, this is how my database and code for input score to poin look like. kegiatan + user id - poin ... | java|android|firebase|firebase-realtime-database | 1 | 2020-01-28T04:51:14.950Z | 2,020 | 1 | 4 | 1 | 62 | 1 | 445 | 46 | 4 | 1 | true | false | false | false | false | false | low |
59,942,328 | What do I do after integrating Google Pay API? | <p>I have successfully intergrated the Google Pay API into my android app, and i am confused where to go from here. I understand i need to fill out this form "<a href="https://services.google.com/fb/forms/googlepayAPIenable/" rel="nofollow noreferrer">https://services.google.com/fb/forms/googlepayAPIenable/</a>" but I ... | I have successfully intergrated the Google Pay API into my android app, and i am confused where to go from here. I understand i need to fill out this form " https://services.google.com/fb/forms/googlepayAPIenable/ " but I am having some difficulties I don't understand what is payment processor or how to go about implem... | java|android|google-pay | 1 | 2020-01-28T04:53:07.593Z | 2,020 | 1 | 4 | 1 | 99 | 1 | 526 | 46 | 3 | 0 | false | false | false | false | false | false | low |
59,942,331 | 'Android property not found.' error while building Flutter aar | <p>How to fix <code>Android property not found</code> error while <code>flutter build aar</code>?</p>
<pre><code>FAILURE: Build failed with an exception.
* Where:
Initialization script '/Users/username/sdk/flutter/packages/flutter_tools/gradle/aar_init_script.gradle' line: 15
* What went wrong:
Android property not fo... | How to fix Android property not found error while flutter build aar ? [CODE] | android|gradle|flutter|aar | 4 | 2020-01-28T04:53:34.187Z | 2,020 | 1 | 4 | 1 | 1,283 | 3 | 76 | 62 | 4 | 1 | true | false | false | false | false | false | low |
59,942,381 | Accessing local variable in lambda in Kotlin | <p>I want to save data acquired from Volley, But lambda used in VolleyRequest function(which gets json data from server) blocks it.</p>
<p>How should I change local variable that is in outside of lambda?
Thanks in advance.</p>
<pre><code>class ConDataforReturn( val title:String , val imgDataList: ArrayList<ConImgD... | I want to save data acquired from Volley, But lambda used in VolleyRequest function(which gets json data from server) blocks it. How should I change local variable that is in outside of lambda? Thanks in advance. [CODE] | android|kotlin|android-volley | 0 | 2020-01-28T05:00:17.053Z | 2,020 | 1 | 5 | 1 | 700 | 1 | 219 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
59,942,384 | WorkManager : How to set-up different WorkManager Configurations in same App | <p>I'm working on a multi module project (Gradle module). I'm using WorkManager in my module. I'm also making use of Dagger for dependency injection.
Now I have to use dagger to inject dependencies to my WorkManager. I'm quite familiar with Dagger 2 setup with WorkManager. But the problem I'm facing is, I have to use ... | I'm working on a multi module project (Gradle module). I'm using WorkManager in my module. I'm also making use of Dagger for dependency injection. Now I have to use dagger to inject dependencies to my WorkManager. I'm quite familiar with Dagger 2 setup with WorkManager. But the problem I'm facing is, I have to use work... | android|dagger-2|android-workmanager | 4 | 2020-01-28T05:00:44.530Z | 2,020 | 1 | 5 | 1 | 1,419 | 1 | 1,024 | 76 | 3 | 1 | true | false | false | false | false | false | low |
59,942,579 | How to convert ArrayList to JSONArray() in Kotlin | <p>I have a list in my POJO class:</p>
<pre><code>"userQuoteTravellers": [
{
"id": 1354,
"quoteId": 526,
"travellerId": null
}
]
</code></pre>
<p>I want to pass this list as it is in <code>JSONArray</code> and passing it as:</p>
<pre><code>JSONArray.put(list)
</code></pre>
<p>It i... | I have a list in my POJO class: [CODE] I want to pass this list as it is in JSONArray and passing it as: [CODE] It is being sent as: "userQuoteTravellers": [ "[]" ] But I want to send it as "userQuoteTravellers": [] How can I achieve this in Kotlin without using any loop? | android|json|kotlin | 5 | 2020-01-28T05:23:09.990Z | 2,020 | 1 | 5 | 1 | 17,130 | 5 | 272 | 49 | 3 | 2 | true | false | true | true | false | false | low |
59,942,647 | Updating image Flutter | <p>From an API I am getting a URL for image. The image url is stored in sqflite and I am using that image url to display image everywhere in the app using NetworkImage. Now in one screen I have one dialog to update image where I am using ImagePicker to pick Image and then upload image to server. In return of upload ima... | From an API I am getting a URL for image. The image url is stored in sqflite and I am using that image url to display image everywhere in the app using NetworkImage. Now in one screen I have one dialog to update image where I am using ImagePicker to pick Image and then upload image to server. In return of upload image ... | android|ios|flutter | 0 | 2020-01-28T05:29:54.927Z | 2,020 | 1 | 5 | 1 | 208 | 2 | 764 | 22 | 3 | 0 | false | false | false | false | false | false | zero |
59,942,675 | Android Nested ScrollView Freeze Pane | <p>I am attempting to achieve something like in Excel when you can freeze the top pane of a sheet. I have a TableLayout inside a HorizontalScrollView for my header.</p>
<p>For my content, it is a TableLayout inside a HorizontalScrollView inside a ScrollView. I am getting close, but can't figure out why the table bod... | I am attempting to achieve something like in Excel when you can freeze the top pane of a sheet. I have a TableLayout inside a HorizontalScrollView for my header. For my content, it is a TableLayout inside a HorizontalScrollView inside a ScrollView. I am getting close, but can't figure out why the table body starts half... | android|layout|scrollview|tablelayout|horizontalscrollview | 0 | 2020-01-28T05:33:48.903Z | 2,020 | 1 | 5 | 1 | 459 | 1 | 687 | 37 | 5 | 2 | true | false | false | false | false | false | zero |
59,942,734 | Android - How to send multiple checked values data to php server? | <p>I'm working Android sdk platform. Working of application - When a user selects multiple checkboxes and on the basis of checked values, the user would receive notifications. My question - how do i send checked values data to php server? What should be the approach in mainactivity.java? In android app, how will I stor... | I'm working Android sdk platform. Working of application - When a user selects multiple checkboxes and on the basis of checked values, the user would receive notifications. My question - how do i send checked values data to php server? What should be the approach in mainactivity.java? In android app, how will I store D... | java|php|android|android-checkbox | -1 | 2020-01-28T05:40:14.543Z | 2,020 | 1 | 5 | 1 | 170 | 1 | 351 | 65 | 4 | 0 | false | false | false | false | false | true | negative |
59,942,738 | Gradle Task to get Android App Bundle Manifest | <p>There are multiple manifests generated when we build an android project. Here is the screenshot of:</p>
<p>Build Directory of my application</p>
<p><a href="https://i.stack.imgur.com/pmtRB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pmtRB.png" alt="enter image description here"></a></p>
<p>... | There are multiple manifests generated when we build an android project. Here is the screenshot of: Build Directory of my application Here if see, we can observe 3 directories, i.e. bundle_manifest instant_app_manifest merged_manifests Now I observed that when build Android App Bundle, it uses bundle_manifest . In the ... | android|android-gradle-plugin|build.gradle|android-manifest|android-app-bundle | 1 | 2020-01-28T05:40:38.260Z | 2,020 | 1 | 5 | 1 | 645 | 2 | 718 | 46 | 5 | 0 | false | false | false | false | false | false | low |
59,942,765 | Flutter: How to disable the past dates in `showDatePicker`? | <p>How to disable the past dates in flutter <code>showDatePicker</code> ? Below is my code</p>
<pre><code>DateTime picked = await showDatePicker(
context: context,
initialDate: DateTime.now(),
firstDate: DateTime(2020, 1),
... | How to disable the past dates in flutter showDatePicker ? Below is my code [CODE] | android|ios|flutter|mobile | 6 | 2020-01-28T05:43:43.613Z | 2,020 | 1 | 5 | 1 | 4,737 | 2 | 81 | 59 | 4 | 1 | true | false | true | false | false | false | medium |
59,942,772 | Webview failure when internet is off | <p>I've a web based application, where the url is loaded when the app starts.
I'm trying to handle a issue when </p>
<blockquote>
<p>Internet of WiFi is turned off when resources are loading( resources are loaded in async format).</p>
</blockquote>
<p>I'm using <code>onReceivedError(WebView view, int errorCode, Str... | I've a web based application, where the url is loaded when the app starts. I'm trying to handle a issue when Internet of WiFi is turned off when resources are loading( resources are loaded in async format). I'm using onReceivedError(WebView view, int errorCode, String description, String failingUrl) of WebViewClient fo... | android|webview | 2 | 2020-01-28T05:44:42.797Z | 2,020 | 1 | 5 | 1 | 303 | 3 | 550 | 36 | 2 | 0 | false | false | false | false | false | false | low |
59,942,861 | How to find the item that shows up on top of the RecyclerView while scrolling | <p>I have been looking for a proper API for what I need to do and I am all but certain that there has to be an API. But I am not finding it. </p>
<p>Here is my problem:</p>
<p>I am displaying an ArrayList inside a recycler view. What I need is to know what item in the ArrayList is showing at the top of the recycler v... | I have been looking for a proper API for what I need to do and I am all but certain that there has to be an API. But I am not finding it. Here is my problem: I am displaying an ArrayList inside a recycler view. What I need is to know what item in the ArrayList is showing at the top of the recycler view as I scroll up a... | android|android-recyclerview | 2 | 2020-01-28T05:53:25.790Z | 2,020 | 1 | 5 | 1 | 146 | 3 | 550 | 77 | 2 | 2 | true | false | false | false | false | false | low |
59,942,884 | update for using vectorDrawables with androidx | <p><a href="https://developer.android.com/guide/topics/graphics/vector-drawable-resources" rel="nofollow noreferrer">The solution given in this documentation page</a> doesn't seem to be valid for androidx users(I think this because there is mention of <code>android.support.v7.appcompat</code> which isn't used by <code... | The solution given in this documentation page doesn't seem to be valid for androidx users(I think this because there is mention of android.support.v7.appcompat which isn't used by androidx users, right?). I might have gotten something wrong, but adding the: vectorDrawables.useSupportLibrary = true also the [CODE] with ... | android|vector|android-4.4-kitkat | 2 | 2020-01-28T05:55:23.880Z | 2,020 | 1 | 5 | 1 | 1,121 | 1 | 601 | 46 | 3 | 4 | true | false | false | false | false | false | low |
59,942,915 | How can I display Image if my list is empty? | <p>I want to display an Image or Text in Center like <code>No Record Found</code> all details are fetched from API. In Native Android <code>setEmptyView()</code> for this condition but no idea how can I do this in flutter. Non-stop progress Dialog is running but the text is not displayed. I added code with my JSON resp... | I want to display an Image or Text in Center like No Record Found all details are fetched from API. In Native Android setEmptyView() for this condition but no idea how can I do this in flutter. Non-stop progress Dialog is running but the text is not displayed. I added code with my JSON response [CODE] [CODE] [CODE] [CO... | android|ios|json|flutter|dart | 5 | 2020-01-28T05:57:33.543Z | 2,020 | 1 | 5 | 1 | 4,369 | 6 | 323 | 44 | 5 | 4 | true | false | true | false | false | false | low |
59,943,029 | Any work arounds to the YoutubePlayerApi extending YoutubeBaseActivity? | <p>I have been trying to add a youtube player to a view flipper by following a tutorial. In said tutorial, the activity that handles the youtube player extends YoutubeBaseActivity. This then gives me errors when i try to use setSupportActionBar.
Here are the solutions that i have attempted.</p>
<ol>
<li>I have tried e... | I have been trying to add a youtube player to a view flipper by following a tutorial. In said tutorial, the activity that handles the youtube player extends YoutubeBaseActivity. This then gives me errors when i try to use setSupportActionBar. Here are the solutions that i have attempted. I have tried extending YouTubeP... | android|youtube-api|android-youtube-api | 1 | 2020-01-28T06:10:06.817Z | 2,020 | 1 | 6 | 1 | 111 | 0 | 920 | 71 | 3 | 4 | true | true | false | false | false | false | low |
59,943,051 | Keep my Activty open on notification click? | <p>I have a strange scenario in my application where I want to keep my activity open even though if any notification is clicked. The scenario is I have splash activity that opens the Home Activity and then the OfferActivity(opened through home activity after getting a response). Now I want to remain on the offer activi... | I have a strange scenario in my application where I want to keep my activity open even though if any notification is clicked. The scenario is I have splash activity that opens the Home Activity and then the OfferActivity(opened through home activity after getting a response). Now I want to remain on the offer activity ... | android|android-activity|android-task | 0 | 2020-01-28T06:11:56.957Z | 2,020 | 1 | 6 | 1 | 54 | 0 | 766 | 43 | 3 | 0 | false | true | false | false | false | false | zero |
59,943,133 | I have two radio buttons where single selection is to be performed.But and on single row both radio buttons are getting selected | <p><a href="https://i.stack.imgur.com/rYvPE.jpg" rel="nofollow noreferrer">i have added an image of these issue after a solution provided where previous does not unselect and on scroll checked values disappears</a>I am trying to select one captain and one vice-captain from 11 players using two radio buttons which are ... | i have added an image of these issue after a solution provided where previous does not unselect and on scroll checked values disappears I am trying to select one captain and one vice-captain from 11 players using two radio buttons which are in recycler view adapter. Data is in ArrayList. Where a single selection is wor... | android|android-radiobutton | 0 | 2020-01-28T06:20:36.003Z | 2,020 | 1 | 6 | 1 | 356 | 2 | 846 | 128 | 2 | 2 | true | false | false | false | false | false | zero |
59,943,149 | How to Load fragment according to it's instance at runtime using polymorphism? | <p>I have a tab layout with 3 tab items each having its own fragment to load at runtime when selected.</p>
<p><strong>MainActivity.class:</strong> Here call to LoadFragment according to position of selected tab.</p>
<pre><code>tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Ove... | I have a tab layout with 3 tab items each having its own fragment to load at runtime when selected. MainActivity.class: Here call to LoadFragment according to position of selected tab. [CODE] My question is how can I use switch statement for the logic to load proper fragment using fragment manager? I don't want to have... | java|android|android-fragments|switch-statement | 0 | 2020-01-28T06:22:21.920Z | 2,020 | 1 | 6 | 1 | 98 | 1 | 356 | 78 | 4 | 2 | true | false | false | false | false | false | zero |
59,943,163 | Can i use APK of one android app in another? | <p>I already have a published app. I want to create a new version of the same app with new features. My questions is that can i make a new project for the same app and use old project's APK in the new one so when we publish it, it would be published as a vew version of the same application?</p> | I already have a published app. I want to create a new version of the same app with new features. My questions is that can i make a new project for the same app and use old project's APK in the new one so when we publish it, it would be published as a vew version of the same application? | android|apk|publish | -3 | 2020-01-28T06:23:55.293Z | 2,020 | 1 | 6 | 1 | 93 | 2 | 288 | 44 | 3 | 0 | false | false | false | false | false | true | negative |
59,943,193 | Set ImageView below toolbar and navigation bar | <p>I am trying to show a imageview below toolbar and navigation bar .
Like the below image
<a href="https://i.stack.imgur.com/O6bLO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O6bLO.jpg" alt="enter image description here"></a></p>
<p>I need the toolbar,statusbar and navigation bar to be transpa... | I am trying to show a imageview below toolbar and navigation bar . Like the below image I need the toolbar,statusbar and navigation bar to be transparent. I will be very thankful if someone helps. | android|user-interface|user-experience | 0 | 2020-01-28T06:26:51.703Z | 2,020 | 1 | 6 | 1 | 146 | 1 | 196 | 46 | 3 | 0 | false | false | false | false | false | false | zero |
59,943,262 | How to take the screen-shot of the current video frame in the videoView android? | <p>I am using the video-view to play media and I want to take the screen shot of the current frame. I found some solutions which include using mediaMetaDataRetriever but that method is way too slow and does not perform well in many cases.
I can not use media player over texture view to capture view I knew that approach... | I am using the video-view to play media and I want to take the screen shot of the current frame. I found some solutions which include using mediaMetaDataRetriever but that method is way too slow and does not perform well in many cases. I can not use media player over texture view to capture view I knew that approach, b... | android|media|android-videoview | 0 | 2020-01-28T06:31:56.353Z | 2,020 | 1 | 6 | 1 | 137 | 1 | 447 | 80 | 3 | 2 | true | false | false | false | false | false | zero |
59,943,288 | Play Store having new version of the app, but showing open button instead of update | <p>Force update code is not implemented in the previous version So I add Force update code in the new version(Version Code 6) and uploaded testing version on play store.
Now For testing, I create new release build of version code 5 and install it in my device.
On Login Popup to update and cancel is showing but on click... | Force update code is not implemented in the previous version So I add Force update code in the new version(Version Code 6) and uploaded testing version on play store. Now For testing, I create new release build of version code 5 and install it in my device. On Login Popup to update and cancel is showing but on clicking... | android|in-app-update | 0 | 2020-01-28T06:34:34.417Z | 2,020 | 1 | 6 | 1 | 440 | 3 | 614 | 83 | 2 | 1 | true | false | false | false | false | false | zero |
59,943,334 | How to save image through webview? | <p>Suppose I'm using a URL in webview <a href="http://demo.io" rel="nofollow noreferrer">http://demo.io</a> and this URL has a button of camera and when I click on that camera button then my URL became <a href="http://demo.io/captureImage" rel="nofollow noreferrer">http://demo.io/captureImage</a>. Then I have an issue ... | Suppose I'm using a URL in webview http://demo.io and this URL has a button of camera and when I click on that camera button then my URL became http://demo.io/captureImage . Then I have an issue when I check the url of webview then it shows only http://demo.io not showing http://demo.io/captureImage so how I can get th... | android|webview|android-webview | 0 | 2020-01-28T06:38:24.157Z | 2,020 | 1 | 6 | 1 | 209 | 2 | 620 | 34 | 3 | 0 | false | false | false | false | false | false | zero |
59,943,347 | Show debug banner on Android | <p>I am trying to display the little debug banner in the top right of the app just like Flutter does but in Android.</p>
<p><a href="https://i.stack.imgur.com/4pY26.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4pY26.png" alt="enter image description here"></a></p>
<p>What is the best way to impl... | I am trying to display the little debug banner in the top right of the app just like Flutter does but in Android. What is the best way to implement this? I just want it on this activity. | android|android-layout|android-activity|android-xml | 1 | 2020-01-28T06:40:02.807Z | 2,020 | 1 | 6 | 1 | 517 | 2 | 186 | 28 | 4 | 0 | false | false | false | false | false | false | low |
59,943,394 | How to retrieve data in a Fragment from Firestore | <p>I am trying to fetch data from Firestore in a fragment that is using a <code>BottomNavigationBar</code>, in that fragment I want to display the User details like Name, Email id, etc. But I have no idea how to use Firestore in a Fragment to retrieve data. Can anyone please help me with this</p>
<pre><code>public cl... | I am trying to fetch data from Firestore in a fragment that is using a BottomNavigationBar , in that fragment I want to display the User details like Name, Email id, etc. But I have no idea how to use Firestore in a Fragment to retrieve data. Can anyone please help me with this [CODE] Want to display the details in the... | java|android|firebase|android-fragments|google-cloud-firestore | 0 | 2020-01-28T06:43:51.237Z | 2,020 | 1 | 6 | 1 | 1,639 | 2 | 670 | 49 | 5 | 4 | true | false | false | false | false | false | zero |
59,943,569 | How to make Textinputlayout hint multi-line? | <p>I want to make Textinputlayout hint multiline with material outlinedbox even hint in floating mode. I have searched a lot but didn't found any solution can anyone help me how to achieve this task?</p>
<pre><code><com.google.android.material.textfield.TextInputLayout
android:id="@+id/tilFieldLabel"
style=... | I want to make Textinputlayout hint multiline with material outlinedbox even hint in floating mode. I have searched a lot but didn't found any solution can anyone help me how to achieve this task? [CODE] | android|material-design|androidx|android-textinputlayout|android-textinputedittext | 0 | 2020-01-28T06:59:34.883Z | 2,020 | 1 | 6 | 1 | 692 | 1 | 203 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
59,943,809 | banner ad is placed over the second item of a recyclerview | <p>This is my <code>activity_main</code> layout, which is the navigation drawer, and includes the <code>main</code> activity layout, named <code>app_bar_main</code>.</p>
<p></p>
<pre><code> <include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="... | This is my activity_main layout, which is the navigation drawer, and includes the main activity layout, named app_bar_main . [CODE] I have called the ad as (from my MainActivity ): [CODE] My activity is a viewpager , and first of which contains a recyclerview . The problem is the ad is shown just at the end of the firs... | android|admob | 0 | 2020-01-28T07:17:37.917Z | 2,020 | 1 | 7 | 1 | 97 | 1 | 613 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
59,944,003 | mXparser result rounding | <p>I am trying out <a href="http://mathparser.org/" rel="nofollow noreferrer">mXparser</a> in an android app and I almost have it working. But, if I parse the following expression "10/3" then it returns: 3.3333333333<strong>5</strong>. Why this rounding in the end? and how do I tell mXparser to return 3.3333333333<stro... | I am trying out mXparser in an android app and I almost have it working. But, if I parse the following expression "10/3" then it returns: 3.3333333333 5 . Why this rounding in the end? and how do I tell mXparser to return 3.3333333333 3 instead? I am writing the app using kotlin and has added mXparser through Maven . A... | android|math|mxparser | 0 | 2020-01-28T07:32:29.820Z | 2,020 | 1 | 7 | 1 | 407 | 2 | 416 | 24 | 3 | 0 | false | false | false | false | false | false | zero |
59,944,018 | IllegalArgumentException: reason Phrase can't be empty. only occurring in tabs and emulator tabs | <pre><code>webView.webViewClient = object : WebViewClientCompat() {
override fun onReceivedError(view: WebView?, errorCode: Int, description: String?, failingUrl: String?) {
if (view!!.url.equals(failingUrl)) {
toast(getString(R.string.please_try_when_internet_available))... | [CODE] This exception crashing for above set of code only for tabs and emulator tabs working good in devices.Also tried to catch inside try-catch block and not working. | tabs|android-emulator|illegalargumentexception | 1 | 2020-01-28T07:33:15.553Z | 2,020 | 1 | 7 | 1 | 282 | 0 | 168 | 96 | 3 | 1 | true | true | false | false | false | false | low |
59,944,058 | Itext 5 Table rows splitting to new page and repeating | <p>I am using itext 5 legacy for the first time and I am new to app development.
I am generating a table that keeps splitting the columns into new rows on a new page and it would repeat the data.</p>
<p>The first Table:
<a href="https://i.stack.imgur.com/C0jK3.png" rel="nofollow noreferrer"><img src="https://i.stack... | I am using itext 5 legacy for the first time and I am new to app development. I am generating a table that keeps splitting the columns into new rows on a new page and it would repeat the data. The first Table: The second table with split columns and repeating data: Third table: The fourth table: The fifth Table: The ta... | java|android|itext|pdf-generation | 1 | 2020-01-28T07:36:09.980Z | 2,020 | 1 | 7 | 1 | 1,019 | 1 | 409 | 54 | 4 | 1 | true | false | false | false | false | false | low |
59,944,198 | Back button behaviour with BottomNavigationView implemented using navigation component | <p>I have created a nav_graph.xml for android navigation component and added four fragments for four different views. Now added <a href="https://developer.android.com/reference/com/google/android/material/bottomnavigation/BottomNavigationView" rel="nofollow noreferrer">BottomNavigationView</a> and menu items , used the... | I have created a nav_graph.xml for android navigation component and added four fragments for four different views. Now added BottomNavigationView and menu items , used the fragment ids from nav_graph and provided those ids to each menu items for bottom navigation. It works and shows the particular fragment for selected... | android|bottomnavigationview|android-navigation | 3 | 2020-01-28T07:46:47.653Z | 2,020 | 1 | 7 | 1 | 333 | 1 | 890 | 86 | 3 | 1 | true | false | false | false | false | false | low |
59,944,258 | Trying to create a time selector using RecyclerView | <p>Good day so i'm studying right now and i want to create a time selector and i came up with a problem on adapter holder</p>
<p>how can i change the background color of the selected startTime to endTime</p>
<pre><code> class TimeAdapter constructor(
listTime: MutableList<TimeModel>,
mainActivity: Ma... | Good day so i'm studying right now and i want to create a time selector and i came up with a problem on adapter holder how can i change the background color of the selected startTime to endTime [CODE] The Input i clicked the 8:00am and 9:00am My Code current output right now The output that i want layout_item_time_sele... | android|kotlin|android-recyclerview | 0 | 2020-01-28T07:52:15.520Z | 2,020 | 1 | 7 | 1 | 102 | 1 | 333 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
59,944,263 | react navigation v5 custom drawer route | <p>i have created a custom drawer component with some buttons to navigate to other screens but i am getting an <strong>TypeError: undefined is not an object (evaluating '_this.props')</strong> when i click on drawer buttons.But if i remove the custom drawer component the default drawer works just fine.</p>
<p>how to f... | i have created a custom drawer component with some buttons to navigate to other screens but i am getting an TypeError: undefined is not an object (evaluating '_this.props') when i click on drawer buttons.But if i remove the custom drawer component the default drawer works just fine. how to fix the problem ? thank you D... | javascript|android|react-native|react-navigation | 4 | 2020-01-28T07:52:28.923Z | 2,020 | 1 | 7 | 1 | 7,102 | 3 | 395 | 39 | 4 | 3 | true | false | true | false | false | false | low |
59,944,273 | Read SMS in Android without using BroadCastReceiver | <p>I am implementing an Android application that should read SMS. I found so many solutions using BroadcastReceiver but I want to implement read SMS functionality without using BroadCastReceiver, is there any possibility to implement read SMS without using BroadCastReceiver.</p> | I am implementing an Android application that should read SMS. I found so many solutions using BroadcastReceiver but I want to implement read SMS functionality without using BroadCastReceiver, is there any possibility to implement read SMS without using BroadCastReceiver. | android|kotlin | 0 | 2020-01-28T07:53:06.753Z | 2,020 | 1 | 7 | 1 | 45 | 0 | 272 | 51 | 2 | 0 | false | true | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.