id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59,913,203 | Cordova Javascript QR Scanner Plugin not working on Android (cordova-plugin-qrscanner) | <p>I followed the documentation <a href="https://github.com/bitpay/cordova-plugin-qrscanner" rel="nofollow noreferrer">here</a>. </p>
<p>The code under function 'qrPrep()' below runs. However, the 'qrScan01' function does not work. That's the function that should show the camera to scan the code. </p>
<p>Calling this... | I followed the documentation here . The code under function 'qrPrep()' below runs. However, the 'qrScan01' function does not work. That's the function that should show the camera to scan the code. Calling this from HTML as; [CODE] This doesn't work as intended: Here is my code: [CODE] Here is the LOGCAT output. Looks l... | android|cordova|plugins|qr-code|bitpay | 4 | 2020-01-25T20:39:23.613Z | 2,020 | 1 | 20 | 5 | 3,393 | 1 | 412 | 86 | 5 | 3 | true | false | true | false | false | false | low |
59,913,461 | Android Studio: how to increase set ANDROID_LINT_MAX_VIEW_COUNT | <p>My Android application, being prepared in Android Studio 3.5.3, has a layout with more than 80 different views (and this number will grow). So, the warning <code>layout has too many views</code> appears. I'd like to increase variable <code>ANDROID_LINT_MAX_VIEW_COUNT</code> up to 100 (as it is advised in the warning... | My Android application, being prepared in Android Studio 3.5.3, has a layout with more than 80 different views (and this number will grow). So, the warning layout has too many views appears. I'd like to increase variable ANDROID_LINT_MAX_VIEW_COUNT up to 100 (as it is advised in the warning), but I cannot find where it... | warnings|android-studio-3.5 | 1 | 2020-01-25T21:14:32.263Z | 2,020 | 1 | 21 | 5 | 546 | 1 | 734 | 63 | 2 | 0 | false | false | false | false | false | false | low |
59,913,501 | InstantiationException with my customCalendarView | <p>I'm currently running into an error where my custom calendar view will not run on my fragment layout. For some reason, I run into this InstantiationException error, "java.lang.InstantiationException: The layout involves creation of com.example.road2success.CustomCalendarView over 100 levels deep. Infinite recursion?... | I'm currently running into an error where my custom calendar view will not run on my fragment layout. For some reason, I run into this InstantiationException error, "java.lang.InstantiationException: The layout involves creation of com.example.road2success.CustomCalendarView over 100 levels deep. Infinite recursion?" A... | android|android-layout|android-fragments|kotlin|android-custom-view | 0 | 2020-01-25T21:19:59.957Z | 2,020 | 1 | 21 | 5 | 116 | 1 | 887 | 49 | 5 | 5 | true | false | false | false | false | false | zero |
59,913,539 | Have more than one toolbar without having to set supportActionBar or actionBar? | <p>I have multiple fragments side-by-side in my activity. Each of these fragments have their own toolbar at the top. For that reason, I would like to avoid using <code>setActionBar()</code> as I have two toolbars. However, if I don't have an <code>ActionBar</code>, <code>onCreateOptionsMenu()</code> is never called eve... | I have multiple fragments side-by-side in my activity. Each of these fragments have their own toolbar at the top. For that reason, I would like to avoid using setActionBar() as I have two toolbars. However, if I don't have an ActionBar , onCreateOptionsMenu() is never called even if I call setHasOptionsMenu(true) . Is ... | android | 0 | 2020-01-25T21:24:48.367Z | 2,020 | 1 | 21 | 5 | 37 | 1 | 437 | 79 | 1 | 0 | false | false | false | false | false | false | zero |
59,913,541 | How to create swipeable and clickable cards in android using cardView? | <p>I tried using <a href="https://github.com/yuyakaido/CardStackView" rel="nofollow noreferrer">https://github.com/yuyakaido/CardStackView</a> but could not modify it to create a click functionality.</p>
<p>basically I want to use animate() when clicked on the card but not able to do so.</p>
<blockquote>
<p>Main ac... | I tried using https://github.com/yuyakaido/CardStackView but could not modify it to create a click functionality. basically I want to use animate() when clicked on the card but not able to do so. Main activity-- [CODE] | java|android|android-layout|android-cardview | 0 | 2020-01-25T21:25:18.157Z | 2,020 | 1 | 21 | 5 | 75 | 0 | 218 | 70 | 4 | 1 | true | true | false | false | false | false | zero |
59,913,778 | Is there a way to autoformat code in Android Studio? | <p>I have been coding for a while in Visual Studio with visual basic and there was an option to autoformat code at the same time you were coding.</p>
<p>I know i can format it in Android Studio with CTRL+ALT+L but is there any option so the software do it automatically?</p>
<p>Thanks.</p> | I have been coding for a while in Visual Studio with visual basic and there was an option to autoformat code at the same time you were coding. I know i can format it in Android Studio with CTRL+ALT+L but is there any option so the software do it automatically? Thanks. | java|android|android-studio|format | 0 | 2020-01-25T21:59:24.230Z | 2,020 | 1 | 21 | 5 | 58 | 2 | 268 | 52 | 4 | 0 | false | false | false | false | false | false | zero |
59,913,884 | GeoNames and JDOM request java.rmi.RemoteException after shrinkResources | <p>I'm using the <a href="https://www.geonames.org/source-code" rel="nofollow noreferrer">GeoNames Java Client</a> to autocomplete place names in an Android app: the user types some characters and a list of suggestions appears.<br>
The library <a href="http://jdom.org" rel="nofollow noreferrer">jdom-1.0.jar</a> is also... | I'm using the GeoNames Java Client to autocomplete place names in an Android app: the user types some characters and a list of suggestions appears. The library jdom-1.0.jar is also required, to parse the XML results that GeoNames fetch. Everything works fine except when I add shrinkResources true in build.gradle . At t... | android|rmi|jdom|geonames|shrinkresources | 1 | 2020-01-25T22:16:27.473Z | 2,020 | 1 | 22 | 5 | 76 | 1 | 759 | 72 | 5 | 2 | true | false | false | false | false | false | low |
59,913,969 | FATAL EXCEPTION: OkHttp Dispatcher occurs in OkHttp Interceptor for renewing OAuth tokens | <p>I am using an OkHttp Interceptor with Retrofit2 for renewing expired OAuth2.0 tokens and performing GET requests.</p>
<p>Here is the code for the interceptor:</p>
<pre><code>import androidx.annotation.NonNull;
import org.metabrainz.mobile.presentation.features.login.LoginSharedPreferences;
import java.io.IOExcepti... | I am using an OkHttp Interceptor with Retrofit2 for renewing expired OAuth2.0 tokens and performing GET requests. Here is the code for the interceptor: [CODE] However, the following error occurs every time and the app crashes. [CODE] The error is caused at line 44 in the file which is return chain.proceed(request); . I... | android|retrofit2|okhttp | 0 | 2020-01-25T22:28:38.253Z | 2,020 | 1 | 22 | 5 | 1,177 | 0 | 538 | 89 | 3 | 2 | true | true | false | false | false | false | zero |
59,913,989 | Sorting results in Firebase Recycler Adapter after querying data | <p>I am using Firebase Recycler Adapter on the Real Time Data Base (RTDB). Unfortunately, the query feature for the RTDB is quite limited and is causing me some problems. Here is the problem I am trying to solve:</p>
<p>Imagine I have an object model consisting of the name and the national origin of a person. I can qu... | I am using Firebase Recycler Adapter on the Real Time Data Base (RTDB). Unfortunately, the query feature for the RTDB is quite limited and is causing me some problems. Here is the problem I am trying to solve: Imagine I have an object model consisting of the name and the national origin of a person. I can query all the... | android|firebase-realtime-database|firebaseui | 2 | 2020-01-25T22:31:48.410Z | 2,020 | 1 | 22 | 5 | 459 | 0 | 637 | 64 | 3 | 1 | true | true | false | false | false | false | low |
59,914,103 | adb wait-for-device for multiple emulators | <p>Is there a way in adb to wait for a device with a particular name/id
I tried following so far</p>
<pre><code>$adb wait-for-device emulator-5554
$adb wait-for-device -e emulator-5554
$adb wait-for-device - s shell emulator-5554```
but did not work
</code></pre> | Is there a way in adb to wait for a device with a particular name/id I tried following so far [CODE] | android|bash|android-emulator|adb | 4 | 2020-01-25T22:53:15.897Z | 2,020 | 1 | 22 | 5 | 630 | 1 | 100 | 42 | 4 | 1 | true | false | false | false | false | false | low |
59,914,119 | How to show HTML text in TextView? | <p>how to show this html code in TextView. without any minimum API requirement</p>
<p>HTML CODE IS BELOW:</p>
<pre><code><h2>Hey !</h2>
<blockquote>
<h2>Hey !</h2>
<blockquote>
<p>
<span style="color: #0000ff;">
hello world
<em>
<stro... | how to show this html code in TextView. without any minimum API requirement HTML CODE IS BELOW: [CODE] | java|android|html|textview | 0 | 2020-01-25T22:55:51.047Z | 2,020 | 1 | 22 | 5 | 68 | 1 | 102 | 34 | 4 | 1 | true | false | false | false | false | false | zero |
59,914,168 | Why is primary constructor body executed before field initialisation? | <p>So I'm rewriting some legacy code of an android app.</p>
<p>Part of that change includes introducing view models. And part of <em>that</em> includes changing a <code>UserManager</code> class that used to be an <code>object</code> to an <code>AndroidViewModel</code>.</p>
<pre><code>class UserManager(application: Appl... | So I'm rewriting some legacy code of an android app. Part of that change includes introducing view models. And part of that includes changing a UserManager class that used to be an object to an AndroidViewModel . [CODE] The init block is new because it used to be called on the Object instance from outside, prior to my ... | java|android|kotlin|constructor|initialization | 5 | 2020-01-25T23:05:56.870Z | 2,020 | 1 | 23 | 5 | 556 | 2 | 3,788 | 69 | 5 | 3 | true | false | false | false | false | false | low |
59,914,223 | Android Studio Preview not able to render constraintLayout Barrier item | <p>(on Android Studio version 3.5.3)
The barrier works fine at run time, but AS preview is not able to find it/render it </p>
<pre><code> <androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
... | (on Android Studio version 3.5.3) The barrier works fine at run time, but AS preview is not able to find it/render it [CODE] result: barrier shows up as a gray box as if preview doesn't recognize it | kotlin|android-constraintlayout | 0 | 2020-01-25T23:14:41.120Z | 2,020 | 1 | 23 | 5 | 119 | 1 | 198 | 71 | 2 | 1 | true | false | false | false | false | false | zero |
59,914,359 | Log Stacktrace to FirebaseDatabase in UncaughtExceptionHandler, problem calling default uncaughtException method | <p>I'm currently stuck with UncaughtExceptionHandler and Firebase Database in my Android Kotlin App.</p>
<p>My plan:
In the case of an uncaught exception, log the stack trace to Google Firebase.</p>
<p>I already have an BaseCompatActivity with an UncaughtExceptionHandler. All activities inherit from this class.</p>
... | I'm currently stuck with UncaughtExceptionHandler and Firebase Database in my Android Kotlin App. My plan: In the case of an uncaught exception, log the stack trace to Google Firebase. I already have an BaseCompatActivity with an UncaughtExceptionHandler. All activities inherit from this class. The only and the interes... | android|firebase|kotlin | 0 | 2020-01-25T23:40:13.833Z | 2,020 | 1 | 23 | 5 | 124 | 1 | 861 | 112 | 3 | 1 | true | false | false | false | false | false | zero |
59,914,541 | Android Q - Query MediaStore for audioFiles in specific folder and its subfolders | <p>I'm trying to query Android Q mediaStore using contentResolver. I want to get all audiofiles from a <strong>specific</strong> Folder with all its subdirectories (for example <code>/sdcard/Download/AudioFiles/Folder 1</code> and <code>/sdcard/Download/AudioFiles/Folder 2/Folder 3</code>).
Perrmission <code>android.pe... | I'm trying to query Android Q mediaStore using contentResolver. I want to get all audiofiles from a specific Folder with all its subdirectories (for example /sdcard/Download/AudioFiles/Folder 1 and /sdcard/Download/AudioFiles/Folder 2/Folder 3 ). Perrmission android.permission.READ_EXTERNAL_STORAGE is set in my manifes... | android|android-contentresolver|mediastore | 0 | 2020-01-26T00:16:55.100Z | 2,020 | 1 | 0 | 6 | 1,001 | 0 | 1,270 | 81 | 3 | 5 | true | true | false | false | false | false | zero |
59,914,558 | How to start application from another app in Android using Action_SEND? | <p>I'm trying to get my app to display in the "Open in app" dialog when I open a PDF file. I believe on paper I should be done:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.foo.anything">
<uses-permission android... | I'm trying to get my app to display in the "Open in app" dialog when I open a PDF file. I believe on paper I should be done: [CODE] But it just doesn't show up. I am using my phone as test device, could that be a factor? I've been looking for answers for 2 hours now, please help. | android|pdf|android-intent|android-manifest|send | 0 | 2020-01-26T00:21:59.263Z | 2,020 | 1 | 0 | 6 | 61 | 0 | 280 | 71 | 5 | 1 | true | true | false | false | false | false | zero |
59,914,639 | HTML plugin with text right alignment flutter? | <p>I'm using HTML widget from flutter_html library to show some articles fetched from some api and I want to align my text to the right (rtl language)
<a href="https://i.stack.imgur.com/1vbbE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1vbbE.jpg" alt="My Pic"></a>
This my code</p>
<pre><code> ... | I'm using HTML widget from flutter_html library to show some articles fetched from some api and I want to align my text to the right (rtl language) This my code [CODE] I have tried to use Directionality widget as parent widget but it doesn't work. | android|ios|flutter|dart | 0 | 2020-01-26T00:36:46.423Z | 2,020 | 1 | 0 | 6 | 3,029 | 2 | 247 | 46 | 4 | 1 | true | false | true | false | false | false | zero |
59,914,861 | Permission Denial: reading android.support.v4.content.FileProvider uri ANDROID pie | <p>I'm not able to share the screen image, it works well in old versions, it just isn't working on android pie I get this error could someone help me?</p>
<p>error</p>
<pre><code>java.lang.SecurityException: Permission Denial: reading android.support.v4.content.FileProvider uri content://myapp.com.provider/external/s... | I'm not able to share the screen image, it works well in old versions, it just isn't working on android pie I get this error could someone help me? error [CODE] code [CODE] Manifest code [CODE] paths code: [CODE] does anyone know what should i do to solve this problem? any help is welcome. | android|android-studio|kotlin|share|android-9.0-pie | 1 | 2020-01-26T01:25:24.400Z | 2,020 | 1 | 1 | 6 | 1,521 | 1 | 290 | 82 | 5 | 4 | true | false | false | false | false | false | low |
59,914,922 | How Do We Call loadAd Method of NativeBannerAd More Than Once? | <p>I'm just trying to manage fail scenarios of ads in my app. So, after <code>onError</code> triggered due to some reason(e.g no network) I just called <code>loadAd</code> method of <code>NativeBannerAd</code> like below. But app crashed with <code>called more than once</code> error. </p>
<pre><code> mFacebookNativeBa... | I'm just trying to manage fail scenarios of ads in my app. So, after onError triggered due to some reason(e.g no network) I just called loadAd method of NativeBannerAd like below. But app crashed with called more than once error. [CODE] I didn't see any description about this exception on documents. NativeAd , NativeAd... | android|facebook-ads-api|facebook-audience-network | 9 | 2020-01-26T01:43:44.380Z | 2,020 | 1 | 1 | 6 | 385 | 1 | 500 | 62 | 3 | 1 | true | false | false | false | false | false | medium |
59,915,062 | setOnNavigationItemSelectedListener doesn't seem to work for me | <p>It was working perfectly, I don't know where I messed up... </p>
<p>I have 5 items in my bottom navigation menu and it is always marked/set/highlighted/selected on the home activity (0), whenever I click on let's say ProfileActivity (4), it set it as selected just for a second and then selection goes back to the ho... | It was working perfectly, I don't know where I messed up... I have 5 items in my bottom navigation menu and it is always marked/set/highlighted/selected on the home activity (0), whenever I click on let's say ProfileActivity (4), it set it as selected just for a second and then selection goes back to the home activity ... | android|android-studio|kotlin|bottomnavigationview | 0 | 2020-01-26T02:21:50.653Z | 2,020 | 1 | 2 | 6 | 1,633 | 1 | 541 | 63 | 4 | 2 | true | false | false | false | false | false | zero |
59,915,125 | Android Image Background with Rounded Corners | <p>I am trying to make my image with round corners. I am doing like this</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/bg" />
<item>
<shape android:shape="recta... | I am trying to make my image with round corners. I am doing like this [CODE] and result is like this You can see there grey color behind round corner, How I can remove it? I think I am missing something. Let me know if someone can help me for solve my issue. Thanks | java|android|imageview | 2 | 2020-01-26T02:41:11.380Z | 2,020 | 1 | 2 | 6 | 2,579 | 3 | 265 | 45 | 3 | 1 | true | false | false | false | false | false | low |
59,915,147 | How to call an activity method from a fragment? | <p>I need to call a method that is in an activity from a fragment , i can't even instatiate the activity in the fragment , I don't know how to approach this problem. I need to call the activity's method from an onClick that is part of the fragment , because i need to update a value because it changed (ex: the value is ... | I need to call a method that is in an activity from a fragment , i can't even instatiate the activity in the fragment , I don't know how to approach this problem. I need to call the activity's method from an onClick that is part of the fragment , because i need to update a value because it changed (ex: the value is 1 ,... | java|android | 0 | 2020-01-26T02:46:17.597Z | 2,020 | 1 | 2 | 6 | 71 | 4 | 517 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
59,915,149 | Why does the code give Null pointer exception even when the object is not null? | <p>Code</p>
<pre><code>public class OrderTableActivity extends AppCompatActivity {
private List<String> bidList = new ArrayList<>();
private List<String> askList = new ArrayList<>();
private RecyclerView recyclerView;
private OrderTableAdapter adapter;
private BidsAsks bidsAsks;
@Override
pr... | Code [CODE] Error Error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.cryptoinfo/com.example.cryptoinfo.OrderTableActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.example.cryptoinfo.BidsAsks.getBids()' on a null object reference at android... | java|android|nullpointerexception|retrofit | 0 | 2020-01-26T02:46:24.033Z | 2,020 | 1 | 2 | 6 | 25 | 0 | 2,627 | 79 | 4 | 1 | true | true | false | false | false | false | zero |
59,915,196 | Using 'this' as Context in the init block of activity? | <p>I am developing an android application with kotlin.</p>
<p>I have a <code>DereDatabaseHelper</code> class which has <code>init</code> block that uses a <code>context</code> given through <em>class parameter(?)</em></p>
<p>The <code>DereDatabaseHelper</code> is like this.</p>
<pre><code>class DereDatabaseHelper(co... | I am developing an android application with kotlin. I have a DereDatabaseHelper class which has init block that uses a context given through class parameter(?) The DereDatabaseHelper is like this. [CODE] The DereDatabaseHelper class is instantiated here in SongListActivity like this. [CODE] I thought that this code was... | android|kotlin|constructor|nullpointerexception|initialization | 2 | 2020-01-26T02:58:58.313Z | 2,020 | 1 | 2 | 6 | 1,788 | 2 | 891 | 54 | 5 | 2 | true | false | false | false | false | false | low |
59,915,227 | App crash on last item deleted in RecyclerView | <p>I'm using a RecyclerView and populating data from the database and storing it into arrayLists. i've also added an onLongClickListener() to the recycler view which removes the long clicked row. Everything works fine but when I delete the last the app crashes and i get Java.Lang.IndexOutOfBoundsException index:0 size:... | I'm using a RecyclerView and populating data from the database and storing it into arrayLists. i've also added an onLongClickListener() to the recycler view which removes the long clicked row. Everything works fine but when I delete the last the app crashes and i get Java.Lang.IndexOutOfBoundsException index:0 size:0. ... | android|android-recyclerview | 2 | 2020-01-26T03:09:14.277Z | 2,020 | 1 | 3 | 6 | 1,130 | 1 | 400 | 46 | 2 | 2 | true | false | false | false | false | false | low |
59,915,234 | Android problem with applying language programmatically in Kotlin | <p>I was making app's language able to be changed by users. So, I added language configuration thing to my app. I added spinner to configuration screen, and spinner has list of language (Auto, English, Chinese, etc). I save selected item's position in shared preference (default value is 0 which is Auto). In every activ... | I was making app's language able to be changed by users. So, I added language configuration thing to my app. I added spinner to configuration screen, and spinner has list of language (Auto, English, Chinese, etc). I save selected item's position in shared preference (default value is 0 which is Auto). In every activity... | java|android|kotlin | 3 | 2020-01-26T03:11:44.877Z | 2,020 | 1 | 3 | 6 | 874 | 0 | 2,144 | 65 | 3 | 5 | true | true | false | false | false | false | low |
59,915,281 | kotlin.math.sin(Double) <> Windows Calculator Sin output | <p>The kotlin.math.sin(Double) result is not same with the windows scientific calculator result. Im still a beginner in kotlin Android Studio. Please help.</p>
<p>Below are the screenshots of my problem.</p>
<p><strong>
<a href="https://i.stack.imgur.com/CiGb1.jpg" rel="nofollow noreferrer">Windows Scientific calcula... | The kotlin.math.sin(Double) result is not same with the windows scientific calculator result. Im still a beginner in kotlin Android Studio. Please help. Below are the screenshots of my problem. Windows Scientific calculator Output: 0.17364817766693034885171662676931 Android Studio (Kotlin) Output: -0.5440211108893698 T... | android|kotlin | 1 | 2020-01-26T03:22:38.613Z | 2,020 | 1 | 3 | 6 | 246 | 1 | 343 | 56 | 2 | 0 | false | false | false | false | false | false | low |
59,915,380 | How to sum json value after sorted in java android? | <p>Following Json needs to group by city to get array along with count if city have same array value. after that I want to sort the 2 biggest and the rest are added together, but how to do it?</p>
<pre><code>{
"data": [
{
"ID": 47,
"city": "Jakarta"
},
{
"ID"... | Following Json needs to group by city to get array along with count if city have same array value. after that I want to sort the 2 biggest and the rest are added together, but how to do it? [CODE] and i have tried so far is group by city to get array [CODE] and the result is : Bogor = 2 Jakarta = 3 Bali = 1 Lampung = 1... | java|android|arrays|json|sorting | 0 | 2020-01-26T03:42:37.560Z | 2,020 | 1 | 3 | 6 | 78 | 1 | 384 | 51 | 5 | 2 | true | false | false | false | false | false | zero |
59,915,394 | Xamarin forms custom splash screen | <p>On my Splash screen, I want to put the App version for both Android and iOS at the bottom<a href="https://i.stack.imgur.com/KtueH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KtueH.png" alt="enter image description here"></a></p> | On my Splash screen, I want to put the App version for both Android and iOS at the bottom | android|ios|xamarin.forms|xamarin.android|xamarin.ios | 0 | 2020-01-26T03:45:30.427Z | 2,020 | 1 | 3 | 6 | 2,961 | 3 | 89 | 34 | 5 | 0 | false | false | true | false | false | false | zero |
59,915,600 | BottomSheet + ViewPager2 drag to hide not works | <p>I got troubles and I think it is <code>CoordinatorLayout</code>'s fault but not sure. I'm using <code>ViewPager2</code> inside a <code>ConstraintLayout</code> and I use the <code>CoordinatorLayout</code> like <code>BottomSheet</code>. But when I drag to hide it not works good. I replaced the <code>ViewPager2</code> ... | I got troubles and I think it is CoordinatorLayout 's fault but not sure. I'm using ViewPager2 inside a ConstraintLayout and I use the CoordinatorLayout like BottomSheet . But when I drag to hide it not works good. I replaced the ViewPager2 by ViewPager and it works well. I hope you can help me. This is my XML file: [C... | android|android-coordinatorlayout|bottom-sheet|android-viewpager2 | 14 | 2020-01-26T04:38:35.257Z | 2,020 | 1 | 4 | 6 | 933 | 1 | 324 | 47 | 4 | 1 | true | false | false | false | true | false | medium |
59,915,721 | Why does my emulator not show anything despite no errors being shown? | <p>I'm currently trying to figure out how to create a <code>ListView</code> together with a bottom navigation bar, however, though after running the emulator it did not show anything. Why is this so?</p>
<p><strong>This is my activity_main.xml file</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
... | I'm currently trying to figure out how to create a ListView together with a bottom navigation bar, however, though after running the emulator it did not show anything. Why is this so? This is my activity_main.xml file [CODE] This is my nav_graph.xml file [CODE] This is my home.xml file [CODE] This is my fragment_home.x... | java|android|android-studio|android-fragments | 2 | 2020-01-26T05:07:15.673Z | 2,020 | 1 | 5 | 6 | 182 | 1 | 584 | 69 | 4 | 10 | true | false | false | false | false | false | low |
59,915,736 | onLocationResult is not getting called | <p>I am following a tutorial where I am developing an app like Uber. When someone logs into the app as a diver the onLocationResult method should be called and in this method a record for the driver is placed in a firebase table called DriversAvailable. For some reason, this table is not getting created in my DB and I'... | I am following a tutorial where I am developing an app like Uber. When someone logs into the app as a diver the onLocationResult method should be called and in this method a record for the driver is placed in a firebase table called DriversAvailable. For some reason, this table is not getting created in my DB and I'm p... | java|android|firebase|google-maps | 1 | 2020-01-26T05:10:08.250Z | 2,020 | 1 | 5 | 6 | 131 | 0 | 804 | 38 | 4 | 1 | true | true | false | false | false | false | low |
59,915,737 | How can I get the longitude and lattitude of a specific address not the current address | <p>I know how to get the current location longitude and latitude and save it in Geofire, but how can I get the longitude and latitude of a specific address and save that instead. I test the code below but nothing is being saved. </p>
<p>What am I doing wrong?</p>
<pre><code>String tx7=txt7.getText().toString();
Stri... | I know how to get the current location longitude and latitude and save it in Geofire, but how can I get the longitude and latitude of a specific address and save that instead. I test the code below but nothing is being saved. What am I doing wrong? [CODE] | android|firebase|geofire|geocoder | 0 | 2020-01-26T05:10:14.440Z | 2,020 | 1 | 5 | 6 | 60 | 1 | 255 | 87 | 4 | 1 | true | false | false | false | false | false | zero |
59,915,767 | Change color in second activity using button in main activity = crashes | <p>I'm new to coding and I've been working on this (seemingly simple) task for hours, have tried posts on forums but to no avail.</p>
<p>I have buttons on my main activity and want to change the background color of the 2nd activity (LampActivity) based on a color assignment in the button's intent. </p>
<p>The followi... | I'm new to coding and I've been working on this (seemingly simple) task for hours, have tried posts on forums but to no avail. I have buttons on my main activity and want to change the background color of the 2nd activity (LampActivity) based on a color assignment in the button's intent. The following code results in a... | java|android|android-intent|android-activity|background-color | 0 | 2020-01-26T05:16:00.037Z | 2,020 | 1 | 5 | 6 | 109 | 2 | 4,631 | 71 | 5 | 4 | true | false | false | false | false | false | zero |
59,915,782 | Does a mapping of icon to key description exist for IntelliJ based IDEs? | <p>Where can one find a reference that shows the mapping of IntelliJ (JetBrains) key icons to textual name or key labels. I frequently see key icons in Tip of the Day windows that do not match any key on the keyboard I happen to be using at the time. The ESC key icon baffled me today. Is there a "describe key" tool in ... | Where can one find a reference that shows the mapping of IntelliJ (JetBrains) key icons to textual name or key labels. I frequently see key icons in Tip of the Day windows that do not match any key on the keyboard I happen to be using at the time. The ESC key icon baffled me today. Is there a "describe key" tool in the... | android-studio|intellij-idea|jetbrains-ide | 0 | 2020-01-26T05:20:16.437Z | 2,020 | 1 | 5 | 6 | 31 | 0 | 458 | 72 | 3 | 0 | false | true | false | false | false | false | zero |
59,915,828 | Can I replace fragment layout outside of the fragment activity | <p>I am working on app and i have issue when i click on menu button favorite list open but i want access that from main activity is that possible like this in image: <a href="https://i.stack.imgur.com/TFhI5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TFhI5.png" alt="enter image description here">... | I am working on app and i have issue when i click on menu button favorite list open but i want access that from main activity is that possible like this in image: | android|android-layout|android-fragments|sharedpreferences | 0 | 2020-01-26T05:29:48.347Z | 2,020 | 1 | 5 | 6 | 273 | 3 | 162 | 62 | 4 | 0 | false | false | false | false | false | false | zero |
59,915,900 | How to access hyperlink inside pdf? | <p>I want to show pdf inside android app.that pdf contains images with hyperlink when i click that image it will load a webview and show A webpage.it works in google chrome.but while showing pdf via webview its not working.</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protecte... | I want to show pdf inside android app.that pdf contains images with hyperlink when i click that image it will load a webview and show A webpage.it works in google chrome.but while showing pdf via webview its not working. [CODE] | java|android|pdf | 0 | 2020-01-26T05:48:32.907Z | 2,020 | 1 | 5 | 6 | 28 | 1 | 227 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
59,915,905 | Unable to detect adb version, exit value: 0xc0000135 | <ol>
<li>android studio latest vision i have use.</li>
<li>HEXM install already in my pc.</li>
<li>android virtual device not create its show unknown problem.</li>
<li>ok so i use genymoiton emulator but android studio not dected it.</li>
</ol>
<p>Unable to detect adb version, exit value: 0xc0000135. ADB depends on th... | android studio latest vision i have use. HEXM install already in my pc. android virtual device not create its show unknown problem. ok so i use genymoiton emulator but android studio not dected it. Unable to detect adb version, exit value: 0xc0000135. ADB depends on the Windows Universal C Runtime, which is usually ins... | java|android|android-studio | 5 | 2020-01-26T05:49:41.067Z | 2,020 | 1 | 5 | 6 | 11,681 | 4 | 561 | 52 | 3 | 0 | false | false | true | true | false | false | low |
59,915,915 | Error : Could not find com.android.tools.build:gradle:3.5.3 | <p>I'm totally new to Android Studio and came up to this error that says it can not download gradle-3.5.1.pom and gradle-3.5.3.jar from Google or jcenter repositories. But when I tried downloading them manually it was easy and straight forward though.</p>
<p>This is what I have: </p>
<pre><code>buildscript {
repo... | I'm totally new to Android Studio and came up to this error that says it can not download gradle-3.5.1.pom and gradle-3.5.3.jar from Google or jcenter repositories. But when I tried downloading them manually it was easy and straight forward though. This is what I have: [CODE] and my errors are: [CODE] | java|android|android-studio|gradle | 2 | 2020-01-26T05:51:56.440Z | 2,020 | 1 | 5 | 6 | 2,388 | 2 | 302 | 59 | 4 | 2 | true | false | false | false | false | false | low |
59,915,955 | QR Code generated by libraries are not readable by QR Scanners - looking for reliable way to generate QR code | <p>I am trying to generate qr code in my application.</p>
<p>I tried several answers on stack overflow</p>
<p><a href="https://stackoverflow.com/q/54608164/9640177">How can I generate multiple values QR code in android studio</a>
<a href="https://stackoverflow.com/q/28827407/9640177">Generate designer 2d QR code in a... | I am trying to generate qr code in my application. I tried several answers on stack overflow How can I generate multiple values QR code in android studio Generate designer 2d QR code in android I could generate QR code using this library - https://github.com/kenglxn/QRGen But the qr code scanner can not read the qr cod... | android|qr-code | 0 | 2020-01-26T06:00:26.410Z | 2,020 | 1 | 6 | 6 | 211 | 1 | 446 | 109 | 2 | 0 | false | false | false | false | false | false | zero |
59,915,991 | Better way to implement network thread than using a loader or AsyncTask | <p>The Loader class is depreciated and while overriding the methods for network call the callback function are not performing as aspected. </p>
<p>I've implemented the "implements LoaderCallbacks>"</p>
<pre><code> ConnectionManager connMgr =(ConnectionManager)getSystemService(Context.CONNECTIVITY_SERVICE);
... | The Loader class is depreciated and while overriding the methods for network call the callback function are not performing as aspected. I've implemented the "implements LoaderCallbacks>" [CODE] | java|android|loader | 0 | 2020-01-26T06:10:11.277Z | 2,020 | 1 | 6 | 6 | 41 | 0 | 193 | 71 | 3 | 1 | true | true | false | false | false | false | zero |
59,916,097 | How can I show continue reading option in blog app? | <p>I'm creating a blog app. In that there will be a lots of post in recycler view. Now all blogs are so long with lots of images and it's description. </p>
<p>What I want is in my main activity inside recyclerview, I need to show all post with it's header image and a bit descriptiom, and if user want to read more, the... | I'm creating a blog app. In that there will be a lots of post in recycler view. Now all blogs are so long with lots of images and it's description. What I want is in my main activity inside recyclerview, I need to show all post with it's header image and a bit descriptiom, and if user want to read more, then it should ... | android|android-recyclerview | 0 | 2020-01-26T06:31:16.033Z | 2,020 | 1 | 6 | 6 | 52 | 2 | 539 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
59,916,171 | How to navigate one page to another page using React Native? | <p>my scenario, I am trying to navigate <code>login.js</code> page to <code>home.js</code> page. I need to implement <code>navigation</code> but need to hide into login.js but need to show into home.js. Here, login button click to navigate home page. The navigation should support iOS and Android both platform.how to ac... | my scenario, I am trying to navigate login.js page to home.js page. I need to implement navigation but need to hide into login.js but need to show into home.js. Here, login button click to navigate home page. The navigation should support iOS and Android both platform.how to achieve this? App.js [CODE] Login.js [CODE] ... | android|ios|react-native | 1 | 2020-01-26T06:46:17.873Z | 2,020 | 1 | 6 | 6 | 9,232 | 1 | 339 | 60 | 3 | 3 | true | false | true | false | false | false | low |
59,916,190 | Lock the user in an activity | <p>My app contains lessons and a quiz about those lessons.</p>
<p>I want to implement a quiz in my app wherein if they would like to take it, they must agree on one condition that they aren't allowed to go back to the lessons.</p>
<p>Meaning to say, I want them to be locked in that particular activity which has the q... | My app contains lessons and a quiz about those lessons. I want to implement a quiz in my app wherein if they would like to take it, they must agree on one condition that they aren't allowed to go back to the lessons. Meaning to say, I want them to be locked in that particular activity which has the quiz even if they tu... | java|android|locking | 0 | 2020-01-26T06:49:23.983Z | 2,020 | 1 | 6 | 6 | 27 | 0 | 443 | 28 | 3 | 0 | false | true | false | false | false | false | zero |
59,916,219 | How do i access RecyclerView's row's layout file's? | <p>I have a switch widget in my RecyclerView's row. I want to access that widget to setOnCheckedChangeListener on the switch So when I use findViewById on the switch within mainActivity it works fine. but when I execute the code the app crashes with this error.</p>
<pre><code>java.lang.RuntimeException: Unable to star... | I have a switch widget in my RecyclerView's row. I want to access that widget to setOnCheckedChangeListener on the switch So when I use findViewById on the switch within mainActivity it works fine. but when I execute the code the app crashes with this error. [CODE] But why NullPointerException?? Here's the code snippet... | android|android-recyclerview | 1 | 2020-01-26T06:54:48.387Z | 2,020 | 1 | 6 | 6 | 61 | 1 | 408 | 51 | 2 | 4 | true | false | false | false | false | false | low |
59,916,267 | java.util.ConcurrentModificationException in activity onCreate | <p>In a recent release where I added MoPub via Admob ad mediation I am seeing a bunch of ConcurrentModificationException in crash logs. It all seems to be native code and I am on the latest version of all ad related and google/android related libraries. Anyone run in to this before?</p>
<pre><code>java.lang.RuntimeExc... | In a recent release where I added MoPub via Admob ad mediation I am seeing a bunch of ConcurrentModificationException in crash logs. It all seems to be native code and I am on the latest version of all ad related and google/android related libraries. Anyone run in to this before? [CODE] This is what the code looks like... | java|android|admob|mopub | 51 | 2020-01-26T07:04:09.563Z | 2,020 | 1 | 7 | 6 | 3,752 | 5 | 434 | 62 | 4 | 3 | true | false | true | false | true | false | high |
59,916,331 | ArrayIndexOutOfBoundsException while rebuilding the project | <p>I have a problem adding a jar file to android studio. I try to do these steps from <a href="https://stackoverflow.com/questions/25660166/how-to-add-a-jar-in-external-libraries-in-android-studio">this case</a></p>
<p>At first, I add the jar file on the libs folder in the project folder, not in the app module. After ... | I have a problem adding a jar file to android studio. I try to do these steps from this case At first, I add the jar file on the libs folder in the project folder, not in the app module. After I add it, I realize it should be in folder libs in module app, so I move it to that folder. After add the jar file, i get this ... | android|gradle|jar | 0 | 2020-01-26T07:18:21.153Z | 2,020 | 1 | 7 | 6 | 90 | 0 | 469 | 59 | 3 | 1 | true | true | false | false | false | false | zero |
59,916,378 | Flutter: Geolocator return the method 'compareTo' was called on null | <p>Hi i am trying to get the user location from my HomePage and i don't know why but when the user navigate to Home after a click button the error:</p>
<blockquote>
<p>The method 'compareTo' was called on null. Receiver: null Tried calling: compareTo(-90.0)</p>
</blockquote>
<p>(I think it's because <code>_latitude... | Hi i am trying to get the user location from my HomePage and i don't know why but when the user navigate to Home after a click button the error: The method 'compareTo' was called on null. Receiver: null Tried calling: compareTo(-90.0) (I think it's because _latitude && _longitude are not defined at that moment but what... | android|ios|flutter|dart|geolocation | 1 | 2020-01-26T07:26:30.653Z | 2,020 | 1 | 7 | 6 | 1,361 | 1 | 384 | 68 | 5 | 1 | true | false | false | false | false | false | low |
59,916,468 | why can not update my application in android | <p>recently I get <code>Installed blocked : The app permissions error</code> error when updating my application(in app updating).
I know my app signatures are same because I can install new app manually. </p>
<p>can some know why this happen?</p>
<p>Do you think I need to grant <code>android.permission.INSTALL_PACKAG... | recently I get Installed blocked : The app permissions error error when updating my application(in app updating). I know my app signatures are same because I can install new app manually. can some know why this happen? Do you think I need to grant android.permission.INSTALL_PACKAGES while I granted android.permission.R... | android|android-update-app | 0 | 2020-01-26T07:42:37.217Z | 2,020 | 1 | 7 | 6 | 690 | 1 | 502 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
59,916,534 | frezzing ui app when set adapter to RecyclerView or when notifyDataSetChanged | <p>i have list with 30 items . when i set adapter to RecyclerView<br>
or when notifyDataSetChanged method called , the ui of app will
frezzing for a few seconds.</p>
<p>here my code
adapater and set :</p>
<pre><code> public AdapterBarberWorkTimeDetails(List<BarberWorkPeriodItems> items, int itemLayout... | i have list with 30 items . when i set adapter to RecyclerView or when notifyDataSetChanged method called , the ui of app will frezzing for a few seconds. here my code adapater and set : [CODE] View v = LayoutInflater.from(parent.getContext()).inflate(itemLayout, parent, false); return new ViewHolder(v); } [CODE] // my... | java|android|adapter | 0 | 2020-01-26T07:57:16.917Z | 2,020 | 1 | 7 | 6 | 38 | 0 | 353 | 77 | 3 | 3 | true | true | false | false | false | false | zero |
59,916,619 | How to Add Bottom Sheet | <p>I am trying to have a Recycler View with Cards within a bottom sheet where the user "scrolls" up to reveal all of the Cards but I am having issues in accomplishing this. How can I have it so that the Recycler View with Cards is inside the bottom sheet? Any help is appreciated-I've been at this for days and cannot f... | I am trying to have a Recycler View with Cards within a bottom sheet where the user "scrolls" up to reveal all of the Cards but I am having issues in accomplishing this. How can I have it so that the Recycler View with Cards is inside the bottom sheet? Any help is appreciated-I've been at this for days and cannot figur... | android|android-fragments|kotlin|android-cardview | 0 | 2020-01-26T08:13:25.963Z | 2,020 | 1 | 8 | 6 | 1,159 | 3 | 586 | 23 | 4 | 4 | true | false | false | false | false | false | zero |
59,916,672 | How to link phone auth with email auth firebase android | <p>i am creating application where user have to verify his phone no and has to signup with his email and password and other filed like dob and all. first user will verify phone no so i have used phone no authentication and once done user will navigate to email and password signup. so here user will signup with email au... | i am creating application where user have to verify his phone no and has to signup with his email and password and other filed like dob and all. first user will verify phone no so i have used phone no authentication and once done user will navigate to email and password signup. so here user will signup with email authe... | android|firebase|firebase-authentication | 1 | 2020-01-26T08:21:05.447Z | 2,020 | 1 | 8 | 6 | 308 | 1 | 472 | 55 | 3 | 2 | true | false | false | false | false | false | low |
59,916,743 | Build failure app:checklDebugDuplicateClasses | <p>I am trying to make a Google map API based activity that will show current location.</p>
<p>I also have tons of code and I couldn't find the problem.</p>
<p>I am getting the error on build output: </p>
<blockquote>
<p><a href="https://pastebin.com/WhfLu1uS" rel="nofollow noreferrer">https://pastebin.com/WhfLu1u... | I am trying to make a Google map API based activity that will show current location. I also have tons of code and I couldn't find the problem. I am getting the error on build output: https://pastebin.com/WhfLu1uS Code: [CODE] I suddenly got this error when I saw a video on youtube that explains the code. I am looking t... | java|android|android-studio|compiler-errors|recompile | -1 | 2020-01-26T08:33:20.560Z | 2,020 | 1 | 8 | 6 | 61 | 1 | 370 | 45 | 5 | 1 | true | false | false | false | false | true | negative |
59,916,936 | Flutter how to return data from CupertinoTimerPicker? | <p>I was looking into returning data from the CupertinoTimerPicker but I can only find people using navigator.pop to return the data but I didn't use a navigator to push the screen. What is the correct way to return the data back?</p>
<pre><code>import 'package:flutter/material.dart';
import 'package:flutter/cupertino... | I was looking into returning data from the CupertinoTimerPicker but I can only find people using navigator.pop to return the data but I didn't use a navigator to push the screen. What is the correct way to return the data back? [CODE] | android|flutter|dart|flutter-layout | 1 | 2020-01-26T09:06:12.343Z | 2,020 | 1 | 9 | 6 | 858 | 1 | 234 | 53 | 4 | 1 | true | false | false | false | false | false | low |
59,917,021 | Vibration not ocurring on React-Native Android Device when unplugged | <pre><code>import { Vibration } from 'react-native';
const handleThrottledShake = () => {
Vibration.vibrate(500);
console.log('ran vibration');
}
</code></pre>
<p>I'm currently developing a react-native app and running into some trouble. When connecting my phone via a usb cable, vibration works. However, when ... | [CODE] I'm currently developing a react-native app and running into some trouble. When connecting my phone via a usb cable, vibration works. However, when I unplug it, everything else works, including console.log('ran vibration'); but no vibration actually occurs. The docs say say that vibration doesn't work on an emul... | android|react-native|android-vibration | 1 | 2020-01-26T09:23:57.083Z | 2,020 | 1 | 9 | 6 | 1,029 | 2 | 462 | 68 | 3 | 1 | true | false | false | false | false | false | low |
59,917,056 | What is Android mini_emulator image? | <p>When building Android,</p>
<pre><code>lunch
</code></pre>
<p>possible images are:</p>
<pre><code> ...
5. aosp_x86-eng
6. aosp_x86_64-eng
...
16. mini_emulator_x86-userdebug
17. mini_emulator_x86_64-userdebug
...
</code></pre>
<p>What is exactly mini_emulator? What is the difference between mini_emulator an... | When building Android, [CODE] possible images are: [CODE] What is exactly mini_emulator? What is the difference between mini_emulator and aosp_x86? | android-source | 0 | 2020-01-26T09:29:31.087Z | 2,020 | 1 | 9 | 6 | 591 | 1 | 147 | 36 | 1 | 2 | true | false | false | false | false | false | zero |
59,917,078 | Android : Unhide a snapped toolbar programmatically | <p>The toolbar is hidden when the screen is scrolled :</p>
<pre><code> <androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|snap">
</code></pre>
<p>How can I unhide ... | The toolbar is hidden when the screen is scrolled : [CODE] How can I unhide it programmatically (i.e. when I click a button) ? | android|scroll|hide|toolbar | -1 | 2020-01-26T09:33:03.333Z | 2,020 | 1 | 9 | 6 | 92 | 2 | 126 | 51 | 4 | 1 | true | false | false | false | false | true | negative |
59,917,088 | App becomes slow after sometime scrolling becomes very lagy | <p>Hello i have Mainactivity in which java code is fully empty only thing i am doing in xml is using scroll view with list lf multiple textviews
But after opening Activity B with button click multiple times and than coming back to Mainactivity this makes Mainactivity scrolling very slow and lagy what should i do it is ... | Hello i have Mainactivity in which java code is fully empty only thing i am doing in xml is using scroll view with list lf multiple textviews But after opening Activity B with button click multiple times and than coming back to Mainactivity this makes Mainactivity scrolling very slow and lagy what should i do it is so ... | android|android-activity|scroll|textview | -2 | 2020-01-26T09:34:09.410Z | 2,020 | 1 | 9 | 6 | 373 | 1 | 499 | 59 | 4 | 2 | true | false | false | false | false | true | negative |
59,917,149 | How to get all the same views type in the layout? | <p>Is there function in android like <code>getByType()</code>?</p>
<p>How can we collect all the views with the same type (like all the checkbox)?</p>
<p>Thanks.</p> | Is there function in android like getByType() ? How can we collect all the views with the same type (like all the checkbox)? Thanks. | android | -2 | 2020-01-26T09:44:04.807Z | 2,020 | 1 | 9 | 6 | 46 | 1 | 132 | 49 | 1 | 0 | false | false | false | false | false | true | negative |
59,917,307 | getting mobile network ip address | <p>hello i'm using this method to get mobile network IP address </p>
<pre><code>public static String getMobileIPAddress() {
try {
List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
for (NetworkInterface intf : interfaces) {
List<InetA... | hello i'm using this method to get mobile network IP address [CODE] but the return value does not seems to be IP : fe80::dc19:94ff:fe6f:ae7b%dummy0 | android | 1 | 2020-01-26T10:07:38.760Z | 2,020 | 1 | 10 | 6 | 105 | 2 | 147 | 33 | 1 | 1 | true | false | false | false | false | false | low |
59,917,366 | scan more than 10 images in one bitmap using ML Kit | <p>I am using Firebase Ml Kit on Android (firebase-ml-vision-barcode) to process bitmaps of scanned student tests with aztez and qr codes that has a lot of codes on them evrything works well except that it gets back always not more than 10 barcode even if there are 40 on one bitmap, is there a way to change detector o... | I am using Firebase Ml Kit on Android (firebase-ml-vision-barcode) to process bitmaps of scanned student tests with aztez and qr codes that has a lot of codes on them evrything works well except that it gets back always not more than 10 barcode even if there are 40 on one bitmap, is there a way to change detector optio... | android|barcode-scanner | 0 | 2020-01-26T10:16:04.787Z | 2,020 | 1 | 10 | 6 | 290 | 1 | 1,351 | 51 | 2 | 0 | false | false | false | false | false | false | zero |
59,917,398 | ArrayList adapter getting wrong data in listview | <p>Anyone know why i am get wrong data in my AdapterClass when am using listview to populate the adapter here is the code I am using</p>
<pre><code>public class SchoolAdapter extends ArrayAdapter<SchoolClass> {
ArrayList<SchoolClass> schoolclass;
private SchoolAdapter schoolAdapter;
public ... | Anyone know why i am get wrong data in my AdapterClass when am using listview to populate the adapter here is the code I am using [CODE] Note: When i use listview.setOnItemClickListerner i get the correct data where it should be but when i use any of the click the item of the first value in the adapter i get the result... | android|json|android-listview|android-arrayadapter | 0 | 2020-01-26T10:20:29.077Z | 2,020 | 1 | 10 | 6 | 88 | 2 | 789 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
59,917,416 | Why Toast doesn't work with MaterialComponent theme? | <p>When i use default <code>AppCompat</code>theme my toast works, but when i use Material theme, there error appears.</p>
<p><code>Binary XML file line #27: Error inflating class TextView</code></p>
<p>And when i change <code>Toast</code> to <code>Snackbar</code> error disappears!!</p> | When i use default AppCompat theme my toast works, but when i use Material theme, there error appears. Binary XML file line #27: Error inflating class TextView And when i change Toast to Snackbar error disappears!! | android | 0 | 2020-01-26T10:23:49.697Z | 2,020 | 1 | 10 | 6 | 49 | 0 | 214 | 52 | 1 | 0 | false | true | false | false | false | false | zero |
59,917,582 | I am getting the error 'WebViewFactory: No such method' in my signed apk | <p>When i run the app in debug mode it works fine. But when i build the released apk for my app, it gives me the error of WebViewFactory.I don't have any webview in my app. The error is shown below</p>
<p><code>2020-01-26 15:41:50.757 29072-29072/com.muhana.uniwork E/WebViewFactory: No such method for
getDefinedW... | When i run the app in debug mode it works fine. But when i build the released apk for my app, it gives me the error of WebViewFactory.I don't have any webview in my app. The error is shown below 2020-01-26 15:41:50.757 29072-29072/com.muhana.uniwork E/WebViewFactory: No such method for getDefinedWebViewPackageName: jav... | android|android-studio|webview | 0 | 2020-01-26T10:46:17.823Z | 2,020 | 1 | 10 | 6 | 387 | 1 | 381 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
59,917,650 | Room : select query doesn't retrieve an object's attribute | <p>My android app is offering user accounts. A User is represnetd by the following class :</p>
<pre><code>public class User implements Parcelable {
@NonNull
@ColumnInfo(name = "user_Id")
@PrimaryKey (autoGenerate = true)
private Long userId;
private String displayedName;
private String email;
... | My android app is offering user accounts. A User is represnetd by the following class : [CODE] The PhotoId references the Photo : [CODE] When I save a user account, I save the user, then save the photo and finally update the user whith the photo id generated. I use theses queries : [CODE] The creation process seems 100... | android|android-room | 0 | 2020-01-26T10:58:01.287Z | 2,020 | 1 | 10 | 6 | 147 | 0 | 676 | 58 | 2 | 4 | true | true | false | false | false | false | zero |
59,917,660 | Wake-lock works in browser, but not as PWA | <p>I have a web app that uses wake lock (see below) - I have registered the origin trial and added the code to my index.html. - see <a href="https://lucid-franklin-4016c2.netlify.com/" rel="nofollow noreferrer">https://lucid-franklin-4016c2.netlify.com/</a></p>
<p>When I load the page in the latest version of Android ... | I have a web app that uses wake lock (see below) - I have registered the origin trial and added the code to my index.html. - see https://lucid-franklin-4016c2.netlify.com/ When I load the page in the latest version of Android Chrome the phone stays awake, and the text-to-speech messages I use for this running app work ... | google-chrome|progressive-web-apps|wakelock|android-chrome | 4 | 2020-01-26T10:59:45.540Z | 2,020 | 1 | 10 | 6 | 1,264 | 1 | 831 | 42 | 4 | 1 | true | false | false | false | false | false | low |
59,917,696 | I need admob smart banner to be on bottom of app (using XML if possible) | <p>I want to make admob smart banner to be on bottom of app using xml code if possible (without this orange space on the bottom). Btw that orange color is my app background.</p>
<p>Here's my ad in xml:</p>
<pre><code><com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="... | I want to make admob smart banner to be on bottom of app using xml code if possible (without this orange space on the bottom). Btw that orange color is my app background. Here's my ad in xml: [CODE] That's how it looks on smartphone And that's how it looks in android studio: And that's when other ad size is loaded: | java|android|xml|admob | 0 | 2020-01-26T11:04:19.307Z | 2,020 | 1 | 11 | 6 | 90 | 1 | 316 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
59,917,729 | SQLite - migrating linked data, how to avoid hard-coded primary keys | <p>I'm writing SQL migration for SQLite DB and I have linked tables, so I have to insert 'root' table row first and then to insert 'children' rows which will use ID for 'root' row. </p>
<p>One option could be to hard-code primary key of the 'root' row and reuse it later in all dependent rows, but I don't like to risk ... | I'm writing SQL migration for SQLite DB and I have linked tables, so I have to insert 'root' table row first and then to insert 'children' rows which will use ID for 'root' row. One option could be to hard-code primary key of the 'root' row and reuse it later in all dependent rows, but I don't like to risk having 'dupl... | sql|sqlite|android-room | 0 | 2020-01-26T11:08:15.663Z | 2,020 | 1 | 11 | 6 | 69 | 0 | 973 | 68 | 3 | 1 | true | true | false | false | false | false | zero |
59,917,783 | Firebase Authenticate Using Apple in Unity on Android without requiring login details each time | <p>I have followed the following guide to get <em>Sign in with Apple</em> functioning on Android using Firebase: <a href="https://firebase.google.com/docs/auth/android/apple" rel="nofollow noreferrer">https://firebase.google.com/docs/auth/android/apple</a></p>
<p>When a user first logs into my app with Sign in with Ap... | I have followed the following guide to get Sign in with Apple functioning on Android using Firebase: https://firebase.google.com/docs/auth/android/apple When a user first logs into my app with Sign in with Apple they will be required to enter their login details and authorize my app. However, it seems that if the app i... | android|unity3d|firebase-authentication|persistence|sign-in-with-apple | 1 | 2020-01-26T11:16:20.133Z | 2,020 | 1 | 11 | 6 | 460 | 1 | 700 | 95 | 5 | 0 | false | false | false | false | false | false | low |
59,917,802 | Unable to start receiver, app is in the background. AlarmReceiver to fire Notification | <p>In my app, I use AlarmManager to start IntentService that accesses internal database of quotes and selects one randomly, then fires a notification with that quote.</p>
<p>It is working perfectly on my phone which is Android 9, OnePlus6. But I receive lots of crashlytics data from other users stating:</p>
<pre><cod... | In my app, I use AlarmManager to start IntentService that accesses internal database of quotes and selects one randomly, then fires a notification with that quote. It is working perfectly on my phone which is Android 9, OnePlus6. But I receive lots of crashlytics data from other users stating: [CODE] I presume, it is b... | android|android-service|android-notifications|android-intentservice | 2 | 2020-01-26T11:17:57.663Z | 2,020 | 1 | 11 | 6 | 1,180 | 2 | 1,013 | 86 | 4 | 4 | true | false | false | false | false | false | low |
59,917,839 | Load Imageview in ViewHolder | <p>So I am trying to load my Image from the databse into my ImageView in my ViewHolader. The Way I do it an error appears: E/AndroidRuntime: FATAL EXCEPTION: main!
I am trying to load it with Picasso, but it doens't let me.
Whats the right way to show it ? </p>
<pre><code>public void onBindViewHolder(@NonNull ViewHol... | So I am trying to load my Image from the databse into my ImageView in my ViewHolader. The Way I do it an error appears: E/AndroidRuntime: FATAL EXCEPTION: main! I am trying to load it with Picasso, but it doens't let me. Whats the right way to show it ? [CODE] | java|android|picasso | 0 | 2020-01-26T11:23:44.787Z | 2,020 | 1 | 11 | 6 | 58 | 1 | 260 | 28 | 3 | 1 | true | false | false | false | false | false | zero |
59,917,894 | How to create and link static library on android | <p>I have a c++ file and I want to link it my kotlin app but I dont want to link it .so file. I want to generat .a file and link it to my project. I want to add cpp files on my project because I have not static file. But android studio havenot generated static file. And I got an error. If I build libraries with SHARED ... | I have a c++ file and I want to link it my kotlin app but I dont want to link it .so file. I want to generat .a file and link it to my project. I want to add cpp files on my project because I have not static file. But android studio havenot generated static file. And I got an error. If I build libraries with SHARED par... | android|c++|cmake|android-ndk | 0 | 2020-01-26T11:30:37.953Z | 2,020 | 1 | 11 | 6 | 446 | 0 | 599 | 48 | 4 | 2 | true | true | false | false | false | false | zero |
59,917,901 | System.TypeInitializationException: 'The type initializer for 'SQLite.SQLiteConnection' threw an exception.' | <p>When i add the <strong>Sql-net-pcl</strong> library in my xamarin app, and compile, then it showing me an exception and saying that your application is in break mode.</p>
<p><strong>Exception :</strong></p>
<pre><code> `System.TypeInitializationException: 'The type initializer for 'SQLite.SQLiteConnection' thr... | When i add the Sql-net-pcl library in my xamarin app, and compile, then it showing me an exception and saying that your application is in break mode. Exception : [CODE] ISqLiteDb : [CODE] SqLiteDb : [CODE] And here i am opening the connection and creating the table. MainPage.Xaml.cs : [CODE] | c#|sql|xamarin|xamarin.forms|xamarin.android | 0 | 2020-01-26T11:31:57.487Z | 2,020 | 1 | 11 | 6 | 196 | 0 | 292 | 108 | 5 | 4 | true | true | false | false | false | false | zero |
59,917,954 | imageView is not fitting correctly to screen | <p>I'm quite new writting android apps and i'm facing an issue with my ImageView nto displaying my full picture even is there space on the screen left.
Like it seem my view has some left and right padding event if it is not the case.</p>
<p><strong>Behaviour :</strong></p>
<p>Here is my original picture :
<a href="ht... | I'm quite new writting android apps and i'm facing an issue with my ImageView nto displaying my full picture even is there space on the screen left. Like it seem my view has some left and right padding event if it is not the case. Behaviour : Here is my original picture : Here you can find the picture that is actually ... | java|android|imageview | 0 | 2020-01-26T11:39:19.053Z | 2,020 | 1 | 11 | 6 | 47 | 1 | 572 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
59,917,976 | How to see firebase analytics events and filter item name? | <p><a href="https://i.stack.imgur.com/HKyFC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HKyFC.jpg" alt="my code"></a></p>
<p>Suppose I call <code>logContentAnalytics(navigation-drawer)</code> . How can i see this parameter in firebase console?</p> | Suppose I call logContentAnalytics(navigation-drawer) . How can i see this parameter in firebase console? | android|firebase|firebase-analytics | 0 | 2020-01-26T11:42:35.327Z | 2,020 | 1 | 11 | 6 | 108 | 1 | 105 | 58 | 3 | 0 | false | false | false | false | false | false | zero |
59,917,986 | I am unable to write data to Firebase Firestore | <p>Any suggestions about why it is happening. </p>
<p>I have used in the below mentioned manner:</p>
<pre><code>FirebaseFirestore dbFirestore;
dbFirestore = FirebaseFirestore.getInstance();
</code></pre>
<p>While Uploading I have used it in this manner:</p>
<pre><code>documentReference= dbFirestore.collection("CLI... | Any suggestions about why it is happening. I have used in the below mentioned manner: [CODE] While Uploading I have used it in this manner: [CODE] I am not able to write it on Firestore, I tried many different possibilities. However, sometimes it does write when I try to log in but not when the code execute while signi... | java|android|firebase|google-cloud-firestore | 3 | 2020-01-26T11:44:35.980Z | 2,020 | 1 | 11 | 6 | 1,727 | 3 | 856 | 47 | 4 | 4 | true | false | false | false | false | false | low |
59,918,060 | No interface method stream()Ljava/util/stream/Stream; | <p>I'm trying to filter my List, and i don't really know what is wrong.
I'm using Java 1.8 for lambda functions, my project API i think it's 21;
Error:
No interface method stream()Ljava/util/stream/Stream; in class Ljava/util/List; or its super classes</p>
<p>(declaration of 'java.util.List' appears in /system/framewo... | I'm trying to filter my List, and i don't really know what is wrong. I'm using Java 1.8 for lambda functions, my project API i think it's 21; Error: No interface method stream()Ljava/util/stream/Stream; in class Ljava/util/List; or its super classes (declaration of 'java.util.List' appears in /system/framework/core-lib... | java|android|list|lambda|collections | 0 | 2020-01-26T11:55:18.607Z | 2,020 | 1 | 11 | 6 | 2,041 | 1 | 578 | 53 | 5 | 2 | true | false | false | false | false | false | zero |
59,918,185 | android.os.NetworkOnMainThreadException in Kotlin while using socket | <p>I'm working on an android application written in Kotlin which requires a client-server model, and I want to use sockets for this (my IDE is Android Studio if it matters). When I do that I get the following output:</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.application, PID: 13515
an... | I'm working on an android application written in Kotlin which requires a client-server model, and I want to use sockets for this (my IDE is Android Studio if it matters). When I do that I get the following output: [CODE] my code: [CODE] | android|android-studio|sockets|kotlin | 0 | 2020-01-26T12:11:04.627Z | 2,020 | 1 | 12 | 6 | 1,068 | 0 | 236 | 68 | 4 | 2 | true | true | false | false | false | false | zero |
59,918,200 | How to make my android device to be recognized by MacOS? | <p>I run <code>flutter doctor</code> and give me 2 issues in 2 categories. One of them (which I'm not able to install my app on my smartphone) is that my macOS does not recognize my device:</p>
<pre><code>MacBook-Pro-de-Jesus:~ jesushedo$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] F... | I run flutter doctor and give me 2 issues in 2 categories. One of them (which I'm not able to install my app on my smartphone) is that my macOS does not recognize my device: [CODE] How could I make my device to be recognized ? Thanks for all. | android|macos|flutter|device | 0 | 2020-01-26T12:12:52.177Z | 2,020 | 1 | 12 | 6 | 519 | 1 | 242 | 56 | 4 | 1 | true | false | false | false | false | false | zero |
59,918,213 | Java run ServerSocket on PC | <p>A common problem for a common project: I'm trying to run a ServerSocket Java program on my local PC and connect to it from an Android client. As others have experienced, things go smoothly when the client connects to the local address (eg. 192.168.xxx.xxx). If I try to connect through the internet, nothing happens:<... | A common problem for a common project: I'm trying to run a ServerSocket Java program on my local PC and connect to it from an Android client. As others have experienced, things go smoothly when the client connects to the local address (eg. 192.168.xxx.xxx). If I try to connect through the internet, nothing happens: Now... | java|android|sockets|tcp | 0 | 2020-01-26T12:14:10.717Z | 2,020 | 1 | 12 | 6 | 241 | 1 | 1,077 | 27 | 4 | 0 | false | false | false | false | false | false | zero |
59,918,226 | Error: Program type already present: org.xmlpull.v1.XmlPullParser | <p>I'm getting this error when building a project, it seems that I have 2 libraries in my Gradle that are using the XML parser I tried to exclude it but it's not working.</p>
<p>Error: Program type already present: org.xmlpull.v1.XmlPullParser</p>
<p>Can anyone help me please in the right syntax for excluding the lib... | I'm getting this error when building a project, it seems that I have 2 libraries in my Gradle that are using the XML parser I tried to exclude it but it's not working. Error: Program type already present: org.xmlpull.v1.XmlPullParser Can anyone help me please in the right syntax for excluding the library? [CODE] | android|dependencies|android-multidex|xmlpullparser | 1 | 2020-01-26T12:15:25.717Z | 2,020 | 1 | 12 | 6 | 119 | 0 | 313 | 65 | 4 | 1 | true | true | false | false | false | false | low |
59,918,272 | value returned from SQLite using Room Persistence is not being assigned to MutableLiveData | <p>I want to calculate sum of weight field of all records in table <code>myTable</code>, I tried:</p>
<pre><code>@Entity(tableName = "myTable")
data class Foo(
@ColumnInfo(name = "purchaseWeight")
val weight: Int,
@ColumnInfo(name = "purchaseDate")
val date: Long,
val description: String?
) {
... | I want to calculate sum of weight field of all records in table myTable , I tried: [CODE] and other class [CODE] In Dao class [CODE] In repository class [CODE] ViewModel class is: [CODE] and MainActivity.kt is: [CODE] but It prints [CODE] could not figure out why value is not being assigned at sumOfAllWeight.postValue(... | android|android-room|kotlin-coroutines|android-mvvm | 0 | 2020-01-26T12:21:34.643Z | 2,020 | 1 | 12 | 6 | 28 | 1 | 383 | 90 | 4 | 7 | true | false | false | false | false | false | zero |
59,918,281 | when i build ffmpeg with cygwin there is an error occurs. How can i solve this? | <p><a href="https://i.stack.imgur.com/T2M4X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T2M4X.png" alt="enter image description here"></a></p>
<p><strong>build_android.sh file</strong></p>
<p><a href="https://i.stack.imgur.com/zFGK6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur... | build_android.sh file path NDK=C:/Users/asus/AppData/Local/Android/Sdk/android-ndk-r21 How can I solve this? | ffmpeg|android-ndk|cygwin | -3 | 2020-01-26T12:22:32.007Z | 2,020 | 1 | 12 | 6 | 61 | 1 | 108 | 79 | 3 | 0 | false | false | false | false | false | true | negative |
59,918,369 | creating a dropdown list with edit text and a button | <p>I am trying to achieve this behavior - </p>
<p><a href="https://i.stack.imgur.com/yOIiT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yOIiT.png" alt="enter image description here"></a></p>
<p>Where clicking on the arrow expands the layout and clicking again closes the layout </p>
<p>Is there ... | I am trying to achieve this behavior - Where clicking on the arrow expands the layout and clicking again closes the layout Is there any built in components in Android API's that I can use to achieve this behavior? | android|drop-down-menu | -1 | 2020-01-26T12:34:38.247Z | 2,020 | 1 | 12 | 6 | 65 | 2 | 213 | 52 | 2 | 0 | false | false | false | false | false | true | negative |
59,918,384 | How to change the color of a vector image in navigationView | <p>I need to change the color of the <strong>menuitem icon</strong>, I tried many ways that I found but not one of them does not work</p>
<pre><code> navigationView.getMenu().getItem(i).getIcon().setTint(ContextCompat.getColor(context, R.color.colorPrimary));
</code></pre>
<p>or</p>
<pre><code>Drawable drawable = na... | I need to change the color of the menuitem icon , I tried many ways that I found but not one of them does not work [CODE] or [CODE] or [CODE] or [CODE] , please help me | android|android-studio|android-menu | 0 | 2020-01-26T12:36:51.100Z | 2,020 | 1 | 12 | 6 | 60 | 2 | 168 | 59 | 3 | 4 | true | false | false | false | false | false | zero |
59,918,477 | Delphi Rio 10.3.2 Android FireDac SQLITE unable to open query - same code worked with Delphi Tokyo with same android device | <p>Here is the very simple code that worked perfectly when compiled with Delphi Tokyo:</p>
<pre><code>procedure TfData.DataSend(Memo : TMemo);
var SelectQuery : string;
begin
// Query simplified, more fields are retreived in original code, but same problem with simple query
SelectQuery := 'SELECT NUM as "NUM::... | Here is the very simple code that worked perfectly when compiled with Delphi Tokyo: [CODE] The same simple code running on the same real android device (Zebra TC25) does not work anymore when compiled with Tokyo 10.3.2. The "RecordCount" method returns 6, however, the "First" method trigger an exception : something lik... | android|sqlite|delphi|firedac | 0 | 2020-01-26T12:49:10.280Z | 2,020 | 1 | 12 | 6 | 512 | 2 | 989 | 123 | 4 | 1 | true | false | false | false | false | false | zero |
59,918,501 | RecyclerView with Multiple View Type with continued position counting | <p>Is there a way to use mutiple <code>View</code> types in a <code>RecyclerView</code> without any items getting replaced?</p>
<p>For <code>position</code> 0 and every 4th <code>position</code> in my <code>RecyclerView</code>, I want the 2nd <code>View</code> type to be shown without replacing what would've been in t... | Is there a way to use mutiple View types in a RecyclerView without any items getting replaced? For position 0 and every 4th position in my RecyclerView , I want the 2nd View type to be shown without replacing what would've been in that position if the 1st View type was there. I.e. show the 2nd View type then the intend... | android|kotlin|android-recyclerview|android-view | 0 | 2020-01-26T12:51:59.787Z | 2,020 | 1 | 12 | 6 | 100 | 1 | 386 | 69 | 4 | 1 | true | false | false | false | false | false | zero |
59,918,579 | Picasso won't load png image urls alone | <p>I am trying to load image png image url not able to get the image if jpg file is loaded it is getting viewed only png url not working in Picasso. Have updated my Gradle dependecies for Picasso dependencies . I don't know why png image url alone couldn't be loaded . I just checked this link"<a href="https://issuetrac... | I am trying to load image png image url not able to get the image if jpg file is loaded it is getting viewed only png url not working in Picasso. Have updated my Gradle dependecies for Picasso dependencies . I don't know why png image url alone couldn't be loaded . I just checked this link" https://issuetracker.google.... | android|android-layout|picasso | 0 | 2020-01-26T13:02:43.897Z | 2,020 | 1 | 13 | 6 | 510 | 1 | 454 | 39 | 3 | 3 | true | false | false | false | false | false | zero |
59,918,671 | Using a coroutine inside a Transform.map function | <p>Well here is a tricky one. <br />
I have a query from my Room DB. The result is a Relational POJO</p>
<pre><code>class MessageWithMsgQueueAccount {
@Embedded
var message: MessageDto? = null
@Relation(parentColumn = "clientMessageId", entityColumn = "clientMessageId", entity = MessageQueueDto::class)
... | Well here is a tricky one. I have a query from my Room DB. The result is a Relational POJO [CODE] So when i get that i apply a Transformation to this object so i can create another one that has only the information that i want. [CODE] Since this is a chat, one field that i want to setup is a quoted message body. What i... | android|kotlin|transformation|kotlin-coroutines | 3 | 2020-01-26T13:13:41.050Z | 2,020 | 1 | 13 | 6 | 666 | 0 | 744 | 49 | 4 | 3 | true | true | false | false | false | false | low |
59,918,742 | Why can't I define these fields outside my method in Android Studio (JAVA)? | <p>I'm starting to learn how to manipulate Java in Android Studio but I still have some issues with what seems basic stuffs..</p>
<p>Here is my code : </p>
<pre><code>import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity;
public class Ma... | I'm starting to learn how to manipulate Java in Android Studio but I still have some issues with what seems basic stuffs.. Here is my code : [CODE] This code works well but what I would like to do is to define the list of fields (the ImageViews) outside the methods so I can win some lines and make it more visible inste... | java|android|field | 0 | 2020-01-26T13:23:21.907Z | 2,020 | 1 | 13 | 6 | 36 | 0 | 587 | 75 | 3 | 2 | true | true | false | false | false | false | zero |
59,918,753 | Why is my GridView is in front of the rest of my UI | <p>My gridview is on top of both my toolbar and floating action button, anyone know how to fix that? Also, i want to have a bit of space at the top and the bottom of the gridview, but for that space to not stay when i scroll up and down, however i think i can achieve that by setting clipToPadding to false, which fixes ... | My gridview is on top of both my toolbar and floating action button, anyone know how to fix that? Also, i want to have a bit of space at the top and the bottom of the gridview, but for that space to not stay when i scroll up and down, however i think i can achieve that by setting clipToPadding to false, which fixes it ... | android|user-interface|kotlin|gridview | 0 | 2020-01-26T13:24:34.347Z | 2,020 | 1 | 13 | 6 | 32 | 0 | 511 | 51 | 4 | 3 | true | true | false | false | false | false | zero |
59,918,769 | How to fix API authentication problem in Kotlin Android app? | <p>I developed an API in Laravel for reading some data with authentication. Now in my app I need to send the token in my header for API to respond. Every time i login with app, I'm getting token without problem, but i can't provide token in header and it's returning a null token response. Now every time i reopen my app... | I developed an API in Laravel for reading some data with authentication. Now in my app I need to send the token in my header for API to respond. Every time i login with app, I'm getting token without problem, but i can't provide token in header and it's returning a null token response. Now every time i reopen my app ev... | java|android|api|authentication|kotlin | 0 | 2020-01-26T13:26:41.877Z | 2,020 | 1 | 13 | 6 | 210 | 0 | 637 | 60 | 5 | 2 | true | true | false | false | false | false | zero |
59,918,778 | open a folder from application by default file manager | <p>I want to open a folder base on the path by device file manager .
I create a folder and save in save it into SharedPreferences .
now I want to open this folder .</p>
<p>I create a folder like this :</p>
<pre><code>public static File myDirectory;
myDirectory = new File(Environment.getExternalStorageDirectory(),... | I want to open a folder base on the path by device file manager . I create a folder and save in save it into SharedPreferences . now I want to open this folder . I create a folder like this : [CODE] in my application class. and now I want to open this address: [CODE] how can I open it by default file manager ? | java|android | 0 | 2020-01-26T13:27:56.683Z | 2,020 | 1 | 13 | 6 | 33 | 0 | 311 | 54 | 2 | 2 | true | true | false | false | false | false | zero |
59,918,855 | LiveData observer vs onPrepareOptionsMenu race | <p>I'm working on a project which lets users in either as guests or registerd users.
There is an application scope <code>user</code> object with LiveData of the current user type</p>
<pre><code>private val _isGuest = MutableLiveData<Boolean>()
val isGuest: LiveData<Boolean>
get() = _isGuest
</code></pr... | I'm working on a project which lets users in either as guests or registerd users. There is an application scope user object with LiveData of the current user type [CODE] There is HomeFragment which needs to show logout menu item for registered users. The fragment has a ViewModel bound to the global property [CODE] and ... | android|kotlin|android-livedata | 5 | 2020-01-26T13:35:29.637Z | 2,020 | 1 | 13 | 6 | 489 | 1 | 799 | 46 | 3 | 3 | true | false | false | false | false | false | low |
59,918,893 | Is it possible to upload android app with new key on google play | <p>my app is published on the play store, its build in Iconic Cordova. Now I have built my app in flutter. I want to publish it as an update of the old app. I have lost the signed key of the old app. Is it possible to upload the app with new signed key. Thanks in advance.</p> | my app is published on the play store, its build in Iconic Cordova. Now I have built my app in flutter. I want to publish it as an update of the old app. I have lost the signed key of the old app. Is it possible to upload the app with new signed key. Thanks in advance. | android|flutter | 0 | 2020-01-26T13:40:13.053Z | 2,020 | 1 | 13 | 6 | 24 | 0 | 269 | 64 | 2 | 0 | false | true | false | false | false | false | zero |
59,918,896 | Cannot apply style for custom edit text | <p>I'm trying to apply TextInputLayout theme programmatically to create a custom edit text once and use it anywhere.</p>
<p>This is my Custom edit text class:</p>
<pre><code>package com.enjoyapps.weddingapp.view;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import a... | I'm trying to apply TextInputLayout theme programmatically to create a custom edit text once and use it anywhere. This is my Custom edit text class: [CODE] As you can see, in Constructor I'm setting the style with : [CODE] And when i add the custom edit text to xml , it's not getting the attribute that I set in init me... | java|android|material-design | 1 | 2020-01-26T13:40:19.573Z | 2,020 | 1 | 13 | 6 | 569 | 2 | 433 | 39 | 3 | 3 | true | false | false | false | false | false | low |
59,918,899 | Is it possible android app startup time be reduced to almost zero? (Like Instagram and WhatsApp new updates) | <p>In new version of instagram and whatsApp android applications, we are witnessing that they have added splash screens. And when application opens, the splash screen is immediately visible. The startup time seems to be close to zero.
Can anyone say how? Is a new trick used? Or more traditional optimizations have been ... | In new version of instagram and whatsApp android applications, we are witnessing that they have added splash screens. And when application opens, the splash screen is immediately visible. The startup time seems to be close to zero. Can anyone say how? Is a new trick used? Or more traditional optimizations have been app... | android|performance|facebook|react-native | 2 | 2020-01-26T13:40:44.790Z | 2,020 | 1 | 13 | 6 | 56 | 0 | 344 | 108 | 4 | 0 | false | true | false | false | false | false | low |
59,918,914 | Is it possible to share data from a recyclerview adapter to a bottomsheetdialogfragment with kotlin? | <p>I have a adapter and within this adapter class, I have Viewholder inner class. From this Viewholder I want to share the clicked item data to the bottomsheetdialogfragment.</p>
<p>Here is my Code for the adapter viewholder:</p>
<pre><code>inner class MedicineFeelingViewHolder(v: View) : RecyclerView.ViewHolder(v), ... | I have a adapter and within this adapter class, I have Viewholder inner class. From this Viewholder I want to share the clicked item data to the bottomsheetdialogfragment. Here is my Code for the adapter viewholder: [CODE] Is it possible to share the clicked data to my bottomsheetdialogfragment? | android|android-fragments|kotlin | 0 | 2020-01-26T13:42:11.220Z | 2,020 | 1 | 13 | 6 | 126 | 1 | 296 | 100 | 3 | 1 | true | false | false | false | false | false | zero |
59,918,952 | Android Studio/Kotlin - Type inference failed not enough information to infer parameter | <p>I'm trying to migrate my app to AndroidX, I changed everything in code and layouts, etc.
The only thing where I am stuck is this: </p>
<p>"Type inference failed not enough information to infer parameter T in fun Observer(function:(t: T!) - Unit): Observer
Please specify it explicitly"</p>
<p>Also, when trying to ... | I'm trying to migrate my app to AndroidX, I changed everything in code and layouts, etc. The only thing where I am stuck is this: "Type inference failed not enough information to infer parameter T in fun Observer(function:(t: T!) - Unit): Observer Please specify it explicitly" Also, when trying to rebuild, I receive th... | java|android-studio|kotlin|illegalstateexception | 1 | 2020-01-26T13:49:13.433Z | 2,020 | 1 | 13 | 6 | 1,541 | 0 | 365 | 87 | 4 | 2 | true | true | false | false | false | false | low |
59,919,048 | Android studio Java class construction null object reference on sqlite database object | <p>I think this is an easy one, but I am a newcomer to constructing classes in Java. I'm working in Android studio and have the class which I've included in the code below.
The function in the class simply tries to do a query to a sqlite database, but I am getting the following error. </p>
<pre><code> Caused by: j... | I think this is an easy one, but I am a newcomer to constructing classes in Java. I'm working in Android studio and have the class which I've included in the code below. The function in the class simply tries to do a query to a sqlite database, but I am getting the following error. [CODE] I imagine this is due to not p... | java|class|nullpointerexception|android-sqlite | 0 | 2020-01-26T14:01:33.197Z | 2,020 | 1 | 14 | 6 | 94 | 0 | 498 | 86 | 4 | 3 | true | true | 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.