id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60,056,014 | How to rectify a DrawersLayout? | <p>I am trying to add the navigation layout to my activity but I keep getting an error of type </p>
<blockquote>
<p>Caused by java.lang.NullPointerException: Attempt to invoke virtual
method 'void
androidx.drawerlayout.widget.DrawerLayout.addDrawerListener(androidx.drawerlayout.widget.DrawerLayout$DrawerListene... | I am trying to add the navigation layout to my activity but I keep getting an error of type Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.drawerlayout.widget.DrawerLayout.addDrawerListener(androidx.drawerlayout.widget.DrawerLayout$DrawerListener)' on a null object reference W... | java|android | -2 | 2020-02-04T11:06:20.577Z | 2,020 | 2 | 11 | 1 | 55 | 1 | 370 | 31 | 2 | 2 | true | false | false | false | false | true | negative |
60,056,024 | SQLite MVVM return & obtain rowId in Activity | <p>I have an app built using MVVM. I have the app successfully doing inserts into the SQLite database. I am now trying to obtain the rowId in the DB after the insert is done so on subsequent activities updates can be made to that row.</p>
<p>I fully understand the part where we change Void to Long in the DAO but I hav... | I have an app built using MVVM. I have the app successfully doing inserts into the SQLite database. I am now trying to obtain the rowId in the DB after the insert is done so on subsequent activities updates can be made to that row. I fully understand the part where we change Void to Long in the DAO but I have no idea h... | java|android|sqlite|mvvm|android-room | 0 | 2020-02-04T11:06:54.617Z | 2,020 | 2 | 11 | 1 | 137 | 1 | 933 | 45 | 5 | 6 | true | false | false | false | false | false | zero |
60,056,066 | How to show loading spinner in activity while this activity is loading(Xamarin.Android)? | <p>I have the following <code>MainActivity</code></p>
<p><a href="https://i.stack.imgur.com/F05gem.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F05gem.png" alt="enter image description here"></a></p>
<p>When I click its <code>GO TO SECOND ACTIVITY</code> button I go to <code>SecondActivity</code... | I have the following MainActivity When I click its GO TO SECOND ACTIVITY button I go to SecondActivity but as in SecondActivity I have a very big zoomable image, the application stays on MainActivity for about 2, 3 seconds and then SecondActivity opens. Тo prevent the user from thinking that the GO TO SECOND ACTIVITY b... | xamarin.android|loading|android-spinner | 0 | 2020-02-04T11:09:23.343Z | 2,020 | 2 | 11 | 1 | 164 | 1 | 541 | 88 | 3 | 1 | true | false | false | false | false | false | zero |
60,056,130 | Can I send bitmap file from csharp application to android application over network stream? | <p>I am trying to build a remote desktop application. Well I can successfully transfer bitmaps over stream using binaryformatter serialization/deserialization on Csharp Server and Client Applications. But my main goal is to transfer bitmaps over to android application from PC but I can't find any alternative for deseri... | I am trying to build a remote desktop application. Well I can successfully transfer bitmaps over stream using binaryformatter serialization/deserialization on Csharp Server and Client Applications. But my main goal is to transfer bitmaps over to android application from PC but I can't find any alternative for deseriali... | c#|android|serialization|deserialization|inputstream | -1 | 2020-02-04T11:12:38.243Z | 2,020 | 2 | 11 | 1 | 91 | 1 | 343 | 90 | 5 | 0 | false | false | false | false | false | true | negative |
60,056,146 | Is there a way to define the starting tab in the navigation advanced sample? | <p>I am working on the project <a href="https://github.com/android/architecture-components-samples/tree/master/NavigationAdvancedSample" rel="nofollow noreferrer">NavigationAdvancedSample</a> of the
<a href="https://github.com/android/architecture-components-samples" rel="nofollow noreferrer">architecture-components-s... | I am working on the project NavigationAdvancedSample of the architecture-components-samples repository. This project shows a workaround to support multiple back stacks for each tab of a BottomNavigationView . In this configuration, you define a navigation graph for each of your tabs and let the class extension Navigati... | android|kotlin|android-architecture-navigation|android-components | 4 | 2020-02-04T11:13:28.397Z | 2,020 | 2 | 11 | 1 | 213 | 1 | 730 | 76 | 4 | 0 | false | false | false | false | false | false | low |
60,056,220 | instanceof not working for a JSON object - why? | <p><a href="https://i.stack.imgur.com/F85fw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F85fw.png" alt="check this link for the response"></a>Hi in the below code key name as value was acting as a object and string .want to check with the name .if name is matches with that then it should check tw... | Hi in the below code key name as value was acting as a object and string .want to check with the name .if name is matches with that then it should check two condition value is object or string . if value is object then if condition should execute otherwise else condition should execute .but it is not going any of the l... | android|instanceof | 0 | 2020-02-04T11:16:49.683Z | 2,020 | 2 | 11 | 1 | 637 | 1 | 434 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
60,056,241 | Why Room remove my database after migration | <p>I want create new table in database. After migration app removed all items in database. Why? I haven't used <code>fallbackToDestructiveMigration()</code></p>
<p>My code:</p>
<pre><code>public class DatabaseClient {
private static DatabaseClient mInstance;
private DatabaseApp databaseApp;
private DatabaseClient(C... | I want create new table in database. After migration app removed all items in database. Why? I haven't used fallbackToDestructiveMigration() My code: [CODE] What am I doing wrong? | java|android|migration|android-room|database-migration | 0 | 2020-02-04T11:18:25.587Z | 2,020 | 2 | 11 | 1 | 87 | 1 | 179 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
60,056,329 | how i can set two listview in one page in xamarin | <p>I have two listview on one page, but the problem is when refreshing the list view only one list be refreshed and when scrolling the listview also one listview scrolling,</p>
<p>for more information, I can't merge two listviews in one because I have some cases do with attachment listview </p>
<p><strong>the xaml co... | I have two listview on one page, but the problem is when refreshing the list view only one list be refreshed and when scrolling the listview also one listview scrolling, for more information, I can't merge two listviews in one because I have some cases do with attachment listview the xaml code [CODE] I try to do this c... | xamarin|xamarin.android|xamarin.ios | 0 | 2020-02-04T11:24:12.800Z | 2,020 | 2 | 11 | 1 | 340 | 1 | 430 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
60,056,369 | Retrieved Data from Firebasedatabase and set into recyclierview Adapter | <p>I want to read the data from firebasedatabase and show that into recyclerview retrieve data form FirebaseDatabase by orderbychild method. I want to read data of that child who's email match with my useremail who is currently login from app . </p>
<p>This is my Firebase:</p>
<p><a href="https://i.stack.imgur.com/rf... | I want to read the data from firebasedatabase and show that into recyclerview retrieve data form FirebaseDatabase by orderbychild method. I want to read data of that child who's email match with my useremail who is currently login from app . This is my Firebase: I have successfully completed the first part, but I am fa... | android | 3 | 2020-02-04T11:26:01.770Z | 2,020 | 2 | 11 | 1 | 63 | 1 | 667 | 71 | 1 | 2 | true | false | false | false | false | false | low |
60,056,399 | AutocompleteTextView click listener called twice | <p>I've this layout:</p>
<pre><code><com.google.android.material.textfield.TextInputLayout
android:id="@+id/input_birthdate"
style="@style/ExposedDropDownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/birthdate">
<AutoCompleteTextV... | I've this layout: [CODE] With this style: [CODE] I've tried to set a click listener on the autocomplete text view: [CODE] The listener is called twice...why? How can i solve this? EDIT: removing the style, the first click (gaining the focus) is ignored, than the second click is called correctly once, but I lose the "ri... | java|android|dropdown|onclicklistener|autocompletetextview | 6 | 2020-02-04T11:28:04.620Z | 2,020 | 2 | 11 | 1 | 1,267 | 2 | 351 | 48 | 5 | 3 | true | false | false | false | false | false | medium |
60,056,467 | How do i use FloatActionButton in whole application | <blockquote>
<p>I have this code and run it in one of my pages but I want to use this part of code in whole my application, but i don't know how? I don't want to use Scaffold because when i use it in other pages it makes a problem because of running 2 scaffolds, plz help me how can I use this code in whole my applica... | I have this code and run it in one of my pages but I want to use this part of code in whole my application, but i don't know how? I don't want to use Scaffold because when i use it in other pages it makes a problem because of running 2 scaffolds, plz help me how can I use this code in whole my application? [CODE] | android|flutter|flutter-layout|flutter-animation|flutter-test | 1 | 2020-02-04T11:31:56.900Z | 2,020 | 2 | 11 | 1 | 53 | 1 | 314 | 51 | 5 | 1 | true | false | false | false | false | false | low |
60,056,491 | Xamarin Forms Aar Library Implementation Problem | <p>I added aar library to XF project. I create callback class for a method that I want to use from aar library which I've added. The aar interface, which I created callback class in, also implements its own methods as well as IBinder AsBinder() method. I read <a href="https://docs.microsoft.com/en-us/xamarin/android/a... | I added aar library to XF project. I create callback class for a method that I want to use from aar library which I've added. The aar interface, which I created callback class in, also implements its own methods as well as IBinder AsBinder() method. I read Bound Services documents thus I tried to create Service class b... | xamarin|xamarin.forms|xamarin.android | 1 | 2020-02-04T11:32:58.893Z | 2,020 | 2 | 11 | 1 | 109 | 1 | 541 | 48 | 3 | 2 | true | false | false | false | false | false | low |
60,056,518 | Can I use prebuilt shared libs(.so) for arm abi in my apk, with no NDK? | <p>I have a bunch of prebuilt libraries, which satisfies all my apps requirements. But, I don't want to compile anything, just use functions from that shared libs. Should I just add .so files to /app/src/main/jniLibs and .... use JNI functions?</p> | I have a bunch of prebuilt libraries, which satisfies all my apps requirements. But, I don't want to compile anything, just use functions from that shared libs. Should I just add .so files to /app/src/main/jniLibs and .... use JNI functions? | android|java-native-interface|shared-libraries | 0 | 2020-02-04T11:34:49.577Z | 2,020 | 2 | 11 | 1 | 49 | 1 | 241 | 71 | 3 | 0 | false | false | false | false | false | false | zero |
60,056,522 | Use implicit intent to launch another activity in the same app | <p>So recently at an Interview I was asked if we can use implicit intent to launch Activity B from Activity A. From what I understand that we can do this but it would lead to OS showing a popup and user selecting which app (if multiple) to chose from. So in what case can this be useful to launch another activity within... | So recently at an Interview I was asked if we can use implicit intent to launch Activity B from Activity A. From what I understand that we can do this but it would lead to OS showing a popup and user selecting which app (if multiple) to chose from. So in what case can this be useful to launch another activity within sa... | android | 0 | 2020-02-04T11:35:19.430Z | 2,020 | 2 | 11 | 1 | 315 | 2 | 348 | 62 | 1 | 0 | false | false | false | false | false | false | zero |
60,056,586 | Cannot generate url image with AsyncTask | <p>I have a list of number of url and its name is <code>listOfUrlSources</code>,
I passed it inside class <code>GenerateUrlImages</code> the task of this class is to come out with a picture link and it works if you use it and pass a link to one site it gives out a picture link, but now I'm trying to pass more than one... | I have a list of number of url and its name is listOfUrlSources , I passed it inside class GenerateUrlImages the task of this class is to come out with a picture link and it works if you use it and pass a link to one site it gives out a picture link, but now I'm trying to pass more than one site for it and also give me... | java|android | 0 | 2020-02-04T11:38:46.263Z | 2,020 | 2 | 11 | 1 | 43 | 2 | 389 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
60,056,596 | Simple MVVM architecture on Android with AndroidX on Java | <p><br>
I'm getting really annoyed trying to figure out how the frick creates a simple MVVM pattern Android activity.</p>
<p>What I want is simply bind a view model public method (which prints a "Eureka!" log), to a Button (with onClick action).</p>
<hr>
<p>To achieve this, what I did since now is:</p>
<p><strong>d... | I'm getting really annoyed trying to figure out how the frick creates a simple MVVM pattern Android activity. What I want is simply bind a view model public method (which prints a "Eureka!" log), to a Button (with onClick action). To achieve this, what I did since now is: data_activity.xml [CODE] DataViewModel.java [CO... | java|android|user-interface|mvvm|androidx | 0 | 2020-02-04T11:39:18.120Z | 2,020 | 2 | 11 | 1 | 103 | 2 | 653 | 57 | 5 | 4 | true | false | false | false | false | false | zero |
60,056,608 | Super types of classes could not be resolved. Please make sure you have the required dependencies | <p>I can build the project but I can't run it on the phone cause of this bug.</p>
<blockquote>
<p>Supertypes of the following classes cannot be resolved. Please make
sure you have the required dependencies in the classpath:
class com.app.App, unresolved supertypes: com.base.AppBase</p>
</blockquote>
<p>Upon... | I can build the project but I can't run it on the phone cause of this bug. Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.app.App, unresolved supertypes: com.base.AppBase Upon digging dip into Gradle logs, it fails at this task :fe... | java|android|android-studio|gradle | 0 | 2020-02-04T11:39:59.693Z | 2,020 | 2 | 11 | 1 | 147 | 2 | 496 | 97 | 4 | 0 | false | false | false | false | false | false | zero |
60,056,677 | How to connect an existing SQLite database to a ROOM Android? | <p><strong>Code:</strong></p>
<pre><code>private static UserRoomDatabase INSTANCE;
public static UserRoomDatabase getDatabase(final Context context) {
if (INSTANCE == null) {
synchronized (UserRoomDatabase.class) {
if (INSTANCE == null) {
/* A database is created here, but is it possible to in... | Code: [CODE] A database is created here, but is it possible to indicate the path to an existing database here, followed by dependency binding? Or is there another way? | android|sqlite | 1 | 2020-02-04T11:43:16.180Z | 2,020 | 2 | 11 | 1 | 253 | 1 | 167 | 61 | 2 | 1 | true | false | false | false | false | false | low |
60,056,836 | Cannot resolve method 'getJSModule' in Android | <p>I am using this method in android but it's displaying this error " <strong>context.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("Heartbeat",null);</strong>"</p>
<p>I am importing <code>import com.facebook.react.modules.core.DeviceEventManagerModule;</code> but still the problem remains.
A... | I am using this method in android but it's displaying this error " context.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("Heartbeat",null); " I am importing import com.facebook.react.modules.core.DeviceEventManagerModule; but still the problem remains. Any idea why it displays that? Couldn't fi... | java|android|react-native|import | 1 | 2020-02-04T11:53:06.403Z | 2,020 | 2 | 11 | 1 | 562 | 1 | 355 | 46 | 4 | 1 | true | false | false | false | false | false | low |
60,056,922 | editing HideBottomViewOnScrollBehavior class android | <p>I want to edit HideBottomViewOnScrollBehavior class so that it can be reversed
to work as HideTopViewOnScrollBehavior</p>
<h2>this is the class code :</h2>
<blockquote>
<p>/** * The {@link Behavior} for a View within a {@link
CoordinatorLayout} to hide the view off the * bottom of the screen
when scrollin... | I want to edit HideBottomViewOnScrollBehavior class so that it can be reversed to work as HideTopViewOnScrollBehavior this is the class code : /** * The {@link Behavior} for a View within a {@link CoordinatorLayout} to hide the view off the * bottom of the screen when scrolling down, and show it when scrolling up. */ [... | java|android|animation|android-coordinatorlayout | 2 | 2020-02-04T11:57:54.747Z | 2,020 | 2 | 11 | 1 | 306 | 0 | 653 | 52 | 4 | 4 | true | true | false | false | false | false | low |
60,056,990 | Android - Custom view text color Selector | <p>I created a custom view which contains a <code>TextView</code> inside and at some point I will need to change the text colour. </p>
<p>Using a standard <code>declare-styleable</code> with <code><attr name="android:textColor"/></code> works.</p>
<pre><code> <declare-styleable name="CustomStatusButton">... | I created a custom view which contains a TextView inside and at some point I will need to change the text colour. Using a standard declare-styleable with <attr name="android:textColor"/> works. [CODE] I use this to set the colour: [CODE] -- Now I need to set a Selector colour for enabled/disabled states. so I created t... | android|android-view | 1 | 2020-02-04T12:01:28.133Z | 2,020 | 2 | 12 | 1 | 704 | 1 | 473 | 41 | 2 | 4 | true | false | false | false | false | false | low |
60,056,998 | Keep app working even when phone is locked/sleep - Ionic4 | <p>App is an ionic4 capacitor app which uses few cordova plugins as well. I have a timer feature associated with a bluetooth device that has to keep running even when the phone goes to sleep or in locked mode. Using the cordova-background-mode plugin the app works in the background, but as soon as phone is locked or in... | App is an ionic4 capacitor app which uses few cordova plugins as well. I have a timer feature associated with a bluetooth device that has to keep running even when the phone goes to sleep or in locked mode. Using the cordova-background-mode plugin the app works in the background, but as soon as phone is locked or in sl... | android|ios|cordova-plugins|ionic4|capacitor | 2 | 2020-02-04T12:01:50.547Z | 2,020 | 2 | 12 | 1 | 2,160 | 1 | 1,682 | 57 | 5 | 0 | false | false | false | false | false | false | low |
60,057,084 | How to do 'hard page reload' in Chrome browser on mobile android smartphone | <p>Problem: I was trying to see if a web page of my product looks well on mobile, and got a cached version of it. looking elsewhere on stackoverflow, i found the answer, but it was buried inside another question that was less accurate to this issue, so decide to ask-and-answer here as well.</p>
<p>Just to be clear, wh... | Problem: I was trying to see if a web page of my product looks well on mobile, and got a cached version of it. looking elsewhere on stackoverflow, i found the answer, but it was buried inside another question that was less accurate to this issue, so decide to ask-and-answer here as well. Just to be clear, what i was tr... | android|google-chrome|caching|reload | -1 | 2020-02-04T12:07:07.937Z | 2,020 | 2 | 12 | 1 | 3,444 | 2 | 531 | 75 | 4 | 0 | false | false | true | false | false | true | negative |
60,057,143 | Kotlin issue with DayLight one Hours time difference | <p>converting UTC time and displays the Date and time in pacific format, where it works fine for normally, but when Daylight timing is used , shows one hour less</p>
<pre><code>fun utcToGivenTimeZone(dateInUtc : String, timeZone : String) : String{
var finalDateToReturn = ""
try{
val dateInUtc ... | converting UTC time and displays the Date and time in pacific format, where it works fine for normally, but when Daylight timing is used , shows one hour less [CODE] | java|android|kotlin | 0 | 2020-02-04T12:10:14.650Z | 2,020 | 2 | 12 | 1 | 57 | 0 | 165 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
60,057,194 | How to override Accessibility class name | <p>I want to prevent <code>Talkback</code> from announcing class name for <code>Button</code> view. To do so I wrote following logic but it doesn't work </p>
<pre><code>fun setAccessibilityDelegate(view: Button?) {
view?.setAccessibilityDelegate(object : View.AccessibilityDelegate() {
override fun onInitia... | I want to prevent Talkback from announcing class name for Button view. To do so I wrote following logic but it doesn't work [CODE] Actual description: "start watching button, Button double tap to activate" Expected description: " start watching button, double tap to activate " Note: cannot change the content descriptio... | android|kotlin|accessibility|talkback | 0 | 2020-02-04T12:13:43.850Z | 2,020 | 2 | 12 | 1 | 1,476 | 1 | 381 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
60,057,201 | How to apply the background color for the ImageSpan in Android? | <p>I want to apply the background color for the Image span dynamically in Android.</p>
<p>Could you please suggest any ideas?</p> | I want to apply the background color for the Image span dynamically in Android. Could you please suggest any ideas? | android|textview|spannablestring|imagespan|android-spannable | 3 | 2020-02-04T12:14:07.200Z | 2,020 | 2 | 12 | 1 | 1,030 | 3 | 115 | 63 | 5 | 0 | false | false | false | false | false | false | low |
60,057,224 | Android Emulator shows "Your connection is not private" error is the browser | <p>My Android Emulator's browser shows "Your connection is not private. NET::ERR_CERT_AUTHORITY_INVALID" error when I am at work. But when I am at home (no firewall) it works fine. How can I fix this issue please?</p>
<p>I have already allowed emulator.exe and Android Studio through the firewall from the control panel... | My Android Emulator's browser shows "Your connection is not private. NET::ERR_CERT_AUTHORITY_INVALID" error when I am at work. But when I am at home (no firewall) it works fine. How can I fix this issue please? I have already allowed emulator.exe and Android Studio through the firewall from the control panel. But that ... | android-emulator | 5 | 2020-02-04T12:15:12.440Z | 2,020 | 2 | 12 | 1 | 1,062 | 0 | 361 | 76 | 1 | 0 | false | true | false | false | false | false | low |
60,057,316 | Firebase RecyclerView Will Not Retreive Items from Database and Display them on Screen. Screen is Empty | <p>I am trying display some of my items from my database into my Recyclerview. However, nothing will display on my screen. I have confirmed that the items are in the database. I have looked at other questions on StackOverflow, I have added the On Start Listening and the OnStop Listening, but nothing seems to work. I wo... | I am trying display some of my items from my database into my Recyclerview. However, nothing will display on my screen. I have confirmed that the items are in the database. I have looked at other questions on StackOverflow, I have added the On Start Listening and the OnStop Listening, but nothing seems to work. I would... | java|android|firebase|firebase-realtime-database|android-recyclerview | -1 | 2020-02-04T12:20:27.540Z | 2,020 | 2 | 12 | 1 | 94 | 1 | 592 | 103 | 5 | 5 | true | false | false | false | false | true | negative |
60,057,455 | Should we pass in Fragment or Activity, when constructing ViewModelProvider within Fragement? | <p>I was wondering, for the following 2 code snippets, which is the recommended way?</p>
<h2>Use Fragment when constructing ViewModelProvider</h2>
<pre><code>public class MyFragment extends Fragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I was wondering, for the following 2 code snippets, which is the recommended way? Use Fragment when constructing ViewModelProvider [CODE] Use Activity when constructing ViewModelProvider [CODE] Both code are workable. But, which is the "more correct" way? | android | 0 | 2020-02-04T12:28:09.530Z | 2,020 | 2 | 12 | 1 | 64 | 2 | 255 | 93 | 1 | 2 | true | false | false | false | false | false | zero |
60,057,509 | onUpdateFrame does not scan small image | <p>I am working on a an ar application where I have to place ring(ar object) in finger.I am following an augmented image example from codelabs but when I change the image in the project and scan the same image(small image)placed on my finger it does not detected,onUpdateFrame does not gets called.But when I scan the sa... | I am working on a an ar application where I have to place ring(ar object) in finger.I am following an augmented image example from codelabs but when I change the image in the project and scan the same image(small image)placed on my finger it does not detected,onUpdateFrame does not gets called.But when I scan the same ... | android|arcore|sceneform | 1 | 2020-02-04T12:31:02.750Z | 2,020 | 2 | 12 | 1 | 45 | 0 | 486 | 39 | 3 | 0 | false | true | false | false | false | false | low |
60,057,528 | `Unresolved reference: runBlocking` in android instrumented tests, yet the code compiles just fine | <p>In my setup method I have the following code:</p>
<pre><code>@Before
fun setUp() {
repo = ToDoRepository()
loadKoinModules(module {
single(override = true) { repo }
})
runBlocking { items.forEach { repo.save(it) } } // unresolved reference
}
</code></pre>
<p>I get a compiler warning that ... | In my setup method I have the following code: [CODE] I get a compiler warning that runBlocking is an unresolved reference, even though I have the appropriate import statement: import kotlinx.coroutines.runBlocking as well as the appropriate dependency in my apps build.gradle file: [CODE] I thought that maybe the soluti... | android|kotlin|kotlin-coroutines | 4 | 2020-02-04T12:32:20.767Z | 2,020 | 2 | 12 | 1 | 1,151 | 0 | 723 | 98 | 3 | 2 | true | true | false | false | false | false | low |
60,057,567 | Android Q displays wrong gradient orientation | <p>Since i updated my device to android 10 im facing a weird problem with one of my background gradients.</p>
<p>I have a RelativeLayout with a gradient background drawable looking like this.</p>
<pre><code><RelativeLayout
android:id="@+id/layoutSpeedLegend"
android:layout_width="match_parent"
android:layout... | Since i updated my device to android 10 im facing a weird problem with one of my background gradients. I have a RelativeLayout with a gradient background drawable looking like this. [CODE] My background.xml is looking like this. [CODE] In the editors preview, everything looks fine But on my real test device is looks li... | android|background|gradient|android-relativelayout | 1 | 2020-02-04T12:34:36.623Z | 2,020 | 2 | 12 | 1 | 653 | 1 | 438 | 45 | 4 | 2 | true | false | false | false | false | false | low |
60,057,582 | Retrieve a file from storage starting with a String | <p>I´m having problems trying to retrieve a single image file from a folder in Android.</p>
<p>The filename is "00070 bipack GV ZZZ.jpg". My code:</p>
<pre><code> File dirRoot = rootMicroSd(context);
if (dirRoot == null) return "";
File imgDir = new File(dirRoot, DefPrefsUtil.getDirImg(context) + "/");
... | I´m having problems trying to retrieve a single image file from a folder in Android. The filename is "00070 bipack GV ZZZ.jpg". My code: [CODE] Now, with that string containing "00070" my next (and I think final) step is retrieve the file in imgDir that starts with that string in my sdCard root path. | java|android | 0 | 2020-02-04T12:35:06.220Z | 2,020 | 2 | 12 | 1 | 39 | 1 | 301 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
60,057,623 | Filtering services by intent-filter category | <p>I'm learning android by writing a launcher on top of AOSP and looking in the ways to get all services from installed packages that have certain <code>category</code> in their <code>intent-filter</code></p>
<p>My current approach is </p>
<pre class="lang-java prettyprint-override"><code>final PackageManager pm = ge... | I'm learning android by writing a launcher on top of AOSP and looking in the ways to get all services from installed packages that have certain category in their intent-filter My current approach is [CODE] An example of services defined in Manifest.xml : [CODE] Sadly ServiceInfo object doesn't seem to contain informati... | android|android-source | 2 | 2020-02-04T12:37:13.550Z | 2,020 | 2 | 12 | 1 | 176 | 0 | 437 | 44 | 2 | 2 | true | true | false | false | false | false | low |
60,057,699 | Pick multiple images from gallery and show in RecyclerView | <p>my app requires to select multiple images from gallery and to show them in a horizontal Recycler View. I know how to do when I use only ImageView but in that case I'm struggling how to do it. After that I wiill send images to server.
I have created my adapter for recycler view as:</p>
<pre><code>public class Horizo... | my app requires to select multiple images from gallery and to show them in a horizontal Recycler View. I know how to do when I use only ImageView but in that case I'm struggling how to do it. After that I wiill send images to server. I have created my adapter for recycler view as: [CODE] I did also a model for selectin... | android|android-recyclerview | 0 | 2020-02-04T12:41:49.457Z | 2,020 | 2 | 12 | 1 | 1,854 | 2 | 551 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
60,057,788 | Cancelling multiple notification by sending unique id to broadcast receiver | <p>I create multiple notifications using <code>AlarmManager</code>. Each notification pop-ups correctly and I would like to cancel each of these notification separately. I have an <code>AlarmReceiver</code> that creates the notification and sets the unique id for it. I'm sending the unique id in the intent (via <code>p... | I create multiple notifications using AlarmManager . Each notification pop-ups correctly and I would like to cancel each of these notification separately. I have an AlarmReceiver that creates the notification and sets the unique id for it. I'm sending the unique id in the intent (via putExtra ). This way, I can retriev... | java|android | 1 | 2020-02-04T12:47:29.487Z | 2,020 | 2 | 12 | 1 | 148 | 2 | 690 | 75 | 2 | 3 | true | false | false | false | false | false | low |
60,057,875 | How to inflate a layout dialog on another activity? | <p>I am currently on <strong>SecondActivity.class</strong> . On my code, when I <strong>backpress</strong>, I want the dialog to appear on my MainActivity.class .</p>
<p>This is my code on inflating the dialog layout. </p>
<blockquote>
<p>This appears on SecondActivity.class instead of my main activity.</p>
</block... | I am currently on SecondActivity.class . On my code, when I backpress , I want the dialog to appear on my MainActivity.class . This is my code on inflating the dialog layout. This appears on SecondActivity.class instead of my main activity. [CODE] | java|android|layout | 3 | 2020-02-04T12:52:49.737Z | 2,020 | 2 | 12 | 1 | 74 | 3 | 247 | 51 | 3 | 1 | true | false | false | false | false | false | low |
60,057,889 | Get all elements details from android RecyclerView | <p>I am working on Android application automation, in that I am facing issue with the recycler view data handling.</p>
<ol>
<li>All data are appearing into Recycler view in List Format.</li>
<li>I have stored all items in <strong>List</strong> but at a time I am able to get only presented items on UI.</li>
</ol>
<p>I... | I am working on Android application automation, in that I am facing issue with the recycler view data handling. All data are appearing into Recycler view in List Format. I have stored all items in List but at a time I am able to get only presented items on UI. I need all items into List?? | appium|appium-android | 0 | 2020-02-04T12:53:29.090Z | 2,020 | 2 | 12 | 1 | 348 | 1 | 289 | 50 | 2 | 0 | false | false | false | false | false | false | zero |
60,057,918 | How to show remaining time for alarm to ring using AlarmManager? | <p>I want to know how I can show the time that is remaining for the alarm to ring. And I also want to know that how we can increment/change a variable value of different class from a different class. Suppose if I have a game where users get life every day at 12 am. So how can I provide life to users using AlarmManager.... | I want to know how I can show the time that is remaining for the alarm to ring. And I also want to know that how we can increment/change a variable value of different class from a different class. Suppose if I have a game where users get life every day at 12 am. So how can I provide life to users using AlarmManager. He... | android|alarmmanager | 0 | 2020-02-04T12:54:38.087Z | 2,020 | 2 | 12 | 1 | 65 | 1 | 425 | 64 | 2 | 2 | true | false | false | false | false | false | zero |
60,058,017 | Can't able to Play RTMP Voice Stream in ExoPlayer | <p>When I stream Video with Audio I could able to play both Audio and Video in receiver side, When I stream Audio alone I Can't able to Play Audio in receiver side.</p>
<pre><code>private void initializePlayer(String rtmpUrl) {
Intent intent = getIntent();
boolean needNewPlayer = player == null;
if (needNe... | When I stream Video with Audio I could able to play both Audio and Video in receiver side, When I stream Audio alone I Can't able to Play Audio in receiver side. [CODE] Below error message i got com.google.android.exoplayer2.upstream.Loader$UnexpectedLoaderException: Unexpected IllegalStateException: null What could be... | android|rtmp|live-streaming|exoplayer2.x|ant-media-server | 2 | 2020-02-04T13:01:08.697Z | 2,020 | 2 | 13 | 1 | 430 | 0 | 336 | 49 | 5 | 1 | true | true | false | false | false | false | low |
60,058,045 | RecyclerView throws null pointer for setAdapter even though the adapter is defined | <p>I have a null pointer exception but I can't see where I am going wrong. I have been trying to fix this error for 2 days. </p>
<p>Here is the activity_main.xml</p>
<pre><code>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_hei... | I have a null pointer exception but I can't see where I am going wrong. I have been trying to fix this error for 2 days. Here is the activity_main.xml [CODE] and the Code for the class MainActivity [CODE] The recyclerView.setAdapter returns a NullPointer exeception even though I have defined the adapter. and the code f... | java|android|xml|android-recyclerview | 0 | 2020-02-04T13:03:07.540Z | 2,020 | 2 | 13 | 1 | 85 | 3 | 451 | 82 | 4 | 5 | true | false | false | false | false | false | zero |
60,058,063 | ADB send file from device to PC | <p>I am a fourth year student at computer science and I started a project for my senior thesis.
The project consists of an Android application which takes a pictures using phone's camera and stores it in phone memory, after that the app should send the picture using ADB (or something else) to a PC. The next picture sho... | I am a fourth year student at computer science and I started a project for my senior thesis. The project consists of an Android application which takes a pictures using phone's camera and stores it in phone memory, after that the app should send the picture using ADB (or something else) to a PC. The next picture should... | java|android|adb | 1 | 2020-02-04T13:04:08.517Z | 2,020 | 2 | 13 | 1 | 104 | 0 | 637 | 31 | 3 | 0 | false | true | false | false | false | false | low |
60,058,068 | listen JavaScript data in android | <p>I am trying get data from JavaScript file in android but I cannot catch data which coming from inside method in JavaScript, I shared below JS File and data inside methods Which I want to catch in android.I listen like bottom but I cannot get data from JS</p>
<p>this returns message webPageOpen and WebPageClose and ... | I am trying get data from JavaScript file in android but I cannot catch data which coming from inside method in JavaScript, I shared below JS File and data inside methods Which I want to catch in android.I listen like bottom but I cannot get data from JS this returns message webPageOpen and WebPageClose and data(Type a... | javascript|android | 0 | 2020-02-04T13:04:23.817Z | 2,020 | 2 | 13 | 1 | 166 | 1 | 404 | 33 | 2 | 3 | true | false | false | false | false | false | zero |
60,058,088 | How to find list of json date is witnin a month or not in android | <p>Sorry for my bad English,I have list of dates coming from json </p>
<pre><code>{
"data": [
{
"lead_id": "1763",
"name": "Gaurav Kumar",
"date": "16-02-2020",
"time": "10:00 To 11:00 AM",
},
{
"lead_id": "1759",
"name... | Sorry for my bad English,I have list of dates coming from json [CODE] Below code helps me to find the current date [CODE] But i want to know how can i check if the list of date is of the same month. //Here is the code the i used to check the current date but i want to check if the all dates is of the same months.PLease... | java|android | 0 | 2020-02-04T13:05:25.737Z | 2,020 | 2 | 13 | 1 | 72 | 3 | 359 | 65 | 2 | 3 | true | false | false | false | false | false | zero |
60,058,249 | How to count the notifications coming on the app in react-native | <p>My requirement is very simple. I have configured react-native-firebase properly. I am getting notification as required. But my requirement is, I have bell icon in my app I want to count all the notifications coming (can be in foreground, can be in background or can be when app is killed) I want to show that count on... | My requirement is very simple. I have configured react-native-firebase properly. I am getting notification as required. But my requirement is, I have bell icon in my app I want to count all the notifications coming (can be in foreground, can be in background or can be when app is killed) I want to show that count on th... | android|react-native|badge|react-native-firebase | 1 | 2020-02-04T13:14:47.440Z | 2,020 | 2 | 13 | 1 | 214 | 0 | 506 | 64 | 4 | 0 | false | true | false | false | false | false | low |
60,058,306 | SignalR .net Core Azure android implementation disconnection problem | <p>In my android project chat application, I am using SignalR android library that is Signalr .net Core. I implemented the library as mentioned in documentation in below link of Microsoft official Asp.net core site
<a href="https://docs.microsoft.com/en-us/aspnet/core/signalr/java-client?view=aspnetcore-3.1" rel="nofol... | In my android project chat application, I am using SignalR android library that is Signalr .net Core. I implemented the library as mentioned in documentation in below link of Microsoft official Asp.net core site Official Link It is working fine and I am able to send and receive events. But the problem is SignalR gets d... | android|signalr|asp.net-core-signalr | 0 | 2020-02-04T13:18:10.857Z | 2,020 | 2 | 13 | 1 | 84 | 1 | 1,008 | 68 | 3 | 0 | false | false | false | false | false | false | zero |
60,058,480 | Android Studio spawning multiple java processes! How to minimize its memory usage on a low-ram machine? | <p>I'm running Android Studio on an underpowered machine, and when I was monitoring Android Studio's memory consumption I noticed multiple "java" processes, some even forking another process as a child and some taking as much as up to 1 GB!</p>
<p>Is this normal behavior or is it the result of a misconfiguration?</p>
... | I'm running Android Studio on an underpowered machine, and when I was monitoring Android Studio's memory consumption I noticed multiple "java" processes, some even forking another process as a child and some taking as much as up to 1 GB! Is this normal behavior or is it the result of a misconfiguration? And how can I c... | java|android|performance|android-studio | 7 | 2020-02-04T13:28:01.393Z | 2,020 | 2 | 13 | 1 | 2,950 | 2 | 530 | 103 | 4 | 0 | false | false | true | false | false | false | medium |
60,058,520 | mobile device autoselect corresponding client cert | <p>havn't found anything about this, would like to know your thoughts..</p>
<p>we got IIS running with certificate authentication, but:
- mobile devices get a popup to select client certificate > hard to guess from serial
- every device reboot, had to select again > annoying</p>
<ol>
<li>we got a mobile device regist... | havn't found anything about this, would like to know your thoughts.. we got IIS running with certificate authentication, but: - mobile devices get a popup to select client certificate > hard to guess from serial - every device reboot, had to select again > annoying we got a mobile device registried with mdm, client cer... | android|ios|iis|x509|client-certificates | 1 | 2020-02-04T13:30:06.423Z | 2,020 | 2 | 13 | 1 | 146 | 0 | 642 | 50 | 5 | 0 | false | true | false | false | false | false | low |
60,058,560 | How to decrypt password in android? | <p>i am working on one project which Uses <code>AccessibilityService</code> class of android.</p>
<p>Getting Password through <strong><code>AccessibillityService ( TYPE_VIEW_TEXT_CHANGED )</code></strong> .</p>
<p>But Password is in form of dots <strong><code>...........</code></strong> .</p>
<p>How to convert these... | i am working on one project which Uses AccessibilityService class of android. Getting Password through AccessibillityService ( TYPE_VIEW_TEXT_CHANGED ) . But Password is in form of dots ........... . How to convert these dots to text string? or is there is any possible decryption solution ? Thanks | android|passwords|accessibility|password-protection|accessibilityservice | 2 | 2020-02-04T13:32:48.037Z | 2,020 | 2 | 13 | 1 | 88 | 1 | 298 | 35 | 5 | 0 | false | false | false | false | false | false | low |
60,058,591 | android app in Kotlin keep stopping when click on backbutton on Actionbar | <p>This is my first Kotlin android app. I m using Android studio v3.5.3 (AndroidX) </p>
<p>This is the workflow:</p>
<p>(Start) Main --> goto MainSvc1 ---> goto MainSelectCat ---> goto MainDisplay</p>
<p>SetUp for the BackButton on ActionBar. I use toolbar ( AndroidX) </p>
<p>I add this in : MainSvc1 , MainSelectC... | This is my first Kotlin android app. I m using Android studio v3.5.3 (AndroidX) This is the workflow: (Start) Main --> goto MainSvc1 ---> goto MainSelectCat ---> goto MainDisplay SetUp for the BackButton on ActionBar. I use toolbar ( AndroidX) I add this in : MainSvc1 , MainSelectCat, MainDisplay [CODE] In Manifest : [... | android|kotlin | -1 | 2020-02-04T13:35:11.370Z | 2,020 | 2 | 13 | 1 | 150 | 2 | 1,366 | 73 | 2 | 3 | true | false | false | false | false | true | negative |
60,058,678 | How can i Pass parameter to Constructor? | <p>i have auto generated class with constructor </p>
<pre><code>Userinput(Input<Integer>id, Input<String>name) {
this.id = id;
this.name = name;
})
</code></pre>
<p>how to pass value to constructor.</p> | i have auto generated class with constructor [CODE] how to pass value to constructor. | java|android|apollo | 0 | 2020-02-04T13:40:29.023Z | 2,020 | 2 | 13 | 1 | 70 | 1 | 85 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
60,058,736 | How to read clicked link's url on WebView without going new url? | <p>I have a <code>Webiew</code>. I want read clicked link's url but <code>Webiew</code> mustn't go this url. WebView must stay same page. </p>
<p>Example: User clicks <em>"<a href="https://stackoverflow.com/questions">https://stackoverflow.com/questions</a>"</em> button and app read this link. But WebView must still s... | I have a Webiew . I want read clicked link's url but Webiew mustn't go this url. WebView must stay same page. Example: User clicks " https://stackoverflow.com/questions " button and app read this link. But WebView must still stay on " https://stackoverflow.com/ " without refresh. I can read clicked link's URL but i can... | java|android|webview|android-webview | 1 | 2020-02-04T13:43:35.187Z | 2,020 | 2 | 13 | 1 | 84 | 1 | 360 | 64 | 4 | 0 | false | false | false | false | false | false | low |
60,058,879 | Getting x and y co-ordinates of graph while touch in android | <p>I want to draw a line on a graph in Android. When clicking on the particular portion of the graph, I am not able to get the particular x and y coordinates of the graph. How can I retrieve them?</p> | I want to draw a line on a graph in Android. When clicking on the particular portion of the graph, I am not able to get the particular x and y coordinates of the graph. How can I retrieve them? | android|canvas|graph|drawing|coordinates | 1 | 2020-02-04T13:52:04.383Z | 2,020 | 2 | 13 | 1 | 120 | 2 | 193 | 60 | 5 | 0 | false | false | false | false | false | false | low |
60,058,968 | How to make my WearOS app work on LockScreen? | <p>How do I make my WearOS app work on LockScreen? My app reacts to tapping the smartwatch on an NFC tag. I hear about widget, but it's almost dead now. Is lockscreen programming still possible in Android app development? Thanks in advance.</p> | How do I make my WearOS app work on LockScreen? My app reacts to tapping the smartwatch on an NFC tag. I hear about widget, but it's almost dead now. Is lockscreen programming still possible in Android app development? Thanks in advance. | android|wear-os|lockscreen|lockscreenwidget | 0 | 2020-02-04T13:57:07.243Z | 2,020 | 2 | 13 | 1 | 62 | 1 | 237 | 45 | 4 | 0 | false | false | false | false | false | false | zero |
60,058,987 | Is there any way to skip a specific activity after performing spcific actions | <p>I have activity say A->B->C. If user has performed actions on activity B and results have been generated on C. Then when user next time tries to go to activity B from A...It should move to result page in activity C.</p> | I have activity say A->B->C. If user has performed actions on activity B and results have been generated on C. Then when user next time tries to go to activity B from A...It should move to result page in activity C. | android | 0 | 2020-02-04T13:57:51.347Z | 2,020 | 2 | 13 | 1 | 28 | 2 | 215 | 77 | 1 | 0 | false | false | false | false | false | false | zero |
60,059,128 | Fragment with recycler view inside NestedScrollView | <p>I have a NestedScrollView with 2 fragments inside. One of them ( <em>comment_container</em> ) has a recyclerView inside, and this recyclerView has <em>wrap_content</em> height. Because of that the RecyclerView doesn't recycle items, all views are loaded at the beginning - because of that when there is a large amount... | I have a NestedScrollView with 2 fragments inside. One of them ( comment_container ) has a recyclerView inside, and this recyclerView has wrap_content height. Because of that the RecyclerView doesn't recycle items, all views are loaded at the beginning - because of that when there is a large amount of data the performa... | android|android-fragments|android-recyclerview|android-nestedscrollview | 1 | 2020-02-04T14:06:07.333Z | 2,020 | 2 | 14 | 1 | 130 | 0 | 738 | 51 | 4 | 2 | true | true | false | false | false | false | low |
60,059,180 | how to save ListView items to a csv file | <p>Each line of the ListView contains 5 strings separated by semi-colon as follows:</p>
<pre><code>str1; str2; str3; str4; str5
</code></pre>
<p>The record length of the list can vary, which may sometimes reach up to 400</p>
<p>How can I save the list to a CSV file (in the internal storage of the device, applicat... | Each line of the ListView contains 5 strings separated by semi-colon as follows: [CODE] The record length of the list can vary, which may sometimes reach up to 400 How can I save the list to a CSV file (in the internal storage of the device, application folder path) Using ArrayAdapter: [CODE] Sample data in ListView: S... | android|csv|listview | 0 | 2020-02-04T14:09:10.513Z | 2,020 | 2 | 14 | 1 | 1,180 | 1 | 394 | 40 | 3 | 2 | true | false | false | false | false | false | zero |
60,059,195 | AWS device farm getting exception connect timeout error | <p>I am using Java and TestNG to create appium tests for native app. The test works fine locally but gives error: <strong>org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: connect timed out</strong>.</p>
<p>Following are the details of the test. Will really apprecia... | I am using Java and TestNG to create appium tests for native app. The test works fine locally but gives error: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: connect timed out . Following are the details of the test. Will really appreciate any help...struggling wi... | java|appium-android|aws-device-farm | 1 | 2020-02-04T14:10:00.300Z | 2,020 | 2 | 14 | 1 | 427 | 0 | 1,181 | 55 | 3 | 2 | true | true | false | false | false | false | low |
60,059,245 | Android studio firebase how to download and show image(without uploading first!) | <p>I have an script which works perfectly regarding uploading an image, and then showing it on my app. Here is my full code:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private StorageReference mStorageRef;
Button btnPickImage, btnUpload, buttonDownload;
ImageView imgSource, imgDestination;
... | I have an script which works perfectly regarding uploading an image, and then showing it on my app. Here is my full code: [CODE] However, I have added an extra button to just download a picture (no uploading!), but I am struggling to make this possible. I have made a method for this called "justDownloadWithoutUploading... | android|firebase|firebase-storage | 0 | 2020-02-04T14:12:44.203Z | 2,020 | 2 | 14 | 1 | 68 | 0 | 564 | 80 | 3 | 3 | true | true | false | false | false | false | zero |
60,059,380 | How to test an Intent in a none Activity class | <p>I am trying to create a Class which creates an Intent and starts a new Activity, now i have a Problem with testing it.</p>
<pre><code>private static final String TAG = IntentToActivity.class.getSimpleName();
// ----------------
// START VARIABLES
// ----------------
private String fqClassName;
private Intent inten... | I am trying to create a Class which creates an Intent and starts a new Activity, now i have a Problem with testing it. [CODE] } My androidTest public class IntentToActivityTest { @Rule public IntentsTestRule intentsRule = new IntentsTestRule<>(IntentToActivity.class); [CODE] My first question, how to start an intent fo... | java|android|unit-testing|android-intent|android-espresso | 0 | 2020-02-04T14:21:37.400Z | 2,020 | 2 | 14 | 1 | 363 | 1 | 414 | 46 | 5 | 3 | true | false | false | false | false | false | zero |
60,059,396 | "Hot reload on save" not working on my Android Studio 3.5.3 | <p>I have a flutter project that I created from Android Studio. But when I make some changes and hit <code>Ctrl + S</code> for saving, <code>Hot reload</code> isn't working even though I have checked the checkbox <code>Hot Reload on Save</code> from preferences. However this was working fine previously. In between some... | I have a flutter project that I created from Android Studio. But when I make some changes and hit Ctrl + S for saving, Hot reload isn't working even though I have checked the checkbox Hot Reload on Save from preferences. However this was working fine previously. In between something messed up and now it isn't. Now I se... | android|android-studio|flutter|hot-reload | 1 | 2020-02-04T14:22:38.023Z | 2,020 | 2 | 14 | 1 | 2,791 | 2 | 592 | 59 | 4 | 2 | true | false | true | false | false | false | low |
60,059,417 | What is the best way to download large amount of data and save it without locking the phone (Android Studio) | <p>I am working on an Android project (JAVA), but i need to download many line of a database from a server like 3.5K lines , my questions is - what is the best way to download large data without letting the phone become slow , because i used Retrofit and also XmlAsyncTask , but cos of the data to download are much , a... | I am working on an Android project (JAVA), but i need to download many line of a database from a server like 3.5K lines , my questions is - what is the best way to download large data without letting the phone become slow , because i used Retrofit and also XmlAsyncTask , but cos of the data to download are much , as I ... | android | 0 | 2020-02-04T14:23:26.707Z | 2,020 | 2 | 14 | 1 | 202 | 2 | 492 | 108 | 1 | 0 | false | false | false | false | false | false | zero |
60,059,446 | How do i solve implementation not found error? | <p>I am new to programming and android studio. I keep running into this error:</p>
<p>Error Message: </p>
<pre><code>Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
</code></pre>
<p>I found that som... | I am new to programming and android studio. I keep running into this error: Error Message: [CODE] I found that someone ran into the same problem about some odd 2 years ago, but the solutions seem to be outdated I am currently using Android studio 3.5.3 [CODE] It keeps pointing this part of the code out it would be grea... | java|android-studio|gradle|android-gradle-plugin | 1 | 2020-02-04T14:24:30.597Z | 2,020 | 2 | 14 | 1 | 109 | 0 | 358 | 46 | 4 | 2 | true | true | false | false | false | false | low |
60,059,479 | How do I go about writing a device driver for Android | <p>Regarding this question: <a href="https://android.stackexchange.com/questions/220778/linux-multifunction-composite-gadget">https://android.stackexchange.com/questions/220778/linux-multifunction-composite-gadget</a></p>
<p>Assuming that no driver exists, how does one go about creating a device driver so that a usb d... | Regarding this question: https://android.stackexchange.com/questions/220778/linux-multifunction-composite-gadget Assuming that no driver exists, how does one go about creating a device driver so that a usb device that was previously unknown to Android, can be read? | android|driver | 0 | 2020-02-04T14:25:54.500Z | 2,020 | 2 | 14 | 1 | 71 | 0 | 265 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
60,059,481 | How can I implement MVVM while just working with FirebaseAuth only for Login/Singup page? | <p>I'm trying to write clean and professional code. I'm just a beginner in Android. I'm used to writing a BaseActivity, implement interfaces and separate methods and class. But, I want to learn about MVVM design pattern. </p>
<p>What I tried:
I followed some YouTube tutorials and read some post on medium and google. E... | I'm trying to write clean and professional code. I'm just a beginner in Android. I'm used to writing a BaseActivity, implement interfaces and separate methods and class. But, I want to learn about MVVM design pattern. What I tried: I followed some YouTube tutorials and read some post on medium and google. Everyboady ma... | android|mvvm | 0 | 2020-02-04T14:25:57.503Z | 2,020 | 2 | 14 | 1 | 162 | 1 | 1,123 | 89 | 2 | 0 | false | false | false | false | false | false | zero |
60,059,482 | Show 2 Array in 2 Textview on Listview | <p>I have 2 <code>String array</code> .</p>
<p>array 1 and array 2 .
I want to show this 2 array in <code>listview</code> with search <code>filter</code>.</p>
<p>Can anyone suggest me any reference? I want to make it in one activity. Like don't create another class for adapter.</p> | I have 2 String array . array 1 and array 2 . I want to show this 2 array in listview with search filter . Can anyone suggest me any reference? I want to make it in one activity. Like don't create another class for adapter. | java|android | 0 | 2020-02-04T14:26:00.827Z | 2,020 | 2 | 14 | 1 | 57 | 3 | 223 | 38 | 2 | 0 | false | false | false | false | false | false | zero |
60,059,601 | Gson toJson convert OutOfMemory(OOM) | <pre><code>val gson = GsonBuilder().setPrettyPrinting().create()
Log.e("surveyListPretreatment",gson.toJson(
SurveyTab(viewModel.owner.treat).apply {
surveyListPretreatment = viewModel.surveyTabs.surveyListPretreatment
})
)
</code></pre>
<p>java.lang.OutOfMemoryError: Failed to allocate a 150994952 by... | [CODE] java.lang.OutOfMemoryError: Failed to allocate a 150994952 byte allocation with 25165824 free bytes and 103MB until OOM, max allowed footprint 118228816, growth limit 201326592 Because, the DTO has [CODE] how can I fix that? | arrays|kotlin|bitmap|out-of-memory|android-bitmap | 0 | 2020-02-04T14:32:39.163Z | 2,020 | 2 | 14 | 1 | 765 | 1 | 231 | 36 | 5 | 2 | true | false | false | false | false | false | zero |
60,059,850 | Where can I find my MainActivity.java when running a Android simulator | <p>I just mad my first React native project and I'm trying to lock my screen orientation to landscape. I installed this package</p>
<p><a href="https://github.com/yamill/react-native-orientation#configuration" rel="nofollow noreferrer">https://github.com/yamill/react-native-orientation#configuration</a></p>
<p>with <... | I just mad my first React native project and I'm trying to lock my screen orientation to landscape. I installed this package https://github.com/yamill/react-native-orientation#configuration with npm install react-native link react-native-orientation and now I need to Implement onConfigurationChanged method in MainActiv... | react-native|android-studio | 0 | 2020-02-04T14:47:47.713Z | 2,020 | 2 | 14 | 1 | 227 | 1 | 572 | 70 | 2 | 1 | true | false | false | false | false | false | zero |
60,059,872 | How to call a method at the right time? | <p>There is a simple request. In the condition, I catch error 403. </p>
<pre><code>.enqueue(new Callback<NewOrderResponse>() {
@Override
public void onResponse(Call<NewOrderResponse> call, Response<NewOrderResponse> response) {
if (respo... | There is a simple request. In the condition, I catch error 403. [CODE] And I call the login( connect.login(manager, manager.getphone(), manager.getpass()); ) method: [CODE] In this method, I have to save the new session id. But as soon as the program enters the method .login (login, passFromSms) and executes it, it imm... | android|retrofit | 1 | 2020-02-04T14:48:42.220Z | 2,020 | 2 | 14 | 1 | 54 | 2 | 719 | 39 | 2 | 2 | true | false | false | false | false | false | low |
60,059,876 | Why am I getting a "mergeCursor" object instead of a "string"? | <p>When I execute the code below, I would like to get <code>text="All"</code>, as its visible value is that, but all the time I'm getting </p>
<p><code>String text = "android.database.MergeCursor@88a4aaa"</code></p>
<p>The code:</p>
<pre class="lang-java prettyprint-override"><code>String[] from = new String[]{"type... | When I execute the code below, I would like to get text="All" , as its visible value is that, but all the time I'm getting String text = "android.database.MergeCursor@88a4aaa" The code: [CODE] And no, "text" is not being used anymore, so it's value hasn't changed, and I've also tried with [CODE] but got same result. Al... | java|android | 0 | 2020-02-04T14:48:51.587Z | 2,020 | 2 | 14 | 1 | 113 | 3 | 470 | 62 | 2 | 2 | true | false | false | false | false | false | zero |
60,059,880 | Kotlin Error with Conditional Statements Selecting Images | <p><strong>Overview</strong></p>
<p>I'm trying to add a custom layout to an Android Spinner control so that it will have an image followed directly by some text.
However, there are over two-hundred rows that will be added to the spinner, so I'm using a function to obtain the proper resource (mipmap or drawable) image.... | Overview I'm trying to add a custom layout to an Android Spinner control so that it will have an image followed directly by some text. However, there are over two-hundred rows that will be added to the spinner, so I'm using a function to obtain the proper resource (mipmap or drawable) image. I have a custom adapter for... | android|kotlin|mapping | 0 | 2020-02-04T14:49:00.577Z | 2,020 | 2 | 14 | 1 | 224 | 1 | 1,103 | 57 | 3 | 4 | true | false | false | false | false | false | zero |
60,059,994 | Unable to track bug when Live build uploaded to Play Store, working fine otherwise | <p>While building a signed apk from Android Studio, I am not getting any bug whatsoever. However, when the app is installed from the Play Store, I am not getting any data on the desired UI. I have integrated the following libraries <strong>Crashlytics</strong>, <strong>Bugsnag</strong> and <strong>Sherlock</strong> to ... | While building a signed apk from Android Studio, I am not getting any bug whatsoever. However, when the app is installed from the Play Store, I am not getting any data on the desired UI. I have integrated the following libraries Crashlytics , Bugsnag and Sherlock to trace the bug, but haven't found any crash report. Ca... | android|android-studio|release | 0 | 2020-02-04T14:55:13.977Z | 2,020 | 2 | 14 | 1 | 47 | 0 | 395 | 82 | 3 | 0 | false | true | false | false | false | false | zero |
60,060,133 | Undefined Frame topmost() after changing system font-size in Android | <p>I have an issue in my native script application on Android : After leaving the app and changing the system font size, I cannot use my navigation bar. The error is the following : </p>
<pre><code>System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onTouch failed
System.err: Typ... | I have an issue in my native script application on Android : After leaving the app and changing the system font size, I cannot use my navigation bar. The error is the following : [CODE] It seems like the frame becomes undefined or inaccessible via frame.topmost. This error only appears when I want to use the navigation... | android|navigation|nativescript|font-size | 0 | 2020-02-04T15:02:44.850Z | 2,020 | 2 | 15 | 1 | 136 | 0 | 1,077 | 68 | 4 | 2 | true | true | false | false | false | false | zero |
60,060,149 | Problem with Android Studio on Mac System | <p>At work, we are currently trying to program a google flutter app. It works just fine on my Windows PC and now I tried to install Android Studio on a Mac to compile it to iOs. But when I start compiling, this error comes: </p>
<p><a href="https://i.stack.imgur.com/WMsXu.png" rel="nofollow noreferrer"><img src="https... | At work, we are currently trying to program a google flutter app. It works just fine on my Windows PC and now I tried to install Android Studio on a Mac to compile it to iOs. But when I start compiling, this error comes: I tried uninstalling the directory /User/localadmin/.gradle several times and I don't know, how to ... | android|ios|macos|android-studio|flutter | 0 | 2020-02-04T15:03:25.713Z | 2,020 | 2 | 15 | 1 | 360 | 2 | 373 | 41 | 5 | 0 | false | false | false | false | false | false | zero |
60,060,256 | Dagger singleton for User pattern : best practive | <p>I'm a beginner with Dagger and am looking for the best way to handle a singleton User object
that contains a user token.</p>
<p>I have several Manager class where User is injected (see below). However, my concern is about the way the value of User may change during the app lifecycle : when signing in, login out or... | I'm a beginner with Dagger and am looking for the best way to handle a singleton User object that contains a user token. I have several Manager class where User is injected (see below). However, my concern is about the way the value of User may change during the app lifecycle : when signing in, login out or other opera... | android|dagger | 0 | 2020-02-04T15:09:37.817Z | 2,020 | 2 | 15 | 1 | 30 | 1 | 903 | 49 | 2 | 3 | true | false | false | false | false | false | zero |
60,060,296 | Uiautomatorviewer not started with java 13.0 | <p>I have an issue with launching uiautomaterviewer with the error:</p>
<pre><code>-Djava.ext.dirs=mypath\Android\Sdk\tools\lib\x86_64;..\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Version JAVA:13.0.2
</code... | I have an issue with launching uiautomaterviewer with the error: [CODE] thank you for help | java|android|environment-variables|appium|uiautomatorviewer | 0 | 2020-02-04T15:11:33.403Z | 2,020 | 2 | 15 | 1 | 51 | 0 | 90 | 44 | 5 | 1 | true | true | false | false | false | false | zero |
60,060,506 | Starting a activity from IntentService | <p>It is already answered many times in past on SO :</p>
<ol>
<li><a href="https://stackoverflow.com/questions/23302036/flag-activity-new-task-flag-error-for-sharing-in-custom-spinner">FLAG_ACTIVITY_NEW_TASK flag error for sharing in custom spinner</a></li>
</ol>
<p>This answer is not working anymore over API level 2... | It is already answered many times in past on SO : FLAG_ACTIVITY_NEW_TASK flag error for sharing in custom spinner This answer is not working anymore over API level 23 and above. previous answers are obsolete now. I also referred official https://developer.android.com/training/sharing/send What is scene : I have a audio... | java|android|service|share|intentfilter | 2 | 2020-02-04T15:23:19.830Z | 2,020 | 2 | 15 | 1 | 59 | 0 | 1,608 | 38 | 5 | 2 | true | true | false | false | false | false | low |
60,060,573 | How Reduce image size loaded with glide on memory in android | <p>I'm trying to load an image from the internet using glide, but the size is too big for my application(The image size in dimensions 400X400 and the memory allocating is 352KB and the size of ImageView is same as the image dimensions),
I have tried to decode the bitmap after loading it and then apply it to the ImageVi... | I'm trying to load an image from the internet using glide, but the size is too big for my application(The image size in dimensions 400X400 and the memory allocating is 352KB and the size of ImageView is same as the image dimensions), I have tried to decode the bitmap after loading it and then apply it to the ImageView ... | java|android|android-glide|android-bitmap | 1 | 2020-02-04T15:26:15.557Z | 2,020 | 2 | 15 | 1 | 3,008 | 2 | 460 | 60 | 4 | 2 | true | false | true | false | false | false | low |
60,060,740 | Refresh existing data on widget | <p>I am implementing news widget for android. In the onUpdate I am fetching all the data (about 50 articles which contains some text and urls). I wish to implement left and right buttons to cycle between the news items. But onReceive I can only call onUpdate and onUpdate will fetch all the items again. How can I implem... | I am implementing news widget for android. In the onUpdate I am fetching all the data (about 50 articles which contains some text and urls). I wish to implement left and right buttons to cycle between the news items. But onReceive I can only call onUpdate and onUpdate will fetch all the items again. How can I implement... | android|android-widget | 2 | 2020-02-04T15:36:01.113Z | 2,020 | 2 | 15 | 1 | 67 | 0 | 578 | 31 | 2 | 1 | true | true | false | false | false | false | low |
60,060,767 | How much time to approve my app on google play? | <p>I have released my first android app on google play two days ago but it has not approved yet. Is that normal? how much time will i wait more?</p> | I have released my first android app on google play two days ago but it has not approved yet. Is that normal? how much time will i wait more? | android|google-play|publish|google-play-console | -1 | 2020-02-04T15:37:02.943Z | 2,020 | 2 | 15 | 1 | 1,215 | 1 | 141 | 47 | 4 | 0 | false | false | false | false | false | true | negative |
60,060,940 | Unable to start Android Studio (3.5.3) on Windows 10 | <p>After I installing Android Studio(3.5.3) on Windows 10 and opening it for the first time, I receive error popup saying "The application was unable to start correctly" </p>
<p>Screenshot attached here</p>
<p><a href="https://i.stack.imgur.com/5eFSE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/... | After I installing Android Studio(3.5.3) on Windows 10 and opening it for the first time, I receive error popup saying "The application was unable to start correctly" Screenshot attached here | android|android-studio|windows-10 | 0 | 2020-02-04T15:46:37.997Z | 2,020 | 2 | 15 | 1 | 172 | 1 | 191 | 52 | 3 | 0 | false | false | false | false | false | false | zero |
60,060,952 | How to change the default notification sound by another sound which are already installed on the android smartphone | <p>I want my app not should play the default notification sound but I want to play any other sound that is installed on Android smartphones.
I know that all other notification sounds can be changed on Android smartphones under App settings / Notification Categories.
My question is, how can I combine this sound for exam... | I want my app not should play the default notification sound but I want to play any other sound that is installed on Android smartphones. I know that all other notification sounds can be changed on Android smartphones under App settings / Notification Categories. My question is, how can I combine this sound for example... | android|delphi|firemonkey | 0 | 2020-02-04T15:47:12.050Z | 2,020 | 2 | 15 | 1 | 294 | 2 | 438 | 115 | 3 | 1 | true | false | false | false | false | false | zero |
60,061,104 | My firebase addvalueeventlistener is actioned when the containing activity is not opened | <pre><code>private FirebaseAuth mAuth;
private Query getChatsList;
private ValueEventListener getChatsListEventListener;
private AdapterChatsList adapterChatsList;
private List<String> providerUids;
private List<String> providerNames;
private RecyclerView chatsRecyclerView;
@Override
protected void onCrea... | [CODE] My firebase addvalueeventlistener is actioned when the containing activity is not opened. I open my app's home activity where a button links to the questioned activity. If a change in the firebase is made the home activity refreshes. If I have opened the activity containing the value event listener and a firebas... | java|android|firebase|firebase-realtime-database|android-lifecycle | 0 | 2020-02-04T15:54:26.663Z | 2,020 | 2 | 15 | 1 | 30 | 0 | 526 | 88 | 5 | 1 | true | true | false | false | false | false | zero |
60,061,555 | Volley doesnot connect with flask server | <p>My java code is not connect with flask. It doesn't give any error or response. Program run infinitely.
When i try to connect it is not going on response or on error function. After completing function call it start running and never stop.</p>
<p>Java Code:</p>
<pre><code>Button button;
RequestQueue rQueue;
... | My java code is not connect with flask. It doesn't give any error or response. Program run infinitely. When i try to connect it is not going on response or on error function. After completing function call it start running and never stop. Java Code: [CODE] Flask Server Code: [CODE] url = ipv4address:portNumber/apiName | android|flask|android-volley | 0 | 2020-02-04T16:20:06.593Z | 2,020 | 2 | 16 | 1 | 214 | 1 | 319 | 40 | 3 | 2 | true | false | false | false | false | false | zero |
60,061,562 | How to remove a fragment from a container with animations? | <p>I have the following fragment in my activity - </p>
<pre><code>val checkoutBillingShippingFragment = CheckoutBillingShippingFragment(authorizationToken, object : CheckoutBillingShippingFragment.OnCurrentStageCompleteListener {
override fun goToNextCheckoutStage(stageToGo: CheckoutStages) {
... | I have the following fragment in my activity - [CODE] In the relevant scenario I am calling activity?.onBackPressed() The fragment is being closed as expected. I want it to close with animations, how can I do it? | android|animation|fragment|back | 0 | 2020-02-04T16:20:33.017Z | 2,020 | 2 | 16 | 1 | 58 | 1 | 212 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
60,061,602 | Dagger2+Retrofit change URL with Subcomponent : cannot be provided without an @Provides- or @Produces-annotated method | <p>I'm newbie in Dagger .I've used <a href="https://stackoverflow.com/a/36779923/4306902">this answer</a> to change URL at Runtime.</p>
<p>Also I've used three modules and three components as shown below: </p>
<p>note : I have tow Components (<code>ApplicationComponent,ActivityComponent</code>) and one Subcomponent(<... | I'm newbie in Dagger .I've used this answer to change URL at Runtime. Also I've used three modules and three components as shown below: note : I have tow Components ( ApplicationComponent,ActivityComponent ) and one Subcomponent( UrlComponent ) In additation I use @Singletone , @PerUrl and @PerActivty as a Scope. When ... | java|android|retrofit|dagger-2|rx-android | 1 | 2020-02-04T16:23:19.773Z | 2,020 | 2 | 16 | 1 | 268 | 2 | 1,284 | 118 | 5 | 13 | true | false | false | false | false | false | low |
60,061,636 | Retrofit using SimpleXmlConverter always returns null body | <p>I am trying to read the below XML response document using Retrofit 2.7.1 and Retrofit SimpleXMLConverter 2.3.0:</p>
<pre class="lang-xml prettyprint-override"><code><Schedule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Viptech">
<Entries>
<Schedu... | I am trying to read the below XML response document using Retrofit 2.7.1 and Retrofit SimpleXMLConverter 2.3.0: [CODE] Using this VesselApiService Class : [CODE] With Model Entries : [CODE] Building Retrofit object NetworkClient like bellow: [CODE] Running this returns an HTTP 200 response but the response body is alwa... | android|xml|kotlin|retrofit | 0 | 2020-02-04T16:25:10.830Z | 2,020 | 2 | 16 | 1 | 139 | 0 | 696 | 58 | 4 | 4 | true | true | false | false | false | false | zero |
60,061,650 | Jenkins Android groovy.lang.MissingPropertyException: No such property: HOME for class: groovy.lang.Binding | <p>I am very beginning to Jenkins. I followed this tutorial for automated publish app to play store. <a href="https://medium.com/mindorks/automating-android-app-play-store-publishing-via-jenkins-a6c30dbc59dd" rel="nofollow noreferrer">https://medium.com/mindorks/automating-android-app-play-store-publishing-via-jenkins-... | I am very beginning to Jenkins. I followed this tutorial for automated publish app to play store. https://medium.com/mindorks/automating-android-app-play-store-publishing-via-jenkins-a6c30dbc59dd I got this error message very beginning. groovy.lang.MissingPropertyException: No such property: HOME for class: groovy.lang... | android|jenkins|jenkins-pipeline | 0 | 2020-02-04T16:26:44.037Z | 2,020 | 2 | 16 | 1 | 763 | 1 | 335 | 107 | 3 | 1 | true | false | false | false | false | false | zero |
60,061,673 | How to compress image/byteArray from CameraX | <p>I'm using the CameraX plugin which gives me a android.media.Image when I take a picture.
Now I want to send the image over a webcall as a byteArray. I found a function that will create the byteArray for me:</p>
<pre><code>private suspend fun createBytesFromImage(input: Image): ByteArray {
return withContext(io... | I'm using the CameraX plugin which gives me a android.media.Image when I take a picture. Now I want to send the image over a webcall as a byteArray. I found a function that will create the byteArray for me: [CODE] The image is pretty large and I want to compress/downscale it so a save some bandwidth. How do I do this w... | android | 3 | 2020-02-04T16:27:57.083Z | 2,020 | 2 | 16 | 1 | 1,022 | 1 | 543 | 44 | 1 | 1 | true | false | false | false | false | false | low |
60,061,791 | Make Icons peep out of the bottom Navigation bar | <p>I am using a bottom navigationbar(material) in my app, I am trying to obtain a view which looks like-<a href="https://i.stack.imgur.com/kPTKt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kPTKt.png" alt="enter image description here"></a></p>
<p>It is observable that the icons are a little bit ... | I am using a bottom navigationbar(material) in my app, I am trying to obtain a view which looks like- It is observable that the icons are a little bit outside the boundary of the bottom bar, how to obtain this UI? As adding padding and margin are not useful here, any help is very much appreciated. | android|bottomnavigationview|android-icons | 0 | 2020-02-04T16:35:40.567Z | 2,020 | 2 | 16 | 1 | 33 | 1 | 298 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
60,061,902 | What is better solution for online/offline user feature firestore or realtime? | <p>I got a database of users. Need to implement list which shows only online users. Unfortunately realtime does not filter by key. So it is possible only in Firestore. But Firestore charge for each write/read/update operation so it might be very expensive to use that feature since users are going offline/online all the... | I got a database of users. Need to implement list which shows only online users. Unfortunately realtime does not filter by key. So it is possible only in Firestore. But Firestore charge for each write/read/update operation so it might be very expensive to use that feature since users are going offline/online all the ti... | java|android|firebase|firebase-realtime-database|google-cloud-firestore | 2 | 2020-02-04T16:42:44.810Z | 2,020 | 2 | 16 | 1 | 163 | 2 | 786 | 78 | 5 | 0 | false | false | false | false | false | false | low |
60,061,977 | React Native Error while trying to build android app | <p>I am getting errors while trying to build a React Native App. (I tried both using Expo, then ejecting to React Native + Starting React Native from scratch and trying to build it). </p>
<p>The problem is related to the file j2objc-annotations-1.1.jar, which apparently has Denied Access</p>
<p>The log says the follo... | I am getting errors while trying to build a React Native App. (I tried both using Expo, then ejecting to React Native + Starting React Native from scratch and trying to build it). The problem is related to the file j2objc-annotations-1.1.jar, which apparently has Denied Access The log says the following: Also thanks fo... | android|react-native|gradle|annotations | 0 | 2020-02-04T16:48:19.943Z | 2,020 | 2 | 16 | 1 | 195 | 1 | 338 | 52 | 4 | 1 | true | false | false | false | false | false | zero |
60,061,997 | How to lock my firefox extension on mobile devices? | <p>How can I lock my firefox extension on mobile devices?
I don't want to support them. How can I lock this? Somewhere in manifest.json?</p> | How can I lock my firefox extension on mobile devices? I don't want to support them. How can I lock this? Somewhere in manifest.json? | android|ios|firefox|mobile | 0 | 2020-02-04T16:49:32.900Z | 2,020 | 2 | 16 | 1 | 42 | 1 | 133 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
60,062,057 | White screen when closing Android keyboard | <p>I'm creating an hybrid application with WebView system and I have an issue with Android : when I tap on an input, the keyboard shows up, I write what I want and when the keyboard disappear, he leaves a white background that makes its size.</p>
<p>Here is a screeshot of the problem. First screen is when the keyboard... | I'm creating an hybrid application with WebView system and I have an issue with Android : when I tap on an input, the keyboard shows up, I write what I want and when the keyboard disappear, he leaves a white background that makes its size. Here is a screeshot of the problem. First screen is when the keyboard is open an... | android|xamarin|keyboard|screen | 2 | 2020-02-04T16:52:37.990Z | 2,020 | 2 | 16 | 1 | 306 | 0 | 757 | 42 | 4 | 2 | true | true | false | false | false | false | low |
60,062,313 | How I can Choose only 3 Options RadioButton or Orders in android studio -Java | <p>I want to choose only 3 RadioButtons from these donuts(Radiogroup), and if you choose more than 3 there will be a Toast Message that says you have to choose only 3.
And if at click in the button "ORDER NOW" the order will pass data of this 3 donuts order to another page app.</p>
<p>That's is:</p>
<p><a href="http... | I want to choose only 3 RadioButtons from these donuts(Radiogroup), and if you choose more than 3 there will be a Toast Message that says you have to choose only 3. And if at click in the button "ORDER NOW" the order will pass data of this 3 donuts order to another page app. That's is: | java|android|android-studio|checkbox|web-applications | 0 | 2020-02-04T17:08:27.337Z | 2,020 | 2 | 17 | 1 | 98 | 1 | 286 | 77 | 5 | 0 | false | false | false | false | false | false | zero |
60,062,364 | How to create and populate a local SQLite db with API json data? | <p>I'm creating a <code>Xamarin.Forms</code> application that will consume data from an API Rest that I created in C#.</p>
<p>What I'm trying to do is to store all <code>JSON</code> data returned from the <code>API</code> to a local <code>SQLite</code> DB, then I'll use that data in all the application interfaces.</p>... | I'm creating a Xamarin.Forms application that will consume data from an API Rest that I created in C#. What I'm trying to do is to store all JSON data returned from the API to a local SQLite DB, then I'll use that data in all the application interfaces. Till here all is well: [CODE] What I want is to populate a table i... | sqlite|xamarin.forms|xamarin.android | 0 | 2020-02-04T17:11:41.347Z | 2,020 | 2 | 17 | 1 | 1,689 | 2 | 442 | 64 | 3 | 1 | true | false | false | false | false | false | zero |
60,062,367 | Android WebSettingsCompat.setForceDark recreates activity | <p>I'm trying to make a webView use the dark theme by using <code>implementation "androidx.webkit:webkit:1.2.0-alpha01"</code>and this:</p>
<pre><code> if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK)) {
WebSettingsCompat.setForceDark(thirdPartyWebView.getSettings(), WebSettingsCompat.FORCE_... | I'm trying to make a webView use the dark theme by using implementation "androidx.webkit:webkit:1.2.0-alpha01" and this: [CODE] It doesn't matter if I call this in onViewCreated, onCreateView or onAttach of my Fragment the activity gets recreated which is visible by a blinking animation. If there a better way of settin... | android|webkit|android-dark-theme|android-darkmode | 2 | 2020-02-04T17:11:45.893Z | 2,020 | 2 | 17 | 1 | 637 | 0 | 495 | 57 | 4 | 1 | true | true | false | false | false | false | low |
60,062,395 | How to mock repository livedata & ViewModel methods for unit testing | <p>What is the proper way to test verify <code>viewModel.getMoviesByReleaseDate()</code> gets a <code>List<DiscoverMovie></code> when <code>repository.getMoviesByReleaseDate()</code> is called on <code>viewModel.init()</code>.</p>
<p>My method <code>testRepoFetchDataSuccess()</code> doesn't achieve the above men... | What is the proper way to test verify viewModel.getMoviesByReleaseDate() gets a List<DiscoverMovie> when repository.getMoviesByReleaseDate() is called on viewModel.init() . My method testRepoFetchDataSuccess() doesn't achieve the above mentioned. Kindly provide code example if possible as I'm new to unit testing. [CODE... | android|junit|mockito|rx-java2|android-livedata | 3 | 2020-02-04T17:13:04.507Z | 2,020 | 2 | 17 | 1 | 1,739 | 0 | 355 | 68 | 5 | 4 | true | true | false | false | false | false | low |
60,062,409 | Why should i exactly write that way in Kotlin? | <p>I'm beginner in Kotlin for Android. I have some stupid questions which i can't find answers.</p>
<p>First question. For Example i have a code like this</p>
<pre><code>class myAdapter(context: Context, val list: List<DataSource>)
: ArrayAdapter<DataSource>(context, 0, list){
</code></pre>
<p>If i write... | I'm beginner in Kotlin for Android. I have some stupid questions which i can't find answers. First question. For Example i have a code like this [CODE] If i write like that (without arguments) [CODE] then intellij give me out this error: None of the following functions can be called with the arguments supplied. Why sho... | android|kotlin | -1 | 2020-02-04T17:14:02.577Z | 2,020 | 2 | 17 | 1 | 62 | 1 | 681 | 46 | 2 | 4 | true | false | false | false | false | true | negative |
60,062,613 | Implement unstoppable background service in react native | <p>I am trying to run a unstoppable background service in react native which will continuously listen for messages via Socket.io from server.</p>
<p>For this I found several solutions with several problems</p>
<ol>
<li><strong>Use FCM</strong>
<blockquote>
<p>The problem with method is that first I have to listen ... | I am trying to run a unstoppable background service in react native which will continuously listen for messages via Socket.io from server. For this I found several solutions with several problems Use FCM The problem with method is that first I have to listen for FCM event than connect to my server and get the data(Mess... | android|performance|firebase|react-native|react-native-fcm | 0 | 2020-02-04T17:28:18.420Z | 2,020 | 2 | 17 | 1 | 3,494 | 2 | 823 | 56 | 5 | 0 | false | false | true | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.