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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53,595,187 | How get camera orientation in NDK | <p>I'm getting the NDK_Image from ARCore on the NDK side of the project.
My AImage is coming rotated because of the camera orientation.</p>
<p><strong>How could I get the value of the camera orientation inside the NDK</strong>?</p>
<p>In the Camera NDK docs I found this <a href="https://developer.android.com/ndk/refe... | I'm getting the NDK_Image from ARCore on the NDK side of the project. My AImage is coming rotated because of the camera orientation. How could I get the value of the camera orientation inside the NDK ? In the Camera NDK docs I found this ACAMERA_JPEG_ORIENTATION It even give a sample of code: [CODE] But it don't explai... | android|android-ndk|android-camera2|arcore | 0 | 2018-12-03T13:47:25.517Z | 2,018 | 12 | 13 | 0 | 310 | 1 | 477 | 33 | 4 | 1 | true | false | false | false | false | false | zero |
53,747,206 | How to set up Google pay for API version 23? | <p>I want to set up Google pay API for Android version 23, so far I can set it up but only for API 24 or higher any idea how this the code am using a link.</p>
<pre><code>https://github.com/google-pay/android-quickstart/tree/master/app/src/main/java/com/google/android/gms/samples/wallet
</code></pre> | I want to set up Google pay API for Android version 23, so far I can set it up but only for API 24 or higher any idea how this the code am using a link. [CODE] | android|android-studio|payment|google-pay | 0 | 2018-12-12T16:19:41.327Z | 2,018 | 12 | 16 | 2 | 310 | 1 | 159 | 44 | 4 | 1 | true | false | false | false | false | false | zero |
53,797,592 | How to detect if the soft-keyboard is dismissed in adjustPan configuration (ONLY) in Android? | <p>Fellow Developers, I'm having a challenge that I cannot figure out how to fix and I'm aware that there are thousands of possible questions or hacks connected to my one:</p>
<ul>
<li><p><a href="https://stackoverflow.com/questions/6918364/edittext-does-not-trigger-changes-when-back-is-pressed">EditText does not trig... | Fellow Developers, I'm having a challenge that I cannot figure out how to fix and I'm aware that there are thousands of possible questions or hacks connected to my one: EditText does not trigger changes when back is pressed Android detect soft keyboard closing Detecting when user has dismissed the soft keyboard Catch s... | android|android-webview|android-softkeyboard|adjustpan | 0 | 2018-12-15T21:54:55.227Z | 2,018 | 12 | 21 | 5 | 566 | 1 | 1,990 | 93 | 4 | 2 | true | false | false | false | false | false | zero |
53,546,434 | Why a new project templates in Android Studio 3.2.1 does not use the AndroidX libraries? | <p>Google says </p>
<blockquote>
<p>"We recommend using the AndroidX libraries in all new projects. You
should also consider migrating existing projects to AndroidX as well."
<a href="https://developer.android.com/topic/libraries/support-library/" rel="nofollow noreferrer">source</a></p>
</blockquote>
<p>but th... | Google says "We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well." source but the Android Studio 3.2.1 still creates a new project templates which are supported by the historical "android.support.*" libraries. Why? [CODE] | android|android-studio|androidx | 4 | 2018-11-29T19:43:26.390Z | 2,018 | 11 | 19 | 3 | 822 | 1 | 305 | 88 | 3 | 1 | true | false | false | false | false | false | low |
53,744,016 | how to use create and open callback in Room database | <p>In the code, I got an instance from the Room.databaseBuilder, added a callback and lastly i built the database.
After a call to </p>
<pre><code>this.mMovieDatabase =
this.mMovieDBPersistentBuilder.fallbackToDestructiveMigration().build();
</code></pre>
<p>i expected the logs inside the callback to be called, but... | In the code, I got an instance from the Room.databaseBuilder, added a callback and lastly i built the database. After a call to [CODE] i expected the logs inside the callback to be called, but that did not happen. The logs inside the callback got called when the insertTuplePersistentDB() is called. my questions: 1-why ... | android|android-sqlite|android-room | 1 | 2018-12-12T13:22:39.723Z | 2,018 | 12 | 13 | 2 | 1,334 | 1 | 524 | 52 | 3 | 4 | true | false | false | false | false | false | low |
53,361,274 | How to organize the following simple Java code? | <p>As a beginner with Java and Android, I understand that Java allows you to write a "clean" code by separating into different files, classes, etc.</p>
<p>Now I have the following working code for an activity that displays my current location:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
priva... | As a beginner with Java and Android, I understand that Java allows you to write a "clean" code by separating into different files, classes, etc. Now I have the following working code for an activity that displays my current location: [CODE] How should I change it so that the MainActivity look cleaner, and that I have m... | java|android | 1 | 2018-11-18T13:16:07.123Z | 2,018 | 11 | 13 | 6 | 55 | 1 | 645 | 47 | 2 | 1 | true | false | false | false | false | false | low |
53,457,556 | Accessing Arraylist<String > from bind service returning empty | <p>I am accessing <code>marraylist</code> variable of service and although it is initialized by data from Firebase but returning empty <code>marraylist</code> in <code>Activity</code> this variable is initialized in service array by fetching data from Firebase database and in toast I am getting fetched data from Fireb... | I am accessing marraylist variable of service and although it is initialized by data from Firebase but returning empty marraylist in Activity this variable is initialized in service array by fetching data from Firebase database and in toast I am getting fetched data from Firebase to marraylist but when I am trying to a... | android|android-studio|arraylist|android-service-binding|nul | 0 | 2018-11-24T11:14:23.217Z | 2,018 | 11 | 11 | 5 | 55 | 1 | 459 | 62 | 5 | 2 | true | false | false | false | false | false | zero |
53,473,743 | what's wrong with my onDestroy? (old api camera) | <p>I've been writing a flashlight app as my very first app to learn the fundamentals, and although everything is working out fine, the flash doesn't work when I close the app (until I reboot or open some other camera app).</p>
<p>Is anything wrong with my onDestroy?</p>
<pre><code>@Override
public void onDestroy(... | I've been writing a flashlight app as my very first app to learn the fundamentals, and although everything is working out fine, the flash doesn't work when I close the app (until I reboot or open some other camera app). Is anything wrong with my onDestroy? [CODE] I'm using the old camera API as my only available device... | android-camera|ondestroy | 0 | 2018-11-26T01:37:35.110Z | 2,018 | 11 | 1 | 0 | 55 | 1 | 561 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
53,580,821 | Is it possible to have two same styles with different values? | <p>I need to have different styles in my app, because it has two languages, so the font and sizes are different.
Is it possible to have these two styles and the app use the style that is related to the selected language, and when the language is changed, it choose the other style?</p> | I need to have different styles in my app, because it has two languages, so the font and sizes are different. Is it possible to have these two styles and the app use the style that is related to the selected language, and when the language is changed, it choose the other style? | android|styles | 0 | 2018-12-02T13:40:30.597Z | 2,018 | 12 | 13 | 6 | 55 | 1 | 278 | 61 | 2 | 0 | false | false | false | false | false | false | zero |
53,590,416 | Firebase reg id for messagin isn't received on my phone,only on emulator | <p>I want to send push notifications to my android app.The problem is that when i run the app at my phone i can't get the reg id.But when i run it on my emulator runs perfectly and gets the regid.Any ideas?In case needed here is the code</p>
<p><strong>MyFirebaseInstanceID.java</strong></p>
<pre><code>@Override
p... | I want to send push notifications to my android app.The problem is that when i run the app at my phone i can't get the reg id.But when i run it on my emulator runs perfectly and gets the regid.Any ideas?In case needed here is the code MyFirebaseInstanceID.java [CODE] | android|firebase|notifications|firebase-cloud-messaging | 0 | 2018-12-03T09:02:24.760Z | 2,018 | 12 | 9 | 0 | 55 | 1 | 267 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
53,638,989 | How do I connect widget to my background service which is used to play music? | <p>I'm trying to build a basic music player but right now I'm stuck at making widget for it. Can someone tell me how do I connect widget to the background service? I'm using MediaBrowser,MediaController on the client side and MediaBrowserService,MediaSession in the background service.
So, to create a instance of MediaC... | I'm trying to build a basic music player but right now I'm stuck at making widget for it. Can someone tell me how do I connect widget to the background service? I'm using MediaBrowser,MediaController on the client side and MediaBrowserService,MediaSession in the background service. So, to create a instance of MediaCont... | android|android-service|android-service-binding | 0 | 2018-12-05T18:56:29.783Z | 2,018 | 12 | 18 | 2 | 55 | 1 | 633 | 77 | 3 | 0 | false | false | false | false | false | false | zero |
53,680,110 | My app to know if a file exist in a URL keeps stoping | <p>Im trying to write an app that puts a string in a textview if there is a file in a given url, this is the code and the crash info, what could be the error?.</p>
<pre><code>public class MainActivity extends AppCompatActivity {
String url = "https://images.pexels.com/photos/617278/pexels-photo-617278.jpeg?cs=srgb&am... | Im trying to write an app that puts a string in a textview if there is a file in a given url, this is the code and the crash info, what could be the error?. [CODE] --------- beginning of crash E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.android.archivoexiste, PID: 6160 java.lang.RuntimeException: Unabl... | android | 0 | 2018-12-08T06:21:52.197Z | 2,018 | 12 | 6 | 5 | 55 | 1 | 2,261 | 53 | 1 | 1 | true | false | false | false | false | false | zero |
53,682,730 | Android- what's the difference between (button.Click += event;) and a (button.SetOnClickListener(this))? | <p>They both do they same job- define what happens when clicking a button.
So, what's the real difference between the two?</p> | They both do they same job- define what happens when clicking a button. So, what's the real difference between the two? | android|xamarin|events|button|interface | 1 | 2018-12-08T12:53:44.273Z | 2,018 | 12 | 12 | 5 | 55 | 1 | 119 | 104 | 5 | 0 | false | false | false | false | false | false | low |
53,758,199 | how to define Android Oncreate optionmenu | <p>When i Override method auto generated bellow this code</p>
<pre><code> @Override
public boolean onCreateOptionsMenu(android.view.Menu menu) {
getMenuInflater().inflate(R.menu.main, (android.view.Menu) menu);
final MenuItem menuItem=menu.findItem(R.id.action_pending);
View actionview=MenuItem... | When i Override method auto generated bellow this code [CODE] how to solve Menu menu option menu error [CODE] | android | 0 | 2018-12-13T08:59:18.263Z | 2,018 | 12 | 8 | 3 | 55 | 1 | 109 | 41 | 1 | 2 | true | false | false | false | false | false | zero |
53,764,412 | Azure Jenkins Android SDK not found | <p>I´ve created a fresh jenkins server in azure, everything works fine so far, but the build cannot find the ANDROID_HOME enviroment variable even if it is set.</p>
<p><a href="https://i.stack.imgur.com/Lwx38.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lwx38.png" alt="ANDROID_HOME EnvVar"></a></... | I´ve created a fresh jenkins server in azure, everything works fine so far, but the build cannot find the ANDROID_HOME enviroment variable even if it is set. I´m really not sure whats going on here, because it seems to be that everything is set up correctly. Is it possible that jenkins is using a different user so the ... | android|azure|jenkins | 0 | 2018-12-13T14:46:16.117Z | 2,018 | 12 | 14 | 3 | 55 | 1 | 342 | 35 | 3 | 0 | false | false | false | false | false | false | zero |
53,586,111 | How can I utilize a persisted URI with apps that don't support ACTION_OPEN_DOCUMENT | <p>My app allows a user to select media (images, video, audio) from whatever is their favorite app for navigating these documents. I then store the URI to that image (rather than downloading the entire image) into a db. On restart of the app, I need to utilize these URIs to pull thumbnails and for images, the complete ... | My app allows a user to select media (images, video, audio) from whatever is their favorite app for navigating these documents. I then store the URI to that image (rather than downloading the entire image) into a db. On restart of the app, I need to utilize these URIs to pull thumbnails and for images, the complete ima... | android|uri|persistent-storage | 1 | 2018-12-03T00:50:29.417Z | 2,018 | 12 | 0 | 0 | 311 | 1 | 1,408 | 83 | 3 | 0 | false | false | false | false | false | false | low |
53,757,962 | Opencv findContour | <p>I am working on a project to detect wounds, the type of wounds are as follow in the attached named(original). </p>
<p>I had tried with the following method to detect the area of wound that is of interest. However, the result of the detection is not of what i want to achieved(see attached named(outputFromAboveMethod... | I am working on a project to detect wounds, the type of wounds are as follow in the attached named(original). I had tried with the following method to detect the area of wound that is of interest. However, the result of the detection is not of what i want to achieved(see attached named(outputFromAboveMethod)). The fina... | java|android|image|opencv|contour | 0 | 2018-12-13T08:43:29.747Z | 2,018 | 12 | 8 | 3 | 311 | 1 | 507 | 18 | 5 | 1 | true | false | false | false | false | false | zero |
53,356,229 | Android NDK Heap Allocation Issue | <p>I'm currently trying to figure out exactly how the Android Native heap works: I'm allocating some memory on the heap via new, then printing the address of the pointer to see where the memory was allocated. However, it seems that the address of the memory allocation doesn't follow a simple pattern, for example when I... | I'm currently trying to figure out exactly how the Android Native heap works: I'm allocating some memory on the heap via new, then printing the address of the pointer to see where the memory was allocated. However, it seems that the address of the memory allocation doesn't follow a simple pattern, for example when I tr... | android|android-ndk|heap-memory|new-operator | 0 | 2018-11-17T22:41:13.193Z | 2,018 | 11 | 22 | 5 | 56 | 1 | 961 | 33 | 4 | 2 | true | false | false | false | false | false | zero |
53,364,562 | So geocoder.getFromLocationName returns NULL / USE JSONObject | <p>Ok so we established that GEOCODER dose not work on some mobiles</p>
<p>So I fond this solution, from a guy called @Filip, which seems legit solution</p>
<pre class="lang-js prettyprint-override"><code>package com.something.something;
import android.os.AsyncTask;
import org.json.JSONException;
import org.json.JSO... | Ok so we established that GEOCODER dose not work on some mobiles So I fond this solution, from a guy called @Filip, which seems legit solution [CODE] And I have to run it from my MapsActivity by this coding this: [CODE] This is all fine, but what I didn't understand is what happens next ? I need those lat lng to proces... | android|google-maps|google-places-api|geocoding | 0 | 2018-11-18T19:17:11.033Z | 2,018 | 11 | 19 | 6 | 56 | 1 | 480 | 61 | 4 | 2 | true | false | false | false | false | false | zero |
53,423,716 | Published React Native app pulls changes from private repository | <p>I've encountered a very mysterious and baffling phenomenon in the process of publishing a React Native app to both the Apple App Store and the Google Play Store. It seems like witchcraft.</p>
<p><s>The app, which we have already published on both stores, <em>updates every time we push changes to our private reposi... | I've encountered a very mysterious and baffling phenomenon in the process of publishing a React Native app to both the Apple App Store and the Google Play Store. It seems like witchcraft. The app, which we have already published on both stores, updates every time we push changes to our private repository. EDIT : The ap... | android|ios|git|react-native|bitbucket | 0 | 2018-11-22T04:04:05.737Z | 2,018 | 11 | 4 | 3 | 56 | 1 | 1,829 | 64 | 5 | 0 | false | false | false | false | false | false | zero |
53,435,651 | Can i use table column in Sqlite database as a resource variable? | <p>i have some code like this</p>
<p>Orignally:</p>
<pre><code>String path = "android.resource://" + getPackageName() + "/" + R.raw.video;
videoView.setVideoURI(Uri.parse(path));
videoView.requestFocus();
videoView.start();
</code></pre>
<p>And the videoView works perfectly.</p>
<p>Then I ... | i have some code like this Orignally: [CODE] And the videoView works perfectly. Then I changed the code into [CODE] I stored "R.raw.video" into the COLUMN.Path in the database. It works. But why the videoView doesnt work? It told me "Cant play this video" | android|database|sqlite|android-studio | 0 | 2018-11-22T17:10:57.840Z | 2,018 | 11 | 17 | 3 | 56 | 1 | 255 | 65 | 4 | 2 | true | false | false | false | false | false | zero |
53,443,831 | Assign OnClickListener dynamically to custom layouts | <p>In Android, I have created an interface with 2 main columns. Both columns have custom objects that must act as buttons. These custom objects are based on a simple custom class (ButtonItem) that has 2 textviews. Also I have a layout that contains a LinearLayout (vertical) with the two TextViews inside. In the main vi... | In Android, I have created an interface with 2 main columns. Both columns have custom objects that must act as buttons. These custom objects are based on a simple custom class (ButtonItem) that has 2 textviews. Also I have a layout that contains a LinearLayout (vertical) with the two TextViews inside. In the main view,... | android|onclicklistener | 0 | 2018-11-23T09:25:54.837Z | 2,018 | 11 | 9 | 4 | 56 | 1 | 869 | 52 | 2 | 6 | true | false | false | false | false | false | zero |
53,461,307 | test fails when layout contains <merge> for my customView | <p>I have this @before unit-test</p>
<pre><code> @Before
public void initialize() {
View view =
LayoutInflater.from(RuntimeEnvironment.application)
.inflate(R.layout.account_list_item, null);
view.<AccountParticleDisc<Object>>findViewById(R.id.account_avatar)
.initial... | I have this @before unit-test [CODE] with this account_list_item.xml : [CODE] but when i refactor this out to this account_list_it.xml layout. [CODE] which include all the content of previous account_list_it.xml layout [CODE] but the root layout which is the ancestor of the custom respective view: public class MyView2 ... | android|layout|merge|layout-inflater | 0 | 2018-11-24T18:44:57.513Z | 2,018 | 11 | 18 | 5 | 56 | 1 | 418 | 57 | 4 | 6 | true | false | false | false | false | false | zero |
53,513,811 | Android Studio Settings Activity - Will it affect the performance of my app if used a regular Activity? | <p>So I was thinking of implementing a settings activity for my android app, where I can change the background and also import a picture from photos an then use it as a background.</p>
<p>Should I use the template for Settings Activity for android studio, or should it be my own way? Will it have impact to the performa... | So I was thinking of implementing a settings activity for my android app, where I can change the background and also import a picture from photos an then use it as a background. Should I use the template for Settings Activity for android studio, or should it be my own way? Will it have impact to the performance of the ... | android|android-studio | 0 | 2018-11-28T06:58:45.930Z | 2,018 | 11 | 6 | 2 | 56 | 1 | 687 | 103 | 2 | 0 | false | false | false | false | false | false | zero |
53,551,387 | Firebase cant successfully get to my Users Table in my android app | <p>After hours of figuring out how to integrate Firebase with my app I have finally managed to do so. Now, I have created a Users table (if I followed Google's documentation right) and added fields for my first user</p>
<p><a href="https://i.stack.imgur.com/AjjwR.png" rel="nofollow noreferrer"><img src="https://i.stac... | After hours of figuring out how to integrate Firebase with my app I have finally managed to do so. Now, I have created a Users table (if I followed Google's documentation right) and added fields for my first user Also, I set my rules as such: [CODE] This is how I have my sign in fragment: [CODE] When I get to my sign i... | android|firebase|google-cloud-firestore | 0 | 2018-11-30T04:44:55.353Z | 2,018 | 11 | 4 | 4 | 56 | 1 | 726 | 66 | 3 | 2 | true | false | false | false | false | false | zero |
53,565,459 | Intent to open SMS app to send SMS to any selected address? | <p>I know since KitKat the code to start the SMS app is the following:</p>
<pre><code> String default_sms_package_name = Telephony.Sms.getDefaultSmsPackage(context);
intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, ... | I know since KitKat the code to start the SMS app is the following: [CODE] But is there a way to preselect the SMS receiver like the SMS body? | android|sms | -1 | 2018-11-30T21:59:12.440Z | 2,018 | 11 | 21 | 4 | 56 | 1 | 142 | 59 | 2 | 1 | true | false | false | false | false | true | negative |
53,597,347 | Is it possible to get list of all the applications that user has installed? | <p>Several games and apps show adds like install the app to get rewards. How does that function? Can I get the list of all the apps that user has installed on his device including uninstalled apps, how?</p> | Several games and apps show adds like install the app to get rewards. How does that function? Can I get the list of all the apps that user has installed on his device including uninstalled apps, how? | android | 1 | 2018-12-03T15:57:41.010Z | 2,018 | 12 | 15 | 0 | 56 | 1 | 199 | 75 | 1 | 0 | false | false | false | false | false | false | low |
53,609,635 | Secure HereMaps keys | <p>I am using the HereMaps API to develop mobile applications. More specifically, I am using the REST API and not the Mobile SDK to carry my task.</p>
<p>Since I have to embed the App Id and App Code in the request, it makes it insecure as anyone can just take those 2 informations and use them for their own purposes.<... | I am using the HereMaps API to develop mobile applications. More specifically, I am using the REST API and not the Mobile SDK to carry my task. Since I have to embed the App Id and App Code in the request, it makes it insecure as anyone can just take those 2 informations and use them for their own purposes. I would lik... | android|here-maps-rest | 0 | 2018-12-04T09:31:00.043Z | 2,018 | 12 | 9 | 1 | 56 | 1 | 439 | 20 | 2 | 0 | false | false | false | false | false | false | zero |
53,663,208 | How do I get a new TextView text to appear every time a button is clicked | <p>I am new to this sorry. I am trying to create an Android Studio app that will have a different text appear for a question and answer TextView box field when a button is clicked. I was able to figure out how to get the text to change once, but how do I get it to cycle repeatedly every time the button is clicked?</p>
... | I am new to this sorry. I am trying to create an Android Studio app that will have a different text appear for a question and answer TextView box field when a button is clicked. I was able to figure out how to get the text to change once, but how do I get it to cycle repeatedly every time the button is clicked? Example... | android-studio|kotlin|textview|android | 0 | 2018-12-07T04:22:24.550Z | 2,018 | 12 | 4 | 4 | 56 | 1 | 590 | 73 | 4 | 2 | true | false | false | false | false | false | zero |
53,732,358 | Refreshing Data in a fragment using FragmentPagerAdapter | <p>I have three fragments in my Pager and i am adding some strings using Bundle
while instantiating each fragment in my adapter. I am using these strings to filter out the data that i am fetching from database.I tried simply notifydatasetchanged() method but its not working also i tried instantiating the adapter sepr... | I have three fragments in my Pager and i am adding some strings using Bundle while instantiating each fragment in my adapter. I am using these strings to filter out the data that i am fetching from database.I tried simply notifydatasetchanged() method but its not working also i tried instantiating the adapter seprately... | android|android-fragments|android-viewpager|fragmentpageradapter | 0 | 2018-12-11T21:07:44.123Z | 2,018 | 12 | 21 | 1 | 56 | 1 | 560 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
53,748,197 | How to crop image with known path based on user selection | <p>in my app I capture a photo using intent MediaStore.ACTION_IMAGE_CAPTURE and I save image into external storage that is private to my app. I also save the path to taken picture.
In next step I would like to crop 3 pictures from this photo but I cannot figure out how to do it. I found this article <a href="https://s... | in my app I capture a photo using intent MediaStore.ACTION_IMAGE_CAPTURE and I save image into external storage that is private to my app. I also save the path to taken picture. In next step I would like to crop 3 pictures from this photo but I cannot figure out how to do it. I found this article Crop an Image by passi... | android|crop | 0 | 2018-12-12T17:18:04.997Z | 2,018 | 12 | 17 | 2 | 56 | 1 | 586 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
53,798,432 | strike thru text doesn't save | <p>I'm in the process of making a grocery list app and I wrote the code to where when I click an item, it'll mark it off. </p>
<p>This is my code for that section: </p>
<pre><code>lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<... | I'm in the process of making a grocery list app and I wrote the code to where when I click an item, it'll mark it off. This is my code for that section: [CODE] It works exactly like i want but when I add another item after an item is marked off, all of the items that are marked off, the marks disappear. When I add an i... | java|android|paint | 0 | 2018-12-16T00:29:07.583Z | 2,018 | 12 | 0 | 6 | 56 | 1 | 459 | 29 | 3 | 1 | true | false | false | false | false | false | zero |
53,533,043 | sqlite database /retrofit (json object) | <p>im a newbie here. my problem goes with this; i like to send all my data created from my sqlite database and send it all to my custom api via json object. is this possible? if is it, can you give me reference on how to do it? because i can't find any solution for this. thanks you :)</p>
<p>This is my database from m... | im a newbie here. my problem goes with this; i like to send all my data created from my sqlite database and send it all to my custom api via json object. is this possible? if is it, can you give me reference on how to do it? because i can't find any solution for this. thanks you :) This is my database from my mobile iv... | android-sqlite|retrofit2|sqliteopenhelper | 1 | 2018-11-29T06:28:04.373Z | 2,018 | 11 | 6 | 3 | 312 | 1 | 347 | 39 | 3 | 0 | false | false | false | false | false | false | low |
53,725,683 | android RadioRealButton: How to implement complex layout? | <p>I need a RadioRealButtonGROUP (library: <a href="https://github.com/ceryle/RadioRealButton" rel="nofollow noreferrer">https://github.com/ceryle/RadioRealButton</a>)
with three buttons in the first row and two in the second.
How would I implement this?
If I put a LinearLayout inside of the RadioRealButton, the butto... | I need a RadioRealButtonGROUP (library: https://github.com/ceryle/RadioRealButton ) with three buttons in the first row and two in the second. How would I implement this? If I put a LinearLayout inside of the RadioRealButton, the buttons stop being clickable. | android|radio-button | 0 | 2018-12-11T13:59:11.940Z | 2,018 | 12 | 13 | 1 | 312 | 1 | 259 | 57 | 2 | 0 | false | false | false | false | false | false | zero |
53,524,650 | How to sign a string with .p12? | <p>I am implementing an SDK and I cant understand the following:</p>
<blockquote>
<p>A copy of the ID that is digitally signed with your private key.</p>
</blockquote>
<p>I have the .p12 file and the ID(String) that needs to be signed.</p>
<p>Can anyone help me how would i achieve this in Android/Java? </p>
<p>I'... | I am implementing an SDK and I cant understand the following: A copy of the ID that is digitally signed with your private key. I have the .p12 file and the ID(String) that needs to be signed. Can anyone help me how would i achieve this in Android/Java? I've never worked with Encryption and Decryption, So I am little cl... | java|android|signing | 0 | 2018-11-28T17:05:46.510Z | 2,018 | 11 | 17 | 2 | 568 | 1 | 384 | 31 | 3 | 0 | false | false | false | false | false | false | zero |
53,581,969 | How to detect new photos with workmanager | <p>Now I'm using Firebase for uploading photos and this working great and was able to rebuild this work to use workmanager, but I don't know how to pass content URI trigger to my workmanager builder. </p>
<pre><code>val dispatcher = FirebaseJobDispatcher(GooglePlayDriver(applicationContext))
val job = dispatcher.n... | Now I'm using Firebase for uploading photos and this working great and was able to rebuild this work to use workmanager, but I don't know how to pass content URI trigger to my workmanager builder. [CODE] Here is code what I use for workmanager and it works most of the time, but when I take the photo and delete this is ... | android|kotlin|android-workmanager | 6 | 2018-12-02T15:55:39.700Z | 2,018 | 12 | 15 | 6 | 1,592 | 1 | 602 | 41 | 3 | 3 | true | false | false | false | false | false | medium |
53,373,709 | How to grant permission to the TelephoneManager.class to read a file in Android-X86 | <p>I've built a custom AndroidX86 build for QA purposes where the <code>TelephonyManager.class</code> is reading the content of a file located in <strong>/storage/emulated/0/MY_DIR</strong>. The problem is when attempting to read from file a <code>"Permission Denied"</code> error occurs. Can anyone please tell me how ... | I've built a custom AndroidX86 build for QA purposes where the TelephonyManager.class is reading the content of a file located in /storage/emulated/0/MY_DIR . The problem is when attempting to read from file a "Permission Denied" error occurs. Can anyone please tell me how can I grant permission to the TelephonyManager... | android|permissions|android-x86 | 0 | 2018-11-19T11:30:25.770Z | 2,018 | 11 | 11 | 0 | 57 | 1 | 364 | 83 | 3 | 0 | false | false | false | false | false | false | zero |
53,384,981 | NullPointerException Error Attempt to invoke virtual method error on a null object reference | <p>I'm making a language learning program. What I'm working on is making a test for each group of words.
There is no compile error; however, according to my logcat, there is a nullpointerexception on my adapter. I'm not sure why this is happening. </p>
<p>My Adapter</p>
<pre><code>if (convertView == null) {
h... | I'm making a language learning program. What I'm working on is making a test for each group of words. There is no compile error; however, according to my logcat, there is a nullpointerexception on my adapter. I'm not sure why this is happening. My Adapter [CODE] } Activity which requires intent [CODE] xml code for item... | android|nullpointerexception|logcat | 0 | 2018-11-20T01:30:28.500Z | 2,018 | 11 | 1 | 1 | 57 | 1 | 713 | 92 | 3 | 3 | true | false | false | false | false | false | zero |
53,563,083 | Applying the rounded corners to a CardView inner element | <p>I have a CardView with an inner layout which has a different background color than the CardView. I want the inner layout to be aligned to one side of the CardView and take the 2 rounded corners of that side.</p>
<p><a href="https://i.stack.imgur.com/JI41G.gif" rel="nofollow noreferrer"><img src="https://i.stack.img... | I have a CardView with an inner layout which has a different background color than the CardView. I want the inner layout to be aligned to one side of the CardView and take the 2 rounded corners of that side. [CODE] | java|android|xml|android-cardview | 0 | 2018-11-30T18:37:31.450Z | 2,018 | 11 | 18 | 4 | 57 | 1 | 214 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
53,589,807 | Android Java, Setting text of a field outside of the application | <p>I'm currently writing an Android application that will allow a user to input the result of a scanned barcode into a field outside of the application.</p>
<p>The app will simply be a Floating Button that when pressed, will bring up a camera screen that scans and reads the barcode being pointed at, and save the resul... | I'm currently writing an Android application that will allow a user to input the result of a scanned barcode into a field outside of the application. The app will simply be a Floating Button that when pressed, will bring up a camera screen that scans and reads the barcode being pointed at, and save the result as an int... | java|android|google-chrome|zxing | 0 | 2018-12-03T08:15:11.677Z | 2,018 | 12 | 8 | 0 | 57 | 1 | 739 | 64 | 4 | 1 | true | false | false | false | false | false | zero |
53,615,943 | can not upload files to a webview | <p>I developed a mobile application on Android with a WebView view.
On the site I put in the webview there is a place where can upload a file except that with the webview when I click on the place to file a upload it does not matter.
while normally he should offer me to open the file manager but I have nothing.
Please ... | I developed a mobile application on Android with a WebView view. On the site I put in the webview there is a place where can upload a file except that with the webview when I click on the place to file a upload it does not matter. while normally he should offer me to open the file manager but I have nothing. Please hel... | android|android-webview | 1 | 2018-12-04T15:11:35.903Z | 2,018 | 12 | 15 | 1 | 57 | 1 | 391 | 33 | 2 | 2 | true | false | false | false | false | false | low |
53,671,456 | ListView Screenshot with custom view get off bounds | <p>I'm trying to screenshot programatically a ListView- both visible and non visible rows. My ListView contains rows with a custom graph that I've made- as subclass to <code>View</code> and a header title- <code>TextView</code>.</p>
<p>All works well when displaying, but when I'm generating the <strong>screenshot</stro... | I'm trying to screenshot programatically a ListView- both visible and non visible rows. My ListView contains rows with a custom graph that I've made- as subclass to View and a header title- TextView . All works well when displaying, but when I'm generating the screenshot all graphs are getting off bounds- all the botto... | java|android|listview|kotlin|android-bitmap | 0 | 2018-12-07T14:24:09.537Z | 2,018 | 12 | 14 | 4 | 57 | 1 | 788 | 51 | 5 | 3 | true | false | false | false | false | false | zero |
53,738,132 | Upgrade Pre-Populated Database without losing current data | <p>Currently I'm working on a android application that is shipped with a pre-populated database. The pre-populated db is in the assets folder and when it's first running db is copied to the device data folder. </p>
<p>The Database name is "Events.db" & there are 3 tables in that pre-populated database. They are EV... | Currently I'm working on a android application that is shipped with a pre-populated database. The pre-populated db is in the assets folder and when it's first running db is copied to the device data folder. The Database name is "Events.db" & there are 3 tables in that pre-populated database. They are EVENTS, USER_EVENT... | android|database|sqlite|android-sqlite | 0 | 2018-12-12T07:36:13.170Z | 2,018 | 12 | 7 | 2 | 57 | 1 | 1,075 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
53,761,227 | Simple Todo android app with mlab dont add or edit | <p>I created an application with android studio and connected it to mLab, the application is a simple task list (toDo App). I can see perfectly the records of the mLab database. The problem is that I can not edit or create new records. Deleting works perfects, If I delete them, they are removed from the app and mLab. I... | I created an application with android studio and connected it to mLab, the application is a simple task list (toDo App). I can see perfectly the records of the mLab database. The problem is that I can not edit or create new records. Deleting works perfects, If I delete them, they are removed from the app and mLab. I do... | java|android|mongodb|mlab | 0 | 2018-12-13T11:50:15.793Z | 2,018 | 12 | 11 | 3 | 57 | 1 | 460 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
53,482,471 | deleteAllFromRealm(RealmList : This method is only available in managed mode | <p>Android Studio 3.2. , Realm 4.1.0</p>
<p>I need to delete all items in list from Realm. </p>
<p>My snippet:</p>
<pre><code> public static RealmList<Merchant> getMerchantsRealmList() {
Realm realm = Realm.getDefaultInstance();
try {
RealmResults<Merchant> realmResults = r... | Android Studio 3.2. , Realm 4.1.0 I need to delete all items in list from Realm. My snippet: [CODE] But on runtime I get error in this line : [CODE] Here error: [CODE] | android|realm | 0 | 2018-11-26T13:45:42.927Z | 2,018 | 11 | 13 | 0 | 313 | 1 | 167 | 76 | 2 | 3 | true | false | false | false | false | false | zero |
53,714,920 | I have a crash when add DFP to my app android | <p>I try add DFP Banner Ads to my app , All steps have been applied in <a href="https://developers.google.com/ad-manager/mobile-ads-sdk/android/banner" rel="nofollow noreferrer">https://developers.google.com/ad-manager/mobile-ads-sdk/android/banner</a> .</p>
<p>but if I open my app it crash </p>
<p>crash:</p>
<pre>... | I try add DFP Banner Ads to my app , All steps have been applied in https://developers.google.com/ad-manager/mobile-ads-sdk/android/banner . but if I open my app it crash crash: [CODE] FragmentCategory.class [CODE] fragment_category.xml [CODE] please help me , I want enable DFP in my app thanks for all | android|android-studio|admob|google-dfp|google-ad-manager | 0 | 2018-12-10T22:54:21.290Z | 2,018 | 12 | 22 | 0 | 313 | 1 | 303 | 45 | 5 | 3 | true | false | false | false | false | false | zero |
53,761,363 | How to remove Handler from adapter | <p>I am using a function into an adapter and I added a Handler to do the refresh every 2s like below:</p>
<pre><code> final Handler refreshHandler = new Handler();
Runnable runnable = new Runnable() {
@Override
public void run() {
refreshHandler.postDelayed(this, 2000);
myfunction();
... | I am using a function into an adapter and I added a Handler to do the refresh every 2s like below: [CODE] When I'm not into the fragment where I deploy the adapter the handler is always reloading. So my question is, how to stop the handler every time I quit the fragment? | java|android|android-fragments|handler|android-adapter | 1 | 2018-12-13T11:57:48.847Z | 2,018 | 12 | 11 | 3 | 313 | 1 | 271 | 34 | 5 | 1 | true | false | false | false | false | false | low |
53,769,797 | Can Fresco's automatic resizing on big images (>2048px) be disabled/tuned? | <p>On images with a >2048px long dimension Fresco <a href="https://frescolib.org/docs/troubleshooting.html" rel="nofollow noreferrer">automatically applies a resizing</a>: </p>
<blockquote>
<p>Android cannot display images more than 2048 pixels long in either dimension. This is beyond the capability of the OpenGL re... | On images with a >2048px long dimension Fresco automatically applies a resizing : Android cannot display images more than 2048 pixels long in either dimension. This is beyond the capability of the OpenGL rendering system. Fresco will resize your image if it exceeds this limit. I understand that this is done as a workar... | android|image|fresco | 3 | 2018-12-13T20:45:17.820Z | 2,018 | 12 | 20 | 3 | 569 | 1 | 722 | 74 | 3 | 0 | false | false | false | false | false | false | low |
53,571,734 | Is it possible to add files to Android app folders in /data/data? | <p>I'm beginner programmer in general.
Is it possible to add files to Android app folders in /data/data using my app on a non-rooted device? I'm planning to make an app using C++ and I’m not using Android Studio IDE, my app should add whatsapp stickers to whatsapp.</p> | I'm beginner programmer in general. Is it possible to add files to Android app folders in /data/data using my app on a non-rooted device? I'm planning to make an app using C++ and I’m not using Android Studio IDE, my app should add whatsapp stickers to whatsapp. | android|file|root|whatsapp | 0 | 2018-12-01T14:25:14.707Z | 2,018 | 12 | 14 | 5 | 58 | 1 | 262 | 65 | 4 | 0 | false | false | false | false | false | false | zero |
53,627,975 | Gradle buildtypes override each other | <p>I want to set different values for a property depending on which buildType was chosen. But I realized by checking the gradle console that in configuration phase all 3 buildTypes are executed and the value of the last build remains in the property. I think that's not how it should work.
Did I do something wrong?</p>... | I want to set different values for a property depending on which buildType was chosen. But I realized by checking the gradle console that in configuration phase all 3 buildTypes are executed and the value of the last build remains in the property. I think that's not how it should work. Did I do something wrong? [CODE] ... | android|gradle|build.gradle | 1 | 2018-12-05T08:23:53.467Z | 2,018 | 12 | 8 | 2 | 314 | 1 | 698 | 37 | 3 | 2 | true | false | false | false | false | false | low |
53,689,601 | Sign custom buildtype with a generic debug keystore | <p>Is it possible to create a custom buildtype and use the debug's keystore to sign it? </p>
<pre><code>buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
// debug specific c... | Is it possible to create a custom buildtype and use the debug's keystore to sign it? [CODE] I tried setting debubbable true for my staging but did not work. I cannot use the initWith config because debug configs could interfere with my staging configs. I know I can create a signingConfig but this involves creating a se... | android|android-gradle-plugin|android-keystore|android-build-type | 1 | 2018-12-09T05:12:11.770Z | 2,018 | 12 | 5 | 6 | 314 | 1 | 396 | 51 | 4 | 1 | true | false | false | false | false | false | low |
53,772,434 | Handling access token expiry when internet is unstable | <p>I am using Retrofit2 as the HTTP client for Android. The app uses access-token and refresh-token for communicating with the backend. </p>
<p>Scenario 1: The access-token is expired, the api call fails with 401 error code, which then I use Authenticator for using the refresh-token to get a new pair of access-token a... | I am using Retrofit2 as the HTTP client for Android. The app uses access-token and refresh-token for communicating with the backend. Scenario 1: The access-token is expired, the api call fails with 401 error code, which then I use Authenticator for using the refresh-token to get a new pair of access-token and refresh-t... | android|retrofit2|android-authenticator | 2 | 2018-12-14T01:36:36.550Z | 2,018 | 12 | 1 | 4 | 314 | 1 | 1,287 | 54 | 3 | 1 | true | false | false | false | false | false | low |
53,389,981 | Is the Material Design NavigationView not yet compatible with AndroidX? | <p>I just converted my App from the support library to AndroidX. Everything compiles now and the App starts successfully. However one of my activities uses <code>com.google.android.material.navigation.NavigationView</code> which seems to still depend on the old support library. Specifically I see dependencies on the fo... | I just converted my App from the support library to AndroidX. Everything compiles now and the App starts successfully. However one of my activities uses com.google.android.material.navigation.NavigationView which seems to still depend on the old support library. Specifically I see dependencies on the following classes ... | android|dependencies|material-design|androidx | 3 | 2018-11-20T09:33:24.950Z | 2,018 | 11 | 9 | 1 | 4,666 | 1 | 704 | 71 | 4 | 2 | true | false | true | false | false | false | low |
53,367,435 | RecyclerView: No adapter attached; skipping layout No data showing | <p>It has no error but when I run the holder doesnt show and when I look in to the logcat there has an error RecyclerView: No adapter attached; skipping layout. Here is my code; I have added layout manager to my recyclerview but it still shows no adapter attached skipping layout.</p>
<p>Here is my fragment class and a... | It has no error but when I run the holder doesnt show and when I look in to the logcat there has an error RecyclerView: No adapter attached; skipping layout. Here is my code; I have added layout manager to my recyclerview but it still shows no adapter attached skipping layout. Here is my fragment class and adapter clas... | android|android-cardview | 0 | 2018-11-19T02:13:34.690Z | 2,018 | 11 | 2 | 0 | 59 | 1 | 421 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
53,522,757 | Where are data from getPurchases() stored (when device is offline)? | <p>So there is this function <a href="https://developer.android.com/google/play/billing/billing_reference#getPurchases" rel="nofollow noreferrer">https://developer.android.com/google/play/billing/billing_reference#getPurchases</a></p>
<p>and apparently it's able to return me the valid subscriptions even when the user... | So there is this function https://developer.android.com/google/play/billing/billing_reference#getPurchases and apparently it's able to return me the valid subscriptions even when the user is offline. Can I rely on this method to always tell be which subscriptions are valid? Or is the data stored somewhere in some cache... | android|subscription|android-billing | 0 | 2018-11-28T15:21:16.580Z | 2,018 | 11 | 15 | 2 | 59 | 1 | 542 | 67 | 3 | 0 | false | false | false | false | false | false | zero |
53,574,948 | Notification couldn't disappear after click, and Notification setAutoCancel(true) doesn't work | <p>Notification couldn't disappear after click, and Notification setAutoCancel(true) doesn't work. The following is my code:</p>
<pre><code>NotificationManager notifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
NotificationCompat.Builder builder = new NotificationCompat.Builder(MainA... | Notification couldn't disappear after click, and Notification setAutoCancel(true) doesn't work. The following is my code: [CODE] | android|android-studio|android-notifications | 0 | 2018-12-01T20:53:52.793Z | 2,018 | 12 | 20 | 5 | 59 | 1 | 128 | 94 | 3 | 1 | true | false | false | false | false | false | zero |
53,652,229 | How to store a large amount of resource images? | <p>I want to create an offline android app. On the main activity there is a recyclerview with 100+ items (icon and title of item). Each item has detail information with image which appears inside second activity when user clicks on particular item of recyclerview.</p>
<p>Is it bad way to store all of the icons and det... | I want to create an offline android app. On the main activity there is a recyclerview with 100+ items (icon and title of item). Each item has detail information with image which appears inside second activity when user clicks on particular item of recyclerview. Is it bad way to store all of the icons and detailed image... | android | -2 | 2018-12-06T13:10:25.250Z | 2,018 | 12 | 13 | 3 | 59 | 1 | 698 | 47 | 1 | 0 | false | false | false | false | false | true | negative |
53,672,625 | OnclickItem RecycleView | <p>in my recycleview adapter i have this class and i want to get text from my recycleview but when i cliked in items nothing happen i think i should call methode in my fragment but i don't know how !</p>
<pre><code>public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
TextView m... | in my recycleview adapter i have this class and i want to get text from my recycleview but when i cliked in items nothing happen i think i should call methode in my fragment but i don't know how ! [CODE] | java|android | -1 | 2018-12-07T15:39:26.820Z | 2,018 | 12 | 15 | 4 | 59 | 1 | 203 | 23 | 2 | 1 | true | false | false | false | false | true | negative |
53,779,634 | Sliding up panel opens completely when sliding starts. | <p>I am using umano sliding up panel and i want the panel to open gradually as i slide up the panel. Is there a way to do this.</p>
<p>Please find the code below.</p>
<pre><code><com.sothree.slidinguppanel.SlidingUpPanelLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:umanoSha... | I am using umano sliding up panel and i want the panel to open gradually as i slide up the panel. Is there a way to do this. Please find the code below. [CODE] | android | 1 | 2018-12-14T12:17:49.707Z | 2,018 | 12 | 12 | 4 | 59 | 1 | 159 | 54 | 1 | 1 | true | false | false | false | false | false | low |
53,418,264 | How to show the track route using poly line in Android | <p>I am developing a bus tracking application where I am getting the location using service from server. Now, with that I want to show the bus movement and draw a proper polyline. I achieved a part of this but facing two main issues:</p>
<ol>
<li><p>Every time bus marker is showing, it is not getting removed. So, the ... | I am developing a bus tracking application where I am getting the location using service from server. Now, with that I want to show the bus movement and draw a proper polyline. I achieved a part of this but facing two main issues: Every time bus marker is showing, it is not getting removed. So, the older footprint of t... | android|google-maps|google-polyline | 1 | 2018-11-21T18:15:27.020Z | 2,018 | 11 | 18 | 2 | 315 | 1 | 615 | 54 | 3 | 1 | true | false | false | false | false | false | low |
53,689,706 | Android and iOS Firebase database data merge | <p>I have a Android app that uses Firebase database and planning to build an iOS counter part of it. Can I use the same Firebase database of my Android app? If not, is there a way to merge the datas in the Android Firebase database and iOS Firebase database?</p> | I have a Android app that uses Firebase database and planning to build an iOS counter part of it. Can I use the same Firebase database of my Android app? If not, is there a way to merge the datas in the Android Firebase database and iOS Firebase database? | android|ios|firebase|firebase-realtime-database | 0 | 2018-12-09T05:38:07.933Z | 2,018 | 12 | 5 | 6 | 315 | 1 | 255 | 44 | 4 | 0 | false | false | false | false | false | false | zero |
53,455,076 | Should i run a Background Service in android oreo? | <p>//In some Oreo Devices i have seen crashes. and also there are some limitations after api level 26</p>
<pre><code> MediaPlayer player;
public int onStartCommandd(Intent intent, int flags, int startId) {
player = MediaPlayer.create(this,
Settings.System.DEFAULT_RINGTONE_URI);
... | //In some Oreo Devices i have seen crashes. and also there are some limitations after api level 26 [CODE] | android | 0 | 2018-11-24T04:11:40.160Z | 2,018 | 11 | 4 | 5 | 60 | 1 | 105 | 50 | 1 | 1 | true | false | false | false | false | false | zero |
53,455,486 | Target device api level(API 1) too low for Instant run Android Studio | <p>I have ZTE Axon 7 with android 7.1.1</p>
<pre><code>android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 23
targetSdkVersion 28
}
}
</code></pre>
<p>But I cant do "Instant Run" - in menu Run I see
Apply changes: Target device API level (API1) too low to Instant Run</p>
<... | I have ZTE Axon 7 with android 7.1.1 [CODE] But I cant do "Instant Run" - in menu Run I see Apply changes: Target device API level (API1) too low to Instant Run Where did API1 come from? PS IntelliJ IDEA 2018.2.6 (Community Edition) Build #IC-182.5107.16, built on November 6, 2018 JRE: 1.8.0_152-release-1248-b22 amd64 ... | android|intellij-idea | 0 | 2018-11-24T05:37:49.607Z | 2,018 | 11 | 5 | 5 | 60 | 1 | 382 | 69 | 2 | 1 | true | false | false | false | false | false | zero |
53,548,579 | why dont apks Auto install on samsung devices | <p>I've come across a problem with my own 3rd party app store. when users download an item from our app it downloads then tries to install automatically using</p>
<pre><code>File toInstall = new File(mFilePath);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Uri contentUri = FileProvider.getUriFo... | I've come across a problem with my own 3rd party app store. when users download an item from our app it downloads then tries to install automatically using [CODE] all works great on most devices.. apart from mainly samsung devices.. the file downloads but does not install.. why? thanks ****EDIT**** my file provider xml... | java|android-intent|installation|apk|android-fileprovider | 1 | 2018-11-29T22:33:05.847Z | 2,018 | 11 | 22 | 3 | 60 | 1 | 490 | 45 | 5 | 2 | true | false | false | false | false | false | low |
53,591,157 | Uploading app on play console with different release build algorithm | <p>I have uploaded an application in play console with signature algorithm SHA-1 but now I want to upload the same application with algorithm SHA-256. I tried to upload the release build with algorithm SHA-256 but it gives signature error. What steps should be followed to upload app with new signature algorithm ? Any h... | I have uploaded an application in play console with signature algorithm SHA-1 but now I want to upload the same application with algorithm SHA-256. I tried to upload the release build with algorithm SHA-256 but it gives signature error. What steps should be followed to upload app with new signature algorithm ? Any help... | android|build|release|google-play-console | 0 | 2018-12-03T09:51:03.690Z | 2,018 | 12 | 9 | 0 | 60 | 1 | 336 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
53,614,732 | Facebook Comments widget? | <p>i am following this tutorial </p>
<blockquote>
<p><a href="https://www.androidhive.info/2016/09/android-adding-facebook-comments-widget-in-app/" rel="nofollow noreferrer">https://www.androidhive.info/2016/09/android-adding-facebook-comments-widget-in-app/</a></p>
</blockquote>
<p>to add a comments widget to post... | i am following this tutorial https://www.androidhive.info/2016/09/android-adding-facebook-comments-widget-in-app/ to add a comments widget to posts in my Android Application, and it is working fine. User need to type in his/her email and password in order to leave a comment. My question is, since i am using this widget... | android|facebook-comments | 0 | 2018-12-04T14:06:43.270Z | 2,018 | 12 | 14 | 1 | 60 | 1 | 542 | 25 | 2 | 0 | false | false | false | false | false | false | zero |
53,617,572 | how to filter RecyclerView with searchview correctly? | <p>hi all I have implemented SearchView inside RecyclerView but when I search character name it is not searching any name and I have followed this <a href="https://www.learn2crack.com/2017/03/searchview-with-recyclerview.html" rel="nofollow noreferrer">tutorial</a></p>
<blockquote>
<p>below my adapter class where ... | hi all I have implemented SearchView inside RecyclerView but when I search character name it is not searching any name and I have followed this tutorial below my adapter class where I have implemented recyclerview with Filtarable public class LeovegasAdapter extends RecyclerView.Adapter implements Filterable { [CODE] }... | android|android-recyclerview|searchview | 0 | 2018-12-04T16:34:44Z | -1 | -1 | -1 | -1 | 60 | 1 | 354 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
53,618,007 | Unsucceedable cast when declaring CheckBoxPreference | <p>After declaring a <code>CheckboxPreference</code> in my activity for my app's settings, a warning appears for <code>as</code> in the line '<code>val mCheckBoxPreference = findPreference("preference_a") as CheckBoxPreference</code>'. What should be done so that the cast does succeed?</p>
<blockquote>
<p>This cast ... | After declaring a CheckboxPreference in my activity for my app's settings, a warning appears for as in the line ' val mCheckBoxPreference = findPreference("preference_a") as CheckBoxPreference '. What should be done so that the cast does succeed? This cast can never succeed app_preferences.xml [CODE] fragment class [CO... | android|xml|kotlin|android-preferences|checkboxpreference | 1 | 2018-12-04T16:59:46.837Z | 2,018 | 12 | 16 | 1 | 60 | 1 | 345 | 52 | 5 | 3 | true | false | false | false | false | false | low |
53,725,094 | Is it possible to check if a Dialog is visible on an activity? | <p>I'm writing an android app, that has many dialogs that pop up at once. I need to write a check if the activity contains a dialog at that time. I initially used this code:</p>
<pre><code>public static boolean hasOpenedDialogs(FragmentActivity activity) {
List<Fragment> fragments = activity.getSupportFragme... | I'm writing an android app, that has many dialogs that pop up at once. I need to write a check if the activity contains a dialog at that time. I initially used this code: [CODE] But this only works for dialogfragment, any help is appreciated. | java|android | 0 | 2018-12-11T13:24:37.737Z | 2,018 | 12 | 13 | 1 | 316 | 1 | 242 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
53,785,338 | Linking errors when using functions from <complex.h> in using API level 22 | <p>I'm porting a C and C++ library that currently works on iOS to be used on an Android application. I'm down to these last 3 linker errors (obfuscated for privacy reasons):</p>
<p>/Users/fer662/projects/xxx/jni/xxx_preprocessing.c:10184: error: undefined reference to 'cexp'
/Users/fer662/projects/xxx/jni/xxx_preproce... | I'm porting a C and C++ library that currently works on iOS to be used on an Android application. I'm down to these last 3 linker errors (obfuscated for privacy reasons): /Users/fer662/projects/xxx/jni/xxx_preprocessing.c:10184: error: undefined reference to 'cexp' /Users/fer662/projects/xxx/jni/xxx_preprocessing.c:101... | android|android-ndk|libm | 2 | 2018-12-14T18:48:43.347Z | 2,018 | 12 | 18 | 4 | 316 | 1 | 1,443 | 74 | 3 | 1 | true | false | false | false | false | false | low |
53,412,926 | Usage of Google Advertising Id on Android WITHOUT integrating Google Mobile Ads | <p>Getting the Google Advertising ID on Android requires to import the <code>play-services-ads</code> dependency.</p>
<p>Starting from 17.0.0, this dependency enforces that the application manifest contain a <code><meta-data></code> tag with key <code>com.google.android.gms.ads.APPLICATION_ID</code>. Missing tag... | Getting the Google Advertising ID on Android requires to import the play-services-ads dependency. Starting from 17.0.0, this dependency enforces that the application manifest contain a <meta-data> tag with key com.google.android.gms.ads.APPLICATION_ID . Missing tag leads to an application crash. But I want to retrieve ... | android|google-play-services|ads|google-advertising-id | 1 | 2018-11-21T13:17:18.560Z | 2,018 | 11 | 13 | 2 | 572 | 1 | 480 | 79 | 4 | 0 | false | false | false | false | false | false | low |
53,682,713 | Why does my custom buildtype gives apk not signed error | <p>I have the following <code>app.gradle</code> configuration:</p>
<pre><code>buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
// more configs here
}
staging {
... | I have the following app.gradle configuration: [CODE] The staging build type gives error: The apk for your currently selected variant is not signed. | android|android-gradle-plugin|android-build-type | 3 | 2018-12-08T12:52:07.513Z | 2,018 | 12 | 12 | 5 | 2,108 | 1 | 148 | 55 | 3 | 1 | true | false | false | false | false | false | low |
53,570,882 | How to go back from web view in flutter? | <p>After clicking the button it should show the web view. I did this. But when press the back button it is closing the app. It does not go back to previous state. If I press back button it should go back to previous page or state. I am getting web view from a function.
Here is my code:</p>
<pre><code>_contentSearch(B... | After clicking the button it should show the web view. I did this. But when press the back button it is closing the app. It does not go back to previous state. If I press back button it should go back to previous page or state. I am getting web view from a function. Here is my code: [CODE] And I am calling this method ... | android|webview|dart|flutter | 3 | 2018-12-01T12:42:50.457Z | 2,018 | 12 | 12 | 5 | 2,620 | 1 | 387 | 40 | 4 | 2 | true | false | true | false | false | false | low |
53,774,071 | What kind of XmlConverter can I use for Retrofit in Android? | <p>I am developing an Android app using Retrofit.</p>
<p>The server is sending XML as a response.
So I should convert it.
In the case of the Json, I used the GsonConverter.
And for XMl, I think I can use SimpleXMLConverter.</p>
<p>I visited the GitHub link for SimpleXMLConverter:
<a href="https://github.com/square/r... | I am developing an Android app using Retrofit. The server is sending XML as a response. So I should convert it. In the case of the Json, I used the GsonConverter. And for XMl, I think I can use SimpleXMLConverter. I visited the GitHub link for SimpleXMLConverter: https://github.com/square/retrofit/tree/master/retrofit-... | android|xml|jaxb|retrofit|simple-xml-converter | 3 | 2018-12-14T05:43:27.003Z | 2,018 | 12 | 5 | 4 | 2,876 | 1 | 646 | 60 | 5 | 0 | false | false | true | false | false | false | low |
53,358,740 | iOS or Android: Javascript replace attribute value | <p>I can easily replace value of html if I know id by writing something like this in android.</p>
<pre><code>webView.stringByEvaluatingJavaScript(from: "document.getElementById('Login_loginField').value = 'joni'")
</code></pre>
<p>Problem is that now I have a bit complicated attribute like this.</p>
<pre><code><i... | I can easily replace value of html if I know id by writing something like this in android. [CODE] Problem is that now I have a bit complicated attribute like this. [CODE] I don't know my id and I need to change data-initial-value if it is something . How shall I do? | javascript|android|ios|stringbyevaluatingjavascr | 0 | 2018-11-18T07:24:58.483Z | 2,018 | 11 | 7 | 6 | 61 | 1 | 266 | 50 | 4 | 2 | true | false | false | false | false | false | zero |
53,469,147 | Best way to combine Singles in RxJava2 on Android? | <p>I am new to RxJava and wondering if there is a more idiomatic way of accomplishing what the method shown below does.</p>
<pre><code>private Flowable<String> fetchTopMovies(Context context, @IntRange(from = 1) int firstPage, @IntRange(from = 1) int lastPage) {
checkArgument(firstPage > 0, "first page mu... | I am new to RxJava and wondering if there is a more idiomatic way of accomplishing what the method shown below does. [CODE] As you can see I am simply collecting Singles and combining them into a Flowable by hand. Is there a better way to do this without "breaking the chain"? | android|reactive-programming|rx-java2|rx-android | 1 | 2018-11-25T15:45:42.233Z | 2,018 | 11 | 15 | 6 | 61 | 1 | 276 | 50 | 4 | 1 | true | false | false | false | false | false | low |
53,658,196 | How to add or remove items from adapter on data change without refreshing | <p>I have an adapter with arraylist of strings. With Firebase I listen to changes on the database, and everytime the database changes, I remove or add items from the ArrayList and call <code>SetAdapter</code> again, which causes the entire list to refresh instead of just adding or removing a single item. This is the co... | I have an adapter with arraylist of strings. With Firebase I listen to changes on the database, and everytime the database changes, I remove or add items from the ArrayList and call SetAdapter again, which causes the entire list to refresh instead of just adding or removing a single item. This is the code: in the fragm... | android|firebase | 0 | 2018-12-06T19:14:22.173Z | 2,018 | 12 | 19 | 3 | 61 | 1 | 491 | 73 | 2 | 1 | true | false | false | false | false | false | zero |
53,757,799 | How to measure upload progress of a huge String with Retrofit 2? | <p>I use Retrofit 2 and a <strong>POST</strong> Rest call to send some data to backend. My rest interface looks like:</p>
<pre><code>void postSpecialData(String base64, Callback callback);
</code></pre>
<p>whereas my Callback is Retrofit interface with:</p>
<pre><code> void onResponse(Call<T> call, Response&l... | I use Retrofit 2 and a POST Rest call to send some data to backend. My rest interface looks like: [CODE] whereas my Callback is Retrofit interface with: [CODE] I call then finally: [CODE] The encryptedBase64 variable is neither a File nor stored somewhere. How can I get the upload progress to make it visible on a progr... | android|rest|http-post|retrofit2|okhttp | 0 | 2018-12-13T08:31:22.993Z | 2,018 | 12 | 8 | 3 | 61 | 1 | 340 | 64 | 5 | 3 | true | false | false | false | false | false | zero |
53,758,766 | How to change the color of the Android scroll bumper | <p>I created a Codename One project starting with the flatBlue theme, and then modified the theme to use my preferred color. I was able to change all colors I wanted, but I do not know how to change the color of the Android 'scroll bumper' that appears on the top (or bottom) of a component when scrolling. This 'scroll ... | I created a Codename One project starting with the flatBlue theme, and then modified the theme to use my preferred color. I was able to change all colors I wanted, but I do not know how to change the color of the Android 'scroll bumper' that appears on the top (or bottom) of a component when scrolling. This 'scroll bum... | android|codenameone | 1 | 2018-12-13T09:33:47.177Z | 2,018 | 12 | 9 | 3 | 61 | 1 | 654 | 52 | 2 | 0 | false | false | false | false | false | false | low |
53,368,921 | Android date picker does not show the title or the numbers clearly | <p>I am an Android newbie learning how to build Android apps. I am trying to build a custom date picker for a screen. Unfortunately the numbers are being cut off at the bottom, and I don't know why. I would appreciate any feedback that I may get.</p>
<p><a href="https://i.stack.imgur.com/YJxXb.png" rel="nofollow noref... | I am an Android newbie learning how to build Android apps. I am trying to build a custom date picker for a screen. Unfortunately the numbers are being cut off at the bottom, and I don't know why. I would appreciate any feedback that I may get. Screen as observed on the simulator This is my layout [CODE] Github project:... | android|android-layout|android-datepicker | 0 | 2018-11-19T05:42:15.910Z | 2,018 | 11 | 5 | 0 | 317 | 1 | 976 | 66 | 3 | 2 | true | false | false | false | false | false | zero |
53,467,954 | admob ads doesn't work when uploading the app on play store | <p>I am using google admob in the app when I used it with the test Id of the project it was working well but when I changed it to the live id the ads stop to come.
this is my java code :</p>
<pre><code>MobileAds.initialize(this, getString(R.string.ad_mob_used_id));
mInterstitialAd = new InterstitialAd(this);
... | I am using google admob in the app when I used it with the test Id of the project it was working well but when I changed it to the live id the ads stop to come. this is my java code : [CODE] and this is the code in the manifest : [CODE] and this is the code in the strings : [CODE] | android|admob|ads|interstitial | 0 | 2018-11-25T13:28:19.450Z | 2,018 | 11 | 13 | 6 | 573 | 1 | 281 | 59 | 4 | 3 | true | false | false | false | false | false | zero |
53,495,962 | Check user credentials in Azure AD using PHP | <p>Our company has a mobile app. Until now we used LDAP authentication using PHP code to login on the app using the company's Active Directory user and password.</p>
<p>Now they tell me we have to stop using LDAP because there has been some security breach.</p>
<p>My question is, is there an equivalent of <code>ldap_... | Our company has a mobile app. Until now we used LDAP authentication using PHP code to login on the app using the company's Active Directory user and password. Now they tell me we have to stop using LDAP because there has been some security breach. My question is, is there an equivalent of ldap_bind for Azure AD? I've b... | php|android|azure|active-directory|azure-active-directory | 1 | 2018-11-27T09:00:12.097Z | 2,018 | 11 | 9 | 1 | 573 | 1 | 692 | 44 | 5 | 0 | false | false | false | false | false | false | low |
53,626,327 | how to enable past dates using CalendarDateRangePicker in Xamarin Native Android? | <p>I am using a CalendarDateRangePicker for the date range selection in calendar. Native android library has an option to enable the past dates. But, Xamarin android library does not have an option to enable the past dates and set the selected dates in calendar. Can anyone please help me on this? Link below for the cal... | I am using a CalendarDateRangePicker for the date range selection in calendar. Native android library has an option to enable the past dates. But, Xamarin android library does not have an option to enable the past dates and set the selected dates in calendar. Can anyone please help me on this? Link below for the calend... | android|xamarin.android | 0 | 2018-12-05T06:23:24.197Z | 2,018 | 12 | 6 | 2 | 573 | 1 | 395 | 81 | 2 | 0 | false | false | false | false | false | false | zero |
53,657,219 | `Could not find method jackOptions() for arguments` when building Tensorflow Lite demo | <p>I'm trying to build the demo app in Tensorflow Lite:</p>
<p><a href="https://www.tensorflow.org/lite/demo_android" rel="nofollow noreferrer">https://www.tensorflow.org/lite/demo_android</a></p>
<p>Relevant versions:</p>
<ul>
<li>Tensorlow Lite: 1.12</li>
<li>Android Studio: 3.2.1</li>
<li>Android Sdk: android-28<... | I'm trying to build the demo app in Tensorflow Lite: https://www.tensorflow.org/lite/demo_android Relevant versions: Tensorlow Lite: 1.12 Android Studio: 3.2.1 Android Sdk: android-28 When I try to make the project included at tensorflow/lite/java/demo I get a build error: [CODE] Presumably this relates to Jack and Jil... | android|tensorflow | 0 | 2018-12-06T18:00:43.267Z | 2,018 | 12 | 18 | 3 | 573 | 1 | 728 | 86 | 2 | 1 | true | false | false | false | false | false | zero |
53,695,687 | camera2 : Problems with focused area and focus distance | <p>I tried many time to set a distance focus on camera2 API, or set autofocus just on a specific area initialized at the start of the activity.</p>
<p>But it still not working...</p>
<p>Could you help me please ? :)</p>
<p>here is my configuration :</p>
<pre><code> captureRequestBuilder.set(CaptureRequest.CO... | I tried many time to set a distance focus on camera2 API, or set autofocus just on a specific area initialized at the start of the activity. But it still not working... Could you help me please ? :) here is my configuration : [CODE] | android|focus|distance|area|android-camera2 | 0 | 2018-12-09T19:04:39.597Z | 2,018 | 12 | 19 | 6 | 573 | 1 | 232 | 55 | 5 | 1 | true | false | false | false | false | false | zero |
53,453,529 | How to add user details to firebase auth table? | <p>In <a href="https://firebase.google.com/docs/auth/android/manage-users" rel="nofollow noreferrer">Manage Users in Firebase
</a>, you can see there are methods such as <code>user.getDisplayName()</code>, or <code>user.getPhotoUrl()</code>, But in my table of authenticated users there aren't any of these:</p>
<p><a hr... | In Manage Users in Firebase , you can see there are methods such as user.getDisplayName() , or user.getPhotoUrl() , But in my table of authenticated users there aren't any of these: My question is, are these methods built-in in Firebase, and I need to change my auth code to have these columns in the table? Or, these ar... | android|firebase|firebase-authentication|firebase-console | 0 | 2018-11-23T22:31:20.940Z | 2,018 | 11 | 22 | 4 | 829 | 1 | 488 | 47 | 4 | 0 | false | false | false | false | false | false | zero |
53,544,968 | React native creation of an android module .gitignore file | <p>React-native creation of an android module <code>.gitignore</code> file</p>
<p>I'm creating a module that will then be on npm, the question is how should I set the gitignore file for android?</p>
<p>Must it be placed in the root folder or in the <code>/android</code> folder?</p>
<p>Looking on the internet I found... | React-native creation of an android module .gitignore file I'm creating a module that will then be on npm, the question is how should I set the gitignore file for android? Must it be placed in the root folder or in the /android folder? Looking on the internet I found something like this: [CODE] it's correct? Where shou... | android|react-native|gradle|gitignore | 0 | 2018-11-29T17:56:20.893Z | 2,018 | 11 | 17 | 3 | 829 | 1 | 704 | 58 | 4 | 4 | true | false | false | false | false | false | zero |
53,693,066 | Where Layout Inspector shows where is the ID | <p>How can I using Android studio 3.0 see which part of code is corresponding to the layout on my emulator?</p>
<p>The most logical way would be to refer to the single <code>@id</code>s but from the tool <code>Layout Inspector</code> but <strong>how can i see the name of the layout(or nested layouts) that are appear... | How can I using Android studio 3.0 see which part of code is corresponding to the layout on my emulator? The most logical way would be to refer to the single @id s but from the tool Layout Inspector but how can i see the name of the layout(or nested layouts) that are appearing on the snapshot? And the name of the singl... | android|android-studio|android-layout|android-xml|layout-inspector | 2 | 2018-12-09T13:55:51.553Z | 2,018 | 12 | 13 | 6 | 1,085 | 1 | 561 | 44 | 5 | 0 | false | false | false | false | false | false | low |
53,397,418 | React-Navigation Android deep linking not working | <p>I'm using react-navigation@3.0.0 in my react-native app, I've followed the deep linking guide <a href="https://reactnavigation.org/docs/en/deep-linking.html" rel="nofollow noreferrer">https://reactnavigation.org/docs/en/deep-linking.html</a>.</p>
<p>iOS works as expected but I'm getting funny results for android.</... | I'm using react-navigation@3.0.0 in my react-native app, I've followed the deep linking guide https://reactnavigation.org/docs/en/deep-linking.html . iOS works as expected but I'm getting funny results for android. When I run: [CODE] I get following warning , Warning: Activity not started, its current task has been bro... | android|react-native|react-navigation|deep-linking | 1 | 2018-11-20T16:30:54.487Z | 2,018 | 11 | 16 | 1 | 1,341 | 1 | 701 | 49 | 4 | 1 | true | false | false | false | false | false | low |
53,409,575 | Google OAuth - disallowed_useragent on Mobiles using SignIn Card | <p>I am trying to implement google authentication in xamarin forms application and I have tried different links such as:
1. Xamarin.Auth sdk.
2. <a href="https://github.com/HoussemDellai/Google-Login-Xamarin-Forms" rel="nofollow noreferrer">https://github.com/HoussemDellai/Google-Login-Xamarin-Forms</a>
But, each time... | I am trying to implement google authentication in xamarin forms application and I have tried different links such as: 1. Xamarin.Auth sdk. 2. https://github.com/HoussemDellai/Google-Login-Xamarin-Forms But, each time I get 403 disallowed_useragent error as google has deprecated webviews in xamarin forms. Can you please... | xamarin.forms|google-api|xamarin.ios|xamarin.android|google-authentication | 0 | 2018-11-21T10:04:30.437Z | 2,018 | 11 | 10 | 2 | 6,205 | 1 | 363 | 64 | 5 | 0 | false | false | true | false | false | false | zero |
53,358,657 | Loading of selected tabs containing a Webview | <p>I have 3 categories of Fragments within Viewpager, each containing 3 or 4 tabs. Every tab has a Webview with different url. When I start the activty to load the fragments, the webviews of every fragment are loading simultaneously and takes much time. I want to load the present fragment which contains 4 tabs and when... | I have 3 categories of Fragments within Viewpager, each containing 3 or 4 tabs. Every tab has a Webview with different url. When I start the activty to load the fragments, the webviews of every fragment are loading simultaneously and takes much time. I want to load the present fragment which contains 4 tabs and when ch... | android|android-fragments|webview|android-viewpager | 0 | 2018-11-18T07:07:52.080Z | 2,018 | 11 | 7 | 6 | 62 | 1 | 394 | 45 | 4 | 0 | false | false | false | false | false | false | zero |
53,384,463 | Custom Toast Message - GridView | <p>Image must appears with a custom toast message that states the first name of the picture person</p>
<pre><code>public class MainActivity extends AppCompatActivity {
Integer[] PersonalPhoto = {R.drawable.user1, R.drawable.user2,
R.drawable.user3, R.drawable.user4, R.drawable.user5, R.drawable.user6,
R.drawable.... | Image must appears with a custom toast message that states the first name of the picture person [CODE] The GridView have to display eight images. When a user select an image, first name will appear on the toast message | android | -1 | 2018-11-20T00:16:05.667Z | 2,018 | 11 | 0 | 1 | 62 | 1 | 218 | 31 | 1 | 1 | true | false | false | false | false | true | negative |
53,439,178 | How to fix starting position of view to drag | <p>When I hold down on my <code>ImageView</code> to drag it across the screen, the <code>ImageView</code> becomes invisible, and the draggable version of the <code>ImageView</code> will spawn onto the screen with the center of the spawned view underneath my fingertip; this is not organic. I want the draggable version o... | When I hold down on my ImageView to drag it across the screen, the ImageView becomes invisible, and the draggable version of the ImageView will spawn onto the screen with the center of the spawned view underneath my fingertip; this is not organic. I want the draggable version of the view to spawn directly on top of the... | android|android-layout | 0 | 2018-11-22T23:48:26.580Z | 2,018 | 11 | 23 | 3 | 62 | 1 | 743 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
53,661,604 | Filterable RecyclerView expecting variable initialisation | <p>After trying to implement filterable functionality for my RecyclerView, I'm a bit confused as to what way is best to resolve this error and warning.</p>
<p>I have considered using this:</p>
<pre><code>private var productListFull: List<Product> = ArrayList(productList)
</code></pre>
<p>but I'm not sure that ... | After trying to implement filterable functionality for my RecyclerView, I'm a bit confused as to what way is best to resolve this error and warning. I have considered using this: [CODE] but I'm not sure that is correct, considering the different properties Error productListFull must be initialised Warning private var p... | android|kotlin|android-recyclerview|android-adapter|listadapter | 0 | 2018-12-07T00:22:30.753Z | 2,018 | 12 | 0 | 4 | 62 | 1 | 386 | 57 | 5 | 2 | true | false | false | false | false | false | zero |
53,754,851 | Send an email while showing only email programs | <p>I have multiple posts about sending an email and even in the Android documentations. IT does not seem to work. I want to basically to allow the user to choose their email programs to send an email. Here is the code</p>
<pre><code>Intent emailIntent = new Intent(Intent.ACTION_SENDTO);
emailIntent.set... | I have multiple posts about sending an email and even in the Android documentations. IT does not seem to work. I want to basically to allow the user to choose their email programs to send an email. Here is the code [CODE] However it does nothing (ie no activity) What is it that I am doing wrong? If I use Action.Send th... | android | 0 | 2018-12-13T04:02:41.510Z | 2,018 | 12 | 4 | 3 | 62 | 1 | 409 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
53,557,786 | how to completely disable autofill in android | <p>I had problem with AutoFill in android and it cause </p>
<pre><code>java.lang.SecurityException: Permission Denial: null asks to run as user 5 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
</code></pre>
<p>I resolved it by adding... | I had problem with AutoFill in android and it cause [CODE] I resolved it by adding android:importantForAutofill="noExcludeDescendants" to TextInputLayout in XML. but when try to select all text in TextInputLayout, it force AutoFill to start and get the error again. So first is there any way to totally disable AutoFill ... | android|android-autofill-manager | 0 | 2018-11-30T12:39:57.083Z | 2,018 | 11 | 12 | 4 | 318 | 1 | 462 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
53,371,858 | Attempt to invoke virtual method 'java.lang.String com.register.register.file.User.getName()' on a null object reference | <p><img src="https://i.stack.imgur.com/KPnyv.jpg" alt="enter image description here"></p>
<p>Can not able to retrieve data from firebase database</p>
<p>I am trying to retrieve username from firebase database, but it is not working</p>
<pre><code>String Uid;
String name;//below code is in onCreate()
mDatabaseRef.add... | Can not able to retrieve data from firebase database I am trying to retrieve username from firebase database, but it is not working [CODE] | android|nullpointerexception | -1 | 2018-11-19T09:41:23.900Z | 2,018 | 11 | 9 | 0 | 1,086 | 1 | 138 | 120 | 2 | 1 | true | false | false | false | false | true | negative |
53,406,182 | How to handle multiple items in RecyclerView | <p>I have four radio button inside the radio group in recyclerview. when i click first position of radio button it reflect on eighth position of radio button. How can i resolve this? If no radio button clicked the group will disable. how can i do this also? when i click the submit button calculate how many radio button... | I have four radio button inside the radio group in recyclerview. when i click first position of radio button it reflect on eighth position of radio button. How can i resolve this? If no radio button clicked the group will disable. how can i do this also? when i click the submit button calculate how many radio button cl... | android-recyclerview|radio-button | 1 | 2018-11-21T06:10:53.523Z | 2,018 | 11 | 6 | 2 | 63 | 1 | 358 | 44 | 2 | 2 | true | false | false | false | false | false | low |
53,436,235 | DatabaseException: can't convert object of java.Lang.String to type | <p>I'm trying to retrieve data from my Firebase Realtime Database but encountering this issue.</p>
<p>I'm suspecting I got this error due to my path in DatabaseReference. I tried different paths but none seemed to work. </p>
<p>Here's my database (The generated texts are userID)</p>
<p><a href="https://i.stack.imgur... | I'm trying to retrieve data from my Firebase Realtime Database but encountering this issue. I'm suspecting I got this error due to my path in DatabaseReference. I tried different paths but none seemed to work. Here's my database (The generated texts are userID) My class that stores the data structure [CODE] My ReadingS... | java|android|firebase|firebase-realtime-database | 0 | 2018-11-22T18:04:43.090Z | 2,018 | 11 | 18 | 3 | 63 | 1 | 452 | 67 | 4 | 3 | true | false | false | false | false | false | zero |
53,437,301 | Set Background Color Temporarily on Button | <p>Does anybody know how to set the background color temporarily on a Button.</p>
<pre><code>buttons[randomI][randomJ].setBackgroundColor(Color.rgb(155, 17, 30));
</code></pre>
<p>Here is what I have but I only want to set the background color of this for a certain period of time. I understand that a way to go about ... | Does anybody know how to set the background color temporarily on a Button. [CODE] Here is what I have but I only want to set the background color of this for a certain period of time. I understand that a way to go about this is to remove the background color after a certain period of time but I don't know how to remove... | java|android | 0 | 2018-11-22T19:49:57.643Z | 2,018 | 11 | 19 | 3 | 63 | 1 | 632 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.