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,163,514 | facing issue in scanning with "EAN_13,EAN_8,UPC_A,UPC_E" android | <p>Hello I am searching for proper scanning library since many days , i have tested all these following libraries </p>
<pre><code>https://github.com/Credntia/MVBarcodeReader?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=4457
https://github.com/zxing/zxing
https://github.com/yuriy-budiyev/lib-... | Hello I am searching for proper scanning library since many days , i have tested all these following libraries [CODE] but facing same issue when ever i move my camera on surface like on table etc i am getting result even on empty things ,from these random barcode types EAN_13,EAN_8,UPC_A,UPC_E" , please guide me how to... | android|barcode-scanner | 0 | 2020-02-11T07:00:49.533Z | 2,020 | 2 | 7 | 1 | 37 | 0 | 436 | 64 | 2 | 1 | true | true | false | false | false | false | zero |
60,163,564 | How to pass same class method inside onActivityResult() in android? | <p>I have one method - <code>addEntryData</code>. I want to pass the <code>addEntryData</code> method inside <code>onActivityResult</code>.</p>
<pre class="lang-java prettyprint-override"><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent)
{
super.onActivityResult(reques... | I have one method - addEntryData . I want to pass the addEntryData method inside onActivityResult . [CODE] | android|onactivityresult | 0 | 2020-02-11T07:05:16.557Z | 2,020 | 2 | 7 | 1 | 82 | 2 | 106 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
60,163,602 | How to build a miniprogram (aka, tinyapp) framework in an app? | <p>Mini-program (tiny-app) is a very convenient and successful way to enrich the content and functions in an app, it’s ability to enrich an app’s ecosystem has been proven in China’s WeChat and AliPay apps. </p>
<p>We would like to embed such functionality in our app. However, most of the materials that can be searche... | Mini-program (tiny-app) is a very convenient and successful way to enrich the content and functions in an app, it’s ability to enrich an app’s ecosystem has been proven in China’s WeChat and AliPay apps. We would like to embed such functionality in our app. However, most of the materials that can be searched on the web... | android|ios|wechat-miniprogram | 5 | 2020-02-11T07:07:37.843Z | 2,020 | 2 | 7 | 1 | 1,111 | 2 | 563 | 62 | 3 | 0 | false | false | false | false | false | false | low |
60,163,606 | Error color when running on the android virtual machine | <p>I use linux mint 19.3 and install cocos2d-x 4.0 to build the project to android in AndroidStudio all succeeded and I run the project on the android virtual machine but I get a monitor far different from running on linux. help me please.</p>
<p><a href="https://i.stack.imgur.com/4g3BK.png" rel="nofollow noreferrer">... | I use linux mint 19.3 and install cocos2d-x 4.0 to build the project to android in AndroidStudio all succeeded and I run the project on the android virtual machine but I get a monitor far different from running on linux. help me please. | c++|android-studio|cocos2d-x | 0 | 2020-02-11T07:07:47.763Z | 2,020 | 2 | 7 | 1 | 26 | 0 | 236 | 55 | 3 | 0 | false | true | false | false | false | false | zero |
60,163,718 | Navigation Issue in Xamarin Forms | <p>I need to route pages A -> B -> C -> D, once I got into D, I need to use the navigation button back to page D -> A. I am trying to implement this scenario IOS and Android in Xamarin Forms.</p>
<p>Please help</p> | I need to route pages A -> B -> C -> D, once I got into D, I need to use the navigation button back to page D -> A. I am trying to implement this scenario IOS and Android in Xamarin Forms. Please help | xaml|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 1 | 2020-02-11T07:15:45.507Z | 2,020 | 2 | 7 | 1 | 222 | 3 | 200 | 33 | 5 | 0 | false | false | false | false | false | false | low |
60,163,775 | error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. in Mac | <p>I am setting up an Android development environment. However, there is a problem in the execution environment. I've already finished the configuration, but I keep saying I can't find the device. However, if you run the server and then run it in the Android studio, it will work normally. What's the problem?</p>
<p><s... | I am setting up an Android development environment. However, there is a problem in the execution environment. I've already finished the configuration, but I keep saying I can't find the device. However, if you run the server and then run it in the Android studio, it will work normally. What's the problem? bash_profile ... | android-studio|android-emulator|react-native | 0 | 2020-02-11T07:19:50.317Z | 2,020 | 2 | 7 | 1 | 4,613 | 2 | 391 | 105 | 3 | 2 | true | false | true | false | false | false | zero |
60,163,838 | Android kodein difference between **bind() with** and **bind() from** | <p>While studying about kodein i often see <strong>bind() with</strong> and <strong>bind() from</strong>.</p>
<p>Can anyone please tell me what is the difference and why are we using it.</p>
<p>Ex: </p>
<pre><code> bind<Dice>() with provider { RandomDice(0, 5) }
bind<DataSource>() with singleton... | While studying about kodein i often see bind() with and bind() from . Can anyone please tell me what is the difference and why are we using it. Ex: [CODE] [CODE] | android|kodein | 3 | 2020-02-11T07:24:26.910Z | 2,020 | 2 | 7 | 1 | 145 | 2 | 161 | 69 | 2 | 2 | true | false | false | false | false | false | low |
60,163,854 | Move a ball on Grid path randomly in Canvas Android | <p>Requirement is to keep a ball moving on the Grid path generated in Canvas. I have generated a Grid in canvas but not able to understand how to move the ball randomly means starting point show be different on the path. I am sharing what I have done. I have also plotted the ball in the screen but not getting the point... | Requirement is to keep a ball moving on the Grid path generated in Canvas. I have generated a Grid in canvas but not able to understand how to move the ball randomly means starting point show be different on the path. I am sharing what I have done. I have also plotted the ball in the screen but not getting the point ho... | android|android-canvas | 3 | 2020-02-11T07:25:28.183Z | 2,020 | 2 | 7 | 1 | 323 | 1 | 398 | 51 | 2 | 1 | true | false | false | false | false | false | low |
60,163,856 | When i build my project this is the error it shows. Can someone tell how to fix it? | <pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.exec... | [CODE] | android|android-gradle-plugin|build.gradle | 0 | 2020-02-11T07:25:33.587Z | 2,020 | 2 | 7 | 1 | 41 | 2 | 6 | 83 | 3 | 1 | true | false | false | false | false | false | zero |
60,163,889 | Android Firebase storage SDK maximum parallel uploads | <p>I have to upload some hundreds of photos to Firebase Storage. All the images are 10-15KB. I followed the suggestions and sent them 10 by 10. The problem is that the SDK seem to work only with 2 parallel threads.
It actually doesn't matter if I send 10 requests or 2, only 2 are active and the rest are queued.</p>
<... | I have to upload some hundreds of photos to Firebase Storage. All the images are 10-15KB. I followed the suggestions and sent them 10 by 10. The problem is that the SDK seem to work only with 2 parallel threads. It actually doesn't matter if I send 10 requests or 2, only 2 are active and the rest are queued. Is that th... | android|multithreading|image|firebase-storage|image-upload | 0 | 2020-02-11T07:27:57.917Z | 2,020 | 2 | 7 | 1 | 136 | 2 | 405 | 53 | 5 | 0 | false | false | false | false | false | false | zero |
60,163,999 | Unable to pickup file from SDCARD in Oreo | <p>I am New in Android, Working on one functionality in which I have to pick up a file from internal storage and SDCARD. I have implemented some code. With the help of below code, I am able to pick up or select a file from SDcard and internal storage in the Android pie version(9 API level 28) and Android Nougat version... | I am New in Android, Working on one functionality in which I have to pick up a file from internal storage and SDCARD. I have implemented some code. With the help of below code, I am able to pick up or select a file from SDcard and internal storage in the Android pie version(9 API level 28) and Android Nougat version(7)... | android | 0 | 2020-02-11T07:37:13.697Z | 2,020 | 2 | 7 | 1 | 79 | 0 | 697 | 41 | 1 | 1 | true | true | false | false | false | false | zero |
60,164,057 | Settings.ACTION_SOUND_SETTINGS is not going back to app | <p>I am trying to open Sound settings from my app</p>
<pre><code>startActivity(new Intent(Settings.ACTION_SOUND_SETTINGS));
</code></pre>
<p>Sound Settings Activity displays without any issue.</p>
<p>Scenarios After Opening Sound settings page</p>
<ol>
<li>When I press back button on my device, it is going back to ... | I am trying to open Sound settings from my app [CODE] Sound Settings Activity displays without any issue. Scenarios After Opening Sound settings page When I press back button on my device, it is going back to my application. when I click on back arrow button(top left), it is going to Settings Main Screen. Issue: I want... | java|android|settings | 2 | 2020-02-11T07:42:00.250Z | 2,020 | 2 | 7 | 1 | 204 | 1 | 465 | 55 | 3 | 2 | true | false | false | false | false | false | low |
60,164,098 | Firebase app distribution with gradle while having multiple flavorDimensions | <p>In the app, there is 2 flavorDimensions and for each pair there is seperate firebase project. Is there any way to set up firebaseAppDistribution for each one of them?</p> | In the app, there is 2 flavorDimensions and for each pair there is seperate firebase project. Is there any way to set up firebaseAppDistribution for each one of them? | android|firebase|gradle|firebase-app-distribution | 0 | 2020-02-11T07:45:05.187Z | 2,020 | 2 | 7 | 1 | 384 | 1 | 166 | 76 | 4 | 0 | false | false | false | false | false | false | zero |
60,164,101 | Save radioGroup value into MYSQL using android | <p>I'm new in android developing and I know this question has asked already but I couldn't find any way to solve my problem.</p>
<p>I've done all my approaches as all value of text fields are storing in DB But I have some problem with inserting the selected radio button value into the database.</p>
<p>Here is php fil... | I'm new in android developing and I know this question has asked already but I couldn't find any way to solve my problem. I've done all my approaches as all value of text fields are storing in DB But I have some problem with inserting the selected radio button value into the database. Here is php file. [CODE] Here is j... | android|mysql | 0 | 2020-02-11T07:45:15.720Z | 2,020 | 2 | 7 | 1 | 44 | 1 | 368 | 46 | 2 | 3 | true | false | false | false | false | false | zero |
60,164,139 | Certificate for Android application | <p>Trying to install application with ADB on physical device connected via USB:</p>
<pre><code>adb -s ce06160684b99a0902 install E:\D\android\MQTT\app\debug\app-debug.apk
</code></pre>
<p>Got error:</p>
<pre><code>E:\D\android\MQTT\app\debug\app-debug.apk: 1 file pushed. 4.0 MB/s (3747450 bytes in 0.903s)
p... | Trying to install application with ADB on physical device connected via USB: [CODE] Got error: [CODE] I was generated application via Build->Generate Signed Bundle/APK -> APK and entered key data: I suppose this procedure generates certificate? How to fix this problem? | android | 1 | 2020-02-11T07:49:03.947Z | 2,020 | 2 | 7 | 1 | 35 | 2 | 269 | 35 | 1 | 2 | true | false | false | false | false | false | low |
60,164,265 | Hide/remove/change color of a canvas circle When toched in Android | <p>this is my first question here, so maybe I'll make some mistakes.</p>
<p>I want to create an Android app for touch test, and draw a cross on the screen, however I'm succeeded to draw cross, but now I want to implement test screen login.</p>
<p>What I want to do is that, When user clicks on any circle it should be ... | this is my first question here, so maybe I'll make some mistakes. I want to create an Android app for touch test, and draw a cross on the screen, however I'm succeeded to draw cross, but now I want to implement test screen login. What I want to do is that, When user clicks on any circle it should be removed/hidden or c... | android|canvas|geometry | 0 | 2020-02-11T07:57:52.300Z | 2,020 | 2 | 7 | 1 | 77 | 1 | 519 | 66 | 3 | 0 | false | false | false | false | false | false | zero |
60,164,268 | Is there a way for fetching data when app closed and store it in db? | <p>I am working on news reader application and now i want to achieve this:
Once a day when there is Internet connection or at a specific time for example at 23.00 my app will fetch all new news and then store it in db. Inside application I am using retrofit to fetch and room to store using mvvm pattern. How can I do th... | I am working on news reader application and now i want to achieve this: Once a day when there is Internet connection or at a specific time for example at 23.00 my app will fetch all new news and then store it in db. Inside application I am using retrofit to fetch and room to store using mvvm pattern. How can I do this?... | android | 3 | 2020-02-11T07:57:54.863Z | 2,020 | 2 | 7 | 1 | 271 | 2 | 354 | 68 | 1 | 0 | false | false | false | false | false | false | low |
60,164,283 | How to have a properly Dark and Light Theme with Splash Screen | <p>I have read that there is a way to have a values-night and a values folder. But how to change from values to values-night before starting ,because of my splash screen. I know that there must be a way to have a dark and light themed splash screen ,because of WhatsApp. </p>
<p>How to change to values-night before Spl... | I have read that there is a way to have a values-night and a values folder. But how to change from values to values-night before starting ,because of my splash screen. I know that there must be a way to have a dark and light themed splash screen ,because of WhatsApp. How to change to values-night before Splash Screen i... | android|android-layout | 0 | 2020-02-11T07:58:43.160Z | 2,020 | 2 | 7 | 1 | 1,559 | 1 | 328 | 62 | 2 | 0 | false | false | false | false | false | false | zero |
60,164,288 | RecyclerView item with GridLayoutManager shows different view positions | <p>I have recycler view which uses grid layout manager to show items in 2 columns like this:
<a href="https://i.stack.imgur.com/cw0RT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cw0RT.png" alt="enter image description here"></a></p>
<p>If you notice the image bottom margin is different for left ... | I have recycler view which uses grid layout manager to show items in 2 columns like this: If you notice the image bottom margin is different for left row. In the item layout the image view has property "alignparentbottom=true", but all the items in the left row have this wrong margin at bottom (png file has no margin, ... | android|android-custom-view|android-recyclerview|gridlayoutmanager | 2 | 2020-02-11T07:59:06.087Z | 2,020 | 2 | 7 | 1 | 488 | 0 | 745 | 71 | 4 | 3 | true | true | false | false | false | false | low |
60,164,308 | Can I delete meta-data in AndroidManifest | <p>Trying to install application via <code>ADB</code>:</p>
<pre><code>adb -s emulator-5554 install -r E:\D\android\MQTT\app\debug\app-debug.apk
</code></pre>
<p>Got error:</p>
<pre><code>Performing Streamed Install
adb: failed to install E:\D\android\MQTT\app\debug\app-debug.apk: Failure [INSTALL_PARSE_FAILED_MANIF... | Trying to install application via ADB : [CODE] Got error: [CODE] AndroidManifest.xml: [CODE] If I delete lines below evrything goes fine. [CODE] What meta-data is used for? Will I have problems if I just delete it? Why system complains regarding current meta-data? How to correct it? | android | 2 | 2020-02-11T08:00:34.277Z | 2,020 | 2 | 8 | 1 | 2,711 | 1 | 283 | 41 | 1 | 4 | true | false | true | false | false | false | low |
60,164,436 | HowTo create deep links with multiple NavHostFragments | <p>The examples I found are either showing a single (nested) navigation graph which will be used for deep linking or they're showing nested navigation with multiple NavHostFragments but do not provide deep linking.</p>
<hr>
<p>I have the following scenario:</p>
<p><strong>MainActivity</strong></p>
<p>Has the main-N... | The examples I found are either showing a single (nested) navigation graph which will be used for deep linking or they're showing nested navigation with multiple NavHostFragments but do not provide deep linking. I have the following scenario: MainActivity Has the main-NavHostFragment which handles the main navigation t... | android|android-fragments|android-navigation|android-architecture-navigation | 4 | 2020-02-11T08:10:22.830Z | 2,020 | 2 | 8 | 1 | 1,245 | 1 | 777 | 54 | 4 | 0 | false | false | false | false | false | false | low |
60,164,438 | How to save the state of the map when switching between fragments? | <p>When I switch the fragment to another and return to the map, then Google Map _map is equal to null. </p>
<p>Suppose I moved around the map, then moved to another fragment and returned to the map. And when I return to the card, it is overloaded.</p>
<p>How to solve this problem. Many thanks ! And then I don’t know ... | When I switch the fragment to another and return to the map, then Google Map _map is equal to null. Suppose I moved around the map, then moved to another fragment and returned to the map. And when I return to the card, it is overloaded. How to solve this problem. Many thanks ! And then I don’t know what to do. What are... | android | 2 | 2020-02-11T08:10:24.997Z | 2,020 | 2 | 8 | 1 | 205 | 1 | 383 | 66 | 1 | 1 | true | false | false | false | false | false | low |
60,164,456 | making a smooth looking app launcher icon | <p>First of all,
<a href="https://stackoverflow.com/questions/42371884/blurry-launcher-icons">Blurry Launcher Icons</a> is a bit different from what I'm asking.</p>
<p>I designed a logo for a test app but it doesn't seem to get smooth at all. Compare google play's logos and my custom logo:<br>
<a href="https://i.sta... | First of all, Blurry Launcher Icons is a bit different from what I'm asking. I designed a logo for a test app but it doesn't seem to get smooth at all. Compare google play's logos and my custom logo: It has very jagged edges and I don't know how to fix it. I have provided three different dimensions for the mipmap-mdpi ... | android|drawable|android-4.4-kitkat|android-launcher | 0 | 2020-02-11T08:12:06.240Z | 2,020 | 2 | 8 | 1 | 367 | 1 | 746 | 41 | 4 | 0 | false | false | false | false | false | false | zero |
60,164,457 | android.content.res.Resources$NotFoundException: String resource ID #0x4 | <p>I've been trying to make a timer app. The user will input seconds and the seek bar moves in a decreasing manner. But as soon as I click on the button, the progress bar moves to the value, but the app crashes. I think the code is working fine till the progress bar update, but after that, it crashes. I have been strug... | I've been trying to make a timer app. The user will input seconds and the seek bar moves in a decreasing manner. But as soon as I click on the button, the progress bar moves to the value, but the app crashes. I think the code is working fine till the progress bar update, but after that, it crashes. I have been struggli... | java|android | 0 | 2020-02-11T08:12:07.723Z | 2,020 | 2 | 8 | 1 | 228 | 1 | 451 | 72 | 2 | 3 | true | false | false | false | false | false | zero |
60,164,488 | Why am I getting IllegalArgumentException error while deleting data by id by Retrofit2? And how to fix it? | <p>I am trying to delete an user in phpmyadmin by id parameter by Java, Retrofit, PHP, MySQL. When I press the delete button, in the Logcat I am getting this <strong>ERROR</strong>:</p>
<pre><code> java.lang.IllegalArgumentException: URL query string "id={id}" must not have replace block. For dynamic query parameters ... | I am trying to delete an user in phpmyadmin by id parameter by Java, Retrofit, PHP, MySQL. When I press the delete button, in the Logcat I am getting this ERROR : [CODE] UserAPI.java : [CODE] AdminActivity.java : Here is the listener for delete button: [CODE] Why am I getting this error? And How to fix it. Thank You in... | java|php|android|retrofit2 | -1 | 2020-02-11T08:14:30.503Z | 2,020 | 2 | 8 | 1 | 36 | 1 | 329 | 106 | 4 | 3 | true | false | false | false | false | true | negative |
60,164,490 | How to remove blank space in UI xml in Android? | <p>I have implemented the class and draw in canvas in xml. But I am facing blank space at the bottom of the UI. How can I solve this problem?? I use to draw a drawable on the canvas. The class name is BarcodeScannerView.
Here is the code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout x... | I have implemented the class and draw in canvas in xml. But I am facing blank space at the bottom of the UI. How can I solve this problem?? I use to draw a drawable on the canvas. The class name is BarcodeScannerView. Here is the code [CODE] You can go through this google link for screenshot: https://drive.google.com/f... | android|xml|android-layout|user-interface | 2 | 2020-02-11T08:14:49.647Z | 2,020 | 2 | 8 | 1 | 68 | 1 | 376 | 47 | 4 | 1 | true | false | false | false | false | false | low |
60,164,491 | Clear two edit texts with cross button | <p>I have an app where I have the login form and I have a cross button at the end of the edit text but they don't work correctly. I want to so something like this:</p>
<p><a href="https://i.stack.imgur.com/Yk9SK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yk9SK.png" alt="enter image description ... | I have an app where I have the login form and I have a cross button at the end of the edit text but they don't work correctly. I want to so something like this: For the email works fine, but is not working for password. I'm using the Text Watcher class for these manipulations, here's my code: [CODE] Any help is appreci... | java|android | 0 | 2020-02-11T08:14:50.397Z | 2,020 | 2 | 8 | 1 | 45 | 1 | 325 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
60,164,527 | after press button which perform image processing my App get Crshed | <p>I am creating an app which capture image & show in <code>imageview</code>.
after that, I perform features extraction using ORB & matching.
but when I click on the next button my app gets crashed.</p>
<pre><code>D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.examp... | I am creating an app which capture image & show in imageview . after that, I perform features extraction using ORB & matching. but when I click on the next button my app gets crashed. [CODE] Any one know how to solve this error? Here gradle file [CODE] if any one know how to solve this error please comment. | android|android-studio|opencv|opencv3.2 | 1 | 2020-02-11T08:18:01.003Z | 2,020 | 2 | 8 | 1 | 58 | 1 | 308 | 67 | 4 | 2 | true | false | false | false | false | false | low |
60,164,559 | How to get a name from the user and display it in a Toast using Kotlin? | <p>I made a custom dialog that contains an <code>EditText</code> to make the user enter his name. When the user clicks "SAVE" I want to display his name in a <code>Toast</code>. I made this bellow code, but the application keeps stopping when I click "SAVE". I would like to know where is the error?</p>
<pre><code>chan... | I made a custom dialog that contains an EditText to make the user enter his name. When the user clicks "SAVE" I want to display his name in a Toast . I made this bellow code, but the application keeps stopping when I click "SAVE". I would like to know where is the error? [CODE] | android|kotlin|android-edittext | 0 | 2020-02-11T08:21:35.053Z | 2,020 | 2 | 8 | 1 | 107 | 1 | 278 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
60,164,567 | Android - How can I update data or UI in my Activity when Push Notification FCM is received? | <p>I have the following <code>FirebaseMessagingService</code> which works fine when I get a push notification and the app is in foreground:</p>
<pre><code>public class _FCMService extends FirebaseMessagingService {
@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
if (remoteMessage.get... | I have the following FirebaseMessagingService which works fine when I get a push notification and the app is in foreground: [CODE] So, If I receive a push, the Logcat prints out the notification's body and (if present) the pushType string. What I would need to do is to make my other Activity update data when push is re... | java|android|push-notification|firebase-cloud-messaging|android-notifications | 1 | 2020-02-11T08:22:09.887Z | 2,020 | 2 | 8 | 1 | 1,409 | 3 | 525 | 92 | 5 | 1 | true | false | false | false | false | false | low |
60,164,645 | Flutter App crashes on production on startup and through java.lang.ClassNotFoundException | <p>I am developing an app using flutter. The debug apk working fine but when I build apk for release, it crashes. I uploaded the app to playstore and found this in ANR/Crash reports page. </p>
<pre><code>java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3029)
at ... | I am developing an app using flutter. The debug apk working fine but when I build apk for release, it crashes. I uploaded the app to playstore and found this in ANR/Crash reports page. [CODE] My build.gradle file under android/app, content for reference. [CODE] I am wondering what bug is causing the breakdown, all work... | java|android|flutter|classnotfoundexception | 1 | 2020-02-11T08:27:58.870Z | 2,020 | 2 | 8 | 1 | 906 | 1 | 343 | 89 | 4 | 2 | true | false | false | false | false | false | low |
60,164,689 | mkdirs() doesnt create new directory in android | <p>I tried to make some folder in my storage and store image from camera into it, but mkdirs always return false, already tried using mkdir and canWrite, but still the same</p>
<pre><code>2020-02-12 09:32:44.043 22914-23146/example.com.absensiapp D/TET: Folder Not Exist
2020-02-12 09:32:44.047 22914-23146/example.com.... | I tried to make some folder in my storage and store image from camera into it, but mkdirs always return false, already tried using mkdir and canWrite, but still the same [CODE] Here is the code for making the folder and save the image from camera [CODE] Already put the permission in my manifest and main activity Manife... | java|android | 1 | 2020-02-11T08:31:11.400Z | 2,020 | 2 | 8 | 1 | 123 | 1 | 354 | 47 | 2 | 4 | true | false | false | false | false | false | low |
60,164,696 | android BaseFragment with it's own xml and inherited fragment's view inside a parent's frameLayout | <p>I have an abstract fragment that has it's own view (views the are common for inherited fragments)
I'm creating a fragment that inherit from that base fragment and it has it's own view (layout)
How can it be done?
I'm getting an error that says that I need to call remove view first...</p>
<p>The inherited Fragment's... | I have an abstract fragment that has it's own view (views the are common for inherited fragments) I'm creating a fragment that inherit from that base fragment and it has it's own view (layout) How can it be done? I'm getting an error that says that I need to call remove view first... The inherited Fragment's view shoul... | android|kotlin|fragment | 1 | 2020-02-11T08:31:52.870Z | 2,020 | 2 | 8 | 1 | 334 | 1 | 453 | 98 | 3 | 4 | true | false | false | false | false | false | low |
60,164,725 | How can I make the EditText expandable and hide icons when it is clicked in Android? | <p>I am making a messaging app and wanted a textfield to look like this:</p>
<p><a href="https://i.stack.imgur.com/8Q9DP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Q9DP.png" alt="enter image description here"></a></p>
<p>And when the editText is clicked, it will look like this:</p>
<p><a hre... | I am making a messaging app and wanted a textfield to look like this: And when the editText is clicked, it will look like this: And when you clicked "+" it will again show the camera and gallery icon. Similar to Facebook Messenger mobile app's chat text. How can I make something like this in my layout? | android|android-layout|android-edittext | 1 | 2020-02-11T08:34:04.920Z | 2,020 | 2 | 8 | 1 | 78 | 2 | 303 | 84 | 3 | 0 | false | false | false | false | false | false | low |
60,164,745 | Changing primary display resolution programmatically | <p>I'm trying to change the display resolution of my primary display on Android 8.1. I get an event from the kernel (based on EDID) that tells me I need to change mode.</p>
<p>I then basically do:</p>
<pre><code>sp<IBinder> display(SurfaceComposerClient::getBuiltInDisplay(ISurfaceComposer::eDisplayIdMain));
sta... | I'm trying to change the display resolution of my primary display on Android 8.1. I get an event from the kernel (based on EDID) that tells me I need to change mode. I then basically do: [CODE] This updates surfaceflinger, the display hal and the kernel correctly, but windowmanager/display does not change resolution un... | android|android-windowmanager|surfaceflinger|android-displaymanager | 4 | 2020-02-11T08:35:44.643Z | 2,020 | 2 | 8 | 1 | 636 | 0 | 823 | 52 | 4 | 3 | true | true | false | false | false | false | low |
60,164,823 | Kotlin compatibility with JavaFXPorts | <p>I would like to build a JavaFX Android app with <a href="https://docs.gluonhq.com/javafxports/" rel="noreferrer">JavaFXPorts</a> and Kotlin code. Is it possible to use Kotlin in a JavaFXPorts project? Here's my example Gradle (version 5.6.4) project:</p>
<blockquote>
<p>Note: Problem with this code is the Kotlin ... | I would like to build a JavaFX Android app with JavaFXPorts and Kotlin code. Is it possible to use Kotlin in a JavaFXPorts project? Here's my example Gradle (version 5.6.4) project: Note: Problem with this code is the Kotlin Runtime... Is there any way to bundle everything in the executable Jar and Apk? [CODE] ./settin... | android|gradle|kotlin|javafx-8|javafxports | 19 | 2020-02-11T08:42:05.257Z | 2,020 | 2 | 8 | 1 | 340 | 1 | 489 | 37 | 5 | 6 | true | false | false | false | true | false | medium |
60,164,895 | AOSP : How to add service in service manager after removal of android:sharedUserId="android.uid.system" from manifest | <p><p> Unable to start service . Line is added in onCreate of service. </p></p>
<pre><code><pre>ServiceManager.addService(ACTION_REMOTE_SERVICE, (IBinder) new xxxRemoteservice(this));</pre>
</code></pre>
<p><p> Changes we removed android:sharedUserId="android.uid.system" from manifest . But the applicati... | Unable to start service . Line is added in onCreate of service. [CODE] Changes we removed android:sharedUserId="android.uid.system" from manifest . But the application is signed with platform certificate And LOCAL_VENDOR_MODULE := true [CODE] | android-source|servicemanager | 1 | 2020-02-11T08:46:56.977Z | 2,020 | 2 | 8 | 1 | 543 | 0 | 242 | 117 | 2 | 2 | true | true | false | false | false | false | low |
60,164,938 | How to implement Left and Right Analog Triggers in a HID Gamepad for Android | <p>I am working on a HID gamepad with 4 axis(14 Bit), 16 Buttons, 2 Analog Triggers(1 Byte) and a Hat Switch. I am currently using Axis X and Y for the left analog stick, axis Rx and Ry for right analog stick and axis Z and Rz for left and right triggers. I am able to register all buttons and analog readings(which have... | I am working on a HID gamepad with 4 axis(14 Bit), 16 Buttons, 2 Analog Triggers(1 Byte) and a Hat Switch. I am currently using Axis X and Y for the left analog stick, axis Rx and Ry for right analog stick and axis Z and Rz for left and right triggers. I am able to register all buttons and analog readings(which have be... | android|c|hid|gamepad | 1 | 2020-02-11T08:49:37.653Z | 2,020 | 2 | 8 | 1 | 1,547 | 2 | 918 | 76 | 4 | 2 | true | false | false | false | false | false | low |
60,165,033 | How to get data from class into intent | <p>This is my <code>Post.kt</code> class</p>
<pre><code>data class Post ( val id: Int, val name: String?, val slug: String?,
val image: String?, val body: String?, val icon: String?,
val quote: String?, val video: String?, val created_at: String?,
val updated_at: S... | This is my Post.kt class [CODE] I need to get val slug in my adapter intent so i can send it to other activity Adapter [CODE] Note: text_slug.text.toString() doesn't exist it's just a placeholder, i need to provide my val slug instead of text_slug . That is what i'm looking for. Any idea? Update my adapter full code + ... | android|kotlin|android-intent | 0 | 2020-02-11T08:56:00.277Z | 2,020 | 2 | 8 | 1 | 111 | 2 | 852 | 38 | 3 | 5 | true | false | false | false | false | false | zero |
60,165,119 | Error in resolving Dependencies for compileClasspath | <p>My project on android studio was working fine and then today I re-open it and the gradle cannot be built. It shows error in my app level gradle. I have tried to copy the code to another project but its gradle also crashed, when I tried to integrate google's gms plugin. </p>
<p>I have already tried to change the ver... | My project on android studio was working fine and then today I re-open it and the gradle cannot be built. It shows error in my app level gradle. I have tried to copy the code to another project but its gradle also crashed, when I tried to integrate google's gms plugin. I have already tried to change the version for the... | android|android-studio|gradle|classpath | 0 | 2020-02-11T09:01:51.107Z | 2,020 | 2 | 9 | 1 | 1,614 | 3 | 530 | 52 | 4 | 3 | true | false | false | false | false | false | zero |
60,165,150 | How to set up Firebase Crashlytics for Debug and Release mode | <p>I would like to set up crashlytics for debug and release mode but I can't find proper informations in firebase docs.</p>
<p>At now the app is in one project and there is only one crashlytics for debug and release. I can't create another app with the same package as a previous one.
Another option is to have another ... | I would like to set up crashlytics for debug and release mode but I can't find proper informations in firebase docs. At now the app is in one project and there is only one crashlytics for debug and release. I can't create another app with the same package as a previous one. Another option is to have another project wit... | android|firebase|crashlytics|android-productflavors | 4 | 2020-02-11T09:03:40.770Z | 2,020 | 2 | 9 | 1 | 3,859 | 1 | 752 | 61 | 4 | 0 | false | false | true | false | false | false | low |
60,165,166 | How to make ViewPager2 look like an infinite loop with a 'slide' page transformer? | <p>I am looking for an infinite loop to display pictures in a ViewPager2.</p>
<p>With a 'slide' page transformer (like default I think) between pictures, and also between last and first item, and first and last item.</p>
<p>The difficulty I found is:</p>
<ul>
<li>to not have <code>Integer.maxValue</code> items, </li... | I am looking for an infinite loop to display pictures in a ViewPager2. With a 'slide' page transformer (like default I think) between pictures, and also between last and first item, and first and last item. The difficulty I found is: to not have Integer.maxValue items, having a real transition between first and last el... | android|android-viewpager2 | 5 | 2020-02-11T09:04:41.007Z | 2,020 | 2 | 9 | 1 | 5,975 | 1 | 387 | 82 | 2 | 0 | false | false | true | false | false | false | low |
60,165,175 | How to retrieve specific document id on itemclickviewlistener from firebase | <pre><code>fgboys.whereEqualTo("date", date)
.get()
.addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {
@Override
public void onSuccess(final QuerySnapshot queryDocumentSnapshots) {
Str... | [CODE] i want to retrieve the document id of that specific document i click on [CODE] This is what i have tried but on clicking any item it is returning only one specific id so my database structure is like : Collection - ProgramDetails and under this collection i have many documents which have auto generated id's and ... | android|google-cloud-firestore | 1 | 2020-02-11T09:05:05.407Z | 2,020 | 2 | 9 | 1 | 109 | 1 | 411 | 75 | 2 | 2 | true | false | false | false | false | false | low |
60,165,219 | Android device forced to restart on app launch | <p>I changed a Splash image and it seem's every time I try to launch the application it restarts my phone.</p>
<p>I changed the image back but the same thing happens. I found an article mentioning something about if the Splash image size is too large this happens? But I downsized the image to an extremely small image ... | I changed a Splash image and it seem's every time I try to launch the application it restarts my phone. I changed the image back but the same thing happens. I found an article mentioning something about if the Splash image size is too large this happens? But I downsized the image to an extremely small image with the sa... | c#|android|xamarin.forms | 0 | 2020-02-11T09:08:12.797Z | 2,020 | 2 | 9 | 1 | 85 | 0 | 428 | 46 | 3 | 1 | true | true | false | false | false | false | zero |
60,165,305 | react native - payment with PayPal v2/orders | <p>I am implementing PayPal in React Native, following the documentation for <a href="https://developer.paypal.com/docs/api/payments/v2/" rel="nofollow noreferrer">PayPal Payments v2 API</a></p>
<p>Here is the step by step of my checkout:</p>
<ol>
<li>Use <a href="https://api.sandbox.paypal.com/v1/oauth2/token" rel=... | I am implementing PayPal in React Native, following the documentation for PayPal Payments v2 API Here is the step by step of my checkout: Use https://api.sandbox.paypal.com/v1/oauth2/token to get token. Use https://api.sandbox.paypal.com/v2/checkout/orders to create an order Use approve link for clients to accept payme... | android|ios|react-native|paypal | 1 | 2020-02-11T09:13:45.347Z | 2,020 | 2 | 9 | 1 | 452 | 1 | 573 | 44 | 4 | 0 | false | false | false | false | false | false | low |
60,165,328 | Android ImageReader with MediaProjection: how to remove image extra padding efficiently | <p>Here is how I get image buffer:</p>
<pre><code> image = imageReader?.acquireLatestImage() ?: return
val planes = image.planes
val buffer = planes[0].buffer
val pixelStride = planes[0].pixelStride
val rowStride = planes[0].rowStride
val rowPaddi... | Here is how I get image buffer: [CODE] Why image buffer has extra row padding? How to convert this buffer to new buffer or bytes[] without row padding efficiently? I need transmit screen images real-time, so efficiency is priority. | android | 1 | 2020-02-11T09:15:07.573Z | 2,020 | 2 | 9 | 1 | 124 | 0 | 231 | 87 | 1 | 1 | true | true | false | false | false | false | low |
60,165,399 | why my Android notification can't be clicked to go inside my app? | <p>I can receive the notification sent from Firebase Cloud Messaging and show it to android device in here</p>
<p><a href="https://i.stack.imgur.com/XaetR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XaetR.png" alt="enter image description here"></a></p>
<p>when I click notification from my app,... | I can receive the notification sent from Firebase Cloud Messaging and show it to android device in here when I click notification from my app, I expect it will go inside my app. but when I click the notification from my app it just doesn't do anything. it seems it can't be clicked. so how to make it go to inside my app... | android|android-notifications | 0 | 2020-02-11T09:18:19.957Z | 2,020 | 2 | 9 | 1 | 405 | 1 | 460 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
60,165,473 | Recyclerview glitches the borders of the items on certain phones | <p>I currently have a recyclerview, each item has a colored border, everything works great on every phone except Pixel phones and some Huawey phones. It seems that on those, when scrolling down, the bottom of the border of one item attaches tot the bottom of the layout and stays there until refreshing recyclerview. It ... | I currently have a recyclerview, each item has a colored border, everything works great on every phone except Pixel phones and some Huawey phones. It seems that on those, when scrolling down, the bottom of the border of one item attaches tot the bottom of the layout and stays there until refreshing recyclerview. It doe... | android|android-layout | 0 | 2020-02-11T09:22:17.143Z | 2,020 | 2 | 9 | 1 | 39 | 0 | 556 | 64 | 2 | 1 | true | true | false | false | false | false | zero |
60,165,511 | Errors after migrate AndroidX | <p>My error log from console.</p>
<pre><code>java.lang.RuntimeException: Manifest merger failed with multiple errors, see logs
at com.android.build.gradle.internal.tasks.manifest.ManifestHelperKt.mergeManifestsForApplication(ManifestHelper.kt:181)
at com.android.build.gradle.tasks.ProcessApplicationManifest.do... | My error log from console. [CODE] My gradle [CODE] What am I doing wrong and how do I fix my project errors? I need to use floating button, but after migration I can’t put together a project. Besides these errors, there are no others. How can I use the new libraries correctly and fix all the errors? I apologize for the... | java|android|android-studio|androidx | 0 | 2020-02-11T09:23:54.370Z | 2,020 | 2 | 9 | 1 | 65 | 1 | 364 | 29 | 4 | 2 | true | false | false | false | false | false | zero |
60,165,521 | Memory leak or just slow emulator? | <p>I got the next error on the CI:</p>
<pre><code>531532 bytes retained by leaking objects
Signature: 57cc9bd9b14a813ead44f7eba2d9ffa1de2c4649
┬───
│ GC Root: Java local variable
│
├─ android.app.Instrumentation$InstrumentationThread thread
│ Leaking: UNKNOWN
│ Thread name: 'Instr: com.comp.test.runner.YInstrume... | I got the next error on the CI: [CODE] | android|android-emulator|leakcanary | 0 | 2020-02-11T09:24:34.440Z | 2,020 | 2 | 9 | 1 | 354 | 1 | 38 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
60,165,550 | How to Upload a file from web to android web server using NanoHttp | <p>I need to use android device as web server and browser as client.</p>
<p>I need to be able to upload file from client to android device, I really don't know how.
I really don't understand anything from Http stuff and nano.</p> | I need to use android device as web server and browser as client. I need to be able to upload file from client to android device, I really don't know how. I really don't understand anything from Http stuff and nano. | android|http|nanohttpd | 0 | 2020-02-11T09:26:23.340Z | 2,020 | 2 | 9 | 1 | 40 | 0 | 215 | 66 | 3 | 0 | false | true | false | false | false | false | zero |
60,165,579 | RecyclerView.setAdapter(androidx.recyclerview.widget.RecyclerView Adapter ADAPTER | <p>Tried using recycler view inside recycler view the first adapter works fine but the second adapter never runs
tired fixing it over and over nothing works....help
The second recycler view is retrieving data from Firebase</p>
<p>The Data from firebase is received but never set to the required text views.</p>
<hr>
<... | Tried using recycler view inside recycler view the first adapter works fine but the second adapter never runs tired fixing it over and over nothing works....help The second recycler view is retrieving data from Firebase The Data from firebase is received but never set to the required text views. Activity [CODE] First A... | java|android|android-studio|android-recyclerview | -1 | 2020-02-11T09:27:41.783Z | 2,020 | 2 | 9 | 1 | 1,710 | 2 | 383 | 81 | 4 | 4 | true | false | false | false | false | true | negative |
60,165,585 | How can I solve this NullPointer error in my Android app? | <p>I've made a screen in android studio that manages some aspects of bluetooth like searching for devices, on and off and so on. The problem appeared when I ran the app, I get a NullPointer error when changing the bluetooth images from on to off and viceversa.</p>
<p>My code so far (simplified):</p>
<pre><code>privat... | I've made a screen in android studio that manages some aspects of bluetooth like searching for devices, on and off and so on. The problem appeared when I ran the app, I get a NullPointer error when changing the bluetooth images from on to off and viceversa. My code so far (simplified): [CODE] I get the NullPointer Exce... | android|bluetooth|nullpointerexception|bluetoothadapter | 0 | 2020-02-11T09:27:50.367Z | 2,020 | 2 | 9 | 1 | 64 | 1 | 378 | 57 | 4 | 3 | true | false | false | false | false | false | zero |
60,165,608 | Timed Notification of Firebase Cloud Messaging | <p>We have finished the test of Firebase Cloud Messaging, and it's working properly. How can we use Firebase to send timed notifications, just like the local alarm clock?</p> | We have finished the test of Firebase Cloud Messaging, and it's working properly. How can we use Firebase to send timed notifications, just like the local alarm clock? | android|firebase|firebase-cloud-messaging | 0 | 2020-02-11T09:29:09.150Z | 2,020 | 2 | 9 | 1 | 33 | 0 | 167 | 46 | 3 | 0 | false | true | false | false | false | false | zero |
60,165,610 | How to convert string into JSONObject? | <p>I have a string with value <code>abc@xyz.com.</code>
I have to pass this value to server like: </p>
<pre><code>{"email":"abc@xyz.com"}
</code></pre>
<p>I am passing value to server like this using <code>okhttp</code>:</p>
<pre><code>Map<String, String> map = new HashMap<>();
map.put("email", email);
n... | I have a string with value abc@xyz.com. I have to pass this value to server like: [CODE] I am passing value to server like this using okhttp : [CODE] How do i do it? | java|android|json|string | 0 | 2020-02-11T09:29:20.123Z | 2,020 | 2 | 9 | 1 | 241 | 5 | 165 | 38 | 4 | 2 | true | false | false | false | false | false | zero |
60,165,693 | How to prevent UnityEngine.Debug.Log writing multiple lines to ADB | <p>I am using ADB to log in Windows PowerShell from a Unity built application running on a connected Android device.
I am only interested in my own message invoked in script from e.g. UnityEngine.Debug.Log("<strong><em>## State set to SolvingAnchor</em></strong>"), but Unity appends 8 lines to this message:</p>
<ul>
<... | I am using ADB to log in Windows PowerShell from a Unity built application running on a connected Android device. I am only interested in my own message invoked in script from e.g. UnityEngine.Debug.Log(" ## State set to SolvingAnchor "), but Unity appends 8 lines to this message: .\adb logcat -s Unity -e "^[#]{2}" -m ... | android|unity3d|adb|remote-debugging | 1 | 2020-02-11T09:33:08.993Z | 2,020 | 2 | 9 | 1 | 1,116 | 2 | 1,254 | 66 | 4 | 0 | false | false | false | false | false | false | low |
60,165,695 | How can I implement a "promise like" thread-synchronization system in Java 7? | <p>I have a static method for obtaining a global object:</p>
<pre><code>public static Application getApplication() {
// ...
}
</code></pre>
<p>The <code>Application</code> instance takes time to create due to I/O, so we create it in a separate thread. During this time, it may happen that other threads attempt to ... | I have a static method for obtaining a global object: [CODE] The Application instance takes time to create due to I/O, so we create it in a separate thread. During this time, it may happen that other threads attempt to call getApplication() . The behavior I want is for those threads to block until the global Applicatio... | java|android|multithreading|java-7 | 2 | 2020-02-11T09:33:23.497Z | 2,020 | 2 | 9 | 1 | 114 | 2 | 744 | 77 | 4 | 2 | true | false | false | false | false | false | low |
60,165,719 | Color coding error and truncated file in Android Studio | <p>I encountered a strange problem with my Android Studio while I'm working on my Flutter project.</p>
<p>Look at the screen shot below:
<a href="https://i.stack.imgur.com/DohZY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DohZY.png" alt="enter image description here"></a></p>
<p>Notice how the ... | I encountered a strange problem with my Android Studio while I'm working on my Flutter project. Look at the screen shot below: Notice how the word "final" only partially colored? And there are other keywords that are partially colored. Not just that, there are also color spilled from one keyword to another. For example... | android|android-studio|flutter|dart|color-coding | 0 | 2020-02-11T09:34:49.770Z | 2,020 | 2 | 9 | 1 | 118 | 1 | 1,212 | 55 | 5 | 0 | false | false | false | false | false | false | zero |
60,165,720 | Can't use float value from dimen file by databinding | <p>Android Studio 3.6</p>
<p>in my strings.xml</p>
<pre><code><string name="discount_bonuses_and_ration_lei_placeholder">%1$d B x %2$.2f Lei</string>
</code></pre>
<p>in my xml</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="htt... | Android Studio 3.6 in my strings.xml [CODE] in my xml [CODE] it's work fine. Nice. Now I want to replace hardcoded value 0.1 by value from dimen file. So in values/dimen.xml [CODE] And I write method that get float value from dimen file. [CODE] Now I want to use this method in xml [CODE] But now I get compile error [CO... | java|android|android-layout|android-databinding | 1 | 2020-02-11T09:34:50.070Z | 2,020 | 2 | 9 | 1 | 865 | 1 | 389 | 52 | 4 | 6 | true | false | false | false | false | false | low |
60,165,728 | Unable to generate notification from onMessageReceived of FirebaseMessagingService in Android | <p>I am sending notification with only data payload from Firebase Cloud Messaging HTTP protocol. I am able to see that notification is arriving properly in "onMessageReceived" callback method of "FirebaseMessagingService" in my Android App. The problem is I am not able to generate notification from here. I have written... | I am sending notification with only data payload from Firebase Cloud Messaging HTTP protocol. I am able to see that notification is arriving properly in "onMessageReceived" callback method of "FirebaseMessagingService" in my Android App. The problem is I am not able to generate notification from here. I have written co... | android|push-notification|firebase-cloud-messaging|android-notifications | 0 | 2020-02-11T09:35:10.677Z | 2,020 | 2 | 9 | 1 | 328 | 4 | 533 | 93 | 4 | 3 | true | false | false | false | false | false | zero |
60,165,739 | Different types of fragmentManagers | <p>There are several different kinds of fragmentManagers in Android: <code>parentFragmentManager</code>, <code>childFragmentManager</code>, <code>supportFragmentManager</code> and plain <code>fragmentManager</code>, which is already deprecated. But what are the principal differences between them?</p> | There are several different kinds of fragmentManagers in Android: parentFragmentManager , childFragmentManager , supportFragmentManager and plain fragmentManager , which is already deprecated. But what are the principal differences between them? | android|fragmentmanager | 3 | 2020-02-11T09:35:41.687Z | 2,020 | 2 | 9 | 1 | 824 | 1 | 245 | 35 | 2 | 0 | false | false | false | false | false | false | low |
60,165,788 | How to get first two chooser intents and display only them for user in android | <p>I'm trying to display only gallery and File manager in the chooser intent </p>
<p>So, i tried something like below</p>
<pre><code>Intent intent = new Intent();
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
intent.putExtra(Intent.EXTRA... | I'm trying to display only gallery and File manager in the chooser intent So, i tried something like below [CODE] But along with gallery and File Explorer it is showing other apps too. It is also showing google drive So, i decided to choose only first two intents and remove others. How to achieve this ? | android|android-intent|android-intent-chooser | 1 | 2020-02-11T09:37:42.537Z | 2,020 | 2 | 9 | 1 | 226 | 2 | 304 | 78 | 3 | 1 | true | false | false | false | false | false | low |
60,165,789 | Deep linking working with adb, not in browser | <p>I have setup deep linking in my app previously and had it work just fine. All the sudden it stops working. I have the below manifest...</p>
<pre><code><activity
android:name=".MainActivity"
android:launchMode="singleTask"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHi... | I have setup deep linking in my app previously and had it work just fine. All the sudden it stops working. I have the below manifest... [CODE] When I attempt to load https://www.giftwizit.com in a browser such as Chrome or even Samsung internet it simply loads up a google search page. The same happens when I attempt gi... | android|react-native | 2 | 2020-02-11T09:37:44.163Z | 2,020 | 2 | 9 | 1 | 484 | 1 | 1,016 | 45 | 2 | 1 | true | false | false | false | false | false | low |
60,165,830 | E/AndroidRuntime: FATAL EXCEPTION: main error in android studio | <p>My Application is a simple counter with an add button, and reset button.
When I try to run my application on the emulator, it always takes more time to install and finally show me this error message.</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.tasbeeh, PID: 7966
java.lang.Run... | My Application is a simple counter with an add button, and reset button. When I try to run my application on the emulator, it always takes more time to install and finally show me this error message. [CODE] This is my MainActivity.java [CODE] | java|android | 0 | 2020-02-11T09:39:37.843Z | 2,020 | 2 | 9 | 1 | 1,841 | 1 | 242 | 63 | 2 | 2 | true | false | false | false | false | false | zero |
60,165,879 | How to map the errorBody automatically using coverter factory? | <p>I'm using <strong>retrofit</strong> to fetch some data from a remote server, when the response code is something other than <code>200</code> for success, the body returns as <code>null</code>.
I found out in this case I should get my result from <code>response.errorBody()</code> but it returned in a raw <strong>JSON... | I'm using retrofit to fetch some data from a remote server, when the response code is something other than 200 for success, the body returns as null . I found out in this case I should get my result from response.errorBody() but it returned in a raw JSON form of course, is there anyway to map it automatically using the... | android|json|retrofit|converters|error-code | 1 | 2020-02-11T09:42:29.310Z | 2,020 | 2 | 9 | 1 | 42 | 0 | 448 | 62 | 5 | 2 | true | true | false | false | false | false | low |
60,165,968 | RecyclerView attempt to invoke virtual method getItemCount() on a null object reference | <p>I'm trying to work with recyclerview in a fragment, I had the recyclerview in a project and it works perfectly in an activity until I tried to implement it in another fragment project. I tried to combine both but I'm getting these errors : </p>
<p>NullPointerException on the LinearLayoutManager.getItemCount()</p>
... | I'm trying to work with recyclerview in a fragment, I had the recyclerview in a project and it works perfectly in an activity until I tried to implement it in another fragment project. I tried to combine both but I'm getting these errors : NullPointerException on the LinearLayoutManager.getItemCount() What might be cau... | java|android|android-fragments|android-recyclerview|tabs | -1 | 2020-02-11T09:46:46.563Z | 2,020 | 2 | 9 | 1 | 1,431 | 2 | 579 | 87 | 5 | 6 | true | false | false | false | false | true | negative |
60,166,038 | How to sort Firestore RecyclerView Items with a value that is not in the "Query-Collection"? (Social Leaderboard) | <p>I have a RecyclerView adapter which should display all the users friends with their score, so basically a social leaderboard. With the adapter I get the uids from the friends and then make a query in the <code>onBindViewHolder</code> to get the avatar ids and usernames of each friend, and also his current score. </p... | I have a RecyclerView adapter which should display all the users friends with their score, so basically a social leaderboard. With the adapter I get the uids from the friends and then make a query in the onBindViewHolder to get the avatar ids and usernames of each friend, and also his current score. This works all fine... | java|android|firebase|android-recyclerview|google-cloud-firestore | 0 | 2020-02-11T09:49:53.373Z | 2,020 | 2 | 9 | 1 | 823 | 1 | 1,418 | 113 | 5 | 2 | true | false | false | false | false | false | zero |
60,166,217 | Moshi Json annotation does not work with proguard | <p>I followed <a href="https://github.com/square/moshi" rel="nofollow noreferrer">https://github.com/square/moshi</a> to add gradle dependency on moshi and proguard rules, then I write code to verify.</p>
<pre><code>data class Car(
@Json(name = "low_speed") val lowSpeed: Int,
@Json(name = "high_speed") val hi... | I followed https://github.com/square/moshi to add gradle dependency on moshi and proguard rules, then I write code to verify. [CODE] [CODE] when I run it in debug mode, it displayed "10+20", which is expected, but when I run in release mode (which has proguard enabled), I saw "0+0". My proguard-rules.pro file: [CODE] m... | android|json|moshi | 4 | 2020-02-11T09:58:41.247Z | 2,020 | 2 | 9 | 1 | 3,207 | 2 | 446 | 49 | 3 | 4 | true | false | true | false | false | false | low |
60,166,339 | How to add ripple effect to Preference | <p>I have an PreferenceFragemnt and I want to have a costum ripple effect on the Preferences. So I started making a CostumPreference but I don't know how to set the background drawable. I found <a href="https://stackoverflow.com/questions/32123586/how-to-add-ripple-effect-to-preferences-in-android">this post</a>.But th... | I have an PreferenceFragemnt and I want to have a costum ripple effect on the Preferences. So I started making a CostumPreference but I don't know how to set the background drawable. I found this post .But this doesn't work for me. There's my CostumPreference: [CODE] Maybe someone has another idea. :) | android|android-preferences | 0 | 2020-02-11T10:05:08.880Z | 2,020 | 2 | 10 | 1 | 135 | 1 | 302 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
60,166,348 | Parent/Child checkboxes (2 levels of nesting) in Android (Kotlin) | <p>I want to make a static list of checkboxes (not radio buttons) that has 2 levels of nesting:</p>
<ul>
<li>Sync All
<ul>
<li>Config
<ul>
<li>Item1</li>
<li>Item2</li>
</ul></li>
<li>Other </li>
</ul></li>
</ul>
<p>I made it to work using switches but I had to create my own logic for handling parent/child. </p... | I want to make a static list of checkboxes (not radio buttons) that has 2 levels of nesting: Sync All Config Item1 Item2 Other I made it to work using switches but I had to create my own logic for handling parent/child. Then I encountered this: https://material.io/components/selection-controls/#checkboxes , where it st... | android|kotlin | 3 | 2020-02-11T10:05:22.903Z | 2,020 | 2 | 10 | 1 | 441 | 0 | 1,009 | 65 | 2 | 1 | true | true | false | false | false | false | low |
60,166,392 | Device owner app has no privilege in the secondary user | <p>I am a beginner in Android. I am trying to make an app that can switch the user between the primary and secondary without root. </p>
<p>I found <a href="https://developer.android.com/reference/kotlin/android/app/admin/DevicePolicyManager.html#switchuser" rel="nofollow noreferrer">DevicePolicyManager.switchUser</a> ... | I am a beginner in Android. I am trying to make an app that can switch the user between the primary and secondary without root. I found DevicePolicyManager.switchUser useful in my case. So I granted my app device owner privilege with adb. When the app is launched in the primary user, it switch to the secondary user wit... | android|device-policy-manager|android-multiple-users | 1 | 2020-02-11T10:07:57.577Z | 2,020 | 2 | 10 | 1 | 325 | 0 | 619 | 55 | 3 | 1 | true | true | false | false | false | false | low |
60,166,399 | Migrate method RxJava1 to RxJava2 | <p>I have inherited an app and I am trying to update the RxJava library.</p>
<p>I am having enough problems since I do not quite understand how it is programmed, I would like to know if someone can help me :)</p>
<p>Before publishing I searched enough on Google and here to find out how to migrate but I can't find a s... | I have inherited an app and I am trying to update the RxJava library. I am having enough problems since I do not quite understand how it is programmed, I would like to know if someone can help me :) Before publishing I searched enough on Google and here to find out how to migrate but I can't find a solution, since ever... | android|rx-java|rx-java2 | 0 | 2020-02-11T10:08:19.997Z | 2,020 | 2 | 10 | 1 | 89 | 1 | 528 | 33 | 3 | 2 | true | false | false | false | false | false | zero |
60,166,432 | Jacoco gradle 'exclude' not working in Android project with Kotlin | <p>I have an Android project using kotlin in Android studio and wanted to use Jacoco to report code test coverage. I am using Dagger and I would have liked to exclude those classes from the report. But using <code>excludes</code> does nothing and I get errors when I try to run the Jacoco task regarding files that shoul... | I have an Android project using kotlin in Android studio and wanted to use Jacoco to report code test coverage. I am using Dagger and I would have liked to exclude those classes from the report. But using excludes does nothing and I get errors when I try to run the Jacoco task regarding files that should have been excl... | android|android-studio|gradle|kotlin|jacoco | 0 | 2020-02-11T10:09:54.703Z | 2,020 | 2 | 10 | 1 | 2,003 | 1 | 634 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
60,166,518 | Get json object in android | <p>I have article view where each post of mine will show details (think of it as blog post) but i cannot parse the data so i get my app closed instead of details of my articles.</p>
<h1>code</h1>
<p><code>ArticlesAdapter.kt</code></p>
<pre><code>class ArticlesAdapter(val article : ArrayList<Article>) : Recycle... | I have article view where each post of mine will show details (think of it as blog post) but i cannot parse the data so i get my app closed instead of details of my articles. code ArticlesAdapter.kt [CODE] ArticlesDetail.tk (my activity) [CODE] Article.kt (my class) [CODE] then for views i have this 2 files: article_de... | android|kotlin | -1 | 2020-02-11T10:14:36.097Z | 2,020 | 2 | 10 | 1 | 353 | 2 | 944 | 26 | 2 | 7 | true | false | false | false | false | true | negative |
60,166,527 | Xamarin Forms Release version of Android not building when linking enabled | <p>I have a Xamarin Forms solution that builds successfully for all projects while targeting debug mode. </p>
<p>When I switch to target Release I can successfully build the iOS project but am unable to build the Android one. </p>
<p>I have been able to narrow this down to whether "linking" is enabled or disabled. Wh... | I have a Xamarin Forms solution that builds successfully for all projects while targeting debug mode. When I switch to target Release I can successfully build the iOS project but am unable to build the Android one. I have been able to narrow this down to whether "linking" is enabled or disabled. When linking is set to ... | xamarin.forms|xamarin.android|msbuild | 1 | 2020-02-11T10:14:55.487Z | 2,020 | 2 | 10 | 1 | 691 | 2 | 731 | 74 | 3 | 0 | false | false | false | false | false | false | low |
60,166,571 | How to resolved OnClick method click issue , it is not working | <p>I have defined an <code>onclick</code> function as <code>clickFunction</code>. I'm new at coding and Android Studio.</p>
<p>Why does below code not work?</p>
<pre><code>package com.example.learnerapp;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import andro... | I have defined an onclick function as clickFunction . I'm new at coding and Android Studio. Why does below code not work? [CODE] | java|android|android-layout|onclicklistener|android-button | -1 | 2020-02-11T10:16:51.847Z | 2,020 | 2 | 10 | 1 | 124 | 1 | 128 | 62 | 5 | 1 | true | false | false | false | false | true | negative |
60,166,591 | Why Android is blocking my OkHttp Request | <p>I tried to call my API with OkHttp But android does not want me to do it!
I read that i need to make my class extends AsyncTask but it does not work
maybe i just dont know how to make it async but here is the code before i tried to make it async
can you help me?</p>
<p>here is my OkHttpHelper class
package com.... | I tried to call my API with OkHttp But android does not want me to do it! I read that i need to make my class extends AsyncTask but it does not work maybe i just dont know how to make it async but here is the code before i tried to make it async can you help me? here is my OkHttpHelper class package com.example.mygosty... | android|kotlin|okhttp | 0 | 2020-02-11T10:18:01.577Z | 2,020 | 2 | 10 | 1 | 1,647 | 2 | 415 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
60,166,596 | How to obfuscate cordova plugin java code | <p>I have been working on ionic 3 mobile applications. I obfuscate typescript codes using <strong>ionic-voricles-obfuscate</strong> plugin (<a href="https://www.npmjs.com/package/ionic-voricles-obfuscate" rel="nofollow noreferrer">https://www.npmjs.com/package/ionic-voricles-obfuscate</a>)</p>
<p>While reverse-enginee... | I have been working on ionic 3 mobile applications. I obfuscate typescript codes using ionic-voricles-obfuscate plugin ( https://www.npmjs.com/package/ionic-voricles-obfuscate ) While reverse-engineering the APK using Apktool , Android library classes in Cordova plugins are not obfuscated. The Application security team... | ionic-framework|proguard|reverse-engineering|cordova-plugin-proguard|android-obfuscation | -1 | 2020-02-11T10:18:35.770Z | 2,020 | 2 | 10 | 1 | 957 | 1 | 794 | 41 | 5 | 0 | false | false | false | false | false | true | negative |
60,166,710 | Why two TextView's from xml doesn't "saves" the same margin | <p>I have a xml file, with 4 TextView's. When inflating the xml. I'm inflating the xml from different fragments, in some of the fragments i'm making <strong>TextView2</strong> visibility to <em>GONE</em>. The issue is : in fragments that i'm setting <em>TextView2</em> to <em>GONE</em>, the space between <strong>TextVie... | I have a xml file, with 4 TextView's. When inflating the xml. I'm inflating the xml from different fragments, in some of the fragments i'm making TextView2 visibility to GONE . The issue is : in fragments that i'm setting TextView2 to GONE , the space between TextView3 and TextView4 is smaller than the gap between thes... | android|android-xml|android-constraintlayout | -1 | 2020-02-11T10:24:26.740Z | 2,020 | 2 | 10 | 1 | 50 | 1 | 532 | 59 | 3 | 1 | true | false | false | false | false | true | negative |
60,166,742 | How to enable GyroSensors for Exoplayer 360 videos | <p>I am developing a custom player based on Exoplayer for playing VR videos. I was able to create a Simplified version using <code>SimpleExoPlayer</code> however, even though I move my device, the VR player doesn't rotate as it should. </p>
<p>I then went to try out the Exoplayer demo and it completely worked. However... | I am developing a custom player based on Exoplayer for playing VR videos. I was able to create a Simplified version using SimpleExoPlayer however, even though I move my device, the VR player doesn't rotate as it should. I then went to try out the Exoplayer demo and it completely worked. However, I was unable to modify ... | android|kotlin|video|exoplayer | 0 | 2020-02-11T10:26:04.750Z | 2,020 | 2 | 10 | 1 | 696 | 1 | 601 | 50 | 4 | 2 | true | false | false | false | false | false | zero |
60,166,785 | Open activity after click in notification in alarmmanager and broadcast Kotlin | <p>I set on my application the notification every 7 hours in this way: </p>
<pre><code> alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
val intent = Intent(this, AlarmBroadcastReceiver::class.java)
pendingIntent = PendingIntent.getBroadcast(this, REQUEST_CODE, intent, PendingInt... | I set on my application the notification every 7 hours in this way: [CODE] with this class AlarmBroadcastReceiver : [CODE] The notifications working well, I enter in the application, set the alarm and after 7 hours arrive the notification and so on. I wish that when arrive the notification i can click on it and open th... | android|kotlin|push-notification|notifications|alarmmanager | 1 | 2020-02-11T10:28:03.813Z | 2,020 | 2 | 10 | 1 | 1,518 | 2 | 567 | 78 | 5 | 3 | true | false | false | false | false | false | low |
60,166,800 | Couchbase Lite pull replication fails with error in a sample Couchbase Mobile End to End testing project | <p>I am getting started with Couchbase Mobile. The feature that I am most interested (for now) is <code>PULL</code> replication (keep data on mobile in sync with backend database). </p>
<p>I followed the steps described in <a href="https://blog.couchbase.com/using-docker-with-couchbase-mobile/" rel="noreferrer">Using ... | I am getting started with Couchbase Mobile. The feature that I am most interested (for now) is PULL replication (keep data on mobile in sync with backend database). I followed the steps described in Using Docker to develop with Couchbase Mobile and have got the Couchbase server (enterprise-6.5.0) and sync gateway (2.7.... | android|couchbase|couchbase-lite|couchbase-sync-gateway | 8 | 2020-02-11T10:28:40.697Z | 2,020 | 2 | 10 | 1 | 495 | 1 | 1,229 | 104 | 4 | 3 | true | false | false | false | false | false | medium |
60,166,943 | navigation app with a different route finding algorithm | <p>I wish to make an android app that leverages <a href="https://wiki.openstreetmap.org/wiki/Android" rel="nofollow noreferrer">OSM</a> services and runs an algorithm of my choice to find the route, say <em>A*</em> or <em>some heuristic on Dijkstra</em>.</p>
<p>The <a href="https://wiki.openstreetmap.org/wiki/Routing"... | I wish to make an android app that leverages OSM services and runs an algorithm of my choice to find the route, say A* or some heuristic on Dijkstra . The Routing wiki page of OSM has some good pointers but it does not give any insight about how to go about implementing your own algorithm in the app. | android|navigation|openstreetmap|osmdroid | 0 | 2020-02-11T10:37:03.397Z | 2,020 | 2 | 10 | 1 | 212 | 1 | 301 | 55 | 4 | 0 | false | false | false | false | false | false | zero |
60,166,965 | ADB device list empty using WSL2 | <p>I'm trying to debug / connect up a device for development using WSL2 (Ubuntu). I've followed steps on this post <a href="https://stackoverflow.com/a/58229368/21061">https://stackoverflow.com/a/58229368/21061</a> which sets up ADB on both Windows and Linux using the same ADB version.</p>
<p>Once I've done that howev... | I'm trying to debug / connect up a device for development using WSL2 (Ubuntu). I've followed steps on this post https://stackoverflow.com/a/58229368/21061 which sets up ADB on both Windows and Linux using the same ADB version. Once I've done that however, I get an empty list of devices in the Ubuntu terminal. I've trie... | android|windows|ubuntu|windows-subsystem-for-linux | 22 | 2020-02-11T10:38:07.177Z | 2,020 | 2 | 10 | 1 | 25,094 | 5 | 499 | 32 | 4 | 0 | false | false | true | true | true | false | high |
60,167,003 | Android/Java : Problem with sending param and receiving JSON response with RetroFit in POST | <p>I would like to send a param in <strong>POST</strong> by using <strong>RetroFit</strong>, but impossible to get a solution.</p>
<p>I just want to pass an URL, with params with a key and a value, and get JSON answer of type </p>
<pre><code>{"result":[{"id":196,"CREATION_DATE":"2020-01-22T14:33:49.000Z"}]}
</code... | I would like to send a param in POST by using RetroFit , but impossible to get a solution. I just want to pass an URL, with params with a key and a value, and get JSON answer of type [CODE] Here is my code Retrofit: [CODE] My main code: [CODE] I have this error message : java.lang.IllegalArgumentException: Unexpected c... | java|android|json|retrofit|retrofit2 | 1 | 2020-02-11T10:39:55.717Z | 2,020 | 2 | 10 | 1 | 214 | 1 | 530 | 91 | 5 | 3 | true | false | false | false | false | false | low |
60,167,147 | Automatically returns to the previous activity screen for no reason | <p>I have an activity called <code>LoanActivity</code>. I go to this activity from MapsActivity. However, after a few seconds on the <code>LoanActivity</code>, it bounces back to <code>MapsActivity</code> without me doing anything. I need to fix it but I am not sure why it is happening. </p>
<p>I am trying to update t... | I have an activity called LoanActivity . I go to this activity from MapsActivity. However, after a few seconds on the LoanActivity , it bounces back to MapsActivity without me doing anything. I need to fix it but I am not sure why it is happening. I am trying to update the database for: Locker object to make it unavail... | android|kotlin|firebase-realtime-database | 0 | 2020-02-11T10:47:33.790Z | 2,020 | 2 | 10 | 1 | 91 | 2 | 2,373 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
60,167,261 | how can I record Gboard typing in other apps from a service | <p>What I want to do is to make an Android app with the same functionality callable by typing special words into the Google keyboard at any moment in which it is open (even if it is used into another app).</p>
<p>The easiest solution to achieve this is by making my own keyboard and let the user set it as default but I... | What I want to do is to make an Android app with the same functionality callable by typing special words into the Google keyboard at any moment in which it is open (even if it is used into another app). The easiest solution to achieve this is by making my own keyboard and let the user set it as default but I would pref... | android|android-service|gboard | 0 | 2020-02-11T10:54:43.410Z | 2,020 | 2 | 10 | 1 | 62 | 0 | 575 | 59 | 3 | 0 | false | true | false | false | false | false | zero |
60,167,309 | Flutter sms_autofill plugin is conflicting with razorpay_flutter | <p>I'm trying to use the following two Flutter plugin in my flutter project.</p>
<p><a href="https://pub.dev/packages/razorpay_flutter" rel="nofollow noreferrer">razorpay_flutter 1.1.2</a> </p>
<p><a href="https://pub.dev/packages/sms_autofill/" rel="nofollow noreferrer">sms_autofill 1.2.0</a></p>
<p>My Flutter code... | I'm trying to use the following two Flutter plugin in my flutter project. razorpay_flutter 1.1.2 sms_autofill 1.2.0 My Flutter code - [CODE] I'm trying to use only requestPhoneHint method through platform-channel to ask phone number from user. But alone sms_autofill plugin is working fine in this case but when I added ... | android|android-studio|flutter|flutter-dependencies|razorpay | 0 | 2020-02-11T10:56:55.943Z | 2,020 | 2 | 10 | 1 | 143 | 1 | 815 | 64 | 5 | 1 | true | false | false | false | false | false | zero |
60,167,373 | Flutter Hot Reload and Hot Restart not working | <p>I am trying to work on a project that I just started and while editing the app I realized that <strong>neither hot reload nor hot restart are working</strong> even though I have changed the design multiple times. The only time that I would see a change in the screen is when I <strong>uninstall the app and run again<... | I am trying to work on a project that I just started and while editing the app I realized that neither hot reload nor hot restart are working even though I have changed the design multiple times. The only time that I would see a change in the screen is when I uninstall the app and run again , I am testing the app on an... | android|android-studio|flutter|dart | 11 | 2020-02-11T11:00:53.773Z | 2,020 | 2 | 11 | 1 | 4,686 | 2 | 653 | 46 | 4 | 1 | true | false | true | false | true | false | medium |
60,167,374 | How can we send String data to a bluetooth device when App is in foreground? | <p>I have an app which runs in foreground waiting for certain SMS and my broadcast receiver kicks in to send a notification to the user. I would like to send this string data to an external Arduino device through bluetooth. How can i implement this in my foreground service ?</p> | I have an app which runs in foreground waiting for certain SMS and my broadcast receiver kicks in to send a notification to the user. I would like to send this string data to an external Arduino device through bluetooth. How can i implement this in my foreground service ? | android|android-bluetooth | 0 | 2020-02-11T11:00:57.583Z | 2,020 | 2 | 11 | 1 | 49 | 1 | 272 | 76 | 2 | 0 | false | false | false | false | false | false | zero |
60,167,410 | No Data in Recycler View in Fragment | <p>I am building an Android Application which have Tab Layout in which there are Fragments and in Fragment I am displaying some value.
I have just only added hardcoded values to test the layout, but even these are not visible in the fragment.</p>
<p>Here is the code for ViewPagerAdapter:</p>
<pre><code>public class Fav... | I am building an Android Application which have Tab Layout in which there are Fragments and in Fragment I am displaying some value. I have just only added hardcoded values to test the layout, but even these are not visible in the fragment. Here is the code for ViewPagerAdapter: [CODE] I have tried the answers available... | android|android-fragments|android-recyclerview|android-tablayout | 1 | 2020-02-11T11:02:46.020Z | 2,020 | 2 | 11 | 1 | 310 | 4 | 679 | 36 | 4 | 3 | true | false | false | false | false | false | low |
60,167,449 | Metro bundler errors when using module-resolver | <p>I've created a project using expo typescript template. Running on iOS and Android. No web. </p>
<p>I then set up path alias in <code>tsconfig.json</code> as follows: </p>
<pre><code>"paths": {
"@models/*": ["./src/models/*"],
"@navigation/*": ["./src/navigation/*"],
"@services/*": ["./src/services/*"],
"@c... | I've created a project using expo typescript template. Running on iOS and Android. No web. I then set up path alias in tsconfig.json as follows: [CODE] Correspondingly, I configured babel.config.js as follows: [CODE] The above configuration works. App is bundled and runs fine. However the following non-critical errors ... | android|ios|typescript|react-native|expo | 1 | 2020-02-11T11:05:12Z | -1 | -1 | -1 | -1 | 1,370 | 1 | 440 | 47 | 5 | 3 | true | false | false | false | false | false | low |
60,167,460 | On emulator and device StatusBar is treated differently | <p>I made simple tab navigation with content inside. (tested even without navigation just with button in app.compnent.tns.html) and on Android emulator button is hidden under StatusBar however on actual device it is not. I am sure i do not have any global styles applied. Can somebody advice why and what should I do to ... | I made simple tab navigation with content inside. (tested even without navigation just with button in app.compnent.tns.html) and on Android emulator button is hidden under StatusBar however on actual device it is not. I am sure i do not have any global styles applied. Can somebody advice why and what should I do to mak... | android|angular|mobile|nativescript|statusbar | 0 | 2020-02-11T11:05:59.563Z | 2,020 | 2 | 11 | 1 | 52 | 2 | 342 | 55 | 5 | 0 | false | false | false | false | false | false | zero |
60,167,490 | Is there a way to open Wifi activity in android and get a result for successful connection in android | <p>So here is my scenario ,
I want the user to click a button which takes him to the wifi networks screen using </p>
<pre><code>startActivityForResult(Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS),RESULT_CODE);
</code></pre>
<p>The user then selects a wifi network ,connects to it and the wifi setting act... | So here is my scenario , I want the user to click a button which takes him to the wifi networks screen using [CODE] The user then selects a wifi network ,connects to it and the wifi setting activity closes and the user lands back into my application. How do I achieve this? | java|android|kotlin|android-settings | 2 | 2020-02-11T11:07:39.690Z | 2,020 | 2 | 11 | 1 | 3,271 | 2 | 273 | 101 | 4 | 1 | true | false | true | false | false | false | low |
60,167,577 | Usage of List instead of ToMany in ObjectBox | <p>I've read in official documentation of OB that I can use List instead of ToMany class. <a href="https://docs.objectbox.io/relations#to-many-relations" rel="nofollow noreferrer">https://docs.objectbox.io/relations#to-many-relations</a>. But I didn't get it. What exactly is different for me in using of list instead of... | I've read in official documentation of OB that I can use List instead of ToMany class. https://docs.objectbox.io/relations#to-many-relations . But I didn't get it. What exactly is different for me in using of list instead of ToMany? Can I call some new useful functions or it is only internal advantage to use ToMany(fas... | android|objectbox | 0 | 2020-02-11T11:13:22.043Z | 2,020 | 2 | 11 | 1 | 117 | 1 | 361 | 44 | 2 | 0 | false | false | false | false | false | false | zero |
60,167,645 | Cannot convert java string to JSON Array in Android | <p>Below is the query which is fetching the data from the MySql Database but the issue is that in browser it successfully outputs the data but in Android app it gives the error which is below</p>
<pre><code>Java.Long.String Cannot Convert to JsonArray
if($stem=$con->prepare("select question from MCQs where c_id=$... | Below is the query which is fetching the data from the MySql Database but the issue is that in browser it successfully outputs the data but in Android app it gives the error which is below [CODE] Below is the Android Side Java Code for the JSON [CODE] | java|php|android|arrays|json | 0 | 2020-02-11T11:17:44.513Z | 2,020 | 2 | 11 | 1 | 48 | 1 | 251 | 51 | 5 | 2 | true | false | false | false | false | false | zero |
60,167,670 | How can I display custom view same as when long pressed on search icon on below image? | <p><img src="https://i.stack.imgur.com/b96fK.jpg" alt="This is image">
How can I dislay custom view same as when long pressed on search icon on below image?</p>
<p><img src="https://i.stack.imgur.com/I5ap8.png" alt="my code">
<img src="https://i.stack.imgur.com/CEQpU.png" alt="">
<img src="https://i.stack.imgur.com/St... | How can I dislay custom view same as when long pressed on search icon on below image? | java|android|tooltip | 1 | 2020-02-11T11:19:33.187Z | 2,020 | 2 | 11 | 1 | 116 | 2 | 85 | 86 | 3 | 0 | false | false | false | false | false | false | low |
60,167,703 | ldandroid Error (run ranlib) in Embarcadero | <p>I cannot build an application in release mode (C++ Builder 10.2 Tokyo) due to errors with ldandroid. If you know what should I do in such a situation, please let me know.</p>
<p>Command that is generated in IDE:</p>
<pre><code>C:\Users\Public\Documents\Embarcadero\Studio\17.0\PlatformSDKs\android-ndk-r9c\toolchain... | I cannot build an application in release mode (C++ Builder 10.2 Tokyo) due to errors with ldandroid. If you know what should I do in such a situation, please let me know. Command that is generated in IDE: [CODE] I tried running this command in command line, checked SDK/NDK paths in Project->Options and they seem to be ... | android|c++|c++builder | 0 | 2020-02-11T11:21:38.917Z | 2,020 | 2 | 11 | 1 | 126 | 0 | 431 | 43 | 3 | 2 | true | true | false | false | false | false | zero |
60,167,714 | Install google repository in Android Studio | <p>I'm following an online tutorial where it is asked to install Google repository by:</p>
<ol>
<li>Going to SDK manager > SDK tools > expand Support Repository (after Google Services is installed) > install Google Repository </li>
</ol>
<p>I installed Google Services in my SDK tools, but I cannot even see the Suppor... | I'm following an online tutorial where it is asked to install Google repository by: Going to SDK manager > SDK tools > expand Support Repository (after Google Services is installed) > install Google Repository I installed Google Services in my SDK tools, but I cannot even see the Support Repository in my SDK tools. Wha... | android|android-studio | 1 | 2020-02-11T11:22:34.430Z | 2,020 | 2 | 11 | 1 | 2,227 | 0 | 343 | 43 | 2 | 0 | false | true | false | false | false | false | low |
60,167,806 | Android Management API for G Suite | <p>We have a G Suite account, and I would like to manage some of our company owned tablets as kiosk displays using the <a href="https://developers.google.com/android/management" rel="noreferrer">Android Management API</a>. However, it seems to require an arbitrary "personal" Gmail account, instead of allowing a G Suite... | We have a G Suite account, and I would like to manage some of our company owned tablets as kiosk displays using the Android Management API . However, it seems to require an arbitrary "personal" Gmail account, instead of allowing a G Suite user to use it. To provision a device , you need to create a policy . A policy ne... | android|google-workspace|android-management-api|android-for-work | 6 | 2020-02-11T11:27:06.890Z | 2,020 | 2 | 11 | 1 | 632 | 3 | 1,423 | 34 | 4 | 1 | true | false | false | false | false | false | medium |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.