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,994,131 | Retrieving the name of the active application in the foreground | <p>Is there a possibility to know the name of the application that is running at the moment and that my application that works in the background can it get it.</p>
<p>"I need to get name of working applications in real time"</p> | Is there a possibility to know the name of the application that is running at the moment and that my application that works in the background can it get it. "I need to get name of working applications in real time" | android|android-service | 0 | 2020-01-30T20:38:23.953Z | 2,020 | 1 | 20 | 3 | 36 | 0 | 214 | 63 | 2 | 0 | false | true | false | false | false | false | zero |
59,994,380 | Firebase with Cordova: which platform to choose | <p>I'm going to design my first mobile app for both Android and iOS using <strong>Cordova</strong>.
Also, I've decided to heavily rely on <strong>Firebase</strong> as a database and analytics core.</p>
<p>As you may know, Firebase suggests you create the project in one of three platforms: Android, iOS and Web.. and so... | I'm going to design my first mobile app for both Android and iOS using Cordova . Also, I've decided to heavily rely on Firebase as a database and analytics core. As you may know, Firebase suggests you create the project in one of three platforms: Android, iOS and Web.. and so, I don't know which to choose as I want to ... | android|ios|firebase|cordova|web | -1 | 2020-01-30T20:56:24.760Z | 2,020 | 1 | 20 | 3 | 50 | 2 | 651 | 47 | 5 | 0 | false | false | false | false | false | true | negative |
59,994,463 | I am having problems with my aplication in android | <p>I am developing an application in android, but i have a problem. When I click in the button suspend of android and click on the app again, my application always restarts and start in the launcher activity, but i wants that it does not restart, because i need to show the activiti that the user stays</p>
<p>Example <... | I am developing an application in android, but i have a problem. When I click in the button suspend of android and click on the app again, my application always restarts and start in the launcher activity, but i wants that it does not restart, because i need to show the activiti that the user stays Example I have Two a... | java|android|gradle|kotlin | 0 | 2020-01-30T21:01:58.980Z | 2,020 | 1 | 21 | 3 | 81 | 2 | 726 | 50 | 4 | 3 | true | false | false | false | false | false | zero |
59,994,615 | Secure way to implement social security number | <p>In my app I will need to collect the social security number of the user during registration, sort of like uber. This is strictly as a security measure. I understand that simply keeping the user's social security number as a child of a Firebase database is no way legal as I would have access to it at all times. Is th... | In my app I will need to collect the social security number of the user during registration, sort of like uber. This is strictly as a security measure. I understand that simply keeping the user's social security number as a child of a Firebase database is no way legal as I would have access to it at all times. Is there... | java|android|security | 4 | 2020-01-30T21:13:33.807Z | 2,020 | 1 | 21 | 3 | 1,091 | 2 | 663 | 46 | 3 | 0 | false | false | false | false | false | false | low |
59,994,630 | Using an Android Webview, how do I pass control of the MediaPlayer to the Activity | <p>I have an app where the activity loads a webview that has video playing on it. </p>
<p>My ultimate goal is to play media in the background from the webview, pretty much exactly as Chrome does it right now. </p>
<p>Here is a screenshot of chrome running this logic when the device is unlocked:</p>
<p><a href="https... | I have an app where the activity loads a webview that has video playing on it. My ultimate goal is to play media in the background from the webview, pretty much exactly as Chrome does it right now. Here is a screenshot of chrome running this logic when the device is unlocked: And here is a screenshot of the same video ... | android|android-webview|android-mediaplayer | 3 | 2020-01-30T21:15:00.310Z | 2,020 | 1 | 21 | 3 | 1,058 | 1 | 2,194 | 82 | 3 | 1 | true | false | false | false | false | false | low |
59,994,931 | How can I encrypt Cookies sqlite3 database stored in localstorage of my android app? | <p>I am using webview in order to open and navigate backend endpoints inside my android app. These endpoints are authenticated using username+password+mfa combination and on successful authentication webview stores the cookies inside /data/data/com.example.app/webview/Cookies database which is a sqlite3 database. These... | I am using webview in order to open and navigate backend endpoints inside my android app. These endpoints are authenticated using username+password+mfa combination and on successful authentication webview stores the cookies inside /data/data/com.example.app/webview/Cookies database which is a sqlite3 database. These co... | android|sqlite | 3 | 2020-01-30T21:42:35.067Z | 2,020 | 1 | 21 | 3 | 228 | 0 | 629 | 84 | 2 | 0 | false | true | false | false | false | false | low |
59,995,421 | Android checkbox without check mark on smartphone (emulator is working) | <p>I have some checkboxs that don't work correctly. Checkboxs result checked but there are no check marks. If click on checkbox twice, check mark appears.
On the emulator there are no problem, but on my Galaxy S7 (Oreo) there is this bug. Checkboxs are checked programmaticaly after loading data from db:</p>
<pre><code... | I have some checkboxs that don't work correctly. Checkboxs result checked but there are no check marks. If click on checkbox twice, check mark appears. On the emulator there are no problem, but on my Galaxy S7 (Oreo) there is this bug. Checkboxs are checked programmaticaly after loading data from db: [CODE] On xml: [CO... | android|checkbox|android-emulator | 0 | 2020-01-30T22:23:35.410Z | 2,020 | 1 | 22 | 3 | 88 | 0 | 357 | 71 | 3 | 2 | true | true | false | false | false | false | zero |
59,995,460 | SoftKeyboard hide views even if "adjustResize" or "adjustPan" has been set in the manifest | <p>I browse almost all the thread and tried so many solution, none of them works. I don't know why it doesn't react at all. I'm using fragments. These code represent the current state of the project, but I tried putting the whole layout inside a ScrollView, nothing has changed. What else can affect the layout? Is there... | I browse almost all the thread and tried so many solution, none of them works. I don't know why it doesn't react at all. I'm using fragments. These code represent the current state of the project, but I tried putting the whole layout inside a ScrollView, nothing has changed. What else can affect the layout? Is there a ... | android|android-layout|android-fragments|android-softkeyboard | 0 | 2020-01-30T22:28:12.590Z | 2,020 | 1 | 22 | 3 | 39 | 1 | 456 | 90 | 4 | 1 | true | false | false | false | false | false | zero |
59,995,474 | Button and Activity with Android Studio | <p>Hi I'm new to stack overflow and I have difficulty creating the code of a button that opens an activity on Android Studio, could someone help me?</p>
<pre><code>import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.... | Hi I'm new to stack overflow and I have difficulty creating the code of a button that opens an activity on Android Studio, could someone help me? [CODE] Where "Ristoranti" is Activity2, and b1 is the button in the activity_main.xml with this code: [CODE] Android Studio gives me these errors: " error: as of release 8, '... | java|android|android-studio|smartphone | 0 | 2020-01-30T22:29:50.827Z | 2,020 | 1 | 22 | 3 | 48 | 2 | 444 | 39 | 4 | 2 | true | false | false | false | false | false | zero |
59,995,500 | What does the elements.getBoundingBox output mean? (FirebaseVision, android) | <p>When using the getBoundingBox method on an element extracted with the Firebase-MLKit library it gives you an output that looks like this</p>
<p><code>Rect(0, 0 - 13, 33)</code></p>
<p>what does each individual number represent?</p>
<p>relevant code</p>
<pre><code>private void processTextRecognitionResults(Fireba... | When using the getBoundingBox method on an element extracted with the Firebase-MLKit library it gives you an output that looks like this Rect(0, 0 - 13, 33) what does each individual number represent? relevant code [CODE] Sorry if the question is not written well. Its my first time writing one Thank you for the help | android|firebase-mlkit | 0 | 2020-01-30T22:31:20.533Z | 2,020 | 1 | 22 | 3 | 152 | 1 | 317 | 76 | 2 | 1 | true | false | false | false | false | false | zero |
59,995,520 | daemon not running; starting now at tcp:5037 | <p>When I start the Android Studio, the following errors occur. I cannot create virtual device and cannot connect device via USB. </p>
<blockquote>
<p>* daemon not running; starting now at tcp:5037 adb: CreateProcessW failed: Access is denied. (5)
* failed to start daemon error: cannot connect to daemon 'C:\Users\... | When I start the Android Studio, the following errors occur. I cannot create virtual device and cannot connect device via USB. * daemon not running; starting now at tcp:5037 adb: CreateProcessW failed: Access is denied. (5) * failed to start daemon error: cannot connect to daemon 'C:\Users\Abdullah\AppData\Local\Androi... | android|android-studio|adb|daemon | 0 | 2020-01-30T22:32:37.660Z | 2,020 | 1 | 22 | 3 | 4,017 | 1 | 730 | 44 | 4 | 0 | false | false | true | false | false | false | zero |
59,995,669 | Xamarin Forms Using multiple lists in ViewModel | <p>I have a problem. I created a CollectionView with a ViewModel, in that ViewModel I have 2 different Lists. Now I know how to show data from 1 list, but now I want in the datatemplate a picker with the data of the second list. Here is the xaml code:</p>
<pre><code><CollectionView ItemsSource="{Binding imageList}"... | I have a problem. I created a CollectionView with a ViewModel, in that ViewModel I have 2 different Lists. Now I know how to show data from 1 list, but now I want in the datatemplate a picker with the data of the second list. Here is the xaml code: [CODE] So the Price does get shown from the imageList, but the Picker i... | c#|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 0 | 2020-01-30T22:47:38.450Z | 2,020 | 1 | 22 | 3 | 467 | 1 | 406 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
59,995,750 | How to Change the Text Title of Bottom Modal Sheet dynamically using list in flutter | <p>I have multiple containers arranged in a grid layout in a Flutter Application. When these container widgets are tapped, there is a bottom modal sheet that is triggered. The challenge is that these containers will have to re-use the same bottom modal sheet anytime they are pressed while display the title underneath t... | I have multiple containers arranged in a grid layout in a Flutter Application. When these container widgets are tapped, there is a bottom modal sheet that is triggered. The challenge is that these containers will have to re-use the same bottom modal sheet anytime they are pressed while display the title underneath the ... | android|user-interface|flutter|dart | 0 | 2020-01-30T22:58:16.330Z | 2,020 | 1 | 22 | 3 | 581 | 1 | 361 | 84 | 4 | 1 | true | false | false | false | false | false | zero |
59,995,761 | Custom Frame renderer for unique corner radius values in android [Xamarin.Forms] | <p>I want to create a custom renderer for my frame control in fact of having a control which each corner radius values are unique, I have tried to create a custom renderer for frame control in many ways but I haven't found a "solid" solution for it, my custom renderer is not working, I also have tried to use Xamarin.Fo... | I want to create a custom renderer for my frame control in fact of having a control which each corner radius values are unique, I have tried to create a custom renderer for frame control in many ways but I haven't found a "solid" solution for it, my custom renderer is not working, I also have tried to use Xamarin.Forms... | android|xamarin|xamarin.forms|xamarin.android|renderer | 1 | 2020-01-30T22:58:53.780Z | 2,020 | 1 | 22 | 3 | 2,600 | 1 | 757 | 80 | 5 | 2 | true | false | true | false | false | false | low |
59,995,778 | Is there a CalendarView equivalent in flutter? | <p>I'm building a flutter port of an app I made in standard Android code, and it heavily relies on a <code>CalendarView</code> to keep its ease of use. Is there a flutter Material widget similar to a <code>CalendarView</code> in Android?</p> | I'm building a flutter port of an app I made in standard Android code, and it heavily relies on a CalendarView to keep its ease of use. Is there a flutter Material widget similar to a CalendarView in Android? | android|flutter | 1 | 2020-01-30T23:00:20.553Z | 2,020 | 1 | 23 | 3 | 26 | 1 | 208 | 46 | 2 | 0 | false | false | false | false | false | false | low |
59,995,902 | Replace fragments in default Android Studio navigation drawer | <p>I am trying to replace home fragment with gallery fragment and vice versa in the default navigation drawer from Android Studio. This is the main class:</p>
<pre><code>package com.example.navdrawer;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.goo... | I am trying to replace home fragment with gallery fragment and vice versa in the default navigation drawer from Android Studio. This is the main class: [CODE] This is the home fragment class: [CODE] The gallery fragment is simillar with the home fragment: [CODE] And I've got this xml for the home fragment, which is sim... | java|android|replace|navigation|fragment | 1 | 2020-01-30T23:13:16.957Z | 2,020 | 1 | 23 | 3 | 2,565 | 2 | 407 | 61 | 5 | 4 | true | false | false | false | false | false | low |
59,995,970 | Using Custom Views with Jetpack Compose | <p>Let's suppose I'm using some library that's intended to provide some UI Widgets.
Let's say this library provides a Button Widget called <code>FancyButton</code>.</p>
<p>In the other hand, I have a new project created with Android Studio 4 that allows me to create a new project with an <code>Empty Compose Activity</... | Let's suppose I'm using some library that's intended to provide some UI Widgets. Let's say this library provides a Button Widget called FancyButton . In the other hand, I have a new project created with Android Studio 4 that allows me to create a new project with an Empty Compose Activity . The question is: How should ... | android|android-jetpack-compose | 6 | 2020-01-30T23:21:58.950Z | 2,020 | 1 | 23 | 3 | 6,659 | 4 | 777 | 39 | 2 | 1 | true | false | true | false | false | false | medium |
59,996,015 | Android POI Error when reading Microsoft Word document: Provider com.bea.xml.stream.EventFactory not found | <p>I am trying to use Apache POI in my Android application so that I can read MS Word files. I am integrating the POIA library which enables Apache POI usage on Android (<a href="https://github.com/SUPERCILEX/poi-android" rel="nofollow noreferrer">https://github.com/SUPERCILEX/poi-android</a>). However, when I run my c... | I am trying to use Apache POI in my Android application so that I can read MS Word files. I am integrating the POIA library which enables Apache POI usage on Android ( https://github.com/SUPERCILEX/poi-android ). However, when I run my code and read in a Word file, I receive the following error: org.apache.poi.javax.xm... | android|kotlin|apache-poi | 3 | 2020-01-30T23:26:51.883Z | 2,020 | 1 | 23 | 3 | 1,174 | 3 | 592 | 106 | 3 | 4 | true | false | false | false | false | false | low |
59,996,054 | Delete padding or Force fitting or Delete empty space from square Vector asset to Fit a Rectangular button? | <p>I'm trying to adjust the <a href="https://material.io/resources/icons/?icon=all_inclusive" rel="nofollow noreferrer">all_inclusive svg image</a> to my rectangular button. The shape itself is rectangular as well but the vector asset is square (24x24) with white spaces above and under the shape. These spaces force the... | I'm trying to adjust the all_inclusive svg image to my rectangular button. The shape itself is rectangular as well but the vector asset is square (24x24) with white spaces above and under the shape. These spaces force the shape itself to be very small. How to make the all inclusive svg rectangular by deleting that padd... | android|svg|imageview|padding|crop | 5 | 2020-01-30T23:32:58.277Z | 2,020 | 1 | 23 | 3 | 1,941 | 3 | 1,622 | 107 | 5 | 1 | true | false | false | false | false | false | low |
59,996,071 | Xamarin Forms Change Label from CollectionView in EventHandler | <p>I have a problem. I created a CollectionView with a Label as a counter on each row and a button. What I want is that when I push the button, the label value will go up by +1, depending on the row you click. I already created the button event like this:</p>
<pre><code>private void btnPlus_Clicked(object sender, Even... | I have a problem. I created a CollectionView with a Label as a counter on each row and a button. What I want is that when I push the button, the label value will go up by +1, depending on the row you click. I already created the button event like this: [CODE] And here is my xaml: [CODE] But txtCounter doesn't get recog... | c#|xamarin|xamarin.forms|xamarin.android|xamarin.ios | 1 | 2020-01-30T23:34:51.063Z | 2,020 | 1 | 23 | 3 | 1,282 | 2 | 350 | 62 | 5 | 2 | true | false | false | false | false | false | low |
59,996,168 | Android 10 L2CAP connection IOException timeout Wii Balance Board | <h2>Background</h2>
<p>A long time ago I was tasked with making a android app for the Wii Balance Board, after some screwing around I found that android no longer supported L2CAP. More <a href="https://stackoverflow.com/questions/51614736/how-can-i-instantiate-a-l2cap-socket-in-android">research</a> lead to understand ... | Background A long time ago I was tasked with making a android app for the Wii Balance Board, after some screwing around I found that android no longer supported L2CAP. More research lead to understand that it was being re-added in Android 10. With Android 10 out I've been trying to give it a crack now. Problem So my si... | android|bluetooth|android-10.0|l2cap|wii-balanceboard | 2 | 2020-01-30T23:47:31.463Z | 2,020 | 1 | 23 | 3 | 1,413 | 1 | 1,342 | 65 | 5 | 0 | false | false | false | false | false | false | low |
59,996,297 | java.lang.IllegalStateException: onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager | <p>Hi I am trying to implement native Ads in my Android App so I have <a href="https://github.com/googleads/googleads-mobile-android-examples/blob/master/java/admob/NativeAdvancedExample/app/src/main/java/com/google/example/gms/nativeadvancedexample/MainActivity.java" rel="nofollow noreferrer">this code</a> , you can c... | Hi I am trying to implement native Ads in my Android App so I have this code , you can check the source code in Github. It does sometimes fire this error in Logcat : [CODE] The error happens when this code is executed : [CODE] We are talking about this line of code [CODE] Hence my question : Can I test something like i... | java|android|android-fragments | 2 | 2020-01-31T00:06:04.093Z | 2,020 | 1 | 0 | 4 | 1,208 | 1 | 456 | 127 | 3 | 3 | true | false | false | false | false | false | low |
59,996,586 | How do I connect a database to an Android app? | <p>I am new to Android development and I am working on building an app. I am currently stuck on the log-in screen because there are no up to date tutorials that can walk me step by step into creating and linking a database. </p>
<p>I would like to have a database so that when the register button is pressed, the inform... | I am new to Android development and I am working on building an app. I am currently stuck on the log-in screen because there are no up to date tutorials that can walk me step by step into creating and linking a database. I would like to have a database so that when the register button is pressed, the information is sto... | android|android-database | -3 | 2020-01-31T00:50:47.853Z | 2,020 | 1 | 0 | 4 | 75 | 1 | 442 | 46 | 2 | 0 | false | false | false | false | false | true | negative |
59,996,630 | How can I get a list of languages which are enabled by the user in their Android device? | <p>How can I get a list of the languages which the user has added to their device? In the example below, the user has gone to device settings and added two languages. How can I programmatically get this list? </p>
<p><a href="https://i.stack.imgur.com/f6ySZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgu... | How can I get a list of the languages which the user has added to their device? In the example below, the user has gone to device settings and added two languages. How can I programmatically get this list? Thank you! | java|android | 1 | 2020-01-31T00:57:14.780Z | 2,020 | 1 | 0 | 4 | 1,638 | 5 | 216 | 88 | 2 | 0 | false | false | false | false | false | false | low |
59,996,658 | How to properly trigger SQLite database operations in AsyncTask based on user behavior in other Activities | <p>I have a separate class file that extends Asynctask (instead of an inner class) and I need it to perform different database operations depending on what the user does (clicks, swipes) in other Activities. Although my code works as desired, I don’t know if using static methods and static boolean flags is the generall... | I have a separate class file that extends Asynctask (instead of an inner class) and I need it to perform different database operations depending on what the user does (clicks, swipes) in other Activities. Although my code works as desired, I don’t know if using static methods and static boolean flags is the generally a... | android|sqlite|android-asynctask|static-methods|static-variables | 0 | 2020-01-31T01:02:08.427Z | 2,020 | 1 | 1 | 4 | 26 | 0 | 592 | 106 | 5 | 3 | true | true | false | false | false | false | zero |
59,997,055 | f# xamarin blank android project error on deploy: Can not resolve reference: FSharp.Core | <p>I am trying to setup a xamarin android project using f# with Visual Studio 2019, but I can't seem to get to the point where "Hello world!" would show on my device!</p>
<p>The template project build succeeds, and my device is successfully connected. However, attempting to deploy the project fails with <strong>error ... | I am trying to setup a xamarin android project using f# with Visual Studio 2019, but I can't seem to get to the point where "Hello world!" would show on my device! The template project build succeeds, and my device is successfully connected. However, attempting to deploy the project fails with error telling me the refe... | visual-studio|xamarin.android|f# | 2 | 2020-01-31T02:14:35.733Z | 2,020 | 1 | 2 | 4 | 171 | 1 | 1,408 | 88 | 3 | 2 | true | false | false | false | false | false | low |
59,997,153 | Align PageController to the left without resizing | <p>Hi is there a way to somewhat "force" align the PageController to the left? What I want is to have it <strong>aligned</strong> to the <strong>left</strong> like the Exlore Categories without actually resizing the card </p>
<p>other options is to make it start in the 2nd card but I don't know how to do this one but ... | Hi is there a way to somewhat "force" align the PageController to the left? What I want is to have it aligned to the left like the Exlore Categories without actually resizing the card other options is to make it start in the 2nd card but I don't know how to do this one but I've tried changing initialPage to 1 to no ava... | android|flutter|flutter-layout|flutter-dependencies | 0 | 2020-01-31T02:29:34.513Z | 2,020 | 1 | 2 | 4 | 63 | 1 | 486 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
59,997,194 | Changing the Slider Height | <p>I've tried a lot, but I can't change the height of AlertDialog when I use Slider. I saw here on the Forum the suggestion to use ConstrainedBox. Did n't work. Is there a better way to show the Slider? </p>
<pre><code>@override
Widget build(BuildContext context) {
return ConstrainedBox(
constraints: BoxCo... | I've tried a lot, but I can't change the height of AlertDialog when I use Slider. I saw here on the Forum the suggestion to use ConstrainedBox. Did n't work. Is there a better way to show the Slider? [CODE] I attached an image showing how AlertDialog looks. | flutter|slider|android-alertdialog | 0 | 2020-01-31T02:38:20.770Z | 2,020 | 1 | 2 | 4 | 455 | 2 | 257 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
59,997,254 | BottomNavigationView - How to disable selected icon highlight | <p>I have a bottomnavigation view that sets an icon depending on the state if it's checked or not.</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/icon_tree"
android:title="Tree... | I have a bottomnavigation view that sets an icon depending on the state if it's checked or not. [CODE] bottomnav_icon_home: [CODE] How ever bottomnavigation is automatically highlighting the icon when android:state_checked is true. How do I completely disable bottomnavigation's icon selection highlight? I've tried sett... | android|android-bottomnavigationview | 2 | 2020-01-31T02:48:24.320Z | 2,020 | 1 | 2 | 4 | 4,626 | 5 | 456 | 61 | 2 | 4 | true | false | true | false | false | false | low |
59,997,397 | How to use the Android Navigation component (Nav Graph) in a Drawer Layout (with navigation drawer Menu)? | <p>I have a navigation graph that uses this fragment as a home in the main activity XML.</p>
<pre><code> <fragment
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_b... | I have a navigation graph that uses this fragment as a home in the main activity XML. [CODE] I have a Drawer layout with a menu , I can't manage to make the navigation to work when I click on the navigation drawer button (it works from main fragment but not when I click on Drawer buttons), If I use the old way to progr... | java|android|android-fragments | 1 | 2020-01-31T03:12:32.497Z | 2,020 | 1 | 3 | 4 | 1,361 | 1 | 853 | 105 | 3 | 2 | true | false | false | false | false | false | low |
59,997,435 | cannot start a load on a not yet attached View or a Fragment where getActivity() returns null | <p>I have a top menu bar on the fragment, and if the menu is clicked, an <strong>activity.class</strong> will appear on the clas activity, bringing up the List data using the Recyclerview contained in the image element. If in <strong>Adapter.class</strong> I call the source image using Glide an error appears <em>"canno... | I have a top menu bar on the fragment, and if the menu is clicked, an activity.class will appear on the clas activity, bringing up the List data using the Recyclerview contained in the image element. If in Adapter.class I call the source image using Glide an error appears "cannot start a load on a not yet attached View... | android|android-fragments | 0 | 2020-01-31T03:19:26.230Z | 2,020 | 1 | 3 | 4 | 446 | 1 | 624 | 93 | 2 | 3 | true | false | false | false | false | false | zero |
59,997,527 | convert timestamp into current hour and minute in android | <p>how to convert sunrise and sunset unix timestrap to current hour and minute by openweathermap api in android studio? Thankyou </p>
<pre><code>"sys": {
"type": 1,
"id": 9383,
"country": "ID",
"sunrise": 1580424864,
"sunset": 1580469435
}
</code></pre> | how to convert sunrise and sunset unix timestrap to current hour and minute by openweathermap api in android studio? Thankyou [CODE] | android|api|time|openweathermap | 1 | 2020-01-31T03:33:12.227Z | 2,020 | 1 | 3 | 4 | 1,404 | 1 | 132 | 57 | 4 | 1 | true | false | false | false | false | false | low |
59,997,539 | How to keep old data if sqlite version is upgraded? | <p>How to keep old data if the database version is upgraded ?
Upgrade method I'm using is removing all the data. </p>
<pre><code> @Override
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) {
String sql = "DROP TABLE IF EXISTS " + table_Name + ";";
sqLiteDatabase.execSQL(sq... | How to keep old data if the database version is upgraded ? Upgrade method I'm using is removing all the data. [CODE] | java|android|database|sqlite | 0 | 2020-01-31T03:35:42.400Z | 2,020 | 1 | 3 | 4 | 57 | 0 | 116 | 51 | 4 | 1 | true | true | false | false | false | false | zero |
59,997,716 | Add icons to Listview using Arraylist | <p>I have successfully created a listview that contains all the options (text). However I would like to add unique icons next to each of the options. How can I go about doing this, with my excising code? </p>
<p>Here is what I am trying to achieve: </p>
<p><a href="https://i.stack.imgur.com/tvGX8.jpg" rel="nofollow n... | I have successfully created a listview that contains all the options (text). However I would like to add unique icons next to each of the options. How can I go about doing this, with my excising code? Here is what I am trying to achieve: Here is my code: AccountSettingsActivity.java [CODE] listview_row_adjustmnet.xml (... | java|android|xml|listview | -2 | 2020-01-31T04:07:32.970Z | 2,020 | 1 | 4 | 4 | 396 | 3 | 402 | 37 | 4 | 2 | true | false | false | false | false | true | negative |
59,997,971 | Problem getting method from MainActivity with context function in AlertDialog | <p>i have this code in my MainActivity() that use to count total records and read it.</p>
<pre><code>public void countRecords() {
int recordCount = new TableControllerStudent(this).count();
TextView textViewRecordCount = (TextView) findViewById(R.id.textViewRecordCount);
textViewRecordCount.setText(record... | i have this code in my MainActivity() that use to count total records and read it. [CODE] and in the Activity OnListenerCreateStudent it's doesn't work and getting error with this code. [CODE] Error log : [CODE] the problem is in the ((MainActivity)context).countRecords(); and ((MainActivity)context).readRecords(); i g... | java|android|database|oop | 0 | 2020-01-31T04:43:52.877Z | 2,020 | 1 | 4 | 4 | 195 | 3 | 419 | 77 | 4 | 3 | true | false | false | false | false | false | zero |
59,997,993 | Main Thread used when using coroutine IO Thread in Kotlin | <p>I'm trying to get data from server using Volley and HTTPURLConnection. Used coroutine IO Thread to prevent blocking Main thread, but screen stops when doing the job(which means main thread is blocked). </p>
<p>Weird thing is, it works perfectly when doing other jobs using Jsoup and HTTPURLConnection. Only differenc... | I'm trying to get data from server using Volley and HTTPURLConnection. Used coroutine IO Thread to prevent blocking Main thread, but screen stops when doing the job(which means main thread is blocked). Weird thing is, it works perfectly when doing other jobs using Jsoup and HTTPURLConnection. Only differences I can fin... | android|multithreading|kotlin|kotlin-coroutines | 0 | 2020-01-31T04:46:06.950Z | 2,020 | 1 | 4 | 4 | 647 | 1 | 559 | 57 | 4 | 2 | true | false | false | false | false | false | zero |
59,998,028 | How to Ignore view component(s) that I do not want to create bindings in Android view Binding library? | <p>I am exploring new <a href="https://developer.android.com/topic/libraries/view-binding" rel="noreferrer">Android View Binding library</a>.</p>
<p>In my layout XML file, some views that I don't want to include in my binding class.</p>
<p>Does there any attribute or mechanism exist that exclude views into generated Bi... | I am exploring new Android View Binding library . In my layout XML file, some views that I don't want to include in my binding class. Does there any attribute or mechanism exist that exclude views into generated Binding class? | android|android-layout|android-viewbinder|android-viewbinding | 13 | 2020-01-31T04:50:20.393Z | 2,020 | 1 | 4 | 4 | 4,283 | 1 | 226 | 102 | 4 | 0 | false | false | true | false | true | false | medium |
59,998,046 | How to create aab via air33? | <p>I want to create aab (bundle) using air 33 but it show following error.</p>
<p><code>Bundle tool failed:Error while parsing the flags: Syntax error: flags should start with -- (Video)</code></p>
<p>The command line that I used is:</p>
<p><code>adt -package -target aab -storetype pkcs12 -keystore cert.p12 myApp.aa... | I want to create aab (bundle) using air 33 but it show following error. Bundle tool failed:Error while parsing the flags: Syntax error: flags should start with -- (Video) The command line that I used is: adt -package -target aab -storetype pkcs12 -keystore cert.p12 myApp.aab myApp-app.xml myApp.swf assets Data I can cr... | android|actionscript-3|air|animate-cc | 0 | 2020-01-31T04:52:43.283Z | 2,020 | 1 | 4 | 4 | 238 | 0 | 432 | 28 | 4 | 0 | false | true | false | false | false | false | zero |
59,998,053 | Reading json data from php script to android app is working on android app but not on real device | <p>I am new in android i am using php web api to transfer data from app to mysql in xampp but getting json data works fine on emulator showing correct data but on real device it is not showing anything . Where is the issue??</p>
<pre><code>public class MainActivity extends AppCompatActivity {
public class DownloadTask... | I am new in android i am using php web api to transfer data from app to mysql in xampp but getting json data works fine on emulator showing correct data but on real device it is not showing anything . Where is the issue?? [CODE] | android | 0 | 2020-01-31T04:53:45.637Z | 2,020 | 1 | 4 | 4 | 32 | 0 | 228 | 97 | 1 | 1 | true | true | false | false | false | false | zero |
59,998,188 | RecyclerView with StaggeredGridLayoutManager : variable number of columns and vertically scrollable | <p>I want to show a list of strings, this list has to be vertically scrollable, and for each row a variable number of columns, this column with will depend on the string with. So it will be a grid vertically scrollable.
So Graphically I want to achieve this :
<a href="https://i.stack.imgur.com/LZELt.png" rel="nofollow... | I want to show a list of strings, this list has to be vertically scrollable, and for each row a variable number of columns, this column with will depend on the string with. So it will be a grid vertically scrollable. So Graphically I want to achieve this : What I'm getting as a result is a horizontally scrollable list,... | android|android-recyclerview|staggeredgridlayoutmanager | 2 | 2020-01-31T05:08:57.277Z | 2,020 | 1 | 5 | 4 | 1,152 | 1 | 1,048 | 99 | 3 | 4 | true | false | false | false | false | false | low |
59,998,203 | validate existing user's mobile number in firebase | <p>I have a firebase project which allows users to login only if they are already exists in identifier in authentication .
I already added few users using my web app with mobile numbers.
Now, in android I have used the <code>signInWithPhoneAuthCredential</code> method to get the users login.
But in this method, it a... | I have a firebase project which allows users to login only if they are already exists in identifier in authentication . I already added few users using my web app with mobile numbers. Now, in android I have used the signInWithPhoneAuthCredential method to get the users login. But in this method, it allows any users to ... | java|android|firebase|firebase-authentication | 0 | 2020-01-31T05:10:54.600Z | 2,020 | 1 | 5 | 4 | 69 | 2 | 444 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
59,998,301 | How to set gravity of WindowFeature supported Activity android | <pre><code>public class Test extends AppCompatActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
}
}
</code></pre>
<p>when start activity ,it act as dialog .Here problem is... | [CODE] when start activity ,it act as dialog .Here problem is the dialog window display at top , but I want it display in center. | android|dialog | -3 | 2020-01-31T05:20:42.690Z | 2,020 | 1 | 5 | 4 | 49 | 1 | 129 | 62 | 2 | 1 | true | false | false | false | false | true | negative |
59,998,513 | Studio build error: cannot find symbol method createDeviceProtectedStorageContext() | <p>Not able to build my app in Studio using the below line of code : </p>
<pre><code> Context deviceContext = context.createDeviceProtectedStorageContext();
</code></pre>
<p>Showing below error on build :</p>
<p><code>error: cannot find symbol method createDeviceProtectedStorageContext()</code></p>
<p>Using ... | Not able to build my app in Studio using the below line of code : [CODE] Showing below error on build : error: cannot find symbol method createDeviceProtectedStorageContext() Using sdkVersions: minSdkVersion 24 targetSdkVersion 29 Gradle file: [CODE] | android | 0 | 2020-01-31T05:47:31.207Z | 2,020 | 1 | 5 | 4 | 262 | 0 | 250 | 83 | 1 | 2 | true | true | false | false | false | false | zero |
59,998,552 | Android Kotlin Starting Activity From Utils Class Results In SavedInstanceState Being Null | <p>Just to clarify beforehand, I have searched extensively in SO for similar question to find an answer to my question.</p>
<p>I will reference the following (to name a few sources) :</p>
<ul>
<li><a href="https://stackoverflow.com/questions/49745488/how-to-start-a-new-activity-from-a-non-activity-class-in-android-ko... | Just to clarify beforehand, I have searched extensively in SO for similar question to find an answer to my question. I will reference the following (to name a few sources) : How to start a new activity from a non activity class in Android kotlin? Start a new Activity from non Activity class Basic Kotlin Tutorial I have... | android|kotlin|android-intent|android-activity | 0 | 2020-01-31T05:51:37.810Z | 2,020 | 1 | 5 | 4 | 476 | 1 | 915 | 90 | 4 | 2 | true | false | false | false | false | false | zero |
59,998,557 | Changing to dark mode in android isn't very smooth | <p>I am using the material components DayNight theme for my app. And I want to switch on/off the dark mode at runtime. I am using the following method to change the theme of the app:</p>
<pre><code>AppCompatDelegate.setDefaultNightMode();
</code></pre>
<p>The problem is that it recreates the activity which is not ver... | I am using the material components DayNight theme for my app. And I want to switch on/off the dark mode at runtime. I am using the following method to change the theme of the app: [CODE] The problem is that it recreates the activity which is not very smooth. It shows a black screen before changing the app theme. Is the... | android | 1 | 2020-01-31T05:52:08.003Z | 2,020 | 1 | 5 | 4 | 810 | 2 | 357 | 50 | 1 | 1 | true | false | false | false | false | false | low |
59,998,639 | Unable to start activity : java.util.ConcurrentModificationException in Android 9 | <p>After upgrading one of our apps to target Android SDK 29 we are detecting in firebase crashlytics that around 0,5% of our users (we have +100k daily users) are having randomly this Crash, no matter the activity. All our activities extend AppCompatActivity, and the crash happens at "super.onCreate" so it's all relate... | After upgrading one of our apps to target Android SDK 29 we are detecting in firebase crashlytics that around 0,5% of our users (we have +100k daily users) are having randomly this Crash, no matter the activity. All our activities extend AppCompatActivity, and the crash happens at "super.onCreate" so it's all related t... | android|kotlin|android-activity | 4 | 2020-01-31T06:00:41.827Z | 2,020 | 1 | 6 | 4 | 553 | 0 | 583 | 81 | 3 | 1 | true | true | false | false | false | false | low |
59,998,653 | How to pass a C String Emoji to Java via JNI | <p>I am trying to pass a database value to Java via JNI :</p>
<blockquote>
<p>__android_log_print(ANDROID_LOG_ERROR, "MyApp", "c_string >>> %s", cStringValue);</p>
<blockquote>
<p><strong>prints :</strong> c_string >>> </p>
</blockquote>
</blockquote>
<pre><code>env->SetObjectF... | I am trying to pass a database value to Java via JNI : __android_log_print(ANDROID_LOG_ERROR, "MyApp", "c_string >>> %s", cStringValue); prints : c_string >>> [CODE] However, this fails without errors. How can you go about passing special characters (such as emojis) to Java in JNI? Thank you all in ... | java|android|c++|java-native-interface|emoji | 1 | 2020-01-31T06:02:03.373Z | 2,020 | 1 | 6 | 4 | 880 | 2 | 328 | 44 | 5 | 1 | true | false | false | false | false | false | low |
59,998,681 | get the checked value in another activity.The checkboxes are in alert dialog box | <p>I have buttons in an activity.On clicking any button an alert dialog opens up with the check boxes .The user clicks on any checkbox and the value is stored in array list.Now I want to receive the check boxes
value in another activity and print the value of the checked values saying these are the checked values.How ... | I have buttons in an activity.On clicking any button an alert dialog opens up with the check boxes .The user clicks on any checkbox and the value is stored in array list.Now I want to receive the check boxes value in another activity and print the value of the checked values saying these are the checked values.How can ... | android|android-fragments|arraylist|checkbox | -2 | 2020-01-31T06:05:00.497Z | 2,020 | 1 | 6 | 4 | 47 | 1 | 336 | 80 | 4 | 0 | false | false | false | false | false | true | negative |
59,998,700 | How can I clear all cookies while executing retrofit API call? | <p>I want to clear all cookies while executing specific API call in Android and I have tried by using CookieManager class but unable to remove all cookies which are passing through API call is there any way available to do so or is it possible to clear cookies in retrofit</p>
<p>Here is my code which I am using to remo... | I want to clear all cookies while executing specific API call in Android and I have tried by using CookieManager class but unable to remove all cookies which are passing through API call is there any way available to do so or is it possible to clear cookies in retrofit Here is my code which I am using to remove cookies... | android|kotlin|retrofit|retrofit2 | 0 | 2020-01-31T06:07:13.520Z | 2,020 | 1 | 6 | 4 | 528 | 1 | 327 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
59,998,741 | How to synchronize coroutine? | <p>I am trying to make sure these two methods are synchronized. What I noticed is that Coroutines are harder to synchronize than Threads. How can I guarantee that if I call <code>start()</code> then <code>stop()</code> that my code will actually be stopped at the end? </p>
<pre><code>object Test {
private val cor... | I am trying to make sure these two methods are synchronized. What I noticed is that Coroutines are harder to synchronize than Threads. How can I guarantee that if I call start() then stop() that my code will actually be stopped at the end? [CODE] My concern is I call start() then stop() but actually stop executes first... | android|kotlin|kotlin-coroutines | 15 | 2020-01-31T06:11:14.357Z | 2,020 | 1 | 6 | 4 | 15,217 | 4 | 371 | 29 | 3 | 1 | true | false | true | true | true | false | medium |
59,998,840 | How to use addOverrideApn() method in Android API level 28? | <p>I'm trying to create a mobile application to manage <strong>APN(Access Point Name)</strong>. In first I need to add an <strong>APN</strong> into the mobile application. I followed this documentation.</p>
<p><a href="https://developer.android.com/reference/android/telephony/data/ApnSetting.Builder" rel="nofollow nor... | I'm trying to create a mobile application to manage APN(Access Point Name) . In first I need to add an APN into the mobile application. I followed this documentation. https://developer.android.com/reference/android/telephony/data/ApnSetting.Builder I did as follows. [CODE] But it gets the following error. [CODE] The er... | android|apn | 0 | 2020-01-31T06:20:51.227Z | 2,020 | 1 | 6 | 4 | 730 | 1 | 487 | 59 | 2 | 3 | true | false | false | false | false | false | zero |
59,998,893 | Ionic App - Plugin not found after update to Cordova Android 8.1.0 | <p>I was working on my ionic 4 app. Now few days back Google Play Console has mentioned to set TargetSdkVersion to 28. So I just did the same.
I upgraded my cordova android version from 7.1.4 to 8.1.0.</p>
<p>Now when I've compiled the app, it shows whitescreen after splash. Upon checking in the Remote Device Console,... | I was working on my ionic 4 app. Now few days back Google Play Console has mentioned to set TargetSdkVersion to 28. So I just did the same. I upgraded my cordova android version from 7.1.4 to 8.1.0. Now when I've compiled the app, it shows whitescreen after splash. Upon checking in the Remote Device Console, I got this... | android|cordova|ionic-framework|cordova-plugins | 0 | 2020-01-31T06:25:20.160Z | 2,020 | 1 | 6 | 4 | 901 | 1 | 651 | 66 | 4 | 1 | true | false | false | false | false | false | zero |
59,998,926 | Can we have a 2 different textStyle inside styles.xml? | <p>I wanted my title to have italic and bold at the same time. How can I achieve this using styles.xml? or is it possible to achieve this within styles.xml only?</p> | I wanted my title to have italic and bold at the same time. How can I achieve this using styles.xml? or is it possible to achieve this within styles.xml only? | android|xml | -2 | 2020-01-31T06:28:15.810Z | 2,020 | 1 | 6 | 4 | 40 | 2 | 158 | 54 | 2 | 0 | false | false | false | false | false | true | negative |
59,998,934 | How to create multiple fingerprint scan and register in db? | <p>I want to create an app to register a new fingerprint and add more fingerprint and authenticate in same app, but i am able to authenticate only one with the hardware supported fingerprint only.</p>
<p>So my requirement is:</p>
<p>Register fingerprint as an image scanner through app and send them to db or server.
A... | I want to create an app to register a new fingerprint and add more fingerprint and authenticate in same app, but i am able to authenticate only one with the hardware supported fingerprint only. So my requirement is: Register fingerprint as an image scanner through app and send them to db or server. Authenticate scanned... | android|android-fragments|fingerprint|android-fingerprint-api | -1 | 2020-01-31T06:28:38.417Z | 2,020 | 1 | 6 | 4 | 122 | 1 | 394 | 59 | 4 | 0 | false | false | false | false | false | true | negative |
59,998,952 | Using Stripe payment methods with custom interface in Android | <p>I am working on integrating Stripe in our app. I want to add and accept cards through either a <code>DialogFragment</code> or an <code>Activity</code> with a custom layout instead of the <a href="https://stripe.com/docs/mobile/android/basic" rel="nofollow noreferrer">Stripe-provided activities</a>. I know I can use ... | I am working on integrating Stripe in our app. I want to add and accept cards through either a DialogFragment or an Activity with a custom layout instead of the Stripe-provided activities . I know I can use the provided views like CardInputWidget individually to build a UI, and I am successful in creating a DialogFragm... | android|android-activity|stripe-payments|payment-gateway|android-dialogfragment | 0 | 2020-01-31T06:30:13.630Z | 2,020 | 1 | 6 | 4 | 1,561 | 1 | 725 | 61 | 5 | 0 | false | false | false | false | false | false | zero |
59,998,963 | OnCreate fires twice from onNewIntent | <p>I am using deep link, launchMode="singleTask". If there is an instance of my activity everything works fine: only onNewIntent is called. But if there is no instance, firstly onCreate is called, then onNewIntent and again onCreate. That is why, the screen flickers. What is the problem? I removed all code, and only lo... | I am using deep link, launchMode="singleTask". If there is an instance of my activity everything works fine: only onNewIntent is called. But if there is no instance, firstly onCreate is called, then onNewIntent and again onCreate. That is why, the screen flickers. What is the problem? I removed all code, and only logge... | android|android-activity|android-lifecycle|android-deep-link | 1 | 2020-01-31T06:31:07.500Z | 2,020 | 1 | 6 | 4 | 191 | 0 | 550 | 37 | 4 | 1 | true | true | false | false | false | false | low |
59,998,984 | WebView Upload Photo doesn't work - AndroidX | <p>I create webview for uploading photos, when I try it in chrome it working properly, when I use webview it doesn't work any solution?</p>
<pre><code>webView = findViewById(R.id.webView);
webView.setWebViewClient(new WebViewClient());
webView.loadUrl(url);
webView.getSettings().setJavaScriptEnabled(true);... | I create webview for uploading photos, when I try it in chrome it working properly, when I use webview it doesn't work any solution? [CODE] | javascript|java|android|webview | 1 | 2020-01-31T06:33:08.733Z | 2,020 | 1 | 6 | 4 | 63 | 1 | 139 | 44 | 4 | 1 | true | false | false | false | false | false | low |
59,999,005 | How to hide toolbar inside collapsing toolbar layout? | <p>Implemented flexible space with image pattern using collapsing toolbar layout. I am encountering issue that toolbar whatsoever be state of collapsing toolbar layout remains pinned static on top.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/... | Implemented flexible space with image pattern using collapsing toolbar layout. I am encountering issue that toolbar whatsoever be state of collapsing toolbar layout remains pinned static on top. [CODE] Attaching the screenshot: The added screenshot is design of the xml aaded above Attached Screenshot of added XML Gone ... | android|material-design|android-coordinatorlayout|android-collapsingtoolbarlayout | 1 | 2020-01-31T06:34:41.230Z | 2,020 | 1 | 6 | 4 | 686 | 0 | 483 | 53 | 4 | 3 | true | true | false | false | false | false | low |
59,999,129 | How to share with remote PDF file in Android? | <p>I have a URL which points to some PDF file. The thing I want to achieve is to share it with some app. Sharing not a link, but the PDF file itself. The question is how to achieve this? With my investigation I came to the following conclusion: </p>
<ol>
<li>Download it using Retrofit</li>
<li>Save it inside device</l... | I have a URL which points to some PDF file. The thing I want to achieve is to share it with some app. Sharing not a link, but the PDF file itself. The question is how to achieve this? With my investigation I came to the following conclusion: Download it using Retrofit Save it inside device Get somehow the path of the f... | android|pdf | 0 | 2020-01-31T06:45:38.897Z | 2,020 | 1 | 6 | 4 | 66 | 0 | 421 | 45 | 2 | 0 | false | true | false | false | false | false | zero |
59,999,143 | Font color is black in Settings activity | <p>In my app, I have two activity: Main and Settings.
While in main activity, my text in tool bar is in white, as intended, in Settings,it is black, what I don't want.</p>
<p>How I can change the toolbar texts?</p>
<p>Here is my layout for both Main and Settings:</p>
<p><strong>Main:</strong></p>
<pre><code><?xm... | In my app, I have two activity: Main and Settings. While in main activity, my text in tool bar is in white, as intended, in Settings,it is black, what I don't want. How I can change the toolbar texts? Here is my layout for both Main and Settings: Main: [CODE] Settings: [CODE] and if needed, defination in manifest: [COD... | android|android-layout | 0 | 2020-01-31T06:47:20.547Z | 2,020 | 1 | 6 | 4 | 46 | 1 | 353 | 40 | 2 | 4 | true | false | false | false | false | false | zero |
59,999,174 | parsing nested json using retrofit in android? | <p>How to parse a JSON response using retrofit which looks like this, any help would be greatly appreciated, been stuck with this for a while now.</p>
<p>Update : Below is the code i have tried so far but i am not able to get the data and also i am not able to figure out what is wrong with it, jsonschema2pojo gave me ... | How to parse a JSON response using retrofit which looks like this, any help would be greatly appreciated, been stuck with this for a while now. Update : Below is the code i have tried so far but i am not able to get the data and also i am not able to figure out what is wrong with it, jsonschema2pojo gave me two java cl... | java|android | -1 | 2020-01-31T06:50:11.883Z | 2,020 | 1 | 6 | 4 | 150 | 1 | 907 | 46 | 2 | 6 | true | false | false | false | false | true | negative |
59,999,240 | How to open Gmail Login Activity by using Intent | <p>I want to open <strong>Gmail Login Activities</strong> directly from another app using <strong>Intent</strong>. I am able to open <strong>gmail app</strong> by using its <strong>package</strong> name <strong>com.google.android.gm</strong>. But I am wondering how to open its Login Activities directly as activities ar... | I want to open Gmail Login Activities directly from another app using Intent . I am able to open gmail app by using its package name com.google.android.gm . But I am wondering how to open its Login Activities directly as activities are show below What are the URI's of these activities? OR How can I get these URI's? | android|android-intent|gmail | 3 | 2020-01-31T06:54:45.913Z | 2,020 | 1 | 6 | 4 | 734 | 1 | 316 | 48 | 3 | 0 | false | false | false | false | false | false | low |
59,999,362 | Auto read OTP from SMS for Hybrid app with Ionic 3 | <p>I am working on a hybrid App build with Ionic 3, in which server sends an SMS with the OTP and the user needs to enter this OTP in the App. How the App should be able to automatically read the OTP sent by the server. How can I achieve this? </p>
<p>Any help or guidance in this regard would be highly appreciated.</p... | I am working on a hybrid App build with Ionic 3, in which server sends an SMS with the OTP and the user needs to enter this OTP in the App. How the App should be able to automatically read the OTP sent by the server. How can I achieve this? Any help or guidance in this regard would be highly appreciated. Thanks in adva... | android|ios|angular|ionic3|hybrid-mobile-app | 0 | 2020-01-31T07:05:19.057Z | 2,020 | 1 | 7 | 4 | 1,210 | 1 | 326 | 50 | 5 | 0 | false | false | false | false | false | false | zero |
59,999,468 | Limiting google prediction to a specific country doesn't work | <p>I'm doing the following:</p>
<pre><code> FindAutocompletePredictionsRequest.Builder requestBuilder = FindAutocompletePredictionsRequest.builder();
if (limitToCountry != null) {
requestBuilder.setCountry(limitToCountry.toLowerCase());
}
requestBuilder.setSessionToken(HPlaces.getAutocompleteSes... | I'm doing the following: [CODE] The problem is that if for instance the limiting country is "ro" (Romania), and if i query google, it also returns results from other countries. Why is that ?! | android|google-maps|google-places-api | 0 | 2020-01-31T07:14:20.253Z | 2,020 | 1 | 7 | 4 | 36 | 1 | 191 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
59,999,501 | Unable to set title in fragment in Android | <p>I am using the default navigational drawer in Android. I want to change the title of the Action bar depending on the clicked fragment in the drawer. For this I am writing below line in my code:</p>
<pre><code>getActivity().getActionBar().setTitle("Coupons");
</code></pre>
<p>This is returning null object. So I tri... | I am using the default navigational drawer in Android. I want to change the title of the Action bar depending on the clicked fragment in the drawer. For this I am writing below line in my code: [CODE] This is returning null object. So I tried using below line of code: [CODE] This is not able to resolve the method suppo... | android|android-actionbar|title | 0 | 2020-01-31T07:16:52.443Z | 2,020 | 1 | 7 | 4 | 250 | 2 | 369 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
59,999,536 | @Bindable doesn't generate field in BR class | <p>I started studying Data binding recently.
This problem occurred in my source code:</p>
<pre><code>public class MyClassName extends BaseObservable {
@Bindable
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
notifyPropertyChang... | I started studying Data binding recently. This problem occurred in my source code: [CODE] As I know: The Bindable annotation should be applied to any getter accessor method of an Observable class. Bindable will generate a field in the BR class to identify the field that has changed. But when I added the @Bindable annot... | android|android-databinding | 0 | 2020-01-31T07:19:20.043Z | 2,020 | 1 | 7 | 4 | 153 | 2 | 675 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
59,999,593 | whenever I run new project in react-native i get error message that is android sdk license are not accepted how to get rid with this permanently? | <p>Failed to install the app. Please accept all necessary SDK licenses using SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses". Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081</p>
<p>Failed to install the following Android SDK... | Failed to install the app. Please accept all necessary SDK licenses using SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses". Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 Failed to install the following Android SDK packages a... | android|react-native|mobile-application | 1 | 2020-01-31T07:24:49.950Z | 2,020 | 1 | 7 | 4 | 358 | 1 | 972 | 145 | 3 | 0 | false | false | false | false | false | false | low |
59,999,595 | Observable converted into kotlin - Issue | <p>I have converted a few <code>JAVA</code> classes into <code>Kotlin</code> but I am getting <code>Type Mismatch Error</code> issue in Android Studio.</p>
<p>I am adding my code snippets along with the screenshot of the message in IDE for reference. </p>
<p><strong>JAVA CODE</strong></p>
<pre><code>Disposable dispo... | I have converted a few JAVA classes into Kotlin but I am getting Type Mismatch Error issue in Android Studio. I am adding my code snippets along with the screenshot of the message in IDE for reference. JAVA CODE [CODE] KOTLIN CODE [CODE] Issue (IDE Warning) | java|android|kotlin|rx-java2 | 2 | 2020-01-31T07:24:57.357Z | 2,020 | 1 | 7 | 4 | 155 | 2 | 257 | 40 | 4 | 2 | true | false | false | false | false | false | low |
59,999,612 | Show hint text On Text("I'm text" , hint : " my hint " ) flutter | <p>I want to show hint text on Text() in flutter like android. But I did not find any hint key related to TextView in flutter.</p>
<p>Like this.</p>
<pre><code> Text("", hint : "Choose State")
</code></pre> | I want to show hint text on Text() in flutter like android. But I did not find any hint key related to TextView in flutter. Like this. [CODE] | android|ios|flutter|dart | 0 | 2020-01-31T07:26:21.293Z | 2,020 | 1 | 7 | 4 | 801 | 2 | 141 | 64 | 4 | 1 | true | false | false | false | false | false | zero |
59,999,635 | Error: The Columns returned by the query does not have the fields | <p>I am implementing Room Database. Here is my POJO Class</p>
<pre><code>public class Task implements Serializable {
@PrimaryKey(autoGenerate = true)
private int id;
@ColumnInfo(name = "task_name")
private String task;
@ColumnInfo(name = "description")
private String desc;
@ColumnInfo(n... | I am implementing Room Database. Here is my POJO Class [CODE] This is the DAO Class [CODE] While running my code, I am getting the following error [CODE] | android|android-room | 0 | 2020-01-31T07:29:03.830Z | 2,020 | 1 | 7 | 4 | 1,270 | 1 | 153 | 65 | 2 | 3 | true | false | false | false | false | false | zero |
59,999,695 | i have a problem with data binding in android studio | <p>I suddenly found that my binding. <code><widget name></code> is not working.
Then I noticed that emulator dropdown selection isn't working as well.</p>
<p>I am attaching the screenshots of my IDE for reference.</p>
<p><a href="https://i.stack.imgur.com/Z8yzj.jpg" rel="nofollow noreferrer"><img src="https://i... | I suddenly found that my binding. <widget name> is not working. Then I noticed that emulator dropdown selection isn't working as well. I am attaching the screenshots of my IDE for reference. Gradle dependencies: [CODE] main activity code [CODE] activity_main layout [CODE] edit : 1 - i have tried removing layout and dat... | android|android-studio | 0 | 2020-01-31T07:34:55.430Z | 2,020 | 1 | 7 | 4 | 372 | 1 | 386 | 52 | 2 | 3 | true | false | false | false | false | false | zero |
59,999,832 | The RecyclerView is not getting the list(response) | <p>I am trying to view a list in a RecyclerView using Kotlin. I am writing the RecyclerView id in fragment class and setting the list(response) in adapter but it is not showing in the RecyclerView. Below the code is written I am not sure how can I resolve this problem.</p>
<p>Project having manly a Fragment,Adapter,xm... | I am trying to view a list in a RecyclerView using Kotlin. I am writing the RecyclerView id in fragment class and setting the list(response) in adapter but it is not showing in the RecyclerView. Below the code is written I am not sure how can I resolve this problem. Project having manly a Fragment,Adapter,xml file and ... | java|android|kotlin|android-recyclerview | 0 | 2020-01-31T07:47:09.957Z | 2,020 | 1 | 7 | 4 | 246 | 2 | 577 | 50 | 4 | 5 | true | false | false | false | false | false | zero |
60,000,109 | Is it possbile to deploy an Android standalone wear app to galaxy store? | <p>I have an existing Android Wear standalone app and I would like that my app works on Samsung Galaxy watches. Is is possible to deploy the app on Galaxy store or do I have to make the whole app from scratch using Tizen Studio?</p> | I have an existing Android Wear standalone app and I would like that my app works on Samsung Galaxy watches. Is is possible to deploy the app on Galaxy store or do I have to make the whole app from scratch using Tizen Studio? | tizen|samsung-galaxy|android-wear-2.0 | 0 | 2020-01-31T08:10:22.270Z | 2,020 | 1 | 8 | 4 | 682 | 2 | 225 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
60,000,118 | How to dismiss alert dialog when javascript button is clicked in web-view in android | <p>Below is the code what i tried so far:</p>
<pre><code>TextView tv =findViewById(R.id.tv);
tv.setOnClickListener(new View.OnClickListener() {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@Override
public void onClick(View v) {
Dialog dialog=new Dialog(MainActivity.this, android.R.style.Theme... | Below is the code what i tried so far: [CODE] Any help is appreciated! My requirement is load web-view in alert dialog and web-view has one java script button called "close" on click of close button inside web-view alert dialog should be dismissed. How to achieve this in android? | android | 0 | 2020-01-31T08:11:12.483Z | 2,020 | 1 | 8 | 4 | 181 | 1 | 280 | 84 | 1 | 1 | true | false | false | false | false | false | zero |
60,000,185 | RxJava2 concatArrayEagerDelayError doesn't load cached data when an error is thorwn on request to get remote data | <p>I am using the below code in an Android project to load data from the database(cache) and from API request:</p>
<pre><code>Observable.concatArrayEagerDelayError(
getDatabaseData(),
getRemoteData()
).debounce(400, TimeUnit.MILLISECONDS)
</code></pre>
<p>Both returns from <code>getDatabaseData()</code> and <... | I am using the below code in an Android project to load data from the database(cache) and from API request: [CODE] Both returns from getDatabaseData() and getRemoteData() are Observable<MyObj> It looks like is working as expected, except when an error occurs while trying to get the remote data. On the subscriber, I rec... | android|kotlin|retrofit2|rx-java2|android-room | 0 | 2020-01-31T08:17:07.343Z | 2,020 | 1 | 8 | 4 | 73 | 1 | 527 | 113 | 5 | 1 | true | false | false | false | false | false | zero |
60,000,234 | ERROR : The ANDROID_HOME environment variable is not set | <p>I'm trying to launch 'tns doctor' but I still have an error </p>
<blockquote>
<p>"The ANDROID_HOME environment variable is not set ".</p>
</blockquote>
<p>When I : <code>echo %ANDROID_HOME%</code> I have : <code>C:\Users\lno\AppData\Local\Android\Sdk</code></p>
<p>That's the good path.</p> | I'm trying to launch 'tns doctor' but I still have an error "The ANDROID_HOME environment variable is not set ". When I : echo %ANDROID_HOME% I have : C:\Users\lno\AppData\Local\Android\Sdk That's the good path. | android|nativescript | 0 | 2020-01-31T08:22:24.487Z | 2,020 | 1 | 8 | 4 | 530 | 1 | 211 | 56 | 2 | 0 | false | false | false | false | false | false | zero |
60,000,235 | How to pass data from fragment to activity with bundle | <p>I have a search view on my Main Activity, i want to pass the submitted string from MainActivity to SearchFragment.</p>
<pre><code>@Override
public boolean onQueryTextSubmit(String query) {
Bundle bundle = new Bundle();
bundle.putString("searchTitle", query);
SearchFragment searchFragment = new SearchFragme... | I have a search view on my Main Activity, i want to pass the submitted string from MainActivity to SearchFragment. [CODE] But i get NullPointerException when i try to get the data in the SearchFragment [CODE] How can i fix this ? | java|android|android-fragments | 0 | 2020-01-31T08:22:36.143Z | 2,020 | 1 | 8 | 4 | 76 | 2 | 229 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
60,000,266 | Cannot fit requested classes in a single dex file (# methods: 86010 > 65536) | <p>I don't know what the error means. I'm trying to do an uber app from youtube that uses Firebase and got this error.</p>
<blockquote>
<p>Cannot fit requested classes in a single dex file (# methods: 86010 > 65536)
com.android.tools.r8.CompilationFailedException: Compilation failed to complete.</p>
<blockquo... | I don't know what the error means. I'm trying to do an uber app from youtube that uses Firebase and got this error. Cannot fit requested classes in a single dex file (# methods: 86010 > 65536) com.android.tools.r8.CompilationFailedException: Compilation failed to complete. build.gradle(app) [CODE] build.gradle(project)... | java|android-studio | 1 | 2020-01-31T08:25:40.220Z | 2,020 | 1 | 8 | 4 | 2,042 | 2 | 327 | 76 | 2 | 2 | true | false | false | false | false | false | low |
60,000,361 | Is there a confilict between firebase admin node sdk and firebase client sdk when it comes to subscribing to fcm topics? | <p>When subscribing to a firebase console messaging topic using the firebase client sdk using:</p>
<pre><code>FirebaseMessaging.getInstance().subscribeToTopic("/topics/sometopic")
</code></pre>
<p>I get a warning: </p>
<blockquote>
<p>'/topics/sometopic' is deprecated. Only 'sometopic' should be used in subscribeT... | When subscribing to a firebase console messaging topic using the firebase client sdk using: [CODE] I get a warning: '/topics/sometopic' is deprecated. Only 'sometopic' should be used in subscribeToTopic. However when subscribing to a topic using the firebase admin sdk server side using: [CODE] I get a warning on the cl... | android|firebase|firebase-cloud-messaging|firebase-cli | 1 | 2020-01-31T08:34:13.590Z | 2,020 | 1 | 8 | 4 | 278 | 1 | 599 | 120 | 4 | 2 | true | false | false | false | false | false | low |
60,000,458 | Does anyone know how to apply "isAdded" in API level 29 or plus? | <p>I am trying to fix a bug in an app I am developing with the help of some tutorials, and in these videos people share my error and they found the answer using "isAdded()", but the problem for me is that I am using API level 29, and in the official website says that this was deprecated in level 28. I dont want to chan... | I am trying to fix a bug in an app I am developing with the help of some tutorials, and in these videos people share my error and they found the answer using "isAdded()", but the problem for me is that I am using API level 29, and in the official website says that this was deprecated in level 28. I dont want to change ... | android|android-fragments | 0 | 2020-01-31T08:41:28.783Z | 2,020 | 1 | 8 | 4 | 135 | 1 | 492 | 64 | 2 | 1 | true | false | false | false | false | false | zero |
60,000,499 | System.getProperty("line.separator") and " \n " Causes listview not to populate | <p>In my app I have a List view,</p>
<p>The view is populated by an array of strings</p>
<p>Here is the code and explanation to help you guys</p>
<p>So the string is</p>
<pre><code>StaffList= Client + " Rates: " + Rates + " " + Staff + " Budget Hours: " + BudgetHoursPassData + " Member Budget: " + MemberBudgetPassD... | In my app I have a List view, The view is populated by an array of strings Here is the code and explanation to help you guys So the string is [CODE] That String is then added to an Array [CODE] This Array is then passed using intents to another activity and displayed in the list view [CODE] Here is the adapter [CODE] N... | android|listview|android-intent|android-adapter | -3 | 2020-01-31T08:44:44.943Z | 2,020 | 1 | 8 | 4 | 93 | 2 | 772 | 79 | 4 | 6 | true | false | false | false | false | true | negative |
60,000,643 | Background and text colors interaction | <p>I am trying to set background color in my application and print some text over it. It turns out that the default text color and the background color overlap each other if I am not setting the text color explicitly (see the picture below). Why is this happening? Is there any way to get rid of background transparency ... | I am trying to set background color in my application and print some text over it. It turns out that the default text color and the background color overlap each other if I am not setting the text color explicitly (see the picture below). Why is this happening? Is there any way to get rid of background transparency wit... | android-layout | 0 | 2020-01-31T08:55:43.487Z | 2,020 | 1 | 8 | 4 | 26 | 1 | 366 | 38 | 1 | 1 | true | false | false | false | false | false | zero |
60,000,644 | why custom menu icon is not responding | <p>I want to add a logout option to the tool bar, which has the image view. due to fixed size in tool bar menu, i gone for a custom menu by specifying </p>
<p>app:actionLayout="@layout/custom_menu"</p>
<p>i specified this in my , and did a custom menu in custom_menu.xml.</p>
<p>now when i click the item, i w... | I want to add a logout option to the tool bar, which has the image view. due to fixed size in tool bar menu, i gone for a custom menu by specifying app:actionLayout="@layout/custom_menu" i specified this in my , and did a custom menu in custom_menu.xml. now when i click the item, i want to perform some task, lets call ... | android-custom-view | 0 | 2020-01-31T08:55:47.797Z | 2,020 | 1 | 8 | 4 | 18 | 1 | 566 | 38 | 1 | 3 | true | false | false | false | false | false | zero |
60,000,764 | how to solve this problem android error ?? (java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser) | <p>when I perform my app, The following error occurs in android studio LOGCAT.
How to solve this problem?</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser android.content.pm.ProviderInfo.loadXmlMetaData(android.content.pm.PackageManager, java.lang.S... | when I perform my app, The following error occurs in android studio LOGCAT. How to solve this problem? [CODE] I added below in AndroidManifest.xml [CODE] and I added privider_paths file. [CODE] and The error occurs this point [CODE] | java|android|nullpointerexception|fileprovider | -3 | 2020-01-31T09:04:29.333Z | 2,020 | 1 | 9 | 4 | 278 | 1 | 232 | 148 | 4 | 4 | true | false | false | false | false | true | negative |
60,000,812 | Delphi Android long process waiting message | <p>In my Android application with a button, I start an SQL query. This query runs long (about 1-3 minutes) and I would like to show a waiting message to the user.</p>
<p>This waiting message is done via a <code>TRectangle</code> with a label inside. The rectangle is not visible until the button is pressed:</p>
<pre c... | In my Android application with a button, I start an SQL query. This query runs long (about 1-3 minutes) and I would like to show a waiting message to the user. This waiting message is done via a TRectangle with a label inside. The rectangle is not visible until the button is pressed: [CODE] Procedure RunSql executes an... | android|delphi|mobile | 0 | 2020-01-31T09:07:20.377Z | 2,020 | 1 | 9 | 4 | 239 | 0 | 649 | 43 | 3 | 2 | true | true | false | false | false | false | zero |
60,000,925 | Get recyclerview item position | <p>I have a layout, in which RecyclerView and a view is used. View is overlapping the RecyclerView at centre. I want to get the position of item at position of view when scroll or when recyclerview scroll stops. </p> | I have a layout, in which RecyclerView and a view is used. View is overlapping the RecyclerView at centre. I want to get the position of item at position of view when scroll or when recyclerview scroll stops. | android|android-recyclerview | -3 | 2020-01-31T09:15:29.653Z | 2,020 | 1 | 9 | 4 | 46 | 1 | 208 | 30 | 2 | 0 | false | false | false | false | false | true | negative |
60,001,013 | Dart: How to return Future<void> | <p>How can I return <code>Future<void></code> ?</p>
<pre><code> Future<void> deleteAll(List stuff){
stuff.forEach( s => delete(s)); //How do I return Future<void> when loop and all delete Operation are finished?
}
Future<void> delete(Stuff s) async {
....
file.w... | How can I return Future<void> ? [CODE] How do I return Future<void> when the forEach loop and all delete Operations are finished? | android|asynchronous|flutter|future | 28 | 2020-01-31T09:20:17.037Z | 2,020 | 1 | 9 | 4 | 30,637 | 2 | 129 | 32 | 4 | 1 | true | false | true | true | true | false | high |
60,001,105 | Is safe pass the NavigationController as reference in a Custom View? | <p>i'm new in the android programming and I've created a Custom View that show a bottom menu. I must do it custom (without the material components) for needs.</p>
<p><a href="https://i.stack.imgur.com/JoTnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JoTnb.png" alt="The bottom menu"></a></p>
<p... | i'm new in the android programming and I've created a Custom View that show a bottom menu. I must do it custom (without the material components) for needs. The purpose of this custom view is to let the user navigate in some fragments that handle specific customer options. I implemented it on the MainActivity (the only ... | android|kotlin | 1 | 2020-01-31T09:25:58.267Z | 2,020 | 1 | 9 | 4 | 145 | 0 | 878 | 68 | 2 | 3 | true | true | false | false | false | false | low |
60,001,117 | Arping command is always returning exit value 2. How to fix this? | <p>Actually I am trying to run command "arping -c 5 -I wlan0 gatewayaddr" in Android Studio. Here gateway address is any ip address. But every time i execute this command i am getting exit value 2. My android device is already rooted device. And if i run this command in adb shell then i am getting the proper result but... | Actually I am trying to run command "arping -c 5 -I wlan0 gatewayaddr" in Android Studio. Here gateway address is any ip address. But every time i execute this command i am getting exit value 2. My android device is already rooted device. And if i run this command in adb shell then i am getting the proper result but in... | android | 1 | 2020-01-31T09:26:51.477Z | 2,020 | 1 | 9 | 4 | 107 | 0 | 403 | 65 | 1 | 1 | true | true | false | false | false | false | low |
60,001,126 | Why does the fragment_container control fill in whole screen in Android Studio? | <p>There are two controls, both <code>nav_view</code> and <code>fragment_container</code>.</p>
<p>I hope that <code>nav_view</code> is located on the bottom of screen , and <code>fragment_container</code> fill in the free space, so I write Code A.</p>
<p>But I find <code>fragment_container</code> fill in the whole sc... | There are two controls, both nav_view and fragment_container . I hope that nav_view is located on the bottom of screen , and fragment_container fill in the free space, so I write Code A. But I find fragment_container fill in the whole screen, you can see Image A, how can I fix it? Code A [CODE] Image A | android|android-studio | 0 | 2020-01-31T09:27:17.633Z | 2,020 | 1 | 9 | 4 | 249 | 1 | 303 | 79 | 2 | 1 | true | false | false | false | false | false | zero |
60,001,198 | How to implement "slow scrollview like camera mode option" in Android? | <pre><code>// here is my recyclerview layoutmanager setup
layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false){
@Override
public void smoothScrollToPosition(RecyclerView recyclerView, RecyclerView.State state, int position) {
Line... | [CODE] I am implementing camera in my android application.I have fruits name instead of(video,photo,square,panorama,manual) normal modes.I want to implement the slow scroll like normal camera app when user selecting options in camera. | java|android|android-recyclerview|scrollview | 0 | 2020-01-31T09:32:17.570Z | 2,020 | 1 | 9 | 4 | 77 | 0 | 234 | 70 | 4 | 1 | true | true | false | false | false | false | zero |
60,001,296 | Nav action not executing on Jetpack Navigation | <p>Facing a weird issue with Jetpack Navigation,any help would be much appreciated. I've a navigation graph as below:</p>
<p>I would like to navigate from one fragment to other two fragments, using jetpack navigation.
So far I've been able to navigate only to the <strong>second_fragment</strong> from <strong>entry_frag... | Facing a weird issue with Jetpack Navigation,any help would be much appreciated. I've a navigation graph as below: I would like to navigate from one fragment to other two fragments, using jetpack navigation. So far I've been able to navigate only to the second_fragment from entry_fragment as shown in the picture below.... | java|android|navigation|android-jetpack | 0 | 2020-01-31T09:38:02.267Z | 2,020 | 1 | 9 | 4 | 60 | 1 | 586 | 46 | 4 | 1 | true | false | false | false | false | false | zero |
60,001,300 | Request json android for Volley | <p>I try to make a request for information to a site and return a json, I follow a tutorial on the net and I have a problem that I can not pass ....</p>
<p>Something with that variable must be because there it stops from compiling but I don't realize what it is honest ....</p>
<p>Here is the mainactivity:</p>
<pre><... | I try to make a request for information to a site and return a json, I follow a tutorial on the net and I have a problem that I can not pass .... Something with that variable must be because there it stops from compiling but I don't realize what it is honest .... Here is the mainactivity: [CODE] And I have the followin... | android|json|request | -1 | 2020-01-31T09:38:12.470Z | 2,020 | 1 | 9 | 4 | 69 | 2 | 370 | 31 | 3 | 1 | true | false | false | false | false | true | negative |
60,001,308 | What is API interface in Retrofit | <p>While studying Retrofit Library I cae across API Interface I could not understand the Code/terms used inside it. Can anyone explain the lines of code??</p>
<pre><code>public interface ApiInterface {
// For POST request
@FormUrlEncoded // annotation that used with POST type request
@POST("/demo/login.p... | While studying Retrofit Library I cae across API Interface I could not understand the Code/terms used inside it. Can anyone explain the lines of code?? [CODE] Thanks For any Response!! | android|rest|retrofit | 0 | 2020-01-31T09:38:56.917Z | 2,020 | 1 | 9 | 4 | 147 | 0 | 184 | 33 | 3 | 1 | true | true | false | false | false | false | zero |
60,001,361 | Place a Spinner in Action bar | <p>My question is simple, how would you go about to set a Spinner/dropdown list in the Action bar (in place of the title)?</p>
<p>I know there are other similar questions on here but all the answers I could find were very old and used deprecated code or linked to some guide in the Android docs that isn't there anymore... | My question is simple, how would you go about to set a Spinner/dropdown list in the Action bar (in place of the title)? I know there are other similar questions on here but all the answers I could find were very old and used deprecated code or linked to some guide in the Android docs that isn't there anymore. | java|android|android-actionbar|spinner | -2 | 2020-01-31T09:41:49.017Z | 2,020 | 1 | 9 | 4 | 129 | 1 | 310 | 29 | 4 | 0 | false | false | false | false | false | true | negative |
60,001,380 | How to handle Firebase FCM registration token if you have thousands of users for sending push notifications? | <p>I want to send push notifications to thousands of mobile users. Do i need to store the registration tokens of all the users in my database ?
If so how can i store it efficiently while detecting the token changes and all ? I want to send push notifications for all the users whether they are logged in or not.</p>
<p>I... | I want to send push notifications to thousands of mobile users. Do i need to store the registration tokens of all the users in my database ? If so how can i store it efficiently while detecting the token changes and all ? I want to send push notifications for all the users whether they are logged in or not. I am extrac... | firebase|firebase-cloud-messaging|apple-push-notifications|android-push-notification | -2 | 2020-01-31T09:42:24.423Z | 2,020 | 1 | 9 | 4 | 70 | 1 | 347 | 108 | 4 | 1 | true | false | false | false | false | true | negative |
60,001,462 | IllegalStateException on MediaRecorder.start() | <p>Morning!</p>
<p>I have a weird problem with a production app. Some users get an IllegalStateException on a MediaRecorder start. I cannot reproduce the problem on the few devices I own or even on an emulator. This error occurs on different versions and devices, (Android 5 to 10 and every kind of devices), and has ma... | Morning! I have a weird problem with a production app. Some users get an IllegalStateException on a MediaRecorder start. I cannot reproduce the problem on the few devices I own or even on an emulator. This error occurs on different versions and devices, (Android 5 to 10 and every kind of devices), and has many occurren... | android|illegalstateexception|android-mediarecorder | 2 | 2020-01-31T09:47:56.673Z | 2,020 | 1 | 9 | 4 | 1,847 | 2 | 500 | 46 | 3 | 3 | true | false | false | false | false | false | low |
60,001,513 | How change the intent.putExtra when you click in a different marker with google map & Kotlin Android | <p>I want to have a different putExtra if I click with a different Marker in my google map with Kotlin Android. </p>
<pre><code> mMap.addMarker(
MarkerOptions()
.position(concessionnaireTest)
.title("test")
.snippet("Numéro : *******")
.ico... | I want to have a different putExtra if I click with a different Marker in my google map with Kotlin Android. [CODE] Thank you for helping | android|google-maps|kotlin | 0 | 2020-01-31T09:50:42.390Z | 2,020 | 1 | 9 | 4 | 180 | 2 | 137 | 100 | 3 | 1 | true | false | false | false | false | false | zero |
60,001,540 | Firebase + Proguard/R8 | <p>I am currently working on setting up Firebase (FCM) in my project and have encountered a problem when I run my R8-obfuscated app, the Firebase service (FirebaseMessagingService) no longer works. Has anyone encountered the same problem? Any solution?</p>
<p><strong>UPD</strong>: Finally I fixed it for FCM by downgra... | I am currently working on setting up Firebase (FCM) in my project and have encountered a problem when I run my R8-obfuscated app, the Firebase service (FirebaseMessagingService) no longer works. Has anyone encountered the same problem? Any solution? UPD : Finally I fixed it for FCM by downgrading to [CODE] There are so... | android|firebase|firebase-cloud-messaging|android-r8 | 0 | 2020-01-31T09:52:15.287Z | 2,020 | 1 | 9 | 4 | 4,268 | 3 | 529 | 22 | 4 | 2 | true | false | true | false | false | false | zero |
60,001,542 | How to send data messages to single device using FCM in android | <p>I'm new at using <code>Firebase cloud messaging</code> and want to send a message or notification with data to a single device. I've sent notifications to all devices but can't figure out how to send it to a single targeted device. I've looked through many websites and tutorials but no luck.</p>
<p>From one tutoria... | I'm new at using Firebase cloud messaging and want to send a message or notification with data to a single device. I've sent notifications to all devices but can't figure out how to send it to a single targeted device. I've looked through many websites and tutorials but no luck. From one tutorial I was following, I wro... | java|android|firebase|firebase-cloud-messaging | 1 | 2020-01-31T09:52:23.273Z | 2,020 | 1 | 9 | 4 | 1,429 | 2 | 1,062 | 63 | 4 | 2 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.