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,196,855
Android Kotlin - cannot resolve firebase
<p>I'm trying to include Firebase (specifically Firebase Authentication) to my project. I'm an iOS developer that's trying to learn Kotlin, so it has been like 4 years since I last touched Android/Android Studio (and definitely never touched Kotlin before).</p> <p>So my knowledge of Android is a bit covered in dust. <...
I'm trying to include Firebase (specifically Firebase Authentication) to my project. I'm an iOS developer that's trying to learn Kotlin, so it has been like 4 years since I last touched Android/Android Studio (and definitely never touched Kotlin before). So my knowledge of Android is a bit covered in dust. I also tried...
android|firebase|gradle|kotlin|firebase-authentication
0
2020-02-12T21:07:18.183Z
2,020
2
21
2
979
1
1,531
40
5
3
true
false
false
false
false
false
zero
60,196,868
How to get value from website using Jsoup?
<p>I want to extract href title <code>&lt;a href=&quot;https://kwejk.pl&quot;&gt;43797&lt;/a&gt;</code> so I could assign it to variable in my app. My code is not working unfortunatelly.</p> <p>I want to assign &quot;43797&quot; to string Result.</p>
I want to extract href title <a href=&quot;https://kwejk.pl&quot;>43797</a> so I could assign it to variable in my app. My code is not working unfortunatelly. I want to assign &quot;43797&quot; to string Result.
java|android|html|web-scraping|jsoup
0
2020-02-12T21:07:57.190Z
2,020
2
21
2
32
1
211
42
5
0
false
false
false
false
false
false
zero
60,196,869
How to correctly send doubles from service to activity
<p>How do I send a double value from a service to my main activity via intent, and then set this value as the text for a button in my main activity? I have tried the <code>Double double = Double.parseDouble(""+intent.getExtras().get("TEXT"));</code>. This works in the emulator but on my actual phone the program crashe...
How do I send a double value from a service to my main activity via intent, and then set this value as the text for a button in my main activity? I have tried the Double double = Double.parseDouble(""+intent.getExtras().get("TEXT")); . This works in the emulator but on my actual phone the program crashes. This is calle...
java|android|android-intent|service|double
0
2020-02-12T21:08:04.127Z
2,020
2
21
2
25
1
418
54
5
2
true
false
false
false
false
false
zero
60,197,065
How to safely close Database in ViewModel?
<p>My Android application has a ViewModel that performs SQLite database operations using Kotlin coroutines.</p> <p>If the Fragment of the ViewModel is closed while the DB operations are running, I want to make sure the DB is properly closed so there are no leaks. In order to make sure I am not closing the DB while it...
My Android application has a ViewModel that performs SQLite database operations using Kotlin coroutines. If the Fragment of the ViewModel is closed while the DB operations are running, I want to make sure the DB is properly closed so there are no leaks. In order to make sure I am not closing the DB while it is still be...
android|kotlin|android-sqlite|kotlin-coroutines|android-viewmodel
1
2020-02-12T21:23:00.770Z
2,020
2
21
2
314
0
924
42
5
1
true
true
false
false
false
false
low
60,197,075
Clear previous canvas working with RecyclerView on Android
<p>I am drawing custom ovals using <code>canvas</code> in <code>Android</code> as follows. In fact, each shape is a view and created with the help of <code>RecyclerView</code>. When I click any shape, I draw another oval with <strong>stroke</strong> attribute(white one). </p> <p>What I want to do here is to remove pre...
I am drawing custom ovals using canvas in Android as follows. In fact, each shape is a view and created with the help of RecyclerView . When I click any shape, I draw another oval with stroke attribute(white one). What I want to do here is to remove previous border oval whenever I touch another shape and draw a border ...
android|canvas|drawing|android-custom-view
0
2020-02-12T21:23:26.743Z
2,020
2
21
2
113
1
390
58
4
1
true
false
false
false
false
false
zero
60,197,077
Overlapping Circular ImageVIew on Custom View
<p>I am trying to create a custom view where I want the profile image to be partially overlapping my view. But I am getting this white background and I don't understand how to get rid of it . Setting background as transparent of the parent View Group doesn't help.</p> <p>What I want .... <a href="https://i.stack.imgu...
I am trying to create a custom view where I want the profile image to be partially overlapping my view. But I am getting this white background and I don't understand how to get rid of it . Setting background as transparent of the parent View Group doesn't help. What I want .... What I am getting .... My XML code [CODE]...
android|xml|android-layout|design-patterns
0
2020-02-12T21:23:37.730Z
2,020
2
21
2
451
1
362
45
4
2
true
false
false
false
false
false
zero
60,197,119
Permission error while running ionic cordova app
<p>On running command <code>ionic cordova run android</code> I get the following error</p> <pre><code>Error: EPERM: operation not permitted, chmod '/mnt/e/New Course/mycode/ionic/reportingApp/platforms/android/app/src/main/res/xml/config.xml' at Object.chmodSync (fs.js:1137:3) at copyFileSync (/mnt/e/New Cou...
On running command ionic cordova run android I get the following error [CODE] All the dependencies are well setup seems to be some problem with the file permission but tried changing the permision to 777 and it also does not work. The command ionic serve works perfectly and the app also works perfectly in the browser.
android|angular|ionic-framework|ionic2|windows-subsystem-for-linux
1
2020-02-12T21:26:49.643Z
2,020
2
21
2
46
0
319
48
5
1
true
true
false
false
false
false
low
60,197,217
How to get Spotify and other Android music apps to search and play from an intent?
<p>I would like to create a <a href="https://developer.android.com/guide/components/intents-common.html#PlaySearch" rel="nofollow noreferrer"><code>MEDIA_PLAY_FROM_SEARCH</code></a> (or other) intent that will search for and play a song in any major Android music app. I expected the following command line to work on mu...
I would like to create a MEDIA_PLAY_FROM_SEARCH (or other) intent that will search for and play a song in any major Android music app. I expected the following command line to work on multiple apps: [CODE] This corresponds to the code: [CODE] This launches a chooser on my Pixel 2 listing different apps that can handle ...
android-intent|spotify
3
2020-02-12T21:34:23Z
-1
-1
-1
-1
1,133
1
941
82
2
3
true
false
false
false
false
false
low
60,197,243
Going to a new page, by pressing a button from a fragment on Andriod studio
<p>This is a really easy question, but how do you move to a new page from pressing a button on a fragment? </p> <p>The button doesnt seem to be doing anything once pressed, without any errors.</p> <p>Here is the Java code - </p> <pre><code>@Override public void onViewCreated(View view, @Nullable Bundle savedInstance...
This is a really easy question, but how do you move to a new page from pressing a button on a fragment? The button doesnt seem to be doing anything once pressed, without any errors. Here is the Java code - [CODE] } [CODE] } }
android|button|fragment
0
2020-02-12T21:36:35.920Z
2,020
2
21
2
28
1
225
75
3
2
true
false
false
false
false
false
zero
60,197,314
How can I change the arrow on a Spinner?
<p>I would like to format a Spinner so the arrows look like the following:</p> <p><a href="https://i.stack.imgur.com/DayDA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DayDA.jpg" alt="Spinners"></a></p> <p>Any suggestions on a way to make the arrows look like they do in the clip?</p>
I would like to format a Spinner so the arrows look like the following: Any suggestions on a way to make the arrows look like they do in the clip?
java|android|user-interface|spinner
1
2020-02-12T21:42:21.763Z
2,020
2
21
2
55
0
146
40
4
0
false
true
false
false
false
false
low
60,197,338
passing data into another activity with default values or custom values depending on user input
<p>I am hoping if there is a way to pass 2 data variables from activity1(Technical) to activity2(User) where activity1 gives 2 current default values (x and y2) but also gives user the choice to input their own x and y2 variables if device has different dimensions. </p> <p>There is a button for using custom values and...
I am hoping if there is a way to pass 2 data variables from activity1(Technical) to activity2(User) where activity1 gives 2 current default values (x and y2) but also gives user the choice to input their own x and y2 variables if device has different dimensions. There is a button for using custom values and a button fo...
android
0
2020-02-12T21:43:56.347Z
2,020
2
21
2
26
1
614
95
1
0
false
false
false
false
false
false
zero
60,197,356
Show bg image with progress-bar on splash screen
<p>I am trying to show a BG Image and Progress-bar on splash screen.</p> <p>Code for splash.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout android:layout_height="match_parent" android:layout_width="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:ba...
I am trying to show a BG Image and Progress-bar on splash screen. Code for splash.xml [CODE] Then on Style I have [CODE] Then I applied this style to Activity in manifiestfile [CODE] But when the app starts I can not see the image and progress-bar while same i can see on the design view. Same code will work if i use La...
android|android-layout|android-activity|splash-screen|android-theme
0
2020-02-12T21:45:48.607Z
2,020
2
21
2
328
2
458
48
5
3
true
false
false
false
false
false
zero
60,197,440
Room SQLITE Delete query from multiple tables using JOINS
<p>Hey guys I'm in the process of moving my tables and queries from mysql to the internal SQLITE db inside an andorid app.</p> <p>When I copied my delete query into my DAO its throwing an error:</p> <pre><code>DELETE moodBeforeTable, moodAfterTable FROM moodBeforeTable JOIN moodAfterTable ON moodAfterTable.cbtId = m...
Hey guys I'm in the process of moving my tables and queries from mysql to the internal SQLITE db inside an andorid app. When I copied my delete query into my DAO its throwing an error: [CODE] The very first word moodBeforeTable, is red underlined and the IDE states its expecting FROM. It doesn't appear to like the mysq...
android|android-sqlite|android-room
2
2020-02-12T21:53:27.433Z
2,020
2
21
2
1,295
1
771
57
3
1
true
false
false
false
false
false
low
60,197,470
Are Android Views backed by OpenGL?
<p>Do native Android views <em>(View class and everything that extends it, i.e. TextView, ImageView, etc...)</em>, use OpenGL under the hood?</p> <p>If not, are there any advantages to using OpenGL to the average Android Developer as opposed to using the regular views for custom UI components?</p>
Do native Android views (View class and everything that extends it, i.e. TextView, ImageView, etc...) , use OpenGL under the hood? If not, are there any advantages to using OpenGL to the average Android Developer as opposed to using the regular views for custom UI components?
android|opengl-es|android-view|android-canvas|android-bitmap
0
2020-02-12T21:55:50.703Z
2,020
2
21
2
767
1
276
35
5
0
false
false
false
false
false
false
zero
60,197,693
React Native - How to set width of Views inside ScrollView to fit?
<p>I have multiple Views inside my horizontal ScrollView. How can I set them such that each of those views has the exact dimensions as that of the ScrollView? <br> I want to use paging and go to my next View inside the ScrollView on swiping. I have tried to use <code>width : "100%"</code> but it does not work as Scroll...
I have multiple Views inside my horizontal ScrollView. How can I set them such that each of those views has the exact dimensions as that of the ScrollView? I want to use paging and go to my next View inside the ScrollView on swiping. I have tried to use width : "100%" but it does not work as ScrollView does not have fi...
javascript|android|reactjs|react-native
1
2020-02-12T22:14:58.440Z
2,020
2
22
2
1,210
2
563
66
4
2
true
false
false
false
false
false
low
60,197,903
How to avoid "warning: [cast] redundant cast to String" for data binding
<p>Android Studio generates lots of warning like the following:</p> <blockquote> <p>fooBindingImpl.java:106: warning: [cast] redundant cast to String fooActivityOfUserName.set(((java.lang.String) (callbackArg_0)));</p> </blockquote> <p>FooActivity.java has the following:</p> <pre><code>public...
Android Studio generates lots of warning like the following: fooBindingImpl.java:106: warning: [cast] redundant cast to String fooActivityOfUserName.set(((java.lang.String) (callbackArg_0))); FooActivity.java has the following: [CODE] I also tried the following: [CODE] Its layout has the following: [CODE] Is there a wa...
android-studio|android-databinding|android-studio-3.5|android-studio-3.5.3
5
2020-02-12T22:34:24.960Z
2,020
2
22
2
201
0
343
72
4
3
true
true
false
false
false
false
low
60,197,987
Retrieve a HashMap from Firebase using Kotlin
<p>I'm trying to retrieve a list of object "Game" from my firebase database using Kotlin on Android Studio. </p> <p><img src="https://i.stack.imgur.com/gEoBb.png" alt="my firebase database"></p> <p>I am using the code below:</p> <pre><code>private fun getGamesAvailable() { var ref = FirebaseDatabase.getInstance(...
I'm trying to retrieve a list of object "Game" from my firebase database using Kotlin on Android Studio. I am using the code below: [CODE] but I get the error com.google.firebase.database.DatabaseException: Expected a List while deserializing, but got a class java.util.HashMap I understand that the problem is I am tryi...
android|firebase|kotlin|firebase-realtime-database
1
2020-02-12T22:43:20.163Z
2,020
2
22
2
1,337
2
744
45
4
1
true
false
false
false
false
false
low
60,198,060
Android - View all sensor values on same activity
<p>There are applications like <a href="https://play.google.com/store/apps/details?id=com.innoventions.sensorkinetics" rel="nofollow noreferrer">Sensor Kinetics</a> or <a href="https://play.google.com/store/apps/details?id=com.exatools.sensors" rel="nofollow noreferrer">Sensors Test</a> that display and update in real ...
There are applications like Sensor Kinetics or Sensors Test that display and update in real time the values of all sensors in one activity. I am trying to accomplish the same thing. I want to display all of the sensor values in an activity X which receives the sensor values from a Foreground Service Y that sends a broa...
android|broadcastreceiver|android-sensors|android-broadcast
0
2020-02-12T22:51:30.540Z
2,020
2
22
2
74
0
738
49
4
1
true
true
false
false
false
false
zero
60,198,089
Having gradleDependency check when using extra properties
<p>As my app contains multiple modules, I want to manage the dependencies is a central place, so when I have to update a version of a dependency I just need to do it in one place.</p> <p>So in my <code>build.gradle</code> in my root folder, I have created the dependencies as extra properties:</p> <pre><code>// Top-le...
As my app contains multiple modules, I want to manage the dependencies is a central place, so when I have to update a version of a dependency I just need to do it in one place. So in my build.gradle in my root folder, I have created the dependencies as extra properties: [CODE] And in the module I declare the dependenci...
android|gradle
1
2020-02-12T22:54:00.287Z
2,020
2
22
2
28
0
415
57
2
2
true
true
false
false
false
false
low
60,198,102
Using Android Studio, how to display Day(mon,tue,wed etc.), Date, Month and Year from selected date in Datepicker
<p>I am looking to create a simple code that will take a date from my datepicker and display each the day of the week, day, month and year in seperate textview.</p> <p>Then to display the same for a day an input number of days later.</p> <p>Example: Choose 12/02/2020 and enter 2</p> <p>Output Wenesday, 12 02 2020 ...
I am looking to create a simple code that will take a date from my datepicker and display each the day of the week, day, month and year in seperate textview. Then to display the same for a day an input number of days later. Example: Choose 12/02/2020 and enter 2 Output Wenesday, 12 02 2020 Friday, 15 02 2020 I have the...
android|kotlin|datepicker
0
2020-02-12T22:56:11.053Z
2,020
2
22
2
136
1
445
113
3
0
false
false
false
false
false
false
zero
60,198,115
Getting Out of memory error in android Maps sometimes
<p>In my app there is a main screen in which there is a mapview(more like a static image), on click of which it opens a screen which has a supportmapfragment with additional tile layers. This works fine on most of the devices, but only on some devices if I do navigate between the main screen and maps screen multiple ti...
In my app there is a main screen in which there is a mapview(more like a static image), on click of which it opens a screen which has a supportmapfragment with additional tile layers. This works fine on most of the devices, but only on some devices if I do navigate between the main screen and maps screen multiple times...
android|android-maps-v2
1
2020-02-12T22:57:24.707Z
2,020
2
22
2
1,025
1
403
53
2
1
true
false
false
false
false
false
low
60,198,126
searching nearby available bluetooth in Xamarin android 9
<p>I want to search for available bluetooth but I can't find a solution that works in Xamarin android 9,</p>
I want to search for available bluetooth but I can't find a solution that works in Xamarin android 9,
c#|xamarin.android|bluetooth|android-9.0-pie
0
2020-02-12T22:59:25.723Z
2,020
2
22
2
156
1
101
57
4
0
false
false
false
false
false
false
zero
60,198,149
How do I pass data from a popup activity to the parent activity without closing it?
<pre><code>private fun openPop(){ val intent = Intent(this, Pop::class.java) startActivityForResult(intent, PICK_VALUE_ANOTHER); } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { super.onActivityResult(requestCode, resultCode, data) // Check which request we're...
[CODE] I have the code abode to open the Pop up activity. I can use the result, but I don't want it to close because I want to use the data to increment the font size. Here is the code in the Pop up activity [CODE] So, I have a view button with id button3 and I do get the information, but I want to keep the pop up open...
android|popup
0
2020-02-12T23:02:17.990Z
2,020
2
23
2
437
1
506
83
2
2
true
false
false
false
false
false
zero
60,198,264
Text data in RowHeader
<p>How to display any text data (names, cities etc) in row header? By default, it showing and fits only 1-3 number chars, but when you try to change numbers to words, row header don,t changing its size and shows only part of that words</p> <p>P.s We talking about android library TableView by evrencoskun</p>
How to display any text data (names, cities etc) in row header? By default, it showing and fits only 1-3 number chars, but when you try to change numbers to words, row header don,t changing its size and shows only part of that words P.s We talking about android library TableView by evrencoskun
android|tableview
0
2020-02-12T23:14:57.747Z
2,020
2
23
2
116
1
294
22
2
0
false
false
false
false
false
false
zero
60,198,316
After upgrading Android WebView on Android TV, hls 264 videos are not being played anymore
<p>After upgrading Android WebView to 80.0.3987.99 version, Android TV is not playing live HLS videos anymore (h264) on WebView based app (ionic 4).</p> <p>Operating system: Android TV 9 (Exclusively on Android TV) Kernel version: 4.9.113</p> <p><strong>Steps to reproduce:</strong></p> <p>(1) Just try to open a HLS ...
After upgrading Android WebView to 80.0.3987.99 version, Android TV is not playing live HLS videos anymore (h264) on WebView based app (ionic 4). Operating system: Android TV 9 (Exclusively on Android TV) Kernel version: 4.9.113 Steps to reproduce: (1) Just try to open a HLS h264 live video (m3u8 manifest) on a WebView...
webview|ionic4|android-tv
4
2020-02-12T23:20:30.440Z
2,020
2
23
2
1,276
2
745
90
3
1
true
false
false
false
false
false
low
60,198,339
How to make a List within a List?
<p>I'm trying to add a List within a List of ExpansionTiles, but I'm getting a bunch of errors when trying to create it. Can somebody help me? </p> <pre><code>Widget build(BuildContext context) { return ListView.builder( itemBuilder: (BuildContext context, int index) { return Container( padding: EdgeInsets...
I'm trying to add a List within a List of ExpansionTiles, but I'm getting a bunch of errors when trying to create it. Can somebody help me? [CODE] My list is like that: List<List<CreateTiles>> tiles; I already checked and the problem is not at "CreateTiles" class but at my other listview inside ExpansionTile
android|list|listview|flutter|dart
0
2020-02-12T23:23:23.387Z
2,020
2
23
2
54
2
309
33
5
1
true
false
false
false
false
false
zero
60,198,650
Getting list of published apps from Google play store
<p>I want to have activity in my app where i show list of other apps that has been created and published by me to users, my question is:</p> <p>Is that possible I get list of my published apps in Google Play Store and show them to users or I have to create custom activity and manually introduce my other apps in Play S...
I want to have activity in my app where i show list of other apps that has been created and published by me to users, my question is: Is that possible I get list of my published apps in Google Play Store and show them to users or I have to create custom activity and manually introduce my other apps in Play Store? Updat...
android|android-studio
1
2020-02-13T00:00:45.503Z
2,020
2
0
3
933
2
568
53
2
1
true
false
false
false
false
false
low
60,198,763
Converting Mat to one dimensional float array for EM?
<p>I'm trying to convert a Python code to Java. However, I'm unable to find a way to create the sample to train the Expectation Maximization as it should be a one-channel matrix with 2 values (S and V from HSV Color Space) as below:</p> <ul> <li>row 0: S, V</li> <li>row 1: S, V</li> <li>row 2: S, V</li> <li>row 3: S, ...
I'm trying to convert a Python code to Java. However, I'm unable to find a way to create the sample to train the Expectation Maximization as it should be a one-channel matrix with 2 values (S and V from HSV Color Space) as below: row 0: S, V row 1: S, V row 2: S, V row 3: S, V In Python, I was able to do it as follow: ...
java|android|opencv|mat|expectation-maximization
0
2020-02-13T00:17:21.937Z
2,020
2
0
3
300
1
488
53
5
2
true
false
false
false
false
false
zero
60,198,871
How to get ListPreference value in kotlin activity
<p>How can I get ListPreference value of selected option in my activity?</p> <h1>Code</h1> <p><code>root_preferences.xml</code></p> <pre><code>&lt;PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"&gt; &lt;PreferenceCategory app:title="@string/settings_header"&gt; &lt;ListPreference ...
How can I get ListPreference value of selected option in my activity? Code root_preferences.xml [CODE] arrays.xml [CODE] SettingsActivity.kt [CODE]
android|kotlin
3
2020-02-13T00:33:06.563Z
2,020
2
0
3
1,532
2
147
50
2
3
true
false
false
false
false
false
low
60,198,889
Properly exchange items between multiples RecyclerViews
<p>Being objective, my goal is simple (or not), drag a recycler's item to other one in my activity.</p> <p>The scenario is the following. </p> <p>I have a list of items, let's call them sections, and inside a section another list of items, of another type, the elements. </p> <p>I want exchange the elements between t...
Being objective, my goal is simple (or not), drag a recycler's item to other one in my activity. The scenario is the following. I have a list of items, let's call them sections, and inside a section another list of items, of another type, the elements. I want exchange the elements between the sections. The list of sect...
android|android-recyclerview
0
2020-02-13T00:35:47.923Z
2,020
2
0
3
44
1
1,150
55
2
0
false
false
false
false
false
false
zero
60,198,919
Synchronize Firebase Database Query with another task
<p>In my activity I have this <strong>if</strong> that has the value of the reference to query the DB</p> <pre><code>reference = if (valor == 1){ ConversationsAdapter.teste.child("messages") }else{ MainActivity.usersChatReference.child("messages") } </code></pre> <p>The proble...
In my activity I have this if that has the value of the reference to query the DB [CODE] The problem is, when I use that reference variable as reference to query my DB, I get an error saying "lateinit property reference has not been initialized". How can I make sure that the code above runs before this query code: [COD...
android|firebase|kotlin|firebase-realtime-database
0
2020-02-13T00:41:20.540Z
2,020
2
0
3
107
1
322
53
4
2
true
false
false
false
false
false
zero
60,199,126
How to fallback to secondary search condition in sqlite WHERE clause?
<p>Suppose that I have a table like this</p> <pre><code>id title name --------------- 1 sales Alex 2 sales Bob 3 manager Sam 4 manager Willy </code></pre> <p>When I query this database I will always have available to me a valid value for a <code>title</code> column, but may not have a valid value for a <code...
Suppose that I have a table like this [CODE] When I query this database I will always have available to me a valid value for a title column, but may not have a valid value for a name column. How do I construct a SELECT * FROM table_name WHERE statement that first searches for a row that matches title='value' AND name='...
sql|sqlite|android-sqlite
1
2020-02-13T01:12:07.903Z
2,020
2
1
3
138
1
726
69
3
1
true
false
false
false
false
false
low
60,199,271
Writing a RecyclerView Adapter in Kotlin adaptable to empty list situation
<p>I am working on a dynamic list which is viewed on <code>RecyclerView</code>. So far it is possible to add and remove elements. Also the user can change the content of every single element through several popUpWindows. However, <code>MyViewHolder</code> class got quite long due to many <code>onClickListener</code>s. ...
I am working on a dynamic list which is viewed on RecyclerView . So far it is possible to add and remove elements. Also the user can change the content of every single element through several popUpWindows. However, MyViewHolder class got quite long due to many onClickListener s. So I carried MyRecyclerViewAdapter class...
android|kotlin|android-recyclerview|empty-list
0
2020-02-13T01:35:55.170Z
2,020
2
1
3
2,138
2
955
74
4
0
false
false
false
false
false
false
zero
60,199,415
How to connect android device with bluetooth as server to 4 client devices and receive send data to server
<p>I want to create two apps in android java, to connect through bluetooth and send and receive data. I already implement both apps. but the problem is when i want to connect more than one client to the server app and send data from all clients to the server. but server only can get data from first client. before i hea...
I want to create two apps in android java, to connect through bluetooth and send and receive data. I already implement both apps. but the problem is when i want to connect more than one client to the server app and send data from all clients to the server. but server only can get data from first client. before i heard ...
java|android|sockets|bluetooth
0
2020-02-13T01:57:41.333Z
2,020
2
1
3
179
0
519
106
4
1
true
true
false
false
false
false
zero
60,199,464
Can I upload lint-result.xml to SonarQube in Android Gradle project?
<p>I got a android lint-result.xml and I`m trying to put the result of lint-result.xml to SonarQube server.</p> <p>I have set build.gradle like below but it doesn`t working.</p> <blockquote> <p>build.gradle</p> </blockquote> <pre><code>sonarqube { properties { property 'sonar.projectName', 'Sonar Gradl...
I got a android lint-result.xml and I`m trying to put the result of lint-result.xml to SonarQube server. I have set build.gradle like below but it doesn`t working. build.gradle [CODE]
gradle|sonarqube|android-lint
0
2020-02-13T02:04:20.797Z
2,020
2
2
3
342
1
183
68
3
1
true
false
false
false
false
false
zero
60,199,544
How to store data that is specific to users with firebase?
<p>On the application I am developing, the user creates their account with e-mail and password but how can I make data specific to the user? For example, in my application a user can gain points by completing certain tasks. So when a user completes a task, I need to update their points and store it on the database so t...
On the application I am developing, the user creates their account with e-mail and password but how can I make data specific to the user? For example, in my application a user can gain points by completing certain tasks. So when a user completes a task, I need to update their points and store it on the database so they...
android|ios|firebase|google-cloud-firestore
-1
2020-02-13T02:17:16.080Z
2,020
2
2
3
85
2
560
58
4
0
false
false
false
false
false
true
negative
60,199,738
Change Theme From Fragment
<p>I have a problem where I'm not able to change the style theme. I want to make sure that every time navigates to different fragments, the app theme will change. Hope can help me solve this problem. Thank you in advance.</p> <p><a href="https://i.stack.imgur.com/IEQp0.png" rel="nofollow noreferrer"><img src="https://...
I have a problem where I'm not able to change the style theme. I want to make sure that every time navigates to different fragments, the app theme will change. Hope can help me solve this problem. Thank you in advance. [CODE]
android|kotlin|styles|fragment|android-architecture-navigation
1
2020-02-13T02:44:59.733Z
2,020
2
2
3
1,907
1
225
26
5
1
true
false
false
false
false
false
low
60,199,808
Ads not loaded error after creating billing account
<p>I am creating an app. For last ten days, <code>admob</code> banner ad was working fine. Yesterday I created a <code>billing account</code> to use <code>Places SDK</code>. From that point, I am not getting any ads and logcat showing ads failed to load. Actually it fails to connect to <code>firebase</code> as well. Ju...
I am creating an app. For last ten days, admob banner ad was working fine. Yesterday I created a billing account to use Places SDK . From that point, I am not getting any ads and logcat showing ads failed to load. Actually it fails to connect to firebase as well. Just to be sure, I have reinstalled google-services.json...
android|admob
1
2020-02-13T02:55:51.563Z
2,020
2
2
3
168
1
554
51
2
1
true
false
false
false
false
false
low
60,199,858
How to stop EditText showing javascript after Android HtmlCompat.fromHtml() creates a Spanned
<p>I have an EditText in my view. I am using <code>HtmlCompat.fromHtml()</code> to show the contents of an email in this EditText so it can be viewed and edited. If the html contains any JavaScript then it is being rendered in the resulting Spanned.</p> <p>If I have the following (example) code:</p> <pre><code>String...
I have an EditText in my view. I am using HtmlCompat.fromHtml() to show the contents of an email in this EditText so it can be viewed and edited. If the html contains any JavaScript then it is being rendered in the resulting Spanned. If I have the following (example) code: [CODE] then the EditText shows the contents of...
java|android|android-edittext
0
2020-02-13T03:03:04.410Z
2,020
2
3
3
162
2
665
93
3
1
true
false
false
false
false
false
zero
60,199,983
BottomNavigation not hiding when keyboard pops for EditText in ScrollView
<p>I'm new to android development. I'm using latest android studio and trying to develop an android app. I'm using Bottom Navigation to swap among different fragments. I've used ScrollView on the fragment_container in the activity_main.xml file. Each fragment contains an EditText and whenever I tap the EditText to ente...
I'm new to android development. I'm using latest android studio and trying to develop an android app. I'm using Bottom Navigation to swap among different fragments. I've used ScrollView on the fragment_container in the activity_main.xml file. Each fragment contains an EditText and whenever I tap the EditText to enter s...
android|bottomnavigationview
0
2020-02-13T03:24:29.243Z
2,020
2
3
3
93
1
731
73
2
0
false
false
false
false
false
false
zero
60,199,996
How to make reloading by swipe down for webview in Android studio?
<p>M developing a Android App with webview code. When I open the App page is loading Automatically. If user want to reload the page while swipe down to reload the page ? Any easy code for it ? </p>
M developing a Android App with webview code. When I open the App page is loading Automatically. If user want to reload the page while swipe down to reload the page ? Any easy code for it ?
android-studio|android-webview|loading
1
2020-02-13T03:25:57.927Z
2,020
2
3
3
210
1
189
66
3
0
false
false
false
false
false
false
low
60,200,121
Cant access textviews in recycler view when scroll beyond what is initially visible
<p>I am kind of a newbie here. I am trying the use a recyclerview to display items in an SQlite table. Wahat I need it to do is that when an item is clicked a context menu displays asking to take one of three actions. One of the items requires that I get the data from one of the textviews for the position selected. It ...
I am kind of a newbie here. I am trying the use a recyclerview to display items in an SQlite table. Wahat I need it to do is that when an item is clicked a context menu displays asking to take one of three actions. One of the items requires that I get the data from one of the textviews for the position selected. It wor...
android|sqlite|android-recyclerview|onclick
1
2020-02-13T03:41:39.360Z
2,020
2
3
3
52
1
713
83
4
3
true
false
false
false
false
false
low
60,200,159
Android progressbar setprogress() function doesn’t work
<p>I would setting progress of the progressbar in Android. But setprogress function doesn't work.</p> <p>Codes XML:</p> <pre><code>&lt;ProgressBar android:id="@+id/hamlebar" android:layout_width="140dp" android:layout_height="25dp" android:progressDrawable="@drawable/progressbarr" ...
I would setting progress of the progressbar in Android. But setprogress function doesn't work. Codes XML: [CODE] Progress drawable codes (progressbarr.xml) : [CODE] Set progress codes (Java codes) : [CODE] Note : I don’t had a good English. I hope you can understand. Pardon me. How I can resolve this problem?
android
1
2020-02-13T03:46:27.640Z
2,020
2
3
3
101
1
310
55
1
3
true
false
false
false
false
false
low
60,200,186
Brother SDK Calling PrintImage causes JNI DETECTED ERROR IN APPLICATION: GetStringUTFChars received NULL jstring
<p>Currently working with the Brother SDK for a label Printer and when I call Asset Manager, the Bitmap appears but when it is parsed to print image it crashes.</p> <pre><code>if (myPrinter.startCommunication()) { AssetManager assetManager = getAssets(); Bitmap bitmap = null; try{ bit...
Currently working with the Brother SDK for a label Printer and when I call Asset Manager, the Bitmap appears but when it is parsed to print image it crashes. [CODE] Stack Readout Debugger printout, with Image Preview.
java|android|mobile
3
2020-02-13T03:48:42.020Z
2,020
2
3
3
456
2
217
112
3
1
true
false
false
false
false
false
low
60,200,298
Runtime Error using ViewModelProvider(this) in AppCompatActivity
<p>I am trying to use a ViewModelProvider for an android dynamic-feature library, which is being added to an existing project. I have the following code in my AppCompatActivity class.</p> <pre><code>MyModel model = new ViewModelProvider(this).get(MyModel.class); </code></pre> <p>The project is using the 2.2.0 version...
I am trying to use a ViewModelProvider for an android dynamic-feature library, which is being added to an existing project. I have the following code in my AppCompatActivity class. [CODE] The project is using the 2.2.0 version of the androidx lifecycle libraries. From my gradle file: [CODE] I am getting the following e...
java|android
2
2020-02-13T04:05:28.980Z
2,020
2
4
3
552
1
680
64
2
3
true
false
false
false
false
false
low
60,200,418
How to fix INSTALL_PARSE_FAILED_NO_CERTIFICATES for xiaomi/redmi/miui while debugging?
<p>I only have this error message when using my xiaomi redmi note 7 (pie). I was using my previous phone is redmi 2 and still work. I try to debug from flutter or android studio project still got the same error. When I want to try debug to my friend phone Samsung A50 it's working perfectly. I was try anything from <a h...
I only have this error message when using my xiaomi redmi note 7 (pie). I was using my previous phone is redmi 2 and still work. I try to debug from flutter or android studio project still got the same error. When I want to try debug to my friend phone Samsung A50 it's working perfectly. I was try anything from this an...
android|android-studio|debugging|flutter|adb
8
2020-02-13T04:21:08.643Z
2,020
2
4
3
8,367
6
759
86
5
2
true
false
true
false
false
false
medium
60,200,428
'SearchView.QueryTextSubmitEventArgs' does not contain a definition for 'Query' and no accessible extension method 'Query'
<p>I am getting following error after upgrading </p> <ol> <li><p>Xamarin.Android.Support.v7.AppCompat</p></li> <li><p>Xamarin.Android.Support.v7.RecyclerView</p></li> </ol> <blockquote> <p>Error :- Severity Code Description Project File Line Suppression State Error CS1061 'SearchView.QueryTextSubmitEven...
I am getting following error after upgrading Xamarin.Android.Support.v7.AppCompat Xamarin.Android.Support.v7.RecyclerView Error :- Severity Code Description Project File Line Suppression State Error CS1061 'SearchView.QueryTextSubmitEventArgs' does not contain a definition for 'Query' and no accessible extension method...
xamarin.android|searchview
-1
2020-02-13T04:21:55.910Z
2,020
2
4
3
202
1
573
122
2
1
true
false
false
false
false
true
negative
60,200,430
Messing with the AutomationId
<p>Is it safe to set the AutomationId of a stack layout in xamarin.forms to find elements of a list view? Reason for this: I have a ComboBox inside of a list view that needs to call on a function with the id of the list view element. When the selection changed the method of the combo box is called, I check the automat...
Is it safe to set the AutomationId of a stack layout in xamarin.forms to find elements of a list view? Reason for this: I have a ComboBox inside of a list view that needs to call on a function with the id of the list view element. When the selection changed the method of the combo box is called, I check the automationI...
c#|android|ios|xamarin.forms
-1
2020-02-13T04:22:25.237Z
2,020
2
4
3
68
1
587
29
4
0
false
false
false
false
false
true
negative
60,200,466
Firebase Search Can't Show Results
<p>I want to make search data on my app based on Firebase. I've followed instructions on internet how to make search Firebase. It shows no error, but when I clicked search button, my recycleview is empty, no data showed.</p> <blockquote> <p>Here is my code:</p> </blockquote> <pre><code> btnSearch.setOnClickLis...
I want to make search data on my app based on Firebase. I've followed instructions on internet how to make search Firebase. It shows no error, but when I clicked search button, my recycleview is empty, no data showed. Here is my code: [CODE] This is my firebase search method [CODE] ViewHolder [CODE]
java|android
1
2020-02-13T04:26:41.783Z
2,020
2
4
3
54
1
300
34
2
3
true
false
false
false
false
false
low
60,200,471
How to resolve SQLiteException error when insert data in database
<p>So basically I am stuck as to why I cannot add any data. I have basically followed along with a youtube tutorial from scratch but for some reason, one particular error is quite persistent. (It does not allow me to add data, as such I cannot make any use of it.)</p> <p>Below is the code I have been running and any h...
So basically I am stuck as to why I cannot add any data. I have basically followed along with a youtube tutorial from scratch but for some reason, one particular error is quite persistent. (It does not allow me to add data, as such I cannot make any use of it.) Below is the code I have been running and any help would b...
java|android|nullpointerexception|android-sqlite
0
2020-02-13T04:27:31.727Z
2,020
2
4
3
85
2
693
65
4
4
true
false
false
false
false
false
zero
60,200,609
Android Stripe Connect WebView - Create Account Form NOT loading
<p>As is known, there is no Stripe Connect feature for Android unfortunately so I'm following <a href="https://stackoverflow.com/questions/52493606/stripe-connect-firebase-functions">a somewhat known workaround using a webview like this one</a> and <a href="https://stackoverflow.com/questions/29904041/stripe-connect-an...
As is known, there is no Stripe Connect feature for Android unfortunately so I'm following a somewhat known workaround using a webview like this one and this one . I'm trying to get my Webview for Stripe Connect to work however the form to fill out for creating a Stripe Connect Account doesn't load, only the top portio...
android|firebase|webview|android-webview|stripe-payments
0
2020-02-13T04:43:35.087Z
2,020
2
4
3
595
0
1,077
64
5
1
true
true
false
false
false
false
zero
60,200,664
Android Spinner is Returning NullPointerException in Botttomsheet Dialog
<p>I am trying to Return a spinner Value inside my BottomSheet Dialog.But It is returing NullPointerException always.Below is my String.XML File </p> <pre><code> &lt;string-array name="e_type"&gt; &lt;item&gt;item1&lt;/item&gt; &lt;item&gt;item2&lt;/item&gt; &lt;/string-array&gt; </code></pre> <p>This is my b...
I am trying to Return a spinner Value inside my BottomSheet Dialog.But It is returing NullPointerException always.Below is my String.XML File [CODE] This is my bottomsheet_activity.xml file [CODE] And I am trying to Get the value by below code [CODE] Why it is returning null , I have no idea
android|android-spinner|android-bottomsheetdialog
0
2020-02-13T04:49:59.613Z
2,020
2
4
3
204
3
292
72
3
3
true
false
false
false
false
false
zero
60,200,682
when app is not open on stack after notification click not working in android
<p><a href="https://i.stack.imgur.com/l8KLT.png" rel="nofollow noreferrer">enter image description here</a></p> <p>classpath 'com.google.gms:google-services:4.3.3'</p> <p>Added Dependencies </p> <pre><code> implementation 'com.google.firebase:firebase-auth:19.2.0' implementation 'com.google.firebase:firebase-core:17...
enter image description here classpath 'com.google.gms:google-services:4.3.3' Added Dependencies [CODE] MyFirebaseInstanceIDService.java public class MyFirebaseInstanceIDService extends FirebaseMessagingService { [CODE] } MyFirebaseMessagingService.java public class MyFirebaseMessagingService extends FirebaseMessagingS...
java|android|push-notification|firebase-cloud-messaging|androidx
0
2020-02-13T04:52:05.580Z
2,020
2
4
3
108
2
337
77
5
3
true
false
false
false
false
false
zero
60,200,742
Android espresso No views in hierarchy found matching
<p>I was trying to find a view and tried different combinations but my logic looks right according to all stackoverflow examples.</p> <p>My code:</p> <pre><code>onData(anything()).inAdapterView( instanceOf(ListView::class.java)) .atPosition(0) .onChildView(withId(and...
I was trying to find a view and tried different combinations but my logic looks right according to all stackoverflow examples. My code: [CODE] And it throws error: [CODE] Any ideas what I'm doing wrong?
java|android|kotlin|android-espresso
0
2020-02-13T04:57:35.733Z
2,020
2
4
3
1,507
1
202
53
4
2
true
false
false
false
false
false
zero
60,200,799
Why adnroidx recycler-view click not working when click it's item?
<p>I'm trying to implement <code>RecyclerView</code> onclick listener, but it is not working. I've tried a lot, and try to implement other way too, but not working at all.</p> <p><strong>My Main Class:</strong></p> <pre><code>public class MainMenuDashboard extends AppCompatActivity{ private RecyclerView recycler...
I'm trying to implement RecyclerView onclick listener, but it is not working. I've tried a lot, and try to implement other way too, but not working at all. My Main Class: [CODE] My Adapter: [CODE] I still can't find where I did wrong!! Any insight will be very appreciated Thank You
android|android-recyclerview|onclick
0
2020-02-13T05:04:32.107Z
2,020
2
5
3
84
2
282
66
3
2
true
false
false
false
false
false
zero
60,200,812
android:getDeviceList() always returns null
<p>I'm trying to create android app which is able to detect USB devices. java and xml code are like this.</p> <pre class="lang-java prettyprint-override"><code>package com.example.serialtest; import android.hardware.usb.UsbDevice; import android.hardware.usb.UsbManager; import android.os.Bundle; import android.wid...
I'm trying to create android app which is able to detect USB devices. java and xml code are like this. [CODE] [CODE] An Android device(Xperia8, android version is 9) required me to give it connection-permission, however, this app always says " no device found ". What should I do? Please give me some pieces of advise!
java|android-studio|serial-port
0
2020-02-13T05:05:55.720Z
2,020
2
5
3
306
0
318
43
3
2
true
true
false
false
false
false
zero
60,200,855
Change ImageView tint in an ImageView array
<p>I am trying to change multiple <code>ImageView</code> tint color contained in an array.</p> <p>All 8 <code>ImageViews</code> have an id of block1,block2 .... to block8 And I use block+i with <code>findViewById</code> in a loop to refer to them.</p> <pre><code> private ImageView arrowUp, arrowDown; private...
I am trying to change multiple ImageView tint color contained in an array. All 8 ImageViews have an id of block1,block2 .... to block8 And I use block+i with findViewById in a loop to refer to them. [CODE] After that I try to set one of the ImageView tint color using : [CODE] At this point I get this error: [CODE] Any ...
android|imageview|android-imageview
0
2020-02-13T05:11:19.310Z
2,020
2
5
3
74
1
452
43
3
3
true
false
false
false
false
false
zero
60,200,897
Kotlin callback when RecyclerView.Adapter has drawn all elements
<p>I am using a recyclerview to list some elements and I want to know when the RecyclerView.Adapter has drawn all the elements I sent. there is any way to do that?</p>
I am using a recyclerview to list some elements and I want to know when the RecyclerView.Adapter has drawn all the elements I sent. there is any way to do that?
android|android-studio|kotlin|android-recyclerview
0
2020-02-13T05:16:49.373Z
2,020
2
5
3
198
1
160
64
4
0
false
false
false
false
false
false
zero
60,200,970
Fragment navigation using array lists
<p>I made my own fragment navigation implementation using array lists. Everything works fine, I can maintain navigation history using this. However I am not sure if this is a good idea or even if its very efficient. I was hoping someone could go over this code and give me any feedback. Woould be greatly appretiated.</p...
I made my own fragment navigation implementation using array lists. Everything works fine, I can maintain navigation history using this. However I am not sure if this is a good idea or even if its very efficient. I was hoping someone could go over this code and give me any feedback. Woould be greatly appretiated. All o...
android|android-fragments
0
2020-02-13T05:24:48.133Z
2,020
2
5
3
85
0
668
37
2
4
true
true
false
false
false
false
zero
60,201,157
Displaying a RecyclerView in a fragment
<p>I am trying to findViewById in order to add items to a recycler view. My code is below. Can anyway tell me why the following does not work.</p> <p>I do have a sample recycler view which should be appearing in the list, but it is not. </p> <p>Feel like I am missing something very obvious</p> <p>My fragment:</p> <...
I am trying to findViewById in order to add items to a recycler view. My code is below. Can anyway tell me why the following does not work. I do have a sample recycler view which should be appearing in the list, but it is not. Feel like I am missing something very obvious My fragment: [CODE] MyListAdapter: [CODE] My Ma...
java|android|android-studio|android-fragments
0
2020-02-13T05:44:58.677Z
2,020
2
5
3
36
1
339
39
4
3
true
false
false
false
false
false
zero
60,201,192
How can i add style from the string html to display in android textview?
<p>i have a string html to display in my textview.</p> <pre><code>String html_string = "&lt;p&gt;This is a sample strin&lt;/p&gt; &lt;img src=""/&gt;" </code></pre> <pre><code> Spanned spanned = Html.fromHtml(html_string, this, null); ContentTv.setText(spanned); ContentTv.setMovementMethod(Link...
i have a string html to display in my textview. [CODE] [CODE] before i display this on my textview, i want to add width="100%" to the tag. is this possible in android? any help would be really appreciated.
java|android
0
2020-02-13T05:47:59.797Z
2,020
2
5
3
20
1
205
72
2
2
true
false
false
false
false
false
zero
60,201,266
Want to Disable HardBack button of android using cordova/android
<p>I want to disable hardback button on android using Cordova or android I try to put a code in android as well as android but in android, code created by Cordova there is the only main activity and it disables back button on my 1st page that is login page on other pages on click of back button it exits the app or clos...
I want to disable hardback button on android using Cordova or android I try to put a code in android as well as android but in android, code created by Cordova there is the only main activity and it disables back button on my 1st page that is login page on other pages on click of back button it exits the app or close t...
javascript|java|android|cordova|cordova-plugins
0
2020-02-13T05:53:19.523Z
2,020
2
5
3
90
1
570
64
5
2
true
false
false
false
false
false
zero
60,201,402
Original error:An server-side error occurred while processing the command.Original error: No Chromedriver found that can automate Chrome '80.0.3987'
<p>I am getting the following while I am trying to launch the chrome browser in the android device. I have installed the chrome version packages in the npm. </p> <p>Original error: A server-side error occurred while processing the command.Original error: No Chromedriver found that can automate Chrome '80.0.3987'<...
I am getting the following while I am trying to launch the chrome browser in the android device. I have installed the chrome version packages in the npm. Original error: A server-side error occurred while processing the command.Original error: No Chromedriver found that can automate Chrome '80.0.3987' [CODE] Original e...
google-chrome|appium-android
2
2020-02-13T06:06:29.587Z
2,020
2
6
3
6,558
2
458
148
2
1
true
false
true
false
false
false
low
60,201,415
Nearby connection Api When sending the file payloads it is very slow in the receiver side based on devices
<p>If a connection strategy is P2P_CLUSTER, it's able to connect and send a payload to multiple devices, but it is very slow in receiving the payload from the sender.</p> <p>In <strong>Samsung s9, Samsung note9 and Lenovo PB2-670M devices</strong> it is very slow.</p> <p>In <strong>LG g6, pixel 1, pixel 2 and moto 5s...
If a connection strategy is P2P_CLUSTER, it's able to connect and send a payload to multiple devices, but it is very slow in receiving the payload from the sender. In Samsung s9, Samsung note9 and Lenovo PB2-670M devices it is very slow. In LG g6, pixel 1, pixel 2 and moto 5s plus it is fine when compared to the above-...
android|google-nearby|google-nearby-connections
3
2020-02-13T06:07:58.710Z
2,020
2
6
3
135
0
397
106
3
0
false
true
false
false
false
false
low
60,201,496
Kotlin .toInt() returns ASCII value
<p>I'm working on a 3 track step sequencer, and the spinners for sample selection are causing me some trouble. The following code is executed when a saved pattern is loaded to set the correct samples. </p> <pre><code>for ((index, j) in spinners.withIndex()){ val item = loadingPattern[(48+index)] Log.i("item", it...
I'm working on a 3 track step sequencer, and the spinners for sample selection are causing me some trouble. The following code is executed when a saved pattern is loaded to set the correct samples. [CODE] The array "spinners" contains 3 spinners with 5 entries each. "loadingPattern" is a string that contains the patter...
android|kotlin
1
2020-02-13T06:14:55.470Z
2,020
2
6
3
1,096
1
1,593
35
2
1
true
false
false
false
false
false
low
60,201,525
why some of my xml attributes are in red color in android studio and how to resolve it
<p><a href="https://i.stack.imgur.com/ZDdCb.png" rel="nofollow noreferrer">enter image description here</a></p> <p>How can i resolve this red colored text</p>
enter image description here How can i resolve this red colored text
android|xml|android-studio
0
2020-02-13T06:17:10.710Z
2,020
2
6
3
356
0
68
86
3
0
false
true
false
false
false
false
zero
60,201,721
How to check if json from network is converted to my object or not using retrofit?
<p>I am getting network response correctly (I checked it using <code>HttpLoggingInterceptor.Level.BODY</code>), but my viewModel LiveData is still empty.</p> <pre><code>projectMembers = Transformations.switchMap(selectedProjectId, input -&gt; cuttingListRepository.getProjectMembersByProjectUnit(input)); </code></pre> ...
I am getting network response correctly (I checked it using HttpLoggingInterceptor.Level.BODY ), but my viewModel LiveData is still empty. [CODE] In above code projectMembers.getValue() is still null I see no error in console, It could be that my json response is not getting converted to object how to be sure about thi...
android|retrofit2
0
2020-02-13T06:32:00.503Z
2,020
2
6
3
37
2
380
82
2
2
true
false
false
false
false
false
zero
60,201,829
Flutter Cannot build release APK file on flutter:1.12.13+hotfix.8
<p>Flutter Cannot build release APK file on flutter:1.12.13+hotfix.8</p> <p>Hello dear, On flutter:1.12.13+hotfix.8, when I build release apk file get some error Like below:</p> <p>Thanks!</p> <p><a href="https://i.stack.imgur.com/vE1qT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vE1qT.png" a...
Flutter Cannot build release APK file on flutter:1.12.13+hotfix.8 Hello dear, On flutter:1.12.13+hotfix.8, when I build release apk file get some error Like below: Thanks!
android|flutter|mobile|apk
0
2020-02-13T06:39:42.457Z
2,020
2
6
3
107
0
171
65
4
0
false
true
false
false
false
false
zero
60,201,994
Dagger2 android initialize graph at activity level
<p>I am creating a library for my application and in this library, i want to use dagger2 however since there can only be one application class so I dont't have an application class in my library so the obvious thing came to my mind was to initialize dagger at activity level but i also want to use dagger android. This ...
I am creating a library for my application and in this library, i want to use dagger2 however since there can only be one application class so I dont't have an application class in my library so the obvious thing came to my mind was to initialize dagger at activity level but i also want to use dagger android. This is w...
android|dagger-2|dagger
0
2020-02-13T06:50:38.253Z
2,020
2
6
3
131
0
626
50
3
3
true
true
false
false
false
false
zero
60,202,023
how to set spinner at position 0 if the taken string data is null
<p>how to set spinner at position 0 if the taken string data is null. I took data from json. but the results are null or no data. how can I drag if the data I took is null and dragged in spinner to section 0.</p> <pre><code>String genderData = new String(reqresultItem.getMetadata().getGender()); if(genderData.equals("...
how to set spinner at position 0 if the taken string data is null. I took data from json. but the results are null or no data. how can I drag if the data I took is null and dragged in spinner to section 0. [CODE] this code list spinner [CODE] and than this error [CODE]
android
-1
2020-02-13T06:53:04.557Z
2,020
2
6
3
39
3
269
65
1
3
true
false
false
false
false
true
negative
60,202,052
Android: HashMap vs WeakHashMap vs SparseArray in terms of garbage collection
<p>In Java, a <code>HashMap</code> object that is specified as a key is not eligible for garbage collection. A <code>WeakHashMap</code> object that is specified as a key is still eligible for garbage collection</p> <p>My question is in Android, what is the behavior of <code>SparseArray</code> in terms of garbage colle...
In Java, a HashMap object that is specified as a key is not eligible for garbage collection. A WeakHashMap object that is specified as a key is still eligible for garbage collection My question is in Android, what is the behavior of SparseArray in terms of garbage collection? Is it more like HashMap or more like WeakHa...
android|hashmap|android-sparsearray
1
2020-02-13T06:54:59.520Z
2,020
2
6
3
115
1
325
77
3
0
false
false
false
false
false
false
low
60,202,114
Android Tv not displaying Recyclerview
<p>I created a recycler view in my android tv app, but its not showing anything, I did it as I do for mobile apps, checked by debugging using break points, and the recycler view data is showing there.</p> <p>My code is as follows</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-ba...
I created a recycler view in my android tv app, but its not showing anything, I did it as I do for mobile apps, checked by debugging using break points, and the recycler view data is showing there. My code is as follows [CODE] Main Activity [CODE] Model class [CODE] Adapter class [CODE] recycler view layout [CODE] Is t...
android|android-recyclerview|android-tv
0
2020-02-13T07:00:11.050Z
2,020
2
7
3
74
1
373
38
3
5
true
false
false
false
false
false
zero
60,202,311
how to pass bundle from an activity to a fragment which is placed in another activity?
<p>I have used bundle to pass flag but it didn't worked!</p> <pre><code> PersonalInfoFragment fragment=new Personal Info Fragment(); Bundle bundle=new Bundle(); bundle.put String("key","update"); fragment.setArguments(bundle); Intent intent=new Intent(DataDisplayActivity.this,ProfileCompletionActivity.class); sta...
I have used bundle to pass flag but it didn't worked! [CODE]
java|android|android-fragments|android-intent
0
2020-02-13T07:13:53.817Z
2,020
2
7
3
488
2
60
86
4
1
true
false
false
false
false
false
zero
60,202,334
How to remove a layout param flag in Kotlin?
<p>I know how to remove a flag layout params in Java. Its something like this <code>flags = flags &amp; ~flag_not_wanted</code>, but if i copy this to Kotlin it does not compile. What is the way to do this in Kotlin?</p>
I know how to remove a flag layout params in Java. Its something like this flags = flags & ~flag_not_wanted , but if i copy this to Kotlin it does not compile. What is the way to do this in Kotlin?
java|android|kotlin
0
2020-02-13T07:15:37.270Z
2,020
2
7
3
572
1
197
44
3
0
false
false
false
false
false
false
zero
60,202,383
Emulator: emulator: ERROR: Unknown AVD name
<p>error when i start android studio Emulator in ubuntu</p> <pre><code> Emulator: emulator: ERROR: Unknown AVD name [Pixel_3a_API_29], use -list-avds to see valid list. Emulator: Process finished with exit code 1 </code></pre>
error when i start android studio Emulator in ubuntu [CODE]
android|android-studio|emulation
1
2020-02-13T07:18:25.560Z
2,020
2
7
3
272
0
59
43
3
1
true
true
false
false
false
false
low
60,202,384
Multiple list type in recyclerview
<p>i have dynamic list question from API with recyclerview but every question have different type (Input Text,Radio Button,etc) so i need make list with diferent type in my recyclerview. i seacrh on internet also in this site i need to check list type in onCreateViewHolder and return view with different layout source b...
i have dynamic list question from API with recyclerview but every question have different type (Input Text,Radio Button,etc) so i need make list with diferent type in my recyclerview. i seacrh on internet also in this site i need to check list type in onCreateViewHolder and return view with different layout source but ...
android|kotlin|android-recyclerview
0
2020-02-13T07:18:28.307Z
2,020
2
7
3
49
2
664
34
3
3
true
false
false
false
false
false
zero
60,202,422
How to improve perfomance of recyclerview from Api (list rending is very slow)?
<p>Hi in the below task contains some list of items .I am calling an Api and rending the data and then setting the adapter and displaying in recyclerlistview.</p> <p>But list is coming perfectly.For displaying it is taking too much of time .Becuase from Api all are strings and objects .No files or images </p> <p>For ...
Hi in the below task contains some list of items .I am calling an Api and rending the data and then setting the adapter and displaying in recyclerlistview. But list is coming perfectly.For displaying it is taking too much of time .Becuase from Api all are strings and objects .No files or images For displaying list it i...
android|android-recyclerview
1
2020-02-13T07:21:02.147Z
2,020
2
7
3
141
0
502
79
2
3
true
true
false
false
false
false
low
60,202,496
Keeps popping up W/: Zip: Invalid filename in android studio
<p>I'm trying to connect online SQL server on apps in android studio. When I changed <code>Class.forName("java.sql.Driver")</code> into <code>Class.forName("com.mysql.jdbc.Driver")</code> and ran , my console kept popping message like this</p> <pre><code> Zip: Invalid filename W/: Zip: Invalid filename W/: Zip: I...
I'm trying to connect online SQL server on apps in android studio. When I changed Class.forName("java.sql.Driver") into Class.forName("com.mysql.jdbc.Driver") and ran , my console kept popping message like this [CODE] Even though it could still connect to SQL server , I'm afraid that there might be some potential probl...
java|mysql|android-studio|zip
1
2020-02-13T07:26:06.233Z
2,020
2
7
3
337
0
416
60
4
2
true
true
false
false
false
false
low
60,202,548
Is it okay to execute multiple queries inside onCreate?
<p>Hi I'm kinda new to SQLite for Android. I'm just wondering if it's okay to execute multiple queries inside the onCreate method for the DatabaseHelper? Can this affect the performance of the app?</p> <p>DatabaseHelper.class:</p> <pre><code> public void onCreate(SQLiteDatabase db) { db.execSQL("query"); ...
Hi I'm kinda new to SQLite for Android. I'm just wondering if it's okay to execute multiple queries inside the onCreate method for the DatabaseHelper? Can this affect the performance of the app? DatabaseHelper.class: [CODE]
android
1
2020-02-13T07:29:17.180Z
2,020
2
7
3
91
2
223
55
1
1
true
false
false
false
false
false
low
60,202,611
When library dependency is added using 'api' does not provide access to their library which is declared using 'implementation' in Gradle?
<p>LibA is added inside App module using 'api' and LibB is added inside LibA using 'implementation'.</p> <p>I am not able to access LibB inside App, it gives compilation error. </p> <p>Can anyone explain what is happening here ?, am i missing anything or misunderstanding concept of 'api','implementation' ?.</p> <p>...
LibA is added inside App module using 'api' and LibB is added inside LibA using 'implementation'. I am not able to access LibB inside App, it gives compilation error. Can anyone explain what is happening here ?, am i missing anything or misunderstanding concept of 'api','implementation' ?.
android|gradle|android-gradle-plugin|build.gradle
1
2020-02-13T07:33:41.877Z
2,020
2
7
3
256
2
290
137
4
0
false
false
false
false
false
false
low
60,202,655
Changing the background image of a button on Kotlin
<p>I am currently trying to use two buttons, button A and button B. They are on separate activities, and when button B is pressed, the background image on button A should change. So far, here is my relevant code</p> <p>activity_main.xml</p> <pre><code>&lt;Button android:id="@+id/button_a" android:layo...
I am currently trying to use two buttons, button A and button B. They are on separate activities, and when button B is pressed, the background image on button A should change. So far, here is my relevant code activity_main.xml [CODE] activity_2.xml [CODE] activity_2.kt [CODE] I believe it may be something to do with th...
android|kotlin
0
2020-02-13T07:36:40.683Z
2,020
2
7
3
1,642
2
496
51
2
3
true
false
false
false
false
false
zero
60,202,696
Setup Universal Link - Can .well-known under subdirectory instead of root
<p>I am exploring how to set-up a Universal link to an app. Hoping to jump right into my app when users enter the website. But due to business limitation, I can only create the .well-known directory that holds the apple-app-site-association json file under subdirectory like this:</p> <p><a href="https://localhost:8443...
I am exploring how to set-up a Universal link to an app. Hoping to jump right into my app when users enter the website. But due to business limitation, I can only create the .well-known directory that holds the apple-app-site-association json file under subdirectory like this: https://localhost:8443/en/testing/.well-kn...
android|ios|reactjs|react-native
0
2020-02-13T07:39:38.050Z
2,020
2
7
3
261
1
663
73
4
0
false
false
false
false
false
false
zero
60,202,750
AlarmManager for long term notifications - it works
<p><em>skip below to my answer</em> </p> <p>I have seen similar questions but no suitable or correct answer, some are even contradictory.</p> <p>The question is simple: can't alarmManager work for a long duration (more than a few hours)? </p> <p>I have an app that has a message array. At first run, every msg gets a ...
skip below to my answer I have seen similar questions but no suitable or correct answer, some are even contradictory. The question is simple: can't alarmManager work for a long duration (more than a few hours)? I have an app that has a message array. At first run, every msg gets a personal timing (Calendar obj), the ap...
android|broadcastreceiver|alarmmanager
0
2020-02-13T07:43:07.277Z
2,020
2
7
3
85
1
1,036
51
3
0
false
false
false
false
false
false
zero
60,202,837
Android / PHP: Login successful but Failed redirect to the next activity
<p>I'm new in android programming. Currently, I develop apps that require login. For now, the login is successful. Below is the code:</p> <p>MainActivity.JAVA</p> <pre><code>private void userLogin() { //first getting the values final String badgeid = etBadgeid.getText().toString(); final String pwd = etPa...
I'm new in android programming. Currently, I develop apps that require login. For now, the login is successful. Below is the code: MainActivity.JAVA [CODE] URL_LOGIN (PHP) [CODE] Then, I want to use web services (url) when retrieving the data from the database. Below is the php code URL_LOGIN (PHP) [CODE] When I use th...
java|php|android|mysql|json
0
2020-02-13T07:48:45.053Z
2,020
2
7
3
100
1
454
72
5
3
true
false
false
false
false
false
zero
60,202,891
How to Secure Resources in Android
<p>How can we secure sqlite database and all asset and drawable Resources in android? I have tried to convert .png and .jpeg images into webP formate but I think this is not good way to protect resources.Anyone can get resources to rename apk to .zip</p>
How can we secure sqlite database and all asset and drawable Resources in android? I have tried to convert .png and .jpeg images into webP formate but I think this is not good way to protect resources.Anyone can get resources to rename apk to .zip
java|android|kotlin
0
2020-02-13T07:54:08.460Z
2,020
2
7
3
150
1
247
34
3
0
false
false
false
false
false
false
zero
60,202,893
How to release the player of the Exoplayer PlayerView?
<p>I use two different instances of PlayerView (com.google.android.exoplayer2.ui.PlayerView) in two fragments in my app. Both of these Playerview instances use the same SimpleExoPlayer instance for the player. In fragment1 the playerView1 works fine and also when I go to the fragment2 the playerView2 which uses the sam...
I use two different instances of PlayerView (com.google.android.exoplayer2.ui.PlayerView) in two fragments in my app. Both of these Playerview instances use the same SimpleExoPlayer instance for the player. In fragment1 the playerView1 works fine and also when I go to the fragment2 the playerView2 which uses the same S...
android|exoplayer
2
2020-02-13T07:54:08.943Z
2,020
2
7
3
1,997
2
615
54
2
2
true
false
false
false
false
false
low
60,202,930
Android : Kotlin Making an http request with client certificates like in postman
<p><strong>What I have done so far</strong></p> <p>I have done Certificate Pinning using Network Security Config </p> <p>I have created a .p12 file containig the client certificate,private key,root CA,intermediate CA</p> <p>In the readKeyStore i tried to load the certificates so i can make requests to the API </p> ...
What I have done so far I have done Certificate Pinning using Network Security Config I have created a .p12 file containig the client certificate,private key,root CA,intermediate CA In the readKeyStore i tried to load the certificates so i can make requests to the API When using post man everything works fine , Yet in ...
android|ssl|kotlin|okhttp
2
2020-02-13T07:56:23.803Z
2,020
2
7
3
699
0
531
80
4
2
true
true
false
false
false
false
low
60,202,990
I can't hide Floating Action Button?
<p>I am trying to hide my FAB in a button click, but it's not working.?</p> <p>My XML</p> <pre><code>&lt;com.google.android.material.floatingactionbutton.FloatingActionButton android:id="@+id/fabbb" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd=...
I am trying to hide my FAB in a button click, but it's not working.? My XML [CODE] My Activity [CODE]
android|android-studio|android-layout|floating-action-button|material-components-android
0
2020-02-13T08:00:22.407Z
2,020
2
8
3
349
3
101
36
5
2
true
false
false
false
false
false
zero
60,203,010
Can I call super within a Listener Lambda in Android-Kotlin?
<p>I am trying to override the download Listener for a WebView so it gets to open websites not belonging to us in an external browser instead of loading them in the webview. Thing is, I'd like to simplify the code into something like this</p> <pre><code>webView?.setDownloadListener { url, userAgent, contentDisposition...
I am trying to override the download Listener for a WebView so it gets to open websites not belonging to us in an external browser instead of loading them in the webview. Thing is, I'd like to simplify the code into something like this [CODE] However, that call to super there, which I intend to have for urls that do be...
android|kotlin|lambda|android-webview
0
2020-02-13T08:01:32.510Z
2,020
2
8
3
210
1
616
60
4
2
true
false
false
false
false
false
zero
60,203,020
(Solved) How do I specify file path for Android's getExternalStorageState()?
<p>I'm completely new to Android development and would like to index a file from the Android phone's external storage. I found some old code which used a deprecated method:</p> <pre><code>String file1 = Environment.getExternalStorageDirectory() + "/folder/file.blah"; </code></pre> <p>I'm trying to rewrite this line a...
I'm completely new to Android development and would like to index a file from the Android phone's external storage. I found some old code which used a deprecated method: [CODE] I'm trying to rewrite this line and tried the Environment.getExternalFilesdir method but got a "cannot find symbol method" error. The only avai...
java|android
0
2020-02-13T08:02:16.070Z
2,020
2
8
3
797
2
522
76
2
1
true
false
false
false
false
false
zero
60,203,034
Ajax request not sending on android cordova
<p>Ajax request not sending on android studio with cordova. I tried a simple request to google but it does not work either. <br /></p> <blockquote> <p>What i already tried : <br /> - Change minSdk to 23 <br /> - Add cordova whitelist plugin and permissions for https and http in config.xml <br /> -...
Ajax request not sending on android studio with cordova. I tried a simple request to google but it does not work either. What i already tried : - Change minSdk to 23 - Add cordova whitelist plugin and permissions for https and http in config.xml - add android:usesCleartextTraffic="true" in AndroidManifest - i have noth...
android|ajax|android-studio|cordova
0
2020-02-13T08:02:44.787Z
2,020
2
8
3
52
0
462
43
4
1
true
true
false
false
false
false
zero
60,203,046
Update viewpager fragment specific position and get back to previous while backpress
<p>I have a view-pager with two fragment in it . based on my logic i want to replace the fragment on a specific position with another fragment but when user back-press i want to go back to previous fragment i replaced with it </p> <p><strong>for clearance i have 4 fragment A, B, C, D initially i added A and B to vi...
I have a view-pager with two fragment in it . based on my logic i want to replace the fragment on a specific position with another fragment but when user back-press i want to go back to previous fragment i replaced with it for clearance i have 4 fragment A, B, C, D initially i added A and B to view-pager, then i replac...
android|android-fragments|android-viewpager
2
2020-02-13T08:03:23.703Z
2,020
2
8
3
89
1
492
84
3
0
false
false
false
false
false
false
low
60,203,194
how to solve java.net.SocketException: socket failed: EPERM (Operation not permitted)
<p>When I was using my Android Studio to create a simple registration to my local database I met the problem that shows on the title, and here is my code:</p> <pre><code>public class registerInterface extends AppCompatActivity { private EditText editTextUsername, editTextPassword, editTextEmail; private Button...
When I was using my Android Studio to create a simple registration to my local database I met the problem that shows on the title, and here is my code: [CODE] I have already add these in my AndroidManifest.xml, but still does not work: [CODE] I don't if it is the problem about the IP address, but I just cannot figure i...
android|database|database-connection
1
2020-02-13T08:12:42.757Z
2,020
2
8
3
8,523
3
326
85
3
2
true
false
true
false
false
false
low
60,203,224
how to get value from json response in xamarin android?(user login purpose in android app)
<p>c# code:-</p> <pre><code>var handler = new HttpClientHandler(); HttpClient client = new HttpClient(handler); string result = await client.GetStringAsync(url); Console.WriteLine(result); </code></pre> <p>json respose(result):-</p> <pre><code>{ "accountstab": [ { "LoginType": "r", ...
c# code:- [CODE] json respose(result):- [CODE] model class: [CODE]
c#|json|xamarin.android
0
2020-02-13T08:15:10.227Z
2,020
2
8
3
640
2
66
90
3
3
true
false
false
false
false
false
zero
60,203,316
Error: Could not initialize class com.android.build.gradle.internal.crash.PluginCrashReporter
<p>We created a ionic app with angular. When we use </p> <pre><code> ionic serve </code></pre> <p>Then its working fine. But when we are generating android apk then we are getting this error:-</p> <pre><code> * Where: Build file '/home/ankur/projects/ionicdesign/ionic-roots_v101/ionic apps/kisansanchar/medical/p...
We created a ionic app with angular. When we use [CODE] Then its working fine. But when we are generating android apk then we are getting this error:- [CODE] Here is complete log details:- Paste Bin Any idea about this error?
android|ionic-framework|ionic3
0
2020-02-13T08:22:42.827Z
2,020
2
8
3
1,186
2
225
93
3
2
true
false
false
false
false
false
zero
60,203,353
'ACTION_MEDIA_SCANNER_SCAN_FILE:String' is deprecated
<pre><code>activity?.sendBroadcast(Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,Uri.fromFile(copyFile))) </code></pre> <p>I got the warning "ACTION_MEDIA_SCANNER_SCAN_FILE is deprecated." in above code</p> <p>Is there a simple replacement code?</p> <p>Thank you</p>
[CODE] I got the warning "ACTION_MEDIA_SCANNER_SCAN_FILE is deprecated." in above code Is there a simple replacement code? Thank you
android-studio|kotlin
16
2020-02-13T08:25:14.720Z
2,020
2
8
3
10,597
2
132
53
2
1
true
false
true
false
true
false
medium
60,203,413
Circle stretched when rendered in OpenGL ES 2
<p>I've rendered a plain white circle on on my device, but it proportionately stretches it across my device based on the screen dimensions. Scouring around 2D examples &amp; possible answers, I have not been able scale it correctly.</p> <p><strong>My Renderer class:</strong></p> <pre><code>@Override public void onSur...
I've rendered a plain white circle on on my device, but it proportionately stretches it across my device based on the screen dimensions. Scouring around 2D examples & possible answers, I have not been able scale it correctly. My Renderer class: [CODE] My Camera class: [CODE] Vertex Shader: [CODE] Result:
java|android|opengl-es|shader|opengl-es-2.0
1
2020-02-13T08:28:57.203Z
2,020
2
8
3
109
1
305
45
5
3
true
false
false
false
false
false
low
60,203,417
How to get thumbnail from a recorded video in kotlin?
<p>I am a beginner in Kotlin, and just started Kotlin. I am trying to get thumbnail from a video that i recorded within my app.</p> <p>I have tried almost everything that i possibly can, but everytime i get NULL.</p> <p>So first of all, i added the permission of READ_EXTERNAL_STORAGE in the manifest (i don't know, ma...
I am a beginner in Kotlin, and just started Kotlin. I am trying to get thumbnail from a video that i recorded within my app. I have tried almost everything that i possibly can, but everytime i get NULL. So first of all, i added the permission of READ_EXTERNAL_STORAGE in the manifest (i don't know, maybe it's required o...
android|kotlin|video|thumbnails
0
2020-02-13T08:29:27.130Z
2,020
2
8
3
1,343
1
815
53
4
7
true
false
false
false
false
false
zero
60,203,522
How to make the Espresso test wait until the page loads
<p>I will log in. After that, a request to display a list of cards. Each time this request occurs at a different time and using sleep() is not very good. How can I make the test wait as long as the page is loading? Preferably with sample code.</p> <pre><code>@RunWith(AndroidJUnit4.class) @LargeTest public class Author...
I will log in. After that, a request to display a list of cards. Each time this request occurs at a different time and using sleep() is not very good. How can I make the test wait as long as the page is loading? Preferably with sample code. [CODE] }
testing|automated-tests|android-espresso
1
2020-02-13T08:38:00.543Z
2,020
2
8
3
1,372
3
249
55
3
1
true
false
false
false
false
false
low
60,203,604
How to get get png from CustomPainter in flutter
<p>I think the question makes it clear however it I want a png from the pattern drawn on the screen using canvas ,How do I do that,Here is my code..I have tried everything Currently due to time constraints I am using RepaintBoundary to take the screen shot of the complete stack however I need a better functionality..An...
I think the question makes it clear however it I want a png from the pattern drawn on the screen using canvas ,How do I do that,Here is my code..I have tried everything Currently due to time constraints I am using RepaintBoundary to take the screen shot of the complete stack however I need a better functionality..Any p...
android|ios|flutter|mobile|flutter-layout
0
2020-02-13T08:44:03.670Z
2,020
2
8
3
722
1
643
48
5
1
true
false
false
false
false
false
zero