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,982,321 | OnBackPressedCallback not called in Bottom Sheet Dialog Fragment | <p>I have a <code>Bottom Sheet Dialog Fragment</code> which contains four <code>Fragment</code> with <code>ViewPager</code>.
I want to call a method when <code>onBackPressed</code> clicked in <code>Bottom Sheet Dialog Fragment</code>. Implemented <code>OnBackPressedCallback</code> in my <code>OnCreateView</code> but it... | I have a Bottom Sheet Dialog Fragment which contains four Fragment with ViewPager . I want to call a method when onBackPressed clicked in Bottom Sheet Dialog Fragment . Implemented OnBackPressedCallback in my OnCreateView but it is not triggered. Any one have a idea why it is not called? [CODE] | android|android-fragments|bottom-sheet|onbackpressed | 10 | 2020-01-30T09:04:58.850Z | 2,020 | 1 | 9 | 3 | 2,199 | 3 | 295 | 64 | 4 | 1 | true | false | false | false | true | false | medium |
59,982,401 | invoke error EditText() null object reference | <p>I know this maybe a very simple solution but I can't for the life of me get this part of the code working for my symptom checker. Everything else is working flawlessly but the application completely crashes at the diagnosis part method.</p>
<p>Here is part of the java file causing the problem (question activity):</... | I know this maybe a very simple solution but I can't for the life of me get this part of the code working for my symptom checker. Everything else is working flawlessly but the application completely crashes at the diagnosis part method. Here is part of the java file causing the problem (question activity): [CODE] The i... | java|android|xml | 0 | 2020-01-30T09:09:11.997Z | 2,020 | 1 | 9 | 3 | 80 | 1 | 500 | 45 | 3 | 4 | true | false | false | false | false | false | zero |
59,982,451 | Textview text baseline like end align | <p>I have a clickable textview with padding and ripple effect on it in a constraint layout. How can i align the textview's text right hand side with the content of the constraint? Currently, because of the padding (used for the ripple effect), the text is not aligned with the rest of content. This is similar with the b... | I have a clickable textview with padding and ripple effect on it in a constraint layout. How can i align the textview's text right hand side with the content of the constraint? Currently, because of the padding (used for the ripple effect), the text is not aligned with the rest of content. This is similar with the base... | android|textview|alignment|padding|baseline | 0 | 2020-01-30T09:12:06.533Z | 2,020 | 1 | 9 | 3 | 56 | 0 | 413 | 37 | 5 | 2 | true | true | false | false | false | false | zero |
59,982,478 | Firebase auth won't send otp in signed apk | <p>I've searched about this and I know its been asked here a lot but hear me out. I created my firebase project via the Assistant within the Android studio. I'm using Firebase phone auth in my app and its working completely fine when debugging. But it is <em>not</em> working when I generate a signed apk for debug relea... | I've searched about this and I know its been asked here a lot but hear me out. I created my firebase project via the Assistant within the Android studio. I'm using Firebase phone auth in my app and its working completely fine when debugging. But it is not working when I generate a signed apk for debug release (haven't ... | android|kotlin|firebase-authentication | 0 | 2020-01-30T09:13:41.543Z | 2,020 | 1 | 9 | 3 | 60 | 0 | 690 | 42 | 3 | 0 | false | true | false | false | false | false | zero |
59,982,526 | Adding a table to an existing PDF with itext5 in kotlin | <p>I'm a newbie to java/kotlin programming, and this is my first project.
I have an existing pdf, created in another activity (activity1) with itext, passed to another activity (activity2) with an intent as "pdfPath".
I want to open that pdf and append a table at the end of that pdf with data acquired in activity2.
But... | I'm a newbie to java/kotlin programming, and this is my first project. I have an existing pdf, created in another activity (activity1) with itext, passed to another activity (activity2) with an intent as "pdfPath". I want to open that pdf and append a table at the end of that pdf with data acquired in activity2. But ev... | android|kotlin|itext | 2 | 2020-01-30T09:15:38.867Z | 2,020 | 1 | 9 | 3 | 782 | 1 | 451 | 55 | 3 | 1 | true | false | false | false | false | false | low |
59,982,559 | Please help i got error on a null object reference. when i click confirm button | <p>My logcat here</p>
<ul>
<li><p>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.barberbooking, PID: 13610
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.barberbooking.Model.Salon.getSalonId()'
on a null object reference
at com.e... | My logcat here E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.barberbooking, PID: 13610 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.example.barberbooking.Model.Salon.getSalonId()' on a null object reference at com.example.barberbooking.Fragments.BookingStep4Fragm... | java|android|android-fragments | -2 | 2020-01-30T09:17:55.723Z | 2,020 | 1 | 9 | 3 | 136 | 1 | 1,062 | 79 | 3 | 1 | true | false | false | false | false | true | negative |
59,982,609 | Recyclerview showing only one item | <p>I have created recyclerview with header type and item type. I have given wrap_content to the layouts created for the same. In adapter I have separated views based on the view type.</p>
<p>I have 2 items in list which has date and list of imageurls. I am able to see only 1st date and one image out of 3 and other im... | I have created recyclerview with header type and item type. I have given wrap_content to the layouts created for the same. In adapter I have separated views based on the view type. I have 2 items in list which has date and list of imageurls. I am able to see only 1st date and one image out of 3 and other images in 1st ... | java|android|android-recyclerview|sectionedrecyclerviewadapter | 0 | 2020-01-30T09:20:16.870Z | 2,020 | 1 | 9 | 3 | 1,053 | 1 | 755 | 34 | 4 | 6 | true | false | false | false | false | false | zero |
59,982,658 | How to substitute external library dependencies with internal module in android studio | <p>I have used many libraries in my project.</p>
<p>I have recently edited and rewritten the recyclerview library and added "androidx.recyclerview.widget" as a module, but I get the following error when building:</p>
<pre><code>Program type already present: androidx.recyclerview.widget.AdapterHelper$Callback
</code><... | I have used many libraries in my project. I have recently edited and rewritten the recyclerview library and added "androidx.recyclerview.widget" as a module, but I get the following error when building: [CODE] The reason for this error is that a number of external libraries are dependent on the recyclerview library. Re... | android|android-studio|gradle|android-recyclerview | 0 | 2020-01-30T09:23:40.900Z | 2,020 | 1 | 9 | 3 | 637 | 1 | 711 | 86 | 4 | 2 | true | false | false | false | false | false | zero |
59,982,674 | Android background and foreground data synchronization | <p>Currently i'm developing an app that needs to synchronize data to the server, every 15 minutes and manual if the sync button is pressed. The issue i'm facing at the moment is that syncs are not queued. A manual sync job can run at the same time as an automatically triggered one, and this should not be possible. The ... | Currently i'm developing an app that needs to synchronize data to the server, every 15 minutes and manual if the sync button is pressed. The issue i'm facing at the moment is that syncs are not queued. A manual sync job can run at the same time as an automatically triggered one, and this should not be possible. The syn... | android|multithreading|background | 0 | 2020-01-30T09:24:25.523Z | 2,020 | 1 | 9 | 3 | 762 | 1 | 604 | 54 | 3 | 0 | false | false | false | false | false | false | zero |
59,982,739 | Communicate Android app with python Django web server | <p>I am creating a mobile app, I want to access a web server that is implemented in Python Django. I found that there is Retrofit in android to communicate with a web server. My question is that whether I have to write Client REST API and Server REST API both. </p>
<p>As I am considering that I will write REST API usi... | I am creating a mobile app, I want to access a web server that is implemented in Python Django. I found that there is Retrofit in android to communicate with a web server. My question is that whether I have to write Client REST API and Server REST API both. As I am considering that I will write REST API using Retrofit ... | python|android|django-rest-framework|retrofit | 0 | 2020-01-30T09:28:07.443Z | 2,020 | 1 | 9 | 3 | 788 | 1 | 675 | 53 | 4 | 0 | false | false | false | false | false | false | zero |
59,982,887 | Horizontal Scrolling of items in BottomNavigationBar | <p>In my app, I want to create a BottomNavigationBar having almost 10-15 items. Items should scroll in the horizontal orientation.
For example;</p>
<p><a href="https://i.stack.imgur.com/Qh73q.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qh73q.gif" alt="enter image description here"></a>
like this... | In my app, I want to create a BottomNavigationBar having almost 10-15 items. Items should scroll in the horizontal orientation. For example; like this, items should be scrolled horizontally. [CODE] | android|android-layout|material-design | 2 | 2020-01-30T09:35:54.363Z | 2,020 | 1 | 9 | 3 | 1,972 | 2 | 197 | 52 | 3 | 1 | true | false | false | false | false | false | low |
59,982,911 | How to get create geofence by asking people to walk around | <p>We want to create an android app which allows you to mark your territory by opening the app and walking around. Any thoughts on that? How to turn a walking trail into geofence.</p> | We want to create an android app which allows you to mark your territory by opening the app and walking around. Any thoughts on that? How to turn a walking trail into geofence. | android|android-geofence | 0 | 2020-01-30T09:36:58.760Z | 2,020 | 1 | 9 | 3 | 50 | 0 | 176 | 58 | 2 | 0 | false | true | false | false | false | false | zero |
59,982,947 | How to navigate between Xamarin Android to Xamarin forms? | <p>is there anyway to navigate from android and iOS specific activity to Xamarin forms Content page in PCL. I have tried nearly everything I could. </p>
<blockquote>
<p>SetPage(App.RetryOkPage(imagebytes))</p>
<p>MessagingCenter</p>
<p>LoadApplication(app) where app = new App();<br>
and app.MainPage =
... | is there anyway to navigate from android and iOS specific activity to Xamarin forms Content page in PCL. I have tried nearly everything I could. SetPage(App.RetryOkPage(imagebytes)) MessagingCenter LoadApplication(app) where app = new App(); and app.MainPage = new NavigationPage(new RetryOkPage(photoCropByte)); I am ge... | xamarin|xamarin.forms|xamarin.android|xamarin.ios|navigation | 0 | 2020-01-30T09:38:46.023Z | 2,020 | 1 | 9 | 3 | 113 | 0 | 425 | 57 | 5 | 0 | false | true | false | false | false | false | zero |
59,983,007 | Starting new activity from recyclerview adapter | <p>I am reading data from firebase real time database to a recyclerview and on the recyclerview item there a button to start a new activity. I have this onClick method</p>
<pre><code>public void bookBtnOnClick(final int position){
mBookButton.setOnClickListener(new View.OnClickListener() {
@Overrid... | I am reading data from firebase real time database to a recyclerview and on the recyclerview item there a button to start a new activity. I have this onClick method [CODE] But it cannot resolve intent constructer | java|android|firebase|android-intent | 0 | 2020-01-30T09:42:19.737Z | 2,020 | 1 | 9 | 3 | 114 | 7 | 212 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
59,983,070 | Unable to parse google-services.json | <p>I'm trying my hand at creating a push notification app in ionic. I've been followin<a href="https://www.djamware.com/post/5c6ccd1f80aca754f7a9d1ec/push-notification-using-ionic-4-and-firebase-cloud-messaging" rel="nofollow noreferrer">this</a>g tutorial.</p>
<p>When I do a </p>
<blockquote>
<p>ionic cordova run ... | I'm trying my hand at creating a push notification app in ionic. I've been followin this g tutorial. When I do a ionic cordova run android I receive an error message : What went wrong: Execution failed for task ':app:processDebugGoogleServices'. No matching client found for package name 'io.ionic.starter' Try: Run with... | java|android|ionic-framework|gradle | 0 | 2020-01-30T09:45:30.487Z | 2,020 | 1 | 9 | 3 | 1,186 | 1 | 1,423 | 36 | 4 | 0 | false | false | false | false | false | false | zero |
59,983,122 | Way to check if a thread is null or not (in Java), does operand position makes difference | <p><strong>NOTE:</strong> I went through these but didn't get my answer <a href="https://stackoverflow.com/questions/17302256/best-way-to-check-for-null-values-in-java/40777583">Best way to check for null values in Java?</a> and <a href="https://stackoverflow.com/questions/6883646/obj-null-vs-null-obj">(obj == null) vs... | NOTE: I went through these but didn't get my answer Best way to check for null values in Java? and (obj == null) vs (null == obj)? I was studying this Android [Java] official documentation on Background Tasks -> Run code on a thread pool thread -> Interrupt running code , and the null check code in the sample is: [CODE... | java|android|if-statement|nullpointerexception|null | 1 | 2020-01-30T09:47:51.200Z | 2,020 | 1 | 9 | 3 | 272 | 1 | 893 | 89 | 5 | 2 | true | false | false | false | false | false | low |
59,983,176 | Android, Can add Fragment in XML, but not via Code | <p>I have a fragment, that when added via XML, as</p>
<pre><code> <fragment
class="my.fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="config" />
</code></pre>
<p>it is successfully added to the view, and i can inter... | I have a fragment, that when added via XML, as [CODE] it is successfully added to the view, and i can interact with it. However, when i try to add it programmatically, in a scrollview, as a second child as: [CODE] i get the following error (sorry, it's long) [CODE] There is no application code in this stack trace, only... | android|xml|fragment | 0 | 2020-01-30T09:50:28.907Z | 2,020 | 1 | 9 | 3 | 161 | 2 | 460 | 50 | 3 | 3 | true | false | false | false | false | false | zero |
59,983,241 | Found more than one jar in the 'lintChecks' configuration | <p>I want to add custom lint rules to my projects, but I get error while syncing project.</p>
<pre><code>Execution failed for task ':app:prepareLintJar'.
Found more than one jar in the 'lintChecks' configuration. Only one file is supported. If using a separate Gradle project, make sure compilation dependencies are u... | I want to add custom lint rules to my projects, but I get error while syncing project. [CODE] How can I check which library or module is adding another jar? | android|gradle|lint | 6 | 2020-01-30T09:53:52.503Z | 2,020 | 1 | 9 | 3 | 1,465 | 1 | 156 | 57 | 3 | 1 | true | false | false | false | false | false | medium |
59,983,286 | Why Firebase database getUid doesn't work? | <p>Initially, I wrote a code to store the value in Firebase realtime database.</p>
<pre><code>mDbRef = mDatabase.getReference().child("Users");
mDbRef.child("name").setValue(rname);
mDbRef.child("email").setValue(remail);
</code></pre>
<p>The child value was stored under its Uid in 'Users' child.</p>
<p>Then I chang... | Initially, I wrote a code to store the value in Firebase realtime database. [CODE] The child value was stored under its Uid in 'Users' child. Then I changed the code to [CODE] Now, the child value was stored under its name in 'Users' child. Now I have two issues, If I add same name with different sub child values, it w... | java|android|firebase-realtime-database | -1 | 2020-01-30T09:56:46.790Z | 2,020 | 1 | 9 | 3 | 55 | 1 | 704 | 42 | 3 | 3 | true | false | false | false | false | true | negative |
59,983,311 | Not getting full screen details when json data is coming Data is hiding below | <p><a href="https://i.stack.imgur.com/4mQWX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4mQWX.jpg" alt="enter image description here"></a></p>
<p>I am getting the json data lengthy and i have to scroll the view to get the buttons below. How Can I make the button display. When I am trying to give... | I am getting the json data lengthy and i have to scroll the view to get the buttons below. How Can I make the button display. When I am trying to give scrollview its not working. | android|xml|android-layout | 1 | 2020-01-30T09:57:57.157Z | 2,020 | 1 | 9 | 3 | 52 | 1 | 178 | 77 | 3 | 0 | false | false | false | false | false | false | low |
59,983,473 | How to generate n colors between two colors android | <p>I followed this reference link: <a href="https://stackoverflow.com/questions/4414673/android-color-between-two-colors-based-on-percentage">android color between two colors, based on percentage?</a></p>
<p>but here is it possible to get n number of colors without passing any percentage.</p>
<p>I have tried two ways... | I followed this reference link: android color between two colors, based on percentage? but here is it possible to get n number of colors without passing any percentage. I have tried two ways : starting color : (a,b,c) ending color : (d,e,f) count is 24 I used this formula (a+(d-a)/24, b+(e-b)/24, c+(f-c)/24), (a+2*(d-a... | android|color-scheme | -1 | 2020-01-30T10:06:35.397Z | 2,020 | 1 | 10 | 3 | 129 | 1 | 450 | 51 | 2 | 1 | true | false | false | false | false | true | negative |
59,983,573 | android-how to partially tint icons of bottomNavigationView? | <p>I'm using a <code>viewPager</code> with a <code>bottomnavigationview</code> in my android app. how can I partially tint the icons of <code>bottomnavigationview</code> as the user swipes the <code>ViewPager</code>? Chrome has such UI for example:
<a href="https://i.stack.imgur.com/hRhOy.png" rel="nofollow noreferrer"... | I'm using a viewPager with a bottomnavigationview in my android app. how can I partially tint the icons of bottomnavigationview as the user swipes the ViewPager ? Chrome has such UI for example: | android|user-interface|android-viewpager | 1 | 2020-01-30T10:11:47.777Z | 2,020 | 1 | 10 | 3 | 111 | 2 | 194 | 60 | 3 | 0 | false | false | false | false | false | false | low |
59,983,588 | Error with using json classes from within kotlin REPL and scratch files | <p>I'm working on an Android project that needs to process json data retrieved from a web API. From within the project I successfully used the classes <code>JSONObject</code> and <code>JSONArray</code> (package <code>org.json</code>) without any problems. </p>
<p>Always running compiling, running and navigating the ap... | I'm working on an Android project that needs to process json data retrieved from a web API. From within the project I successfully used the classes JSONObject and JSONArray (package org.json ) without any problems. Always running compiling, running and navigating the app each time I want to try some json processing is ... | android|json|kotlin|kotlinc | 3 | 2020-01-30T10:12:42.143Z | 2,020 | 1 | 10 | 3 | 576 | 1 | 770 | 71 | 4 | 2 | true | false | false | false | false | false | low |
59,983,618 | Appium Webdriver | <p>I am new to Appium.I have downloaded all the required tools and able to set up environment variable. I try to execute my selenium script in mobile using Appium. But I got an error like below</p>
<pre><code> enterpackage appiumtest;
import java.net.URL;
import org.openqa.selenium.remote.DesiredCapabilities;
import... | I am new to Appium.I have downloaded all the required tools and able to set up environment variable. I try to execute my selenium script in mobile using Appium. But I got an error like below [CODE] | java|appium|appium-android|appium-desktop | -4 | 2020-01-30T10:14:11.277Z | 2,020 | 1 | 10 | 3 | 88 | 1 | 197 | 16 | 4 | 1 | true | false | false | false | false | true | negative |
59,983,726 | Android Push notification : Few devices (like vivo)when app is not in running state, all notifications get delivered all together when app is reopened | <p>When the app is not running (background/foreground), in few devices FCM push notifications get delivered. </p>
<p>While in few phones (like Vivo models) for this app state, all notifications get delivered all together when the app is reopened.</p>
<p>I have used <code>BroadcastReceiver</code> with <code>PendingInt... | When the app is not running (background/foreground), in few devices FCM push notifications get delivered. While in few phones (like Vivo models) for this app state, all notifications get delivered all together when the app is reopened. I have used BroadcastReceiver with PendingIntent.getBroadcast() method and followed ... | android|push-notification|firebase-cloud-messaging | 0 | 2020-01-30T10:20:10.827Z | 2,020 | 1 | 10 | 3 | 68 | 0 | 625 | 150 | 3 | 0 | false | true | false | false | false | false | zero |
59,983,819 | How to turn my fetch data to a list of products? | <p>In my app I have a "Product" of <code>Cars</code> here im trying to display data from an api. The API has multiple products but my code only shows 1 product and doesnt turn my fetch data into a list!</p>
<p>Here is my fetch data code <code>GET</code>:</p>
<pre><code>fun carsList(context: Context, complete: (Boolea... | In my app I have a "Product" of Cars here im trying to display data from an api. The API has multiple products but my code only shows 1 product and doesnt turn my fetch data into a list! Here is my fetch data code GET : [CODE] Here is my Adapter classs where I clearly call "count" in order for it to read more than 1 pr... | android|list|kotlin|fetch|adapter | 1 | 2020-01-30T10:24:53.370Z | 2,020 | 1 | 10 | 3 | 251 | 1 | 536 | 48 | 5 | 3 | true | false | false | false | false | false | low |
59,983,848 | FATAL EXCEPTION: OkHttp Dispatcher when trying to retrieve data from API using Retrofit | <p>I have gone through a couple of Stack Overflow solutions that mostly suggested enabling Java 8, but it is still not working for me. Minimum SDK version for my app is 26. The complete error code:</p>
<pre class="lang-none prettyprint-override"><code>E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
Process: c... | I have gone through a couple of Stack Overflow solutions that mostly suggested enabling Java 8, but it is still not working for me. Minimum SDK version for my app is 26. The complete error code: [CODE] I have already enabled Java 8 in my build.gradle file. My Java class is as below: [CODE] | java|android|retrofit2|okhttp | 1 | 2020-01-30T10:26:06.090Z | 2,020 | 1 | 10 | 3 | 2,657 | 1 | 290 | 87 | 4 | 2 | true | false | true | false | false | false | low |
59,983,866 | Remove all rotation from anchor in ArCore | <p>So I'm building an app where all user-placed objects should face the same direction. For this I need to remove all rotation from the anchor on which the object is place on. This is the code for reading the pose from the anchor and placing the object:</p>
<pre class="lang-java prettyprint-override"><code> for (Color... | So I'm building an app where all user-placed objects should face the same direction. For this I need to remove all rotation from the anchor on which the object is place on. This is the code for reading the pose from the anchor and placing the object: [CODE] How can I remove the rotation from the matrix but keep the loc... | java|android|matrix|arcore | 0 | 2020-01-30T10:27:10.060Z | 2,020 | 1 | 10 | 3 | 530 | 1 | 743 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
59,983,891 | Android YouTubePlayer with an overlay screen on FrameLayout | <h3>I am trying Custom youtupeplayerView in android.</h3>
<p>I am using FrameLayout inside android YouTubePlayerView. For purpose youtube control(play/pause, SeekBar forward/backward) customization. Youtubeplayerview video is loading but suddenly the player has paused the video. why? The video does not continue to play... | I am trying Custom youtupeplayerView in android. I am using FrameLayout inside android YouTubePlayerView. For purpose youtube control(play/pause, SeekBar forward/backward) customization. Youtubeplayerview video is loading but suddenly the player has paused the video. why? The video does not continue to play the player ... | android|overlay|customization|android-framelayout|youtubeplayer | 0 | 2020-01-30T10:28:23.243Z | 2,020 | 1 | 10 | 3 | 560 | 1 | 366 | 59 | 5 | 1 | true | false | false | false | false | false | zero |
59,983,931 | Navigation Drawer replace fragment with another problematically retaining the drawer option | <p>I have a basic app, containing a drawer layout. Each option in the drawer opens up a new fragment page for the user to view. Here is the drawer layout code.</p>
<pre><code><androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.andro... | I have a basic app, containing a drawer layout. Each option in the drawer opens up a new fragment page for the user to view. Here is the drawer layout code. [CODE] Here is the app_bar_main.xml code. [CODE] And here is the content_main.xml. And also the main activity DashBoardActivity.kt [CODE] From my understanding whe... | android|xml|android-layout|android-fragments|kotlin | 2 | 2020-01-30T10:30:48.183Z | 2,020 | 1 | 10 | 3 | 1,705 | 1 | 1,768 | 91 | 5 | 4 | true | false | false | false | false | false | low |
59,984,013 | JobIntentService not call OnHandleWork | <p>I've custom <strong><em>JobIntentService</em></strong> witn static method <em>enqueueWork</em>.</p>
<pre><code>public static void enqueueWork(@NonNull Context context, @NonNull Intent intent) {
enqueueWork(context, MyJobIntentService.class, JOB_ID, intent);
}
</code></pre>
<p>Also I'... | I've custom JobIntentService witn static method enqueueWork . [CODE] Also I've custom implementation of the FirebaseMessagingService. When I receive the push notification from FCM, I call the enqueueWork of my JobIntentService . [CODE] But method OnHandleWork not called on Android 8.0 and higher . My manifest.xml . [CO... | java|android|jobintentservice | 0 | 2020-01-30T10:34:52.177Z | 2,020 | 1 | 10 | 3 | 173 | 1 | 383 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
59,984,076 | What is the best way to connect my Android client with a Java app server? | <p>I have recently begun learning Android development and have written a Spring Boot Java application with REST using Spring MVC. </p>
<p>I would like some advice on how to connect to my server with an android client? Do I hit the REST controller using my android client?</p>
<p>What would you suggest is the best prac... | I have recently begun learning Android development and have written a Spring Boot Java application with REST using Spring MVC. I would like some advice on how to connect to my server with an android client? Do I hit the REST controller using my android client? What would you suggest is the best practice and what API wo... | java|android|spring-boot | 0 | 2020-01-30T10:39:11.447Z | 2,020 | 1 | 10 | 3 | 78 | 1 | 375 | 73 | 3 | 0 | false | false | false | false | false | false | zero |
59,984,087 | Rich response on Dialogflow integrated with android sdk | <p>Is there a way to use rich responses like suggestion chips etc. on a chatbot which is integrated with android sdk? Thanks.</p> | Is there a way to use rich responses like suggestion chips etc. on a chatbot which is integrated with android sdk? Thanks. | android|dialogflow-es | 0 | 2020-01-30T10:39:58.270Z | 2,020 | 1 | 10 | 3 | 239 | 1 | 122 | 55 | 2 | 0 | false | false | false | false | false | false | zero |
59,984,098 | Getting file not found exception while trying to connect with url in android studio.How to solve this? | <p>I am trying to connect to mysql using wampp and the following error is thrown how to solve this?</p>
<pre><code>W/System.err: java.io.FileNotFoundException: http://192.168.2.198/login.php
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:250)
at com.e... | I am trying to connect to mysql using wampp and the following error is thrown how to solve this? [CODE] | android|wamp | 0 | 2020-01-30T10:40:28.287Z | 2,020 | 1 | 10 | 3 | 183 | 1 | 103 | 102 | 2 | 1 | true | false | false | false | false | false | zero |
59,984,126 | Create singleton class with Android context as param in constructor | <p>In my Android I app I need to create singleton class and pass android context as param to constructor:</p>
<p>snippet:</p>
<pre><code>class RecognizedCheckDataService private constructor(context: Context) {
private var context: Context? = null
init { // default constructor
this.context = context
... | In my Android I app I need to create singleton class and pass android context as param to constructor: snippet: [CODE] and use: [CODE] Is this a correct way? | android|kotlin | 3 | 2020-01-30T10:42:02.587Z | 2,020 | 1 | 10 | 3 | 3,194 | 2 | 157 | 67 | 2 | 2 | true | false | true | false | false | false | low |
59,984,162 | Firebase messaging-handle background message in kotlin | <p>I'm using <a href="https://pub.dev/packages/firebase_messaging" rel="noreferrer">firebase_messaging</a> in my flutter application.
To handle background messages with firebase messaging in pub they suggested to create new Application.java file and replace java file name in AndroidManifest file. </p>
<p>In my applic... | I'm using firebase_messaging in my flutter application. To handle background messages with firebase messaging in pub they suggested to create new Application.java file and replace java file name in AndroidManifest file. In my application i'm using kotlin and i already implemented some native code in MainActivity.kt So ... | android|firebase|kotlin|flutter|firebase-cloud-messaging | 12 | 2020-01-30T10:44:19.890Z | 2,020 | 1 | 10 | 3 | 7,206 | 2 | 440 | 54 | 5 | 1 | true | false | true | false | true | false | medium |
59,984,198 | How to pass Activity type to a method in Xamarin.Android? | <p>All my activities inherit from <code>BaseActivity</code>. In <code>BaseActivity</code> I have the following method:</p>
<pre><code>protected void GoToPreviousActivity(Activity)
{
StartActivity(typeof(Activity));
Finish();
}
</code></pre>
<p>When I click the <code>toolbar's</code> back button of every activ... | All my activities inherit from BaseActivity . In BaseActivity I have the following method: [CODE] When I click the toolbar's back button of every activity I want to go back to the previous activity, like that: [CODE] How can I do that? | android-activity|types|xamarin.android|parameter-passing | 0 | 2020-01-30T10:46:12.480Z | 2,020 | 1 | 10 | 3 | 113 | 2 | 235 | 57 | 4 | 2 | true | false | false | false | false | false | zero |
59,984,204 | I get the following failures on some devices | <p>help! I get the following failures on some devices. </p>
<p>java.lang.Error a.a.a.a.b.N.a</p>
<pre><code>java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2017.4.35f1
Device model : samsung SM-N950F
Device fingerprint: samsung/greatltexx/greatlte:9/PPR1.180610.011/N950FXXS8DSL3:user/rel... | help! I get the following failures on some devices. java.lang.Error a.a.a.a.b.N.a [CODE] | java|android|unity3d | 1 | 2020-01-30T10:46:34.787Z | 2,020 | 1 | 10 | 3 | 196 | 1 | 88 | 44 | 3 | 1 | true | false | false | false | false | false | low |
59,984,291 | Android text input layout problems | <p>I'm having a problem right now with text input layout, i made an error message that shows when something is wrong via setError but the problem is that the error message keeps on showing even after entering the valid information in the edit text i don't know how to call off the error message if the valid email is ent... | I'm having a problem right now with text input layout, i made an error message that shows when something is wrong via setError but the problem is that the error message keeps on showing even after entering the valid information in the edit text i don't know how to call off the error message if the valid email is entere... | android|list | 1 | 2020-01-30T10:51:22.643Z | 2,020 | 1 | 10 | 3 | 94 | 1 | 432 | 34 | 2 | 1 | true | false | false | false | false | false | low |
59,984,322 | Is there a way in Ionic to debug directly on Android or iOS devices? | <p>I'm working on an <strong>Ionic/Cordova</strong> cross-platform application and I'm struggling a little bit with the debugging.
Debug can of course be done directly from the browser by running <code>ionic serve</code> and then using the browser <strong>developer tools</strong>, but some behaviors happen only on real... | I'm working on an Ionic/Cordova cross-platform application and I'm struggling a little bit with the debugging. Debug can of course be done directly from the browser by running ionic serve and then using the browser developer tools , but some behaviors happen only on real devices. | android|ios|cordova|debugging|ionic-framework | 2 | 2020-01-30T10:52:52.237Z | 2,020 | 1 | 10 | 3 | 2,352 | 3 | 280 | 68 | 5 | 0 | false | false | false | false | false | false | low |
59,984,364 | How to get a Blog-List using query from mobile-buy-sdk-android | <p>I'm created android and ios Ecommerce application using <strong>Mobile buy SDK for android</strong> and <strong>Mobile buy SDK for ios</strong>.</p>
<p>My question is that how to get a <strong>Blog-List</strong> from SDK and i need to display <strong>Blog-List</strong> then on click of blog list display article so... | I'm created android and ios Ecommerce application using Mobile buy SDK for android and Mobile buy SDK for ios . My question is that how to get a Blog-List from SDK and i need to display Blog-List then on click of blog list display article so is there anyone implemented this type of functionality using query and get blo... | android|shopify|blogs|shopify-app|shopify-mobile-buy-sdk | 1 | 2020-01-30T10:54:34.233Z | 2,020 | 1 | 10 | 3 | 434 | 1 | 702 | 62 | 5 | 0 | false | false | false | false | false | false | low |
59,984,380 | Adding large file manually inside the project in android studio | <p>My project is all about media player. I want to store manually hundreds of mp3 files in my project but the problem is I don't know where I can put the large file which is the file size is 300MB into my project. I already search many times on google but the answer is always putting the file into ExternalDirectory by ... | My project is all about media player. I want to store manually hundreds of mp3 files in my project but the problem is I don't know where I can put the large file which is the file size is 300MB into my project. I already search many times on google but the answer is always putting the file into ExternalDirectory by usi... | android | 0 | 2020-01-30T10:55:12.230Z | 2,020 | 1 | 10 | 3 | 172 | 0 | 1,162 | 63 | 1 | 2 | true | true | false | false | false | false | zero |
59,984,411 | How to change resource in an apk and rebuild the application | <p>I lost the source code of my application due to system crash. Now I want to make a small change in an array resource and rebuild the application. Is there any way to change it directly in .apk??</p> | I lost the source code of my application due to system crash. Now I want to make a small change in an array resource and rebuild the application. Is there any way to change it directly in .apk?? | android|apk|rebuild | 0 | 2020-01-30T10:56:50.730Z | 2,020 | 1 | 10 | 3 | 959 | 2 | 194 | 60 | 3 | 0 | false | false | false | false | false | false | zero |
59,984,518 | Android Q, WifiNetworkSpecifier loosing Wifi immediately after connection is established | <pre><code> @RequiresApi(api = Build.VERSION_CODES.Q)
public void openSystemDialogToConnectToWifi(String ssid, ConnectivityManager.NetworkCallback callback) {
WifiNetworkSpecifier.Builder builder = new WifiNetworkSpecifier.Builder();
builder.setSsid(ssid);
builder.setWpa2Passphrase("secret");
WifiNet... | [CODE] This is the code I use, to connect to a new Wifi from my App. I get an Ip-Adress, the wifi Symbol is visible very briefly in the status bar. In the next Moment, Wifi-Symbol is gone and the system Dialog is visible again, to connect to the wifi. When I debug the Callback it is going through the methods in this Or... | android|android-10.0 | 10 | 2020-01-30T11:03:04.817Z | 2,020 | 1 | 11 | 3 | 2,207 | 3 | 512 | 88 | 2 | 1 | true | false | false | false | true | false | medium |
59,984,524 | Android Studio - Make an activity wait until loading UI | <p>I have an activity which contains a <code>recyclerView</code> that loads data from the database. Sometimes when starting the activity I don't see the data until reloading the activity.</p>
<p>What I'm trying to do is show a loading animation for 3 seconds and wait for it to load then show it.</p>
<p>I added this t... | I have an activity which contains a recyclerView that loads data from the database. Sometimes when starting the activity I don't see the data until reloading the activity. What I'm trying to do is show a loading animation for 3 seconds and wait for it to load then show it. I added this to my xml: [CODE] But how can I m... | java|android | 0 | 2020-01-30T11:03:27.307Z | 2,020 | 1 | 11 | 3 | 717 | 1 | 437 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
59,984,557 | how can make name of the application movable in android? | <p>my Application name is too big ...it got truncate in the end of the toolbar ..how can I make title movable </p>
<p>I will not disclose my app name just take an example </p>
<p>here is the ss:
<a href="https://i.stack.imgur.com/4MF6G.png" rel="nofollow noreferrer">enter image description here</a></p>
<p>I have onl... | my Application name is too big ...it got truncate in the end of the toolbar ..how can I make title movable I will not disclose my app name just take an example here is the ss: enter image description here I have only declared the name in strings.xml [CODE] | android|android-layout|toolbar | 0 | 2020-01-30T11:04:46.893Z | 2,020 | 1 | 11 | 3 | 25 | 0 | 256 | 56 | 3 | 1 | true | true | false | false | false | false | zero |
59,984,601 | How to get date range from the user? | <p>Actually I didn't think to write a question like this. I expected to found the solution when investigating first time, but couldn't. Even the issue seems basic and common, it became problematic.</p>
<p>Problem : Getting a date range from the user</p>
<p>What I thought and found :</p>
<ul>
<li><p>Show two differen... | Actually I didn't think to write a question like this. I expected to found the solution when investigating first time, but couldn't. Even the issue seems basic and common, it became problematic. Problem : Getting a date range from the user What I thought and found : Show two different date pickers to the user, store da... | android|date|android-datepicker | 0 | 2020-01-30T11:07:34.467Z | 2,020 | 1 | 11 | 3 | 219 | 0 | 659 | 36 | 3 | 1 | true | true | false | false | false | false | zero |
59,984,667 | For setting limit in multiline edittext 's each line | <p>I want to set limits in <code>edittext</code> each line and then click <code>enter</code> key cursor move to the next line in android studio, please answer how can I do this..my codes are</p>
<pre><code><EditText
android:inputType="textMultiLine|number"
android:singleLine="false"
android:digits... | I want to set limits in edittext each line and then click enter key cursor move to the next line in android studio, please answer how can I do this..my codes are [CODE] when I click enter key it did not work and when I remove inputType from XML code enter key works please solve | android|xml | 0 | 2020-01-30T11:10:54.027Z | 2,020 | 1 | 11 | 3 | 43 | 2 | 278 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
59,984,678 | Xamarin.forms Select element From ListView and on save it on button | <p>I have a ListView</p>
<pre><code> <StackLayout Margin="12"
Padding="24"
BackgroundColor="White"
HorizontalOptions="Center"
VerticalOptions="Center">
<StackLayout >
<ListView x:Name="IzberiFirmaListView" HasUnevenRows=... | I have a ListView [CODE] MY class have two parameters Id and Title. In my scenario user must select one item from the list view and then when press on save button pass choosen Id from the class. Any suggestions how to organize? | xamarin.forms|xamarin.android|xamarin.ios | 0 | 2020-01-30T11:11:18.840Z | 2,020 | 1 | 11 | 3 | 649 | 1 | 227 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
59,984,830 | how to add switch inside toolbar in android? | <p>I am developing android app and I want to add <code>switch</code> inside <code>toolbar</code> it is not showing </p>
<p>below is my <code>xml</code></p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"... | I am developing android app and I want to add switch inside toolbar it is not showing below is my xml [CODE] following screen current ui I want to know how to achieve that kind of ui what I have to do | android|kotlin|toolbar | 0 | 2020-01-30T11:19:35.040Z | 2,020 | 1 | 11 | 3 | 422 | 2 | 200 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
59,985,012 | How to detect specific object in image | <p>I have 32 alphabet cards like OSMO application (<a href="https://www.playosmo.com/en/words/" rel="nofollow noreferrer">https://www.playosmo.com/en/words/</a>).<br/>
I wanna recognize them in image or real time in frams of a camera
and I want this app for android device<br/>
so I used opencv and c++ for this purpose... | I have 32 alphabet cards like OSMO application ( https://www.playosmo.com/en/words/ ). I wanna recognize them in image or real time in frams of a camera and I want this app for android device so I used opencv and c++ for this purpose. the methods that I tried are first I used sift and surf and orb for getting keyPoints... | android|c++|opencv|image-processing|object-recognition | 0 | 2020-01-30T11:28:37.033Z | 2,020 | 1 | 11 | 3 | 355 | 1 | 884 | 38 | 5 | 0 | false | false | false | false | false | false | zero |
59,985,024 | YouTubePlayerSupportFragment Show me - This videos is unavailable | <p><strong>Error</strong></p>
<p>01-30 16:49:59.180 5634-5882/com.wealthvruddhi.finmo E/YouTubeAndroidPlayerAPI: Embed config is not supported in RemoteEmbeddedPlayer.
01-30 16:49:59.198 5634-5634/com.wealthvruddhi.finmo E/RecyclerView: No adapter attached; skipping layout
01-30 16:49:59.312 26500-5854/? E/YouTubeAndr... | Error 01-30 16:49:59.180 5634-5882/com.wealthvruddhi.finmo E/YouTubeAndroidPlayerAPI: Embed config is not supported in RemoteEmbeddedPlayer. 01-30 16:49:59.198 5634-5634/com.wealthvruddhi.finmo E/RecyclerView: No adapter attached; skipping layout 01-30 16:49:59.312 26500-5854/? E/YouTubeAndroidPlayerAPI: Failed to cons... | android | 0 | 2020-01-30T11:29:11.337Z | 2,020 | 1 | 11 | 3 | 888 | 3 | 524 | 65 | 1 | 1 | true | false | false | false | false | false | zero |
59,985,053 | How can I get MAC address in Android 8 with nativescript? | <p>I need to get MAC address in my nativescript/typescript project on Android platform. I haven't found any plugin to do this so i think the only way is to use native API. Can you provide me the code in typescript to do this? Thanks</p> | I need to get MAC address in my nativescript/typescript project on Android platform. I haven't found any plugin to do this so i think the only way is to use native API. Can you provide me the code in typescript to do this? Thanks | android|api|nativescript|mac-address|nic | 1 | 2020-01-30T11:30:49.620Z | 2,020 | 1 | 11 | 3 | 159 | 1 | 229 | 57 | 5 | 0 | false | false | false | false | false | false | low |
59,985,130 | Kotlin - How to set Non null Object value to null? | <p>Am getting response in my web service as below :</p>
<pre><code>"data": [
{
myObject:{"key1":"keyValue1","key2":"keyValue2"}
}]
</code></pre>
<p>Now I have to make this myObject null. I am trying as below :</p>
<pre><code>if (mMailModel != null && mMailModel!!.myObject != null)
{
mMailMode... | Am getting response in my web service as below : [CODE] Now I have to make this myObject null. I am trying as below : [CODE] I must have to make the myObject null. The line telling me that Null can not be a value of Non null type I have declared it at above in activity as below: [CODE] Any suggestion ? EDIT My model cl... | android|kotlin|null | -2 | 2020-01-30T11:34:44.283Z | 2,020 | 1 | 11 | 3 | 1,234 | 2 | 344 | 50 | 3 | 4 | true | false | false | false | false | true | negative |
59,985,169 | how to Make selectable appPackage and appActivity BeforeScenario in android Appium Test Automation | <p>I want to choose starting app(appPackage,appActivity) in @BeforeScenario to develop a test scenarios for multiple apps in one test project. I know use the start activity but because of security permission denial, I can not use it. The only working method is using capabilities in beforeScenario. Before start the test... | I want to choose starting app(appPackage,appActivity) in @BeforeScenario to develop a test scenarios for multiple apps in one test project. I know use the start activity but because of security permission denial, I can not use it. The only working method is using capabilities in beforeScenario. Before start the test I ... | java|junit|automated-tests|appium-android|getgauge | 0 | 2020-01-30T11:36:44.787Z | 2,020 | 1 | 11 | 3 | 749 | 1 | 446 | 98 | 5 | 1 | true | false | false | false | false | false | zero |
59,985,224 | React Native - BackHandler is not working when keyboard is in opening state | <p>I need to close a view using setState while closing the keyboard. Using the onBlur event in TextInput, it is working fine. But In android on pressing the hardware back button also keyboard is closing. But onBlur event has not been called. TextInput still focused, but the keyboard closed.
For backhander, I am using ... | I need to close a view using setState while closing the keyboard. Using the onBlur event in TextInput, it is working fine. But In android on pressing the hardware back button also keyboard is closing. But onBlur event has not been called. TextInput still focused, but the keyboard closed. For backhander, I am using the ... | javascript|android|reactjs|react-native|keyboard | 2 | 2020-01-30T11:39:32.480Z | 2,020 | 1 | 11 | 3 | 942 | 1 | 650 | 75 | 5 | 3 | true | false | false | false | false | false | low |
59,985,347 | Nearby Connections API: Cannot access received file on Android 10 | <p>I am following <a href="https://developers.google.com/nearby/connections/android/exchange-data" rel="nofollow noreferrer">this guide</a> with the goal of transferring an image file which on the receiver side should be uploaded via a REST API.</p>
<p>Android 10 blocks access to public folders like the 'Downloads' fo... | I am following this guide with the goal of transferring an image file which on the receiver side should be uploaded via a REST API. Android 10 blocks access to public folders like the 'Downloads' folder in which all received files from Nearby Connections API are stored in, in a 'Nearby' folder. File payloadFile = fileP... | android|google-nearby|google-nearby-connections | 4 | 2020-01-30T11:45:49.210Z | 2,020 | 1 | 11 | 3 | 237 | 1 | 1,582 | 65 | 3 | 0 | false | false | false | false | false | false | low |
59,985,453 | Initializing an Array using lambda with conditions in Kotlin | <h2>Info</h2>
<p>I have an Item class file as follows:</p>
<pre><code>class Item(var color:String, var numValue:Int, var drawableID:Int){
init {
color = this.color
numValue = this.numValue
drawableID = this.drawableID
}
}
</code></pre>
<p>In the main code I create an array which conta... | Info I have an Item class file as follows: [CODE] In the main code I create an array which contains 104 objects by default attributes: [CODE] Also I have pictures in my drawable folder and I have their IDs in an array which is drawablesIDs:Array<Int> , and it contains 53 elements. Problem I want to assign my Item attri... | android|arrays|kotlin|lambda|initialization | 1 | 2020-01-30T11:52:00.440Z | 2,020 | 1 | 11 | 3 | 1,451 | 2 | 944 | 60 | 5 | 7 | true | false | false | false | false | false | low |
59,985,558 | Creating a simple Android fragment with Navigation Drawer | <p>I'm an experienced developer, but new to Android programming, and I'm a bit stumped. I started off with the Android Studio Navigation Drawer standard project template. I managed to implement a simple list of items in one of the fragments (Gallery Fragment), and do something when a button is pressed. So when the butt... | I'm an experienced developer, but new to Android programming, and I'm a bit stumped. I started off with the Android Studio Navigation Drawer standard project template. I managed to implement a simple list of items in one of the fragments (Gallery Fragment), and do something when a button is pressed. So when the button ... | android|user-interface|android-fragments|kotlin | 0 | 2020-01-30T11:58:14.330Z | 2,020 | 1 | 11 | 3 | 391 | 2 | 1,591 | 57 | 4 | 6 | true | false | false | false | false | false | zero |
59,985,574 | ViroReact render issue in debug build android | <p>I am using <a href="https://github.com/viromedia/ViroARSampleApp" rel="nofollow noreferrer">ViroARSampleApp</a> code to demonstrates placing, rotating and dragging objects in AR. Everything is working fine when I run <code>react-native run-android --variant=arDebug</code> but when I detach data cable and run the app... | I am using ViroARSampleApp code to demonstrates placing, rotating and dragging objects in AR. Everything is working fine when I run react-native run-android --variant=arDebug but when I detach data cable and run the app then the application is running fine but objects are not rendered. I tried to make proper APK file a... | android|react-native|viro-react | 2 | 2020-01-30T11:59:00.047Z | 2,020 | 1 | 11 | 3 | 187 | 1 | 759 | 45 | 3 | 0 | false | false | false | false | false | false | low |
59,985,581 | Logcat error when radio button is clicked | <p>My app is crashing when this button is clicked. I think it is something with my variable declaration of balance and amount. Balance is stored in my user model as double balance. I am not sure what is causing the error exactly as the code has no errors.</p>
<pre><code>else if (rdiAccountBalance.isChecked()) {
... | My app is crashing when this button is clicked. I think it is something with my variable declaration of balance and amount. Balance is stored in my user model as double balance. I am not sure what is causing the error exactly as the code has no errors. [CODE] This is the logcat error I am getting. I think it could be t... | android|firebase|android-layout|firebase-realtime-database | 0 | 2020-01-30T11:59:22.310Z | 2,020 | 1 | 11 | 3 | 61 | 0 | 351 | 41 | 4 | 2 | true | true | false | false | false | false | zero |
59,985,611 | Android background sizes - resizing to fit all devices | <p>this is a slightly different question to other background image sizing questions asked before. On this fragment when the user selects an icon the background image changes dynamically on each click. For example if the user clicks an icon of the sun the background will change to a sunny one, if they click a cloud icon... | this is a slightly different question to other background image sizing questions asked before. On this fragment when the user selects an icon the background image changes dynamically on each click. For example if the user clicks an icon of the sun the background will change to a sunny one, if they click a cloud icon th... | android | 0 | 2020-01-30T12:00:48.783Z | 2,020 | 1 | 12 | 3 | 37 | 1 | 868 | 54 | 1 | 2 | true | false | false | false | false | false | zero |
59,985,616 | abstract service interfaces Retrofit | <p>Let's say I have two service interfaces (using retrofit).</p>
<pre><code>interface ReminderService {
@GET("reminder" + "/list")
Observable<Response<Reminder>> getList(@HeaderMap Map<String, String> headerMap);
@POST("reminder" + "/ins")
Observable<Response<Reminder>> i... | Let's say I have two service interfaces (using retrofit). [CODE] the only difference between this two interfaces is the tableName reminder and file and since the annotation GET and POST don't accept methods inside. is there a way to abstract them? | android|retrofit|retrofit2 | 0 | 2020-01-30T12:01:08.987Z | 2,020 | 1 | 12 | 3 | 74 | 1 | 247 | 36 | 3 | 1 | true | false | false | false | false | false | zero |
59,985,632 | Navigate to a fragment from another graph without it being the start destination | <p>In my first graph, I have the following: </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/firstGraph"
... | In my first graph, I have the following: [CODE] In my second graph I have the following: [CODE] I want to navigate from "notificationFragment" to "detailsFragment" directly without it being the start destination, with including the second graph stack | android|kotlin|navigation|android-jetpack | 30 | 2020-01-30T12:02:15.010Z | 2,020 | 1 | 12 | 3 | 7,054 | 1 | 250 | 80 | 4 | 2 | true | false | true | false | true | false | high |
59,985,646 | How avoid Android context in static field in Singleton? | <p>In my Android app I need to create singleton with param for service class:</p>
<pre><code>class AndroidFileUtil2 private constructor(newContext: Context) {
init {
context = newContext
if (BuildConfig.DEBUG)
Log.d(TAG, "CONSTRUCTOR: context = $context")
}
companion object {
... | In my Android app I need to create singleton with param for service class: [CODE] and use like this: [CODE] It's work fine. When I call AndroidFileUtil2.getTest() it's success print cache dir of my app. Smt like this: [CODE] Nice. But on IDE I get warning like this: [CODE] in this line: [CODE] How fix this warning in m... | android|kotlin | 0 | 2020-01-30T12:03:00.553Z | 2,020 | 1 | 12 | 3 | 206 | 2 | 338 | 55 | 2 | 5 | true | false | false | false | false | false | zero |
59,985,647 | WhatsApp call on Genymotion Android emulator | <p>I've installed WhatsApp on a Genymotion 3.04 Android 9.0 vm on a linux mint machine, sending and receiving text works, however video calling and voice calling don't seem to work, i can see the person i'm calling and he can see me (in a video call) but can't hear him, even though he can hear me, the same is with a vo... | I've installed WhatsApp on a Genymotion 3.04 Android 9.0 vm on a linux mint machine, sending and receiving text works, however video calling and voice calling don't seem to work, i can see the person i'm calling and he can see me (in a video call) but can't hear him, even though he can hear me, the same is with a voice... | android|android-emulator|whatsapp|genymotion|phone-call | 3 | 2020-01-30T12:03:01.490Z | 2,020 | 1 | 12 | 3 | 743 | 1 | 402 | 44 | 5 | 0 | false | false | false | false | false | false | low |
59,985,650 | How to automatically switch to the strongest WiFi access point with same SSID but multiple BSSID in nativescript? | <p>I am writing a program to <strong>automatically</strong> switch to the <strong><em>strongest</em></strong> <code>WiFi Access Point</code> where there are <strong>access points</strong> with <code>same</code> <strong>SSID</strong> and <code>different</code> <strong>BSSID</strong>. </p>
<p>When there is a Wifi access... | I am writing a program to automatically switch to the strongest WiFi Access Point where there are access points with same SSID and different BSSID . When there is a Wifi access point available whose signal strength is higher than the currently connected access point, the program should disconnect the current access poi... | android-wifi|angular2-nativescript|wifimanager|wifi | 3 | 2020-01-30T12:03:06.457Z | 2,020 | 1 | 12 | 3 | 964 | 1 | 601 | 113 | 4 | 1 | true | false | false | false | false | false | low |
59,985,690 | cannot be provided without an @Provides-annotated method Dagger/MissingBinding | <p>Unable to inject presenter to Activity</p>
<p><strong>BookDashboard -> Activity</strong></p>
<pre><code>class BookDashboard : AppCompatActivity(),BookDashboardContract.MvpView{
@Inject
lateinit var presenter: BookDashboardContract.Presenter
override fun onCreate(savedInstanceState: Bundle?) {
... | Unable to inject presenter to Activity BookDashboard -> Activity [CODE] BookDashboardContract [CODE] BookDashboardPresenter If I pass no parameter to below constructor app will run but still presenter is not injected and crashed at presenter.fetchBooks() in BookDashboard -> Activity __ See comments in that code [CODE] ... | android|kotlin|dagger-2|android-mvp | 0 | 2020-01-30T12:06:19.883Z | 2,020 | 1 | 12 | 3 | 1,649 | 1 | 743 | 78 | 4 | 10 | true | false | false | false | false | false | zero |
59,985,714 | What solution is better for sync offline-mode app with server once a minute | <p>I've made Android app that uses offline-mode. Also it has button "Sync", on click - syncronization with server is performed (server is not Firebase-service DB).</p>
<p>I want to do the same sync without this button once a minute when my app is on foreground and when network connection is on.</p>
<p>WorkManager see... | I've made Android app that uses offline-mode. Also it has button "Sync", on click - syncronization with server is performed (server is not Firebase-service DB). I want to do the same sync without this button once a minute when my app is on foreground and when network connection is on. WorkManager seems the best solutio... | android|android-workmanager|android-background | 0 | 2020-01-30T12:08:05.520Z | 2,020 | 1 | 12 | 3 | 327 | 1 | 806 | 75 | 3 | 0 | false | false | false | false | false | false | zero |
59,985,774 | How can I achieve a desired fps with animation drawing on canvas with cameraX? | <p>I'm using CameraX and I'd like to play animation over canvas with the same fps which used by CameraX to show Preview.</p>
<h3>question 1:</h3>
<p>How can I to play <code>60 frames animation with 30 fps (for example)</code> of CameraX in 2 seconds, if at all possible.</p>
<h3>question 2:</h3>
<p>How can I get Camera... | I'm using CameraX and I'd like to play animation over canvas with the same fps which used by CameraX to show Preview. question 1: How can I to play 60 frames animation with 30 fps (for example) of CameraX in 2 seconds, if at all possible. question 2: How can I get CameraX fps? | android|camera|frame-rate | 0 | 2020-01-30T12:11:52.677Z | 2,020 | 1 | 12 | 3 | 172 | 1 | 277 | 78 | 3 | 0 | false | false | false | false | false | false | zero |
59,985,825 | onPress() function of TouchableOpacity does not work at first if the keyboard is open | <p>I have used TouchableOpacity as my submit button, after filling the form(Login/Registration/...) when I click on submit button(TouchableOpacity), the keyboard hides (if open), and then I need to press again on submit button and then the onPress method gets called.</p>
<p>What I want to achieve is if I click on subm... | I have used TouchableOpacity as my submit button, after filling the form(Login/Registration/...) when I click on submit button(TouchableOpacity), the keyboard hides (if open), and then I need to press again on submit button and then the onPress method gets called. What I want to achieve is if I click on submit button, ... | android|react-native|keyboard|touchableopacity | 9 | 2020-01-30T12:14:28.643Z | 2,020 | 1 | 12 | 3 | 4,465 | 1 | 563 | 85 | 4 | 1 | true | false | true | false | false | false | medium |
59,985,850 | android project compiles but doesn't run correctly | <p>this is the main activity file That I have:</p>
<pre><code>package de.project.packagelist;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v... | this is the main activity file That I have: [CODE] and this is the receiver's code: [CODE] MY code compiles without errors but when I run it, it takes too long to launch and the buttons are irresponsive. I know I am using older versions and libraries but do you see anything I can improve within my code. in my XML files... | android|android-studio|android-anr-dialog | 1 | 2020-01-30T12:15:40.363Z | 2,020 | 1 | 12 | 3 | 64 | 1 | 466 | 50 | 3 | 2 | true | false | false | false | false | false | low |
59,985,948 | Searchview in firebase recycler view is empty | <p>I am implementing a earchview to filter my data from firebase. When loading this activity the page is loaded and i can see the cards but when i hit the search bar, the activity becomes empty as the recycler view is empty. If i remove "recyclerView.setAdapter(firebaseRecyclerAdapter);" from the search function, the d... | I am implementing a earchview to filter my data from firebase. When loading this activity the page is loaded and i can see the cards but when i hit the search bar, the activity becomes empty as the recycler view is empty. If i remove "recyclerView.setAdapter(firebaseRecyclerAdapter);" from the search function, the data... | java|firebase|firebase-realtime-database|android-recyclerview|firebaseui | 1 | 2020-01-30T12:21:07.360Z | 2,020 | 1 | 12 | 3 | 154 | 1 | 434 | 45 | 5 | 3 | true | false | false | false | false | false | low |
59,985,985 | Calculate Time difference between 2 given timestamps only considering day time of the day in Android? | <p>I've to 2 different epoch timestamp A and B. For each day i have different sunrise and sunset times.
Suppose for day 1, which is timestamp A day sunrise time is 6.00 am and sun set time as 6.30 pm and for day2, sunrise time is 6.05 am and sunset time is 6.25pm, etc., below is the format i have,</p>
<pre><code>val ... | I've to 2 different epoch timestamp A and B. For each day i have different sunrise and sunset times. Suppose for day 1, which is timestamp A day sunrise time is 6.00 am and sun set time as 6.30 pm and for day2, sunrise time is 6.05 am and sunset time is 6.25pm, etc., below is the format i have, [CODE] Now how to calcul... | android|timestamp | 0 | 2020-01-30T12:23:37.813Z | 2,020 | 1 | 12 | 3 | 27 | 1 | 415 | 101 | 2 | 1 | true | false | false | false | false | false | zero |
59,986,025 | Insert into mysql without internet | <p>I'm working on an android application that inserts a list and some editTexts into an online database (mySql). Later I realized that the application will be used in areas where there is no internet! I want it when I don't have internet and I press the insert button to "run" until it has internet. how can i do this?..... | I'm working on an android application that inserts a list and some editTexts into an online database (mySql). Later I realized that the application will be used in areas where there is no internet! I want it when I don't have internet and I press the insert button to "run" until it has internet. how can i do this?... a... | android | 0 | 2020-01-30T12:26:10.210Z | 2,020 | 1 | 12 | 3 | 113 | 1 | 335 | 34 | 1 | 0 | false | false | false | false | false | false | zero |
59,986,031 | Cant get ArrayList from another class. Its always empty | <p>im still Android beginner and new to Stackowerflow, i hope you will understand my problem. Im using Volley libary and Singleton class. I have JsonParser class which after parsing should return the filled list with objects.</p>
<pre><code>public class JsonParse {
Context context;
public ArrayList<ParseItem> p... | im still Android beginner and new to Stackowerflow, i hope you will understand my problem. Im using Volley libary and Singleton class. I have JsonParser class which after parsing should return the filled list with objects. [CODE] Then im trying to call getList and take my list i HomeFragment. [CODE] My arrayList is alw... | java|android|json|android-volley | 0 | 2020-01-30T12:26:30.713Z | 2,020 | 1 | 12 | 3 | 150 | 2 | 358 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
59,986,065 | How to set MediaStore openOutputStream offset in Long? | <p>I am trying to download a file to download the directory in Android 10 and above. I did as following.</p>
<pre><code>val resolver = contentResolver
val contentValues = ContentValues().apply {
put(MediaStore.MediaColumns.DISPLAY_NAME, "CuteKitten001")
put(MediaStore.MediaColumns.MIME_TYPE, "image/jpeg")
... | I am trying to download a file to download the directory in Android 10 and above. I did as following. [CODE] In outputStream?.write(buffer, 0, byteSize) line the offset takes an integer, but I want to use a Long so that I can download files larger than 2GB . | android|kotlin|mediastore | 1 | 2020-01-30T12:28:23.347Z | 2,020 | 1 | 12 | 3 | 366 | 0 | 258 | 54 | 3 | 1 | true | true | false | false | false | false | low |
59,986,199 | How to use Dagger 2 to Inject ViewModel of same Fragments inside ViewPager | <p>I am trying to add Dagger 2 to my project. I was able to inject ViewModels (AndroidX Architecture component) for my fragments. </p>
<p>I have a <strong>ViewPager which has 2 instances of the same fragment</strong> (Only a minor change for each tabs) and in each tab, I am observing a <code>LiveData</code> to get upd... | I am trying to add Dagger 2 to my project. I was able to inject ViewModels (AndroidX Architecture component) for my fragments. I have a ViewPager which has 2 instances of the same fragment (Only a minor change for each tabs) and in each tab, I am observing a LiveData to get updated on data change (from API). The issue ... | android|android-viewpager|dagger-2|androidx|android-mvvm | 7 | 2020-01-30T12:36:14.550Z | 2,020 | 1 | 12 | 3 | 2,048 | 2 | 1,614 | 74 | 5 | 7 | true | false | false | false | false | false | medium |
59,986,208 | Can tensorflow lite model be zipped before adding it to Android app? | <p>My goal is to have a smaller tflite model. To that end, I thought of zipping the tflite model and adding it to Android app. From within the Android app, I can always unzip the model and use it.</p>
<p>I have already tried compressing a tflite model, and then uncompressing it. The uncompressed model works fine in th... | My goal is to have a smaller tflite model. To that end, I thought of zipping the tflite model and adding it to Android app. From within the Android app, I can always unzip the model and use it. I have already tried compressing a tflite model, and then uncompressing it. The uncompressed model works fine in the Python AP... | android|performance|tensorflow|memory-management|tensorflow-lite | 2 | 2020-01-30T12:36:44.163Z | 2,020 | 1 | 12 | 3 | 469 | 1 | 626 | 68 | 5 | 0 | false | false | false | false | false | false | low |
59,986,263 | passing data between activities in android using soap webservice | <p>Hello I am new in application development with android and soap. My problem is that I want to retrieve the session id of the logged in user and use it in another activity. It is provided in response by the web service in a table during authentication. I found as a solution the creation of a constant class but I don'... | Hello I am new in application development with android and soap. My problem is that I want to retrieve the session id of the logged in user and use it in another activity. It is provided in response by the web service in a table during authentication. I found as a solution the creation of a constant class but I don't k... | java|android|soap | 1 | 2020-01-30T12:40:20.337Z | 2,020 | 1 | 12 | 3 | 46 | 0 | 414 | 64 | 3 | 1 | true | true | false | false | false | false | low |
59,986,282 | Android push notification - show the send time not the receive time | <p>I'm building a messenger app similar to Whatsapp. </p>
<p>There is one problem though. If the phone is turned off when the push notification is sent and then is turned on, he will receive the push notification with time "now" even though the push notification was send 30 min ago.</p>
<p>This can be confusing if t... | I'm building a messenger app similar to Whatsapp. There is one problem though. If the phone is turned off when the push notification is sent and then is turned on, he will receive the push notification with time "now" even though the push notification was send 30 min ago. This can be confusing if the notifications repr... | android|push-notification | 1 | 2020-01-30T12:41:27.367Z | 2,020 | 1 | 12 | 3 | 311 | 1 | 570 | 67 | 2 | 0 | false | false | false | false | false | false | low |
59,986,300 | Android Gradle how to change type of variable or argument in java file | <p>How can i create a Gradle task to create a copy of my java source code and then look for specific classes and change them.</p>
<p><em>example</em>: I want to change all variables,methods return type and methods arguments of type <code>com.a.*</code> to <code>java.lang.Object</code>, and then if possible comment all... | How can i create a Gradle task to create a copy of my java source code and then look for specific classes and change them. example : I want to change all variables,methods return type and methods arguments of type com.a.* to java.lang.Object , and then if possible comment all lines of code that has method call of Objec... | java|android|gradle|build.gradle|gradle-plugin | 0 | 2020-01-30T12:42:31.910Z | 2,020 | 1 | 12 | 3 | 70 | 0 | 438 | 70 | 5 | 2 | true | true | false | false | false | false | zero |
59,986,375 | Disable Android navigation in Kiosk Mode (Android Management API) | <p>We have a Kiosk mode setup completed using Android Management API with our launcher app acting as kiosk app. However customizations applied through policy are not working as per expected.</p>
<pre><code>"kioskCustomization": {
"systemNavigation":"HOME_BUTTON_ONLY",
"statusBar":"SYSTEM_INFO_ONLY",
"deviceSetti... | We have a Kiosk mode setup completed using Android Management API with our launcher app acting as kiosk app. However customizations applied through policy are not working as per expected. [CODE] We have this in the policy and it is getting synced to device but still all buttons in navigation bar working and still we ca... | android|kiosk-mode|android-management-api | 1 | 2020-01-30T12:46:07.187Z | 2,020 | 1 | 12 | 3 | 879 | 2 | 536 | 65 | 3 | 1 | true | false | false | false | false | false | low |
59,986,387 | How to read multiple Bar Code from Newland MT90? | <p>I have a Newland MT90 barcode reader android mobile. I am creating an application in which I want to scan two barcode. When I am running my code and I press any button first time then it is working fine. At the same time when I press another button then it is replacing Bar Code in both TextView. How can I resolve th... | I have a Newland MT90 barcode reader android mobile. I am creating an application in which I want to scan two barcode. When I am running my code and I press any button first time then it is working fine. At the same time when I press another button then it is replacing Bar Code in both TextView. How can I resolve this ... | android|qr-code|barcode | 0 | 2020-01-30T12:46:52.047Z | 2,020 | 1 | 12 | 3 | 443 | 1 | 328 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
59,986,416 | Spinner methods (setSelection) not working for only one spinner in activity | <p>In my activity, I have two spinners. I have to set their selections based on certain values.</p>
<p>One of the spinners (<code>gradeSpinner</code>) works fine. But the other, <code>boardSpinner</code>, doesn't. None of its methods work, and I need <code>setSelection</code> to work properly.</p>
<p>Java code: <a hr... | In my activity, I have two spinners. I have to set their selections based on certain values. One of the spinners ( gradeSpinner ) works fine. But the other, boardSpinner , doesn't. None of its methods work, and I need setSelection to work properly. Java code: https://gist.github.com/shlokj/1254c3caeaf1e36786b6128462304... | android|android-spinner | 1 | 2020-01-30T12:47:58.860Z | 2,020 | 1 | 12 | 3 | 152 | 1 | 452 | 75 | 2 | 0 | false | false | false | false | false | false | low |
59,986,523 | How to change the color of certain parts of grid line in MpAndroidChart | <p>I am trying to use MPAndroidChart to make a Line chart in my app. I want to change the grid color of certain parts of the grid, when a value is selected on my graph.</p>
<p>Something like this:
<img src="https://i.stack.imgur.com/EXs7s.png" alt="example image">.</p>
<p>I know you can change the color of a grid lin... | I am trying to use MPAndroidChart to make a Line chart in my app. I want to change the grid color of certain parts of the grid, when a value is selected on my graph. Something like this: . I know you can change the color of a grid line using : [CODE] But this changes the color of the entire grid line either for the x-a... | java|android|mpandroidchart | 0 | 2020-01-30T12:53:31.450Z | 2,020 | 1 | 12 | 3 | 963 | 1 | 428 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
59,986,560 | resourceIdMatches() doesn't work in Appium UiSelector | <p>I'm using appium for Android.</p>
<p>Take a look at the screenshot attached. I have 3 RecyclerView classes, each of them has its own ID.</p>
<p>I want to scroll the second RecyclerView which has the ID <code>timePickerRecyclerMinutes</code> until I find the value I require. I have the following query, but it does ... | I'm using appium for Android. Take a look at the screenshot attached. I have 3 RecyclerView classes, each of them has its own ID. I want to scroll the second RecyclerView which has the ID timePickerRecyclerMinutes until I find the value I require. I have the following query, but it does not work: [CODE] The error is: [... | java|android|regex|uiscrollview|appium | 2 | 2020-01-30T12:56:22.560Z | 2,020 | 1 | 12 | 3 | 1,254 | 1 | 546 | 53 | 5 | 3 | true | false | false | false | false | false | low |
59,986,590 | Custom Feedback Slider widget | <p><a href="https://i.stack.imgur.com/2TTpO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2TTpO.png" alt="How can i create custom feedback slider widget in flutter ?"></a></p>
<p>I am Novice flutter Developer want to create feedback slider widget like shown in attached image.</p>
<p>Smiley will k... | I am Novice flutter Developer want to create feedback slider widget like shown in attached image. Smiley will keep on changing as you slide. Any help would be highly appreciated. | android|flutter|dart|flutter-layout|flutter-dependencies | 0 | 2020-01-30T12:57:43.263Z | 2,020 | 1 | 12 | 3 | 83 | 0 | 178 | 29 | 5 | 0 | false | true | false | false | false | false | zero |
59,986,751 | How to get names of users and set text to TextView | <p>Following this post <a href="https://stackoverflow.com/a/29689855/12205512">Link</a> I created an app that shows the google account names of users of this app.
But if I do in Android studio and I would like to set the text to display.</p>
<p>I must write:</p>
<pre class="lang-java prettyprint-override"><code>Text... | Following this post Link I created an app that shows the google account names of users of this app. But if I do in Android studio and I would like to set the text to display. I must write: [CODE] Instead of: [CODE] All code: [CODE] But If I run this code, after the app starts I see "App has been stopped". What is wrong... | android|list|android-permissions|google-account | 0 | 2020-01-30T13:07:07.010Z | 2,020 | 1 | 13 | 3 | 445 | 0 | 386 | 50 | 4 | 4 | true | true | false | false | false | false | zero |
59,986,762 | FFmpeg sdl output in android | <p>I try to execute the next command </p>
<pre><code>-i $inputFilePath -filter_complex \"realtime,scale=iw/2:-1,negate,format=yuv420p\" -f sdl2 -
</code></pre>
<p>with <a href="https://github.com/tanersener/mobile-ffmpeg" rel="nofollow noreferrer">mobile-ffmpeg</a> on android and get the next error</p>
<pre><code>mo... | I try to execute the next command [CODE] with mobile-ffmpeg on android and get the next error [CODE] As far as I understand I need to create SDL_Activity or something similar to display video, am I right? Please explain if I'm wrong otherwise help me. | android|ffmpeg|sdl-2 | 2 | 2020-01-30T13:07:38.263Z | 2,020 | 1 | 13 | 3 | 159 | 0 | 251 | 28 | 3 | 2 | true | true | false | false | false | false | low |
59,986,857 | Handshake failed in android pie | <p>I've developed an Android app & I'm using two way ssl authentication in this app. Till Android 8.1 app is working fine. But from Android 9.0 app is getting 'handshake failed' error from server.</p> | I've developed an Android app & I'm using two way ssl authentication in this app. Till Android 8.1 app is working fine. But from Android 9.0 app is getting 'handshake failed' error from server. | ssl|android-9.0-pie | 1 | 2020-01-30T13:13:09.880Z | 2,020 | 1 | 13 | 3 | 40 | 0 | 193 | 31 | 2 | 0 | false | true | false | false | false | false | low |
59,986,928 | Flutter: future not returned after closing alert dialog | <p>I created a http method in Flutter like below:</p>
<pre><code> Future<void> addProduct(Product product) {
const url = 'https://flutter-shop-3de16.firebaseio.com/products';
return http
.post(
url,
body: json.encode({
'title': product.title,
'description': product.de... | I created a http method in Flutter like below: [CODE] I know that my url is wrong because i want to get error. In .catchError i throw an error and in the main page by provider i used addProduct like this: [CODE] I catchError i got error and i show an alert dialog.After tap on Okay button i want to execute then block so... | flutter|android-alertdialog|future|flutter-dependencies | 1 | 2020-01-30T13:16:45.760Z | 2,020 | 1 | 13 | 3 | 1,178 | 4 | 439 | 55 | 4 | 3 | true | false | false | false | false | false | low |
59,987,064 | Android XzingScanner : How to customise ZxingScanner layout ? (add button) | <p>I'm realising a barcode scanner using Zxing Scanner, everything is working for this part but now I would like to add one button on the layout (to toggle on/off flashlight). I checked everywhere on the internet but found nothing. </p>
<p>So, here is my questions : </p>
<ul>
<li><p>Is it possible de ton find ou modi... | I'm realising a barcode scanner using Zxing Scanner, everything is working for this part but now I would like to add one button on the layout (to toggle on/off flashlight). I checked everywhere on the internet but found nothing. So, here is my questions : Is it possible de ton find ou modify the .xml to add a button ? ... | java|android|xml|layout|zxing | 3 | 2020-01-30T13:23:06.270Z | 2,020 | 1 | 13 | 3 | 4,239 | 1 | 486 | 74 | 5 | 1 | true | false | true | false | false | false | low |
59,987,078 | Auto Layout all device sw layout folder | <p>I want to size the layouts for every pixel on Android. My current folder</p>
<ol>
<li>-sw300dp </li>
<li>-sw360dp</li>
<li>-sw420dp </li>
<li>-sw600dp</li>
<li>-sw720dp</li>
</ol>
<p>But I'm having trouble. Pixel API 29 1080x1920: 420dp and New Device 1080x2280: xxhdpi I am editing two devices via sw360dp. H... | I want to size the layouts for every pixel on Android. My current folder -sw300dp -sw360dp -sw420dp -sw600dp -sw720dp But I'm having trouble. Pixel API 29 1080x1920: 420dp and New Device 1080x2280: xxhdpi I am editing two devices via sw360dp. How can we edit two different screens over different sw, not the same sw360dp... | android | 1 | 2020-01-30T13:24:03.217Z | 2,020 | 1 | 13 | 3 | 35 | 0 | 321 | 39 | 1 | 0 | false | true | false | false | false | false | low |
59,987,289 | Deploying a watch face to device | <p>I developed a watch face and it works on Android emulator. </p>
<p>I have Fossil Explorist Gen4 watch which has no usb connections, only bluetooth/wifi. How can I run this watch face on my device? I exported signed apk and tried to install on my phone but it doesn't install. Also running from Android Studio is no s... | I developed a watch face and it works on Android emulator. I have Fossil Explorist Gen4 watch which has no usb connections, only bluetooth/wifi. How can I run this watch face on my device? I exported signed apk and tried to install on my phone but it doesn't install. Also running from Android Studio is no success, I do... | android|wear-os|watchface | 0 | 2020-01-30T13:35:10.423Z | 2,020 | 1 | 13 | 3 | 210 | 1 | 357 | 32 | 3 | 0 | false | false | false | false | false | false | zero |
59,987,347 | LiveDataScope emit not calling | <p>I am experiencing a very unusual problem where LiveDataScope is not throwing my Exception, launched in my repository.
The problem is that if in place of the emit, I put a livedata event, it is dispatched to the observer, however with emit, it does not launch the event to it.</p>
<p><strong>ViewModel:</strong></p>
... | I am experiencing a very unusual problem where LiveDataScope is not throwing my Exception, launched in my repository. The problem is that if in place of the emit, I put a livedata event, it is dispatched to the observer, however with emit, it does not launch the event to it. ViewModel: [CODE] base repository [CODE] As ... | android|viewmodel|android-livedata|kotlin-coroutines | 4 | 2020-01-30T13:38:46.600Z | 2,020 | 1 | 13 | 3 | 1,352 | 1 | 474 | 30 | 4 | 2 | true | false | false | false | false | false | low |
59,987,529 | RemoveView is not supported in AdapterView on Android 9 Devices | <p>My app works fine on every Android 8 device, but crashes on devices running Android 9.</p>
<p>I'm trying to upgrade it, but I'm getting this:</p>
<pre><code>java.lang.UnsupportedOperationException: removeView(View) is not supported in AdapterView
at android.widget.AdapterView.removeView(AdapterView.java:94... | My app works fine on every Android 8 device, but crashes on devices running Android 9. I'm trying to upgrade it, but I'm getting this: [CODE] I DON'T USE ANY "removeView" FUNCTION in my code, it's in the library only. My gradle file looks like this: [CODE] I'm trying changing libraries versions, but anything seems to w... | android|android-recyclerview|android-9.0-pie | 0 | 2020-01-30T13:49:21.940Z | 2,020 | 1 | 13 | 3 | 263 | 1 | 567 | 63 | 3 | 2 | true | false | false | false | false | false | zero |
59,987,566 | Alarm rescheduling - AlarmManager pendingIntent is not null after force kill | <p>I'm searching for a way to understand when an app has been somehow force killed, so that I can perform some tasks the next time the user manually opens the app (restart alarms, reschedule jobs, do cleaning etc). To achieve this I've scheduled an AlarmManager far in the future, and every time the app starts I check i... | I'm searching for a way to understand when an app has been somehow force killed, so that I can perform some tasks the next time the user manually opens the app (restart alarms, reschedule jobs, do cleaning etc). To achieve this I've scheduled an AlarmManager far in the future, and every time the app starts I check if t... | android|alarmmanager|android-pendingintent | 2 | 2020-01-30T13:51:43.040Z | 2,020 | 1 | 13 | 3 | 355 | 1 | 1,734 | 76 | 3 | 2 | true | false | false | false | false | false | low |
59,987,575 | Can i restrict users from using my app when user has declined let say, like push notifications | <p>I am currently working on app, that in my thougths require push notifications, users can turn them off, but app needs them, so i am just showing alert to user "You need to allow push notifications to use this app", is it allowed in Android and IOS? Are there any restrictions, like "i have to let user use the app eve... | I am currently working on app, that in my thougths require push notifications, users can turn them off, but app needs them, so i am just showing alert to user "You need to allow push notifications to use this app", is it allowed in Android and IOS? Are there any restrictions, like "i have to let user use the app even w... | java|android|ios|notifications | 0 | 2020-01-30T13:52:08.293Z | 2,020 | 1 | 13 | 3 | 73 | 2 | 349 | 94 | 4 | 0 | false | false | false | false | false | false | zero |
59,987,761 | How to unit test LiveData Transformations | <p>I clearly don't understand how to unit test business logic inside Transformation. In my specific case I need to test <code>Transformations.map</code>, but I guess <code>Transformations.switchmap</code> would be the same. </p>
<p>The following is just an example of my scenario, and what I'd like to achieve. </p>
<h... | I clearly don't understand how to unit test business logic inside Transformation. In my specific case I need to test Transformations.map , but I guess Transformations.switchmap would be the same. The following is just an example of my scenario, and what I'd like to achieve. MyViewModel.kt [CODE] With: [CODE] myReposito... | android|unit-testing|kotlin|android-livedata|mockk | 1 | 2020-01-30T14:03:00.843Z | 2,020 | 1 | 14 | 3 | 1,647 | 1 | 622 | 41 | 5 | 3 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.