id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59,908,244 | Integer cannot be cast to Long | <p>I am keeping track of row ids in the shared preferences for my sqlite database. I was using an int, but then I realized that maybe long would be more adequate for this since the id value could become huge over time. I am getting this error when I try to getLong from shared preference: <em>java.lang.ClassCastExceptio... | I am keeping track of row ids in the shared preferences for my sqlite database. I was using an int, but then I realized that maybe long would be more adequate for this since the id value could become huge over time. I am getting this error when I try to getLong from shared preference: java.lang.ClassCastException: java... | java|android | 0 | 2020-01-25T10:07:21.767Z | 2,020 | 1 | 10 | 5 | 255 | 1 | 556 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
59,908,304 | How can I get Timestamp from Firestore server without bothering for the case when device clock is out of sync with Firestore | <p>This is in reference to this question <a href="https://stackoverflow.com/questions/59907955/firebase-timestamp-difference-between-current-timestamp-and-database-timestamp-e">Firebase Timestamp difference between current Timestamp and database timestamp error</a></p>
<p>If I use <code>Timestamp.now()</code> there ar... | This is in reference to this question Firebase Timestamp difference between current Timestamp and database timestamp error If I use Timestamp.now() there are cases where the device clock is out of sync with Firestore and my time calculations are not accurate. I want to get the exact time from the Firestore server witho... | android|firebase|google-cloud-firestore | 1 | 2020-01-25T10:16:31.430Z | 2,020 | 1 | 10 | 5 | 337 | 2 | 576 | 124 | 3 | 0 | false | false | false | false | false | false | low |
59,908,356 | How to get path of external storage android? | <p>I would like to get external root path. I got it like that:</p>
<pre><code>root = File(Environment.getExternalStorageDirectory().absolutePath)
</code></pre>
<p>but after release android 10 it has become deprecated. I know that you will say that here I could find a lot of solutions but I didn't manage to solve my p... | I would like to get external root path. I got it like that: [CODE] but after release android 10 it has become deprecated. I know that you will say that here I could find a lot of solutions but I didn't manage to solve my problem :( The most popular solution is that: [CODE] but this solution didn't help me. I also saw t... | android | 1 | 2020-01-25T10:25:48.553Z | 2,020 | 1 | 10 | 5 | 361 | 0 | 541 | 44 | 1 | 2 | true | true | false | false | false | false | low |
59,908,357 | Android shadow not work if use alignParentTop | <p>I use this code and shadow work fine:</p>
<pre><code><carbon.widget.LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginLeft="12dp"
... | I use this code and shadow work fine: [CODE] If I change android:layout_alignParentBottom="true" to android:layout_alignParentTop="true" , shadow not work!! all shadows on top screen not work but in bottom work fine :| Sample : screen shot | android|shadow|elevation|android-elevation | 1 | 2020-01-25T10:25:53.417Z | 2,020 | 1 | 10 | 5 | 26 | 0 | 239 | 45 | 4 | 1 | true | true | false | false | false | false | low |
59,908,381 | The following dependencies do not satisfy the required version: project ':flutter_launch' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 | <p><a href="https://i.stack.imgur.com/FUuVk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FUuVk.png" alt="enter image description here"></a>android studio generate ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. but it already have Kotlin version 1.3.5... | android studio generate ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. but it already have Kotlin version 1.3.50 what should i do any one help | android|android-studio|kotlin|flutter | 3 | 2020-01-25T10:29:52.803Z | 2,020 | 1 | 10 | 5 | 279 | 0 | 190 | 141 | 4 | 0 | false | true | false | false | false | false | low |
59,908,426 | How to pass extra data along with the Intent obtained from GoogleSignInClient.getSignInIntent()? | <p>I need to pass a text-string along with the Google Sign-In Intent, so that I can retrieve it later in the <code>onActivityResult</code> method.</p>
<p>I trigger the GSI account chooser activity with the following code</p>
<pre><code>GoogleSignInOptions googleSignInOptions = new GoogleSignInOptions.Builder(GoogleSi... | I need to pass a text-string along with the Google Sign-In Intent, so that I can retrieve it later in the onActivityResult method. I trigger the GSI account chooser activity with the following code [CODE] and try to retrieve it later via [CODE] data.getStringExtra("CALLSTACK_UID") is always returning null , even when i... | android|google-signin | 3 | 2020-01-25T10:37:51.503Z | 2,020 | 1 | 10 | 5 | 244 | 1 | 467 | 96 | 2 | 2 | true | false | false | false | false | false | low |
59,908,518 | How to retrieve firebase events data from the app? | <p>In my java android app I'm recording with the firebase analytics some events that the user watches in the app, like every time the user watch an item. I would like to retrieve this data to, for example, show the user the yesterday's top most watched items. How can I achieve that? </p>
<p>The only information that I... | In my java android app I'm recording with the firebase analytics some events that the user watches in the app, like every time the user watch an item. I would like to retrieve this data to, for example, show the user the yesterday's top most watched items. How can I achieve that? The only information that I can find is... | android|firebase|firebase-analytics | 0 | 2020-01-25T10:52:18.200Z | 2,020 | 1 | 10 | 5 | 727 | 1 | 437 | 50 | 3 | 0 | false | false | false | false | false | false | zero |
59,908,521 | SQLiteDatabase.query orderBy cluase: "SELECT": syntax error (code 1 SQLITE_ERROR): | <p>I found the below syntax for orderBy clause:</p>
<pre><code> String orderBy = "SELECT * FROM " + TABLE + " ORDER BY " + COL_NAME + ";";
</code></pre>
<p>but it gives this error: </p>
<blockquote>
<p>E/SQLite Exception: near "SELECT": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT _id, name... | I found the below syntax for orderBy clause: [CODE] but it gives this error: E/SQLite Exception: near "SELECT": syntax error (code 1 SQLITE_ERROR): , while compiling: SELECT _id, name, organization, phone, address, email, web_ad, inf, birthday FROM contact ORDER BY SELECT * FROM contact ORDER BY name; I want to sort th... | java|android|sql|sqlite|android-sqlite | 1 | 2020-01-25T10:52:59.997Z | 2,020 | 1 | 10 | 5 | 291 | 1 | 459 | 82 | 5 | 2 | true | false | false | false | false | false | low |
59,908,547 | Fragment NavHostFragment did not create a view | <p>I couldn’t catch this problem personally, but there are a lot of such errors on Firebase Crashlytics</p>
<p><a href="https://i.stack.imgur.com/x8YZC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/x8YZC.png" alt="enter image description here"></a></p>
<p>I tried all the answers with StackOverflow but not... | I couldn’t catch this problem personally, but there are a lot of such errors on Firebase Crashlytics I tried all the answers with StackOverflow but nothing helped My R.layout.activity_main [CODE] My navigation/main_graph [CODE] My gradle [CODE] I tried different solutions but nothing helped. Judging by Firebase Crashly... | android|navigation|androidx | 11 | 2020-01-25T10:56:04.483Z | 2,020 | 1 | 10 | 5 | 4,430 | 3 | 348 | 46 | 3 | 3 | true | false | true | false | true | false | medium |
59,908,568 | Cannot iterate correctly through firebase realtime database | <p>I'm quite new to android studio and firebase and I'm having trouble retrieving specific key value from the firebase realtime database.</p>
<p>So, I have an array of users in the firebase realtime database and I want to iterate through the whole array but I "move" iterator once every time I press the button "next" u... | I'm quite new to android studio and firebase and I'm having trouble retrieving specific key value from the firebase realtime database. So, I have an array of users in the firebase realtime database and I want to iterate through the whole array but I "move" iterator once every time I press the button "next" until the en... | android|firebase|firebase-realtime-database | 0 | 2020-01-25T10:58:30.437Z | 2,020 | 1 | 10 | 5 | 248 | 1 | 861 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
59,908,603 | Flutter: How to include customised drawable assets for common tablet screen densities | <p>My amazing app appears to be NOT designed for tablets according to google. Goggle says the problem is that I do not have right asset for tablets: </p>
<blockquote>
<p>Your APK should include customised drawable assets for common tablet
screen densities</p>
</blockquote>
<p>Here is my project folders where I ha... | My amazing app appears to be NOT designed for tablets according to google. Goggle says the problem is that I do not have right asset for tablets: Your APK should include customised drawable assets for common tablet screen densities Here is my project folders where I have all my icons. To be honest there may be some red... | android|android-studio|flutter|android-drawable | 0 | 2020-01-25T11:03:28.340Z | 2,020 | 1 | 11 | 5 | 19 | 0 | 597 | 85 | 4 | 0 | false | true | false | false | false | false | zero |
59,908,675 | How to minimize a news like app size under 10 MB with audioplayer added in it using flutter? | <p>I want to create an news app using dart with other activities included such as images,quiz system, audio player to read out the content, login-sign up activity , online-offline mode, battery saver mode .
Just after installing flutter package it builds an app of size if 50 MB with just a push button.
More over i wan... | I want to create an news app using dart with other activities included such as images,quiz system, audio player to read out the content, login-sign up activity , online-offline mode, battery saver mode . Just after installing flutter package it builds an app of size if 50 MB with just a push button. More over i wanted ... | android|ios|flutter|dart|flutter-dependencies | 0 | 2020-01-25T11:12:58.993Z | 2,020 | 1 | 11 | 5 | 64 | 1 | 427 | 92 | 5 | 0 | false | false | false | false | false | false | zero |
59,908,680 | set suggestions on androidx.appcompat.widget.SearchView | <p>I am making an android app in which i used a <code>androidx.appcompat.widget.SearchView</code> I have an arraylist which contains different values now i want to set the suggestions of <code>androidx.appcompat.widget.SearchView</code> from that array list. I tried a lot but it didn't work well.
I also toast in <code>... | I am making an android app in which i used a androidx.appcompat.widget.SearchView I have an arraylist which contains different values now i want to set the suggestions of androidx.appcompat.widget.SearchView from that array list. I tried a lot but it didn't work well. I also toast in onQueryTextChange to test either it... | java|android | 2 | 2020-01-25T11:13:19.403Z | 2,020 | 1 | 11 | 5 | 161 | 0 | 421 | 55 | 2 | 1 | true | true | false | false | false | false | low |
59,908,682 | java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference | <p>Everything working fine i got this error at the end please give solution. I have tried each and every solution, I don't know what to do.. please give the exact solution trying from past 2 days but i can't solve the problem..</p>
<p>Thanks in advance</p>
<pre><code>public double calculatedDistance(DataSnapshot data... | Everything working fine i got this error at the end please give solution. I have tried each and every solution, I don't know what to do.. please give the exact solution trying from past 2 days but i can't solve the problem.. Thanks in advance [CODE] [CODE] | java|android|firebase-realtime-database|maps|double | -2 | 2020-01-25T11:13:36.433Z | 2,020 | 1 | 11 | 5 | 801 | 1 | 256 | 131 | 5 | 2 | true | false | false | false | false | true | negative |
59,908,720 | How to get server Timestamp from Firestore in an android device? | <p>This is related to this question: <a href="https://stackoverflow.com/questions/59908304/how-can-i-get-timestamp-from-firestore-server-without-bothering-for-the-case-whe">How can I get Timestamp from Firestore server without bothering for the case when device clock is out of sync with Firestore</a></p>
<p>I have und... | This is related to this question: How can I get Timestamp from Firestore server without bothering for the case when device clock is out of sync with Firestore I have understood FieldValue.serverTimestamp() can be used to generate a Timestamp in Firestore server while performing database operations. I want to understand... | java|android|firebase|google-cloud-firestore | 2 | 2020-01-25T11:19:30.087Z | 2,020 | 1 | 11 | 5 | 4,521 | 3 | 466 | 64 | 4 | 0 | false | false | true | false | false | false | low |
59,908,741 | React-native throwing unexpected token error on import statement | <p>React-native is throwing an unexpected token in a firebase import statement. I have been trying to fix this for a long time. I have already installed @react-native-firebase/auth with <code>npm i install @react-native-firebase/auth</code>. Please help.
This is the error screenshot:
<a href="https://i.stack.imgur.com/... | React-native is throwing an unexpected token in a firebase import statement. I have been trying to fix this for a long time. I have already installed @react-native-firebase/auth with npm i install @react-native-firebase/auth . Please help. This is the error screenshot: | javascript|android|firebase|react-native | 0 | 2020-01-25T11:23:44.887Z | 2,020 | 1 | 11 | 5 | 111 | 1 | 269 | 64 | 4 | 0 | false | false | false | false | false | false | zero |
59,908,757 | android TextInputLayout.class.getDeclaredField("mErrorView") throws exception | <p>I wants to make my TextInputlayout setError in right side of the view. I tried with CustomTextInputlayout.TextInputLayout.class.getDeclaredField("mErrorView") throws exception. MyProject having androidX library.</p>
<p>java.lang.NoSuchFieldException: No field mErrorView in class Lcom/google/android/material/textfie... | I wants to make my TextInputlayout setError in right side of the view. I tried with CustomTextInputlayout.TextInputLayout.class.getDeclaredField("mErrorView") throws exception. MyProject having androidX library. java.lang.NoSuchFieldException: No field mErrorView in class Lcom/google/android/material/textfield/TextInpu... | android|android-layout|android-xml|androidx|android-textinputlayout | -2 | 2020-01-25T11:25:30.180Z | 2,020 | 1 | 11 | 5 | 247 | 2 | 398 | 77 | 5 | 1 | true | false | false | false | false | true | negative |
59,908,765 | Textview text not showing when using tools:text="@tools:sample/lorem" | <p>When am using </p>
<pre><code>android:text="Lorem Ipsum"
</code></pre>
<p>the text is just showing normally on the textview but when am using </p>
<pre><code> tools:text="@tools:sample/lorem"
</code></pre>
<p>its not showing anything.</p>
<p>I have added the namespace for tools, what might be the problem?</p... | When am using [CODE] the text is just showing normally on the textview but when am using [CODE] its not showing anything. I have added the namespace for tools, what might be the problem? Here is the name space [CODE] | android|android-studio|textview | 0 | 2020-01-25T11:26:28.133Z | 2,020 | 1 | 11 | 5 | 1,197 | 1 | 216 | 69 | 3 | 3 | true | false | false | false | false | false | zero |
59,908,804 | Is Realm creates memory leak in android | <p>I am using Realm for local database and I used in Timer and every 40 second checked if data exists I set sync variables, after this process I closed realm <strong>realm.close</strong>, I wonder that,Is below code do memory leak,because I create Realm object at every 40 second, I closed it in finally but I have doubt... | I am using Realm for local database and I used in Timer and every 40 second checked if data exists I set sync variables, after this process I closed realm realm.close , I wonder that,Is below code do memory leak,because I create Realm object at every 40 second, I closed it in finally but I have doubt about it? is it ca... | android|realm | 0 | 2020-01-25T11:34:01.317Z | 2,020 | 1 | 11 | 5 | 290 | 0 | 350 | 39 | 2 | 1 | true | true | false | false | false | false | zero |
59,908,842 | Align bottom of view with centre of parent | <p>I have a CoordinatorLayout with a LinearLayout that contains other views inside it. </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="m... | I have a CoordinatorLayout with a LinearLayout that contains other views inside it. [CODE] The above code aligns the center of LinearLayout with the center of CoordinatorLayout. I want to align the bottom of the last button with the center of CoordinatorLayout. *I use the CoordinatorLayout because there is a bottomshee... | android|android-coordinatorlayout | 0 | 2020-01-25T11:39:00.470Z | 2,020 | 1 | 11 | 5 | 90 | 1 | 343 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
59,908,844 | Reference button in another fragment | <p>This is probably really simple, but I can't figure it out. I have created a Bottom Navigation Activity in Android Studio. I have a button in the third tab. when the app starts, the first tab will be opened. I want to reference this button, so that when the user clicks that tab and then that button, I can do somethin... | This is probably really simple, but I can't figure it out. I have created a Bottom Navigation Activity in Android Studio. I have a button in the third tab. when the app starts, the first tab will be opened. I want to reference this button, so that when the user clicks that tab and then that button, I can do something. ... | java|android|fragment|bottomnavigationview | 0 | 2020-01-25T11:39:21.087Z | 2,020 | 1 | 11 | 5 | 129 | 0 | 586 | 36 | 4 | 1 | true | true | false | false | false | false | zero |
59,908,895 | Is it safe to keep calling View.invalidate so that onDraw is called constantly? | <p>So I have this Canvas View which draws stuff from <code>Canvas</code> class, the thing is that <code>onDraw</code> in my Canvas view class is only called on certain time like moving from app to another app or anything that affects the screen and the layout. So I found that <code>View.invalidate</code> will call <cod... | So I have this Canvas View which draws stuff from Canvas class, the thing is that onDraw in my Canvas view class is only called on certain time like moving from app to another app or anything that affects the screen and the layout. So I found that View.invalidate will call onDraw so that i will repaint all of the layou... | java|android | 0 | 2020-01-25T11:45:20.883Z | 2,020 | 1 | 11 | 5 | 110 | 1 | 523 | 79 | 2 | 1 | true | false | false | false | false | false | zero |
59,908,938 | How to use alternative name for certain directory in windows? | <p>I want to know how can I use another name for user name in windows. I have white space in my user name and I already have many software installed with that directory. Now i am setting up Android sdk and it says there could be problem because of white space. I remember something like a different name for a folder to ... | I want to know how can I use another name for user name in windows. I have white space in my user name and I already have many software installed with that directory. Now i am setting up Android sdk and it says there could be problem because of white space. I remember something like a different name for a folder to rea... | windows|android-studio|android-sdk-2.1 | -1 | 2020-01-25T11:50:58.560Z | 2,020 | 1 | 11 | 5 | 72 | 1 | 329 | 61 | 3 | 0 | false | false | false | false | false | true | negative |
59,908,966 | Why does gradle not implementing com.android.support:design:28.0.0 for adding TextInputLayout? | <p>I'm trying to add TextInputLayout for Android Material Design Floating Labels for EditText.</p>
<p>I have added <strong>implementation 'com.android.support:design:28.0.0'</strong> which shows to add
*</p>
<blockquote>
<p>noinspection GradleCompatible</p>
</blockquote>
<p>My build.gradle as below</p>
<pre><cod... | I'm trying to add TextInputLayout for Android Material Design Floating Labels for EditText. I have added implementation 'com.android.support:design:28.0.0' which shows to add * noinspection GradleCompatible My build.gradle as below [CODE] I have suppressed the warning but still not able add TextInputLayout. How can i a... | android|android-studio|gradle|build.gradle | 0 | 2020-01-25T11:54:44.437Z | 2,020 | 1 | 11 | 5 | 346 | 1 | 375 | 94 | 4 | 1 | true | false | false | false | false | false | zero |
59,908,988 | Decompile proguarded apk file | <p>I have an apk that I release it myself. I have lost my main program I want to decompile the apk. My problem is that I had proguarded my app, so that after decompiling, my code is not properly shown. What should I do to have code of my program?!</p> | I have an apk that I release it myself. I have lost my main program I want to decompile the apk. My problem is that I had proguarded my app, so that after decompiling, my code is not properly shown. What should I do to have code of my program?! | android|android-studio|kotlin|apk|decompiling | 1 | 2020-01-25T11:58:50.147Z | 2,020 | 1 | 11 | 5 | 1,354 | 0 | 244 | 29 | 5 | 0 | false | true | false | false | false | false | low |
59,908,998 | FlutterEnginePluginRegistry - problem to register plugin Firebase in Flutter app | <p>I can't launch a Flutter project in Android Emulator after upgrade Flutter. I obtain the following message in the debug console:</p>
<p><code>W/FlutterEnginePluginRegistry( 7750): Attempted to register plugin (io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry$ShimRegistrarAggregate@75e268b) but it was alr... | I can't launch a Flutter project in Android Emulator after upgrade Flutter. I obtain the following message in the debug console: W/FlutterEnginePluginRegistry( 7750): Attempted to register plugin (io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry$ShimRegistrarAggregate@75e268b) but it was already registered w... | android|firebase|flutter|dart|firebase-authentication | 2 | 2020-01-25T12:00:09.580Z | 2,020 | 1 | 12 | 5 | 5,702 | 3 | 795 | 80 | 5 | 2 | true | false | true | false | false | false | low |
59,909,017 | Android connecting to IPv6 address fails on some devices | <p>The code tries to connect using both IPv4 and IPv6.</p>
<p>On some devices connecting to IPv6 fails, while other devices on the same Wifi-Router have no problem.</p>
<pre><code>AsyncTask.execute(new Runnable() {
@Override
public void run() {
try {
InetAddress [] adrall = InetAddress.get... | The code tries to connect using both IPv4 and IPv6. On some devices connecting to IPv6 fails, while other devices on the same Wifi-Router have no problem. [CODE] For example the output using a Samsung Galaxy S9 is: [CODE] Any ideas? | android|sockets|ipv6|samsung-galaxy | 0 | 2020-01-25T12:02:09.180Z | 2,020 | 1 | 12 | 5 | 749 | 0 | 232 | 56 | 4 | 2 | true | true | false | false | false | false | zero |
59,909,023 | Using MediaPipe Hand Tracking with Unity | <p>We are working on a project for a Mobile (Android) Mixed-Reality (MR) game using only hand gestures for interacting with the virtual objects. We've researched for frameworks and api's that we could use for the project. Currently, we think the best way is to use Google Media Pipe for Multihand tracking and Vuforia fo... | We are working on a project for a Mobile (Android) Mixed-Reality (MR) game using only hand gestures for interacting with the virtual objects. We've researched for frameworks and api's that we could use for the project. Currently, we think the best way is to use Google Media Pipe for Multihand tracking and Vuforia for c... | unity3d|augmented-reality|vuforia|gesture-recognition|android-augmented-reality | 6 | 2020-01-25T12:03:04.247Z | 2,020 | 1 | 12 | 5 | 3,865 | 1 | 624 | 40 | 5 | 0 | false | false | true | false | false | false | medium |
59,909,090 | Firebase database doesn't show me the picture | <p>So I am saving a picture to my database in the App, when I upload a picture. It uploads it correclty to the Storage and the Database, but it doesn't shows me it, when i restart the App.
I choose the file with the method filechooser() and upload it with fileuploader(). It works perfectly fine.<a href="https://i.stack... | So I am saving a picture to my database in the App, when I upload a picture. It uploads it correclty to the Storage and the Database, but it doesn't shows me it, when i restart the App. I choose the file with the method filechooser() and upload it with fileuploader(). It works perfectly fine. [CODE] } So as you can see... | java|android|google-cloud-firestore|firebase-storage | 0 | 2020-01-25T12:12:55.090Z | 2,020 | 1 | 12 | 5 | 41 | 1 | 723 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
59,909,107 | Sort Ascending and Descending Integer | <p>I have a POJO class which contents for sorting Integer where integer obtained from JSON. When i implement it, Integer cannot sort ascending or descending.</p>
<p>Example : JSON has many data, one data has one integer. when i call all data and click for sort ascending, then integer sort ascending. But i use code lik... | I have a POJO class which contents for sorting Integer where integer obtained from JSON. When i implement it, Integer cannot sort ascending or descending. Example : JSON has many data, one data has one integer. when i call all data and click for sort ascending, then integer sort ascending. But i use code like this, can... | java|android | 0 | 2020-01-25T12:14:28.540Z | 2,020 | 1 | 12 | 5 | 45 | 1 | 380 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
59,909,151 | Retrieve the UID of the NFC chip on an Android device NOT tag | <p>I was wondering if it is possible to receive the UID of an NFC CHIP of the android device where the app is installed? I tried retrieving using <code>NfcAdapter</code> But unfortunately without luck. </p> | I was wondering if it is possible to receive the UID of an NFC CHIP of the android device where the app is installed? I tried retrieving using NfcAdapter But unfortunately without luck. | android|nfc | 0 | 2020-01-25T12:21:14.393Z | 2,020 | 1 | 12 | 5 | 15 | 0 | 185 | 61 | 2 | 0 | false | true | false | false | false | false | zero |
59,909,156 | How to use AndroidSDK backup instead of downloading it again? | <p>I have reinstalled Windows 10 and I want to use AndroidSDK folder instead of downloading it again? How can I do it?</p>
<p><a href="https://i.stack.imgur.com/Z3P3E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z3P3E.png" alt="enter image description here"></a></p> | I have reinstalled Windows 10 and I want to use AndroidSDK folder instead of downloading it again? How can I do it? | android|android-studio|android-sdk-tools | 0 | 2020-01-25T12:21:42.630Z | 2,020 | 1 | 12 | 5 | 36 | 1 | 115 | 61 | 3 | 0 | false | false | false | false | false | false | zero |
59,909,166 | Can't access response outside of StringRequest in volley | <p>I've used <a href="https://developer.android.com/training/volley/simple" rel="nofollow noreferrer">this</a> simple get request code</p>
<pre><code>final StringBuilder result = new StringBuilder();
RequestQueue queue = Volley.newRequestQueue(removeThisIfItDidntWork);
String url ="https://jsonplacehol... | I've used this simple get request code [CODE] when I print it inside on response it outputs the expected result but when I use it outside it prints an empty string | java|android|android-volley | 0 | 2020-01-25T12:22:38.053Z | 2,020 | 1 | 12 | 5 | 158 | 1 | 163 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
59,909,198 | cannot resolve method 'stopService(android.content.Intent)' inside ondestroy method | <p>can someone help me with this? I have an error in android studio and still, I can't find solution. sorry to ask if it seems to easy for you. I'm still a newbie with the android studio .it says that "cannot resolve method 'stopService(android.content.Intent)'" <code>onDestroy</code> method</p>
<hr>
<p><a href="http... | can someone help me with this? I have an error in android studio and still, I can't find solution. sorry to ask if it seems to easy for you. I'm still a newbie with the android studio .it says that "cannot resolve method 'stopService(android.content.Intent)'" onDestroy method enter image description here [CODE] | java|android|android-service | 2 | 2020-01-25T12:26:08.343Z | 2,020 | 1 | 12 | 5 | 411 | 1 | 312 | 83 | 3 | 1 | true | false | false | false | false | false | low |
59,909,231 | i am doing login api with volley but i am getting ssl handshake error | <p>I am doing login application (post api) with volley but I am getting no connection on error <code>javax.net.ssl.sslhandshakeexception error</code>.
I checked in all versions and same error I am getting
please clear this doubt.
This is my code: </p>
<pre><code>private void LoginUser() {
if (awesomeValidation.val... | I am doing login application (post api) with volley but I am getting no connection on error javax.net.ssl.sslhandshakeexception error . I checked in all versions and same error I am getting please clear this doubt. This is my code: [CODE] | java|android|c|json|android-volley | 1 | 2020-01-25T12:30:56.170Z | 2,020 | 1 | 12 | 5 | 221 | 0 | 238 | 69 | 5 | 1 | true | true | false | false | false | false | low |
59,909,354 | When Using a release apk some code has been removed by Dart AOT Compiler (TFA) | <p>I wanted to give to some friends an apk version of my project to test it.
<strong>on my IDE my project is working great</strong>, might be some bugs but the main concept is functionable. </p>
<p>They report some bugs that doesn't occurs on my side, so I've tried the <strong>release apk</strong> and when I trigger <... | I wanted to give to some friends an apk version of my project to test it. on my IDE my project is working great , might be some bugs but the main concept is functionable. They report some bugs that doesn't occurs on my side, so I've tried the release apk and when I trigger some specifics methods this Error Appears : [C... | android|firebase|flutter|dart|google-cloud-firestore | 0 | 2020-01-25T12:46:17.320Z | 2,020 | 1 | 12 | 5 | 242 | 1 | 1,187 | 78 | 5 | 4 | true | false | false | false | false | false | zero |
59,909,389 | Azure Function using ServiceBusTrigger doesn't work in Xamarin.Android app | <p>My Azure function doesn't trigger when called by my Android app.</p>
<p><strong>Test:</strong></p>
<p>The following test successfully triggers the Azure function via a ServiceBusTrigger:</p>
<pre><code>[<Fact>]
let ``Publish message assigned to servicebus topic``() =
// Setup
let connectionstring =... | My Azure function doesn't trigger when called by my Android app. Test: The following test successfully triggers the Azure function via a ServiceBusTrigger: [CODE] Issue: However, when I plug the code into my Xamarin Android application, the Azure function never gets triggered. Instead, I only observe the following erro... | azure|xamarin.android|azure-functions|azureservicebus | 1 | 2020-01-25T12:49:58.457Z | 2,020 | 1 | 12 | 5 | 191 | 1 | 788 | 74 | 4 | 3 | true | false | false | false | false | false | low |
59,909,470 | <include - onclick depending the include | <p>I am trying to re-use a layout with buttons inside others layouts but I want the layout of the buttons to have different on click listeners for every different layout that is included. Any idea?</p>
<p>First layout</p>
<pre><code> <data>
<variable
name="model"
type="com.... | I am trying to re-use a layout with buttons inside others layouts but I want the layout of the buttons to have different on click listeners for every different layout that is included. Any idea? First layout [CODE] secondView [CODE] the included layout [CODE] | android|android-layout|onclick|android-databinding | -1 | 2020-01-25T13:00:38.083Z | 2,020 | 1 | 13 | 5 | 735 | 1 | 259 | 40 | 4 | 3 | true | false | false | false | false | true | negative |
59,909,540 | Error when trying to get sharedpreferences values from a private class | <p>I am trying to get the sharedpreferences values that are saved, and I want to get the saved value to pop up in a Toast message. All this happens in a class, but I get the error: <code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a nul... | I am trying to get the sharedpreferences values that are saved, and I want to get the saved value to pop up in a Toast message. All this happens in a class, but I get the error: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object ... | java|android|sharedpreferences | 0 | 2020-01-25T13:09:47.720Z | 2,020 | 1 | 13 | 5 | 52 | 2 | 820 | 70 | 3 | 2 | true | false | false | false | false | false | zero |
59,909,559 | Are there benefits to keeping the Google Sign-In account connected after Firebase Auth via GSI has been signed in? | <p>When signing-in via Firebase Auth with the "google.com" provider, are there any benefits to keeping the underlying Google Account connected?</p>
<p>All the samples I've seen do leave it connected, but I've come across the situation where I'm better off disconnecting the Google Account as soon as I have signed into ... | When signing-in via Firebase Auth with the "google.com" provider, are there any benefits to keeping the underlying Google Account connected? All the samples I've seen do leave it connected, but I've come across the situation where I'm better off disconnecting the Google Account as soon as I have signed into Firebase vi... | android|firebase-authentication|google-signin | 1 | 2020-01-25T13:12:30.067Z | 2,020 | 1 | 13 | 5 | 53 | 0 | 701 | 114 | 3 | 1 | true | true | false | false | false | false | low |
59,909,678 | Bottomappbar not seen properly | <p>I'm trying to put a <code>bottomAppBar</code> to <code>mainActivity</code>.
So I tried and check lots of stuff in here but couldn't find any solutions.</p>
<p>MainActivity's XML code is below(It has another constraint layout as a parent but didn't add here.)</p>
<pre><code><androidx.coordinatorlayout.widget.Coo... | I'm trying to put a bottomAppBar to mainActivity . So I tried and check lots of stuff in here but couldn't find any solutions. MainActivity's XML code is below(It has another constraint layout as a parent but didn't add here.) [CODE] So after that, I prepared a bottomappbar_menu.xml in menu directory and I tried to att... | android|kotlin|android-bottomappbar | 1 | 2020-01-25T13:29:01.960Z | 2,020 | 1 | 13 | 5 | 134 | 1 | 511 | 30 | 3 | 3 | true | false | false | false | false | false | low |
59,909,771 | How to extract source code from installed app? | <p>I was developing an Android app for more than a month, but my computer crashed and I lost all the code from it. I have a compiled app installed on a test phone and tablet. Is there any way to extract source code from it?<br>
I followed some guide for game modders (they are probably doing something similar), and I h... | I was developing an Android app for more than a month, but my computer crashed and I lost all the code from it. I have a compiled app installed on a test phone and tablet. Is there any way to extract source code from it? I followed some guide for game modders (they are probably doing something similar), and I have extr... | android|apk|apktool | 0 | 2020-01-25T13:38:10.683Z | 2,020 | 1 | 13 | 5 | 2,360 | 1 | 799 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
59,909,795 | Is there any way to get a specific view in the listView? | <p>I'm just trying to make a basic app with a simple listView and if we click items of this view it will vanish and after all the items in the view are in a invisible position, we should get all back to visible.</p>
<p>I've already written a code to vanish the items when clicked but got stuck at reversing those back t... | I'm just trying to make a basic app with a simple listView and if we click items of this view it will vanish and after all the items in the view are in a invisible position, we should get all back to visible. I've already written a code to vanish the items when clicked but got stuck at reversing those back to visible c... | java|android|listview|android-adapter | -1 | 2020-01-25T13:41:27.187Z | 2,020 | 1 | 13 | 5 | 63 | 1 | 616 | 56 | 4 | 2 | true | false | false | false | false | true | negative |
59,909,823 | Scrape full html data from weather website | <p>I'm trying to get weather data from this website:</p>
<p><a href="https://www.ilmeteo.it/meteo/Magenta/previsioni-orarie?refresh_ce" rel="nofollow noreferrer">https://www.ilmeteo.it/meteo/Magenta/previsioni-orarie?refresh_ce</a></p>
<p>with the code:</p>
<pre><code> try {
int i = 0;
... | I'm trying to get weather data from this website: https://www.ilmeteo.it/meteo/Magenta/previsioni-orarie?refresh_ce with the code: [CODE] I'm trying to get the table rows with temperature, wind and time data: but I'm unable to get it. The document I get doesn't contain this data and seems to be incomplete. I thought th... | javascript|android|jsoup|screen-scraping|scrape | 0 | 2020-01-25T13:45:24.840Z | 2,020 | 1 | 13 | 5 | 228 | 2 | 593 | 42 | 5 | 1 | true | false | false | false | false | false | zero |
59,909,830 | Overriding Style XML for Component | <p>im using Material IO and i want to Change the Text-Color of my Menu.</p>
<pre><code><resources>
...
<style name="AppTheme" parent="Theme.MaterialComponents.Light">
...
<item name="android:textColorPrimary">@color/colorText</item>
</style>
...
<resources>
<... | im using Material IO and i want to Change the Text-Color of my Menu. [CODE] Does exactly that. But it changes every Text Color. But i just want to Change the Color of my Menu-Text. So i tried to change only that: [CODE] by writing some Thing like This. I can change the Menu-Background this way, but i cant change the Me... | android | 1 | 2020-01-25T13:46:13.417Z | 2,020 | 1 | 13 | 5 | 465 | 1 | 441 | 34 | 1 | 3 | true | false | false | false | false | false | low |
59,910,082 | how to change the color of a word within a string.xml file | <p>I'm new to android and would like to know how to change the color of a specific word inside a strings.xml file
I'm trying to write a song and I needed the notes to have another color and the chorus to be bold</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div c... | I'm new to android and would like to know how to change the color of a specific word inside a strings.xml file I'm trying to write a song and I needed the notes to have another color and the chorus to be bold [CODE] Thanks | android | 0 | 2020-01-25T14:19:45.547Z | 2,020 | 1 | 14 | 5 | 42 | 1 | 222 | 58 | 1 | 1 | true | false | false | false | false | false | zero |
59,910,173 | how update buttons (rooms) on specific date acording to database? | <p><a href="https://i.stack.imgur.com/X833U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X833U.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.com/yiljQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yiljQ.jpg" alt="enter image description he... | I create database using curentdate (1-25) as parent id and using room (08-00_11-00_karpet1-) as child id . inside this database are user information that order that room ( child id ) on that date ( parent id ). Question 1 using this layout design, how do i disable button that have been ordered so that indicate that roo... | java|android|firebase|firebase-realtime-database | 0 | 2020-01-25T14:29:54.480Z | 2,020 | 1 | 14 | 5 | 42 | 2 | 887 | 65 | 4 | 1 | true | false | false | false | false | false | zero |
59,910,222 | 2x2 buttons in a scrollview | <p>I’m trying to put a matrix (2 x 2) of buttons into a constraint layout and then to put the constraint (with the 4 buttons included) layout into a scroll view and finally to add the scroll view into the main layout. The code is provided here below. Can anyone tell me what do I wrong since finally the bar appears inst... | I’m trying to put a matrix (2 x 2) of buttons into a constraint layout and then to put the constraint (with the 4 buttons included) layout into a scroll view and finally to add the scroll view into the main layout. The code is provided here below. Can anyone tell me what do I wrong since finally the bar appears instead... | android|scroll|scrollview | 0 | 2020-01-25T14:35:34.373Z | 2,020 | 1 | 14 | 5 | 116 | 2 | 519 | 27 | 3 | 2 | true | false | false | false | false | false | zero |
59,910,308 | Change Name AVD in android studio | <p><a href="https://i.stack.imgur.com/NzC2z.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I want to change the AVD name on Android Studio, how do I change it ?, I ask for help</p> | enter image description here I want to change the AVD name on Android Studio, how do I change it ?, I ask for help | android | 0 | 2020-01-25T14:46:31.173Z | 2,020 | 1 | 14 | 5 | 200 | 1 | 114 | 33 | 1 | 0 | false | false | false | false | false | false | zero |
59,910,397 | how to fix 401 Unauthorized error with using retrofit in android? | <p>I have used retrofit2 library in android. I am getting 401 Unauthorized error. if anyone have solved this issue so please tell me here. I learn retrofit2 use in android.
this is APIClient class.
APIClient class : </p>
<pre><code> public class APIClient {
private static Retrofi... | I have used retrofit2 library in android. I am getting 401 Unauthorized error. if anyone have solved this issue so please tell me here. I learn retrofit2 use in android. this is APIClient class. APIClient class : [CODE] this is my interface. [CODE] this is my final call. [CODE] | android|json|retrofit|postman|retrofit2 | 1 | 2020-01-25T14:56:53.750Z | 2,020 | 1 | 14 | 5 | 10,480 | 4 | 278 | 65 | 5 | 3 | true | false | true | false | false | false | low |
59,910,450 | Android Studio - Gradle build | <blockquote>
<p>Default method desugaring of <code>io.appium.java_client.DefaultGenericMobileDriver</code> failed because its super class <code>org.openqa.selenium.remote.RemoteWebDriver</code> is missing</p>
</blockquote>
<p>I get the above error continuously when I started running the android studio for the initia... | Default method desugaring of io.appium.java_client.DefaultGenericMobileDriver failed because its super class org.openqa.selenium.remote.RemoteWebDriver is missing I get the above error continuously when I started running the android studio for the initial setup of gradle. I checked on web, they say that environment var... | android | 0 | 2020-01-25T15:02:38.340Z | 2,020 | 1 | 15 | 5 | 98 | 1 | 430 | 29 | 1 | 0 | false | false | false | false | false | false | zero |
59,910,500 | Unable to Get Fitness Recording Client From Google Fit (Subscription) | <p>I'm working on an app that uses the android Google Fit API to record and retrieve data. I've read the documentation and so I'm trying to establish a subscription using Fitness.getRecordingClient. When you do this there are two main methods (listeners) one is onSuccess and the other is on onFailure. I ran the app in ... | I'm working on an app that uses the android Google Fit API to record and retrieve data. I've read the documentation and so I'm trying to establish a subscription using Fitness.getRecordingClient. When you do this there are two main methods (listeners) one is onSuccess and the other is on onFailure. I ran the app in deb... | java|android|api|google-fit | 2 | 2020-01-25T15:07:32.433Z | 2,020 | 1 | 15 | 5 | 314 | 0 | 653 | 69 | 4 | 1 | true | true | false | false | false | false | low |
59,910,576 | No static method intoSet in Firebase |error while i try to implement firebase database and push notification | <p>I use firebase database and firebase push notification while I run my app it crashes with firebase error</p>
<p>This is the error:</p>
<pre class="lang-java prettyprint-override"><code> java.lang.NoSuchMethodError: No static method intoSet(Ljava/lang/Object;Ljava/lang/Class;)Lcom/google/firebase/components/Compone... | I use firebase database and firebase push notification while I run my app it crashes with firebase error This is the error: [CODE] Following is content in gradle: [CODE] My notification service : [CODE] My notification function : [CODE] Any help will be appreciated! | android|firebase|notifications|firebase-cloud-messaging|push | 1 | 2020-01-25T15:16:59.523Z | 2,020 | 1 | 15 | 5 | 191 | 1 | 266 | 108 | 5 | 4 | true | false | false | false | false | false | low |
59,910,596 | I'm having this error in Google Play Console android.database.sqlite.SQLiteDatabaseLockedException but I don't use SQLite in my App | <p>By first time I'm seeing this error into Andriod Vitals of Google Play Console:</p>
<blockquote>
<p>java.lang.RuntimeException: at
com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(com.google.firebase:firebase-firestore@@21.3.1:529)
at com.google.firebase.firestore.util.AsyncQueue$$Lambda$3.run
(... | By first time I'm seeing this error into Andriod Vitals of Google Play Console: java.lang.RuntimeException: at com.google.firebase.firestore.util.AsyncQueue.lambda$panic$3(com.google.firebase:firebase-firestore@@21.3.1:529) at com.google.firebase.firestore.util.AsyncQueue$$Lambda$3.run (Unknown Source:2) at android.os.... | android|firebase|google-cloud-firestore | 0 | 2020-01-25T15:18:18.037Z | 2,020 | 1 | 15 | 5 | 253 | 0 | 3,892 | 131 | 3 | 0 | false | true | false | false | false | false | zero |
59,910,605 | Problems with intent in second activity | <p>I am new in the android dev and java
My idea is to make BMI that will have history.
So I am at the point where I struggle with the intent for the second activity.</p>
<pre><code>Button button = findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public vo... | I am new in the android dev and java My idea is to make BMI that will have history. So I am at the point where I struggle with the intent for the second activity. [CODE] I am getting: can not resolve symbol intent | java|android | 0 | 2020-01-25T15:19:09.103Z | 2,020 | 1 | 15 | 5 | 72 | 1 | 213 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
59,910,649 | Serialize - Data for Model class not passing to another Activity | <p>I have made my model class Serializable by implementing interface <strong>Serializable</strong></p>
<p>Am also made all the nested class Serializable.</p>
<p>Created Intent as below : </p>
<pre><code>Intent intent = new Intent(this,AddinquiryActvity.class);
intent.putExtra("sampleObject",inquiryDetailsModel);
sta... | I have made my model class Serializable by implementing interface Serializable Am also made all the nested class Serializable. Created Intent as below : [CODE] And Receiving it in another activity as below : [CODE] But, always getting null for the inquiryDetailsModel What might be the issue? Thanks. | android|android-intent|serialization|pojo | 0 | 2020-01-25T15:25:06.163Z | 2,020 | 1 | 15 | 5 | 56 | 1 | 300 | 64 | 4 | 2 | true | false | false | false | false | false | zero |
59,910,716 | How to make changes into animation of Lottie | <p>I am stuck with a problem. I have a project in which I need to implement an animation from Lottie. So I made the animation with an animation available from Lottie but when I show the app to the client, they requested that the lines be some what bolder. Also they want changes in the movement. I have no experience of ... | I am stuck with a problem. I have a project in which I need to implement an animation from Lottie. So I made the animation with an animation available from Lottie but when I show the app to the client, they requested that the lines be some what bolder. Also they want changes in the movement. I have no experience of Ado... | android|json|android-studio|animation|lottie | 2 | 2020-01-25T15:32:43.210Z | 2,020 | 1 | 15 | 5 | 6,964 | 3 | 561 | 44 | 5 | 0 | false | false | true | false | false | false | low |
59,910,741 | Children of relative layour order not working | <p>I use relative layout in xml and use two child for layout</p>
<p>But my second child not placed in front</p>
<p>How I can fix z-index?</p>
<p>My code:</p>
<pre><code><RelativeLayout
android:id="@+id/lnrShowList"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... | I use relative layout in xml and use two child for layout But my second child not placed in front How I can fix z-index? My code: [CODE] In other layout z-index with element work fine, but for this xml not work Even I change relative layout to constraint layout but not work! This problem when show I use carbon Screen: | android|android-layout|android-relativelayout | 0 | 2020-01-25T15:35:36.817Z | 2,020 | 1 | 15 | 5 | 38 | 2 | 319 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
59,910,750 | Notification with inverted color with dark mode | <p>On android 10, negative images i.e images with inverted color are displayed in the notification from custom-notification apps when dark mode is enabled.</p>
<p>How to prevent that from happening?</p>
<p>Notification with light theme: </p>
<p><a href="https://i.stack.imgur.com/macsd.jpg" rel="noreferrer"><img src=... | On android 10, negative images i.e images with inverted color are displayed in the notification from custom-notification apps when dark mode is enabled. How to prevent that from happening? Notification with light theme: Notification with Dark theme: | android|push-notification|android-notifications|android-dark-theme | 9 | 2020-01-25T15:37:13.923Z | 2,020 | 1 | 15 | 5 | 1,721 | 3 | 249 | 47 | 4 | 0 | false | false | false | false | false | false | medium |
59,910,773 | TensorFlow Lite Android app crashes on start | <p>I am working on a machine learning based android application that predicts one of the two classes <code>0</code> or <code>1</code>. I am passing 14 integers in an array for prediction in my model.</p>
<pre><code>for i in range(length):
print(np.argmax(pred[sample[i]]))
</code></pre>
<p>I have converted my mode... | I am working on a machine learning based android application that predicts one of the two classes 0 or 1 . I am passing 14 integers in an array for prediction in my model. [CODE] I have converted my model to tflite using the following [CODE] I have also added the following in build gradle [CODE] I have made 14 EditText... | python|android|tensorflow|machine-learning|tensorflow-lite | 1 | 2020-01-25T15:39:36.323Z | 2,020 | 1 | 15 | 5 | 124 | 0 | 570 | 44 | 5 | 5 | true | true | false | false | false | false | low |
59,910,900 | Change elements of activity_main by click from recyclerView in Kotlin | <p>I need to change color of Button element from activity_main.xml by clicking the element in RecyclerView. The hex color value should be taken from selected item parameters.
Just because I'm new to Kotlin, do not understand how to perform it.</p>
<p><a href="https://i.stack.imgur.com/3UYB2.png" rel="nofollow noreferr... | I need to change color of Button element from activity_main.xml by clicking the element in RecyclerView. The hex color value should be taken from selected item parameters. Just because I'm new to Kotlin, do not understand how to perform it. Here is MainActivity: [CODE] Here is ElementsAdapter (recyclerView): [CODE] | android|kotlin|android-activity|android-recyclerview | 1 | 2020-01-25T15:57:15.550Z | 2,020 | 1 | 15 | 5 | 1,341 | 2 | 316 | 69 | 4 | 2 | true | false | false | false | false | false | low |
59,910,982 | How to find out the progress of playing an audio file? | <p>How can I find out the progress of playback in order to display it in the progress bar.
Here is my code to play.</p>
<pre><code> var player = new MediaPlayer();
player.SetDataSource(filename);
player.SetVolume(10, 10);
player.Prepare();
player.Start(); ... | How can I find out the progress of playback in order to display it in the progress bar. Here is my code to play. [CODE] | c#|android|xamarin|audio|android-mediaplayer | 0 | 2020-01-25T16:06:40.390Z | 2,020 | 1 | 16 | 5 | 86 | 1 | 119 | 54 | 5 | 1 | true | false | false | false | false | false | zero |
59,911,049 | Firebase returning null in the data that comes from a firestore document in Google Play Store version | <p>I have this error that the Firebase Crashlytics has stored.
The scenario is simple, in a productive environment (by downloading the app from Google play) when I try to obtain a document within a collection in Firestore, the document values are saved in the object, but these are void. This issue does not happens i... | I have this error that the Firebase Crashlytics has stored. The scenario is simple, in a productive environment (by downloading the app from Google play) when I try to obtain a document within a collection in Firestore, the document values are saved in the object, but these are void. This issue does not happens if I ... | java|android|firebase|google-cloud-firestore|crashlytics | 0 | 2020-01-25T16:12:49.273Z | 2,020 | 1 | 16 | 5 | 472 | 0 | 915 | 101 | 5 | 2 | true | true | false | false | false | false | zero |
59,911,084 | Notifying Activity From ViewModel | <p>I am new to MVVM android, I want to make a simple Login form with 2 input fields of email and password, 1 button of Login and 1 progressbar. I am using viewmodel to catch values of email/password from XML using binding and onclick binding as well to call viewmodel's onclick function. So basically viewmodel is now li... | I am new to MVVM android, I want to make a simple Login form with 2 input fields of email and password, 1 button of Login and 1 progressbar. I am using viewmodel to catch values of email/password from XML using binding and onclick binding as well to call viewmodel's onclick function. So basically viewmodel is now liste... | android|mvvm|android-mvvm | 1 | 2020-01-25T16:15:33.587Z | 2,020 | 1 | 16 | 5 | 572 | 2 | 956 | 33 | 3 | 0 | false | false | false | false | false | false | low |
59,911,145 | Firestore RecyclerView not displaying the items in the app | <p>I am using firestore recyclerview, but the items is not displayed on the app. I don't know what the problem is. I used is t before in other projects but still i don't get the mistake I made.</p>
<p>Display Fragment:</p>
<pre><code>import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflate... | I am using firestore recyclerview, but the items is not displayed on the app. I don't know what the problem is. I used is t before in other projects but still i don't get the mistake I made. Display Fragment: [CODE] Adapter. This is the adapter which extends recyclerview Adapter : [CODE] Cell. This is the POJO class : ... | android|firebase|android-studio|android-recyclerview|google-cloud-firestore | 0 | 2020-01-25T16:23:11.960Z | 2,020 | 1 | 16 | 5 | 437 | 1 | 605 | 58 | 5 | 5 | true | false | false | false | false | false | zero |
59,911,183 | Android Studio Vector Asset Tool Content not allowed in prolog | <p>I am trying to create a splash screen for one of my apps with it's logo and my companies logo on it. To make sure I get no resizing problems I wanted to use SVG files and create a vector asset using the Android Studios built in tool.</p>
<p>However when I want to create an asset using <em>New > Vector Asset</em> an... | I am trying to create a splash screen for one of my apps with it's logo and my companies logo on it. To make sure I get no resizing problems I wanted to use SVG files and create a vector asset using the Android Studios built in tool. However when I want to create an asset using New > Vector Asset and then Local File an... | android|android-studio|svg | 0 | 2020-01-25T16:27:01.500Z | 2,020 | 1 | 16 | 5 | 212 | 1 | 674 | 62 | 3 | 0 | false | false | false | false | false | false | zero |
59,911,247 | I'd like to get a data from JSON object having key with integer but unable to fetch in kotlin | <pre><code>"status": {
"0": "",
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"10": "",
"11": ""
}
</code></pre> | [CODE] | android|kotlin | -3 | 2020-01-25T16:34:44.877Z | 2,020 | 1 | 16 | 5 | 121 | 2 | 6 | 93 | 2 | 1 | true | false | false | false | false | true | negative |
59,911,308 | RxJava chain observable with download | <p>I have an object that can contains urls</p>
<pre><code>class MyObject
(
var url_image:String? = null,
var url_document:String? = null,
var file_image:File? = null,
var file_document:File? = null
)
</code></pre>
<p>Also i have a method to download urls, this method returns <code>Observable<File&g... | I have an object that can contains urls [CODE] Also i have a method to download urls, this method returns Observable<File> [CODE] I need to create a method where i would pass myObject, and if needed it will download it urls and finally return Observable<MyObject> . Something like this: [CODE] How should i make this cha... | android|kotlin|reactive-programming | 0 | 2020-01-25T16:44:09.467Z | 2,020 | 1 | 16 | 5 | 39 | 1 | 350 | 37 | 3 | 3 | true | false | false | false | false | false | zero |
59,911,320 | Ways to swap local files between mobiles | <p>I have the next problem: </p>
<p>To my graduation work my teacher told me to implement a system that allows me to transfer any type of file from a phone (Android, IOS...) to another phone (Android, IOS...) using a server that keeps the files until the target phone downloads it.</p>
<p>Could anyone give me some adv... | I have the next problem: To my graduation work my teacher told me to implement a system that allows me to transfer any type of file from a phone (Android, IOS...) to another phone (Android, IOS...) using a server that keeps the files until the target phone downloads it. Could anyone give me some advice about the best w... | android|ios|file-transfer | -1 | 2020-01-25T16:45:11.620Z | 2,020 | 1 | 16 | 5 | 26 | 1 | 351 | 40 | 3 | 0 | false | false | false | false | false | true | negative |
59,911,554 | Expo android app, PushNotifications doesn't work in standalone apk? | <p>I am facing a problem, when I am running an app through expo client app, PushNotifications works. But if I am building a standalone .apk, I need to install expo client, in order to get pushtoken. And, when expo client is not turned on, I cannot get pushtoken. So my customer needs to install 2 apps. One is mine, buil... | I am facing a problem, when I am running an app through expo client app, PushNotifications works. But if I am building a standalone .apk, I need to install expo client, in order to get pushtoken. And, when expo client is not turned on, I cannot get pushtoken. So my customer needs to install 2 apps. One is mine, built s... | android|react-native|push-notification|expo | 10 | 2020-01-25T17:12:57.697Z | 2,020 | 1 | 17 | 5 | 6,948 | 5 | 382 | 67 | 4 | 0 | false | false | true | false | true | false | medium |
59,911,568 | Can't get file uri from intent onActivityResult | <p>I would like to receive normal file path from <code>onActivityResult</code> like this:</p>
<pre><code>override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (resultCode == RESULT_OK) {
Log.i("m", data!!.d... | I would like to receive normal file path from onActivityResult like this: [CODE] but I receive such error: [CODE] this exception comes from method which converts my file to string. This error points to this line: [CODE] This file exists also but I can't get it. I saw here some questions which suggest to get REAL path l... | android|file|onactivityresult | 0 | 2020-01-25T17:15:20.007Z | 2,020 | 1 | 17 | 5 | 2,052 | 1 | 646 | 47 | 3 | 8 | true | false | false | false | false | false | zero |
59,911,654 | How to stop EditText keyboard from jumping to top of screen | <p>I'm developing a chat app and i have a problem when the user inputs a new message using edit text the android keyboard jumps to the top of the screen ,is there a way to control this?</p> | I'm developing a chat app and i have a problem when the user inputs a new message using edit text the android keyboard jumps to the top of the screen ,is there a way to control this? | android|android-edittext|keyboard | 1 | 2020-01-25T17:24:13.647Z | 2,020 | 1 | 17 | 5 | 312 | 1 | 182 | 59 | 3 | 0 | false | false | false | false | false | false | low |
59,911,660 | Programmatically collapsible/expandable toolbar without CoordinatorLayout? | <p>I want to have a toolbar that can be expanded when the user clicks on a certain item in a layout. However, I don't need to have a toolbar that can collapse when scrolling, so I don't see the use of the <code>CoordinatorLayout</code>. The problem is that calling <code>setExpanded(false)</code> on my <code>AppBarLayou... | I want to have a toolbar that can be expanded when the user clicks on a certain item in a layout. However, I don't need to have a toolbar that can collapse when scrolling, so I don't see the use of the CoordinatorLayout . The problem is that calling setExpanded(false) on my AppBarLayout doesn't do anything. Is there a ... | android | 0 | 2020-01-25T17:24:39.327Z | 2,020 | 1 | 17 | 5 | 101 | 1 | 575 | 74 | 1 | 0 | false | false | false | false | false | false | zero |
59,911,733 | Android Studio GUI components missing in palette | <p>I couldn't find most of the GUI components in the palette, like Textfields... I haven't installed all of the sdk tools but I would appreciate if someone would tell me the required sdk tools that I need to download from sdk manager in order to be able to design GUI with all the components out there!</p>
<p>thanks in... | I couldn't find most of the GUI components in the palette, like Textfields... I haven't installed all of the sdk tools but I would appreciate if someone would tell me the required sdk tools that I need to download from sdk manager in order to be able to design GUI with all the components out there! thanks in advance | android|user-interface|components|textfield|palette | 1 | 2020-01-25T17:33:08.737Z | 2,020 | 1 | 17 | 5 | 780 | 1 | 317 | 48 | 5 | 0 | false | false | false | false | false | false | low |
59,911,741 | Retrofit-can not parse the data | <p>Can anyone help me? I make a call with Retrofit. The Strings in the response is on but I can not take the rates. The only class that successfully return me the rates is the Object but then I can not use it properly. I have use List, ArrayLists , Arrays of objects but still nothing. Any good idea?</p>
<pre><code> ... | Can anyone help me? I make a call with Retrofit. The Strings in the response is on but I can not take the rates. The only class that successfully return me the rates is the Object but then I can not use it properly. I have use List, ArrayLists , Arrays of objects but still nothing. Any good idea? [CODE] | java|android|retrofit | 1 | 2020-01-25T17:33:51.243Z | 2,020 | 1 | 17 | 5 | 93 | 1 | 304 | 31 | 3 | 1 | true | false | false | false | false | false | low |
59,911,763 | sdkmanager on macOS with Java11 java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema | <p>I cannot run <code>sdkmanager</code> on macOS with java11.</p>
<p>when I run <code>$ANDROID_HOME/tools/bin/sdkmanager</code> I have this error</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVer... | I cannot run sdkmanager on macOS with java11. when I run $ANDROID_HOME/tools/bin/sdkmanager I have this error [CODE] | android|macos|adb|java-11 | 5 | 2020-01-25T17:36:48.873Z | 2,020 | 1 | 17 | 5 | 440 | 0 | 116 | 99 | 4 | 1 | true | true | false | false | false | false | low |
59,911,770 | How to get around "connection to ui timed out"? | <p>I'm developing on rooted Android phone and need to execute few commands. <code>su</code> or <code>su -c</code> command gives me <code>connection to ui timed out</code>. Root privileges are granted to terminal emulator in settings.</p>
<p>What I can do ?</p> | I'm developing on rooted Android phone and need to execute few commands. su or su -c command gives me connection to ui timed out . Root privileges are granted to terminal emulator in settings. What I can do ? | android|terminal-emulator | 1 | 2020-01-25T17:38:12.480Z | 2,020 | 1 | 17 | 5 | 830 | 0 | 208 | 47 | 2 | 0 | false | true | false | false | false | false | low |
59,911,776 | Method does not override method from its super class & cannot resolve symbol | <p>In Override, I get a "Method does not override method from its super class" error. I also get "onResume cannot resolve method" error in super.onResume (); </p>
<p>It was working on MainActivity but when I move the code to Service class, I got this error.</p>
<p><a href="https://i.stack.imgur.com/Raub9.png" rel="no... | In Override, I get a "Method does not override method from its super class" error. I also get "onResume cannot resolve method" error in super.onResume (); It was working on MainActivity but when I move the code to Service class, I got this error. As you can see: [CODE] | java|android|overriding | 0 | 2020-01-25T17:38:59.007Z | 2,020 | 1 | 17 | 5 | 239 | 2 | 269 | 76 | 3 | 1 | true | false | false | false | false | false | zero |
59,911,782 | Strange crash only affecting Huawei devices - Android 10 - android.view.InflateException | <p>We have the following crash a LOT... it only comes from Huawei P30 devices running Android 10</p>
<pre><code>android.view.InflateException: Binary XML file line #67 in com.app.test:layout/view_flight_leg: Binary XML file line #67 in com.app.test:layout/view_flight_leg: Error inflating class com.app.test.views.Flig... | We have the following crash a LOT... it only comes from Huawei P30 devices running Android 10 [CODE] I cannot work out why this is the case, all other Android 10 (and lower) devices are ok. Update with setProgress() [CODE] | android|androidx|huawei-mobile-services | 3 | 2020-01-25T17:39:55.363Z | 2,020 | 1 | 17 | 5 | 601 | 1 | 222 | 88 | 3 | 2 | true | false | false | false | false | false | low |
59,911,852 | How to use Scanner to read data received continously over a period of time in android? | <p>I am new in dealing with android network requests .</p>
<p>I need to make a request to an api to access some data in Json format . I am able to receive data and save it in database with no problem but when I try to make multiple requests , I get errors with Scanner class ("api here supports multiple network request... | I am new in dealing with android network requests . I need to make a request to an api to access some data in Json format . I am able to receive data and save it in database with no problem but when I try to make multiple requests , I get errors with Scanner class ("api here supports multiple network requests"). Here i... | java|android | 1 | 2020-01-25T17:46:30.087Z | 2,020 | 1 | 17 | 5 | 21 | 0 | 842 | 86 | 2 | 2 | true | true | false | false | false | false | low |
59,912,052 | Java: Interaction/connection of Android UI (Android Studio) and java backend (model) (in comparison to JavaFX) | <p>I'm quite new to programming and started with Java, went to JavaFX as GUI development and just tackled Android App Development with Android Studio.</p>
<p>Coming from JavaFX and its concept of having the UI connected to a backend controller I am a bit confused about the (apprently) much more complex interaction of ... | I'm quite new to programming and started with Java, went to JavaFX as GUI development and just tackled Android App Development with Android Studio. Coming from JavaFX and its concept of having the UI connected to a backend controller I am a bit confused about the (apprently) much more complex interaction of Android UI ... | java|android|javafx | 0 | 2020-01-25T18:09:52.540Z | 2,020 | 1 | 18 | 5 | 189 | 2 | 2,205 | 110 | 3 | 6 | true | false | false | false | false | false | zero |
59,912,092 | How can I get the number of collections inside a document in Firestore? | <p>So I'm doind an android app and I need to get the number of users in the database to set the id for the next user that will register. My data model looks like this: </p>
<pre><code>app:
users:
1:
email:"dummy@gmail.com"
isTherapist: true
2:
email:"dummy@gmail.com"
... | So I'm doind an android app and I need to get the number of users in the database to set the id for the next user that will register. My data model looks like this: [CODE] So "app" is a collection, "users" is a document and inside it are collections tha represent each user. How can I get this done? | java|android|google-cloud-firestore | 1 | 2020-01-25T18:13:49.347Z | 2,020 | 1 | 18 | 5 | 42 | 1 | 299 | 71 | 3 | 1 | true | false | false | false | false | false | low |
59,912,251 | app shutsdown on onclick in androidstudio using kotlin | <p>am new in kotlin, i am just now making my first code app</p>
<p>there are 2 inputs & 1 button on which i set onclick sum
(i just drag & drop 2 inputs & 1 button, Don't have much knowledge because i have just started kotlin)</p>
<p><strong>Mainactivity.kt</strong></p>
<pre><code>package com.example.hel... | am new in kotlin, i am just now making my first code app there are 2 inputs & 1 button on which i set onclick sum (i just drag & drop 2 inputs & 1 button, Don't have much knowledge because i have just started kotlin) Mainactivity.kt [CODE] problem is when i click on sum button, my app automatically shuts down activity_... | android-studio|kotlin | 0 | 2020-01-25T18:28:49.783Z | 2,020 | 1 | 18 | 5 | 53 | 2 | 383 | 54 | 2 | 3 | true | false | false | false | false | false | zero |
59,912,314 | How to install an Android app on my device through macOS using Flutter | <p>After creating the release APK file into my app, I should follow the next lines to install an APK on a device:</p>
<ol>
<li>Connect your Android device to your computer with a USB cable.</li>
<li>Enter <code>cd <app dir></code> where <code><app dir></code> is your application directory.</li>
<li>Run flu... | After creating the release APK file into my app, I should follow the next lines to install an APK on a device: Connect your Android device to your computer with a USB cable. Enter cd <app dir> where <app dir> is your application directory. Run flutter install The problem I find, macOS doesn't recognize my device as ext... | android|flutter|installation|apk | 0 | 2020-01-25T18:38:30.967Z | 2,020 | 1 | 18 | 5 | 196 | 1 | 420 | 70 | 4 | 0 | false | false | false | false | false | false | zero |
59,912,458 | Reusing layout created on Fragment.onCreateView() to avoid inflation when showing multiple times | <p>I am using a DialogFragment to display a 'modal' bottom sheet menu (more info here: <a href="https://material.io/develop/android/components/bottom-sheet-dialog-fragment/" rel="nofollow noreferrer">https://material.io/develop/android/components/bottom-sheet-dialog-fragment/</a>). Since it contains a kind of context m... | I am using a DialogFragment to display a 'modal' bottom sheet menu (more info here: https://material.io/develop/android/components/bottom-sheet-dialog-fragment/ ). Since it contains a kind of context menu for the items contained in a RecyclerView, it may be shown multiple times during runtime. However, always DialogFra... | android|performance|android-fragments|layout-inflater | 0 | 2020-01-25T18:57:51.227Z | 2,020 | 1 | 18 | 5 | 478 | 1 | 1,081 | 96 | 4 | 2 | true | false | false | false | false | false | zero |
59,912,465 | How to rebrand a nativescript app for a new country with a different language? | <p>I have a nativescript app that I want to brand differently for each language, so I have a separate app for each language with different names and Icons and some minor differences in the codebase. But most of the codebase is the same so I would like to use git branches to be able to apply mutual changes to both codeb... | I have a nativescript app that I want to brand differently for each language, so I have a separate app for each language with different names and Icons and some minor differences in the codebase. But most of the codebase is the same so I would like to use git branches to be able to apply mutual changes to both codebase... | android|ios|git|nativescript | 0 | 2020-01-25T18:58:21.680Z | 2,020 | 1 | 18 | 5 | 39 | 0 | 991 | 78 | 4 | 0 | false | true | false | false | false | false | zero |
59,912,492 | How can I get search results from all of children at firebase database? | <p>In the database child product
and this child has several children.
I want to click search and have all children searched, not only one child.
For example:
The search is by description
or price and not on the name only.</p>
<pre><code>DatabaseReference reference = FirebaseDatabase.getInstance().getReference().chil... | In the database child product and this child has several children. I want to click search and have all children searched, not only one child. For example: The search is by description or price and not on the name only. [CODE] | android|firebase|firebase-realtime-database|firebaseui | 0 | 2020-01-25T19:02:16.637Z | 2,020 | 1 | 19 | 5 | 25 | 0 | 225 | 71 | 4 | 1 | true | true | false | false | false | false | zero |
59,912,503 | Admob ads not showing in the real device although its working on the Emulator | <p>I am having the Admob problem its working fine with test AppId and AdUnitId on emulator and real device.
both the devices show the "Nice Job" test Ads</p>
<p>After creating my AppId and My AdUnitId the emulator is showing next level ads and working
but the real device don't show anything. no adview bar in t... | I am having the Admob problem its working fine with test AppId and AdUnitId on emulator and real device. both the devices show the "Nice Job" test Ads After creating my AppId and My AdUnitId the emulator is showing next level ads and working but the real device don't show anything. no adview bar in the real device My c... | android|admob | 4 | 2020-01-25T19:03:41.537Z | 2,020 | 1 | 19 | 5 | 1,740 | 3 | 856 | 77 | 2 | 3 | true | false | false | false | false | false | low |
59,912,522 | HLS not working in exoplayer in the following code | <p>What changes do I need to make to the following code to get an m3u8 link to play?</p>
<p>I'm able to get regular MP4 videos to work, but not HLS. What would I need to do to make HLS links to work?</p>
<p>I would like to implement something like this, that allows for playback of different media sources. <a href="ht... | What changes do I need to make to the following code to get an m3u8 link to play? I'm able to get regular MP4 videos to work, but not HLS. What would I need to do to make HLS links to work? I would like to implement something like this, that allows for playback of different media sources. https://gist.github.com/navi25... | android-studio|http-live-streaming|exoplayer|exoplayer2.x|hls.js | 0 | 2020-01-25T19:05:35.627Z | 2,020 | 1 | 19 | 5 | 199 | 1 | 389 | 50 | 5 | 1 | true | false | false | false | false | false | zero |
59,912,550 | Dagger injected class keeps being null with Dagger | <p>I'm trying to inject an instance of <code>CacheManager</code> into <code>GetTodoRepository</code> which Dagger is probably successfull with doing since I'm not getting any dagger related errors. But when using <code>cacheManager</code> in <code>GetTodoRepository</code> I get a NullPointerException</p>
<pre><code>pu... | I'm trying to inject an instance of CacheManager into GetTodoRepository which Dagger is probably successfull with doing since I'm not getting any dagger related errors. But when using cacheManager in GetTodoRepository I get a NullPointerException [CODE] | java|android|dagger-2|dagger | 0 | 2020-01-25T19:08:54.160Z | 2,020 | 1 | 19 | 5 | 76 | 1 | 253 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
59,912,573 | How do I top start the hint text within an TextInputEditText in Android? | <p>I need [top|start] hint text an TextInputEditText..
I use <code>android:gravity="top|start"</code> hint text still in center, but the text content is correct (top start)</p>
<pre><code> <com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayo... | I need [top|start] hint text an TextInputEditText.. I use android:gravity="top|start" hint text still in center, but the text content is correct (top start) [CODE] | android|android-layout | -1 | 2020-01-25T19:11:21.757Z | 2,020 | 1 | 19 | 5 | 400 | 3 | 163 | 72 | 2 | 1 | true | false | false | false | false | true | negative |
59,912,690 | Using Custom Raw XML in Android | <p>I'm trying to use a custom raw xml file for loading unique styles onto GroundOverlays in a GoogleMap. The XML would make this easy as I could control the style of these overlays from the resource folder. However, When I try to get the XML using the getXML function I get an error,</p>
<p><code>val styles = context.... | I'm trying to use a custom raw xml file for loading unique styles onto GroundOverlays in a GoogleMap. The XML would make this easy as I could control the style of these overlays from the resource folder. However, When I try to get the XML using the getXML function I get an error, val styles = context.resources.getXml(R... | android|android-resources | 1 | 2020-01-25T19:27:49.623Z | 2,020 | 1 | 19 | 5 | 93 | 1 | 560 | 31 | 2 | 1 | true | false | false | false | false | false | low |
59,912,714 | user.get(position).getId() is not working | <p>I am developing a chat app and i want to get the unique id(like evrW...) of the user whenever their username is clicked. I am using getId() in model class but it is returning null.<br>
<a href="https://i.stack.imgur.com/z9BHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z9BHN.png" alt="enter im... | I am developing a chat app and i want to get the unique id(like evrW...) of the user whenever their username is clicked. I am using getId() in model class but it is returning null. [CODE] This is the part where I am getting error. [CODE] The getUsername() part is working but the key part is returning null. Please help. | android|firebase|firebase-realtime-database | 0 | 2020-01-25T19:31:12.397Z | 2,020 | 1 | 19 | 5 | 345 | 4 | 320 | 41 | 3 | 2 | true | false | false | false | false | false | zero |
59,912,846 | How to draw a canvas bitmap image at one of two locations randomly? | <p>How to draw a bitmap at either one of two random positions?
I wanna draw a bitmap image at either </p>
<ol>
<li>at a point which is in center from one side of screen and from center of the screen</li>
<li>or at center from other side</li>
</ol>
<p>like as show by the dots below </p>
<pre><code> _________________... | How to draw a bitmap at either one of two random positions? I wanna draw a bitmap image at either at a point which is in center from one side of screen and from center of the screen or at center from other side like as show by the dots below [CODE] Here's how tried to attain it but failed [CODE] actually I will use it ... | java|android|canvas|random|android-canvas | 0 | 2020-01-25T19:49:13.670Z | 2,020 | 1 | 19 | 5 | 112 | 0 | 459 | 67 | 5 | 2 | true | true | false | false | false | false | zero |
59,912,967 | Android Sqlite - exception: Index -1 requested, with a size of 32 --- due to large size? | <p>In my app I use a standard way of accessing my Sqlite database files. Everything is working fine for months, but for one specific row in the database there is a problem. The data in the column is 7.265.161 bytes long. </p>
<p>For reading this row I get I get the following error: </p>
<blockquote>
<p>Index -1 req... | In my app I use a standard way of accessing my Sqlite database files. Everything is working fine for months, but for one specific row in the database there is a problem. The data in the column is 7.265.161 bytes long. For reading this row I get I get the following error: Index -1 requested, with a size of 32 The standa... | android-sqlite | 0 | 2020-01-25T20:05:27.587Z | 2,020 | 1 | 20 | 5 | 36 | 1 | 562 | 88 | 1 | 1 | true | false | false | false | false | false | zero |
59,912,968 | ROOM Android SQLite database - Cannot create table | <p>I was trying few days to somehow successed creating the database and the table, but I just cant, and I need your help badly. My database is always empty, I dont even create the table. :/</p>
<p>Here are my classses:</p>
<p><strong>ENTITY:</strong></p>
<pre><code>@Entity (tableName = "users")
class User {
@Co... | I was trying few days to somehow successed creating the database and the table, but I just cant, and I need your help badly. My database is always empty, I dont even create the table. :/ Here are my classses: ENTITY: [CODE] DAO: [CODE] DATABASE: [CODE] REPOSITORY: [CODE] MAINACTIVITY (I'm getting the text from two edit... | java|android|android-room | 0 | 2020-01-25T20:05:41.617Z | 2,020 | 1 | 20 | 5 | 457 | 1 | 363 | 50 | 3 | 5 | true | false | false | false | false | false | zero |
59,913,001 | Kotlin: Can JSONObject parse custom object? | <p>I am trying to store Map object into android shared preferences for which below is the code:</p>
<pre><code>private fun setMap(context: Context, key: String, value: Map<String, Any>) {
val editor = PreferenceManager.getDefaultSharedPreferences(context).edit()
val jsonObject = JSONObject(value)... | I am trying to store Map object into android shared preferences for which below is the code: [CODE] If my Map is of type Map<String, String> or Map<"test","123"> then the above code works just fine and jsonObject on line 2 is {"test", "123"} . However if my Map contains any custom object such as Map<String, CustomObjec... | android|json|kotlin | 0 | 2020-01-25T20:10:19.560Z | 2,020 | 1 | 20 | 5 | 556 | 2 | 441 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
59,913,021 | How do I parse this API in Retrofit Android | <p>Need help parsing the API</p>
<p>API</p>
<p>{"timestamp": "1579830409", "bids": [["8361.15", "0.77921260"], ["8359.25", "0.00766313"], ["8359.10", "0.26755828"]], "asks": [["8360.15", "0.77920260"], ["8389.25", "0.00796313"], ["8358.10", "0.26785828"]]}</p>
<blockquote>
<p>In JSONViewer</p>
</blockquote>
<pre... | Need help parsing the API API {"timestamp": "1579830409", "bids": [["8361.15", "0.77921260"], ["8359.25", "0.00766313"], ["8359.10", "0.26755828"]], "asks": [["8360.15", "0.77920260"], ["8389.25", "0.00796313"], ["8358.10", "0.26785828"]]} In JSONViewer [CODE] I am unsure how to parse the array inside array part. Bids/... | android|api|parsing|retrofit | 0 | 2020-01-25T20:13:10.253Z | 2,020 | 1 | 20 | 5 | 33 | 1 | 368 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
59,913,094 | In what cases BitmapFactory.Options.inPreferredConfig not working? | <p>I'm trying to decode a bitmap from an <code>InputStream</code> using <code>BitmapFactory.decodeStream</code>, and I want to receive the bitmap in <code>ARGB_8888</code>, so I used <code>BitmapFactory.Options.inPreferredConfig = ARGB_8888</code> but some of my users somehow manage to load a bitmap in a different conf... | I'm trying to decode a bitmap from an InputStream using BitmapFactory.decodeStream , and I want to receive the bitmap in ARGB_8888 , so I used BitmapFactory.Options.inPreferredConfig = ARGB_8888 but some of my users somehow manage to load a bitmap in a different configuration ( RGBA_F16 ), which makes sense giving the ... | android|bitmap|android-bitmap | 1 | 2020-01-25T20:23:42.687Z | 2,020 | 1 | 20 | 5 | 154 | 1 | 659 | 66 | 3 | 0 | false | false | false | false | false | false | low |
59,913,198 | How to find out if a promo code for an in-app purchase has been redeemed? | <p>I had generated 100 codes for an in-app purchase from the Promotions section on the Google Play Console and have started sharing with some new users. </p>
<p>However, the Play Console just mentions that 10 out of 100 promo codes have been redeemed but does not reveal which those 10 promo codes are. I want to know s... | I had generated 100 codes for an in-app purchase from the Promotions section on the Google Play Console and have started sharing with some new users. However, the Play Console just mentions that 10 out of 100 promo codes have been redeemed but does not reveal which those 10 promo codes are. I want to know so that I can... | android|google-play|google-play-console|promotions | 4 | 2020-01-25T20:38:34.490Z | 2,020 | 1 | 20 | 5 | 587 | 1 | 651 | 73 | 4 | 1 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.