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,029,409
Dealing with inner Transformations.switchMap on a viewModel
<p>I am loading data from an API into an adapter, when the user clicks on it, it downloads using DownloadManager, i then use a broadcaster to let my activity know the downloadId and the hyperlink (the unique identifer for room).</p> <p>I have so far been unable to figure out how best to use the same observer as initia...
I am loading data from an API into an adapter, when the user clicks on it, it downloads using DownloadManager, i then use a broadcaster to let my activity know the downloadId and the hyperlink (the unique identifer for room). I have so far been unable to figure out how best to use the same observer as initially this wi...
android|viewmodel|androidx|android-livedata|mutablelivedata
0
2020-02-02T18:47:51.157Z
2,020
2
18
6
181
1
738
59
5
2
true
false
false
false
false
false
zero
60,029,538
How to correctly use a snackbar in Android
<p>I have created a simple counter application for Android. I have just started using support libraries and just to test it out, I wanted to show a <strong>snackbar</strong> which says <strong><em>Hello</em></strong>. Here is my code in the MainActivity.java file :</p> <pre class="lang-java prettyprint-override"><code...
I have created a simple counter application for Android. I have just started using support libraries and just to test it out, I wanted to show a snackbar which says Hello . Here is my code in the MainActivity.java file : [CODE] Here is the layout main_layout.xml file : [CODE] When I am running the app, the app crashes....
java|android
0
2020-02-02T19:02:20.407Z
2,020
2
19
6
98
1
622
42
2
3
true
false
false
false
false
false
zero
60,029,618
How can i do random background color on Android studio with kotlin
<p>I want to change background color randomly actually i just wanna red or green background randomly how can i do this with kotlin language on android studio ? </p>
I want to change background color randomly actually i just wanna red or green background randomly how can i do this with kotlin language on android studio ?
android-studio|android-layout|kotlin|random|background-color
-2
2020-02-02T19:11:45.567Z
2,020
2
19
6
97
1
156
66
5
0
false
false
false
false
false
true
negative
60,029,721
How to save SeekBar thumb position after setting value to its progress?
<p>I'm trying to get worked a segmented SeekBar for font site with step of 2. It's working, but I can't keep thumb position, it is always on 0.</p> <pre><code>private fun fontSize() { val view = LayoutInflater.from(this).inflate(R.layout.font_size_layout, null) size = view.findViewById(R.id.font_size_sb...
I'm trying to get worked a segmented SeekBar for font site with step of 2. It's working, but I can't keep thumb position, it is always on 0. [CODE] My preference class PrefManager: [CODE] For example, I set the font size to 18: That's good and works for me, but when I want to change the size one more time, the SeekBar'...
android|kotlin|android-seekbar
0
2020-02-02T19:23:27.970Z
2,020
2
19
6
136
1
420
71
3
2
true
false
false
false
false
false
zero
60,029,806
Why does the nested PreferenceScreen not open when using AndroidX?
<p>I am using AndroidX's Preference library to manage my app's settings. My <code>SettingsFragment</code> derives from <code>PreferenceFragmentCompat</code> and loads the following layout:</p> <pre><code>&lt;androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;an...
I am using AndroidX's Preference library to manage my app's settings. My SettingsFragment derives from PreferenceFragmentCompat and loads the following layout: [CODE] The layout is displayed correctly, but when I click on the nested PreferenceScreen entry nothing happens. It worked before with the PreferenceScreen from...
android|kotlin|android-preferences|androidx|preferencefragment
2
2020-02-02T19:34:39.993Z
2,020
2
19
6
913
1
459
66
5
1
true
false
false
false
false
false
low
60,029,823
Run task when android device is unlocked
<p>I am new to Android development, but I have experience with Java. </p> <p>My goal is to create an application that will try to connect to open Wifi AP when device gets unlocked (after screen on and pin/password is entered correctly). </p> <p>This would ensure that application is run only before a user is going to ...
I am new to Android development, but I have experience with Java. My goal is to create an application that will try to connect to open Wifi AP when device gets unlocked (after screen on and pin/password is entered correctly). This would ensure that application is run only before a user is going to use the phone so to s...
android
-1
2020-02-02T19:36:57.590Z
2,020
2
19
6
167
1
1,445
40
1
0
false
false
false
false
false
true
negative
60,029,847
How can I access the attributes of an object I passed through intent?
<p>I declared a class of the type Schedule. I have an instance called schedule and I pass it through intent to the CalculatedSchedule Activity</p> <blockquote> <p>startActivity(Intent(this,CalculatedSchedule::class.java).apply { putExtra(SCHEDULE,schedule) })</p> </blockquote> <p>How...
I declared a class of the type Schedule. I have an instance called schedule and I pass it through intent to the CalculatedSchedule Activity startActivity(Intent(this,CalculatedSchedule::class.java).apply { putExtra(SCHEDULE,schedule) }) How do I access the values on the CalculatedSchedule Activity? I stored it on the v...
android|kotlin
0
2020-02-02T19:39:48.607Z
2,020
2
19
6
123
1
736
69
2
0
false
false
false
false
false
false
zero
60,029,916
Is there an api in Google maps sdk to determine a location's category like restauraunt or Hotel etc?
<p>I'm developing an android app from which I'm getting the current location of the user. When a user visits a place, I would like to find if the place is a Hotel or a Motel or a temple and record the frequency of the user's visit on each category.</p>
I'm developing an android app from which I'm getting the current location of the user. When a user visits a place, I would like to find if the place is a Hotel or a Motel or a temple and record the frequency of the user's visit on each category.
android|google-places-api
-1
2020-02-02T19:47:06.590Z
2,020
2
19
6
23
1
245
100
2
0
false
false
false
false
false
true
negative
60,030,014
adding Edittext and Button when clicking a button in kotlin
<p>my app needs an add button that adds two Edittext and another button every time they click the add button adds again the same three things under the added ones, I attached a screenshot of how my app suppose to work, I really need help in this I am new in android development.</p> <p>here is my activity layout</p> <...
my app needs an add button that adds two Edittext and another button every time they click the add button adds again the same three things under the added ones, I attached a screenshot of how my app suppose to work, I really need help in this I am new in android development. here is my activity layout [CODE] and here i...
android|android-studio|kotlin
0
2020-02-02T19:56:23.937Z
2,020
2
19
6
950
1
358
59
3
1
true
false
false
false
false
false
zero
60,030,091
Navigating back to Home Fragment with NavController Stucked at newly launched fragment
<p>Am having a an Activity with a NavHostFragment which hold my Apps main navigation graph of which its HomeFragment in the NavGraph also has a NavHostFragment in it and a TabLayout, now the problem am having here is when i navigate out of the HomeFragment which has NavHostFragment in am on unable to comeback use the b...
Am having a an Activity with a NavHostFragment which hold my Apps main navigation graph of which its HomeFragment in the NavGraph also has a NavHostFragment in it and a TabLayout, now the problem am having here is when i navigate out of the HomeFragment which has NavHostFragment in am on unable to comeback use the back...
android|android-fragments|uinavigationcontroller
1
2020-02-02T20:06:14.593Z
2,020
2
20
6
60
0
374
86
3
0
false
true
false
false
false
false
low
60,030,176
Creating notification message
<p>Trying to send message to notification area:</p> <pre><code>public void sendNotification (View view) { NotificationCompat.Builder builder = new NotificationCompat.Builder(this); builder.setSmallIcon(android.R.drawable.ic_dialog_alert); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://w...
Trying to send message to notification area: [CODE] But I got nothing when press button with call to sendNotification . What I do wrong?
android|android-intent
0
2020-02-02T20:16:07.677Z
2,020
2
20
6
34
0
136
29
2
1
true
true
false
false
false
false
zero
60,030,273
DialogFragment Bundle putSerializable: Sometimes giving NotSerializableException
<p>I have a object, that has other objects inside. I need to pass that object to a FragmentDialog, so I made that object Serializable and it's working perfectly in my device.</p> <pre><code>public static SelectTeamDialog newInstance(Data data) { SelectTeamDialog dialog = new SelectTeamDialog(); Bundle args = n...
I have a object, that has other objects inside. I need to pass that object to a FragmentDialog, so I made that object Serializable and it's working perfectly in my device. [CODE] The problem is that I'm seeing some NotSerializableException reported in google developer console, so for some reason, in some devices, is gi...
android|android-fragments|bundle|serializable|android-bundle
1
2020-02-02T20:28:03.497Z
2,020
2
20
6
285
1
1,320
80
5
1
true
false
false
false
false
false
low
60,030,422
Creating android layout by xml without android studio layout editor
<p>Is any editor to create android layout except android studio or others Android IDE layout editor?<br> I have 2GB of RAM and android studio or others IDE make crashes a lot. I need to build XML layout for android application , if you know any IDE or XML editor which can be used for android layout (such activity layou...
Is any editor to create android layout except android studio or others Android IDE layout editor? I have 2GB of RAM and android studio or others IDE make crashes a lot. I need to build XML layout for android application , if you know any IDE or XML editor which can be used for android layout (such activity layout or dr...
android|xml|android-layout|ide|xml-editor
1
2020-02-02T20:46:08.177Z
2,020
2
20
6
252
0
367
67
5
0
false
true
false
false
false
false
low
60,030,520
Why the text in custom SwitchCompat inside track show always below the thum
<p>I am trying to implement custom SwitchButton with text inside it's track like these image in On/Off cases </p> <p><img src="https://i.stack.imgur.com/y0P6w.jpg" alt="enter image description here">]<a href="https://i.stack.imgur.com/y0P6w.jpg" rel="nofollow noreferrer">1</a></p> <p><a href="https://i.stack.imgur.co...
I am trying to implement custom SwitchButton with text inside it's track like these image in On/Off cases ] 1 my problem is i fount the text appears under the thumb not beside it like Here is my code [CODE] selector_thumb xml [CODE] selector_track xml [CODE] How can fix this text direction? P.S. Arabic text required. T...
android|switchcompat
1
2020-02-02T20:58:09.433Z
2,020
2
20
6
346
0
337
75
2
3
true
true
false
false
false
false
low
60,030,554
Fetching Database from Firembase need 2nd click To Display Data
<p>tried retrieve data from firebase when user click the button, but the data not displayed if the button is click for the first time, then if i click again the data is displayed.. any idea what i should adding to the code so the data is appear on the first click attempt..</p> <p>here are the code :</p> <pre><code> ...
tried retrieve data from firebase when user click the button, but the data not displayed if the button is click for the first time, then if i click again the data is displayed.. any idea what i should adding to the code so the data is appear on the first click attempt.. here are the code : [CODE] here is the efekGK met...
android|firebase|firebase-realtime-database|edi
0
2020-02-02T21:01:22.837Z
2,020
2
21
6
41
2
854
63
4
4
true
false
false
false
false
false
zero
60,030,589
How to make Up Button go back instead of opening Navigation Drawer
<p>I successfully implemented a Navigation Drawer in my app, linking each item of the menu to a fragment. The destination fragment hides the DrawerToggle and displays the up button (i.e. the arrow icon), but for whatever reason, if I click on it, it opens the drawer and I can't go back to the previous fragment. I have ...
I successfully implemented a Navigation Drawer in my app, linking each item of the menu to a fragment. The destination fragment hides the DrawerToggle and displays the up button (i.e. the arrow icon), but for whatever reason, if I click on it, it opens the drawer and I can't go back to the previous fragment. I have to ...
android|kotlin|navigation|androidx
2
2020-02-02T21:05:30.277Z
2,020
2
21
6
728
2
586
66
4
1
true
false
false
false
false
false
low
60,030,593
javax.net.ssl.SSLHandshakeException: Handshake failed on api level 28 and 29 with using okhttp3:okhttp:4.2.2
<p>Hi I am writing an android app that use okhttp to connect to server, I was ok with api levels below 28 for connecting and fetch data from server but in phones that have android 28 and greater I got failed to connect to server error. My first code was : </p> <pre><code>private void getToken(){ OkHttpClient clie...
Hi I am writing an android app that use okhttp to connect to server, I was ok with api levels below 28 for connecting and fetch data from server but in phones that have android 28 and greater I got failed to connect to server error. My first code was : [CODE] and my api.loginRequest(cons.phoneNumber) function was: [COD...
android|ssl|okhttp
1
2020-02-02T21:06:02.970Z
2,020
2
21
6
368
0
963
108
3
3
true
true
false
false
false
false
low
60,030,654
How to control activity flow within Android in timeout situation?
<p>I have a small android app that consists of <strong>1 main activity</strong> (started activity, anyone can use) and some <strong>3 more activities</strong> that require a <strong>login</strong> with a password.</p> <p>I have created an application class that holds the info whether someone is logged in or not.</p> ...
I have a small android app that consists of 1 main activity (started activity, anyone can use) and some 3 more activities that require a login with a password. I have created an application class that holds the info whether someone is logged in or not. In addition the user shall be logged out and sent automatically to ...
android|timeout
0
2020-02-02T21:15:54.560Z
2,020
2
21
6
127
1
1,536
65
2
1
true
false
false
false
false
false
zero
60,030,676
Firebase doesn't Recognise the String Key for setting a value
<p>I have got a ListView Activity loaded with FirebaseDatabse items (users). Once you click an item of the ListView, it passes the item-Key of the related user (FirebaseDatabase Hash)to another Activity, in which there is a confirmation button. Once clicked the confirmation button, it should Set a confirmation value (...
I have got a ListView Activity loaded with FirebaseDatabse items (users). Once you click an item of the ListView, it passes the item-Key of the related user (FirebaseDatabase Hash)to another Activity, in which there is a confirmation button. Once clicked the confirmation button, it should Set a confirmation value ("Acc...
java|android|firebase-realtime-database
1
2020-02-02T21:18:40.353Z
2,020
2
21
6
53
1
808
61
3
2
true
false
false
false
false
false
low
60,030,711
Metro bundler stops after "Loading dependency graph, done"
<p>I'm just starting to RN from ReactJs and I have been trying to run a React-Native Project, but when I type <code>react-native start</code> the Metro bundler stops at this line : <code>Loading dependency graph, done</code>. </p> <p>I can notice this isn't right because it doesn't load my code changes and it gives me...
I'm just starting to RN from ReactJs and I have been trying to run a React-Native Project, but when I type react-native start the Metro bundler stops at this line : Loading dependency graph, done . I can notice this isn't right because it doesn't load my code changes and it gives me the error "cannot connect to the dev...
android|react-native
0
2020-02-02T21:23:29.407Z
2,020
2
21
6
453
1
698
58
2
0
false
false
false
false
false
false
zero
60,030,716
Randomize questions in a multiple choice game
<p>I made a multiple choice game and tried to randomize the questions by using the shuffle method on my array which contains all my questions. The problem is that some questions are being constantly repeated, so you will see some questions two times, some you won't see at all. I thought that I could use a arraylist in...
I made a multiple choice game and tried to randomize the questions by using the shuffle method on my array which contains all my questions. The problem is that some questions are being constantly repeated, so you will see some questions two times, some you won't see at all. I thought that I could use a arraylist instea...
java|android-studio
0
2020-02-02T21:24:17.463Z
2,020
2
21
6
42
1
742
45
2
2
true
false
false
false
false
false
zero
60,030,719
DiffUtil.ItemCallback sometimes loses oldItem and causes areContentsTheSame() to incorrectly return true
<p>I'm having an issue with the <code>DiffUtil.ItemCallback</code> library where the old state of a list item somehow ends up being lost and causes <code>oldTask</code> to have the same values as <code>newTask</code>.</p> <p>This is happening when I check/uncheck a checkbox in my ListAdapter and <code>onChanged()</co...
I'm having an issue with the DiffUtil.ItemCallback library where the old state of a list item somehow ends up being lost and causes oldTask to have the same values as newTask . This is happening when I check/uncheck a checkbox in my ListAdapter and onChanged() in my LiveData observer calls the DiffUtil.ItemCallback fun...
java|android|android-livedata|listadapter|android-diffutils
3
2020-02-02T21:24:45.647Z
2,020
2
21
6
477
1
1,535
104
5
3
true
false
false
false
false
false
low
60,030,844
How to give more EditText fields a one line feeling
<p>I have 4 edit-text fields in my code where the user has to insert 4 digits. I'd like to have the 4 fields to be connected to each other, just like it would be for one text field. Means, that if I've entered the first digit it should jump directly to the 2nd edit-text and so on. Deleting it should go back from 4 to 1...
I have 4 edit-text fields in my code where the user has to insert 4 digits. I'd like to have the 4 fields to be connected to each other, just like it would be for one text field. Means, that if I've entered the first digit it should jump directly to the 2nd edit-text and so on. Deleting it should go back from 4 to 1 wi...
android|xml|kotlin|android-edittext
0
2020-02-02T21:39:02.477Z
2,020
2
21
6
59
2
420
51
4
1
true
false
false
false
false
false
zero
60,030,850
Why is my exception need to be in try/catch?
<p>I'm trying to get information from the database. and check if username is already exists I'm using the google cloud firestore data base. I declared the method as throwing an exception that i created. and when i try to call the throwing of the exception, it tells me that i need to put it in try/catch block. and I'm w...
I'm trying to get information from the database. and check if username is already exists I'm using the google cloud firestore data base. I declared the method as throwing an exception that i created. and when i try to call the throwing of the exception, it tells me that i need to put it in try/catch block. and I'm wond...
java|android|exception|google-cloud-firestore|try-catch
0
2020-02-02T21:39:56.230Z
2,020
2
21
6
240
2
658
44
5
5
true
false
false
false
false
false
zero
60,030,905
How do I add KtLint style to Android Studio using Gradle?
<p>I want to add the style <code>ktlint</code> uses to Android Studio so that when I apply formatting myself it uses the <code>ktlint</code> style.</p> <p>Based on the documentation, I installed the <code>ktlint</code> CLI</p> <pre><code>brew install ktlint </code></pre> <p>I then navigated to the root of my projec...
I want to add the style ktlint uses to Android Studio so that when I apply formatting myself it uses the ktlint style. Based on the documentation, I installed the ktlint CLI [CODE] I then navigated to the root of my project and executed [CODE] The style now appears in my preferences for use. The issue is that the style...
android|gradle|ktlint
3
2020-02-02T21:45:54.057Z
2,020
2
21
6
4,429
1
1,731
57
3
5
true
false
true
false
false
false
low
60,030,939
Is there any way to create views on Android in parallel?
<p>I'm developing an application where, in a certain part of its execution, the user will be able to see the data in a text file in the form of a graph. However, as the text file can have several columns (and it's intended to create a graph for each column), using only the UI thread can block the application for a few ...
I'm developing an application where, in a certain part of its execution, the user will be able to see the data in a text file in the form of a graph. However, as the text file can have several columns (and it's intended to create a graph for each column), using only the UI thread can block the application for a few mom...
java|android|threadpoolexecutor
0
2020-02-02T21:49:55.787Z
2,020
2
21
6
92
1
1,104
56
3
3
true
false
false
false
false
false
zero
60,030,989
Get data from Chrome Custom Tab request URL in Android
<p>I am trying to implement a PayPal Vault Braintree payment solution. But since it is a "redirect" process via Chrome Custom Tab, I am having trouble finishing the process. This because in Paypal Web version, the "data response" returns in URL to be used. However, on Android I cannot achieve the same result since the ...
I am trying to implement a PayPal Vault Braintree payment solution. But since it is a "redirect" process via Chrome Custom Tab, I am having trouble finishing the process. This because in Paypal Web version, the "data response" returns in URL to be used. However, on Android I cannot achieve the same result since the Chr...
java|android|paypal|braintree|chrome-custom-tabs
3
2020-02-02T21:56:03.737Z
2,020
2
21
6
412
0
980
54
5
1
true
true
false
false
false
false
low
60,031,082
Android: Record Audio for later Background Streaming to Speech-to-Text?
<p>Within my Android app i want to be able to record spoken audio, online or offline, then, when i choose to, stream chunks of recorded audio to Google for Speech to Text transcribing all in the background so as to not affect the current Activity. New voice recording and streaming / transcribing could be going on at t...
Within my Android app i want to be able to record spoken audio, online or offline, then, when i choose to, stream chunks of recorded audio to Google for Speech to Text transcribing all in the background so as to not affect the current Activity. New voice recording and streaming / transcribing could be going on at the s...
android|text|translation|speech
1
2020-02-02T22:08:38.317Z
2,020
2
22
6
385
1
393
71
4
0
false
false
false
false
false
false
low
60,031,097
Working with ByteArrays and SecretKeySpec in Kotlin
<p>I have a seemingly simple task..</p> <p>Take a file, open it, take the byte stream as a AES key, and instantiate a <code>javax.crypto.spec.SecretKeySpec</code> within Android Kotlin</p> <pre><code>if (key == null) { val my_bytes: ByteArray = byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) val alg...
I have a seemingly simple task.. Take a file, open it, take the byte stream as a AES key, and instantiate a javax.crypto.spec.SecretKeySpec within Android Kotlin [CODE] Edit: SecretKeySpec() works now. I just need to know how to put the bytes from the file into the android app properly. Is hard coding in the app insecu...
android|kotlin|aes|encryption-symmetric
1
2020-02-02T22:12:09.807Z
2,020
2
22
6
444
1
401
51
4
1
true
false
false
false
false
false
low
60,031,100
Custom LayoutManager disallow touch event for child views except first one
<p>I have a custom <code>LayoutManager</code> that relays views like a card stack as follows. However, I am having a problem with touch event. I'd like to only allow the first child to have a <code>touch event</code> and disallow for other ones. How can I make it? Thanks in advance.</p> <p><a href="https://i.stack.img...
I have a custom LayoutManager that relays views like a card stack as follows. However, I am having a problem with touch event. I'd like to only allow the first child to have a touch event and disallow for other ones. How can I make it? Thanks in advance.
android|android-layout|android-recyclerview
-1
2020-02-02T22:12:28.717Z
2,020
2
22
6
51
1
254
74
3
0
false
false
false
false
false
true
negative
60,031,189
GoogleMap object is null when trying to migrate from older version Google Map code (Android apps Programming) - trouble migrating to newer version?
<p>I am a newbie to Android Programming (have very little knowledge about Android programming). I am trying to read and code a project in a book, but it is an old project and most of the dependencies (Android Studio, SDK, Google Maps, ...) are outdated. I try to migrate the project to newer version but still has some p...
I am a newbie to Android Programming (have very little knowledge about Android programming). I am trying to read and code a project in a book, but it is an old project and most of the dependencies (Android Studio, SDK, Google Maps, ...) are outdated. I try to migrate the project to newer version but still has some prob...
java|android|google-maps|android-studio|runtime-error
1
2020-02-02T22:25:32.407Z
2,020
2
22
6
705
1
1,263
147
5
3
true
false
false
false
false
false
low
60,031,291
retrieve data from firebase to textview returns null how to fix?
<p>I'm trying to retrieve data from firebase to a texview but it returns null, and I was wondering how I can retrieve the respective data based on the uid only of the connected user. I tried in different ways today all afternoon but without any success, someone could help me. I've researched and tried all the stackover...
I'm trying to retrieve data from firebase to a texview but it returns null, and I was wondering how I can retrieve the respective data based on the uid only of the connected user. I tried in different ways today all afternoon but without any success, someone could help me. I've researched and tried all the stackoverflo...
android|firebase|firebase-realtime-database
0
2020-02-02T22:39:54.867Z
2,020
2
22
6
467
1
636
64
3
2
true
false
false
false
false
false
zero
60,031,361
Domain name tab missing from Android Studio
<p>I have installed Android Studio and am in the process of creating a new project. I need to set the Domain name to a specific title but the tab to enter it is missing. There is only "Name", "Package Name", and "Save Location". </p> <p>I tried uninstalling then reinstalling it but still have the same result. Based o...
I have installed Android Studio and am in the process of creating a new project. I need to set the Domain name to a specific title but the tab to enter it is missing. There is only "Name", "Package Name", and "Save Location". I tried uninstalling then reinstalling it but still have the same result. Based on what I've f...
android|android-studio|domain-name
0
2020-02-02T22:51:49.137Z
2,020
2
22
6
88
1
445
43
3
0
false
false
false
false
false
false
zero
60,031,419
Login Activity wont open when login link is click
<p>I am trying to open <code>LoginActivity</code> screen from the <code>RegisterActivity</code> screen, but it does not go to <code>LoginActivity</code> and instead it goes to <code>HomeActivity</code>. My plan is to be able to have a register screen and if user has an account already, the user should be able to login ...
I am trying to open LoginActivity screen from the RegisterActivity screen, but it does not go to LoginActivity and instead it goes to HomeActivity . My plan is to be able to have a register screen and if user has an account already, the user should be able to login by clicking on the link. For my activity_register.xml ...
android
0
2020-02-02T23:00:31.447Z
2,020
2
23
6
100
2
788
49
1
5
true
false
false
false
false
false
zero
60,031,562
How i can see pending notifications on Flutter local notifications?
<p>I can schedule notification, but i want see pending notifications actives. It is possible? Where flutter store time of notifications to show?</p> <p>ex:</p> <pre><code>notifications.periodicallyShow(id, title, body, RepeatInterval.EveryMinute, _ongoing); </code></pre> <p>I want see where is 'RepeatInterval' value...
I can schedule notification, but i want see pending notifications actives. It is possible? Where flutter store time of notifications to show? ex: [CODE] I want see where is 'RepeatInterval' value is stored
android|flutter|push-notification
0
2020-02-02T23:25:49.713Z
2,020
2
23
6
892
1
205
67
3
1
true
false
false
false
false
false
zero
60,031,706
Share greasemonkey script and database between Windows and Android Firefox
<p>I've been using a homemade greasemonkey scripts for ages on my laptop Firefox. It includes storing data with GM.setValue.</p> <p>Now I just bought an Android tablet, and would like to be able to use this script and update the values, whereas I'm using the laptop or the tablet.</p> <p>Hoped that Firefox Sync would ...
I've been using a homemade greasemonkey scripts for ages on my laptop Firefox. It includes storing data with GM.setValue. Now I just bought an Android tablet, and would like to be able to use this script and update the values, whereas I'm using the laptop or the tablet. Hoped that Firefox Sync would handle that, but no...
android|firefox|greasemonkey
1
2020-02-02T23:53:16.833Z
2,020
2
23
6
915
2
1,836
74
3
0
false
false
false
false
false
false
low
60,031,874
pass data from one activity to another and save it
<p>i have two activities, each one have a listview. The first one contain the data and i want the other one to be as a favorite list. Right now i can pass the data with intent but its not saving. it shows when i start the intent but when i exit the second activity and go back to it with a custom button nothing is saved...
i have two activities, each one have a listview. The first one contain the data and i want the other one to be as a favorite list. Right now i can pass the data with intent but its not saving. it shows when i start the intent but when i exit the second activity and go back to it with a custom button nothing is saved in...
java|android|string|android-listview|android-sqlite
0
2020-02-03T00:29:11.173Z
2,020
2
0
0
65
2
493
50
5
4
true
false
false
false
false
false
zero
60,031,990
Starting an fragment within a view model
<p>I'm trying to rework my studying project to use MVVM and data binding.</p> <p>The project is here: <a href="https://github.com/Sophon/CriminalIntent/tree/dev" rel="nofollow noreferrer">https://github.com/Sophon/CriminalIntent/tree/dev</a></p> <p>Before the rework, the app behaved like this:</p> <ul> <li><code>Mai...
I'm trying to rework my studying project to use MVVM and data binding. The project is here: https://github.com/Sophon/CriminalIntent/tree/dev Before the rework, the app behaved like this: MainActivity hosts a CrimeListFragment , which is a RecyclerView of Crime s CrimeHolder implements View.OnClickListener and onClick(...
android|android-fragments|kotlin|mvvm|data-binding
0
2020-02-03T00:53:32.463Z
2,020
2
0
0
85
1
1,557
40
5
0
false
false
false
false
false
false
zero
60,031,992
How to unit test a View class
<p>I want to write some unit tests for a custom view class. The class extends EditText. Its constructor takes a context and and AttributeSet as required arguments. </p> <pre><code>class CustomEditText(context: Context, attrs: AttributeSet) : AppCompatEditText(context, attrs) { ... } </code></pre> <p>Since I need ...
I want to write some unit tests for a custom view class. The class extends EditText. Its constructor takes a context and and AttributeSet as required arguments. [CODE] Since I need a Context, I gave up on making a unit test, and instead tried to make an instrumented test so that I could get access to ApplicationProvide...
android|unit-testing
0
2020-02-03T00:54:40.127Z
2,020
2
0
0
64
1
629
29
2
1
true
false
false
false
false
false
zero
60,032,154
Reference to "method" is ambiguous
<p>When calling Builder() I am given the error message: </p> <blockquote> <p>Reference to 'Builder' is ambiguous, both 'androidx.camera.core.impl.UseCaseConfig.Builder' and 'androidx.camera.core.impl.ImageOutputConfig.Builder' match</p> </blockquote> <p>The error is produced within the startCamera() function. <stro...
When calling Builder() I am given the error message: Reference to 'Builder' is ambiguous, both 'androidx.camera.core.impl.UseCaseConfig.Builder' and 'androidx.camera.core.impl.ImageOutputConfig.Builder' match The error is produced within the startCamera() function. How would I make sure the compiler knows to use the Us...
java|android|android-camera|android-camerax
2
2020-02-03T01:26:03.903Z
2,020
2
1
0
1,359
1
405
34
4
1
true
false
false
false
false
false
low
60,032,163
How to replace fragment
<p>I have a problem when i perform a search view. My searchview is using onQuetyTextChanged, to show the search result every time the text is changed. I want the data to return to its original state when the text input is deleted. I use this code <code>transaction.replace(R.id.frame_container, moviesFragment);</code> t...
I have a problem when i perform a search view. My searchview is using onQuetyTextChanged, to show the search result every time the text is changed. I want the data to return to its original state when the text input is deleted. I use this code transaction.replace(R.id.frame_container, moviesFragment); to restore the fr...
android|xml|android-activity|fragment
0
2020-02-03T01:27:47.873Z
2,020
2
1
0
65
2
582
23
4
2
true
false
false
false
false
false
zero
60,032,183
How to implement searchview
<hr> <p>I need to implement a SearchView. My Newsfeed is set up via the CardView and RecyclerView. I also used volley and JSON to create the effect. I am fairly new to android development and I want to be able to search and filter the JSON Activity but I don't know how to. Some of the tutorials are difficult because t...
I need to implement a SearchView. My Newsfeed is set up via the CardView and RecyclerView. I also used volley and JSON to create the effect. I am fairly new to android development and I want to be able to search and filter the JSON Activity but I don't know how to. Some of the tutorials are difficult because they used ...
java|android|json|search|view
0
2020-02-03T01:31:35.553Z
2,020
2
1
0
58
1
429
27
5
1
true
false
false
false
false
false
zero
60,032,229
Gradle sync failed: Could not find method google() for arguments [] on repository container
<p>This is a reoccuring problem with this project. I've attempted a couple different solutions and none have worked. Including updating class path version and version number in gradle-wrapper.properties.</p> <p>Build.Gradle FILE: </p> <pre><code>buildscript { repositories { google() jcenter() ...
This is a reoccuring problem with this project. I've attempted a couple different solutions and none have worked. Including updating class path version and version number in gradle-wrapper.properties. Build.Gradle FILE: [CODE] Gradle-Wrapper.properties FILE: [CODE]
android|android-studio|gradle|build.gradle
1
2020-02-03T01:40:46.220Z
2,020
2
1
0
426
0
265
91
4
2
true
true
false
false
false
false
low
60,032,248
Mac OS High Sierra: Running apt install bindfs returns error from Java
<p>I have /usr/bin set as a $PATH variable, which is where 'apt' and 'install' both reside, yet Terminal is returning this...</p> <pre><code>Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-13.0.2.jdk/Contents/Home/bin/apt" (-1) </code></pre> <p>whenever I run it. </p> <p>I've tried cd to the...
I have /usr/bin set as a $PATH variable, which is where 'apt' and 'install' both reside, yet Terminal is returning this... [CODE] whenever I run it. I've tried cd to the /usr/bin directory, and double checked that the PATH exists in .bash_profile, and restarted the Terminal and tried again. Does this command need to ex...
java|android|bash|android-ndk|apt
0
2020-02-03T01:45:10.820Z
2,020
2
1
0
1,829
0
536
70
5
1
true
true
false
false
false
false
zero
60,032,389
Unable to pass data from AppCompatDialogFragment to Fragment (NullPointerException)
<p>I am trying to pass Cloud Firestore data from my alert dialog to fragment. Firestore data is stored as list view. I am able to read Firestore data when I click item inside my List View but unable to pass it to my fragment via interface.</p> <p>What I've tried: </p> <p>I've tried to make classic communication bet...
I am trying to pass Cloud Firestore data from my alert dialog to fragment. Firestore data is stored as list view. I am able to read Firestore data when I click item inside my List View but unable to pass it to my fragment via interface. What I've tried: I've tried to make classic communication between two fragment (Ale...
java|android|firebase|google-cloud-firestore|fragment
0
2020-02-03T02:19:11.617Z
2,020
2
2
0
153
2
573
83
5
2
true
false
false
false
false
false
zero
60,032,553
Touch to Zoom And Rotate script for Unity player
<p>I had this unity player embedded in android studio activity.<br> It is a 3d model with animation, which I would like viewer to be able to zoom and view in different angle.</p> <p>Script are from this <a href="https://forum.unity.com/threads/mobile-touch-to-orbit-pan-and-zoom-camera-without-fix-target-in-one-script....
I had this unity player embedded in android studio activity. It is a 3d model with animation, which I would like viewer to be able to zoom and view in different angle. Script are from this link [CODE] The zoom in and out work perfectly. But the problem is, the rotate/pan is totally not working. Anyone can give some hel...
c#|android|unity3d
2
2020-02-03T02:54:04.540Z
2,020
2
2
0
2,874
1
330
48
3
1
true
false
true
false
false
false
low
60,032,575
Expo in-app-purchases: ReferenceError: Can't find variable: connectAsync
<p>I'm trying to follow along with expo's <a href="https://docs.expo.io/versions/latest/sdk/in-app-purchases/" rel="nofollow noreferrer">in app purchases documentation.</a>. I have the android developer account and set up my in-app-purchase on that account for the same app. I'm just trying to get started with the docum...
I'm trying to follow along with expo's in app purchases documentation. . I have the android developer account and set up my in-app-purchase on that account for the same app. I'm just trying to get started with the documentation and receive an error immediately. If you look at the documentation, I'm just trying to enter...
android|reactjs|react-native|in-app-purchase|expo
0
2020-02-03T02:56:48.663Z
2,020
2
2
0
1,279
2
463
72
5
2
true
false
false
false
false
false
zero
60,032,722
Android: i'm already delete my data, but in room still exists some data
<p>I have <strong>Boolean booleanCheckAvailabilityData</strong> to check availability data in my activity to create add/remove favorite. then i create </p> <p><code>dataFavoriteMovieById = favoriteMovieViewModel.getAllFavoriteMovieById(idMovie);</code></p> <p>to get data by id. so i make conditional statement to che...
I have Boolean booleanCheckAvailabilityData to check availability data in my activity to create add/remove favorite. then i create dataFavoriteMovieById = favoriteMovieViewModel.getAllFavoriteMovieById(idMovie); to get data by id. so i make conditional statement to check avaiability data then put the result to boolean ...
android|android-room|android-livedata
2
2020-02-03T03:22:36.877Z
2,020
2
3
0
436
3
745
71
3
1
true
false
false
false
false
false
low
60,032,815
How to scan raw resources?
<p>Is it possible to scan the raw resource folder and obtain a list of all the files in it? Or do I have to list all the files I want to use explicitly in my App?</p> <p>Therefore, is the only possibility to access raw resources with </p> <pre><code>R.raw.&lt;identifier&gt; </code></pre> <p>or is it possible to some...
Is it possible to scan the raw resource folder and obtain a list of all the files in it? Or do I have to list all the files I want to use explicitly in my App? Therefore, is the only possibility to access raw resources with [CODE] or is it possible to somehow obtain a list of everything in R.raw.* ?
android
1
2020-02-03T03:39:23.513Z
2,020
2
3
0
38
1
300
26
1
1
true
false
false
false
false
false
low
60,032,854
Scroll view when soft keyboard is up in fragment with Toolbar and windowTranslucentStatus set to true
<p>Fragment is not scrolling when keyboard is up, meanwhile similar setup has work for activities. I added <code>android:windowSoftInputMode="adjustResize|stateAlwaysHidden</code> in the activity that is hosting the fragment, and added <code>android:fitsSystemWindows="true"</code> to the root layout of the fragment. I'...
Fragment is not scrolling when keyboard is up, meanwhile similar setup has work for activities. I added android:windowSoftInputMode="adjustResize|stateAlwaysHidden in the activity that is hosting the fragment, and added android:fitsSystemWindows="true" to the root layout of the fragment. I'm using Butterknife tho. Here...
android|android-layout|android-fragments|android-softkeyboard
1
2020-02-03T03:44:45.163Z
2,020
2
3
0
288
1
492
101
4
4
true
false
false
false
false
false
low
60,032,940
How to set notifications badge over app icon
<p>I created a messaging app, I want when some user send a message to another user then that user receives notifications badges over there app icon.</p> <p>It should be work even app is closed or killed.</p> <p>Thanks in advance.</p> <p>I tried some libraries of GitHub but not working.</p>
I created a messaging app, I want when some user send a message to another user then that user receives notifications badges over there app icon. It should be work even app is closed or killed. Thanks in advance. I tried some libraries of GitHub but not working.
java|android
2
2020-02-03T04:01:04.720Z
2,020
2
4
0
52
1
262
44
2
0
false
false
false
false
false
false
low
60,033,004
One big database versus many small databases
<p>My App deals with several similar datasets. That is, they are stored in the same tables, but different data. The user may create more datasets. In any case, these datasets are guaranteed to be disjunct. There will never be any data in one dataset linked somehow to data in another dataset.</p> <p>I was wondering, wo...
My App deals with several similar datasets. That is, they are stored in the same tables, but different data. The user may create more datasets. In any case, these datasets are guaranteed to be disjunct. There will never be any data in one dataset linked somehow to data in another dataset. I was wondering, would it be b...
android|sqlite|android-room|database-performance
2
2020-02-03T04:13:39.300Z
2,020
2
4
0
1,757
4
1,890
44
4
0
false
false
false
false
false
false
low
60,033,079
Data loss after android application update
<p>I have an android app with 130K users, and Very few users (0-6) reports that their data is got cleared after they updated app from playstore.</p> <p>I checked the device and found all data in the application data directory is completely cleared even log file. Of course, there is no code that deletes all the files i...
I have an android app with 130K users, and Very few users (0-6) reports that their data is got cleared after they updated app from playstore. I checked the device and found all data in the application data directory is completely cleared even log file. Of course, there is no code that deletes all the files in applicati...
android|realm|data-loss
1
2020-02-03T04:26:16.423Z
2,020
2
4
0
144
0
596
42
3
1
true
true
false
false
false
false
low
60,033,113
Keep track of latitude/longitude distances between users
<p>I am trying to build an app that keeps continuous track of how close users are to each other. I am able to get latitude and longitude measurements but need some advice on how to keep track of everyone and how far they are from each other. </p> <p>I would prefer not to have to use the haversine formula on every coor...
I am trying to build an app that keeps continuous track of how close users are to each other. I am able to get latitude and longitude measurements but need some advice on how to keep track of everyone and how far they are from each other. I would prefer not to have to use the haversine formula on every coordinate again...
android
0
2020-02-03T04:31:35.140Z
2,020
2
4
0
37
0
428
56
1
0
false
true
false
false
false
false
zero
60,033,202
Reference to drawn text using drawText() on a canvas
<p>I have a canvas on which I have drawn some text using <strong>drawText()</strong>, is it possible to get a reference to that text? I want to select that text using the <strong>onLongPress()</strong> gesture and I think I need to have the reference of that text to do that.</p>
I have a canvas on which I have drawn some text using drawText() , is it possible to get a reference to that text? I want to select that text using the onLongPress() gesture and I think I need to have the reference of that text to do that.
android|android-canvas
0
2020-02-03T04:45:21.260Z
2,020
2
4
0
238
1
239
52
2
0
false
false
false
false
false
false
zero
60,033,355
Android Media Codec API basic example
<p>I've recently came across Android Media Codec API and wanted to try out a sample project have gone through the documentation I've understand the flow and I know I have to use media extractor, media encoder and media mixer to clone a video and should apply effects and filters on surfaces however im struggling integra...
I've recently came across Android Media Codec API and wanted to try out a sample project have gone through the documentation I've understand the flow and I know I have to use media extractor, media encoder and media mixer to clone a video and should apply effects and filters on surfaces however im struggling integratin...
java|android|kotlin|android-mediacodec
1
2020-02-03T05:04:55.767Z
2,020
2
5
0
1,153
1
523
37
4
0
false
false
false
false
false
false
low
60,033,374
React native android APK release build failed
<p>I have tried to build release build APK for my project. The project is perfectly working in the simulator. The problem is, showing some errors. I cannot trace what is the error about. Please check the below screenshot for errors.</p> <p><a href="https://i.stack.imgur.com/sxp4q.png" rel="nofollow noreferrer"><img sr...
I have tried to build release build APK for my project. The project is perfectly working in the simulator. The problem is, showing some errors. I cannot trace what is the error about. Please check the below screenshot for errors. Code used for APK generation: cd android && gradlew assembleRelease Please check the below...
android|react-native
3
2020-02-03T05:07:33.163Z
2,020
2
5
0
2,838
0
468
45
2
2
true
true
true
false
false
false
low
60,033,389
confirm button of Sweet Alert Dialog is displayed too thin
<p>I use <a href="https://github.com/F0RIS/sweet-alert-dialog" rel="nofollow noreferrer">Sweet Alert Dialog</a> in a project like this:</p> <pre><code>SweetAlertDialog sweetAlertDialog = new SweetAlertDialog(this.getActivity(), SweetAlertDialog.WARNING_TYPE) .setTitleText(title) .setCon...
I use Sweet Alert Dialog in a project like this: [CODE] But the confirm button is too thin: I tried to set minimum height for button after showing dialog and re-show that: [CODE] But it did not solve the problem. Is there a way to correct that?
android|android-alertdialog
1
2020-02-03T05:08:52.447Z
2,020
2
5
0
1,135
1
244
58
2
2
true
false
false
false
false
false
low
60,033,455
Android : How to fix the error about setting.adzcore.com
<p>My android app has the error like following.</p> <p>W/System.err: java.net.UnknownHostException: Unable to resolve host "setting.adzcore.com": No address associated with hostname W/System.err: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156) at java.net.Inet6AddressImpl.lookupAll...
My android app has the error like following. W/System.err: java.net.UnknownHostException: Unable to resolve host "setting.adzcore.com": No address associated with hostname W/System.err: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156) at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressIm...
android
0
2020-02-03T05:18:43.350Z
2,020
2
5
0
1,092
1
2,089
56
1
0
false
false
false
false
false
false
zero
60,033,503
Couldn't read row 0, col 5 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it
<blockquote> <p><strong><em>Log Cat</em></strong></p> <p>Caused by: java.lang.IllegalStateException: Couldn't read row 0, col 5 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method) at a...
Log Cat Caused by: java.lang.IllegalStateException: Couldn't read row 0, col 5 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it. at android.database.CursorWindow.nativeGetString(Native Method) at android.database.CursorWindow.getString(CursorWindow.java:465) at android.data...
java|sqlite|android-studio|android-sqlite|android-sql
1
2020-02-03T05:23:59.883Z
2,020
2
5
0
1,897
2
628
121
5
2
true
false
false
false
false
false
low
60,033,586
Android APP Bundles apks can not installed by bundletool(INSTALL_PARSE_FAILED_NO_CERTIFICATES)
<p>I buile my application through Android APP Bundles and I get an apks file through </p> <pre><code>bundletools:&lt;br&gt; .\bundletool-all-0.11.0.jar build-apks --bundle=gallery-v1.2.1_8-googleplay-release.aab --output=gallery-gp.apks&lt;br&gt; But when I want to install the apks into devices by this commond:&lt;br&...
I buile my application through Android APP Bundles and I get an apks file through [CODE] I think I realy have signed my app bucause I use ./gradlew assembleRelease can get an normal apk and it can be installed into device success, but I use ./gradlew bundleRelease get an aab and it can not be installed into device with...
android
0
2020-02-03T05:32:57.757Z
2,020
2
5
0
1,326
1
400
94
1
1
true
false
false
false
false
false
zero
60,033,695
Horizontal slide not working in AppIntroSlider npm in react native
<p>Good day guys. I am trying to achieve a horizontal slide within "AppIntroSlider" from 'react-native-app-intro-slider'.</p> <p><code>import AppIntroSlider from 'react-native-app-intro-slider';</code></p> <p>I looked through the npm of this package and I saw it uses horizontal scrolling FlatList for horizontally scr...
Good day guys. I am trying to achieve a horizontal slide within "AppIntroSlider" from 'react-native-app-intro-slider'. import AppIntroSlider from 'react-native-app-intro-slider'; I looked through the npm of this package and I saw it uses horizontal scrolling FlatList for horizontally scrolling multiple pages. In each o...
react-native|android-scrollview|react-native-flatlist|android-nestedscrollview
0
2020-02-03T05:44:25.887Z
2,020
2
5
0
475
1
948
66
4
1
true
false
false
false
false
false
zero
60,033,804
recyclerview list is not displaying in android
<p>Hi in the below code value am adding values to account_name the after that using that adapter doing the set adapter.response is coming the server but values are not adding to the list and list is also displaying.</p> <p>For displaying used the recyclerview to display the values .</p> <p>can any one help me where d...
Hi in the below code value am adding values to account_name the after that using that adapter doing the set adapter.response is coming the server but values are not adding to the list and list is also displaying. For displaying used the recyclerview to display the values . can any one help me where did the mistake Erro...
android|android-recyclerview
2
2020-02-03T05:57:34.053Z
2,020
2
5
0
90
3
388
46
2
3
true
false
false
false
false
false
low
60,033,805
How to compare two images with extension and names in Android Studio?
<p>I want to know how I compare two images with extension and names and delete the duplicate file. Basically I get full video file from External and Internal Storage and I build an app where user can delete the duplicate the file from his device.</p> <p>So I am successful to get the video file from device but unable t...
I want to know how I compare two images with extension and names and delete the duplicate file. Basically I get full video file from External and Internal Storage and I build an app where user can delete the duplicate the file from his device. So I am successful to get the video file from device but unable to delete th...
java|android|extension-methods
0
2020-02-03T05:57:37.630Z
2,020
2
5
0
428
1
509
69
3
5
true
false
false
false
false
false
zero
60,033,825
Dependency confliction in gradle
<p>I am getting this confliction error in retrofit:</p> <blockquote> <p>java.lang.RuntimeException: Duplicate class com.google.gson.DefaultDateTypeAdapter found in modules gson-2.8.5.jar (com.google.code.gson:gson:2.8.5) and pubnub-gson-4.19.0-all.jar (pubnub-gson-4.19.0-all.jar)</p> </blockquote> <p>Here is ...
I am getting this confliction error in retrofit: java.lang.RuntimeException: Duplicate class com.google.gson.DefaultDateTypeAdapter found in modules gson-2.8.5.jar (com.google.code.gson:gson:2.8.5) and pubnub-gson-4.19.0-all.jar (pubnub-gson-4.19.0-all.jar) Here is my gradle file with all the dependencies : [CODE] Whil...
android|gradle|retrofit|pubnub
0
2020-02-03T05:59:27.003Z
2,020
2
5
0
893
3
667
32
4
1
true
false
false
false
false
false
zero
60,033,842
Swipe transition to go back works, but pressing the back button does not go back
<p>On swipe, the transition to go back works, but when i press the back button the transition does not work in Android OS.</p> <p>I have used react-navigation v4 <a href="https://reactnavigation.org/docs/en/getting-started.html" rel="nofollow noreferrer">https://reactnavigation.org/docs/en/getting-started.html</a></p>...
On swipe, the transition to go back works, but when i press the back button the transition does not work in Android OS. I have used react-navigation v4 https://reactnavigation.org/docs/en/getting-started.html [CODE]
java|android|react-native|react-navigation|androidx
0
2020-02-03T06:01:30.740Z
2,020
2
6
0
348
2
215
80
5
1
true
false
false
false
false
false
zero
60,033,908
android: custom snackbar bar displays default snack bar in the background
<p>I have a custom snack bar with a custom layout.But it doesn't display properly.It shows the default snackbar as well in the background: Below is my code:</p> <pre><code> import android.support.annotation.NonNull; import android.support.design.widget.BaseTransientBottomBar; import android.support.design.w...
I have a custom snack bar with a custom layout.But it doesn't display properly.It shows the default snackbar as well in the background: Below is my code: [CODE] Below is my custom layout for my custom snackbar: [CODE] This is how I use my custom snackbar from BaseActivity:Im using it in BaseActivity and android.R.id.co...
android|android-custom-view|android-snackbar
0
2020-02-03T06:07:41.870Z
2,020
2
6
0
1,253
3
957
73
3
4
true
false
false
false
false
false
zero
60,034,053
Application has stopped working using Android Studio, no errors detected in code
<p>My app should have a button on the main page that navigates to the second page and on the second page, there is some edit text boxes and 2 buttons. Whenever i run the app, I can get to the main page but when I attempt to go to the second page the app stops working. I notice I get this response: </p> <blockquote> ...
My app should have a button on the main page that navigates to the second page and on the second page, there is some edit text boxes and 2 buttons. Whenever i run the app, I can get to the main page but when I attempt to go to the second page the app stops working. I notice I get this response: Emulator: emulator: INFO...
android
0
2020-02-03T06:22:48.383Z
2,020
2
6
0
166
3
707
80
1
6
true
false
false
false
false
false
zero
60,034,121
Custom view ClassNotFoundException from LayoutInflater
<p>On one of our release builds, we use <a href="https://www.guardsquare.com/en/products/proguard" rel="nofollow noreferrer">ProGuard</a> where it helps obfuscate and minimize the code. This issue is not reproducable on my device or an emulator, but from some users via Crashlytics we get an exception that says the syst...
On one of our release builds, we use ProGuard where it helps obfuscate and minimize the code. This issue is not reproducable on my device or an emulator, but from some users via Crashlytics we get an exception that says the system could not find the class. The exception comes from various devices and above Android Loll...
android|proguard|android-custom-view
2
2020-02-03T06:30:27.560Z
2,020
2
6
0
156
0
1,184
54
3
3
true
true
false
false
false
false
low
60,034,125
How to set ViewPager with a ChipGroup android?
<p>I have a ChipGroup with 5 chips in it. And I have a view pager with 5 pages in it. For the chip I select, the corresponding page(fragment) should be loaded. How to link the ViewPager and the ChipGroup in android?</p>
I have a ChipGroup with 5 chips in it. And I have a view pager with 5 pages in it. For the chip I select, the corresponding page(fragment) should be loaded. How to link the ViewPager and the ChipGroup in android?
android|android-fragments|android-viewpager|android-chips
1
2020-02-03T06:30:54.190Z
2,020
2
6
0
585
1
212
46
4
0
false
false
false
false
false
false
low
60,034,149
keyboard overplay input text in few android devices react native expo app
<p>Hi I'm having an giftedchat input text overlap issue when keyboard is visible on few android devices to resolve this i tried to use keyboard-show/hide method but didn't worked also tried to using keyboard-spacer but nothing worked. This issue is not replicating on very devices currently its happening on One plus 6, ...
Hi I'm having an giftedchat input text overlap issue when keyboard is visible on few android devices to resolve this i tried to use keyboard-show/hide method but didn't worked also tried to using keyboard-spacer but nothing worked. This issue is not replicating on very devices currently its happening on One plus 6, sam...
android|react-native|react-native-gifted-chat
3
2020-02-03T06:33:14.643Z
2,020
2
6
0
618
1
543
73
3
0
false
false
false
false
false
false
low
60,034,161
Android Room Library fails to copy database from Asset
<p>I want to copy SQLite database from asset but it is not copying it is not throwing any Exception also</p> <pre><code>@Database(entities = [UserDetails::class, CircleMaster::class], version = 1, exportSchema = false abstract class AppDatabase : RoomDatabase() {abstract fun getLoginDao(): LoginDao abstract fun getR...
I want to copy SQLite database from asset but it is not copying it is not throwing any Exception also [CODE]
android|android-sqlite|android-room
0
2020-02-03T06:34:16.427Z
2,020
2
6
0
465
1
108
54
3
1
true
false
false
false
false
false
zero
60,034,226
Android retrieve text from current view
<p>I have an Android application with a ViewPager that displays motivational messages. I am targeting Oreo and later</p> <p>This is the view I'm referring to</p> <p><a href="https://i.stack.imgur.com/8XlRVl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8XlRVl.png" alt="enter image description her...
I have an Android application with a ViewPager that displays motivational messages. I am targeting Oreo and later This is the view I'm referring to I have implemented the "Share Quote" button and it works fine. When I click on the button the following method is called and I can retrieve the displayed quote without issu...
android
1
2020-02-03T06:39:32.870Z
2,020
2
6
0
95
2
1,223
39
1
4
true
false
false
false
false
false
low
60,034,233
Could using MultidexApplication solve code too large error
<p>I have a serving ListView android project. I hardcoded the lyrics in the ListViewAdapter already and changing it seems like a lot of work. I wanted to increase the lyrics but i encountered "<strong>code too large error</strong>" due to hardcoding. I want to increase the lyrics i have therein from existing 700 lyric...
I have a serving ListView android project. I hardcoded the lyrics in the ListViewAdapter already and changing it seems like a lot of work. I wanted to increase the lyrics but i encountered " code too large error " due to hardcoding. I want to increase the lyrics i have therein from existing 700 lyrics to 900 lyrics in ...
java|android|adapter
0
2020-02-03T06:40:08.757Z
2,020
2
6
0
37
1
463
58
3
2
true
false
false
false
false
false
zero
60,034,252
Slow down Flare animation in Flutter using time and reset at particular time
<p>I made the following animation using flare.</p> <p><a href="https://rive.app/a/PraveenKumar/files/flare/solar-tracking/embed" rel="nofollow noreferrer">Animation</a></p> <p>I just want to move frame by frame for a particular time period and to reverse it after a particular time. </p> <p><strong>For example:</stro...
I made the following animation using flare. Animation I just want to move frame by frame for a particular time period and to reverse it after a particular time. For example: The animation has to start at 6 o'clock in the morning and has to end at 6 o'clock in the evening. The frame must change every 30 minutes.
android|ios|animation|flutter|flare
0
2020-02-03T06:41:43.883Z
2,020
2
6
0
519
1
312
76
5
0
false
false
false
false
false
false
zero
60,034,259
Decyrpting SSL traffic from OkHttp response body
<p>I'm working on an application where I connect to a website with <a href="https://square.github.io/okhttp/" rel="nofollow noreferrer">OkHttp</a>, get the response data and extract the required data with <a href="https://jsoup.org/" rel="nofollow noreferrer">Jsoup</a>.</p> <p>Everything is fine until I connect to an ...
I'm working on an application where I connect to a website with OkHttp , get the response data and extract the required data with Jsoup . Everything is fine until I connect to an unsecured HTTP URL. When I connect to the HTTPS URL, the response is encoded and I've no idea how to decode it. I went through several StackO...
android|ssl|encryption|okhttp
1
2020-02-03T06:42:08.953Z
2,020
2
6
0
195
1
483
48
4
3
true
false
false
false
false
false
low
60,034,267
Error message "HTTP 413 Request Entity Too Large" in Android
<p>When I am sending image file using Multipart.Part using POST method and it throwing this error : "retrofit2.adapter.rxjava.HttpException: HTTP 413 Request Entity Too Large".</p>
When I am sending image file using Multipart.Part using POST method and it throwing this error : "retrofit2.adapter.rxjava.HttpException: HTTP 413 Request Entity Too Large".
android
0
2020-02-03T06:42:31.827Z
2,020
2
6
0
2,758
2
173
60
1
0
false
false
true
false
false
false
zero
60,034,299
Unable to receive broadcast message android
<p>I have registered "SMS received event" for the broadcast receiver but when i launch the app and send message to the emulator i do not see onReceive method of broadcast receiver getting triggered. </p> <p>AndroidManifest.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="htt...
I have registered "SMS received event" for the broadcast receiver but when i launch the app and send message to the emulator i do not see onReceive method of broadcast receiver getting triggered. AndroidManifest.xml [CODE] MyReceiver.java [CODE]
android|broadcastreceiver
-1
2020-02-03T06:45:01.047Z
2,020
2
6
0
627
2
245
43
2
2
true
false
false
false
false
true
negative
60,034,302
In grid view selecting views present on screen but on scroll down i am unable to select it
<p>In grid view selecting views present on screen but on scroll down I am unable to select it</p> <p>I am using <code>gridview</code> and on item select I make the selected item background to green and on deselected transparent but if I scroll down to select more items it randomly select and deselect the items, please...
In grid view selecting views present on screen but on scroll down I am unable to select it I am using gridview and on item select I make the selected item background to green and on deselected transparent but if I scroll down to select more items it randomly select and deselect the items, please help to fix it. [CODE] ...
android
0
2020-02-03T06:45:13.943Z
2,020
2
6
0
98
1
335
90
1
2
true
false
false
false
false
false
zero
60,034,400
Huawei animation is way faster than on other phones
<p>I want to add loading animation for my App. Two dots next to each other blinking alternately (similar to railway crossing lights). It is working fine for other phones but Huawei has something wrong with animation duration and these two dots animation starting to be more and more out of sync and suddently they start ...
I want to add loading animation for my App. Two dots next to each other blinking alternately (similar to railway crossing lights). It is working fine for other phones but Huawei has something wrong with animation duration and these two dots animation starting to be more and more out of sync and suddently they start to ...
android|android-animation
0
2020-02-03T06:53:16.727Z
2,020
2
6
0
147
1
636
51
2
1
true
false
false
false
false
false
zero
60,034,487
Pass reference of view to CustomView
<p>I have one linear layout in that I have two views for an email address, one is Textview and another one is Edittext.</p> <ol> <li>When there is empty or not proper email address then Textview's color should change to red, </li> <li>if the user gets focus on edit text Textview's color should change to blue.</li> <li...
I have one linear layout in that I have two views for an email address, one is Textview and another one is Edittext. When there is empty or not proper email address then Textview's color should change to red, if the user gets focus on edit text Textview's color should change to blue. if the user lost focus on EditText ...
android|android-view
0
2020-02-03T07:00:10.473Z
2,020
2
7
0
422
2
725
36
2
3
true
false
false
false
false
false
zero
60,034,686
React Native "RNCSafeAreaView" was not found in the UIManager
<p><a href="https://i.stack.imgur.com/aFDN8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aFDN8.png" alt="enter image description here"></a></p> <p>I am running a react-native application on Mac. but I am getting "RNCSafeAreaView" was not found in the UIManager.</p>
I am running a react-native application on Mac. but I am getting "RNCSafeAreaView" was not found in the UIManager.
android|ios|react-native|react-native-ios
3
2020-02-03T07:17:16.940Z
2,020
2
7
0
1,959
1
114
61
4
0
false
false
false
false
false
false
low
60,034,827
How can i call payment array ? using retrofit
<p>How can i call payment array ? using retrofit</p> <blockquote> <p>How can deal with second array objects i have successfully done with data but i have no idea how to call second array object please anybody can help me with that...i am new in retrofit.</p> </blockquote> <p>This is sample code which i have use...
How can i call payment array ? using retrofit How can deal with second array objects i have successfully done with data but i have no idea how to call second array object please anybody can help me with that...i am new in retrofit. This is sample code which i have used in adapter class for retrieve data array object [C...
android|retrofit
0
2020-02-03T07:29:14.667Z
2,020
2
7
0
69
0
341
45
2
2
true
true
false
false
false
false
zero
60,034,851
Is there any way to find out certificate exception from Volley
<p>I have used Volley network library for making API calls. From the application, it will call the APIs with the server with valid certificate only i.e. no code written to by pass the certificate validation. I have given it to customer and he is trying to test it and that environment is not accessible for me. </p> <p>...
I have used Volley network library for making API calls. From the application, it will call the APIs with the server with valid certificate only i.e. no code written to by pass the certificate validation. I have given it to customer and he is trying to test it and that environment is not accessible for me. When custome...
android|android-volley
0
2020-02-03T07:31:07.087Z
2,020
2
7
0
22
0
876
62
2
0
false
true
false
false
false
false
zero
60,034,953
How to configure SonarQube (with jacoco) on multi module android project (kotlin + java)?
<p>I have seen different approaches with different specification: only java, only single module, with jacoco exec file or xml report for sonarqube, sonarqube.gradle included in all modules or only in root.... and tried a lot. At the end I struggled always and some of my requirements don't work.</p> <p>Does anyone have...
I have seen different approaches with different specification: only java, only single module, with jacoco exec file or xml report for sonarqube, sonarqube.gradle included in all modules or only in root.... and tried a lot. At the end I struggled always and some of my requirements don't work. Does anyone have an approac...
java|android|kotlin|sonarqube|jacoco
4
2020-02-03T07:38:00.997Z
2,020
2
7
0
1,606
1
344
89
5
0
false
false
false
false
false
false
low
60,034,989
Data is repeating in arraylist inside array list in for loop Recylerview Koltin
<p>I am trying to achieve expandable recylerveiew in koltin: i tried with the below code :</p> <pre><code>val DataItems = arrayListOf&lt;faqBody&gt;() val ChildDataItems = arrayListOf&lt;childItem&gt;() var ParentDataItem: faqBody var ChildDataItem: childItem for (item in 0..5) { ParentDataItem = faqBody() Pa...
I am trying to achieve expandable recylerveiew in koltin: i tried with the below code : [CODE] While trying above code, i am getting repeated data of child item in parent item if child item is 2 parent item is 2 parent is sets fine but child item is repeating 2 times as bcoz of parent. Can any one help to get rid of th...
java|android|kotlin|arraylist
1
2020-02-03T07:40:35.827Z
2,020
2
7
0
106
1
370
79
4
1
true
false
false
false
false
false
low
60,035,115
Android Studio 3.5.3 generates some corrupted java class for project
<p>I think Android Studio 3.5.3 has many issues needs to fixed. Recently I had issue with the Android SDK so I had to uninstall it and reinstall to solve the problem.</p> <p>Now when I try to open another existing project suddenly it generates corrupted classes some with the name R in that project.</p> <p><a href="ht...
I think Android Studio 3.5.3 has many issues needs to fixed. Recently I had issue with the Android SDK so I had to uninstall it and reinstall to solve the problem. Now when I try to open another existing project suddenly it generates corrupted classes some with the name R in that project. I have tried the below options...
java|android|android-studio|gradle|build.gradle
0
2020-02-03T07:52:43.497Z
2,020
2
7
0
72
1
631
68
5
0
false
false
false
false
false
false
zero
60,035,119
How to load all items at once in recyclerview?
<p>I am using CountDownTimer in recyclerview for every items. I am facing issue for items which are not visible on screen. Countdown starts for those items when they get visible on screen. I need solution: How to load all items at once in recyclerview in android.</p>
I am using CountDownTimer in recyclerview for every items. I am facing issue for items which are not visible on screen. Countdown starts for those items when they get visible on screen. I need solution: How to load all items at once in recyclerview in android.
android|android-recyclerview|countdowntimer
-3
2020-02-03T07:53:02.417Z
2,020
2
7
0
530
2
260
46
3
0
false
false
false
false
false
true
negative
60,035,148
android.view.InflateException: Binary XML file line #37: Binary XML file line #37: Error inflating class android.support.v7.widget.Toolbar
<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_pare...
[CODE] This error appears to me and I don't know why?? and can't solve it any help, please? when run application this error appear to me and detected error in java page in line 17 (setContentView(R.layout.activity_main))!!! so can anyone help me?
java|android|android-layout
0
2020-02-03T07:55:40.767Z
2,020
2
7
0
370
2
246
138
3
1
true
false
false
false
false
false
zero
60,035,156
how to change date picker selected value color in flutter
<p>I’m using the showDatePicker() method to display a date picker in my flutter application. How do I customize the colors of the date picker?</p> <p>Here is my theme's code:`</p> <pre><code>Widget dateOfBirth(String hintText) { return Theme( data: Theme.of(context).copyWith( buttonTheme: ButtonThemeData( te...
I’m using the showDatePicker() method to display a date picker in my flutter application. How do I customize the colors of the date picker? Here is my theme's code:` [CODE] I assume that you want to customize the date picker differently from your main theme. Normally, date picker follow your main theme. Here is my code...
android|ios|flutter|dart
0
2020-02-03T07:56:11.513Z
2,020
2
7
0
4,486
2
413
57
4
2
true
false
true
false
false
false
zero
60,035,188
How to use Dagger 2 effectively with MVVM and Clean Architecture a multi module Android project
<p>I have a multi-module project that follows Clean Architecture principles. I have app, presentation, domain, data and remote modules. I am also using Android Architecture Components and apply MVVM in the presentation layer.</p> <p>A simple <code>ViewModel</code> class looks like this</p> <pre><code>class SignUpView...
I have a multi-module project that follows Clean Architecture principles. I have app, presentation, domain, data and remote modules. I am also using Android Architecture Components and apply MVVM in the presentation layer. A simple ViewModel class looks like this [CODE] Every ViewModel has a dependency on a task(use-ca...
android|kotlin|mvvm|dagger-2|clean-architecture
3
2020-02-03T07:59:05.403Z
2,020
2
7
0
1,331
0
1,332
95
5
2
true
true
false
false
false
false
low
60,035,243
Problem with working with Multipart form data Retrofit2
<p>I know it is not wise to use multipart for simple text authentication. but I need to use it with api provided to me. I tried all the methods possible.</p> <p>It's working fine with postman but not with retrofit 2</p> <p><a href="https://i.stack.imgur.com/fS3Bn.png" rel="nofollow noreferrer">request type details</a...
I know it is not wise to use multipart for simple text authentication. but I need to use it with api provided to me. I tried all the methods possible. It's working fine with postman but not with retrofit 2 request type details request type details code used tried [CODE] Code for Apiservice [CODE]
android|retrofit2|multipartform-data|multipart|retrofit2.6
1
2020-02-03T08:04:25.870Z
2,020
2
8
0
187
2
297
55
5
2
true
false
false
false
false
false
low
60,035,336
Adding hint-like behavior to a spinner
<p>I am trying to add a hint-like behavior to my spinner. </p> <p>The needed result should work the same as EditText's hint feature - showing faded text, but the extra thing I need now here is that this text is not being added to the actual list that populates the spinner.</p> <p>Here are images of what I am trying t...
I am trying to add a hint-like behavior to my spinner. The needed result should work the same as EditText's hint feature - showing faded text, but the extra thing I need now here is that this text is not being added to the actual list that populates the spinner. Here are images of what I am trying to achieve - and here...
android|spinner|listitem
1
2020-02-03T08:12:08.160Z
2,020
2
8
0
318
2
838
38
3
1
true
false
false
false
false
false
low
60,035,436
Clickable Texts in my page with background image
<blockquote> <p>I have a Problem,in my page i want to clickable some texts that i use above the background image,i use InkWell and GestureDetector even but both of them didnt work,i use them for background image even but they didnt work ,i Dont know how i solve it,plz help me</p> </blockquote> <pre><code>Widget buil...
I have a Problem,in my page i want to clickable some texts that i use above the background image,i use InkWell and GestureDetector even but both of them didnt work,i use them for background image even but they didnt work ,i Dont know how i solve it,plz help me [CODE]
android|flutter|flutter-layout|flutter-test
1
2020-02-03T08:19:18.500Z
2,020
2
8
0
108
3
267
48
4
1
true
false
false
false
false
false
low
60,035,455
React native statusbar styles cannot override native android statusbar style
<p>I am trying to set statusbar translucency to false on componentDidMount but it doesnt seem to work. My reasons for doing so are different (<em>because I am using <code>react-native-bootsplash</code> which requires me to have native styles</em>) but overall it doesn't seem to work.</p> <p><strong>styles.xml</strong...
I am trying to set statusbar translucency to false on componentDidMount but it doesnt seem to work. My reasons for doing so are different ( because I am using react-native-bootsplash which requires me to have native styles ) but overall it doesn't seem to work. styles.xml [CODE] Login.js [CODE]
android|react-native
0
2020-02-03T08:20:26.133Z
2,020
2
8
0
208
1
295
76
2
2
true
false
false
false
false
false
zero
60,035,465
Why I cannot export tabSelectedTextColor to xml style?
<p>I am using Material <code>TabLayout</code>. I have lots of tabs that use the same style that is why I decided to move the styling to <code>TabStyle</code> style like this: </p> <pre><code> &lt;style name="TabStyle" parent="Widget.MaterialComponents.TabLayout"&gt; &lt;item name="android:layout_height"&gt;wra...
I am using Material TabLayout . I have lots of tabs that use the same style that is why I decided to move the styling to TabStyle style like this: [CODE] The problem is attribute tabSelectedTextColor is not recognized. What might be the problem here? Why are other attributes working fine?
android|material-design|android-tablayout
0
2020-02-03T08:21:45.080Z
2,020
2
8
0
29
0
289
54
3
1
true
true
false
false
false
false
zero
60,035,479
How to set selected item of Spinner by value in JSON?
<p>I have spinner value based on JSON data :</p> <p>this is the JSON for spinner value</p> <pre><code>{ "taxonomy":{ "City":[ { "city_id":12, "name":"Jakarta" }, { "city_id":13, "name":"Jakarta" ...
I have spinner value based on JSON data : this is the JSON for spinner value [CODE] and have JSON User [CODE] i already parsing json data in spinner [CODE] My question is, how to set selected item based on JSON user (like city_id equals city) ?
java|android|json|android-spinner
0
2020-02-03T08:23:24.043Z
2,020
2
8
0
219
2
244
53
4
3
true
false
false
false
false
false
zero
60,035,497
How to detect when the keyboard is up in adjust nothing mode?
<p>I want to check when the keyboard is up when <code>android:windowSoftInputMode="adjustNothing"</code>. The <a href="https://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android?page=1&amp;tab=active#tab-top">link here</a> didn't work for me in this state.</p>
I want to check when the keyboard is up when android:windowSoftInputMode="adjustNothing" . The link here didn't work for me in this state.
android
1
2020-02-03T08:25:21.873Z
2,020
2
8
0
135
1
138
61
1
0
false
false
false
false
false
false
low
60,035,560
How to scan all open source libraries used in a project?
<p>I want to scan all the libraries used in the android project. So that I can mention those libraries in a list whenever I remove or add new libraries in my project.</p> <p>Like I added some libraries in-app dependencies and i want all of them to list down with their version name on one screen. So that I can mention ...
I want to scan all the libraries used in the android project. So that I can mention those libraries in a list whenever I remove or add new libraries in my project. Like I added some libraries in-app dependencies and i want all of them to list down with their version name on one screen. So that I can mention used librar...
android|android-studio|shared-libraries
1
2020-02-03T08:29:56.770Z
2,020
2
8
0
2,133
3
494
56
3
0
false
false
false
false
false
false
low
60,035,688
How to edit sites from Google Chrome on Android that are appearing when typing URL?
<p>How to edit sites that are highlighted in this image:</p> <p><img src="https://i.stack.imgur.com/AJlbJ.jpg" alt="ScreenShot" /></p>
How to edit sites that are highlighted in this image:
android|google-chrome|mobile
-2
2020-02-03T08:41:24.077Z
2,020
2
8
0
49
2
53
83
3
0
false
false
false
false
false
true
negative