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,069,272 | error when data binding in android causes cannnot find symbol ActivityMainBindingImpl | <p>So, I'm trying to create an onclick listener on a button using databinding using this tutorial.</p>
<p><a href="https://www.androidhive.info/android-working-with-databinding/" rel="nofollow noreferrer">databinding tutorial</a> so as far as when I keep the onclick inside my activity_main.xml layout the button click ... | So, I'm trying to create an onclick listener on a button using databinding using this tutorial. databinding tutorial so as far as when I keep the onclick inside my activity_main.xml layout the button click works. But I want to send my data to an include_main_layout.xml but it tells me I have the error.. build.gradle(ap... | android|xml|android-layout|data-binding|android-databinding | 0 | 2020-02-05T04:59:31.953Z | 2,020 | 2 | 4 | 2 | 345 | 2 | 560 | 85 | 5 | 5 | true | false | false | false | false | false | zero |
60,069,349 | How to get callback from Room Database android Kotlin | <p>I want to get just row count as Int value from room database,
not from initialized <code>LiveData</code> such as <code>livedata.value?.size</code></p>
<p><strong>Dao class</strong></p>
<pre><code> @Dao
interface MyDao {
@Query("SELECT COUNT(*) FROM User")
fun getUserCount(): Int
}
</code></pre>
<p><str... | I want to get just row count as Int value from room database, not from initialized LiveData such as livedata.value?.size Dao class [CODE] Repository class [CODE] ViewModel class [CODE] This is what I want. But as you know we need to access room database at background thread, not at mainthread so I changed the code like... | android|database|kotlin | 2 | 2020-02-05T05:07:59.100Z | 2,020 | 2 | 5 | 2 | 240 | 1 | 439 | 53 | 3 | 6 | true | false | false | false | false | false | low |
60,069,520 | Switching to a 'Main' coroutine and suspending it to send result back to an 'IO' coroutine | <p>When a long running 'IO' coroutine is running, I need to access a view to draw its content onto a canvas at some point of time. I assume that I need to switch to 'Main' coroutine before doing anything about view. And, I, also, assume that I need to wait for view to be able to do its task. I am doing it like this:</p... | When a long running 'IO' coroutine is running, I need to access a view to draw its content onto a canvas at some point of time. I assume that I need to switch to 'Main' coroutine before doing anything about view. And, I, also, assume that I need to wait for view to be able to do its task. I am doing it like this: [CODE... | android|kotlin|kotlin-coroutines | 1 | 2020-02-05T05:32:38.930Z | 2,020 | 2 | 5 | 2 | 385 | 1 | 469 | 90 | 3 | 1 | true | false | false | false | false | false | low |
60,069,543 | Flutter: `Container` height cannot be adjusted inside `Stack` | <p>I am trying too use the <code>Stack</code> in <code>Flutter</code> to overlap elements in my login screen. Basically, I have an image at the top, then at the bottom (overlap) a <code>Container</code> with the logo and login fields, buttons etc.</p>
<p>Below is my code</p>
<pre><code>import 'package:flutter/materia... | I am trying too use the Stack in Flutter to overlap elements in my login screen. Basically, I have an image at the top, then at the bottom (overlap) a Container with the logo and login fields, buttons etc. Below is my code [CODE] The result is not as expected, see below. The logo is halfway through, and it seems the Co... | android|ios|flutter|mobile | 1 | 2020-02-05T05:35:01.170Z | 2,020 | 2 | 5 | 2 | 4,485 | 3 | 719 | 61 | 4 | 1 | true | false | true | false | false | false | low |
60,069,611 | Sort firebase data base on child value | <p>I'm creating simple application with firebase. My firebase database structure is look like this,</p>
<pre><code>user:{
uid:{
name:user1,
age:22,
score:80,
address:mycity,
uid:uid
}
},
contact:{
uid:{
phone:123456
}
}
</code></pre>
<p>And this is my database refe... | I'm creating simple application with firebase. My firebase database structure is look like this, [CODE] And this is my database reference code. [CODE] I want to sort data by "score". If I sort it with "Comparator" in client side . Two arraylist data cannot be matched . How to sort data by "score". Sorry for my bad Engl... | android|firebase|firebase-realtime-database | 1 | 2020-02-05T05:40:52.190Z | 2,020 | 2 | 5 | 2 | 185 | 1 | 452 | 38 | 3 | 2 | true | false | false | false | false | false | low |
60,069,732 | unable to parse jsonarray of jsonarray inside object using retrofit? | <p>I am trying to parse the <code>JSON array</code> <code>payment_details</code> inside the data list of objects.</p>
<p>Here I had parsed the data array successfully called inside recycler view but I am unable to call <code>payment_details</code> array. </p>
<p><strong>Adapter.class</strong></p>
<pre><code>public c... | I am trying to parse the JSON array payment_details inside the data list of objects. Here I had parsed the data array successfully called inside recycler view but I am unable to call payment_details array. Adapter.class [CODE] MainActivity.class [CODE] This is my response [CODE] this is my InProgress_Response [CODE] th... | android|arrays|json|retrofit | 3 | 2020-02-05T05:54:01.500Z | 2,020 | 2 | 5 | 2 | 205 | 2 | 351 | 68 | 4 | 5 | true | false | false | false | false | false | low |
60,069,742 | Transparent background of HEIC image is black | <p>I am changing a PNG image with a transparent background to HEIC format. I want to display the modified image using Android Studio's ImageView. To use the HEIC file I used an asset folder and an ImageDecoder.</p>
<p>However, the transparent background of the HEIC turned black.
I converted png to heic on various site... | I am changing a PNG image with a transparent background to HEIC format. I want to display the modified image using Android Studio's ImageView. To use the HEIC file I used an asset folder and an ImageDecoder. However, the transparent background of the HEIC turned black. I converted png to heic on various sites and expor... | android-studio|kotlin|heic | 0 | 2020-02-05T05:55:05.317Z | 2,020 | 2 | 5 | 2 | 478 | 0 | 471 | 45 | 3 | 2 | true | true | false | false | false | false | zero |
60,069,744 | Navigation from one nav graph to other nav graph android | <p>I have two activities : Main activity and Home activity</p>
<p>Main activity has following fragments : Login and onboarding and it has navGraph1</p>
<p>Home activity has three fragments with bottom navigation and it has navGraph2</p>
<p>Here is the flow of my app:</p>
<p>After login, if onBoarding is already don... | I have two activities : Main activity and Home activity Main activity has following fragments : Login and onboarding and it has navGraph1 Home activity has three fragments with bottom navigation and it has navGraph2 Here is the flow of my app: After login, if onBoarding is already done then open home activity. if onBoa... | android|android-jetpack|android-navigation|android-architecture-navigation | 0 | 2020-02-05T05:55:17.017Z | 2,020 | 2 | 5 | 2 | 1,162 | 1 | 808 | 56 | 4 | 0 | false | false | false | false | false | false | zero |
60,069,786 | Stop fragment refresh in bottom nav using navhost | <p>This problem has been asked a few times now, but we are in 2020 now, did anyone find a good usable solution to this yet?</p>
<p>I want to be able to navigate using the bottom navigation control without refreshing the fragment each time they are selected. Here is what I have currently:</p>
<p>navigation/main.xml:</... | This problem has been asked a few times now, but we are in 2020 now, did anyone find a good usable solution to this yet? I want to be able to navigate using the bottom navigation control without refreshing the fragment each time they are selected. Here is what I have currently: navigation/main.xml: [CODE] activity_mail... | android|android-layout|android-fragments|kotlin | 23 | 2020-02-05T05:59:43.980Z | 2,020 | 2 | 5 | 2 | 18,166 | 14 | 579 | 49 | 4 | 3 | true | false | true | true | true | false | high |
60,069,807 | Can we make nfc card readable but only to specific devices? | <p>I am working on nfc card and i am totally new on it. I am working on android device and till now i am able to read and write in nfc tag. but is it possible to make nfc tag readable to only my specific devices? Please help.</p> | I am working on nfc card and i am totally new on it. I am working on android device and till now i am able to read and write in nfc tag. but is it possible to make nfc tag readable to only my specific devices? Please help. | android|nfc | -1 | 2020-02-05T06:01:50.180Z | 2,020 | 2 | 6 | 2 | 328 | 1 | 222 | 59 | 2 | 0 | false | false | false | false | false | true | negative |
60,069,883 | Prevent Elvis Operator from breaking into next line on reformatting | <p>On certain occasions, Android Studio will break elvis operator into the next line when I reformat my code. I couldn't find the option to turn it off in the Code Style settings (or I could have missed them). I personally find it cleaner to have it on the same line. </p>
<p>Any helps would be appreciated.</p>
<pre><... | On certain occasions, Android Studio will break elvis operator into the next line when I reformat my code. I couldn't find the option to turn it off in the Code Style settings (or I could have missed them). I personally find it cleaner to have it on the same line. Any helps would be appreciated. [CODE] | android|android-studio|kotlin | 0 | 2020-02-05T06:10:11.773Z | 2,020 | 2 | 6 | 2 | 218 | 1 | 303 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
60,069,887 | Convert PSD files to Android XML | <p>Is there any open source tool which takes the PSD layer (.PSD) and creates layout in XML automatically.
I tried with Zepline online service</p> | Is there any open source tool which takes the PSD layer (.PSD) and creates layout in XML automatically. I tried with Zepline online service | android|android-layout|psd | 0 | 2020-02-05T06:10:29.467Z | 2,020 | 2 | 6 | 2 | 111 | 0 | 139 | 32 | 3 | 0 | false | true | false | false | false | false | zero |
60,069,920 | What is needed to run ELF binaries compiled from android APKs? (understanding android internals) | <p>I'm trying to understand how Android works internally. Before ART, it used Dalvik to run java code. I guess it created a Dalkiv process in 'Linux' kernel which was simply a VM that ran the dex bytecode.</p>
<p>For ART, the dex bytecode is compiled into instructions in the processor's architecture (happens during th... | I'm trying to understand how Android works internally. Before ART, it used Dalvik to run java code. I guess it created a Dalkiv process in 'Linux' kernel which was simply a VM that ran the dex bytecode. For ART, the dex bytecode is compiled into instructions in the processor's architecture (happens during the installat... | android|linux|linux-kernel|kernel|elf | 1 | 2020-02-05T06:13:37.410Z | 2,020 | 2 | 6 | 2 | 112 | 0 | 1,141 | 96 | 5 | 0 | false | true | false | false | false | false | low |
60,070,017 | D/skia: --- Failed to create image decoder with message 'unimplemented' | <p>i am using <a href="https://github.com/jhansireddy/AndroidScannerDemo" rel="noreferrer">https://github.com/jhansireddy/AndroidScannerDemo</a> this scan library in my project.</p>
<p>when i capture image i am getting <code>D/skia: --- Failed to create image decoder with message 'unimplemented'</code> in console and ... | i am using https://github.com/jhansireddy/AndroidScannerDemo this scan library in my project. when i capture image i am getting D/skia: --- Failed to create image decoder with message 'unimplemented' in console and The captured image not sets to imageview in Android P . also when i am testing same app in Android Q i am... | android|android-camera|android-manifest|android-fileprovider | 20 | 2020-02-05T06:22:44.107Z | 2,020 | 2 | 6 | 2 | 39,258 | 3 | 490 | 71 | 4 | 0 | false | false | true | true | true | false | medium |
60,070,039 | Recycleview PagerSnapHelper scrolling distance | <p>How can I customize scroll distance for PagerSnapHelper so that Recycleview scrolling will be with current visible item height .</p>
<pre><code> binding.videoTrendsRecycle.setLayoutManager(mLayoutManager);
binding.videoTrendsRecycle.setMediaObjects(videosResponse.getVideosResponseArrayLi... | How can I customize scroll distance for PagerSnapHelper so that Recycleview scrolling will be with current visible item height . [CODE] | android|scroll|pagersnaphelper | 1 | 2020-02-05T06:24:39.293Z | 2,020 | 2 | 6 | 2 | 76 | 0 | 135 | 46 | 3 | 1 | true | true | false | false | false | false | low |
60,070,097 | Why Facebook SDK is giving error invalid hash key? | <p>Im using Unity 2019.3.0f3 on Windows 10. I've imported Google-Sign In Plugin and Facebook SDK. I've set up an app in Facebook Developers. I've gone through the process detailed <a href="https://answers.unity.com/questions/1087280/how-to-generate-key-hash-for-facebook.html" rel="nofollow noreferrer">here</a> to gener... | Im using Unity 2019.3.0f3 on Windows 10. I've imported Google-Sign In Plugin and Facebook SDK. I've set up an app in Facebook Developers. I've gone through the process detailed here to generate the hash key. In the inspector, FacebookSettings under Android Build Facebook Settings, Package Name, Class Name and Debug And... | android|facebook|unity3d|hash | 1 | 2020-02-05T06:29:31.390Z | 2,020 | 2 | 6 | 2 | 1,295 | 1 | 1,022 | 50 | 4 | 0 | false | false | false | false | false | false | low |
60,070,107 | Shortest way of sorting and comparing two lists | <p>I have two lists , one is of type String and another is of type Resp(a model class). I want to sort the Resp By comparing from first list like if string list contains: <strong>“abc”,”iis”,”kjkk”</strong> then the same order is maintained in Resp list .
The Resp list of type : </p>
<pre><code>data class Resp(
@S... | I have two lists , one is of type String and another is of type Resp(a model class). I want to sort the Resp By comparing from first list like if string list contains: “abc”,”iis”,”kjkk” then the same order is maintained in Resp list . The Resp list of type : [CODE] So the sorting is to be done using Resp.first What I ... | java|android|kotlin | 0 | 2020-02-05T06:30:27.370Z | 2,020 | 2 | 6 | 2 | 180 | 2 | 454 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
60,070,111 | android -constraintLayout how to add elevation to sticky toolbar? | <p>I have created a constraintLayout but the toolbar i am using does not have shadow elevation. i dont see any shadow. here is an image of what i have so far: </p>
<p><a href="https://i.stack.imgur.com/Rd66p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rd66p.png" alt="enter image description her... | I have created a constraintLayout but the toolbar i am using does not have shadow elevation. i dont see any shadow. here is an image of what i have so far: i want the green part to be elevated and a bit of a shadow. you know the material header way. so when i scroll the recyclerview it looks lke its oging under the hea... | android|toolbar|android-constraintlayout | 0 | 2020-02-05T06:30:41.240Z | 2,020 | 2 | 6 | 2 | 1,080 | 2 | 601 | 65 | 3 | 1 | true | false | false | false | false | false | zero |
60,070,153 | Convert selected image into base64 string in Android (Java) | <p>Button click to open camera, take picture and tried to convert that selected picture to base64 string but not working. please check below code.</p>
<pre><code> private static final int CAMERA_PIC_REQUEST = 1337;
Button upload;
@Override
protected void onCreate(Bundle savedInstanceState) ... | Button click to open camera, take picture and tried to convert that selected picture to base64 string but not working. please check below code. [CODE] I worked below code for convert static image into base64 string, but i want to take picture and convert to base64 string. [CODE] | java|android|image|base64 | 0 | 2020-02-05T06:34:30.517Z | 2,020 | 2 | 6 | 2 | 768 | 2 | 279 | 59 | 4 | 2 | true | false | false | false | false | false | zero |
60,070,157 | How to hide views dynamically android? | <p>I receive some user data from server at my app. One of the field which I receive has boolean data type and it changes due to user actions on server. According to value of this variable I have to show/hide a part of my layout. But I don't have enough time for it or I did it in wrong way :( So, first of all I send req... | I receive some user data from server at my app. One of the field which I receive has boolean data type and it changes due to user actions on server. According to value of this variable I have to show/hide a part of my layout. But I don't have enough time for it or I did it in wrong way :( So, first of all I send reques... | android | 0 | 2020-02-05T06:34:42.517Z | 2,020 | 2 | 6 | 2 | 50 | 0 | 1,069 | 38 | 1 | 3 | true | true | false | false | false | false | zero |
60,070,233 | Cannot resolve ViewModelProvider construction in a fragment? | <p>I have been spending a lot of time trying to figure out why in the code below (towards the end), I get an error on ViewModelProvider(this). I also tried getActivity() instead of 'this', same issue. The error I get is "Cannot resolve constructor ..."</p>
<pre><code>
import androidx.fragment.app.Fragment;
import andr... | I have been spending a lot of time trying to figure out why in the code below (towards the end), I get an error on ViewModelProvider(this). I also tried getActivity() instead of 'this', same issue. The error I get is "Cannot resolve constructor ..." [CODE] | android|android-livedata|android-architecture-components|android-mvvm | 18 | 2020-02-05T06:41:20.817Z | 2,020 | 2 | 6 | 2 | 14,518 | 4 | 256 | 60 | 4 | 1 | true | false | true | true | true | false | medium |
60,070,254 | How to add animation in bottomsheet when changes its state | <p>My app contain a bottomsheeet and i am using following methods to change its state </p>
<pre><code> public void toggleBottomSheet() {
if (sheetBehavior.getState() != BottomSheetBehavior.STATE_EXPANDED) {
sheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
} else {
sheetBehavior.setSt... | My app contain a bottomsheeet and i am using following methods to change its state [CODE] But in some devices it is not showing animation properly ( Bottom to up ), It opens directly like popup. How to add animation so it looks it is coming from bottom. | android|animation|bottom-sheet|android-bottomsheetdialog | 0 | 2020-02-05T06:43:16.537Z | 2,020 | 2 | 6 | 2 | 292 | 1 | 253 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
60,070,402 | Fetch auto completed address using google map API for particular city | <p>I am building an android app where I am using google map API for fetching location. I had set Limit to country (India) addresses. Is there any way to set a limit for the state (Maharashtra) and city (Pune) wise in it?</p>
<p>Below is my code for fetching addresses using google map API key</p>
<pre class="lang-java... | I am building an android app where I am using google map API for fetching location. I had set Limit to country (India) addresses. Is there any way to set a limit for the state (Maharashtra) and city (Pune) wise in it? Below is my code for fetching addresses using google map API key [CODE] Below is my adapter code ( get... | android|google-maps|autocomplete|google-places-api | 1 | 2020-02-05T06:56:41.660Z | 2,020 | 2 | 6 | 2 | 274 | 1 | 380 | 69 | 4 | 2 | true | false | false | false | false | false | low |
60,070,427 | Cannot successfully rebuild android project - conflict in snapshot release handling policy | <p>We get below message every time we <strong>rebuild</strong> the project in android studio, any idea how to resolve this issue?</p>
<blockquote>
<p>The repository 'oss-snapshot-local' rejected the resolution of an
artifact
'oss-snapshot-local:com/android/tools/lint/lint-gradle/26.1.0/lint-gradle-26.1.0.pom'
... | We get below message every time we rebuild the project in android studio, any idea how to resolve this issue? The repository 'oss-snapshot-local' rejected the resolution of an artifact 'oss-snapshot-local:com/android/tools/lint/lint-gradle/26.1.0/lint-gradle-26.1.0.pom' due to conflict in the snapshot release handling ... | android | 0 | 2020-02-05T06:58:31.890Z | 2,020 | 2 | 6 | 2 | 198 | 1 | 496 | 90 | 1 | 0 | false | false | false | false | false | false | zero |
60,070,530 | Error on a Specific Line Number - Android Studio | <p>No matter how I change that specific line, even if I put nothing in it, or making it a comment, or delete the code all together, the error message keeps telling me that this line causes the error. I even tried deleting the class and copying it all into a new one but still same line numebr is an error. </p>
<p>The c... | No matter how I change that specific line, even if I put nothing in it, or making it a comment, or delete the code all together, the error message keeps telling me that this line causes the error. I even tried deleting the class and copying it all into a new one but still same line numebr is an error. The code with the... | javascript|java|android|android-studio | 0 | 2020-02-05T07:07:40.937Z | 2,020 | 2 | 7 | 2 | 202 | 2 | 396 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
60,070,533 | Android Job Scheduler Job does not execute after app is closed | <p>My Job executes perfectly if the app is open but if i close the app the jobservice is never executed. I have followed the tutorial here; <a href="https://codinginflow.com/tutorials/android/jobscheduler" rel="nofollow noreferrer">Job Scheduler - Code In Flow</a> and it just does not run (or maybe it runs and we do no... | My Job executes perfectly if the app is open but if i close the app the jobservice is never executed. I have followed the tutorial here; Job Scheduler - Code In Flow and it just does not run (or maybe it runs and we do not know it runs?). I have put in notifications and Log.d methods with in my methods so i can see if ... | java|android|job-scheduling|android-jobscheduler|background-task | 4 | 2020-02-05T07:07:45.163Z | 2,020 | 2 | 7 | 2 | 4,075 | 2 | 1,332 | 62 | 5 | 4 | true | false | true | false | false | false | low |
60,070,708 | Camera2: Remove Surface from already created CameraCaptureSession | <p>I am creating an application which takes video from both front and rear cameras simultaneously. Both cameras are sending images to respective <code>ImageReader</code> for some processing. I have a <code>TextureView</code> as well to show preview from <em>any one</em> of the user desired camera.</p>
<p>So the captur... | I am creating an application which takes video from both front and rear cameras simultaneously. Both cameras are sending images to respective ImageReader for some processing. I have a TextureView as well to show preview from any one of the user desired camera. So the capture session of camera showing preview has two su... | android|android-camera|surfaceview|android-camera2 | 1 | 2020-02-05T07:17:55.483Z | 2,020 | 2 | 7 | 2 | 608 | 1 | 684 | 65 | 4 | 1 | true | false | false | false | false | false | low |
60,070,739 | plugin request for plugin already on the classpath must not include a version | <p>I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plugin already on the classpath must not include a version" (w/out SO) found:
<a href="https://discuss.gradle.org/t/error-p... | I've done web search for "plugin request for plugin already on the classpath must not include a version site:stackoverflow.com" and found nothing that particular. Search for "plugin request for plugin already on the classpath must not include a version" (w/out SO) found: https://discuss.gradle.org/t/error-plugin-alread... | java|android|gradle | 18 | 2020-02-05T07:20:01.663Z | 2,020 | 2 | 7 | 2 | 22,248 | 3 | 2,072 | 77 | 3 | 3 | true | false | true | true | true | false | medium |
60,070,791 | How to solve java.lang.IllegalStateException while recording audio in android app | <p>I am creating an app to record audio.
I have created a fragment named 'Record' which contains a button to record audio.
This is the code of fragment</p>
<pre><code>public class Record extends Fragment {
private Button ButtonRecord;
private MediaRecorder recorder;
private String fileName = null;
private static fin... | I am creating an app to record audio. I have created a fragment named 'Record' which contains a button to record audio. This is the code of fragment [CODE] This is the code for start-stop recorder. [CODE] When I try to press the record button the app crashes and following error is shown. The error is shown in a pop-up.... | java|android|android-fragments | -1 | 2020-02-05T07:23:24.470Z | 2,020 | 2 | 7 | 2 | 490 | 2 | 327 | 81 | 3 | 3 | true | false | false | false | false | true | negative |
60,070,840 | How to make an admin panel or admin application for e-commerce android application | <p>I am making an e-commerce application and I want to make an admin panel for it. What will be better application or a website. This app is just for my college project and will not be published on play store.</p> | I am making an e-commerce application and I want to make an admin panel for it. What will be better application or a website. This app is just for my college project and will not be published on play store. | android|firebase|e-commerce|admin | -1 | 2020-02-05T07:26:16.537Z | 2,020 | 2 | 7 | 2 | 454 | 1 | 206 | 82 | 4 | 0 | false | false | false | false | false | true | negative |
60,070,846 | android:textAllCaps=“false” not working for com.google.android.material.tabs.TabLayout | <p>I have set android:textAllCaps="false" in my com.google.android.material.tabs.TabItem thought it is showing the Tab Title in All caps only.</p>
<p>How can I remove all caps?</p>
<pre><code><com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:... | I have set android:textAllCaps="false" in my com.google.android.material.tabs.TabItem thought it is showing the Tab Title in All caps only. How can I remove all caps? [CODE] even I have set style for it [CODE] but its not working | android|xml|material-design|android-tablayout | 1 | 2020-02-05T07:26:49.930Z | 2,020 | 2 | 7 | 2 | 1,810 | 2 | 229 | 86 | 4 | 2 | true | false | false | false | false | false | low |
60,070,868 | My app keeps on stopping. It's a basic Login page. Logcat code is attached | <blockquote>
<p>2020-02-05 12:56:21.088
14966-14991/com.splash.splashactivityassingment E/eglCodecCommon:
glUtilsParamSize: unknow param 0x00008cdf 2020-02-05 12:56:21.089
14966-14991/com.splash.splashactivityassingment E/eglCodecCommon:
glUtilsParamSize: unknow param 0x00008824 2020-02-05 12:56:21.113
1496... | 2020-02-05 12:56:21.088 14966-14991/com.splash.splashactivityassingment E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008cdf 2020-02-05 12:56:21.089 14966-14991/com.splash.splashactivityassingment E/eglCodecCommon: glUtilsParamSize: unknow param 0x00008824 2020-02-05 12:56:21.113 14966-14966/com.splash.splashact... | android|android-layout|android-linearlayout | -1 | 2020-02-05T07:28:08.457Z | 2,020 | 2 | 7 | 2 | 288 | 1 | 3,642 | 74 | 3 | 0 | false | false | false | false | false | true | negative |
60,070,872 | Name of the apk of the google playstore | <p>What is the name of the apk of the Google Playstore ("the package name is com.android.vending")? More specifically, I try to find the apk in the device (in system/app or system/priv-app) but i do not find it.</p> | What is the name of the apk of the Google Playstore ("the package name is com.android.vending")? More specifically, I try to find the apk in the device (in system/app or system/priv-app) but i do not find it. | android|google-play-services | 0 | 2020-02-05T07:28:12.143Z | 2,020 | 2 | 7 | 2 | 362 | 1 | 208 | 39 | 2 | 0 | false | false | false | false | false | false | zero |
60,070,880 | Android - Convert GMT time to Locale time | <p>I am trying to convert UTC time to user's Locale time. However, I am getting back the same UTC time.
Apparently, setting the time zone to locale/default does not work. </p>
<p>Another method seems to be available using Instant, but requires API level 26. </p>
<p>This is my input date in string: "2020-01-16T19:44:... | I am trying to convert UTC time to user's Locale time. However, I am getting back the same UTC time. Apparently, setting the time zone to locale/default does not work. Another method seems to be available using Instant, but requires API level 26. This is my input date in string: "2020-01-16T19:44:48.303+0000". I am exp... | java|android|datetime-format | -1 | 2020-02-05T07:28:53.660Z | 2,020 | 2 | 7 | 2 | 194 | 2 | 395 | 41 | 3 | 1 | true | false | false | false | false | true | negative |
60,070,938 | Integrate Android Studio Project with Azure Pipelines CI/CD | <p>I'm new to Android Studio development and I've been asked to do that.
I want to know how to do that as I tried to do it but I didn't understand it.</p>
<p>The project is on dev.azure.com, and in Kotlin language.</p>
<p>How to start with it and how to be pro (not that pro) in it?
I couldn't find the way to do or ev... | I'm new to Android Studio development and I've been asked to do that. I want to know how to do that as I tried to do it but I didn't understand it. The project is on dev.azure.com, and in Kotlin language. How to start with it and how to be pro (not that pro) in it? I couldn't find the way to do or even start with it. I... | android|android-studio|kotlin|azure-devops|azure-pipelines | 1 | 2020-02-05T07:32:14.067Z | 2,020 | 2 | 7 | 2 | 790 | 1 | 365 | 59 | 5 | 0 | false | false | false | false | false | false | low |
60,070,980 | How to successfully create a dialog fragment with recyclerview? | <p>'Here is my adapter class code and when i long pressed on an item it should show a alert dialog box to delete that item ..I want to call DialogFragmnent from recycled view. How to resolve this show method from Recyclerview adapter. How is it possible?</p>
<blockquote>
<p>Adaptorclass</p>
</blockquote>
<pre><code... | 'Here is my adapter class code and when i long pressed on an item it should show a alert dialog box to delete that item ..I want to call DialogFragmnent from recycled view. How to resolve this show method from Recyclerview adapter. How is it possible? Adaptorclass [CODE] Dialogclass [CODE] It show the Error as....java.... | android|android-recyclerview|android-alertdialog|android-dialogfragment | 0 | 2020-02-05T07:35:23.253Z | 2,020 | 2 | 7 | 2 | 1,334 | 2 | 524 | 63 | 4 | 3 | true | false | false | false | false | false | zero |
60,071,014 | What does the of() method mean? Kotlin Android | <p>Sorry for the stupid question but upon reading about ViewModel i came across</p>
<pre><code>randomViewModel = ViewModelProviders.of(this).get(RandomViewModel::class.java)
</code></pre>
<p>I just want to know what the of() is in general. Is it just a function used by the providers? Or is it a special operator? </p>... | Sorry for the stupid question but upon reading about ViewModel i came across [CODE] I just want to know what the of() is in general. Is it just a function used by the providers? Or is it a special operator? Thanks | android|kotlin | -5 | 2020-02-05T07:38:01.690Z | 2,020 | 2 | 7 | 2 | 81 | 3 | 213 | 46 | 2 | 1 | true | false | false | false | false | true | negative |
60,071,022 | What this 'at'/'@' symbol means in Kotlin? | <p>What do these annotations mean in this Kotlin code in android?</p>
<pre><code>@SuppressLint("SimpleDateFormat")
fun convertLongToDateString(systemTime: Long): String {
return SimpleDateFormat("EEEE MMM-dd-yyyy' Time: 'HH:mm")
.format(systemTime).toString()
}
@Entity(tablename = "daily_sleep_quality... | What do these annotations mean in this Kotlin code in android? [CODE] | android|kotlin|android-annotations|java-annotations | -5 | 2020-02-05T07:38:40.747Z | 2,020 | 2 | 7 | 2 | 1,006 | 3 | 69 | 42 | 4 | 1 | true | false | false | false | false | true | negative |
60,071,108 | How to fallback on a enum if values don't match in OpenAPI generator's Moshi | <p>I have an enum class and would like it to fallback to null if values don't match any of them.</p>
<p>I'm using openapi-generator-cli 3.3.0</p>
<p>e.g.
1. generated class</p>
<pre><code>object Serializer {
@JvmStatic
val moshi: Moshi = Moshi.Builder()
.add(KotlinJsonAdapterFactory())
... | I have an enum class and would like it to fallback to null if values don't match any of them. I'm using openapi-generator-cli 3.3.0 e.g. 1. generated class [CODE] API response [CODE] Running this code results in the following exception: com.squareup.moshi.JsonDataException: Expected ~~ but was "OtherGender" at path ~~ ... | android|kotlin|moshi|openapi-generator | 1 | 2020-02-05T07:45:06.443Z | 2,020 | 2 | 7 | 2 | 1,299 | 1 | 365 | 76 | 4 | 2 | true | false | false | false | false | false | low |
60,071,172 | Easiest way to implement truly infinite snapping pages in Android? | <p>I know that there are a couple of different Android views I could probably use to implement a truly infinite page scrolling with constantly changing content. However which view does support this kind of behavior the best so I need to change as little code as possible for that? Pager View, Recycler View, Scroll view.... | I know that there are a couple of different Android views I could probably use to implement a truly infinite page scrolling with constantly changing content. However which view does support this kind of behavior the best so I need to change as little code as possible for that? Pager View, Recycler View, Scroll view...?... | android|android-layout|android-fragments | -1 | 2020-02-05T07:49:45.617Z | 2,020 | 2 | 7 | 2 | 60 | 1 | 477 | 66 | 3 | 0 | false | false | false | false | false | true | negative |
60,071,210 | Android UsbAccessory return null in android 8 and above | <p>The below code works fine in android 7 and below version. But returns null on android 8 and above.</p>
<p>Does anyone know alternate solutions or permissions to make it work?</p>
<p>UsbAccessory[] accessories = mUsbManager.getAccessoryList();</p> | The below code works fine in android 7 and below version. But returns null on android 8 and above. Does anyone know alternate solutions or permissions to make it work? UsbAccessory[] accessories = mUsbManager.getAccessoryList(); | android|external-accessory|accessory | 1 | 2020-02-05T07:52:53.710Z | 2,020 | 2 | 7 | 2 | 38 | 0 | 228 | 55 | 3 | 0 | false | true | false | false | false | false | low |
60,071,292 | Gradle Sync Failed: ERROR: Expected ':' at line 1 column 11 path $.please | <p>When I open a this android project but when it wants to build a project it said this
<a href="https://i.stack.imgur.com/B5y91.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B5y91.png" alt="here the error"></a></p>
<p>The point is that I have never changed my gradle files.</p>
<p>I've invalidate... | When I open a this android project but when it wants to build a project it said this The point is that I have never changed my gradle files. I've invalidated caches and restart Android Studio. But it didn't work. I have no idea what caused this problem. Anyone here can help me? here's the log: [CODE] gradle.build file:... | android|android-studio|gradle | 2 | 2020-02-05T07:58:22.903Z | 2,020 | 2 | 7 | 2 | 754 | 2 | 327 | 73 | 3 | 2 | true | false | false | false | false | false | low |
60,071,337 | How to change Button drawable tint color on button click inside fragment | <p>I am trying to <strong>change the button drawable tint color on button click</strong> to the color i want it is not possible on click to change please help
I want it to be button not ImageButton. </p>
<p>here below i will post the codes
I am <strong>using a tab layout</strong> where the two tabs are oneway and ret... | I am trying to change the button drawable tint color on button click to the color i want it is not possible on click to change please help I want it to be button not ImageButton. here below i will post the codes I am using a tab layout where the two tabs are oneway and return fragments. I am having the problem in the o... | android|button|colors|onclick|drawable | -1 | 2020-02-05T08:01:34.280Z | 2,020 | 2 | 8 | 2 | 1,253 | 2 | 1,098 | 72 | 5 | 3 | true | false | false | false | false | true | negative |
60,071,364 | Connect an Android device to a web app that is open in my desktop browser | <p>I've been looking all over the place to try to figure out a way to send information from a web page that is open on my desktop browser to an Android device. I am trying to do this because the web page is like a code interpreter and I want to send the written code from the web page an Android app that I am working o... | I've been looking all over the place to try to figure out a way to send information from a web page that is open on my desktop browser to an Android device. I am trying to do this because the web page is like a code interpreter and I want to send the written code from the web page an Android app that I am working on. S... | android|web|bluetooth|communication | 2 | 2020-02-05T08:03:28.480Z | 2,020 | 2 | 8 | 2 | 176 | 0 | 929 | 73 | 4 | 0 | false | true | false | false | false | false | low |
60,071,365 | Something is wrong with xml Tabs | <p>This is my Tabs in APP</p>
<p><a href="https://i.stack.imgur.com/hxT29.png" rel="nofollow noreferrer">First Tab</a></p>
<p><a href="https://i.stack.imgur.com/4JrqN.jpg" rel="nofollow noreferrer">Second Tab</a></p>
<p>What am I doing wrong?
My <strong>activity_main.xml</strong></p>
<pre><code><?xml version="1.... | This is my Tabs in APP First Tab Second Tab What am I doing wrong? My activity_main.xml [CODE] My first activity xml [CODE] And second activity [CODE] I need the design to look like this How i see it in Android Studio I don’t understand where the problem is, I created everything from the lesson in the Russian forum (I ... | android|xml|tabs | 1 | 2020-02-05T08:03:30.683Z | 2,020 | 2 | 8 | 2 | 54 | 2 | 340 | 32 | 3 | 3 | true | false | false | false | false | false | low |
60,071,404 | how to set click counter in facebook audience network interstitial ad? | <p>I use the below code to show FAN interstitial ads when clicking on <code>RecyclerView</code> item in my android app.
But if I implement this code not working.I want to show one item click one time show ads.Any help me please.</p>
<pre><code>public class ViewHolder extends RecyclerView.ViewHolder implements View.OnC... | I use the below code to show FAN interstitial ads when clicking on RecyclerView item in my android app. But if I implement this code not working.I want to show one item click one time show ads.Any help me please. [CODE] | java|android|facebook|admob|facebook-audience-network | 0 | 2020-02-05T08:06:20.090Z | 2,020 | 2 | 8 | 2 | 662 | 1 | 219 | 70 | 5 | 1 | true | false | false | false | false | false | zero |
60,071,452 | error: incompatible types: <anonymous OnSuccessListener<AuthResult>> cannot be converted to OnCompleteListener<AuthResult>erro | <p>Below are the code. I don't have much experience in coding. Hope you could help me out! Thank you so much=)</p>
<p>My Error are : </p>
<blockquote>
<p><strong>error: incompatible types: > cannot be converted to OnCompleteListener</strong></p>
</blockquote>
<pre><code> //Register new User
auth.creat... | Below are the code. I don't have much experience in coding. Hope you could help me out! Thank you so much=) My Error are : error: incompatible types: > cannot be converted to OnCompleteListener [CODE] | java|android|firebase|firebase-authentication | 1 | 2020-02-05T08:10:49.520Z | 2,020 | 2 | 8 | 2 | 320 | 1 | 200 | 126 | 4 | 1 | true | false | false | false | false | false | low |
60,071,472 | Fragment declared target fragment that does not belong to this FragmentManager - Android | <p>I am using from <code>AppCompatDialogFragment</code> in my <code>DaggerFragment</code> but when run my app get bellow error:</p>
<pre><code>java.lang.IllegalStateException: Fragment CourseTypeListDialogFragment{ab0b7f3 (3d65d8c0-5c75-4b92-8002-1852a8aa58b7) } declared target fragment CoursesFragment{e2a5105 (e277e6... | I am using from AppCompatDialogFragment in my DaggerFragment but when run my app get bellow error: [CODE] I opened it like bellow: [CODE] | android|android-fragments|android-dialogfragment | 2 | 2020-02-05T08:11:51.340Z | 2,020 | 2 | 8 | 2 | 705 | 2 | 137 | 88 | 3 | 2 | true | false | false | false | false | false | low |
60,071,608 | ERROR: Failed to resolve: com.github.JesusM:HoloCircleSeekBar:v2.2.2 | <p>I am working on a project where I have used <code>com.github.JesusM:HoloCircleSeekBar:v2.2.2</code> library. When I tried to make the build in my system, it worked without any issue but when I tried to run the same project in other system it got the issue that the library can't be resolved. What could be the reason?... | I am working on a project where I have used com.github.JesusM:HoloCircleSeekBar:v2.2.2 library. When I tried to make the build in my system, it worked without any issue but when I tried to run the same project in other system it got the issue that the library can't be resolved. What could be the reason? | android | 0 | 2020-02-05T08:20:07.513Z | 2,020 | 2 | 8 | 2 | 311 | 1 | 304 | 68 | 1 | 0 | false | false | false | false | false | false | zero |
60,071,652 | Clicking on Notification in background not open my App? | <p>I am a newbie in android development.</p>
<p>I create a background service for receive pushNotification (with our own socket service, not FCM).
And now my device receive message and show notification successfully. But when I click the notification, it not return to my app. </p>
<p>When I click notification, show t... | I am a newbie in android development. I create a background service for receive pushNotification (with our own socket service, not FCM). And now my device receive message and show notification successfully. But when I click the notification, it not return to my app. When I click notification, show the error below: Acti... | android|android-activity|push-notification | 0 | 2020-02-05T08:23:22.793Z | 2,020 | 2 | 8 | 2 | 554 | 2 | 573 | 55 | 3 | 2 | true | false | false | false | false | false | zero |
60,071,704 | how to avoid blank screen of activity when I back from last fragment | <p>Here I'm using </p>
<pre><code>public void replaceFragment(Fragment fragment, boolean isMainPage, Bundle bundle) {
String backStateName = fragment.getClass().getName();
FragmentManager manager = getSupportFragmentManager();
boolean fragmentPopped = manager.popBackStackImmediate(backStateName, 0);
i... | Here I'm using [CODE] for replacing fragments from the entire project. My problem is that when I pop back from the last fragment it shows the blank page where my frame layout placed for replacing fragments [CODE] | android|android-fragments|fragment | 2 | 2020-02-05T08:26:43.467Z | 2,020 | 2 | 8 | 2 | 421 | 1 | 212 | 68 | 3 | 2 | true | false | false | false | false | false | low |
60,071,738 | Firebase screen class obfuscated while mapping is uploaded | <p>I'm using obfuscation for my Android app and I am using Firebase for crash reporting and some statistics. In the Firebase console I noticed that the <code>Screen class</code> was still obfuscated. I'm sure that the mapping file is uploaded because stacktraces are being deobfuscated. </p>
<p>Is there something else ... | I'm using obfuscation for my Android app and I am using Firebase for crash reporting and some statistics. In the Firebase console I noticed that the Screen class was still obfuscated. I'm sure that the mapping file is uploaded because stacktraces are being deobfuscated. Is there something else I need to configure or do... | android|firebase|crashlytics|firebase-console | 1 | 2020-02-05T08:29:22.760Z | 2,020 | 2 | 8 | 2 | 206 | 1 | 490 | 58 | 4 | 0 | false | false | false | false | false | false | low |
60,071,748 | How to display a PDF which is in a string? | <p>I am creating an android app using Java. </p>
<p>PDF is in the string, like some code, you can see here:</p>
<pre><code>1 0 obj
[/PDF /Text /ImageB /ImageC /ImageI]
endobj
13 0 obj
<< /Length 1600 /Filter /FlateDecode >> stream
x��X�nSG�_�w�����K���BmD q�D�K|�:q�:�Jy�>B���̜�o
</code><... | I am creating an android app using Java. PDF is in the string, like some code, you can see here: [CODE] What I want to do is to display PDF in any way, it doesn't matter if it's visible in a PDF field or in WebView. | java|android | 0 | 2020-02-05T08:30:08.880Z | 2,020 | 2 | 8 | 2 | 161 | 0 | 215 | 42 | 2 | 1 | true | true | false | false | false | false | zero |
60,071,801 | I want to convert a Bitmap to a byte array for TensorflowLite | <p>I use Firebase's <code>ML Kit</code> for image recognition.</p>
<p>For <code>FLOAT 32</code>, it succeeded, but I don't know how to convert it to a <code>byte</code> array and can't use the byte model.</p>
<p>How should I convert it?</p>
<p>The model has the following format:.</p>
<pre><code>[ 1 224 224 3]
&l... | I use Firebase's ML Kit for image recognition. For FLOAT 32 , it succeeded, but I don't know how to convert it to a byte array and can't use the byte model. How should I convert it? The model has the following format:. [CODE] The values of the options specified for FIrebase are as follows:. [CODE] I resized the Float d... | java|android|tensorflow | 1 | 2020-02-05T08:33:06.393Z | 2,020 | 2 | 8 | 2 | 234 | 0 | 402 | 61 | 3 | 3 | true | true | false | false | false | false | low |
60,071,855 | No Scaffold widget found : Getting exception while opening Bottom Dialog sheet | <p>I'm using Scaffold widget but while opening a bottom dialog sheet I'm getting this exception</p>
<pre><code>@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Calendar"),
),
body: SafeArea(
.......
.......
child: GestureDetector(
... | I'm using Scaffold widget but while opening a bottom dialog sheet I'm getting this exception [CODE] I'm stuck on this code, it'll be very helpful if someone can give any suggestion. Thank you. | android|flutter|flutter-layout|bottom-sheet | 13 | 2020-02-05T08:36:49.403Z | 2,020 | 2 | 8 | 2 | 7,786 | 4 | 192 | 78 | 4 | 1 | true | false | true | false | true | false | medium |
60,071,875 | How to open html string "a href" to Webview? | <p>how can i open the html string that has <code>a href</code> on webview only instead of going on your browser?</p>
<p>i am using the LinkMovementMethod, this is okay on opening it on other app like video from youtube but i have some links that needs to be open only on webview.</p>
<p>here is a sample html string</p... | how can i open the html string that has a href on webview only instead of going on your browser? i am using the LinkMovementMethod, this is okay on opening it on other app like video from youtube but i have some links that needs to be open only on webview. here is a sample html string [CODE] i need the a href to be ope... | java|android|webview | 0 | 2020-02-05T08:38:02.910Z | 2,020 | 2 | 8 | 2 | 932 | 3 | 414 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
60,071,890 | How do I limit a number of workers running in parallel in WorkManager? | <p>I enqueue files (chosen by the user) to upload and then update sync status with WorkManager like this:</p>
<pre><code>fun schedule(files: List<String>) {
var cont = workManager
.beginUniqueWork(issueId, APPEND, files.map { workRequest(it) })
.then(updateSyncStatusWork)
... | I enqueue files (chosen by the user) to upload and then update sync status with WorkManager like this: [CODE] It works well. But when user choose a lot of files looking to logs I see that a lot of files are uploading at the same time (around 10 or even all of them). And quite a lot of timeouts happens. I believe that r... | android|android-workmanager | 1 | 2020-02-05T08:39:12.073Z | 2,020 | 2 | 8 | 2 | 1,450 | 1 | 570 | 70 | 2 | 1 | true | false | false | false | false | false | low |
60,071,961 | setIsStrongBoxBacked() for doesn't throw StrongBoxUnavailableException as expected | <p>Im recently working with Android keystore system.</p>
<p>A Xiaomi 9 phone and Huawei P20(updated to Android 9) were used for test which might not support StrongBox according to the GrapheneOS/AttestationSamples provided from this <a href="https://stackoverflow.com/questions/55671931/list-of-android-smart-phones-that... | Im recently working with Android keystore system. A Xiaomi 9 phone and Huawei P20(updated to Android 9) were used for test which might not support StrongBox according to the GrapheneOS/AttestationSamples provided from this link . Furthermore, below code returned false indicate that the device doesn't have StrongBox Fea... | android|keystore | 5 | 2020-02-05T08:43:59.630Z | 2,020 | 2 | 8 | 2 | 1,065 | 0 | 768 | 82 | 2 | 4 | true | true | false | false | false | false | low |
60,072,175 | Is it possible to playback arcore with 60 fps? | <p>I found this official example of ArCore implementation</p>
<p><a href="https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java" rel="nofollow noreferrer">https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java</a></p>
<p>And as far as I understood ArCore can make... | I found this official example of ArCore implementation https://github.com/google-ar/arcore-android-sdk/tree/master/samples/hello_ar_java And as far as I understood ArCore can make playback only in 30fps But I did not find official definitions about it. Like ArCore restricted to playback max in 30fps... So, is it correc... | android|arcore | 0 | 2020-02-05T08:57:55.307Z | 2,020 | 2 | 8 | 2 | 449 | 0 | 514 | 46 | 2 | 1 | true | true | false | false | false | false | zero |
60,072,190 | How to know when a user is done typing? | <p>In Android Studio, I want to make a program where a <code>TextView</code> changes to an <code>EditView</code> when clicked. After the user is finished typing, I want the <code>EditText</code> to then change back to a <code>TextView</code> which shows the value that was entered.</p>
<p>How do I do this? This is what... | In Android Studio, I want to make a program where a TextView changes to an EditView when clicked. After the user is finished typing, I want the EditText to then change back to a TextView which shows the value that was entered. How do I do this? This is what I have so far: [CODE] | java|android|textview|editview | 0 | 2020-02-05T08:59:04.690Z | 2,020 | 2 | 8 | 2 | 226 | 2 | 279 | 39 | 4 | 1 | true | false | false | false | false | false | zero |
60,072,202 | Control constraint with include layout by code | <p>I want to change constraint by code.</p>
<p>It was working, but doesn't work with include layout.</p>
<p>Please see below code.</p>
<p>I have include in my layout, this is my layout</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/... | I want to change constraint by code. It was working, but doesn't work with include layout. Please see below code. I have include in my layout, this is my layout [CODE] This is my include layout [CODE] This is my activity code. [CODE] But if set constraintSet with not include layout is work like this. [CODE] My screen c... | java|android|android-layout | 0 | 2020-02-05T08:59:42.480Z | 2,020 | 2 | 8 | 2 | 143 | 1 | 523 | 46 | 3 | 4 | true | false | false | false | false | false | zero |
60,072,268 | I want to replace the screenshot on the recently used apps page with a still photo | <p>I want to put a screenshot of my application on the recent apps page for a fixed photo for security reasons. I used the <code>FLAG_SECURE</code> method for this, but the screen of my application remains white on the recent apps page. I want to put a still picture instead of a white image. According to my research, t... | I want to put a screenshot of my application on the recent apps page for a fixed photo for security reasons. I used the FLAG_SECURE method for this, but the screen of my application remains white on the recent apps page. I want to put a still picture instead of a white image. According to my research, the onCreateThumb... | java|android | 1 | 2020-02-05T09:02:58.573Z | 2,020 | 2 | 9 | 2 | 146 | 1 | 416 | 82 | 2 | 0 | false | false | false | false | false | false | low |
60,072,280 | Do I need to add implementation 'com.android.billingclient:billing-ktx:2.1.0' when I use Kotlin for Google Play? | <p>I have read the artical at <a href="https://developer.android.com/google/play/billing/billing_library_overview" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/billing_library_overview</a></p>
<p>Do I need to add <code>implementation 'com.android.billingclient:billing-ktx:2.1.0'</code> w... | I have read the artical at https://developer.android.com/google/play/billing/billing_library_overview Do I need to add implementation 'com.android.billingclient:billing-ktx:2.1.0' when I use Kotlin for Google Play? I'm learning the office sample code , but I find the sample code doesn't add it, you can see at here . | android|google-play | -1 | 2020-02-05T09:03:54.943Z | 2,020 | 2 | 9 | 2 | 640 | 1 | 317 | 112 | 2 | 0 | false | false | false | false | false | true | negative |
60,072,281 | Start a foreground Service from other package | <p>I have an Application A with package name pa and an application B with package name pb. B has a foreground service called fserviceB. I want to start this fserviceB from application A. How can I do it?</p> | I have an Application A with package name pa and an application B with package name pb. B has a foreground service called fserviceB. I want to start this fserviceB from application A. How can I do it? | android|foreground-service | 0 | 2020-02-05T09:04:00.870Z | 2,020 | 2 | 9 | 2 | 72 | 0 | 200 | 45 | 2 | 0 | false | true | false | false | false | false | zero |
60,072,283 | Filename is not changing while sharing pdf files in Android | <p>I am using react-native-share library to share a pdf file. I am sharing by converting it to base64 string but I am unable to change filename.</p>
<pre><code> shareProfile = async(data) => {
Share.open({url: `data:application/pdf;base64, ${data}`, filename: 'test'})
}
</code></pre>
<p>I found property in... | I am using react-native-share library to share a pdf file. I am sharing by converting it to base64 string but I am unable to change filename. [CODE] I found property in documents but still it is not working. It is frustrating. Thank you in advance. | android|react-native | 0 | 2020-02-05T09:04:17.347Z | 2,020 | 2 | 9 | 2 | 824 | 1 | 248 | 59 | 2 | 1 | true | false | false | false | false | false | zero |
60,072,302 | Apk testing. Get access to resources | <p>I would like to test a Flutter app. The apk is already uploaded to be tested, but to go through the login I have to give them the name of the resource where they should write the username. The same with the password and the login button.
How/Where can I get those references or resources name?</p>
<p>screenshot:<br>... | I would like to test a Flutter app. The apk is already uploaded to be tested, but to go through the login I have to give them the name of the resource where they should write the username. The same with the password and the login button. How/Where can I get those references or resources name? screenshot: | android|flutter|resources|apk | 0 | 2020-02-05T09:05:40.003Z | 2,020 | 2 | 9 | 2 | 68 | 0 | 305 | 36 | 4 | 0 | false | true | false | false | false | false | zero |
60,072,387 | Specified path for unstripped native libs is not a directory - generateCrashlyticsSymbolFileRelease | <p><strong>How I can define <code>androidNdkOut</code> and <code>androidNdkLibsOut</code> paths with new Firebase Crashlytics SDK?</strong></p>
<p>When I try to run:
<code>./gradlew clean assembleRelease uploadCrashlyticsSymbolFileRelease</code></p>
<p>I get next error:</p>
<pre><code>Execution failed for task ':app... | How I can define androidNdkOut and androidNdkLibsOut paths with new Firebase Crashlytics SDK? When I try to run: ./gradlew clean assembleRelease uploadCrashlyticsSymbolFileRelease I get next error: [CODE] If I manually move all my NDK libs to ./app folder I get the same error with different path: [CODE] In this second ... | android|firebase|gradle|crashlytics|google-fabric | 9 | 2020-02-05T09:10:13.623Z | 2,020 | 2 | 9 | 2 | 5,343 | 2 | 680 | 99 | 5 | 4 | true | false | true | false | false | false | medium |
60,072,416 | How to parse XML With XmlPullParser? | <p>I read an Xml file with XmlPullParser but it gives Exception (unterminated entity ref (position:TEXT @817:4 in java.io.InputStreamReader@4cb5258) when it comes to <strong>Dscp</strong> .</p>
<p>i reader another shot like this before this shot
every thing is ok until this one.
when i remove Dsec from xml every thin... | I read an Xml file with XmlPullParser but it gives Exception (unterminated entity ref (position:TEXT @817:4 in java.io.InputStreamReader@4cb5258) when it comes to Dscp . i reader another shot like this before this shot every thing is ok until this one. when i remove Dsec from xml every thing is ok and i read all xml fi... | java|android|xml|xmlpullparser | 2 | 2020-02-05T09:12:16.420Z | 2,020 | 2 | 9 | 2 | 168 | 1 | 449 | 36 | 4 | 2 | true | false | false | false | false | false | low |
60,072,434 | Flutter: Unable to make the Form scroll when the Keyboard is open | <p>In my application, I am using a <code>stack</code> and a <code>container</code>. Within the <code>container</code> i have a <code>form</code> and its fields. Below is my code</p>
<pre><code>import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
clas... | In my application, I am using a stack and a container . Within the container i have a form and its fields. Below is my code [CODE] My view is as follows when the keyboard is open, the user must close it to access the login button. This is because this cannot be scrolled. I tried adding SingleScrollView and ListView bel... | android|ios|flutter|mobile | 1 | 2020-02-05T09:13:15.247Z | 2,020 | 2 | 9 | 2 | 1,638 | 1 | 473 | 65 | 4 | 1 | true | false | false | false | false | false | low |
60,072,544 | Global Layout listeners returns 0 | <p>Hello I want to get a relative layout's height and width with global layout listener:</p>
<pre><code>final RelativeLayout relativeLayout = binding.rl;
relativeLayout.getViewTreeObserver()
.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
... | Hello I want to get a relative layout's height and width with global layout listener: [CODE] problem with my code is width and height are coming zero. Can somebody tell me any solution for the same. Thanks in advance. [CODE] | java|android|android-layout|android-fragments | 0 | 2020-02-05T09:19:48.130Z | 2,020 | 2 | 9 | 2 | 206 | 1 | 224 | 33 | 4 | 2 | true | false | false | false | false | false | zero |
60,072,650 | Cordova Emulate Android finds no Gradle or installed Android Studio, even though its there | <p><a href="https://i.stack.imgur.com/vxW87.png" rel="nofollow noreferrer">Error Message</a></p>
<p>I know that the app itself should work, I just had to work on a different part of the project and when I came back to it, this error message suddenly popped up. No solution worked for me, so I am asking here.</p>
<p>If... | Error Message I know that the app itself should work, I just had to work on a different part of the project and when I came back to it, this error message suddenly popped up. No solution worked for me, so I am asking here. If the picture above cant be seen, here is the message again: Checking Java JDK and Android SDK v... | android|angular|cordova|gradle | 0 | 2020-02-05T09:25:03.977Z | 2,020 | 2 | 9 | 2 | 71 | 1 | 624 | 90 | 4 | 0 | false | false | false | false | false | false | zero |
60,072,710 | Unable to build : How to add Android Build Config for new Module | <p>Now i am converting my android code to modularized architectural approach. Facing issues when trying add a dependency on "app" module from "chat" module.</p>
<p><strong>I have the following build config for the "app" module.</strong></p>
<pre><code>android {
lintOptions {
checkReleaseBuilds false
abortOnE... | Now i am converting my android code to modularized architectural approach. Facing issues when trying add a dependency on "app" module from "chat" module. I have the following build config for the "app" module. [CODE] Now i have added a new module "chat". And it has following code in build config. [CODE] When i try to b... | android|android-gradle-plugin|build.gradle|android-build|android-module | 4 | 2020-02-05T09:29:25.260Z | 2,020 | 2 | 9 | 2 | 4,232 | 1 | 354 | 64 | 5 | 3 | true | false | true | false | false | false | low |
60,072,986 | onNavigationItemSelected not calling when item is selected | <p>I am adding footer-view in navigation drawer using following code -</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http:/... | I am adding footer-view in navigation drawer using following code - [CODE] But now onNavigationItemSelected() is not calling also navigation drawer keeps open until we slide it manually. I am using navigation-component and nav graph. This is my activity code - [CODE] | android|menu|navigation|navigation-drawer | -2 | 2020-02-05T09:46:29Z | -1 | -1 | -1 | -1 | 1,929 | 2 | 267 | 58 | 4 | 2 | true | false | false | false | false | true | negative |
60,073,018 | Dialogflow fulfillment not working - why? | <p>I have used dialogflow fulfillment to get data from an external api. It works fine with the test console. But on being deployed on to an android app, it gives a blank response. How do I fix this? Thanks.</p>
<p>The code in fulfillment:</p>
<pre><code>'use strict';
const axios = require('axios');
const functions = ... | I have used dialogflow fulfillment to get data from an external api. It works fine with the test console. But on being deployed on to an android app, it gives a blank response. How do I fix this? Thanks. The code in fulfillment: [CODE] The code in MainActivity.java [CODE] | android|dialogflow-es | 2 | 2020-02-05T09:48:19.817Z | 2,020 | 2 | 9 | 2 | 431 | 0 | 272 | 41 | 2 | 2 | true | true | false | false | false | false | low |
60,073,069 | How to make a sequential API call in RX | <p>I started reading about RX on Android . I was trying to do a POST api call from within a rx chain. I wanted to see if this is the right way and that do I need to even create a disposable again when making the call and register the subscribe/observe threads again. Please see the comments in the code.</p>
<pre><code>... | I started reading about RX on Android . I was trying to do a POST api call from within a rx chain. I wanted to see if this is the right way and that do I need to even create a disposable again when making the call and register the subscribe/observe threads again. Please see the comments in the code. [CODE] | android|rx-java|rx-java2|rx-android | 2 | 2020-02-05T09:51:25.893Z | 2,020 | 2 | 9 | 2 | 266 | 0 | 307 | 39 | 4 | 1 | true | true | false | false | false | false | low |
60,073,079 | How to fix webview has been removed from react native it can now be install and imported from react-native-webview instead of react native | <p><a href="https://i.stack.imgur.com/Ong26.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ong26.jpg" alt="enter image description here"></a></p>
<pre><code>import React, { Component } from "react";
import { Text, Button, View, ScrollView } from "react-native";
import Chart from "react-native-f2cha... | [CODE] | android|reactjs|react-native | 1 | 2020-02-05T09:51:51.593Z | 2,020 | 2 | 9 | 2 | 463 | 1 | 6 | 138 | 3 | 1 | true | false | false | false | false | false | low |
60,073,217 | MainActivity retrieves the ID of the item from my list and I would like to send it to a class to create actions but | <p>I'm new to java and android</p>
<p>MainActivity retrieves the ID of the item from my list and I would like to send it to a class to create actions but this error appears:</p>
<p>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getDatabasePath(java.la... | I'm new to java and android MainActivity retrieves the ID of the item from my list and I would like to send it to a class to create actions but this error appears: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getDatabasePath(java.lang.String)' on a nu... | java|android | -1 | 2020-02-05T09:59:28.830Z | 2,020 | 2 | 9 | 2 | 28 | 1 | 473 | 115 | 2 | 3 | true | false | false | false | false | true | negative |
60,073,252 | Unable to get data from shared preferences | <p>I am saving phone no. in shared preference and in another activity I am trying to get phone no. from shared preference.</p>
<pre><code>private static final String KEY_PHONE = "keyphone";
SharedPreferences sharedPreferences = getSharedPreferences("simplifiedcodingsharedpref", Context.MODE_PRIVATE);
... | I am saving phone no. in shared preference and in another activity I am trying to get phone no. from shared preference. [CODE] In another activity I am using something like this: [CODE] My problem is here I am not getting phone no in toast message and I am getting empty toast. Someone please let me know how can I get p... | android | -2 | 2020-02-05T10:02:29.597Z | 2,020 | 2 | 10 | 2 | 92 | 3 | 385 | 42 | 1 | 2 | true | false | false | false | false | true | negative |
60,073,329 | RecyclerView error after Adapter is setted | <p>I got </p>
<blockquote>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'boolean androidx.recyclerview.widget.RecyclerView$ViewHolder.shouldIgnore()' on a null object reference
</code></pre>
</blockquote>
<p>when I want to show a Fragment containing a RecyclerView.
I don't understand wh... | I got [CODE] when I want to show a Fragment containing a RecyclerView. I don't understand where to edit my code, I searched this error and I found suggestions like disabling animation on RecyclerView , but it doesn't work in my case. Here's the code of Fragment: [CODE] Adapter code: [CODE] Layout XML: [CODE] UPDATE: fu... | android|kotlin|android-recyclerview | 0 | 2020-02-05T10:06:38.610Z | 2,020 | 2 | 10 | 2 | 211 | 0 | 380 | 42 | 3 | 5 | true | true | false | false | false | false | zero |
60,073,388 | Why i see "null" in dato2 to return of my second activity? | <p>I'm trying to practice launching there activity for passing values both in and out, but I don't understand how to solve this return value drawback as a string.</p>
<p>This is my second activity that need to return a string, but i see "null" in toast.</p>
<pre><code>public class Activity1 extends Activity {
publ... | I'm trying to practice launching there activity for passing values both in and out, but I don't understand how to solve this return value drawback as a string. This is my second activity that need to return a string, but i see "null" in toast. [CODE] This is my main code on Android Studio when i put a int and i see i... | java|android | 0 | 2020-02-05T10:10:11.327Z | 2,020 | 2 | 10 | 2 | 25 | 1 | 336 | 58 | 2 | 2 | true | false | false | false | false | false | zero |
60,073,390 | Samsung launcher - Switching desktop screens starts application | <p>I have an application which starts some service in onCreate method in Application class. The problem is when I switch desktop on Samsung devices.</p>
<ol>
<li>Put the Application icon on your desktop, to the edge.</li>
<li>Drag the desktop (switch to the next page) by starting the move on the application icon.</li>... | I have an application which starts some service in onCreate method in Application class. The problem is when I switch desktop on Samsung devices. Put the Application icon on your desktop, to the edge. Drag the desktop (switch to the next page) by starting the move on the application icon. The Android call onCreate meth... | android|samsung-mobile | 1 | 2020-02-05T10:10:20.740Z | 2,020 | 2 | 10 | 2 | 23 | 0 | 1,298 | 63 | 2 | 0 | false | true | false | false | false | false | low |
60,073,395 | Navigation Drawer : current navigation fragment not updated when back to the activity | <p>I have a drawer navigation activity with 3 destinations. This activity immediatly launches another activity. When back to the drawer activity, we are on the first destination, but the corresponding fragment is not updated, onStart is not triggered. The fragment seems to be restored in its original state. I have to c... | I have a drawer navigation activity with 3 destinations. This activity immediatly launches another activity. When back to the drawer activity, we are on the first destination, but the corresponding fragment is not updated, onStart is not triggered. The fragment seems to be restored in its original state. I have to clic... | android | 0 | 2020-02-05T10:10:32.603Z | 2,020 | 2 | 10 | 2 | 51 | 1 | 704 | 85 | 1 | 1 | true | false | false | false | false | false | zero |
60,073,428 | Couldn't find "libgojni.so" | <p>After importing a third party library into my Android project, I get the following error:</p>
<pre><code>java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.myapp-dAIPtULcj_wzNu8vrPvI5Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.myapp-dAIPtULcj_wzNu8vrPvI5Q==... | After importing a third party library into my Android project, I get the following error: [CODE] I think this library needs GO to function properly. How can I implement the GO or better GO MOBILE dependency to my Android project? Can I do it via maven or gradle? | java|android|go|gradle|gomobile | 1 | 2020-02-05T10:12:36.507Z | 2,020 | 2 | 10 | 2 | 1,211 | 1 | 262 | 27 | 5 | 1 | true | false | false | false | false | false | low |
60,073,431 | Android 9 App or MDM shutdown and restart, timeout screen or sleep | <p>Good morning, everyone,
we're considering an application that will be installed outside the meeting rooms.
Our tablets are Galaxy Tab A 2019 version of Android 9.
We realized that we would like to have these features on the tablets:</p>
<ul>
<li>Turning off the screen and turning it back on at a certain time (or ev... | Good morning, everyone, we're considering an application that will be installed outside the meeting rooms. Our tablets are Galaxy Tab A 2019 version of Android 9. We realized that we would like to have these features on the tablets: Turning off the screen and turning it back on at a certain time (or even turning off th... | android|mdm | 0 | 2020-02-05T10:12:51.287Z | 2,020 | 2 | 10 | 2 | 234 | 1 | 595 | 66 | 2 | 0 | false | false | false | false | false | false | zero |
60,073,539 | How can scroll calendar horizontally on React Native like Way of Life App. you can see a video by the link | <p>you can see on google drive
<a href="https://drive.google.com/open?id=1UWUfli7g5vlh25PNHbGR46Cs6weROdQV" rel="nofollow noreferrer">https://drive.google.com/open?id=1UWUfli7g5vlh25PNHbGR46Cs6weROdQV</a></p>
<p><a href="https://i.stack.imgur.com/2GpR7.png" rel="nofollow noreferrer">enter image description here</a></p... | you can see on google drive https://drive.google.com/open?id=1UWUfli7g5vlh25PNHbGR46Cs6weROdQV enter image description here | react-native|horizontal-scrolling|android-calendar | 0 | 2020-02-05T10:18:49.917Z | 2,020 | 2 | 10 | 2 | 892 | 1 | 123 | 106 | 3 | 0 | false | false | false | false | false | false | zero |
60,073,580 | Android Biometrics not navigating when using Device Credentials | <p>I'm using Biometrics library to lock the app. Everything works fine and when I'm unlocking with fingerprint onAuthenticationSucceeded() get's called and device navigates from the lock screen. However if unlock with pattern the onAuthenticationSucceeded() get's called but navigation doesn't initialise and I'm left st... | I'm using Biometrics library to lock the app. Everything works fine and when I'm unlocking with fingerprint onAuthenticationSucceeded() get's called and device navigates from the lock screen. However if unlock with pattern the onAuthenticationSucceeded() get's called but navigation doesn't initialise and I'm left stuck... | android|kotlin|android-navigation|android-biometric | 1 | 2020-02-05T10:20:52.900Z | 2,020 | 2 | 10 | 2 | 699 | 1 | 620 | 63 | 4 | 1 | true | false | false | false | false | false | low |
60,073,726 | Is it possible to have 2 menu items (AppBar), one aligned to the left, one to the right in android? | <p>I would like to have an App bar with two items one aligned to the left, one to the right, I have done some research but nothing found. Just changing layout_direction to RTL or LTR.</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-au... | I would like to have an App bar with two items one aligned to the left, one to the right, I have done some research but nothing found. Just changing layout_direction to RTL or LTR. [CODE] this is my main menu which is inflated in the nav host activity and used in all remaining fragments. Thanks in advance. | android | 1 | 2020-02-05T10:28:12.977Z | 2,020 | 2 | 10 | 2 | 37 | 0 | 307 | 99 | 1 | 1 | true | true | false | false | false | false | low |
60,073,834 | Login registration in Firebase auth using shared Preference | <p>I created Login/registration Authentication using Firebase, and Fill the Data using shared Preference like Full name and Email address on DashboardActivity.
but Problem is When User1 Create New account and Login, Data Filled Successfully...
and user2 create Another New Account and Login again Data Filled Success... | I created Login/registration Authentication using Firebase, and Fill the Data using shared Preference like Full name and Email address on DashboardActivity. but Problem is When User1 Create New account and Login, Data Filled Successfully... and user2 create Another New Account and Login again Data Filled Successfully..... | android|firebase-authentication|sharedpreferences | 0 | 2020-02-05T10:33:13.523Z | 2,020 | 2 | 10 | 2 | 1,305 | 1 | 679 | 59 | 3 | 8 | true | false | false | false | false | false | zero |
60,073,855 | If lifecycleScope is supervisor, why its child coroutine's failure causes the app crash? | <p>I'm new to Kotlin coroutines and try to understand supervision. As docs say:</p>
<blockquote>
<p>A failure or cancellation of a child does not cause the supervisor job to fail and does not affect its other children.</p>
</blockquote>
<hr>
<p>Ok, I've written the following code for JVM:</p>
<pre><code>@JvmStati... | I'm new to Kotlin coroutines and try to understand supervision. As docs say: A failure or cancellation of a child does not cause the supervisor job to fail and does not affect its other children. Ok, I've written the following code for JVM: [CODE] Here everything is fine, Coroutine #1 failure neither affect the parent,... | android|kotlin|kotlin-coroutines | 9 | 2020-02-05T10:34:12.820Z | 2,020 | 2 | 10 | 2 | 2,717 | 3 | 813 | 88 | 3 | 4 | true | false | true | false | false | false | medium |
60,073,980 | How can I refresh ListView | <p>Me and my budy are trying to create a refresh that could refresh our ListView data from MySQL, is there any way to refresh my ListView? I know there is the mothods Handler and things like that but can't seem to putting that to work.</p>
<p>This is my code :</p>
<pre><code>package com.example.temperatura;
import andr... | Me and my budy are trying to create a refresh that could refresh our ListView data from MySQL, is there any way to refresh my ListView? I know there is the mothods Handler and things like that but can't seem to putting that to work. This is my code : [CODE] I tried everything but nothing worked, much apreciated all the... | android|android-listview | 0 | 2020-02-05T10:42:19.563Z | 2,020 | 2 | 10 | 2 | 83 | 1 | 328 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
60,073,982 | Android Studio connection issue | <p>Am having a problem in connecting my huawei Y7 2018 phone with android studio,each time i try connecting it via the usb option it still doesnt appear on my android studio even after allowing the usb debugging option on and the weird part of it, it connects to other phones.Kindly help to solve this problem.</p> | Am having a problem in connecting my huawei Y7 2018 phone with android studio,each time i try connecting it via the usb option it still doesnt appear on my android studio even after allowing the usb debugging option on and the weird part of it, it connects to other phones.Kindly help to solve this problem. | android|kotlin | 0 | 2020-02-05T10:42:22.457Z | 2,020 | 2 | 10 | 2 | 34 | 1 | 307 | 31 | 2 | 0 | false | false | false | false | false | false | zero |
60,073,983 | Gradle doesn't make use of an added androidx room-common dependency | <p>I have added all dependencies for androidx room and the project works.
It however only builds when I have internet access or when the build cache is yet to be cleared.
Below is some part the error it throws when trying to build offline.</p>
<pre><code>Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultL... | I have added all dependencies for androidx room and the project works. It however only builds when I have internet access or when the build cache is yet to be cleared. Below is some part the error it throws when trying to build offline. [CODE] One look at the log suggests it requires androidx.room:room-common dependenc... | android|gradle|kotlin | 1 | 2020-02-05T10:42:30.070Z | 2,020 | 2 | 10 | 2 | 1,120 | 0 | 621 | 67 | 3 | 2 | true | true | false | false | false | false | low |
60,074,079 | Marker is flickering in Google Map | <p>I've implemented an app that is based on safety purposes. This app is for the two roles i.e A and B. Both users can track the location of each other. For user A, I've implemented the Mapbox and for user B I've implemented the Google Map.</p>
<p>For A, Mapbox provides the default real-time navigation and for B, I've... | I've implemented an app that is based on safety purposes. This app is for the two roles i.e A and B. Both users can track the location of each other. For user A, I've implemented the Mapbox and for user B I've implemented the Google Map. For A, Mapbox provides the default real-time navigation and for B, I've used signa... | android|google-maps|animation|kotlin|google-maps-markers | 0 | 2020-02-05T10:47:35.627Z | 2,020 | 2 | 10 | 2 | 661 | 1 | 594 | 34 | 5 | 2 | true | false | false | false | false | false | zero |
60,074,175 | Create a service that runs while activity is open | <p>I want to create a Service that makes a network operation but i want it to run as long as an activity is open. So i want to bind it in the activity's lifecycle. If the user navigates to another activity and back i want it to restart. If the screen goes off and the user reopens it i want it to start again if its not ... | I want to create a Service that makes a network operation but i want it to run as long as an activity is open. So i want to bind it in the activity's lifecycle. If the user navigates to another activity and back i want it to restart. If the screen goes off and the user reopens it i want it to start again if its not pos... | android|kotlin|android-activity|service | 0 | 2020-02-05T10:52:16.113Z | 2,020 | 2 | 10 | 2 | 66 | 1 | 625 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
60,074,209 | Firebase push notification is not popup on the screen [Flutter] | <p>I am trying to implement firebase push notifications for a flutter app.</p>
<p>But it appears just as an icon in the status bar. How can i make it pop up?</p>
<p><a href="https://i.stack.imgur.com/qlTaP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qlTaP.png" alt="enter image description here"></a></p>... | I am trying to implement firebase push notifications for a flutter app. But it appears just as an icon in the status bar. How can i make it pop up? I want popup on the screen when notification is received. Here is how my code looks like: [CODE] | android|flutter|dart | 15 | 2020-02-05T10:54:34.843Z | 2,020 | 2 | 10 | 2 | 6,847 | 3 | 244 | 63 | 3 | 1 | true | false | true | false | true | false | medium |
60,074,268 | How to create a generic Repository class? (Android) | <p>in my Android app I use MVVM model with repositories<br>
most of my DAO and Repositories classes are almost identical, so I figured I could reuse some code by creating generic equivalents that are later extended </p>
<p>this worked fine for my DAO classes:</p>
<pre><code>@Dao
interface BaseDao<T> {
@Ins... | in my Android app I use MVVM model with repositories most of my DAO and Repositories classes are almost identical, so I figured I could reuse some code by creating generic equivalents that are later extended this worked fine for my DAO classes: [CODE] [CODE] now I want to do something similar for repository, but I cann... | android|kotlin|repository|dao | 1 | 2020-02-05T10:57:36.013Z | 2,020 | 2 | 10 | 2 | 687 | 0 | 816 | 51 | 4 | 5 | true | true | false | false | false | false | low |
60,074,312 | onActivityResult callback when installing an app from Google Play Store | <p>I guess the short question is: Is it possible to get a working callback with onActivityResult after installing / not installing an app from Google Play Store?</p>
<p>I can send the user to an app (assuming they have Google Play Store and using the package name in the url) with:</p>
<pre><code>Intent marketIntent = n... | I guess the short question is: Is it possible to get a working callback with onActivityResult after installing / not installing an app from Google Play Store? I can send the user to an app (assuming they have Google Play Store and using the package name in the url) with: [CODE] I would like to get the result here: [COD... | android|android-intent|callback|installation|google-play | 1 | 2020-02-05T10:59:49.247Z | 2,020 | 2 | 10 | 2 | 534 | 2 | 749 | 71 | 5 | 2 | true | false | false | false | false | false | low |
60,074,336 | How to kill all fragments created by a NavHostFragment? | <p>I have 2 <code>navigation</code> files, and in my <code>Activity</code>, 2 <code>fragment</code>s. One of the navigations is always shown inside one of the fragments, but I show the other one only when I need it.</p>
<p>The way they're drawn is the always showing fragment is inside a relativeLayout, and the other f... | I have 2 navigation files, and in my Activity , 2 fragment s. One of the navigations is always shown inside one of the fragments, but I show the other one only when I need it. The way they're drawn is the always showing fragment is inside a relativeLayout, and the other fragment is inside the same relativeLayout with i... | android|kotlin|android-architecture-navigation|back-stack | 0 | 2020-02-05T11:01:42.663Z | 2,020 | 2 | 11 | 2 | 811 | 1 | 910 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
60,074,393 | ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not download twitter.aar (com.twitter.sdk.android:twitter:3.1.0) | <p>Someone please help me to fix this issue. Tried all possible solutions provided in Stack Overflow and other blogs. Errors:</p>
<pre><code> ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.facebook.android:facebook-android-sdk:4.26.0.
ERROR: Unable to resolve depend... | Someone please help me to fix this issue. Tried all possible solutions provided in Stack Overflow and other blogs. Errors: [CODE] Some of workarounds which I have already tried: 1. To uncheck offline mode 2. Sdk update and changing target sdk and minimum sdk levels 3. gradle version and distribution(url) version should... | android|android-native-library | 1 | 2020-02-05T11:04:44.397Z | 2,020 | 2 | 11 | 2 | 1,884 | 3 | 450 | 141 | 2 | 2 | true | false | false | false | false | false | low |
60,074,428 | How can I use my custom ImageView with DataBinding? | <p>So I checked this <a href="https://codelabs.developers.google.com/codelabs/advanced-andoid-kotlin-training-custom-views/index.html?index=..%2F..index#0" rel="nofollow noreferrer">codelab by Google</a> for creating a custom view <code>RatioImageView</code>. It simply extends the ImageView and overrides the <code>OnMe... | So I checked this codelab by Google for creating a custom view RatioImageView . It simply extends the ImageView and overrides the OnMeasure() method according to device's viewport's aspect ratio. The code for the same is: [CODE] Then I am using this in ListItem view as: [CODE] Then in the Adapter, I am using DataBindin... | android|kotlin|android-custom-view|android-databinding|android-jetpack | 4 | 2020-02-05T11:07:11.873Z | 2,020 | 2 | 11 | 2 | 529 | 3 | 1,068 | 51 | 5 | 5 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.