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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,074,430 | Java: Two backgrounds with same speed are overlapping each other | <p>This is my first question and I'll try to make it as clear as possible. Please forgive me if someone asked a similar question before (I checked but found nothing).</p>
<p>I'm trying to create my first android application in java. It's a small game with a character on the left side of the screen (landscape mode) and... | This is my first question and I'll try to make it as clear as possible. Please forgive me if someone asked a similar question before (I checked but found nothing). I'm trying to create my first android application in java. It's a small game with a character on the left side of the screen (landscape mode) and a backgrou... | java|android|background-image | 0 | 2020-02-05T11:07:15.190Z | 2,020 | 2 | 11 | 2 | 65 | 1 | 667 | 64 | 3 | 4 | true | false | false | false | false | false | zero |
60,074,490 | Firebase data notification cannot click | <p>Hi I want to send image on notification and use data notification
this is my data and
notification comes with picture. but the notification is not clicked
How can i send clikable ?
<div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="sn... | Hi I want to send image on notification and use data notification this is my data and notification comes with picture. but the notification is not clicked How can i send clikable ? [CODE] | android|firebase|firebase-cloud-messaging|firebase-notifications | -2 | 2020-02-05T11:10:09.640Z | 2,020 | 2 | 11 | 2 | 107 | 1 | 187 | 39 | 4 | 1 | true | false | false | false | false | true | negative |
60,074,510 | Google Pay SDK check if user has already added specific card | <p>Does <strong>Google Pay API</strong> have a method for checking if the user has already added a specific card into <strong>Google Pay</strong>? I know that there exists a method for checking if the user available make payments.</p>
<blockquote>
<p><a href="https://developers.google.com/pay/api/android/guides/tuto... | Does Google Pay API have a method for checking if the user has already added a specific card into Google Pay ? I know that there exists a method for checking if the user available make payments. From official docs: ... call the isReadyToPay API to determine if the user can make payments with the Google Pay API. [CODE] ... | android|kotlin|google-pay | 3 | 2020-02-05T11:11:25.357Z | 2,020 | 2 | 11 | 2 | 1,348 | 1 | 403 | 60 | 3 | 1 | true | false | false | false | false | false | low |
60,074,589 | Frame layout is not positioned properly inside ConstraintLayout | <p>I've placed a <code>FrameLayout</code> inside <code>ConstraintLayout</code> and I think it's constrained properly. But in the app, it's not positioned properly. <code>FrameLayout</code> is replaced by appropriate fragment at runtime.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.constrain... | I've placed a FrameLayout inside ConstraintLayout and I think it's constrained properly. But in the app, it's not positioned properly. FrameLayout is replaced by appropriate fragment at runtime. [CODE] Here's what is shown in IDE: But this is what I get in device: FrameLayout should be placed in-between toolbar & the b... | android|android-fragments|android-constraintlayout|android-framelayout | 0 | 2020-02-05T11:16:23.353Z | 2,020 | 2 | 11 | 2 | 769 | 3 | 440 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
60,074,679 | Can I fetch the data being given to an app by its host and store it locally? | <p>I would like to preface my query by saying that I am an absolute beginner when it comes to programming but I really want to realise this project so every little help is deeply appreciated.</p>
<p>I am trying to build an app that needs accurate train data for it to work and from my current research as there is not c... | I would like to preface my query by saying that I am an absolute beginner when it comes to programming but I really want to realise this project so every little help is deeply appreciated. I am trying to build an app that needs accurate train data for it to work and from my current research as there is not central gove... | android | 0 | 2020-02-05T11:22:20.303Z | 2,020 | 2 | 11 | 2 | 34 | 1 | 865 | 76 | 1 | 0 | false | false | false | false | false | false | zero |
60,074,744 | App force close while running in using android studio | <p>I am facing <strong>app force close</strong> while running it in the emulator
and when I debug it, those error occurs</p>
<blockquote>
<p>Unknown bits set in runtime_flags: 0x8000</p>
</blockquote>
<blockquote>
<p>E/FirebaseInstanceId: binding to the service failed</p>
</blockquote>
<p>How can I solve them?</p> | I am facing app force close while running it in the emulator and when I debug it, those error occurs Unknown bits set in runtime_flags: 0x8000 E/FirebaseInstanceId: binding to the service failed How can I solve them? | android | 0 | 2020-02-05T11:26:22.487Z | 2,020 | 2 | 11 | 2 | 487 | 1 | 216 | 53 | 1 | 0 | false | false | false | false | false | false | zero |
60,074,754 | Arraylist not working, items do not stack up | <p>So, I am trying to get some info from <code>database</code> and save it into an <code>ArrayList</code>, so later I can add dinamically <code>buttons</code> according to the <code>length</code> and <code>items</code> from that list. </p>
<p>code: </p>
<pre><code>private List<String> probleme = new ArrayList&l... | So, I am trying to get some info from database and save it into an ArrayList , so later I can add dinamically buttons according to the length and items from that list. code: [CODE] CautaProbleme method: [CODE] The JSON response it's alright, the problemeArray looks good, but the problem it's that the .add() command doe... | java|android|arraylist|android-asynctask | 0 | 2020-02-05T11:26:51.977Z | 2,020 | 2 | 11 | 2 | 34 | 2 | 500 | 44 | 4 | 2 | true | false | false | false | false | false | zero |
60,074,864 | OnClick buttons in the MVVM Fragment do not work | <p>I have a LoginActivity in which there are two fragments. Using the navigation library, I switch between these fragments. But now I need to go from the fragment to another Activity. My code doesn't work for some reason, there are no errors in logCat. When I used this code with Activity everything works well. Is it al... | I have a LoginActivity in which there are two fragments. Using the navigation library, I switch between these fragments. But now I need to go from the fragment to another Activity. My code doesn't work for some reason, there are no errors in logCat. When I used this code with Activity everything works well. Is it all a... | android|android-fragments|android-button|android-mvvm | 0 | 2020-02-05T11:32:38.233Z | 2,020 | 2 | 11 | 2 | 1,250 | 2 | 429 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
60,074,935 | Probelm with Server-Client Application using Usb with Adb (Android & Node.js) | <p>I'm trying to send Coordinates from my phone to my computer using usb.
I'm using Socket.io to connect a Node.js server with an android Client and I'm using
<code>adb reverse tcp:9002 tcp:9002</code> to connect the Ports.</p>
<p>This is how the Node.js-Server looks:</p>
<pre><code>const express = require('express'... | I'm trying to send Coordinates from my phone to my computer using usb. I'm using Socket.io to connect a Node.js server with an android Client and I'm using adb reverse tcp:9002 tcp:9002 to connect the Ports. This is how the Node.js-Server looks: [CODE] This is the MainActivity of the Android Client: [CODE] And this is ... | android|node.js|socket.io|adb | 0 | 2020-02-05T11:36:44.083Z | 2,020 | 2 | 11 | 2 | 517 | 1 | 516 | 77 | 4 | 3 | true | false | false | false | false | false | zero |
60,075,022 | How can you create a clipped NavigationDrawer below the AppBar? | <p>How can you create a clipped NavigationDrawer below the AppBar?</p>
<p>The latest Android Studio (3.5.3) generates a full-height NavigationDrawer, and my question is what needs to be changed to instead get a clipped NavigationDrawer?</p>
<p>(
Please do not label this question as a "duplicate" by linking to... | How can you create a clipped NavigationDrawer below the AppBar? The latest Android Studio (3.5.3) generates a full-height NavigationDrawer, and my question is what needs to be changed to instead get a clipped NavigationDrawer? ( Please do not label this question as a "duplicate" by linking to ANCIENT (e.g. 20... | android|navigation-drawer|clipped | 1 | 2020-02-05T11:41:25.323Z | 2,020 | 2 | 11 | 2 | 1,356 | 2 | 3,756 | 63 | 3 | 5 | true | false | false | false | false | false | low |
60,075,081 | INSTALL_FAILED_SHARED_USER_INCOMPATIBLE App not installed on Lollipop device | <p>I am installing the released version of my Xamarin.Android app on the Lollipop device. For this, I have performed the following steps:</p>
<ol>
<li><p>Changed the mode to Release mode.</p>
</li>
<li><p>Provided the required permissions and changes in the Android manifest, used android:sharedUserId="android.uid.... | I am installing the released version of my Xamarin.Android app on the Lollipop device. For this, I have performed the following steps: Changed the mode to Release mode. Provided the required permissions and changes in the Android manifest, used android:sharedUserId="android.uid.system" I generated the keystor... | android|xamarin.android|android-keystore | 1 | 2020-02-05T11:44:24.113Z | 2,020 | 2 | 11 | 2 | 386 | 0 | 1,046 | 76 | 3 | 0 | false | true | false | false | false | false | low |
60,075,208 | Very slow vkEndCommandBuffer on Android | <p>I did some profiling and found out that vkEndCommandBuffer does a lot of work on Android (25% of render thread time in my application). The most strange thing to me is that it does huge memcpy (20% of render thread time).</p>
<p>I tried different flags in command buffer and command buffer pool, also I tried to rese... | I did some profiling and found out that vkEndCommandBuffer does a lot of work on Android (25% of render thread time in my application). The most strange thing to me is that it does huge memcpy (20% of render thread time). I tried different flags in command buffer and command buffer pool, also I tried to reset command b... | android|performance|vulkan | 2 | 2020-02-05T11:51:50.530Z | 2,020 | 2 | 11 | 2 | 186 | 0 | 1,799 | 39 | 3 | 0 | false | true | false | false | false | false | low |
60,075,211 | How does one implement a background notification service in android when all services except for foreground ones get shut down after some time? | <p>I would love to offer a background notification service(real-time) but can't find a way how to make it work since background services get stopped by system and when I restart them from a receiver I get an error.</p>
<p>I see that other apps have it, but I checked the running services and they don't have any service... | I would love to offer a background notification service(real-time) but can't find a way how to make it work since background services get stopped by system and when I restart them from a receiver I get an error. I see that other apps have it, but I checked the running services and they don't have any services there. Do... | android|background-service|permanent | 0 | 2020-02-05T11:52:02.130Z | 2,020 | 2 | 11 | 2 | 118 | 1 | 427 | 143 | 3 | 0 | false | false | false | false | false | false | zero |
60,075,232 | Android Kotlin - inherit a VIewModel from another ViewModel | <p>I've created a structure in app with BaseActivity and BaseViewModel. All other activities/viewModels must be extend with this base classes. I made that cause i need to call some methods in any activity (like showInfo() method).</p>
<p>When i update LiveData in BaseViewModel and observe it in BaseActivity all works ... | I've created a structure in app with BaseActivity and BaseViewModel. All other activities/viewModels must be extend with this base classes. I made that cause i need to call some methods in any activity (like showInfo() method). When i update LiveData in BaseViewModel and observe it in BaseActivity all works well. But w... | android|kotlin|android-livedata|android-viewmodel | 2 | 2020-02-05T11:53:13.387Z | 2,020 | 2 | 11 | 2 | 2,463 | 1 | 532 | 59 | 4 | 1 | true | false | false | false | false | false | low |
60,075,256 | Is there analogue for RxJava Subject in Kotlin Coroutines? | <p>In 2020 a lot of android developers are talking about Kotlin Coroutines. I'm trying to understand it and how coroutines can help me in my project.</p>
<p>So my question: <strong>is there analogue in Coroutines for RxJava Subjects?</strong> (As minimum for <code>PublishSubject</code>).</p>
<p>What I want - I use <c... | In 2020 a lot of android developers are talking about Kotlin Coroutines. I'm trying to understand it and how coroutines can help me in my project. So my question: is there analogue in Coroutines for RxJava Subjects? (As minimum for PublishSubject ). What I want - I use PublishSubject for sending events from ViewModel t... | android|kotlin|rx-java2|coroutine|kotlin-coroutines | 5 | 2020-02-05T11:54:35.983Z | 2,020 | 2 | 11 | 2 | 1,578 | 1 | 669 | 58 | 5 | 2 | true | false | false | false | false | false | low |
60,075,316 | Android - onFocusChange doesn't work the first time | <p>When I touch an <code>EditText</code> I want my <code>scrollView</code> to scrolls some px. The problem is that it only works when I touch the respective EditText the second time and if the focus was on another editText. Here's the code:</p>
<p><strong>KOTLIN</strong>:</p>
<pre><code>usernameLogin.setOnFocusChange... | When I touch an EditText I want my scrollView to scrolls some px. The problem is that it only works when I touch the respective EditText the second time and if the focus was on another editText. Here's the code: KOTLIN : [CODE] XML [CODE] | android|kotlin|android-edittext|focus|onfocuschangelistener | 2 | 2020-02-05T11:57:31.937Z | 2,020 | 2 | 11 | 2 | 1,384 | 1 | 238 | 51 | 5 | 2 | true | false | false | false | false | false | low |
60,075,485 | Timeout exceptions when invoking RegisterMessageHandler on SubscriptionClient | <p>I'm trying to invoke the RegisterMessageHandler method on a SubscriptionClient instance running in Android.</p>
<p>After 20 seconds or so of publishing a message to a specific topic (via an automated test), I receive several timeout exceptions in my Android app that actually harbors the RegisterMessageHandler for t... | I'm trying to invoke the RegisterMessageHandler method on a SubscriptionClient instance running in Android. After 20 seconds or so of publishing a message to a specific topic (via an automated test), I receive several timeout exceptions in my Android app that actually harbors the RegisterMessageHandler for the Subscrip... | android|azureservicebus|azure-servicebus-topics|azure-servicebus-subscriptions | 0 | 2020-02-05T12:07:57.493Z | 2,020 | 2 | 12 | 2 | 231 | 1 | 1,271 | 77 | 4 | 6 | true | false | false | false | false | false | zero |
60,075,566 | How to add a value to an existing Array in Firestore which already has this exact value, without "overwriting" it? | <p>In my quiz app the player types in his first answer as an <code>Integer</code>, which creates an <code>array</code> in Firestore like this:</p>
<pre><code>Map<String, Object> answer = new HashMap<>();
answer.put("answers", Arrays.asList(answerPlayer1Int));
answerRef.document("Round 1").collection(uidPl... | In my quiz app the player types in his first answer as an Integer , which creates an array in Firestore like this: [CODE] In the next fragment, he types in his second answer for the second question, and I want this value to be added to the previously created array. Currently, I use the code below, which works when the ... | java|android|arrays|firebase|google-cloud-firestore | 0 | 2020-02-05T12:12:02.220Z | 2,020 | 2 | 12 | 2 | 102 | 2 | 851 | 114 | 5 | 2 | true | false | false | false | false | false | zero |
60,075,733 | Dynamically add fragments (or appropriate component) to a list view in Android App (Kotlin) | <p>I am unsure on the theory on Kotlin and Android development (Still a novice). I have a fragment with a simple score keeping element to it. It displays a score and there is a + & - button to effect the score. Below is this fragments code:</p>
<p>ScoreKeepingBasicFragment.kt</p>
<pre><code>class ScoreKeepingBasi... | I am unsure on the theory on Kotlin and Android development (Still a novice). I have a fragment with a simple score keeping element to it. It displays a score and there is a + & - button to effect the score. Below is this fragments code: ScoreKeepingBasicFragment.kt [CODE] ScoreKeepingBasicViewModel.kt [CODE] score_kee... | android|xml|android-layout|android-fragments|kotlin | 0 | 2020-02-05T12:20:41.280Z | 2,020 | 2 | 12 | 2 | 658 | 1 | 1,197 | 91 | 5 | 3 | true | false | false | false | false | false | zero |
60,075,871 | Passing data to activity from widget | <p>I am trying to pass data from widget to activity and I always receive null.
Here is onUpdate from widget class:</p>
<pre><code>@Override
public void onUpdate(final Context context, final AppWidgetManager appWidgetManager, int[] appWidgetIds) {
ComponentName thisWidget = new ComponentName(context, MyWidgetProvi... | I am trying to pass data from widget to activity and I always receive null. Here is onUpdate from widget class: [CODE] Second Activity: [CODE] } | android | 2 | 2020-02-05T12:29:19.767Z | 2,020 | 2 | 12 | 2 | 132 | 1 | 144 | 36 | 1 | 2 | true | false | false | false | false | false | low |
60,075,969 | How to display a message entered in fragment1 to fragment2? | <p>Fragment1 has a button and edittext, fragment2 has textview.</p>
<p>Now i want to display the text entered in fragment1 to the fragment2 textview, can anyone help how to do this?</p> | Fragment1 has a button and edittext, fragment2 has textview. Now i want to display the text entered in fragment1 to the fragment2 textview, can anyone help how to do this? | android | -1 | 2020-02-05T12:34:40.533Z | 2,020 | 2 | 12 | 2 | 34 | 1 | 171 | 59 | 1 | 0 | false | false | false | false | false | true | negative |
60,076,098 | Flutter- App working on emulator but not on device (uses http package) | <p>My application works fine on emulator Nexus 5 (API 28) but when i build an apk to try it on real device it doesn't, The login button does nothing at all.</p>
<p>I've removed all features from the app, now it just logs in through http package, it uses a php file that communicates with the Mysql database and return v... | My application works fine on emulator Nexus 5 (API 28) but when i build an apk to try it on real device it doesn't, The login button does nothing at all. I've removed all features from the app, now it just logs in through http package, it uses a php file that communicates with the Mysql database and return values in Js... | android|flutter|apk | 3 | 2020-02-05T12:42:22.440Z | 2,020 | 2 | 12 | 2 | 5,613 | 1 | 596 | 70 | 3 | 5 | true | false | true | false | false | false | low |
60,076,141 | Unable to get response from the server using asynchTask | <p>Am trying to create a login ,and the user information is on a remote server but when i run the app to get the token i keep getting an error of type <code>W/System.err: java.io.FileNotFoundException:</code>
<a href="https://uat.elma.bz/revenueapi/token" rel="nofollow noreferrer">https://uat.elma.bz/revenueapi/token... | Am trying to create a login ,and the user information is on a remote server but when i run the app to get the token i keep getting an error of type W/System.err: java.io.FileNotFoundException: https://uat.elma.bz/revenueapi/token " .Api is working over Postman, not sure what could be the problem, can you please suggest... | java|android | 0 | 2020-02-05T12:44:20.503Z | 2,020 | 2 | 12 | 2 | 42 | 1 | 328 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
60,076,163 | How to scroll to an element that does not appear in the view using python and appium | <p>I try to scroll to an element by text that does not appear in the display with the following functions</p>
<pre><code>self.driver.find_element_by_android_uiautomator("new UiScrollable(new UiSelector().scrollable(true)" + ".instance(0)).scrollIntoView(new UiSelector().text('מטבע חוץ').instance(0))")
self.driver.fin... | I try to scroll to an element by text that does not appear in the display with the following functions [CODE] The functions do not scroll the element This is my desired capabilities [CODE] I know there is a touch action method but it works only with visible elements. | python|python-3.x|appium|appium-android|python-appium | 0 | 2020-02-05T12:45:48.363Z | 2,020 | 2 | 12 | 2 | 363 | 1 | 267 | 84 | 5 | 2 | true | false | false | false | false | false | zero |
60,076,310 | in android make string layout as table | <p>How can I string characters same width
and divide string to columns
without using tablelayout on xml</p>
<pre><code>StringBuilder result = new StringBuilder();
result.append("aaa xxx yy").append("\n");
result.append("b xxx yy").append("\n");
result.append("cc xxx yy").append("\n");
</code></pr... | How can I string characters same width and divide string to columns without using tablelayout on xml [CODE] but the result is | java|android|string|android-studio | 1 | 2020-02-05T12:54:27.437Z | 2,020 | 2 | 12 | 2 | 51 | 0 | 125 | 38 | 4 | 1 | true | true | false | false | false | false | low |
60,076,393 | How to return from Glide onResourceReady | <p>I'm trying to return string <code>s[0]</code> after Glide <code>onResourceReady</code>, but return statement is executing before <code>onResourceReady</code> method, so now I want to return a string from Glide <code>onResourceReady</code> but it's not working.</p>
<p>How to make <code>onResourceReady</code> to retu... | I'm trying to return string s[0] after Glide onResourceReady , but return statement is executing before onResourceReady method, so now I want to return a string from Glide onResourceReady but it's not working. How to make onResourceReady to return String? Please help me. [CODE] | java|android|android-glide | 0 | 2020-02-05T12:59:39.160Z | 2,020 | 2 | 12 | 2 | 507 | 1 | 278 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
60,076,464 | Access Images and videos from android internal Storage using Unity C# | <p>i am trying to access the <strong>Whatsapp</strong> folder from android internal storage but for some reason this code is not working the file path is correct but this if statement never gets true</p>
<p>here is the code for checking if file exixts </p>
<pre><code>public static Texture2D LoadPNG()
{
Texture2... | i am trying to access the Whatsapp folder from android internal storage but for some reason this code is not working the file path is correct but this if statement never gets true here is the code for checking if file exixts [CODE] now filepath = "/storage/emulated/0/Whatsapp/Media/.statuses code which makes this path ... | c#|android|unity3d | 0 | 2020-02-05T13:04:25.837Z | 2,020 | 2 | 13 | 2 | 1,197 | 1 | 504 | 69 | 3 | 3 | true | false | false | false | false | false | zero |
60,076,475 | How to convert Address type of Barcode.CONTACT_INFO To String Type in Android? | <p>I am using implementation 'com.google.android.gms:play-services-vision:19.0.0' library for scanning bar code, when it scan contactinfo QR code it gives dummy value. Address, URL, Email and Phone give dummy value, it did not convert in String Value.</p>
<pre><code>@Override
public void receiveDetections(Detector.Det... | I am using implementation 'com.google.android.gms:play-services-vision:19.0.0' library for scanning bar code, when it scan contactinfo QR code it gives dummy value. Address, URL, Email and Phone give dummy value, it did not convert in String Value. [CODE] | java|android|computer-vision | 0 | 2020-02-05T13:04:54.280Z | 2,020 | 2 | 13 | 2 | 302 | 2 | 255 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
60,076,532 | “Rebooting receiver” not working android [Xamarin.Android] | <p>I am trying to implement a broadcast receiver that gets the broadcast when the device has been rebooted, but is not working (it is supposed to send me a toast when the device has rebooted) with the following code:</p>
<p>Broadcast receiver:</p>
<pre><code> [BroadcastReceiver]
public class RebootReceiver : B... | I am trying to implement a broadcast receiver that gets the broadcast when the device has been rebooted, but is not working (it is supposed to send me a toast when the device has rebooted) with the following code: Broadcast receiver: [CODE] Manifest.xml [CODE] And permission inside the manifest [CODE] Hope help, thanks | android|xamarin|android-intent|xamarin.android|toast | 0 | 2020-02-05T13:07:18.813Z | 2,020 | 2 | 13 | 2 | 224 | 2 | 320 | 58 | 5 | 3 | true | false | false | false | false | false | zero |
60,076,544 | notification not appear while send notification to android app via fcm c# | <p>I am trying to send GCM Push notification (Cloud Messaging) to my android app via c# code. when i run this code it is running successfully. i am not getting any error, but notification is not coming on application. I want to send notification to all the devices not to any specific device. </p>
<pre><code> pu... | I am trying to send GCM Push notification (Cloud Messaging) to my android app via c# code. when i run this code it is running successfully. i am not getting any error, but notification is not coming on application. I want to send notification to all the devices not to any specific device. [CODE] | c#|android|google-api|firebase-cloud-messaging | 0 | 2020-02-05T13:07:38.063Z | 2,020 | 2 | 13 | 2 | 151 | 0 | 296 | 73 | 4 | 1 | true | true | false | false | false | false | zero |
60,076,623 | Relaunch specific activity from middle of the stack again by closing all activities above (including specific one) | <p>I have activity stack </p>
<p><code>A>B>C>D>E>F</code></p>
<p>From <code>Αctivity</code> F I want to start <code>Αctivity</code> C again from fresh and close all C,D,E,F activities so the new <code>Αctivity</code> stack will be:</p>
<p><code>A>B>C</code>(C as a Fresh activity)</p>
<p>I tried... | I have activity stack A>B>C>D>E>F From Αctivity F I want to start Αctivity C again from fresh and close all C,D,E,F activities so the new Αctivity stack will be: A>B>C (C as a Fresh activity) I tried using singleTask to Activity C but it is not relaunching the Activity C. It is resuming the Activity C | android|launchmode | 1 | 2020-02-05T13:11:27.597Z | 2,020 | 2 | 13 | 2 | 65 | 2 | 302 | 114 | 2 | 0 | false | false | false | false | false | false | low |
60,076,651 | Expokit - Splash Screen not showing on Android after upgrading to SDK 36 from SDK 32 | <p>I am currently working on a project that is ejected to Expokit and some weeks ago we upgraded SDK version from 32 to SDK 36, and since then, in Android devices, the Splash Screen from configuration options in <code>app.json</code> is not showing up anymore.</p>
<p>What we see first is the Splash image from <code>sp... | I am currently working on a project that is ejected to Expokit and some weeks ago we upgraded SDK version from 32 to SDK 36, and since then, in Android devices, the Splash Screen from configuration options in app.json is not showing up anymore. What we see first is the Splash image from splash_background.xml that is sh... | android|react-native|expo|splash-screen | 0 | 2020-02-05T13:13:02.573Z | 2,020 | 2 | 13 | 2 | 1,044 | 2 | 763 | 84 | 4 | 3 | true | false | false | false | false | false | zero |
60,076,807 | Android: Time and Timezone problems | <p>I get time data about some event from server in UTC. For example, it should happen in 5 hours.</p>
<p>But when user change time of the device (+2 hours, for example), time before an event becomes 3 hours (not 5)</p>
<p>But if user changes not time but time zone, then everything works ok.
Then I decided to check ti... | I get time data about some event from server in UTC. For example, it should happen in 5 hours. But when user change time of the device (+2 hours, for example), time before an event becomes 3 hours (not 5) But if user changes not time but time zone, then everything works ok. Then I decided to check timezone offset. Even... | java|android|kotlin|calendar | 0 | 2020-02-05T13:22:19.460Z | 2,020 | 2 | 13 | 2 | 74 | 1 | 791 | 35 | 4 | 0 | false | false | false | false | false | false | zero |
60,076,808 | How do I get the coordinates of my current location in yandex mapkit? | <p>How do I get the coordinates of my current location in yandex mapkit ?
There is very little information on the Internet, please help, can you have projects ?</p> | How do I get the coordinates of my current location in yandex mapkit ? There is very little information on the Internet, please help, can you have projects ? | java|android|yandex-mapkit | 0 | 2020-02-05T13:22:20.280Z | 2,020 | 2 | 13 | 2 | 1,285 | 1 | 157 | 69 | 3 | 0 | false | false | false | false | false | false | zero |
60,076,859 | Cannot access 'split': it is private in file | <p>I develop an app with <code>Kotlin</code> and got this weird error today in <em>Android Studio</em>, so I tried the same code in <em>InteliJ Idea</em> as well, where I get the same behaviour. I've used the <code>split</code> method so far in my Android project and it worked always like a charm.</p>
<p>This is the ... | I develop an app with Kotlin and got this weird error today in Android Studio , so I tried the same code in InteliJ Idea as well, where I get the same behaviour. I've used the split method so far in my Android project and it worked always like a charm. This is the code where this behaviour appears: [CODE] So today, the... | android|string|kotlin|split | 7 | 2020-02-05T13:25:03.893Z | 2,020 | 2 | 13 | 2 | 2,398 | 1 | 607 | 44 | 4 | 1 | true | false | false | false | false | false | medium |
60,076,885 | Navigation elements on click | <pre><code>public class MainActivity extends AppCompatActivity {
private AppBarConfiguration mAppBarConfiguration;
Fragment fragment = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... | [CODE] I want to implement on click methods to some of my elements in nav view but if I use the following code it doesn't change the title in action bar and it is not consistent can anyone suggest a better way of setting on click listeners for the drawer. I am using the navigation drawer version 2.2.0 [CODE] | android | 0 | 2020-02-05T13:26:47.403Z | 2,020 | 2 | 13 | 2 | 49 | 1 | 309 | 28 | 1 | 2 | true | false | false | false | false | false | zero |
60,076,896 | How to set multiple types with AlertDialog? | <p>I'm quite new to android ui development. I'm constructing a dialog which needs to come on top of lock screen as well as on top of my application,</p>
<pre><code>//To make it appear on top of lock screen i'm setting this flag
myDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG... | I'm quite new to android ui development. I'm constructing a dialog which needs to come on top of lock screen as well as on top of my application, [CODE] The two lines are consequtive and the second one is overwriting the first one it seems. Is there any way to set multiple types? I'm not able to find the right api. Am ... | android|android-layout|android-alertdialog | 0 | 2020-02-05T13:27:09.810Z | 2,020 | 2 | 13 | 2 | 60 | 0 | 375 | 43 | 3 | 1 | true | true | false | false | false | false | zero |
60,076,949 | Flutter error: Each child must be laid out exactly once. On building layout | <p>I'm using flutter_bloc.</p>
<p>I've got code like this:</p>
<pre><code>class Settings extends StatelessWidget {
final _formKey = GlobalKey<FormState>();
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text("SomeApp",style: T... | I'm using flutter_bloc. I've got code like this: [CODE] And when starting my app I see the appBar just the way I want, but I do not see any text in body (I should see either count1, count2 or count3), but instead I get the error: Each child must be laid out exactly once." referring to line 5 - return new Scaffold(... | android|flutter|flutter-layout|flutter-bloc | 37 | 2020-02-05T13:29:52.010Z | 2,020 | 2 | 13 | 2 | 40,393 | 16 | 459 | 75 | 4 | 1 | true | false | true | true | true | false | high |
60,076,980 | How to add firebase analytics in a library? | <p>I have created a library project(MyLibrary), this includes firebase analytics as well. Integrated this library into a separate project(SamplePorject) which has its own firebase analytics.</p>
<p>For firebase analytics created project(MyLibrary) from xxx account and separate project(SampleProject) from YYY account. ... | I have created a library project(MyLibrary), this includes firebase analytics as well. Integrated this library into a separate project(SamplePorject) which has its own firebase analytics. For firebase analytics created project(MyLibrary) from xxx account and separate project(SampleProject) from YYY account. Got 2 googl... | android|module|firebase-analytics | 0 | 2020-02-05T13:31:43.680Z | 2,020 | 2 | 13 | 2 | 500 | 1 | 796 | 43 | 3 | 0 | false | false | false | false | false | false | zero |
60,077,075 | canny edge detection of an image on android app kotlin | <p>I would like to get a result image with canny edge detection of an uploaded image from the device's gallery. I imported opencv sdk module on android studio. Build was successful but app would stop running. maybe I am doing something wrong with the code, or because I cannot use opencv on a device? </p>
<pre><code>ov... | I would like to get a result image with canny edge detection of an uploaded image from the device's gallery. I imported opencv sdk module on android studio. Build was successful but app would stop running. maybe I am doing something wrong with the code, or because I cannot use opencv on a device? [CODE] on logcat it th... | android|kotlin|canny-operator | 0 | 2020-02-05T13:37:00.873Z | 2,020 | 2 | 13 | 2 | 564 | 0 | 347 | 54 | 3 | 2 | true | true | false | false | false | false | zero |
60,077,141 | Building an Android app with Kivy+Buildozer | <p>I have Python 3.7 and Windows 7 x64, and I did:</p>
<pre><code>pip install kivy buildozer
</code></pre>
<p>It works, and I can successfully run a hello world example on my Windows machine:</p>
<pre><code>from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
r... | I have Python 3.7 and Windows 7 x64, and I did: [CODE] It works, and I can successfully run a hello world example on my Windows machine: [CODE] Then I created a buildozer file with: [CODE] and modifier the .spec file to use the right main.py . But then: [CODE] fails: Unknown command/target android How to compile an APK... | python|android|kivy|buildozer | 2 | 2020-02-05T13:40:16.503Z | 2,020 | 2 | 13 | 2 | 6,052 | 2 | 354 | 43 | 4 | 4 | true | false | true | false | false | false | low |
60,077,267 | Static member accessed via instance reference (using 'this' keyword) | <pre><code>public class RoundCapGraph extends View {
static private int strokeWidth = 20;
public void setStrokeWidth(int strokeWidth){
this.strokeWidth = strokeWidth;
//warning : static member 'com.example.ud.RoundCapGraph.strokeWidth' accessed via instance reference
}
}
</code></pre>
<p>In and... | [CODE] In android studio I'm trying to set strokeWidth using setStrokeWidth. But I get warning static member 'com.example.ud.RoundCapGraph.strokeWidth' accessed via instance reference Question : Does 'this' keyword make new instance and access variable via new instance? EDITED : I don't really need to set strokeWidth v... | java|android|android-studio|static|instance | 3 | 2020-02-05T13:46:53.487Z | 2,020 | 2 | 13 | 2 | 3,796 | 3 | 412 | 68 | 5 | 1 | true | false | true | false | false | false | low |
60,077,350 | Get the current fragment in activity outside onBackPressed? | <p>I searched on how I can get the opened fragment inside activity but found the check must happened in onBackPressed method of that activity</p>
<p>so is it possible to get it in the activity without needing the user click on back pressed? </p>
<p>here is the current solution </p>
<pre><code> @Override
p... | I searched on how I can get the opened fragment inside activity but found the check must happened in onBackPressed method of that activity so is it possible to get it in the activity without needing the user click on back pressed? here is the current solution [CODE] | android|android-fragments|android-activity|android-fragmentactivity | 0 | 2020-02-05T13:52:09.077Z | 2,020 | 2 | 13 | 2 | 49 | 1 | 266 | 59 | 4 | 1 | true | false | false | false | false | false | zero |
60,077,373 | mkdirs returns false in some device | <p>This code works for me but it is reported in fabric crashlytics not work on some devices and actually mkdirs retrun false I checked already the dir.exists() before .</p>
<pre><code>File dir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS) + "/Gahvare/");
if (!dir.exi... | This code works for me but it is reported in fabric crashlytics not work on some devices and actually mkdirs retrun false I checked already the dir.exists() before . [CODE] device list not work | android|file|mkdirs | 0 | 2020-02-05T13:53:19.807Z | 2,020 | 2 | 13 | 2 | 43 | 1 | 193 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
60,077,412 | room database with list inside an object | <p>Till this time I was only doing sql queries which had only simple types or objects where annotation <code>@Embedded</code> was doing a job. Currently I have to extend my sql query to receive "simple data" in the list inside.</p>
<pre><code>data class SimpleDataClass(
@Embedded val myObject: MyObject,
val id: UUID,
... | Till this time I was only doing sql queries which had only simple types or objects where annotation @Embedded was doing a job. Currently I have to extend my sql query to receive "simple data" in the list inside. [CODE] where [CODE] How to do this? By sql statement? Somehow with code? In DAO I return a: LiveData<List<Si... | android|sql|android-room | 1 | 2020-02-05T13:56:24.467Z | 2,020 | 2 | 13 | 2 | 213 | 1 | 561 | 40 | 3 | 2 | true | false | false | false | false | false | low |
60,077,467 | Issue when using itemssource to save and retrieve itemselected in xamarin | <p>I have created a template that fits in to a system that allows the user to complete a form. The issue that I am currently having is that the template I have created uses a dropdownbox that allows the user to select an int from a list that is pulled from a custom attribute on the question model. (I'm aware how horrib... | I have created a template that fits in to a system that allows the user to complete a form. The issue that I am currently having is that the template I have created uses a dropdownbox that allows the user to select an int from a list that is pulled from a custom attribute on the question model. (I'm aware how horrible ... | c#|xamarin|xamarin.forms|xamarin.android | 1 | 2020-02-05T13:59:40.180Z | 2,020 | 2 | 13 | 2 | 129 | 2 | 1,870 | 73 | 4 | 5 | true | false | false | false | false | false | low |
60,077,640 | Updating an Integer doesn't work - why so? | <p>this is very weird. I have been trying to solve this issue for a while now. I am trying to do something very simple, update the message ID within an existing chat table entry.</p>
<p>check the code</p>
<pre><code>public int updateLatestMessage(int messageID, int chatID){
Log.d("DB", "messageid =" + messageID)... | this is very weird. I have been trying to solve this issue for a while now. I am trying to do something very simple, update the message ID within an existing chat table entry. check the code [CODE] the function returns 1 meaning everything has updated correctly. But the message ID is still 10 as it was before instead o... | java|android|database|sqlite | 0 | 2020-02-05T14:08:32.607Z | 2,020 | 2 | 14 | 2 | 73 | 0 | 861 | 42 | 4 | 2 | true | true | false | false | false | false | zero |
60,077,777 | What's the meaning of suffix icons in Android Studio autocomplete feature? | <p><strong>Screenshot:</strong></p>
<p><a href="https://i.stack.imgur.com/oAHaW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oAHaW.png" alt="auto"></a></p>
<p>What does </p>
<p><code>p</code>, <code>f</code> and <code>m</code> mean in the given image?</p> | Screenshot: What does p , f and m mean in the given image? | android|android-studio|intellij-idea | 0 | 2020-02-05T14:16:04.793Z | 2,020 | 2 | 14 | 2 | 238 | 1 | 58 | 74 | 3 | 0 | false | false | false | false | false | false | zero |
60,077,846 | iBeacon AltBeacon- didEnterRegion not getting Called everytime while scanning for iBeacon using the AltBeacon Library in Android | <p>The code I have used for scanning the iBeacons is:</p>
<p><strong>Bound the Beacon Service using the:</strong></p>
<pre class="lang-java prettyprint-override"><code> mBeaconManager = BeaconManager.getInstanceForApplication(this);
mBeaconManager.getBeaconParsers().add(new BeaconParser().setBeaconLa... | The code I have used for scanning the iBeacons is: Bound the Beacon Service using the: [CODE] I have set the Monitoring and ranging at the same time using the below code: [CODE] In onBeaconServiceConnect method [CODE] Unbinded the Beacon Service using the [CODE] When I have bound the beacon service onBeaconServiceConne... | android | 1 | 2020-02-05T14:19:54.643Z | 2,020 | 2 | 14 | 2 | 53 | 0 | 1,167 | 128 | 1 | 5 | true | true | false | false | false | false | low |
60,077,913 | Why no http requests are sent? Android Studio - Retrofit | <p>I'm using Retrofit in Android studio - java.
I'm trying to send an http request to a specific ip and when i try to sniff the packets while
running the application in the emulator, i can't see any of the http packets on the list which sent to
the specific ip.</p>
<p>This is where I try to send the http requests:</p>... | I'm using Retrofit in Android studio - java. I'm trying to send an http request to a specific ip and when i try to sniff the packets while running the application in the emulator, i can't see any of the http packets on the list which sent to the specific ip. This is where I try to send the http requests: [CODE] This is... | java|android|http|retrofit | 0 | 2020-02-05T14:23:33.373Z | 2,020 | 2 | 14 | 2 | 178 | 2 | 383 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
60,078,249 | Multiple random number results | <p>Currently working in Android Studio and running into a little trouble. Trying to get my rollScore button to roll over and over. At this point it "rolls" once and stops. I've tried a for loop and while loop and unable to get it to allow multiple "rolls". </p>
<pre><code>public class GameScreen extends AppCompatActiv... | Currently working in Android Studio and running into a little trouble. Trying to get my rollScore button to roll over and over. At this point it "rolls" once and stops. I've tried a for loop and while loop and unable to get it to allow multiple "rolls". [CODE] | java|android|random | 0 | 2020-02-05T14:40:54.340Z | 2,020 | 2 | 14 | 2 | 31 | 2 | 260 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
60,078,368 | Android ListView.notifyDataSetChanged causing incorrect rows | <p>I am working on an android project, in which an ListFragment is being updated from a child activity. However, although the count of elements is correct after the update, the elements themselves are not. Incorrect elements are being put into the list and duplicating each other.</p>
<p>The problem is, after the child... | I am working on an android project, in which an ListFragment is being updated from a child activity. However, although the count of elements is correct after the update, the elements themselves are not. Incorrect elements are being put into the list and duplicating each other. The problem is, after the child activity m... | java|android|kotlin|android-listview | 0 | 2020-02-05T14:47:37.633Z | 2,020 | 2 | 14 | 2 | 76 | 1 | 1,895 | 60 | 4 | 3 | true | false | false | false | false | false | zero |
60,078,423 | In Ionic 4 with angular 8..... Broadcaster is not working. I am not able to get data from native to typescript file | <p>In Ionic 4 with angular 8..... Broadcaster is not working. I am not able to get data from native to typescript file.</p>
<p>So can anyone help me in this?</p>
<p>reference link <a href="https://ionicframework.com/docs/native/broadcaster/" rel="nofollow noreferrer">https://ionicframework.com/docs/native/broadcaster... | In Ionic 4 with angular 8..... Broadcaster is not working. I am not able to get data from native to typescript file. So can anyone help me in this? reference link https://ionicframework.com/docs/native/broadcaster/ app.component.ts [CODE] Android code [CODE] | android|angular|ionic-framework|ionic-native | 1 | 2020-02-05T14:50:04.667Z | 2,020 | 2 | 14 | 2 | 129 | 0 | 258 | 115 | 4 | 2 | true | true | false | false | false | false | low |
60,078,612 | How do I fix issue on overlapping components in Android Studio? | <p>On my main xml file, I have these four components arranged this way:</p>
<pre><code><fragment...>
<RelativeLayout...>
<Button...>
<androidx.drawerLayout.widget.DrawerLayout...>
</code></pre>
<p>Since the DrawerLayout is on the topmost layer of my whole screen, (although it looks transpar... | On my main xml file, I have these four components arranged this way: [CODE] Since the DrawerLayout is on the topmost layer of my whole screen, (although it looks transparent) it covers all of my other components such as those inside the RelativeLayout which makes it impossible to click. However, if I move it to the bot... | java|android|xml|user-interface | 1 | 2020-02-05T15:02:13.007Z | 2,020 | 2 | 15 | 2 | 80 | 1 | 1,185 | 63 | 4 | 2 | true | false | false | false | false | false | low |
60,078,623 | Navigation Component (RecyclerView) | <p>I am currently practicing android and came up with one part that is not very clear to me. I'm using Android Jetpack ... I have RecycleView, and I want to send a data model to another snippet when I click on it. I use a navigation component. </p>
<p>Now, I have seen that it is best to share the data via SharedVie... | I am currently practicing android and came up with one part that is not very clear to me. I'm using Android Jetpack ... I have RecycleView, and I want to send a data model to another snippet when I click on it. I use a navigation component. Now, I have seen that it is best to share the data via SharedViewModel, but sin... | android|android-jetpack-navigation | 0 | 2020-02-05T15:03:00.927Z | 2,020 | 2 | 15 | 2 | 57 | 1 | 666 | 35 | 2 | 0 | false | false | false | false | false | false | zero |
60,078,653 | How to know that last recyclerView item of first or current screen/page is loaded, any Callbacks but gets called once? | <p>I am using a grid layout of recyclerView and have tried several options using either onLayoutCompled methods and also by onScollListner methods, tried <a href="https://stackoverflow.com/questions/49151476/recyclerview-onscrolllistener-being-called-multiple-times-for-once-instance-of">this</a> answer but it's stiil c... | I am using a grid layout of recyclerView and have tried several options using either onLayoutCompled methods and also by onScollListner methods, tried this answer but it's stiil calling multiple times as each item keeps loading, nothing is working. Just want to detect the last recyclerView item of the particular screen... | java|android|android-layout|android-recyclerview|google-people-api | 0 | 2020-02-05T15:04:04.513Z | 2,020 | 2 | 15 | 2 | 62 | 1 | 596 | 118 | 5 | 0 | false | false | false | false | false | false | zero |
60,078,784 | Native splash screen width and height | <p>I'm using <a href="https://pub.dev/packages/flutter_native_splash" rel="nofollow noreferrer">flutter_native_splash</a> to create native splash screen for both android and ios but i need to specify the height and width of my app logo which appears in this splash screen because i'm using the same logo for some animati... | I'm using flutter_native_splash to create native splash screen for both android and ios but i need to specify the height and width of my app logo which appears in this splash screen because i'm using the same logo for some animation in the next screen, so i need them to be in the same width and height Update 1 this is ... | android|ios|flutter|splash-screen | 1 | 2020-02-05T15:11:37.620Z | 2,020 | 2 | 15 | 2 | 170 | 0 | 377 | 37 | 4 | 1 | true | true | false | false | false | false | low |
60,078,917 | Enabling Passpoint feature in AOSP | <p>I am working on an AOSP customization project where i want to enable the <strong><em>Hotspot 2.0/Passpoint</em></strong> feature through my code. From the Android developers site, <a href="https://source.android.com/devices/tech/connect/wifi-passpoint" rel="nofollow noreferrer">https://source.android.com/devices/tec... | I am working on an AOSP customization project where i want to enable the Hotspot 2.0/Passpoint feature through my code. From the Android developers site, https://source.android.com/devices/tech/connect/wifi-passpoint I got to know that requirements for supporting Passpoint are included in AOSP, we have to enable it by ... | android|wifi|android-source|android-wifi|hotspot | 1 | 2020-02-05T15:18:32.890Z | 2,020 | 2 | 15 | 2 | 534 | 0 | 1,103 | 34 | 5 | 0 | false | true | false | false | false | false | low |
60,078,980 | How can I make separate code on onChanged() while observing with LiveData in MVVM? [Not solved] | <p>So, I implemented </p>
<pre><code>public class DriverLoginActivity extends BaseActivity implements Observer<LoginUser>
</code></pre>
<p>And, onChanged overided.</p>
<pre><code> @Override
public void onChanged(@Nullable LoginUser loginUser) {
if (TextUtils.isEmpty(Objects.requireNonNull(loginUser... | So, I implemented [CODE] And, onChanged overided. [CODE] Now, for this activity, I have 2 buttons. so, the depending on the button click, this onChanged will be call. Now I want to do login button for login user and registre for registration. How can I make it separate in onChanged method? Please suggest me the very be... | android|mvvm | 0 | 2020-02-05T15:22:59.893Z | 2,020 | 2 | 15 | 2 | 126 | 1 | 449 | 95 | 2 | 2 | true | false | false | false | false | false | zero |
60,079,063 | Disable touch screen in Android in accessibility service | <p>I am developing an Android application for the deaf and blind using the accessibility service</p>
<p>Need to disable the touch screen, because android app is controlled through a third-party device</p>
<p>I tried to add a view to WindowManager and disable everything there (<code>FLAG_NOT_FOCUSABLE</code>, <code>FLAG... | I am developing an Android application for the deaf and blind using the accessibility service Need to disable the touch screen, because android app is controlled through a third-party device I tried to add a view to WindowManager and disable everything there ( FLAG_NOT_FOCUSABLE , FLAG_NOT_TOUCHABLE ), but as far as I ... | android|accessibilityservice|talkback|accessibility | 1 | 2020-02-05T15:26:51.790Z | 2,020 | 2 | 15 | 2 | 2,783 | 1 | 625 | 56 | 4 | 0 | false | false | true | false | false | false | low |
60,079,180 | how to change border and color in TextInputLayout unfocus? | <p>How to change border and color in <code>TextInputLayout</code> unfocus?</p>
<pre><code><com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"
android:layout_height="wrap_content"... | How to change border and color in TextInputLayout unfocus? [CODE] I try : [CODE] but, not work in unfocus | android|android-xml|android-textinputlayout|material-components-android|material-components | 2 | 2020-02-05T15:34:34.853Z | 2,020 | 2 | 15 | 2 | 5,395 | 2 | 105 | 58 | 5 | 2 | true | false | true | false | false | false | low |
60,079,251 | Comparing two accounts, by the answers of them, with Firebase | <p>I want to save the data on Firebase, that a user describes on an Intent. The saved data should be used to find one or more matching users with similar informations.
Thanks in forward.</p> | I want to save the data on Firebase, that a user describes on an Intent. The saved data should be used to find one or more matching users with similar informations. Thanks in forward. | java|android|firebase | 0 | 2020-02-05T15:38:42.130Z | 2,020 | 2 | 15 | 2 | 34 | 1 | 183 | 61 | 3 | 0 | false | false | false | false | false | false | zero |
60,079,274 | How do I check if Location is turned on or off in my Kotlin Android app? | <p>My app contains the following code to check for permission to use the device's location services but I need some way of detecting if <code>Location</code> in the device is turned on or off and to turn it on if it is off.</p>
<pre><code> override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(... | My app contains the following code to check for permission to use the device's location services but I need some way of detecting if Location in the device is turned on or off and to turn it on if it is off. [CODE] Although permission is granted I still need some way of turning Location on or prompting the user to manu... | android|kotlin|permissions|location | 0 | 2020-02-05T15:39:41.003Z | 2,020 | 2 | 15 | 2 | 909 | 2 | 336 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
60,079,383 | Xamarin.Forms - PushAsync is not supported globally on Android, please use a NavigationPage | <p>i am trying to do is after the user register and they click yes it will go to LoginPage. or else the user click the "Cancel" it will go to registration, please help me guys.. i am newbee in xamarin</p>
<pre><code> void Handle_Clicked(object sender, System.EventArgs e)
{
string ConnectionString = "Serve... | i am trying to do is after the user register and they click yes it will go to LoginPage. or else the user click the "Cancel" it will go to registration, please help me guys.. i am newbee in xamarin [CODE] UPDATE this is my App.xaml.cs [CODE] Please help me guys, i am newbee in xamarin and postgresql | xamarin|xamarin.forms|xamarin.android|navigation | 1 | 2020-02-05T15:46:33.330Z | 2,020 | 2 | 15 | 2 | 103 | 1 | 300 | 91 | 4 | 2 | true | false | false | false | false | false | low |
60,079,413 | parentWidth returns the wrong value when display size is the largest? | <p>I extend <code>com.google.android.material.chip.Chip</code></p>
<p>I have a text which I measure while in <code>onMeasure</code>.</p>
<p>My calculation says the text can fit in the chip's space, but in reality I see the text is truncated.</p>
<p>I would expect no truncation, as I measure before layout pass.</p>
... | I extend com.google.android.material.chip.Chip I have a text which I measure while in onMeasure . My calculation says the text can fit in the chip's space, but in reality I see the text is truncated. I would expect no truncation, as I measure before layout pass. *I use the biggest display size, largest font size, Ukrai... | android|text|font-size|display|measure | 3 | 2020-02-05T15:48:21.587Z | 2,020 | 2 | 15 | 2 | 117 | 1 | 381 | 69 | 5 | 1 | true | false | false | false | false | false | low |
60,079,472 | How to set an alarm to be scheduled at an exact time after all the newest restrictions on Android? | <p>Note: I tried various solutions that are written about here on StackOverflow (example <a href="https://stackoverflow.com/questions/38094420/android-alarmmanager-setexact-is-not-exact"><strong>here</strong></a>). Please do not close this without checking if your solution from what you've found works using the test I'... | Note: I tried various solutions that are written about here on StackOverflow (example here ). Please do not close this without checking if your solution from what you've found works using the test I've written below. Background There is a requirement on the app, that the user sets a reminder to be scheduled at a specif... | android|alarmmanager | 41 | 2020-02-05T15:51:42.587Z | 2,020 | 2 | 15 | 2 | 8,367 | 7 | 5,149 | 98 | 2 | 4 | true | false | true | false | true | false | high |
60,079,498 | Android app working smoothly in Samsung but not working in Huawei phones | <p>I have an Andriod application which is working perfectly fine in Samsung phones but is very slow in phones like Huawei. It's very slow and after some time it crashes.</p>
<p>The most common error in my logcat is:</p>
<ul>
<li>E/IPCThreadState: binder thread pool (15 threads) starved for 1149 ms</li>
<li>E/Location... | I have an Andriod application which is working perfectly fine in Samsung phones but is very slow in phones like Huawei. It's very slow and after some time it crashes. The most common error in my logcat is: E/IPCThreadState: binder thread pool (15 threads) starved for 1149 ms E/LocationManager: dead callback, clear wake... | android|android-studio|samsung-mobile|huawei-mobile-services | 1 | 2020-02-05T15:53:35.517Z | 2,020 | 2 | 15 | 2 | 1,799 | 1 | 646 | 72 | 4 | 3 | true | false | false | false | false | false | low |
60,079,663 | onClick button causing crash | <p>I've cloned <a href="https://github.com/sbpinilla/ImgtoPdf" rel="nofollow noreferrer">this git depo</a> it's an application that allows you to capture or choose images and save them in a pdf document. </p>
<p>It work fine, but when I tried to integrate in my app module (new project) and clicked on the button to sta... | I've cloned this git depo it's an application that allows you to capture or choose images and save them in a pdf document. It work fine, but when I tried to integrate in my app module (new project) and clicked on the button to start the activity it crash. I haven't changed anything the Logcat isn't helping either... An... | java|android|debugging|crash|pdf-generation | 1 | 2020-02-05T16:02:58.547Z | 2,020 | 2 | 16 | 2 | 73 | 2 | 507 | 28 | 5 | 4 | true | false | false | false | false | false | low |
60,079,692 | Why do I fail to save data in my application? | <p>I am a student and started working on android studio recently. I don't know about it much. I am working on an application where I save the item name and its amount in the database and display toast message if data we entered is saved or not. problem is whenever I click on the save button my application crashes.</p>
... | I am a student and started working on android studio recently. I don't know about it much. I am working on an application where I save the item name and its amount in the database and display toast message if data we entered is saved or not. problem is whenever I click on the save button my application crashes. followi... | java|android|sql|database|sqlite | 0 | 2020-02-05T16:04:20.670Z | 2,020 | 2 | 16 | 2 | 54 | 1 | 439 | 45 | 5 | 2 | true | false | false | false | false | false | zero |
60,079,752 | Android: Rejecting Invocation | <p>I have built an app for android which takes the data and enters it in a google sheet.
The form has like 600+ values and was working flawlessly but it has broken upon adding more fields and now I am being greeted with these in logs when it crashes:</p>
<pre><code>2020-02-05 21:22:07.139 13879-13879/? E/ngpatternsurv... | I have built an app for android which takes the data and enters it in a google sheet. The form has like 600+ values and was working flawlessly but it has broken upon adding more fields and now I am being greeted with these in logs when it crashes: [CODE] App crashes when I try to start this 'AddItem' activity from my '... | java|android|android-layout | 2 | 2020-02-05T16:07:39.027Z | 2,020 | 2 | 16 | 2 | 563 | 0 | 544 | 29 | 3 | 3 | true | true | false | false | false | false | low |
60,079,833 | Is it possible to add an image icon to FCM notification in android / iOS? | <p>Is it possible to add an image as icon in the notification tray using the java firebase API? I have a spring boot backend and this is how I build the AndroidConfig:</p>
<pre><code> private AndroidConfig getAndroidConfig(String topic) {
return AndroidConfig.builder()
.putData("image", "url-to-... | Is it possible to add an image as icon in the notification tray using the java firebase API? I have a spring boot backend and this is how I build the AndroidConfig: [CODE] but there is no image here in the notification tray: Is it even possible to do this with the java API? | java|android|spring|firebase|firebase-cloud-messaging | 0 | 2020-02-05T16:12:56.127Z | 2,020 | 2 | 16 | 2 | 1,221 | 1 | 274 | 73 | 5 | 1 | true | false | false | false | false | false | zero |
60,079,851 | Has anyone got notifyDataSetChanged() working in Kotlin? | <p>I have a <code>RecyclerView</code> which displays a list of short phrases read from the <code>MutableList</code> <em>modSamplePhrases</em>. When an item is tapped, a <code>DialogFragment</code> pops up which shows the phrase from the list item and allows it to be edited.
When the edit is completed, the new text is ... | I have a RecyclerView which displays a list of short phrases read from the MutableList modSamplePhrases . When an item is tapped, a DialogFragment pops up which shows the phrase from the list item and allows it to be edited. When the edit is completed, the new text is returned to the RecyclerFragment via the function g... | android|kotlin|android-recyclerview|notifydatasetchanged|notifyitemchanged | 0 | 2020-02-05T16:13:42.817Z | 2,020 | 2 | 16 | 2 | 877 | 1 | 757 | 56 | 5 | 4 | true | false | false | false | false | false | zero |
60,079,888 | Destroying a ViewPager | <p>I'm trying to clone the TikTok app. For the home screen, I made a VerticalViewPager (Custom view pager) with a like button, title, and comments. I'm retrieving videos from Firebase. TikTok model has a video URL, title name, and the number of likes. The problem is when I'm trying to go to the next video previous vide... | I'm trying to clone the TikTok app. For the home screen, I made a VerticalViewPager (Custom view pager) with a like button, title, and comments. I'm retrieving videos from Firebase. TikTok model has a video URL, title name, and the number of likes. The problem is when I'm trying to go to the next video previous video i... | java|android|android-fragments|android-viewpager|fragmentstatepageradapter | 1 | 2020-02-05T16:15:49.253Z | 2,020 | 2 | 16 | 2 | 71 | 1 | 487 | 22 | 5 | 2 | true | false | false | false | false | false | low |
60,080,033 | Zebra Barcode Scanner SDK : Xamarin Forms | <p>Are there any <strong>examples/GitHub projects/documents</strong> available online to integrate Zebra Barcode Scanning SDK into Xamarin Forms App for both iOS and Android ? </p>
<p>Moreover, Can we install our own Xamarin Forms App on Zebra Rugged Barcode Scanners ? If so what are the device types ? </p> | Are there any examples/GitHub projects/documents available online to integrate Zebra Barcode Scanning SDK into Xamarin Forms App for both iOS and Android ? Moreover, Can we install our own Xamarin Forms App on Zebra Rugged Barcode Scanners ? If so what are the device types ? | xamarin.forms|xamarin.android|xamarin.ios|barcode-scanner | 2 | 2020-02-05T16:24:41.553Z | 2,020 | 2 | 16 | 2 | 3,592 | 1 | 275 | 41 | 4 | 0 | false | false | true | false | false | false | low |
60,080,175 | Why app name not showing on the top while installing? | <p>please help I extracted my apk but app name not showing on the top of install wizard. See the image</p>
<p><a href="https://i.stack.imgur.com/o4Yez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o4Yez.png" alt="screenshot"></a></p> | please help I extracted my apk but app name not showing on the top of install wizard. See the image | android | -3 | 2020-02-05T16:32:00.340Z | 2,020 | 2 | 16 | 2 | 63 | 1 | 99 | 53 | 1 | 0 | false | false | false | false | false | true | negative |
60,080,192 | Displaying download speed in Download manager notification | <p>Q1. I'm new to android. I'm trying to develop an app which uses download manager. I want to display download speed of the connection (mobile/Wifi whatever connection is the user on and downloading). I don't how to achieve this. </p>
<p>Q2. Is there any issues with the download manager not downloading via local addr... | Q1. I'm new to android. I'm trying to develop an app which uses download manager. I want to display download speed of the connection (mobile/Wifi whatever connection is the user on and downloading). I don't how to achieve this. Q2. Is there any issues with the download manager not downloading via local address like 192... | android|notifications|android-download-manager | 0 | 2020-02-05T16:33:15.013Z | 2,020 | 2 | 16 | 2 | 256 | 0 | 543 | 58 | 3 | 1 | true | true | false | false | false | false | zero |
60,080,256 | Unable to launch app on notification in Android 10 ionic | <p>I'm developing an hybrid app using Ionic. The app is receiving incoming calls through SIP communication and it is working fine... except for Android 10 devices.</p>
<p>When the app is in background/foreground it is working as expected. However, when I kill it, it doesn't.</p>
<p>The expected behaviour is at is fol... | I'm developing an hybrid app using Ionic. The app is receiving incoming calls through SIP communication and it is working fine... except for Android 10 devices. When the app is in background/foreground it is working as expected. However, when I kill it, it doesn't. The expected behaviour is at is follows: User A calls ... | android|angular|ionic-framework|notifications|push | 1 | 2020-02-05T16:36:37.973Z | 2,020 | 2 | 16 | 2 | 221 | 1 | 1,145 | 56 | 5 | 2 | true | false | false | false | false | false | low |
60,080,260 | How to change the height of CollapsingToolbarLayout with fragment inside? | <p>I have a activity with CollapsingToolbarLayout and fragment inside. CollapsingToolbarLayout has <em>wrap_content</em> height. The fragment height is set to <em>wrap_content</em> too. When all data are loaded the fragment height changes, but CollapsingToolbarLayout's height is still as it was before. Because of that ... | I have a activity with CollapsingToolbarLayout and fragment inside. CollapsingToolbarLayout has wrap_content height. The fragment height is set to wrap_content too. When all data are loaded the fragment height changes, but CollapsingToolbarLayout's height is still as it was before. Because of that the part of fragment ... | android|android-layout|android-fragments|android-collapsingtoolbarlayout | 0 | 2020-02-05T16:36:54.813Z | 2,020 | 2 | 16 | 2 | 94 | 0 | 727 | 73 | 4 | 2 | true | true | false | false | false | false | zero |
60,080,372 | I want to create my notification if the alert date is equal to now date and notification will create all dates from alert to vaccine date | <p><em>Here is the code I want to create notification from alert date to vaccination date this notification will create all dates from alert to vaccine how I can do this?</em></p>
<pre><code> SimpleDateFormat da = new SimpleDateFormat("d MMM,yyyy");
try {
Date al = da... | Here is the code I want to create notification from alert date to vaccination date this notification will create all dates from alert to vaccine how I can do this? [CODE] '''''''''''''''''''''''''''''''''''' [CODE] ........................................................................................... | java|android|date|android-notifications | 0 | 2020-02-05T16:42:56.720Z | 2,020 | 2 | 16 | 2 | 27 | 1 | 306 | 137 | 4 | 2 | true | false | false | false | false | false | zero |
60,080,647 | Can we change the Size of text which is written in values of putextra and assigned in next activity of textview? | <p>I am working on a project in which, I am exporting string value from one activity to 2nd activity but I just can't resize that string value which is assigned inside <code>TextView</code> in second activity.</p>
<p>Code of 1st activity:</p>
<pre><code> if (modelList.get(position).getJtitle().equals("Hello World"))... | I am working on a project in which, I am exporting string value from one activity to 2nd activity but I just can't resize that string value which is assigned inside TextView in second activity. Code of 1st activity: [CODE] 2nd activity code : [CODE] The output looks like this, how can we change that textSize: | android|android-studio|listview|android-intent|text-size | 0 | 2020-02-05T16:59:09.480Z | 2,020 | 2 | 16 | 2 | 57 | 2 | 310 | 112 | 5 | 2 | true | false | false | false | false | false | zero |
60,080,879 | Which SingleLiveData can handle screen rotation and event emitted before observe | <p>In my application, I need a <code>LiveData</code>, that emits once.</p>
<p>I found a good <a href="https://proandroiddev.com/livedata-with-single-events-2395dea972a8" rel="nofollow noreferrer">solution</a>, but it has a few issues:</p>
<ul>
<li>It does not handle the event, which has emitted before calling LiveDat... | In my application, I need a LiveData , that emits once. I found a good solution , but it has a few issues: It does not handle the event, which has emitted before calling LiveData.observe. It does not handle the event, which has emitted while screen rotation (between fragment's onDestroyView and onCreateView ). Is there... | android|android-livedata | 0 | 2020-02-05T17:13:01.313Z | 2,020 | 2 | 17 | 2 | 177 | 1 | 373 | 80 | 2 | 0 | false | false | false | false | false | false | zero |
60,080,924 | Room db - order by alias not working in query with group by | <p>I am having this simple entity</p>
<pre><code>@Entity
data class WebpageVisit(
@PrimaryKey(autoGenerate = true) val id: Long?,
val url: String,
val domain: String,
val visitTimestamp: Long,
val visitsCount: Int)
</code></pre>
<p>and i am trying to run this simple query</p>
<pre><code> @Quer... | I am having this simple entity [CODE] and i am trying to run this simple query [CODE] The problem is that the result is not ordered. The data are grouped together correctly, the visitsCount value is correct, but the data are not ordered. Thanks for any hint. | android|database|kotlin|android-room | 1 | 2020-02-05T17:15:33.190Z | 2,020 | 2 | 17 | 2 | 388 | 2 | 258 | 59 | 4 | 2 | true | false | false | false | false | false | low |
60,080,992 | startActivity without adding to back stack | <p>This question has been asked in different ways before but I have yet to find a solution that is working. I believe the issue to be related to the intent flags for starting an activity but adding all possible solutions the problem still persists. Originally no_histroy and clear_top were sufficient but that no longer ... | This question has been asked in different ways before but I have yet to find a solution that is working. I believe the issue to be related to the intent flags for starting an activity but adding all possible solutions the problem still persists. Originally no_histroy and clear_top were sufficient but that no longer wor... | android|android-intent|android-activity | 0 | 2020-02-05T17:20:30.037Z | 2,020 | 2 | 17 | 2 | 103 | 1 | 1,318 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
60,081,102 | Validate Admob reward video using PHP | <p>I added video ads for an android game, but it must be verified by PHP before the points can be added but I didn't find anyway to check it.</p> | I added video ads for an android game, but it must be verified by PHP before the points can be added but I didn't find anyway to check it. | android|admob | 2 | 2020-02-05T17:27:27.197Z | 2,020 | 2 | 17 | 2 | 704 | 2 | 138 | 37 | 2 | 0 | false | false | false | false | false | false | low |
60,081,153 | Waiting to volley response to arrive before returning it's response | <p>I built a login system that checks the input of the user and checks with the data if he can log in.</p>
<p>The server side of the application is working fine but I'm not able to stop the main thread of the application and wait for the response to arrive.</p>
<p>basically I'm using Volley library to communicate wit... | I built a login system that checks the input of the user and checks with the data if he can log in. The server side of the application is working fine but I'm not able to stop the main thread of the application and wait for the response to arrive. basically I'm using Volley library to communicate with my server. first ... | java|android|multithreading|networking|android-volley | 0 | 2020-02-05T17:31:10.050Z | 2,020 | 2 | 17 | 2 | 68 | 0 | 700 | 67 | 5 | 1 | true | true | false | false | false | false | zero |
60,081,179 | Can't accept Android Licenses (Flutter) | <p>Well, a month ago I was learning a bit of Flutter, and it was all fine, no problems, so, last week I lost everything in my PC, and need to format it, I did. So yesterday I tried install Flutter but, when accepting Android Licenses, it gave me this error:</p>
<p><code>Warning: File /home/damiani/.android/repositorie... | Well, a month ago I was learning a bit of Flutter, and it was all fine, no problems, so, last week I lost everything in my PC, and need to format it, I did. So yesterday I tried install Flutter but, when accepting Android Licenses, it gave me this error: Warning: File /home/damiani/.android/repositories.cfg could not b... | android|flutter|dart|sdk|licensing | 4 | 2020-02-05T17:33:25.117Z | 2,020 | 2 | 17 | 2 | 1,913 | 3 | 953 | 39 | 5 | 2 | true | false | false | false | false | false | low |
60,081,241 | Is it possible to add static kernel drivers to the Linux kernel of a distribution? | <p>I may have a couple assumptions of Linux incorrect about the Linux system, and for that I apologize.</p>
<p>I have been educating myself on the Android and Linux systems for a while now and I started looking into installing a custom boot loader and Linux system onto an older Samsung tablet. Immediately upon looking... | I may have a couple assumptions of Linux incorrect about the Linux system, and for that I apologize. I have been educating myself on the Android and Linux systems for a while now and I started looking into installing a custom boot loader and Linux system onto an older Samsung tablet. Immediately upon looking into the f... | linux|linux-kernel|kernel|driver|android-source | 1 | 2020-02-05T17:37:06.323Z | 2,020 | 2 | 17 | 2 | 273 | 0 | 2,726 | 82 | 5 | 0 | false | true | false | false | false | false | low |
60,081,249 | How to make pdf image fit the whole screen android | <p>I'm using <a href="https://github.com/sbpinilla/ImgtoPdf/blob/master/app/src/main/java/com/sergio/imgtopdf/PdfUtils.java" rel="nofollow noreferrer">this depo git</a> application that allows you to capture or choose images and save them in a pdf document. It's working great except the image saved does not fit the who... | I'm using this depo git application that allows you to capture or choose images and save them in a pdf document. It's working great except the image saved does not fit the whole screen. So I tried changing theses numbers Document document = new Document(PageSize.A4, 38, 38, 50, 38); or image.setBorderWidth(15); [CODE] ... | java|android|itext|pdf-generation | 1 | 2020-02-05T17:37:38.380Z | 2,020 | 2 | 17 | 2 | 2,208 | 4 | 715 | 50 | 4 | 2 | true | false | false | false | false | false | low |
60,081,528 | Have I to create SweepGradient object every time when I need to change its colors positions? | <p>I'm doing circle animation with change of positions of colors in a SweepGradient and after creation of the shader I set a local matrix for it to rotate gradient. </p>
<p><strong>So my question is:</strong></p>
<p>Can I reuse my created SweepGradient object to change colors positions in it or I have to create it ev... | I'm doing circle animation with change of positions of colors in a SweepGradient and after creation of the shader I set a local matrix for it to rotate gradient. So my question is: Can I reuse my created SweepGradient object to change colors positions in it or I have to create it every time when I have a new state. Sec... | android | 0 | 2020-02-05T17:56:35.063Z | 2,020 | 2 | 17 | 2 | 95 | 0 | 451 | 92 | 1 | 0 | false | true | false | false | false | false | zero |
60,081,671 | how the setting of AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM relate to result of getResources().getConfiguration().uiMode | <p>when using </p>
<pre><code>getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK
</code></pre>
<p>to check what mode the app is currently in, </p>
<pre><code>int currentNightMode = getResources().getConfiguration().uiMode
& Configuration.UI_MODE_NIGHT_MASK
switch (currentNigh... | when using [CODE] to check what mode the app is currently in, [CODE] if called this with AppCompatDelegate.MODE_NIGHT_YES earlier [CODE] is the return of currentNightMode to be Configuration.UI_MODE_NIGHT_YES ? what it would return when the AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM was set before [CODE] and the device... | android-night-mode|appcompatdelegate | 1 | 2020-02-05T18:06:45.570Z | 2,020 | 2 | 18 | 2 | 1,559 | 2 | 381 | 122 | 2 | 4 | true | false | false | false | false | false | low |
60,081,674 | Bluetooth on Android | <p>Super noob question. Apologies in advance. I've spent hours and hours trying to find what I'm looking for in the forums. But I don't know exactly what it is that I don't know. </p>
<p>I was asked to make an app to replace a piece of hardware. Right now there are 2 pcbs with bluetooth modules on them. One sends a si... | Super noob question. Apologies in advance. I've spent hours and hours trying to find what I'm looking for in the forums. But I don't know exactly what it is that I don't know. I was asked to make an app to replace a piece of hardware. Right now there are 2 pcbs with bluetooth modules on them. One sends a signal to the ... | android|bluetooth | 0 | 2020-02-05T18:06:54.467Z | 2,020 | 2 | 18 | 2 | 26 | 0 | 1,136 | 20 | 2 | 0 | false | true | false | false | false | false | zero |
60,081,880 | How to change the text of a TextView within an interface | <p>everybody.
Actually I'm doing an application in Android Studio.
I have a problem when I try to change the text of a TextView that belongs to a Dialog.
I think the problem is because I'm trying to do a setText inside to an interface.
This is my Dialog.</p>
<pre><code> private void showDialogDeEspera() {
AlertDia... | everybody. Actually I'm doing an application in Android Studio. I have a problem when I try to change the text of a TextView that belongs to a Dialog. I think the problem is because I'm trying to do a setText inside to an interface. This is my Dialog. [CODE] and this is my interface where I get the response and where I... | android|interface | 0 | 2020-02-05T18:21:38.157Z | 2,020 | 2 | 18 | 2 | 26 | 1 | 551 | 56 | 2 | 3 | true | false | false | false | false | false | zero |
60,081,964 | lateinit property viewModel not initialized when calling a method on click from RecyclerView Adapter | <p>I'm trying to delete a note from a Room Database by calling a method when the user long clicks
on the note, I set up the onLongClickListener on the RView adapter:</p>
<pre><code>viewHolder.itemView.setOnCLickListener{
NotesFragment().deleteSingleNote(notesID)
}
</code></pre>
<p>On NotesFragmen... | I'm trying to delete a note from a Room Database by calling a method when the user long clicks on the note, I set up the onLongClickListener on the RView adapter: [CODE] On NotesFragment, the method looks like: [CODE] and on the ViewModel the method deletes the note through a coroutine. The app crashes on long click, s... | android|kotlin|android-recyclerview|viewmodel | 1 | 2020-02-05T18:27:38.470Z | 2,020 | 2 | 18 | 2 | 545 | 1 | 947 | 100 | 4 | 2 | true | false | false | false | false | false | low |
60,081,995 | Kotlin coroutines block main thread in Android | <p>I am new in Kotlin and coroutines. I have a <code>fun</code> in my activity and inside it, check <code>User</code> username and password and if its true, return <code>Users</code> object.<br>
every thing is Ok. but when I press button, my activity blocked and wait for response of <code>Users</code> login.<br>
I use ... | I am new in Kotlin and coroutines. I have a fun in my activity and inside it, check User username and password and if its true, return Users object. every thing is Ok. but when I press button, my activity blocked and wait for response of Users login. I use this fun: [CODE] It's my ViewModel : [CODE] UsersService: [CODE... | android|kotlin|retrofit | 7 | 2020-02-05T18:29:46.937Z | 2,020 | 2 | 18 | 2 | 4,954 | 2 | 447 | 46 | 3 | 4 | true | false | true | false | false | false | medium |
60,082,021 | how implement an android sidebar menu? | <p>what is best solution to implement a sidebar menu like below ?
items of sidebar and the content of each section comes from server(count of items is variable)</p>
<ul>
<li>section list (in left side)is scrollable </li>
<li>section item count can be more than 20 item</li>
<li>i use MVVM</li>
</ul>
<p><br/> i want so... | what is best solution to implement a sidebar menu like below ? items of sidebar and the content of each section comes from server(count of items is variable) section list (in left side)is scrollable section item count can be more than 20 item i use MVVM i want some advices about view implementation for best performance... | android|android-menu | 0 | 2020-02-05T18:31:27.907Z | 2,020 | 2 | 18 | 2 | 818 | 3 | 338 | 38 | 2 | 0 | false | false | false | false | false | false | zero |
60,082,037 | Cannot call specific timeout overload in Observable; kotlin cannot match the arguments | <p>I'm not entirely sure if this is a Kotlin issue or an RxJava issue but I'm leaning on the former.</p>
<p>I'm trying to call a specific <a href="http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html#timeout-io.reactivex.functions.Function-io.reactivex.ObservableSource-" rel="nofollow noreferrer">timeout</a... | I'm not entirely sure if this is a Kotlin issue or an RxJava issue but I'm leaning on the former. I'm trying to call a specific timeout overload on an Observable, and the kotlin compiler won't let me. Here's the example code: [CODE] The compiler complains on the timeout call with the following: [CODE] I'm not even sure... | android|kotlin|rx-java2 | 0 | 2020-02-05T18:33:23.633Z | 2,020 | 2 | 18 | 2 | 125 | 1 | 475 | 86 | 3 | 2 | true | false | false | false | false | false | zero |
60,082,117 | Can we get Device Angle (Like compass) with 95-100 % accuracy? | <p>As you all know when compass come near magnetic field its value got disturbance and it went away from its actual value. I have been working on a project in which i have to get device rotation with 95% accuracy. I have tried number of sensors which can be used to get device angle but all have some sort of external fa... | As you all know when compass come near magnetic field its value got disturbance and it went away from its actual value. I have been working on a project in which i have to get device rotation with 95% accuracy. I have tried number of sensors which can be used to get device angle but all have some sort of external facto... | android|android-sensors|compass | 0 | 2020-02-05T18:37:49.110Z | 2,020 | 2 | 18 | 2 | 61 | 0 | 1,167 | 62 | 3 | 0 | false | true | false | false | false | false | zero |
60,082,204 | Is there a way to store a variable data type in a column in Room | <p>I just started a new job and the first major task I was assigned was to upgrade our app from using a custom SQLiteHelper implementation to using Room.</p>
<p>Currently we have a table that is literally just a table of Key/Value pairs where the value is variable (ie sometimes the variable is a String, long, int or b... | I just started a new job and the first major task I was assigned was to upgrade our app from using a custom SQLiteHelper implementation to using Room. Currently we have a table that is literally just a table of Key/Value pairs where the value is variable (ie sometimes the variable is a String, long, int or boolean) [al... | java|android|sqlite|kotlin|android-room | 0 | 2020-02-05T18:43:14.743Z | 2,020 | 2 | 18 | 2 | 138 | 1 | 1,232 | 64 | 5 | 6 | true | false | false | false | false | false | zero |
60,082,227 | Why in viewModelScope.launch(Dispatchers.IO) the code execute sequential? | <p>I know that in Kotlin , by default "<strong>suspend</strong>" is a sequential functions.
OK.
But here snippet in my ViewModel:</p>
<p>import androidx.lifecycle.viewModelScope</p>
<pre><code> private fun finishProcessRecognizedCheck(
firebaseVisionImage: FirebaseVisionImage,
firebaseVisionText: Fire... | I know that in Kotlin , by default " suspend " is a sequential functions. OK. But here snippet in my ViewModel: import androidx.lifecycle.viewModelScope [CODE] Here log [CODE] as you can see the functions saveRecognizedImage and saveRecognizedText ARE NOT SUSPEND functions. But in [CODE] all code is executed sequential... | android|kotlin | 0 | 2020-02-05T18:44:19.900Z | 2,020 | 2 | 18 | 2 | 973 | 1 | 329 | 73 | 2 | 3 | true | false | false | false | false | false | zero |
60,082,254 | how to prevent data from being lost while pressing back button | <p>The <strong>MainActivity</strong> code is</p>
<pre><code>class MainActivity : AppCompatActivity() {
var number=0
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
if(savedInstanceState!=null){
number=savedInstanceState.ge... | The MainActivity code is [CODE] } See When I run the app and press back button data of number is not restored however when I press the home button data is restored. | android|kotlin|android-savedstate | 0 | 2020-02-05T18:46:03.047Z | 2,020 | 2 | 18 | 2 | 1,009 | 2 | 164 | 62 | 3 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.