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,001,820 | Save to a file in phone | <p>This is the code for obtaining gyroscope and accelerometer readings; I need to store this data in a file in my smartphone.</p>
<p>The readings from accelerometer and gyroscope are obtained. They are displayed on my app. However, I am not able to add delay properly - resulting in inefficient results. How should I ad... | This is the code for obtaining gyroscope and accelerometer readings; I need to store this data in a file in my smartphone. The readings from accelerometer and gyroscope are obtained. They are displayed on my app. However, I am not able to add delay properly - resulting in inefficient results. How should I add the delay... | java|accelerometer|android-sensors|gyroscope | 1 | 2020-01-31T10:10:17.103Z | 2,020 | 1 | 10 | 4 | 46 | 0 | 364 | 23 | 4 | 1 | true | true | false | false | false | false | low |
60,001,903 | Android App gets crashed because of com.facebook.react.views.text.ReactTextView.<init> | <p>Crashlytic Crash Report - Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
com.facebook.react.views.text.ReactTextView.</p>
<pre><code>Caused by java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator(... | Crashlytic Crash Report - Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference com.facebook.react.views.text.ReactTextView. [CODE] | react-native|crashlytics|crashlytics-android | 0 | 2020-01-31T10:14:48.880Z | 2,020 | 1 | 10 | 4 | 643 | 0 | 186 | 86 | 3 | 1 | true | true | false | false | false | false | zero |
60,001,915 | Control web apps via Google Assistant | <p>I am evaluating whether to build a native Android app vs. a progressive web app (PWA). PWAs seem to gain a lot of traction recently, and especially on Android with Chrome (+ Desktop) seem to support a lot of functionalities and access to device APIs.</p>
<p>What I can't find anything about:</p>
<p>Is it possible t... | I am evaluating whether to build a native Android app vs. a progressive web app (PWA). PWAs seem to gain a lot of traction recently, and especially on Android with Chrome (+ Desktop) seem to support a lot of functionalities and access to device APIs. What I can't find anything about: Is it possible to integrate a PWA w... | android|actions-on-google|app-actions | 4 | 2020-01-31T10:15:36.730Z | 2,020 | 1 | 10 | 4 | 643 | 1 | 769 | 37 | 3 | 0 | false | false | false | false | false | false | low |
60,002,066 | How to download certain file using Dropbox API V2? | <p>I need to download certain file/folder from Dropbox using <code>DbxClientV2</code>. I know the path to this file and it will always be the same so I don't want let user to pick it. I've seen:<br></p>
<pre><code>public void onFileClicked(final FileMetadata file) { }
</code></pre>
<p>But it seems this isn't what I'm... | I need to download certain file/folder from Dropbox using DbxClientV2 . I know the path to this file and it will always be the same so I don't want let user to pick it. I've seen: [CODE] But it seems this isn't what I'm looking for and I don't know how to create FileMetadata object using file path. I can't find anythin... | java|android|download|dropbox|dropbox-api | 0 | 2020-01-31T10:26:46.620Z | 2,020 | 1 | 10 | 4 | 573 | 1 | 401 | 50 | 5 | 1 | true | false | false | false | false | false | zero |
60,002,167 | Subscription upgrade strange behaviour | <p>I have integrated google subscription in my app with few subscription based products.
In my all products i have added 14 days free trial period.
So now what making me feel strange is,
First time user buys one subscription and starts his 14 days free trial period.Until this seems all fine.
Now when i am trying to upg... | I have integrated google subscription in my app with few subscription based products. In my all products i have added 14 days free trial period. So now what making me feel strange is, First time user buys one subscription and starts his 14 days free trial period.Until this seems all fine. Now when i am trying to upgrad... | android|in-app-purchase|in-app-billing|subscription|google-developers-console | 0 | 2020-01-31T10:32:22.937Z | 2,020 | 1 | 10 | 4 | 46 | 0 | 605 | 38 | 5 | 1 | true | true | false | false | false | false | zero |
60,002,292 | Function signature doesn't match called function, difference between const char[] and char*? | <p>I am using PubSubClient.h, as defined here: <a href="https://pubsubclient.knolleary.net/api.html" rel="nofollow noreferrer">https://pubsubclient.knolleary.net/api.html</a></p>
<p>The instance is created as the following:</p>
<pre><code>WiFiClientSecure secureCl;
PubSubClient mqttCl(secureCl);
</code></pre>
<p>PubSub... | I am using PubSubClient.h, as defined here: https://pubsubclient.knolleary.net/api.html The instance is created as the following: [CODE] PubSubClient has method called setCallBack , which takes in the parameter callback . PubSubClient setCallback (callback) callback : a pointer to a message callback function called whe... | c++|android-wifi | 0 | 2020-01-31T10:40:29.677Z | 2,020 | 1 | 10 | 4 | 124 | 2 | 818 | 92 | 2 | 4 | true | false | false | false | false | false | zero |
60,002,339 | Navigating to different activities in a list Cardview | <p>I have created a <code>recyclerview</code> with one <code>Cardview</code> that displays an array list and I want to set an <strong>onclick</strong> listener such that when I click on one <code>cardview</code> it navigates to different activities with different contents. </p> | I have created a recyclerview with one Cardview that displays an array list and I want to set an onclick listener such that when I click on one cardview it navigates to different activities with different contents. | java|android | 0 | 2020-01-31T10:43:22.580Z | 2,020 | 1 | 10 | 4 | 30 | 0 | 214 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
60,002,377 | Xamarin.Forms Responsive Design | <p>I made app functionalities , and now need to make the design. I'm searching for some goot design patterns to be more responsive for multiple devices.How to make the Xamarin.forms componenets(Grid, Layout, Labels , buttons ,Stacks) be more responsive in the Views. Any suggestions about good articals, books, tutorials... | I made app functionalities , and now need to make the design. I'm searching for some goot design patterns to be more responsive for multiple devices.How to make the Xamarin.forms componenets(Grid, Layout, Labels , buttons ,Stacks) be more responsive in the Views. Any suggestions about good articals, books, tutorials? | xamarin.forms|xamarin.android|xamarin.ios | 1 | 2020-01-31T10:46:01.843Z | 2,020 | 1 | 10 | 4 | 2,913 | 1 | 318 | 31 | 3 | 0 | false | false | true | false | false | false | low |
60,002,393 | Show Alertdialog in same activity | <p>I have <code>AlertDialog</code> but I want show in same activity. What should I add to the code below?</p>
<pre><code>new AlertDialog.Builder(ContactAlertDialogActivity.this)
.setTitle("Permission Required")
.setMessage(("To set a contact ringtone,Old Telephone Ringtones needs access... | I have AlertDialog but I want show in same activity. What should I add to the code below? [CODE] | android | 0 | 2020-01-31T10:47:01.243Z | 2,020 | 1 | 10 | 4 | 52 | 1 | 96 | 33 | 1 | 1 | true | false | false | false | false | false | zero |
60,002,490 | ArrayList of custom objects from Firestore added to Spinner | <p>New to all this....I have created the following code:</p>
<p>Custom Class Object</p>
<pre><code>public class Category {
private String documentID;
private int id;
private String description;
private boolean active;
private int sort;
public Category(){
//public no-arg constructor needed
}
public Category(int ... | New to all this....I have created the following code: Custom Class Object [CODE] } MainActivity Class [CODE] } Method from my DBHelper class (a general class object to read/write to the Firestore dBase) [CODE] And finally the activity_main XML [CODE] The issue is this code may populate the Spinner with Category objects... | android|object|arraylist|google-cloud-firestore | 0 | 2020-01-31T10:52:55.580Z | 2,020 | 1 | 10 | 4 | 131 | 2 | 683 | 59 | 4 | 4 | true | false | false | false | false | false | zero |
60,002,601 | React Native location permission doesn't work in Android 10 but does work in Android 9 | <p>Issue :
I'm using the react-native-permissions library in my react native app. The code was working perfectly fine in Android devices with OS 9 or below i.e, when prompted to access the device location and if the user grants it the location, the app has access to the device location.</p>
<p>But in Android 10, when ... | Issue : I'm using the react-native-permissions library in my react native app. The code was working perfectly fine in Android devices with OS 9 or below i.e, when prompted to access the device location and if the user grants it the location, the app has access to the device location. But in Android 10, when the locatio... | android|react-native|permissions | 1 | 2020-01-31T11:00:16.817Z | 2,020 | 1 | 11 | 4 | 1,767 | 1 | 797 | 86 | 3 | 0 | false | false | false | false | false | false | low |
60,002,608 | how i use two spinner in the same page | <pre><code>public class service extends AppCompatActivity implements AdapterView.OnItemSelectedListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_service);
Spinner spinner1 = findViewById(R.id... | [CODE] How can add another spinner in same page? | java|android|html|xcode|spinner | 0 | 2020-01-31T11:00:46.247Z | 2,020 | 1 | 11 | 4 | 117 | 2 | 48 | 38 | 5 | 1 | true | false | false | false | false | false | zero |
60,002,680 | No OpKernel was registered to support Op 'VarHandleOp' with these attrs. Registered devices: [CPU], Registered kernels: <no registered kernels> | <p>I am deploying my custom build tensorflow image classification model (.pb format) in Android Device. It takes the image but then it throws exception in run method and says: No OpKernel was registered to support Op 'VarHandleOp' with these attrs. Registered devices: [CPU], Registered kernels:
</p>
<pre><code> [[{... | I am deploying my custom build tensorflow image classification model (.pb format) in Android Device. It takes the image but then it throws exception in run method and says: No OpKernel was registered to support Op 'VarHandleOp' with these attrs. Registered devices: [CPU], Registered kernels: [CODE] I am following the s... | python|android|tensorflow|deep-learning|conv-neural-network | 0 | 2020-01-31T11:05:06.793Z | 2,020 | 1 | 11 | 4 | 272 | 0 | 416 | 143 | 5 | 1 | true | true | false | false | false | false | zero |
60,002,703 | Android - Fragment launching but not showing content | <p>I'm trying to create an app with a drawer layout with multiple fragments in Android. When selecting an item from the drawer menu, my fragment launches but doesn't seem to show anything on screen.</p>
<p>It looks as if content_main.xml is always shown.</p>
<p>Any help appreciated, thanks.</p>
<p><strong>MainActivi... | I'm trying to create an app with a drawer layout with multiple fragments in Android. When selecting an item from the drawer menu, my fragment launches but doesn't seem to show anything on screen. It looks as if content_main.xml is always shown. Any help appreciated, thanks. MainActivity.java: [CODE] activity_main.xml [... | java|android|android-fragments|android-activity|android-fragmentactivity | 0 | 2020-01-31T11:06:53.237Z | 2,020 | 1 | 11 | 4 | 149 | 1 | 401 | 52 | 5 | 5 | true | false | false | false | false | false | zero |
60,002,715 | Xamarin app develpment set up for first run | <p>I am currently trying to make a cross platform app (IOS + Android) using xamarin.</p>
<p>My problem at the moment is setting up. As soon as I make the project I got TONS of errors, missing references and the likes. I've been patching them one by one but as soon as I do they seem to double up and I think I'm doing s... | I am currently trying to make a cross platform app (IOS + Android) using xamarin. My problem at the moment is setting up. As soon as I make the project I got TONS of errors, missing references and the likes. I've been patching them one by one but as soon as I do they seem to double up and I think I'm doing something wr... | visual-studio|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 0 | 2020-01-31T11:07:41.690Z | 2,020 | 1 | 11 | 4 | 99 | 1 | 479 | 43 | 5 | 0 | false | false | false | false | false | false | zero |
60,002,781 | How would I parameterise this endpoint using Retrofit please? | <p>Say I want to query an an API which has a server method for searching for a field containing certain text like so:</p>
<pre><code>http://server:2001/tms/xdata/Customer?$filter=contains(Name, 'Walker')
</code></pre>
<p>In Android Studio using Kotlin I would make an interface something like this:</p>
<pre><code> ... | Say I want to query an an API which has a server method for searching for a field containing certain text like so: [CODE] In Android Studio using Kotlin I would make an interface something like this: [CODE] which if I pass a single character 'e' as the searchTerm would give me: [CODE] However I need it to look like thi... | android|kotlin|retrofit | 0 | 2020-01-31T11:12:55.793Z | 2,020 | 1 | 11 | 4 | 110 | 1 | 545 | 61 | 3 | 4 | true | false | false | false | false | false | zero |
60,002,782 | How to retrieve specific data from json array via retrofit2 using gson parsing | <p>Here is the JSON response from a server (which i cannot change the structure of)</p>
<p>My issues are as follows:
1. The data changes based on the query so sometimes the Primary posts & Secondary Posts are an array and sometimes they are an object/ string.</p>
<ol start="2">
<li>How would i go about retrieving... | Here is the JSON response from a server (which i cannot change the structure of) My issues are as follows: 1. The data changes based on the query so sometimes the Primary posts & Secondary Posts are an array and sometimes they are an object/ string. How would i go about retrieving a value from Address without getting t... | android|json|arraylist|gson|retrofit2 | 2 | 2020-01-31T11:13:02.417Z | 2,020 | 1 | 11 | 4 | 51 | 0 | 716 | 78 | 5 | 4 | true | true | false | false | false | false | low |
60,002,829 | How to make an Intent activity from Fragment? (Error on Activity name) | <p>I'm trying to make an intent from fragment but getting an error. I see there are a lot of posts on this subject, but nothing resolves my problem. I already added <strong>context</strong> and <strong>getActivity()</strong>.</p>
<p>The error I am getting is on <code>RegistrationActivity (Unresolved reference)</code>.... | I'm trying to make an intent from fragment but getting an error. I see there are a lot of posts on this subject, but nothing resolves my problem. I already added context and getActivity() . The error I am getting is on RegistrationActivity (Unresolved reference) . How can I reference it? (android studio hints importing... | android|kotlin | 0 | 2020-01-31T11:16:05.763Z | 2,020 | 1 | 11 | 4 | 82 | 2 | 444 | 70 | 2 | 1 | true | false | false | false | false | false | zero |
60,002,836 | Flutter - passing data from child to parent and to another child | <p>I got a class Restrictions and 3 childs.</p>
<p>I want to pass data from CountryDropDown (and from FieldDropDown class which looks almost same, and from DateSelector class but thats maybe later) class to Restrictions and then to UserOffers (with updating List by tapping a button).</p>
<p>For now I can only define ... | I got a class Restrictions and 3 childs. I want to pass data from CountryDropDown (and from FieldDropDown class which looks almost same, and from DateSelector class but thats maybe later) class to Restrictions and then to UserOffers (with updating List by tapping a button). For now I can only define variable in Restric... | android|flutter|mobile|dart|constructor | 0 | 2020-01-31T11:16:43.680Z | 2,020 | 1 | 11 | 4 | 1,646 | 1 | 474 | 64 | 5 | 3 | true | false | false | false | false | false | zero |
60,002,924 | Xamarin Forms (C#) - Call to Navigation.PushModalAsync throws a Null Reference exception when called from Picker.SelectedIndexChanged | <p>I'm somewhat new to Xamarin Forms.
I'm trying to get a page to load when the Picker's selectedIndex changes.</p>
<p>Whenever I invoke the PushModalAsync line from Entry.TextChanged, I have no problems.
But when I try to invoke the same line from Picker.SelectedIndexChanged, I get a null reference error.
Here is the... | I'm somewhat new to Xamarin Forms. I'm trying to get a page to load when the Picker's selectedIndex changes. Whenever I invoke the PushModalAsync line from Entry.TextChanged, I have no problems. But when I try to invoke the same line from Picker.SelectedIndexChanged, I get a null reference error. Here is the code I hav... | c#|android|multithreading|visual-studio|xamarin.forms | 0 | 2020-01-31T11:22:38.803Z | 2,020 | 1 | 11 | 4 | 289 | 1 | 786 | 133 | 5 | 1 | true | false | false | false | false | false | zero |
60,002,943 | Disable or reducing app compression when using app bundle | <p>Users are getting errors with my app that would only be possible if some of the asset files were modified. I'm guessing this is happening because app bundle is performing some sort of lossy compression.</p>
<p>How can I turn that off?</p>
<p>edit: showing how I use uncompress:</p>
<pre><code>aaptOptions {
noC... | Users are getting errors with my app that would only be possible if some of the asset files were modified. I'm guessing this is happening because app bundle is performing some sort of lossy compression. How can I turn that off? edit: showing how I use uncompress: [CODE] The relevant files are inside [assets/]model/ I'v... | android|android-app-bundle | 0 | 2020-01-31T11:23:51.707Z | 2,020 | 1 | 11 | 4 | 739 | 2 | 496 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
60,003,018 | Job scheduler not working in background when app is killed in android version 7,8,9,10? | <p>I have used a timer to call a method at 15 minutes interval inside a job scheduler. But the job scheduler only running on the app running stage, if I kill the app the job scheduler was not worked. How to run the job scheduler to work after I killing my app?</p>
<p>here my code snippet</p>
<p>MainActivity.java</p>
... | I have used a timer to call a method at 15 minutes interval inside a job scheduler. But the job scheduler only running on the app running stage, if I kill the app the job scheduler was not worked. How to run the job scheduler to work after I killing my app? here my code snippet MainActivity.java [CODE] RecallMyServices... | android|android-service|android-9.0-pie|android-jobscheduler|android-10.0 | 1 | 2020-01-31T11:27:58.563Z | 2,020 | 1 | 11 | 4 | 1,433 | 1 | 361 | 87 | 5 | 3 | true | false | false | false | false | false | low |
60,003,035 | How to add space between bitmap of spinner selector and items of drop down list | <p>I have following spinner:</p>
<pre><code><Spinner
android:id="@+id/safe_network_time_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:background="@drawable/spinner_selector"
android:entries="@array/schedule_edit_days... | I have following spinner: [CODE] The spinner_selector is: [CODE] The dropdown list appears like this: When I select an item of the dropdown list, if it is too long it overlaps the arrov bitmap. how can I avoid this? | android|android-spinner | 1 | 2020-01-31T11:28:34.580Z | 2,020 | 1 | 11 | 4 | 296 | 1 | 215 | 79 | 2 | 2 | true | false | false | false | false | false | low |
60,003,039 | Why Android Navigation Component screen not go back to previous Fragment,but a method in onViewCreated of previos Fragment being called? | <p>I have 2 fragment call <code>CreateRoomFragment</code> and <code>DisplayPhotoFragment</code>,the navigation graph is look like this: </p>
<pre><code><navigation>
<fragment
android:id="@+id/createRoomFragment"
android:name="package.room.CreateRoomFragment"
android:label="Create a room"
t... | I have 2 fragment call CreateRoomFragment and DisplayPhotoFragment ,the navigation graph is look like this: [CODE] So when I wanna to move from CreateRoomFragment to DisplayPhotoFragment ,I use the do as below: [CODE] Doing this,I can navigate to DisplayPhotoFragment . But when I press back button of the device and als... | android|android-fragments|android-navigation|android-architecture-navigation|android-navigation-graph | 14 | 2020-01-31T11:28:59.940Z | 2,020 | 1 | 11 | 4 | 20,211 | 5 | 760 | 136 | 5 | 3 | true | false | true | true | true | false | medium |
60,003,077 | Kotlin Error : Dagger does not support injection into private fields private boolean isAppNull; | <p>I am getting this error on a field that is not private. I am trying to inject a boolean field in my MainActivity. This is how I defined my BaseApplication.</p>
<pre><code>class BaseApplication : DaggerApplication() {
override fun applicationInjector(): AndroidInjector<out DaggerApplication>? {
re... | I am getting this error on a field that is not private. I am trying to inject a boolean field in my MainActivity. This is how I defined my BaseApplication. [CODE] This is my AppComponent code : [CODE] This is my ActivityBuildersModule : [CODE] This is my AppModule [CODE] This is where I declared isAppNull [CODE] I cann... | android|kotlin|dagger-2|dagger | 1 | 2020-01-31T11:31:15.327Z | 2,020 | 1 | 11 | 4 | 431 | 0 | 420 | 95 | 4 | 5 | true | true | false | false | false | false | low |
60,003,147 | Flutter Error: FIROAuthProvider credentialWithProviderID:provider | <p>I have a flutter built app and would like to add firebase_auth and cloud_firestore. It used to work smoothly. Then I added the following two lines into pubspec.yaml:</p>
<pre><code> firebase_auth: ^0.15.4
cloud_firestore: ^0.13.0+1
</code></pre>
<p>and run packages get. Without doing anything else, if I run my ... | I have a flutter built app and would like to add firebase_auth and cloud_firestore. It used to work smoothly. Then I added the following two lines into pubspec.yaml: [CODE] and run packages get. Without doing anything else, if I run my project it gives the following error: [CODE] There is also no response on Flutter Do... | ios|firebase|android-studio|flutter|ios-simulator | 1 | 2020-01-31T11:35:39.817Z | 2,020 | 1 | 11 | 4 | 937 | 1 | 529 | 65 | 5 | 3 | true | false | false | false | false | false | low |
60,003,336 | How can I make specific text argument bold in android dialog fragment | <p>I would like to make the message arguments text bold given the following string file.how can i make it? </p>
<p>code is given blow: </p>
<pre><code><string name="meter_reading_dialog_message">Current Reading: %s m³ \nPrevious Reading: %s m³ \nConsumption Reading: %s m³</string>
override fun onCreateDi... | I would like to make the message arguments text bold given the following string file.how can i make it? code is given blow: [CODE] | android|kotlin|dialogfragment | 0 | 2020-01-31T11:47:36.660Z | 2,020 | 1 | 11 | 4 | 328 | 2 | 130 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
60,003,460 | How to get every change notification from couchbase server? | <p>Database.addChangeListener not work some time in Couchbase Lite 1.4.4 .</p>
<p>Below is my code</p>
<pre><code> database?.addChangeListener { event ->
//using for only changed documents
Log.e("changes",""+event.changes)
val query = database?.createAllDocumentsQuery()
query?.allDocsMode = Query.A... | Database.addChangeListener not work some time in Couchbase Lite 1.4.4 . Below is my code [CODE] Above code not fire sometime… What I should do if I want to get every change events from database? | android|couchbase|couchbase-lite | 0 | 2020-01-31T11:57:24.200Z | 2,020 | 1 | 11 | 4 | 149 | 1 | 194 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
60,003,488 | AndroidBiometricPrompt onAuthenticationError returns wrong error | <p>I implemented the new <strong>androidx.biometric:biometric:1.0.1</strong> as described <a href="https://developer.android.com/training/sign-in/biometric-auth#display-login-prompt" rel="nofollow noreferrer">here</a> and using <strong>setDeviceCredentialAllowed(true)</strong>. On API 29 it works correctly, on API <... | I implemented the new androidx.biometric:biometric:1.0.1 as described here and using setDeviceCredentialAllowed(true) . On API 29 it works correctly, on API < 29 when there aren't any device credentials set I would expect to get ERROR_NO_DEVICE_CREDENTIAL but I'm getting ERROR_USER_CANCELED , is this a library bug and ... | android|android-biometric-prompt | 0 | 2020-01-31T11:59:35.997Z | 2,020 | 1 | 11 | 4 | 184 | 0 | 617 | 64 | 2 | 1 | true | true | false | false | false | false | zero |
60,003,508 | Unable to pass data to a POST request using Volley library - Android | <p>I am trying to send a firebase push notification from my server. I trigger the .php file by sending a POST request using Volley like this:</p>
<pre><code>public static void dataPacket(Activity activity, Map<String, String> bundle)
{
new AsyncTask<String, Boolean, Boolean>()
{
... | I am trying to send a firebase push notification from my server. I trigger the .php file by sending a POST request using Volley like this: [CODE] This is my .php file in my server: [CODE] When I change this line [CODE] to this [CODE] everything works fine. But when I try to get the variable 'token' from POST request an... | php|android|http-post|android-volley | 0 | 2020-01-31T12:00:40.453Z | 2,020 | 1 | 12 | 4 | 101 | 1 | 794 | 68 | 4 | 5 | true | false | false | false | false | false | zero |
60,003,572 | How to create shadow drawable for button? | <p>I have tried by use of 9-patch drawable as layer list and also used gradient but in both cases i can not get accurate result, how can we design shadow drawable?</p>
<p><a href="https://i.stack.imgur.com/hkkI1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hkkI1.png" alt="enter image description ... | I have tried by use of 9-patch drawable as layer list and also used gradient but in both cases i can not get accurate result, how can we design shadow drawable? [CODE] | android|gradient|drawable|nine-patch | 0 | 2020-01-31T12:04:36.440Z | 2,020 | 1 | 12 | 4 | 121 | 3 | 167 | 41 | 4 | 1 | true | false | false | false | false | false | zero |
60,003,661 | Android Management API Enrollment "Invalid Token": How to debug? | <p>I'm trying to enroll a new device using the <a href="https://colab.research.google.com/github/google/android-management-api-samples/blob/master/notebooks/quickstart.ipynb" rel="nofollow noreferrer">quickstart colab guide</a>. I have successfully create an enterprise, a policy and an enrollment token. I can also succ... | I'm trying to enroll a new device using the quickstart colab guide . I have successfully create an enterprise, a policy and an enrollment token. I can also successfully query those using the Android Management API . However, enrollment is not working. Whenever I am scanning the associated QR code with a device, I get a... | android-management-api | 2 | 2020-01-31T12:10:18.860Z | 2,020 | 1 | 12 | 4 | 618 | 1 | 531 | 64 | 1 | 0 | false | false | false | false | false | false | low |
60,003,745 | EditText inputType for numbers in a tablet device, always showing extra keys | <p>I am setting an EditText for a tablet device that takes only numbers, but an extra keypad with mathematical operators and extra options appear to the left of the numbers: </p>
<p><a href="https://i.stack.imgur.com/YYpIR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YYpIR.png" alt="enter image d... | I am setting an EditText for a tablet device that takes only numbers, but an extra keypad with mathematical operators and extra options appear to the left of the numbers: My EditText is defined like this: [CODE] If I set the inputType to "numberPassword" I get my desired result: Running the app in a phone device, with ... | android|android-layout|android-edittext|android-textinputlayout | 2 | 2020-01-31T12:16:32.947Z | 2,020 | 1 | 12 | 4 | 172 | 1 | 613 | 76 | 4 | 1 | true | false | false | false | false | false | low |
60,004,000 | Timertask Run() method is not working for longer period like 2 hours | <p>created an own application which gets started automatically although it gets removed or closed by the user by using Timertask class run method but it is working fine for delay upto 15min and 20 min but the run action not works after delay of 2 hrs. Here are my codes</p>
<pre><code>timerTask = new LoginTimerTask(thi... | created an own application which gets started automatically although it gets removed or closed by the user by using Timertask class run method but it is working fine for delay upto 15min and 20 min but the run action not works after delay of 2 hrs. Here are my codes [CODE] | android|xamarin.android|timertask | 0 | 2020-01-31T12:32:13.253Z | 2,020 | 1 | 12 | 4 | 221 | 2 | 273 | 68 | 3 | 1 | true | false | false | false | false | false | zero |
60,004,140 | Page(s) contain a ViewGroup with a LayoutTransition (or animateLayoutChanges="true"), which interferes with the scrolling animation | <p>I use fragments with ViewPager2, and I notice two relevant IllegalStateExceptions in production (I can't reproduce it myself) occurring in devices like Xiaomi, Yulong, asus, vivo running Android 8 or 9:</p>
<pre><code>Fatal Exception: java.lang.IllegalStateException: Page can only be offset by a positive amount, no... | I use fragments with ViewPager2, and I notice two relevant IllegalStateExceptions in production (I can't reproduce it myself) occurring in devices like Xiaomi, Yulong, asus, vivo running Android 8 or 9: [CODE] and [CODE] While looking around, I passed by the following thread: https://issuetracker.google.com/issues/1295... | java|android|android-recyclerview|android-viewpager2 | 15 | 2020-01-31T12:41:22.117Z | 2,020 | 1 | 12 | 4 | 2,594 | 3 | 699 | 131 | 4 | 2 | true | false | false | false | true | false | medium |
60,004,199 | Creating a folder in Kotlin | <p>I am new to Kotlin and have read lots of tutorials, tried bunches of code but still can't understand how
to create a folder in internal storage. </p>
<p>I need to create a folder in which I wil put a json resource file. </p>
<p>Manifest file contains <code><uses-permission android:name="android.permission.WRI... | I am new to Kotlin and have read lots of tutorials, tried bunches of code but still can't understand how to create a folder in internal storage. I need to create a folder in which I wil put a json resource file. Manifest file contains <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> and <uses... | android|kotlin | 9 | 2020-01-31T12:44:20.243Z | 2,020 | 1 | 12 | 4 | 11,528 | 4 | 590 | 27 | 2 | 1 | true | false | true | true | false | false | medium |
60,004,223 | Handle signed out state with WorkManager with dagger injection | <p>I have a pretty complicated dependency scenario. Currently I inject (indirectly) my database into a Worker via constructor injection. However when the user is logged out, getting a database will throw an exception, because the user id is required to access it. I see a few options:</p>
<ol>
<li>Provide the database ... | I have a pretty complicated dependency scenario. Currently I inject (indirectly) my database into a Worker via constructor injection. However when the user is logged out, getting a database will throw an exception, because the user id is required to access it. I see a few options: Provide the database as nullable. Canc... | android|dagger-2|android-workmanager | 0 | 2020-01-31T12:45:57.197Z | 2,020 | 1 | 12 | 4 | 46 | 0 | 679 | 62 | 3 | 0 | false | true | false | false | false | false | zero |
60,004,228 | How to make entire activity not respond to touches? | <p>I have tried setFlags method but it did not work.</p>
<p><strong>Use case</strong>: </p>
<p>To make entire activity not respond to user interaction (lets say, during an API call)</p>
<p><strong>Solution I found over the web:</strong> </p>
<pre><code>getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHA... | I have tried setFlags method but it did not work. Use case : To make entire activity not respond to user interaction (lets say, during an API call) Solution I found over the web: [CODE] Problem: If I execute the above code for an activity B , (My back stack is A -> B ) Touching the screen passes the events to activity ... | android | 0 | 2020-01-31T12:46:20.763Z | 2,020 | 1 | 12 | 4 | 43 | 1 | 408 | 51 | 1 | 1 | true | false | false | false | false | false | zero |
60,004,245 | How to parse the same key name as string and object for JSON parsing? | <p>Hi in the below response value is string and same value acts as a object .How to parse the json like this of situation in android </p>
<p>Can any one please help me how to resolve it .</p>
<p>For example value in pojo class i was defined as a string but after that loop was failing because in the next value is a ob... | Hi in the below response value is string and same value acts as a object .How to parse the json like this of situation in android Can any one please help me how to resolve it . For example value in pojo class i was defined as a string but after that loop was failing because in the next value is a object. How to run two... | android|json | 0 | 2020-01-31T12:47:25.233Z | 2,020 | 1 | 12 | 4 | 490 | 2 | 453 | 69 | 2 | 3 | true | false | false | false | false | false | zero |
60,004,262 | Firebase ServerTimestamp applies same timestamp for every country? | <p>does firebase <strong>servertimestamp</strong> applies same time session for every country which is generated by firebase server for example ...if an app is controlled from one nation then will the server applies that countries timestamp?</p> | does firebase servertimestamp applies same time session for every country which is generated by firebase server for example ...if an app is controlled from one nation then will the server applies that countries timestamp? | android|firebase|firebase-realtime-database | 3 | 2020-01-31T12:48:27.337Z | 2,020 | 1 | 12 | 4 | 133 | 1 | 221 | 66 | 3 | 0 | false | false | false | false | false | false | low |
60,004,393 | How to listen for lottie animation end from activity | <p>I have activity that contain fragment.
This fragment have a lottie animation with lottie_loop="false",
that means, once the animation finish first loop , the animation will be and.</p>
<p>I want to listen for this event(animation end) in activity that contain this fragment, but some this wrong with my code, and I h... | I have activity that contain fragment. This fragment have a lottie animation with lottie_loop="false", that means, once the animation finish first loop , the animation will be and. I want to listen for this event(animation end) in activity that contain this fragment, but some this wrong with my code, and I have white s... | java|android|lottie | 0 | 2020-01-31T12:56:34.337Z | 2,020 | 1 | 12 | 4 | 253 | 1 | 556 | 52 | 3 | 2 | true | false | false | false | false | false | zero |
60,004,526 | What is the best approach to handle Bluetooth streams in background using a repository pattern? | <p>I need a handler for Bluetooth connection with a frequency of 1Hz and using like a Repository pattern, save data in SQliteDB and display info on several views of the App. </p>
<p>My current choice is RxBluetooth + service, but I'm looking for other straight forward alternatives but without compromising performanc... | I need a handler for Bluetooth connection with a frequency of 1Hz and using like a Repository pattern, save data in SQliteDB and display info on several views of the App. My current choice is RxBluetooth + service, but I'm looking for other straight forward alternatives but without compromising performance. I saw there... | android|performance|bluetooth|rx-java|rx-android | 1 | 2020-01-31T13:04:19.133Z | 2,020 | 1 | 13 | 4 | 172 | 1 | 488 | 95 | 5 | 0 | false | false | false | false | false | false | low |
60,004,591 | Return data from retrofit onResponse | <p>Im doing a basic android app that performs a simple login againts an API. I need to return the received data but the retrofit onResponse method has void return type. My code is:</p>
<pre><code>package com.example.deberesloginjava.data;
import android.util.Log;
import com.example.deberesloginjava.data.APIServices.... | Im doing a basic android app that performs a simple login againts an API. I need to return the received data but the retrofit onResponse method has void return type. My code is: [CODE] I have found at least two questions like this and both have almost the same solution with callbacks but im not able to replicate it in ... | android|retrofit|retrofit2 | 2 | 2020-01-31T13:08:28.790Z | 2,020 | 1 | 13 | 4 | 4,734 | 2 | 347 | 36 | 3 | 1 | true | false | true | false | false | false | low |
60,004,592 | in-app versionCode does not reflect versionCode in Google Play Store | <p>We are currently using AppCenter.ms to build & distribute our app, and autoincrement our <code>versionCode</code> value. The autoincrement seemingly works fine, and increments on Android and propagates to the google play store correctly as in the screenshot:</p>
<p><a href="https://i.stack.imgur.com/huxNv.png" ... | We are currently using AppCenter.ms to build & distribute our app, and autoincrement our versionCode value. The autoincrement seemingly works fine, and increments on Android and propagates to the google play store correctly as in the screenshot: However, when using BuildConfig.VERSION_CODE to display in our app (for cu... | java|android|google-play|build.gradle|visual-studio-app-center | 0 | 2020-01-31T13:08:32.017Z | 2,020 | 1 | 13 | 4 | 285 | 0 | 1,235 | 68 | 5 | 1 | true | true | false | false | false | false | zero |
60,004,595 | Firebase realtime database returning null value | <pre><code>dbRef1 = database.getReference("/parkingLocation/marinParking/max");
dbRef2 = database.getReference("/parkingLocation/marinParking/curr");
...
ValueEventListener changeListener = new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
Log.d(TAG,"I... | [CODE] I am trying to retrieve data from firebase realtime database. I am using the above code to get the data from database, but I am receiving null value. I am getting the following Log 2020-01-31 18:28:29.831 28878-28878/com.example.parkings D/MarinParking: In change listener 2020-01-31 18:28:29.832 28878-28878/com.... | android|firebase|firebase-realtime-database | 0 | 2020-01-31T13:08:44.773Z | 2,020 | 1 | 13 | 4 | 744 | 2 | 794 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
60,004,656 | Load data from room database prior to api requests using Coroutines | <p>I need to achieve the following logic. When application starts, load userId from shared preferences, then load user object from Room database to finally be able to make Retrofit requests using access token from the user object.</p>
<p>Here is what I'm currently at.</p>
<p>Initialize user repository with Dagger at ... | I need to achieve the following logic. When application starts, load userId from shared preferences, then load user object from Room database to finally be able to make Retrofit requests using access token from the user object. Here is what I'm currently at. Initialize user repository with Dagger at application startup... | android|kotlin|retrofit2|android-room|kotlin-coroutines | 2 | 2020-01-31T13:13:25.137Z | 2,020 | 1 | 13 | 4 | 1,306 | 2 | 714 | 67 | 5 | 4 | true | false | false | false | false | false | low |
60,004,727 | Gradle Project sync failed. Osmdroid | <p>I have downloaded the Osmdroid project from Github, from here <a href="https://github.com/osmdroid/osmdroid" rel="nofollow noreferrer">https://github.com/osmdroid/osmdroid</a></p>
<p>When I open the osmdroid-master directory in Android Studio it attempts to sync but fails with the following error: Gradle Project sy... | I have downloaded the Osmdroid project from Github, from here https://github.com/osmdroid/osmdroid When I open the osmdroid-master directory in Android Studio it attempts to sync but fails with the following error: Gradle Project sync failed. [CODE] In idea.log there is: [CODE] I am on Ubuntu 19.04. How can I see which... | android|gradle|osmdroid | 1 | 2020-01-31T13:18:33.873Z | 2,020 | 1 | 13 | 4 | 451 | 1 | 365 | 36 | 3 | 2 | true | false | false | false | false | false | low |
60,004,741 | Can I use Maps URLs to display nearby places in my personal app? | <p>I am building an app that shows nearby place around the user location. I have found the Maps URLs which suggest that is possible to use them anywhere because they are cross-platform. After reading the docs seems that they work only inside the official google maps app and are not supposed to work with any other appli... | I am building an app that shows nearby place around the user location. I have found the Maps URLs which suggest that is possible to use them anywhere because they are cross-platform. After reading the docs seems that they work only inside the official google maps app and are not supposed to work with any other applicat... | android|google-maps|maps|google-maps-urls | 1 | 2020-01-31T13:19:26.597Z | 2,020 | 1 | 13 | 4 | 70 | 0 | 359 | 64 | 4 | 0 | false | true | false | false | false | false | low |
60,004,855 | How Capture image using camera 'Circle' overlay and Save it on path in Xamarin.forms (Android) | <p>I am new in xamarin.forms and i wants to make a app using <strong>xamarin.forms</strong> for capture a image and save in given path. i also want add <strong>Camera Overlay</strong> to crop image in <strong>Circle</strong> shape. I have found below sample project-</p>
<p>'<a href="https://github.com/CrossGeeks/Overl... | I am new in xamarin.forms and i wants to make a app using xamarin.forms for capture a image and save in given path. i also want add Camera Overlay to crop image in Circle shape. I have found below sample project- ' https://github.com/CrossGeeks/OverlaySample ' and modified it to add button in common project and call ca... | c#|xamarin.forms|xamarin.android|camera-overlay | 0 | 2020-01-31T13:26:54.700Z | 2,020 | 1 | 13 | 4 | 901 | 1 | 529 | 94 | 4 | 0 | false | false | false | false | false | false | zero |
60,004,899 | How do I save a session for a specific time? | <p>I will describe the problem in order: </p>
<ul>
<li>passing the username and password to the server, </li>
<li>I get the session ID. </li>
<li>This ID is stored on the server for 30 minutes. </li>
<li><p>And on the app, I should have it stored for 30 minutes exactly from the moment I received it. </p>
<p>I have to... | I will describe the problem in order: passing the username and password to the server, I get the session ID. This ID is stored on the server for 30 minutes. And on the app, I should have it stored for 30 minutes exactly from the moment I received it. I have to transmit it for a certain period of time. With SharedPrefer... | android | 0 | 2020-01-31T13:30:06.333Z | 2,020 | 1 | 13 | 4 | 45 | 1 | 527 | 44 | 1 | 0 | false | false | false | false | false | false | zero |
60,005,065 | Google Ad Manager - Failed to load ad by using unit id (ERROR - "ad failed to load 1") | <p>I have created ad unit id for native ad style in ad manager, when I m trying to load my ad in the android app it's not loading ads and it shows "ad failed to load 1".
But when I used google test ad unit id it's working properly and all ads are loaded
I have created an ad unit id using <a href="https://support.google... | I have created ad unit id for native ad style in ad manager, when I m trying to load my ad in the android app it's not loading ads and it shows "ad failed to load 1". But when I used google test ad unit id it's working properly and all ads are loaded I have created an ad unit id using https://support.google.com/admanag... | java|android|google-ad-manager | 0 | 2020-01-31T13:42:00.753Z | 2,020 | 1 | 13 | 4 | 169 | 2 | 342 | 86 | 3 | 0 | false | false | false | false | false | false | zero |
60,005,152 | Cannot use same BindingAdapter on two different views | <p>I wrote a custom <a href="https://developer.android.com/reference/android/databinding/BindingAdapter" rel="nofollow noreferrer">BindingAdapter</a> for when the close icon on a <a href="https://material.io/develop/android/components/chip/" rel="nofollow noreferrer">Chip</a> is being clicked:</p>
<pre><code>@BindingAd... | I wrote a custom BindingAdapter for when the close icon on a Chip is being clicked: [CODE] I bind it in my layout like this: [CODE] When I only bind 1 chip (like above), all works fine. When I also bind the 2nd chip like: [CODE] the app doesn't build anymore due to a databinding error: com/example/playground/databindin... | android|kotlin|android-databinding | 4 | 2020-01-31T13:47:01.100Z | 2,020 | 1 | 13 | 4 | 731 | 2 | 430 | 53 | 3 | 3 | true | false | false | false | false | false | low |
60,005,160 | MutableLiveData setValue: Unexpected behavior in Activity's onCreate | <p>I'm toying with MutableLiveData's methods to figure out what triggers the observer and what doesn't.</p>
<p>Right now, I have this Activity:</p>
<pre><code>class ActivityA : AppCompatActivity() {
private val liveData = MutableLiveData<Int>().apply { this.value = 10 }
override fun onCreate(savedInstan... | I'm toying with MutableLiveData's methods to figure out what triggers the observer and what doesn't. Right now, I have this Activity: [CODE] The output is the following: [CODE] Shouldn't it be this? [CODE] | android|kotlin|android-lifecycle | 5 | 2020-01-31T13:47:27.830Z | 2,020 | 1 | 13 | 4 | 673 | 1 | 205 | 68 | 3 | 3 | true | false | false | false | false | false | low |
60,005,178 | Loading an animation during Retrofit 2 requests | <p>I am making an android application with a lot a activities and Retrofit 2 requests and I want to know what are the best practices for the loading animations during a request ?</p>
<p>Actually, I use my loading animation like this :</p>
<pre><code>public void getLogin() {
showDialog();
retrofitService... | I am making an android application with a lot a activities and Retrofit 2 requests and I want to know what are the best practices for the loading animations during a request ? Actually, I use my loading animation like this : [CODE] I know that ProcessDialog is deprecated since API26 so if you have better ideas, I'll ta... | android|dialog|retrofit2|loading | 2 | 2020-01-31T13:48:05.277Z | 2,020 | 1 | 13 | 4 | 477 | 0 | 480 | 47 | 4 | 1 | true | true | false | false | false | false | low |
60,005,380 | How to start EditText (Xamarin.Forms Entry) on number tab? | <p>I'm using an Xamarin.Forms.Entry control to capture input of a barcode which almost always starts from numbers but can contain text. I want to use standard android keyboard (Android.Text.InputTypes.ClassText) but I'd like to start the keyboard on the numbers tab (see picture). Is it possible to get this behaviour?</... | I'm using an Xamarin.Forms.Entry control to capture input of a barcode which almost always starts from numbers but can contain text. I want to use standard android keyboard (Android.Text.InputTypes.ClassText) but I'd like to start the keyboard on the numbers tab (see picture). Is it possible to get this behaviour? | android|xamarin.forms | 1 | 2020-01-31T14:01:26.440Z | 2,020 | 1 | 14 | 4 | 317 | 1 | 315 | 58 | 2 | 0 | false | false | false | false | false | false | low |
60,005,688 | RecyclerView inside LinearLayout and NestedScrollView - How to scroll to top of item on a certain position? | <p>I implemented RecyclerView. I would like a view scroll to top of item on 5th position in RecyclerView. <code>scrollToPosition(5)</code> don't work </p>
<p>XML file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app=... | I implemented RecyclerView. I would like a view scroll to top of item on 5th position in RecyclerView. scrollToPosition(5) don't work XML file: [CODE] in Fragment: [CODE] | java|android|android-recyclerview|android-nestedscrollview | 1 | 2020-01-31T14:20:24.720Z | 2,020 | 1 | 14 | 4 | 103 | 1 | 170 | 107 | 4 | 2 | true | false | false | false | false | false | low |
60,005,721 | The password is invalid or the user does not have a password | <p>I'm trying to create a login and register system in Android Studio using Firebase. Registration works pretty well, user is created in Firebase successfully. But whenever I try to login it gives me this error "The password is invalid or the user does not have a password" even though the password I entered is the same... | I'm trying to create a login and register system in Android Studio using Firebase. Registration works pretty well, user is created in Firebase successfully. But whenever I try to login it gives me this error "The password is invalid or the user does not have a password" even though the password I entered is the same I ... | java|android|firebase|firebase-authentication | 1 | 2020-01-31T14:22:09.637Z | 2,020 | 1 | 14 | 4 | 194 | 0 | 623 | 60 | 4 | 2 | true | true | false | false | false | false | low |
60,005,741 | How to remove "android.hardware.location" permission request from ejected Expo project? | <p>I have an React Native Expo project that started out using the Expo "managed workflow". However, since then I have ejected out of the managed workflow (while still using some expo modules).</p>
<p>The issue I'm experiencing is that Expo seems to have added arbitrary permission requests to my Android app.
I must rem... | I have an React Native Expo project that started out using the Expo "managed workflow". However, since then I have ejected out of the managed workflow (while still using some expo modules). The issue I'm experiencing is that Expo seems to have added arbitrary permission requests to my Android app. I must remove this pa... | react-native|expo|android-permissions | 5 | 2020-01-31T14:23:34.177Z | 2,020 | 1 | 14 | 4 | 1,784 | 2 | 616 | 87 | 3 | 1 | true | false | false | false | false | false | low |
60,005,788 | Android : OutOfMemoryError Error while opening InfoWindow on Google maps | <p>I am using native android code in my react-native app to display google maps and having 200+ markers on google maps with clustering and trying to open info window on each marker i tap on. It works fine for 3-4 minutes but after that,OutOfMemoryError Exception occurs which leads to crash the app. Is there any solutio... | I am using native android code in my react-native app to display google maps and having 200+ markers on google maps with clustering and trying to open info window on each marker i tap on. It works fine for 3-4 minutes but after that,OutOfMemoryError Exception occurs which leads to crash the app. Is there any solution f... | android|google-maps|react-native|google-maps-markers | -1 | 2020-01-31T14:26:33.397Z | 2,020 | 1 | 14 | 4 | 31 | 1 | 332 | 72 | 4 | 0 | false | false | false | false | false | true | negative |
60,005,843 | How to set ReactNative app as default system app? | <p>Actually, I am working on a ReactNative app like TrueCaller.</p>
<p>The problem is how to show the received call in my app instead of the default system UI? </p>
<p>Regards</p> | Actually, I am working on a ReactNative app like TrueCaller. The problem is how to show the received call in my app instead of the default system UI? Regards | android|ios|reactjs|react-native|system-calls | 2 | 2020-01-31T14:29:49.583Z | 2,020 | 1 | 14 | 4 | 302 | 0 | 157 | 49 | 5 | 0 | false | true | false | false | false | false | low |
60,005,849 | Firebase dynamic links don't work on galaxy s8 and galaxy s9 | <p>I have a problem on galaxy s8 and galaxy s9 with dynamic links from firebase. On other android devices it works. A strange loading screen appears, then returns to the application from which there was an attempt to open the application. Anyone had a similar problem or potentially knows a solution? The application is ... | I have a problem on galaxy s8 and galaxy s9 with dynamic links from firebase. On other android devices it works. A strange loading screen appears, then returns to the application from which there was an attempt to open the application. Anyone had a similar problem or potentially knows a solution? The application is not... | android|firebase|dynamic-links | 2 | 2020-01-31T14:30:25.817Z | 2,020 | 1 | 14 | 4 | 198 | 1 | 429 | 60 | 3 | 0 | false | false | false | false | false | false | low |
60,005,851 | How to implement MediaPlayer onErrorListener in Kotlin | <p>I'm trying to implement a setOnErrorListener in a videoView using Kotlin.</p>
<p>I found this in android developer site <a href="https://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.html" rel="nofollow noreferrer">https://developer.android.com/reference/android/media/MediaPlayer.OnError... | I'm trying to implement a setOnErrorListener in a videoView using Kotlin. I found this in android developer site https://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.html I get stucked here: [CODE] The complete code: [CODE] | android|kotlin|android-mediaplayer|android-videoview | 2 | 2020-01-31T14:30:32.300Z | 2,020 | 1 | 14 | 4 | 973 | 2 | 252 | 54 | 4 | 2 | true | false | false | false | false | false | low |
60,005,943 | Xamarin Forms Set specific value in CollectionView | <p>I have a problem. I created a CollectionView with as content a List with Images. The myImage class looks like this:</p>
<pre><code>public class myImage
{
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
public string Type { get; set; }
[XmlIgnore]
... | I have a problem. I created a CollectionView with as content a List with Images. The myImage class looks like this: [CODE] Now in the CollectionView I also have a picker with a List with Sizes. That class looks like this: [CODE] What I want is that when the myImage.Type has a specific value, for example "type1", that t... | c#|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 1 | 2020-01-31T14:36:19.583Z | 2,020 | 1 | 14 | 4 | 570 | 1 | 779 | 50 | 5 | 3 | true | false | false | false | false | false | low |
60,006,000 | Cant retrieve document from firestore after move function to another activity | <p>In the following function, I am retrieving the user information (username and bio) from firebase cloud database. However, the log says that there is no such document, which means that the document does not exist. In the main activity, the document was uploaded successfully to the database. Could this be that the ret... | In the following function, I am retrieving the user information (username and bio) from firebase cloud database. However, the log says that there is no such document, which means that the document does not exist. In the main activity, the document was uploaded successfully to the database. Could this be that the retrie... | java|android|firebase|google-cloud-firestore | 1 | 2020-01-31T14:40:37.937Z | 2,020 | 1 | 14 | 4 | 230 | 0 | 515 | 77 | 4 | 3 | true | true | false | false | false | false | low |
60,006,005 | How to send JSON data to API using HttpsURLConnection on Android? | <p>How can I send JSON data using HttpsURLConnection to my API ?, this is my code</p>
<pre><code> URL endpoint = new URL("https://api.url.com/api/token/");
// Create connection
HttpsURLConnection myConnection = (HttpsURLConnection) endpoint.openConnection();
myConnection.setRequestMethod("POST");
myC... | How can I send JSON data using HttpsURLConnection to my API ?, this is my code [CODE] I tried this way, but it doesn't work. Thank you | java|android|api|httpsurlconnection | 2 | 2020-01-31T14:40:54.103Z | 2,020 | 1 | 14 | 4 | 760 | 1 | 134 | 65 | 4 | 1 | true | false | false | false | false | false | low |
60,006,081 | How to do proper user authorization using Deezer Android SDK? | <p>I'm currently using the Deezel Android SDK to use audio playback for my FireTV. When trying to authorize users I keep getting an <code>W/System.err: com.deezer.sdk.network.connect.event.DialogError: Invalid SSL certificate received (SSL error: 3)</code> error. </p>
<p>Am I doing something incorrectly? I'm using Dee... | I'm currently using the Deezel Android SDK to use audio playback for my FireTV. When trying to authorize users I keep getting an W/System.err: com.deezer.sdk.network.connect.event.DialogError: Invalid SSL certificate received (SSL error: 3) error. Am I doing something incorrectly? I'm using DeezerConnect to authorize u... | java|android|authorization|deezer|amazon-fire-tv | 1 | 2020-01-31T14:46:16.513Z | 2,020 | 1 | 14 | 4 | 63 | 0 | 405 | 61 | 5 | 1 | true | true | false | false | false | false | low |
60,006,121 | Cannot access database on the main thread since it may potentially lock the UI for a long period of time error | <p>Whenever I want to start my "NotenActivity", it Shows me this error:</p>
<pre><code> Caused by: java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.
at androidx.room.RoomDatabase.assertNotMainThread(RoomDatabase.java:209)... | Whenever I want to start my "NotenActivity", it Shows me this error: [CODE] Here are my affected Activitys: [CODE] [CODE] [CODE] [CODE] If you Need any other activities just let me know. My "NotenActivity" is like my MainActivity. Thank you very much ! | java|android|compiler-errors|android-room|illegalstateexception | 1 | 2020-01-31T14:48:22.277Z | 2,020 | 1 | 14 | 4 | 1,665 | 2 | 252 | 110 | 5 | 5 | true | false | false | false | false | false | low |
60,006,139 | How can I do AsyncLayoutInflater onCreate | <p>The content part of the android application consisted of a lot of code structure. (3000 lines) I divided them into 3 viewstubs. I started 3 handler nested and then inflated the viewstubs.</p>
<p>But it did not accelerate again. it still opens very slowly. Now, while researching, I encountered asyntasklayoutinflater... | The content part of the android application consisted of a lot of code structure. (3000 lines) I divided them into 3 viewstubs. I started 3 handler nested and then inflated the viewstubs. But it did not accelerate again. it still opens very slowly. Now, while researching, I encountered asyntasklayoutinflater, but I thi... | java|android|performance|layout | 0 | 2020-01-31T14:49:05.467Z | 2,020 | 1 | 14 | 4 | 324 | 1 | 583 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
60,006,183 | How to make TextView have maxLines and if it doesn't fit expand horizontally? | <p>I don't want to use scrollView.The behavior I want is this:</p>
<p>Short Text:</p>
<p><a href="https://i.stack.imgur.com/lfuE1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lfuE1.png" alt="enter image description here"></a></p>
<p>Long text:</p>
<p><a href="https://i.stack.imgur.com/eUGp7.pn... | I don't want to use scrollView.The behavior I want is this: Short Text: Long text: | android-layout|android-constraintlayout|android-textview-autosize | 0 | 2020-01-31T14:52:08.840Z | 2,020 | 1 | 14 | 4 | 229 | 2 | 82 | 77 | 3 | 0 | false | false | false | false | false | false | zero |
60,006,217 | Samsung KNOX LICENSE_STATUS not broadcasted | <p>I use the latest (3.4.1) version of the KNOX libraries, and trying to activate my license.</p>
<p>My AndroidManifest entry:</p>
<pre><code> <receiver
android:name=".receiver.KnoxLicenseReceiver"
tools:ignore="ExportedReceiver">
<intent-filter>
... | I use the latest (3.4.1) version of the KNOX libraries, and trying to activate my license. My AndroidManifest entry: [CODE] And activating the license like this: [CODE] It shows the Toast that the license was activated successfully (and works fine — I can, for example, disable the camera), but the receiver is never cal... | android|android-manifest|samsung-knox | 0 | 2020-01-31T14:54:06.743Z | 2,020 | 1 | 14 | 4 | 570 | 1 | 429 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
60,006,360 | com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Not a JSON Array: {"type":"Point","coordinates":[-122.3964485,37.7912561]} | <p><strong>Not a JSON Array Exception using Mapbox API for Android</strong><br/>
I'm using Mapbox places plugin <code>implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places:0.6.0'</code> for android to search for a particular location.But when i run this app in my mobile I'm getting Runtime
Exception as <co... | Not a JSON Array Exception using Mapbox API for Android I'm using Mapbox places plugin implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places:0.6.0' for android to search for a particular location.But when i run this app in my mobile I'm getting Runtime Exception as com.google.gson.JsonSyntaxException: java.... | java|android|json|gson|mapbox-android | 0 | 2020-01-31T15:01:11.033Z | 2,020 | 1 | 15 | 4 | 514 | 1 | 483 | 144 | 5 | 2 | true | false | false | false | false | false | zero |
60,006,431 | Contact content provider observer not working stable in android | <p><strong>I am using a content provider to get all contact and using contact observer to check when this contact has changed, but it not working good</strong> </p>
<pre><code> @Override
public void onChange(boolean selfChange, Uri uri) {
super.onChange(selfChange, uri);
Log.e("MAS_CHECK", uri + "... | I am using a content provider to get all contact and using contact observer to check when this contact has changed, but it not working good [CODE] **so how I can make it work every time and stable, this is the code when change detected it should delete the old contact in the database then re-adding new data ** | android|android-contacts | 0 | 2020-01-31T15:05:00.090Z | 2,020 | 1 | 15 | 4 | 57 | 1 | 311 | 63 | 2 | 1 | true | false | false | false | false | false | zero |
60,006,480 | Firebase Phone Auth (Android) | <p>I developed an app but I have problem with Firebase Phone Auth.Firebase do not sending SMS.The following situations is observed while testing:</p>
<ul>
<li>SMS code delivered in Debug apk (in some cases)</li>
<li>SMS code is not delivered in Release apk</li>
</ul>
<p>Already added SHA-1 from Play Console,updated g... | I developed an app but I have problem with Firebase Phone Auth.Firebase do not sending SMS.The following situations is observed while testing: SMS code delivered in Debug apk (in some cases) SMS code is not delivered in Release apk Already added SHA-1 from Play Console,updated google-service.json file after adding SHA-... | java|android|firebase|firebase-authentication | 0 | 2020-01-31T15:07:35.610Z | 2,020 | 1 | 15 | 4 | 43 | 0 | 601 | 29 | 4 | 1 | true | true | false | false | false | false | zero |
60,006,482 | Retrofit 2 Returns Null When HTTP is 404 | <p>I have API which works well. I return some http codes from API such as 200, 404 etc.</p>
<p>Whenever I get 404 http code from API, retrofit doesnt give me the response that I posted from API. As an example, I changed 404 code to 200 from API file and retrofit showed me. When code is 404, retrofit desn't give me the... | I have API which works well. I return some http codes from API such as 200, 404 etc. Whenever I get 404 http code from API, retrofit doesnt give me the response that I posted from API. As an example, I changed 404 code to 200 from API file and retrofit showed me. When code is 404, retrofit desn't give me the response b... | android|retrofit | 1 | 2020-01-31T15:07:39.667Z | 2,020 | 1 | 15 | 4 | 258 | 0 | 550 | 40 | 2 | 3 | true | true | false | false | false | false | low |
60,006,519 | Firestore Query works from console but not from code | <p>As you can see below, I'm getting contradicting results. All help is appreciated.</p>
<p>Firebase Console Query</p>
<p><a href="https://i.stack.imgur.com/F0AA6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F0AA6.png" alt="enter image description here"></a></p>
<p>Firebase Console Query result... | As you can see below, I'm getting contradicting results. All help is appreciated. Firebase Console Query Firebase Console Query result Code [CODE] Code Logs | java|android|google-cloud-firestore | 0 | 2020-01-31T15:10:10.703Z | 2,020 | 1 | 15 | 4 | 226 | 2 | 156 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
60,006,538 | Saving Strings from Firestore in an ArrrayList in Java | <p>I'm currently trying to create an app which asks a question and shows the answer. I'm saving those as documents on Firestore ( every document in the collection has a string for a question and another one for an answer).
I'm trying to read every document in that collection ( with a for loop? ) and then save the answe... | I'm currently trying to create an app which asks a question and shows the answer. I'm saving those as documents on Firestore ( every document in the collection has a string for a question and another one for an answer). I'm trying to read every document in that collection ( with a for loop? ) and then save the answer i... | java|android|google-cloud-firestore | 1 | 2020-01-31T15:11:36.580Z | 2,020 | 1 | 15 | 4 | 62 | 3 | 628 | 54 | 3 | 2 | true | false | false | false | false | false | low |
60,006,595 | qt/qml android virtual keyboard z pozition | <p>I met the trouble with which I cant deal. I need to place the qml component (for example the Rectangle) above the native android soft keyboard. Is it real to do so?</p> | I met the trouble with which I cant deal. I need to place the qml component (for example the Rectangle) above the native android soft keyboard. Is it real to do so? | android|qt|keyboard|qml | -1 | 2020-01-31T15:14:56.063Z | 2,020 | 1 | 15 | 4 | 79 | 1 | 164 | 42 | 4 | 0 | false | false | false | false | false | true | negative |
60,006,719 | Why Samsung Galaxy S10 Plus skin looks odd in Android Studio? | <p>I downloaded Samsung Galaxy S10 Plus skin from samsung <a href="https://developer.samsung.com/galaxy-emulator-skin/overview.html#Featured-Devices" rel="nofollow noreferrer">official website</a> and installed it into Android Studio using <a href="https://developer.samsung.com/galaxy-emulator-skin/guide.html" rel="nof... | I downloaded Samsung Galaxy S10 Plus skin from samsung official website and installed it into Android Studio using their guide . However, the emulator looks quite different from photos of real Galaxy S10 Plus. As you can see there are no round corners, no front camera. Did I miss something or Samsung made a poor qualit... | android-studio|android-emulator|galaxy|samsung-galaxy | 3 | 2020-01-31T15:22:18.040Z | 2,020 | 1 | 15 | 4 | 551 | 1 | 327 | 61 | 4 | 0 | false | false | false | false | false | false | low |
60,006,874 | MediaRecorder for Recording Screen with output format Mpeg2_TS Media Server died error | <p>For screen capturing I followed the below link</p>
<p><a href="https://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/" rel="nofollow noreferrer">https://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/</a></p>
<p>I changed the output format to MPE... | For screen capturing I followed the below link https://www.truiton.com/2015/05/capture-record-android-screen-using-mediaprojection-apis/ I changed the output format to MPEG_2_TS. On starting the recording it gives the following error. W/IMediaDeathNotifier: media server died Below is how my mediaRecorder object looks l... | android|mediarecorder|android-mediarecorder | 1 | 2020-01-31T15:31:08.530Z | 2,020 | 1 | 15 | 4 | 132 | 0 | 357 | 86 | 3 | 1 | true | true | false | false | false | false | low |
60,007,126 | Repository onActive function not being called using Retrofit and LiveData | <p>I'm new to Android development and I'm trying to implement a login form. I have a login activity that has a field for a username and password: it is as follows:</p>
<pre><code>class LoginActivity : AppCompatActivity() {
lateinit var viewModel: MainViewModel
override fun onCreate(savedInstanceState: Bundle... | I'm new to Android development and I'm trying to implement a login form. I have a login activity that has a field for a username and password: it is as follows: [CODE] Once the button is clicked it calls the function loaduser in the view model. My MainViewModel is as follows (I think the error is here): [CODE] I'm pret... | android|kotlin|mvvm|retrofit|android-livedata | 1 | 2020-01-31T15:46:35.603Z | 2,020 | 1 | 15 | 4 | 149 | 0 | 832 | 73 | 5 | 4 | true | true | false | false | false | false | low |
60,007,174 | How to disable destroying of fragments in the new ViewPager2? | <p>In the <code>FragmentPagerAdapter</code> I can override <code>destroyItem</code> method and just remove line <code>super.destroyItem(container, position, object);</code> </p>
<pre><code> @Override
public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) {
//don't de... | In the FragmentPagerAdapter I can override destroyItem method and just remove line super.destroyItem(container, position, object); [CODE] Then fragments will no longer be deleted. But in the new FragmentStateAdapter I have not found the same method. | android|android-studio|android-viewpager2 | 0 | 2020-01-31T15:49:59.747Z | 2,020 | 1 | 15 | 4 | 764 | 1 | 249 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
60,007,257 | Why is my dynamic link not surviving the Play Store install? | <p>I am trying to set up dynamic links so that a link will deep link the user to the app if they already have it installed and the play store if they don't. I expect the link to survive the play store installation process and be sent to the launcher activity with the link. The dynamic link works when the app is already... | I am trying to set up dynamic links so that a link will deep link the user to the app if they already have it installed and the play store if they don't. I expect the link to survive the play store installation process and be sent to the launcher activity with the link. The dynamic link works when the app is already in... | android|firebase|firebase-dynamic-links | 5 | 2020-01-31T15:55:36.890Z | 2,020 | 1 | 15 | 4 | 1,024 | 0 | 1,269 | 60 | 3 | 2 | true | true | false | false | false | false | low |
60,007,306 | Trying to store and retrieve App data using SharedPreferences, but it's not returning desired data | <p>I am trying to retrieve the location for each specific post (Latitude and Longitude) and I am doing this the following way, see code below. I don't understand why I am getting this error:</p>
<blockquote>
<p>Can't convert object of type java.lang.String to type com.e.events.Model.Post</p>
</blockquote>
<p>I have... | I am trying to retrieve the location for each specific post (Latitude and Longitude) and I am doing this the following way, see code below. I don't understand why I am getting this error: Can't convert object of type java.lang.String to type com.e.events.Model.Post I have used this code in other Activities and it worke... | java|android|firebase|firebase-realtime-database | 1 | 2020-01-31T15:58:49.037Z | 2,020 | 1 | 15 | 4 | 87 | 1 | 1,701 | 98 | 4 | 3 | true | false | false | false | false | false | low |
60,007,307 | How to call function only when fragment is visible | <p>I have 5 fragments that call function from the activity in their onResume method. The problem is as follows: they call the function multiple times, but I want them to call it only one time. I am using the Navigation(NavHostFragment) and NavController to control the fragments. So my question is - Is there a way to ca... | I have 5 fragments that call function from the activity in their onResume method. The problem is as follows: they call the function multiple times, but I want them to call it only one time. I am using the Navigation(NavHostFragment) and NavController to control the fragments. So my question is - Is there a way to call ... | android|android-fragments|kotlin | 0 | 2020-01-31T15:58:57.277Z | 2,020 | 1 | 15 | 4 | 520 | 2 | 466 | 50 | 3 | 0 | false | false | false | false | false | false | zero |
60,007,355 | Block one time bottom navigation buttons: system and physical | <p>I need something to block "Recent apps" and "Home" buttons, but I don't need to block them completely, only to prevent an accidental exit from the application. Most often you could see a toast with a message "Click again to exit the app" in this case, so I want something similar.
So for "Back" button it will be rea... | I need something to block "Recent apps" and "Home" buttons, but I don't need to block them completely, only to prevent an accidental exit from the application. Most often you could see a toast with a message "Click again to exit the app" in this case, so I want something similar. So for "Back" button it will be really ... | java|android|android-navigation|android-homebutton|android-recents | 0 | 2020-01-31T16:01:25.613Z | 2,020 | 1 | 16 | 4 | 55 | 0 | 505 | 61 | 5 | 0 | false | true | false | false | false | false | zero |
60,007,433 | How to find origin of permission in merged manifest? | <p>I added some libraries to an Android app and after upload to the Google Play Store I got this warning:</p>
<p><a href="https://i.stack.imgur.com/pIs1e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pIs1e.png" alt="enter image description here"></a></p>
<p>The main manifest file does not declare... | I added some libraries to an Android app and after upload to the Google Play Store I got this warning: The main manifest file does not declare this permission, so I assume it comes from a library. I then check out the source code of the previous version, which did not use this permission. Looking at the merged manifest... | android|android-studio|android-permissions | 0 | 2020-01-31T16:06:40.083Z | 2,020 | 1 | 16 | 4 | 539 | 1 | 715 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
60,007,461 | How to get data from a server periodically in the background using Retrofit | <p>I am new to android and I am very confused about which method I should use. I am targeting API level 24 and above. I have used timertask but it turns off after sometimes and does not work on Vivo and Xiamo etc..</p>
<ol>
<li>Which method should I use for doing this task in the background (job scheduler, workmanager... | I am new to android and I am very confused about which method I should use. I am targeting API level 24 and above. I have used timertask but it turns off after sometimes and does not work on Vivo and Xiamo etc.. Which method should I use for doing this task in the background (job scheduler, workmanager, intent service,... | java|android|retrofit2|android-architecture-components|android-jobscheduler | 0 | 2020-01-31T16:08:53.603Z | 2,020 | 1 | 16 | 4 | 90 | 1 | 460 | 75 | 5 | 0 | false | false | false | false | false | false | zero |
60,007,492 | How can we get the activity for callback binding (in a fragment) in firebase phone authentication method | <p>Though I used this, getActivity(), getContext() & etc. But no luck.</p>
<pre><code>PhoneAuthProvider.getInstance().verifyPhoneNumber(
"91" + mobile,
60,
TimeUnit.SECONDS,
this,
mCallbacks
);
</code></pre> | Though I used this, getActivity(), getContext() & etc. But no luck. [CODE] | android|firebase|firebase-authentication|fragment | 0 | 2020-01-31T16:10:37.693Z | 2,020 | 1 | 16 | 4 | 106 | 0 | 74 | 104 | 4 | 1 | true | true | false | false | false | false | zero |
60,007,580 | scrollview not working... scrollview works only in half of the screen | <p>Only half of the screen is covered in scrollview and the attributes are reduced to half</p>
<p><img src="https://i.stack.imgur.com/43b4J.png" alt="Here is the sc of scrollview not working`"></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res... | Only half of the screen is covered in scrollview and the attributes are reduced to half [CODE] | android | 0 | 2020-01-31T16:16:02.127Z | 2,020 | 1 | 16 | 4 | 224 | 3 | 94 | 69 | 1 | 1 | true | false | false | false | false | false | zero |
60,007,640 | Abstract ViewModel Not Updating LiveData Android MVVM | <p>Hello Friends I have a abstract ViewModle <code>EmployeeViewModel</code> I have to reuse <code>EmployeeViewModel</code> and here it is</p>
<pre><code>abstract class EmployeeViewModel : ViewModel() {
/** Form fields */
var name = MutableLiveData("")
var username = MutableLiveDat... | Hello Friends I have a abstract ViewModle EmployeeViewModel I have to reuse EmployeeViewModel and here it is [CODE] Now I have created a child ViewModel called AddEmployeeViewModel this is used for adding the employee and here it is [CODE] when onClickAddEmployee(view: View) is called i can see that all the fields are ... | android|kotlin|android-databinding|android-mvvm | 1 | 2020-01-31T16:19:53.507Z | 2,020 | 1 | 16 | 4 | 751 | 1 | 490 | 53 | 4 | 4 | true | false | false | false | false | false | low |
60,007,762 | Activity has leaked IntentReceiver AutoNightModeManager registered on AlertDialog creation | <p>I have an activity with an <code>AlertDialog</code> created on the <code>onCreate</code> method. </p>
<p>When the activity is destroyed, I get this exception: </p>
<pre><code>E/ActivityThread: Activity com.materight.turkdroid.ui.activities.LoginActivity has leaked IntentReceiver androidx.appcompat.app.AppCompatDel... | I have an activity with an AlertDialog created on the onCreate method. When the activity is destroyed, I get this exception: [CODE] The line 74 where the error is thrown is where the dialog is created: [CODE] I've already tried to add pendingDialog.dismiss() in onDestroy , finish and finishAffinity methods with no resu... | android|android-intent|android-alertdialog|android-night-mode | 1 | 2020-01-31T16:29:40.963Z | 2,020 | 1 | 16 | 4 | 502 | 1 | 482 | 90 | 4 | 2 | true | false | false | false | false | false | low |
60,007,919 | Create new avd from command line in java | <p>I create the method with this: </p>
<pre><code>private boolean createAvd(Account account) throws InterruptedException, IOException {
boolean isCreated = true;
InputStreamReader inputStreamReader = null;
String commandToCreate ="echo no | avdmanager create avd -n "+account.getId()+" -k "+SYST... | I create the method with this: [CODE] and when I run the code I got this error: Command : avdmanager.bat Command : echo no | avdmanager create avd -n 15068894 -k "system-images;android-23;google_apis;x86" The exit excute value is :255 The syntax of the command is incorrect. failed to create the avd the following comman... | java|android|cmd|avd | 2 | 2020-01-31T16:39:38.177Z | 2,020 | 1 | 16 | 4 | 82 | 0 | 528 | 40 | 4 | 2 | true | true | false | false | false | false | low |
60,007,948 | How to modify Java / Swift Source code during build time | <p>Let say I have </p>
<pre><code>Code 1 // for customer A
Code 2 // for Customer B
code 3 // Shared code
</code></pre>
<p>I want to modify the source code during build time so that the source code for 1 or 2 is removed completely base on some build-time parameters. </p>
<p>any library out there?
I don't want t... | Let say I have [CODE] I want to modify the source code during build time so that the source code for 1 or 2 is removed completely base on some build-time parameters. any library out there? I don't want to use a bash script with 'sed'. Edit: This is for a iOS and Android building | java|android|ios|swift|feature-selection | 0 | 2020-01-31T16:41:54.730Z | 2,020 | 1 | 16 | 4 | 62 | 1 | 279 | 56 | 5 | 1 | true | false | false | false | false | false | zero |
60,008,094 | Kotlin App, click on button to open a new activity -> IllegalStateException: findViewById must not be null | <p>i am working with this bock "Learn Kotlin for Android Development" and reached chapter 9. I have now 2 activities. The <em>MainActivity</em> has a menue bar at the top with a info button. This button should open the <em>StatisticsActiv</em>.</p>
<p>The <em>MainActivity.kt</em> is using a function called <em>onOptio... | i am working with this bock "Learn Kotlin for Android Development" and reached chapter 9. I have now 2 activities. The MainActivity has a menue bar at the top with a info button. This button should open the StatisticsActiv . The MainActivity.kt is using a function called onOptionsItemSelected which should be called aft... | android|android-layout|kotlin|android-activity | 0 | 2020-01-31T16:50:48.277Z | 2,020 | 1 | 16 | 4 | 447 | 3 | 1,052 | 106 | 4 | 6 | true | false | false | false | false | false | zero |
60,008,153 | Property 'MediaScannerPlugin' does not exist on type 'CordovaPlugins' | <p>l am trying to use <a href="https://github.com/begrossi/MediaScannerPlugin#readme" rel="nofollow noreferrer">Media Scanner Plugin</a> . That Plugin is using to refreshing files folder after downloading . The problem is while i use this code below </p>
<pre><code> cordova.plugins.MediaScannerPlugin.scanFile(thi... | l am trying to use Media Scanner Plugin . That Plugin is using to refreshing files folder after downloading . The problem is while i use this code below [CODE] i have error under MediaScannerPlugin [CODE] Any idea please how to use this plugin ? | cordova-plugins|android-mediascanner | 0 | 2020-01-31T16:54:18.770Z | 2,020 | 1 | 16 | 4 | 249 | 1 | 245 | 69 | 2 | 2 | true | false | false | false | false | false | zero |
60,008,183 | is it possible to upload multiple files to firebase storage at once | <p>******EDIT******</p>
<p>Its turns out you can upload multiple files in one instance.Ive used the code below.All the files upload but for some reason in-app it only shows one item in the uploaded items recycleview. Can somebody just have a quick check through n pehaps explain why please</p>
<p>recycle_item.xml</p>
... | ******EDIT****** Its turns out you can upload multiple files in one instance.Ive used the code below.All the files upload but for some reason in-app it only shows one item in the uploaded items recycleview. Can somebody just have a quick check through n pehaps explain why please recycle_item.xml [CODE] photoUploader cl... | java|android|firebase|firebase-storage | 2 | 2020-01-31T16:56:44.680Z | 2,020 | 1 | 16 | 4 | 815 | 1 | 372 | 67 | 4 | 4 | true | false | false | false | false | false | low |
60,008,325 | How to programmaticaly change color of a color resource? | <p>I want to change a button that has a shape with a color set:</p>
<pre><code><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="@color/custom"/>
<corners android:bottomLeftRadius="10dp"/>
</shape>
</code></pre>
<p>and in... | I want to change a button that has a shape with a color set: [CODE] and in my colors list resources I have <color name="custom">#A281E0</color> . Is it possible to programmatically change the color of custom? Thanks in advance | java|android | 0 | 2020-01-31T17:05:35.157Z | 2,020 | 1 | 17 | 4 | 48 | 3 | 226 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
60,008,340 | Calling onClick without clicking | <p>Do you know how to call the <code>onClick</code> method assigned to a button in the XML layout file without clicking the button? I've tried the <code>performClick</code> method already.</p>
<pre><code>@Override
public boolean onKey(View view, int i, KeyEvent keyEvent) {
if(i == KeyEvent.KEYCODE_ENTER &&am... | Do you know how to call the onClick method assigned to a button in the XML layout file without clicking the button? I've tried the performClick method already. [CODE] | java|android | -3 | 2020-01-31T17:06:30.367Z | 2,020 | 1 | 17 | 4 | 468 | 3 | 166 | 32 | 2 | 1 | true | false | false | false | false | true | negative |
60,008,493 | Xamarin UI Tests: Running both iOS & Android tests with one build config | <p>So, I'm on a Mac, using Visual Studio and Xamarin UI Tests to run ui tests over a real iphone and a real android device. </p>
<p>I've got the <a href="https://docs.microsoft.com/en-us/appcenter/test-cloud/uitest/cheatsheet" rel="nofollow noreferrer">classic</a> test fixture setup with Android and IOS as different v... | So, I'm on a Mac, using Visual Studio and Xamarin UI Tests to run ui tests over a real iphone and a real android device. I've got the classic test fixture setup with Android and IOS as different variants for tests. [CODE] This is my device app config, where instead of using device IDs, I'm specifying the devices in my ... | android|ios|visual-studio-mac|xamarin.uitest | 0 | 2020-01-31T17:16:22.107Z | 2,020 | 1 | 17 | 4 | 276 | 1 | 1,108 | 72 | 4 | 2 | true | false | false | false | false | false | zero |
60,008,502 | Crash on device during language change in cocos2dJs cross platform game (in Android Platform) | <p>We are getting a crash whenever user changes device language & if game is in background. we are using cocos2dJs3.17.1 to build our games. It seems it is framework issue because to test this scenario we created new blank project & tried the same thing, it crashed.</p>
<p>Steps to produce the crash :</p>
<ol... | We are getting a crash whenever user changes device language & if game is in background. we are using cocos2dJs3.17.1 to build our games. It seems it is framework issue because to test this scenario we created new blank project & tried the same thing, it crashed. Steps to produce the crash : Open the game. Go to device... | javascript|java|android|game-engine|cocos2d-js | 2 | 2020-01-31T17:16:38.783Z | 2,020 | 1 | 17 | 4 | 153 | 1 | 627 | 93 | 5 | 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.