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,008,610 | Simple loop for rolling dices n times | <p>Let's summarize the problem: </p>
<p>I want to create a simple dice game with two players, each player can roll the dice only five times. After the five tries, the turn goes to the other player. </p>
<p>Excuse me, I'm a beginner, this question may seem simple or stupid but any help would be appreciated.</p>
<p>So... | Let's summarize the problem: I want to create a simple dice game with two players, each player can roll the dice only five times. After the five tries, the turn goes to the other player. Excuse me, I'm a beginner, this question may seem simple or stupid but any help would be appreciated. So, how can I run rollDice 5 ti... | java|algorithm|loops|android-studio | -2 | 2020-01-31T17:25:15.583Z | 2,020 | 1 | 17 | 4 | 305 | 4 | 477 | 37 | 4 | 1 | true | false | false | false | false | true | negative |
60,008,680 | Unable to use the camera plugin cordova-plugin-camera install issue | <p>How can I resolve this issue?</p>
<blockquote>
<p>[app-scripts] [17:44:52] typescript:
C:/Users/HP/visitor/src/app/app.module.ts, line: 21 [app-scripts]<br>
Argument of type '{ declarations: (typeof RegisterPage | typeof
MainPage | typeof HomePage | typeof [app-scripts]<br>
MyApp)[]; impor...' is not ass... | How can I resolve this issue? [app-scripts] [17:44:52] typescript: C:/Users/HP/visitor/src/app/app.module.ts, line: 21 [app-scripts] Argument of type '{ declarations: (typeof RegisterPage | typeof MainPage | typeof HomePage | typeof [app-scripts] MyApp)[]; impor...' is not assignable to parameter of type 'NgModule'. Ty... | android|angular|typescript|cordova | 0 | 2020-01-31T17:30:26.323Z | 2,020 | 1 | 17 | 4 | 474 | 0 | 1,612 | 67 | 4 | 3 | true | true | false | false | false | false | zero |
60,008,833 | Updating foreground service notification delays stopping the service | <p>I am downloading a file using a foreground service, but when I pause the download I want to stop the service, so I did as following</p>
<p><strong>starting the service</strong></p>
<pre><code>val intent = Intent(context, IdmService::class.java)
context.startService(intent)
context.bindService(intent, serviceConnec... | I am downloading a file using a foreground service, but when I pause the download I want to stop the service, so I did as following starting the service [CODE] stopping the service [CODE] notification update [CODE] But when I stop the service, it takes 5 seconds to hide the notification. I tried commenting startForegro... | java|android|kotlin|foreground-service | 1 | 2020-01-31T17:43:31.780Z | 2,020 | 1 | 17 | 4 | 509 | 1 | 622 | 68 | 4 | 3 | true | false | false | false | false | false | low |
60,008,883 | React-native Android release build broken (UI navigation breaks without error) - works correctly in debug build | <p>I have a react-native app which works correctly in Android debug builds but doesn't work in Android the release builds.</p>
<p>The app is using redux, axios and react-navigation:</p>
<ul>
<li>Search input box on the home screen</li>
<li>Pressing the "Search button" calls a redux thunk, which makes an API request v... | I have a react-native app which works correctly in Android debug builds but doesn't work in Android the release builds. The app is using redux, axios and react-navigation: Search input box on the home screen Pressing the "Search button" calls a redux thunk, which makes an API request via axios which updates the redux r... | android|react-native|redux|react-navigation|release | 1 | 2020-01-31T17:47:46.157Z | 2,020 | 1 | 17 | 4 | 610 | 1 | 1,725 | 111 | 5 | 0 | false | false | false | false | false | false | low |
60,008,904 | how to create an APK in my application programaticly? | <p>let me explain the situation :
there are two apps coming from two individual android studio projects :</p>
<p><strong>1</strong> . an app which be installed in the users device and the user use it to make the <strong>2</strong> app</p>
<p><strong>2</strong> . an app which is to be created in the 1 app . there is j... | let me explain the situation : there are two apps coming from two individual android studio projects : 1 . an app which be installed in the users device and the user use it to make the 2 app 2 . an app which is to be created in the 1 app . there is just one variable (lets call it X ) which should be selected by the use... | android|apktool | 0 | 2020-01-31T17:48:53.817Z | 2,020 | 1 | 17 | 4 | 27 | 0 | 774 | 53 | 2 | 0 | false | true | false | false | false | false | zero |
60,008,977 | App Not Retrieving Documents From Firestore | <p>I wanted to fetch some documents in a collection. The document should fetch name and specialty from a document. But each time I run the app, the documents are fetched and shown in the recyclerView as a list (just like in WhatsApp messenger), but the fields are not showing in by <code>TextViews</code>. That is the <c... | I wanted to fetch some documents in a collection. The document should fetch name and specialty from a document. But each time I run the app, the documents are fetched and shown in the recyclerView as a list (just like in WhatsApp messenger), but the fields are not showing in by TextViews . That is the RecyclerView view... | java|android|firebase|google-cloud-firestore | 0 | 2020-01-31T17:54:16.417Z | 2,020 | 1 | 17 | 4 | 45 | 1 | 586 | 43 | 4 | 3 | true | false | false | false | false | false | zero |
60,008,981 | My google places SDK doesn't seem to work after trying multiple options. What could the issue be? | <p>I'm using the google places SDk which I'm aware has deprecated. I'm using the AutoComplete functionality but constantly get errors that state there is a network error and the resolution is null. Is this because of the deprecation? Does it make a difference if my API Key is in my Manifest or can I store it anywhere I... | I'm using the google places SDk which I'm aware has deprecated. I'm using the AutoComplete functionality but constantly get errors that state there is a network error and the resolution is null. Is this because of the deprecation? Does it make a difference if my API Key is in my Manifest or can I store it anywhere I wa... | java|android|api|google-maps|google-places-api | 0 | 2020-01-31T17:54:40.927Z | 2,020 | 1 | 17 | 4 | 35 | 1 | 350 | 97 | 5 | 0 | false | false | false | false | false | false | zero |
60,009,104 | How can I update new data to my app every week? | <p>I am a newbie and I am working on a travel agency app in which I should update new trips offers every week and I don't know how to do this using firebase and what is the technique? </p> | I am a newbie and I am working on a travel agency app in which I should update new trips offers every week and I don't know how to do this using firebase and what is the technique? | android|firebase|android-studio | -1 | 2020-01-31T18:03:23.153Z | 2,020 | 1 | 18 | 4 | 118 | 2 | 180 | 47 | 3 | 0 | false | false | false | false | false | true | negative |
60,009,126 | If I want to keep 30+ apps updated in Google console, how do I use Google play developer API? | <p>Currently I have published 20 apps in Google store and I plan to expand the number to 40+ apps.</p>
<p>I need to be able to massively update all apps on production efficiently and quicker than using the Google developers console.</p>
<p>Which is the more convenient way to update all published apps having the apk fil... | Currently I have published 20 apps in Google store and I plan to expand the number to 40+ apps. I need to be able to massively update all apps on production efficiently and quicker than using the Google developers console. Which is the more convenient way to update all published apps having the apk files on storage? I'... | python|android|google-api|google-developers-console | 0 | 2020-01-31T18:05:14.177Z | 2,020 | 1 | 18 | 4 | 32 | 0 | 861 | 93 | 4 | 0 | false | true | false | false | false | false | zero |
60,009,127 | i need to have a list of icons tha can be changed by swipping and by doing so the whole content changes | <p>thanks for the help in advance, what i wanna achieve is a list of icons that need to be changed by swipping left and right when i change them i need the whole content too change li the exemple bellow:</p>
<p><a href="https://i.stack.imgur.com/zKGbb.jpg" rel="nofollow noreferrer">see the picture</a></p>
<p>i only c... | thanks for the help in advance, what i wanna achieve is a list of icons that need to be changed by swipping left and right when i change them i need the whole content too change li the exemple bellow: see the picture i only create a small amoubt of the like linear behind the icon and the icon and the title. [CODE] | java|android | 0 | 2020-01-31T18:05:20.917Z | 2,020 | 1 | 18 | 4 | 32 | 2 | 315 | 103 | 2 | 1 | true | false | false | false | false | false | zero |
60,009,302 | Google Assistant Action - Implicit Invocation Experience | <p>I am currently developing a Google Assistant Action. I understand <a href="https://developers.google.com/assistant/discovery/implicit" rel="nofollow noreferrer">Implicit Invocation</a> as Google describes it and from my experience testing my own app, I very much understand that it works as they describe. </p>
<p>He... | I am currently developing a Google Assistant Action. I understand Implicit Invocation as Google describes it and from my experience testing my own app, I very much understand that it works as they describe. Here's what that flow looks like: [CODE] Makes sense. I ask it a general question and it asks me if I would like ... | android|actions-on-google|google-home|google-smart-home | 0 | 2020-01-31T18:20:43.100Z | 2,020 | 1 | 18 | 4 | 538 | 1 | 1,159 | 56 | 4 | 3 | true | false | false | false | false | false | zero |
60,009,571 | How to use elGamal encryption keys in Android? | <p>I have the following keypair created with SJCL.js on node.js</p>
<pre><code>var keyPair = sjcl.ecc.elGamal.generateKeys(sjcl.ecc.curves.c384);
</code></pre>
<p>I understand that I need somehow elGamal in Android as well.
I want to implement a chat feature whereby every text chat to be sent will be encrypted with t... | I have the following keypair created with SJCL.js on node.js [CODE] I understand that I need somehow elGamal in Android as well. I want to implement a chat feature whereby every text chat to be sent will be encrypted with the public key of the receiver. How can I use these elGamal public keys to perform an encryption (... | android|kotlin|cryptography|sjcl | 0 | 2020-01-31T18:22:20.027Z | 2,020 | 1 | 18 | 4 | 186 | 0 | 424 | 46 | 4 | 1 | true | true | false | false | false | false | zero |
60,009,380 | Firebase add new child when an item on adapter is non-zero | <p>Hello so I have a function in an app where you will add a data from the adapter if the quantity is non-zero and it will be saved to the firebase realtime database. What i wanna do is if the other item in adapter is non-zero it will add a child to the database but instead firebase is just replacing the item instead o... | Hello so I have a function in an app where you will add a data from the adapter if the quantity is non-zero and it will be saved to the firebase realtime database. What i wanna do is if the other item in adapter is non-zero it will add a child to the database but instead firebase is just replacing the item instead of a... | android|firebase|firebase-realtime-database|android-recyclerview | 0 | 2020-01-31T18:27:11.583Z | 2,020 | 1 | 18 | 4 | 64 | 2 | 379 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
60,009,473 | ClassNotFoundException when using androidx.fragment.app.FragmentContainerView | <p>I'm trying to transition from using a <code>FrameLayout</code> to using <code>FragmentContainerView</code> and from the tutorials I've seen, it should be pretty easy. However, when I run my app after making the change, I get</p>
<pre><code>Error inflating class androidx.fragment.app.FragmentContainerView
Caused by: ... | I'm trying to transition from using a FrameLayout to using FragmentContainerView and from the tutorials I've seen, it should be pretty easy. However, when I run my app after making the change, I get [CODE] my layout file is pretty simple: [CODE] Do I need to add something into my build.gradle or something? Why can't it... | android|android-fragments | 15 | 2020-01-31T18:34:08.073Z | 2,020 | 1 | 18 | 4 | 10,169 | 4 | 336 | 77 | 2 | 2 | true | false | true | false | true | false | medium |
60,009,487 | Strange launch behaviour causing a crash | <p>I have seen many reports from the field from one of my apps (~1% of users see it per day) of an error with not being able to unpack a fragment resource, with the ultimate reason being "Fragment ...MyRootFragment did not create a view". The fragment class in question has nothing but an <code>onCreate</code> method wh... | I have seen many reports from the field from one of my apps (~1% of users see it per day) of an error with not being able to unpack a fragment resource, with the ultimate reason being "Fragment ...MyRootFragment did not create a view". The fragment class in question has nothing but an onCreate method which inflates a s... | android | 0 | 2020-01-31T18:35:20.387Z | 2,020 | 1 | 18 | 4 | 421 | 1 | 1,449 | 40 | 1 | 4 | true | false | false | false | false | false | zero |
60,009,600 | Does BadgeDrawable not work for views within a FrameLayout such as buttons, images, textviews etc.? | <p>I have this function in my main activity which doesn't display a badge: </p>
<pre><code>private fun setFindShiftBadge(state: HomeState) {
val findShiftsBadge = BadgeDrawable.create(this)
home_framelayout.foreground = findShiftsBadge
findShiftsBadge.badgeGravity = BadgeDrawable.TOP_END
... | I have this function in my main activity which doesn't display a badge: [CODE] In the same activity, I have this function which displays a badge: [CODE] Now I understand that the second function works because the badge is set within a BottomNavigationView . Ironically, BottomNavigationView extends FrameLayout . In the ... | android|android-view|android-drawable|android-framelayout|badge | 4 | 2020-01-31T18:44:56.810Z | 2,020 | 1 | 18 | 4 | 3,540 | 2 | 1,464 | 99 | 5 | 3 | true | false | true | false | false | false | low |
60,009,735 | How to set an ID to an EpoxyModelWithHolder? | <p>I am currently adding using Epoxy 3.9.0 (first time using it) and I'm creating an EpoxyModelWithHolder. </p>
<p>I'm setting an ID and I'm still getting: "You must set an id on a model before adding it."</p>
<h2>ModelClass</h2>
<pre><code>abstract class PlayerModel: EpoxyModelWithHolder<PlayerModel.PlayerHolder... | I am currently adding using Epoxy 3.9.0 (first time using it) and I'm creating an EpoxyModelWithHolder. I'm setting an ID and I'm still getting: "You must set an id on a model before adding it." ModelClass [CODE] Controller [CODE] Data class data class Player(val image: Int = -1, val injured: Boolean, val name: String,... | android|kotlin|epoxy | 0 | 2020-01-31T18:54:43.330Z | 2,020 | 1 | 18 | 4 | 114 | 1 | 372 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
60,009,807 | Webview string limit and showing "&" when targetSdkVersion 29 | <p>I've built apps, fetching JSON from WordPress using rest API and showing that all string to webview.</p>
<p>It's works perfectly in targetSdkVersion 28.
but when upgrading to targetSdkVersion 29 the string looks like auto excerpt and giving symbols "&" in the end text.</p>
<p>Exp : Horse is animals, have 4 leg... | I've built apps, fetching JSON from WordPress using rest API and showing that all string to webview. It's works perfectly in targetSdkVersion 28. but when upgrading to targetSdkVersion 29 the string looks like auto excerpt and giving symbols "&" in the end text. Exp : Horse is animals, have 4 legs and one head (normal ... | java|android|android-studio | 0 | 2020-01-31T19:00:08.507Z | 2,020 | 1 | 19 | 4 | 39 | 0 | 572 | 61 | 3 | 0 | false | true | false | false | false | false | zero |
60,009,861 | Shortest path using Simulated Annealing using an Android app | <p>I am implementing an android application using different geographic coordinates and I need to solve a problem similar to the traveling salesman.</p>
<p>I found an implementation of the algorithm at <a href="http://www.theprojectspot.com/tutorial-post/simulated-annealing-algorithm-for-beginners/6" rel="nofollow nore... | I am implementing an android application using different geographic coordinates and I need to solve a problem similar to the traveling salesman. I found an implementation of the algorithm at http://www.theprojectspot.com/tutorial-post/simulated-annealing-algorithm-for-beginners/6 . I adjusted the code to what I need, a... | java|android|shortest-path|simulated-annealing | 0 | 2020-01-31T19:05:18.267Z | 2,020 | 1 | 19 | 4 | 174 | 1 | 861 | 60 | 4 | 0 | false | false | false | false | false | false | zero |
60,010,006 | BitmapFactory: Unable to decode stream: java.io.FileNotFoundException:open failed: EACCES (Permission denied) on Android Q | <p>I granted permissions but <code>BitmapFactory.decodeFile()</code> returns this error:</p>
<pre><code>E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Camera/IMG_20200130_165131.jpg: open failed: EACCES (Permission denied)
</code></pre>
<p>I want to take the last ima... | I granted permissions but BitmapFactory.decodeFile() returns this error: [CODE] I want to take the last image from the gallery and save it to another file. I tested it on the Android P test device it was running on. But it returns this error in android emulator with android version Q (API level 29). What's wrong with t... | java|android|android-10.0 | 10 | 2020-01-31T19:17:55.120Z | 2,020 | 1 | 19 | 4 | 10,707 | 3 | 602 | 122 | 3 | 4 | true | false | true | false | true | false | medium |
60,010,021 | Flutter: I want to open another app from a flutter app, passing some arguments. Is that possible? | <p>I have tried using the flutter package : appavailability, but cannot pass arguments with it.
I have tried url_launcher, but it is helpful to launch only the web urls.
I have tried DeviceApps and android_intent something like this: </p>
<pre><code>```static openApp(String url) async {
bool isInstalled = await De... | I have tried using the flutter package : appavailability, but cannot pass arguments with it. I have tried url_launcher, but it is helpful to launch only the web urls. I have tried DeviceApps and android_intent something like this: [CODE] [CODE] | flutter|android-intent|launch | 1 | 2020-01-31T19:19:22.623Z | 2,020 | 1 | 19 | 4 | 557 | 0 | 244 | 97 | 3 | 2 | true | true | false | false | false | false | low |
60,010,052 | CharArray as Field modify the request data input | <p><strong>Background :</strong> </p>
<ul>
<li>Retrofit version : 2.5.0</li>
<li>RxJava version : 2.2.0</li>
</ul>
<p><strong>Code snippet :</strong></p>
<pre><code>@FormUrlEncoded
@POST("enroll/device")
fun token(@Field("username") username: String, @Field("password") password: CharArray): Single<Token>
priv... | Background : Retrofit version : 2.5.0 RxJava version : 2.2.0 Code snippet : [CODE] Logs login=merchant1&password=1&password=2&password=3&password=4&password=o&password=4&password=A&password=%26 | android|json|kotlin|jackson|retrofit2 | 0 | 2020-01-31T19:22:34.670Z | 2,020 | 1 | 19 | 4 | 111 | 1 | 193 | 48 | 5 | 1 | true | false | false | false | false | false | zero |
60,010,080 | Using GSON for generic Parcelable -- how to retrieve class type | <h2>Caveat</h2>
<p>There may be an easier / smarter way to do this. I'm not a good Android developer. Please advise</p>
<h2>Problem</h2>
<p>I have a library with about 100 different models. I now have to make all of these models parcelable.</p>
<p>Rather than implement <code>writeToParcel</code> for <strong><em>eve... | Caveat There may be an easier / smarter way to do this. I'm not a good Android developer. Please advise Problem I have a library with about 100 different models. I now have to make all of these models parcelable. Rather than implement writeToParcel for every single one , I thought it would be nice if I could just creat... | java|android|parcelable | 1 | 2020-01-31T19:25:11.640Z | 2,020 | 1 | 19 | 4 | 375 | 1 | 801 | 63 | 3 | 2 | true | false | false | false | false | false | low |
60,010,177 | stop asynctask being called twice | <p>I have found my AsyncTask being called twice. To stop this, in my <code>MainActivity</code>,I have defined</p>
<pre><code> public Boolean isloading = false;
</code></pre>
<p>and asynctask is called as:</p>
<pre><code> if (!isloading) {
new GetFlickr(MainActivity.this, imageViewWeakReference, MainActivity.... | I have found my AsyncTask being called twice. To stop this, in my MainActivity ,I have defined [CODE] and asynctask is called as: [CODE] When asynctask was inside the MainActivity class (i.e., in same file), there was no problem setting isloading = true in PreExecute, as: [CODE] But, I have moved asynctask to a seperat... | android|android-asynctask | 0 | 2020-01-31T19:33:41.123Z | 2,020 | 1 | 19 | 4 | 111 | 1 | 383 | 33 | 2 | 3 | true | false | false | false | false | false | zero |
60,010,247 | Kotlin mutableMap automatically changing in android? | <p>I'm setting kotlin mutable map in my viewModel like this,</p>
<pre><code>// In ViewModel
var mapData= mutableMapOf<Int, String>()
</code></pre>
<p>in my fragment i'm referring this map as below,</p>
<pre><code>//In fragment
lateinit var _mapData: MutableMap<Int, String>
// in oncreate View
_mapData[1... | I'm setting kotlin mutable map in my viewModel like this, [CODE] in my fragment i'm referring this map as below, [CODE] When i run above code, this _mapData is automatically updated to my viewModel mapData . I don't want that, Where I'm having real problem is in the below code, [CODE] After running the above code my _m... | android|kotlin | 0 | 2020-01-31T19:38:59.340Z | 2,020 | 1 | 19 | 4 | 198 | 1 | 404 | 52 | 2 | 3 | true | false | false | false | false | false | zero |
60,010,315 | EditText text selection popup has wrong theme on Android 6.0 only | <p>While I was using the <strong>Material components</strong> for <strong>Android</strong> (<a href="https://material.io/develop/android/docs/getting-started/" rel="nofollow noreferrer">https://material.io/develop/android/docs/getting-started/</a>) I was forced to inherit my application theme from "MaterialComponent" i... | While I was using the Material components for Android ( https://material.io/develop/android/docs/getting-started/ ) I was forced to inherit my application theme from "MaterialComponent" instead of the classic "Theme.AppCompat" in order to make the material components work. While I was testing the application with the i... | android|android-edittext|material-design|android-6.0-marshmallow | 2 | 2020-01-31T19:45:24.393Z | 2,020 | 1 | 19 | 4 | 72 | 0 | 615 | 65 | 4 | 0 | false | true | false | false | false | false | low |
60,010,595 | On Android, I cannot get actions.intent.OPEN_APP_FEATURE to work outside the App Actions Test Tool | <p>I'm trying to get the Android Assistant to open my application and pass it a string parameter. Currently I can use the App Actions Test Tool to do that. However, if I open the assistant and type in, or say, <code>open <App Name> <parameter string></code>, I just get web results back. Here is what my acti... | I'm trying to get the Android Assistant to open my application and pass it a string parameter. Currently I can use the App Actions Test Tool to do that. However, if I open the assistant and type in, or say, open <App Name> <parameter string> , I just get web results back. Here is what my actions.xml looks like: [CODE] | android|android-intent|app-actions | 0 | 2020-01-31T20:11:38.437Z | 2,020 | 1 | 20 | 4 | 284 | 1 | 319 | 98 | 3 | 1 | true | false | false | false | false | false | zero |
60,010,606 | Android studio sometimes lags when scrolling | <p>I scroll a lot when looking at code in Android studio and most often scrolling works well. But sometimes it stucks and have to wait about 10s to be able to scroll again. Is there any solution to this problem or maybe anybody experience the same? My PC specs:
<a href="https://i.stack.imgur.com/5Ivhl.png" rel="nofollo... | I scroll a lot when looking at code in Android studio and most often scrolling works well. But sometimes it stucks and have to wait about 10s to be able to scroll again. Is there any solution to this problem or maybe anybody experience the same? My PC specs: | android|android-studio|lag | 0 | 2020-01-31T20:12:29.553Z | 2,020 | 1 | 20 | 4 | 487 | 1 | 258 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
60,010,633 | Trying to choose an image from image gallery from a Fragment - Android | <p>I am trying to pick an image from image gallery using this code from a fragment:</p>
<pre><code> Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Picture"), PICK_IMAGE_CALLBACK);
</code></... | I am trying to pick an image from image gallery using this code from a fragment: [CODE] On my Activity I have placed this code: [CODE] Now the weird thing is that, when I choose an image from image gallery my application closes but not in a way that it shutdown but like when you are in an activity and you press back bu... | android|android-activity | 0 | 2020-01-31T20:14:55.260Z | 2,020 | 1 | 20 | 4 | 36 | 2 | 573 | 70 | 2 | 2 | true | false | false | false | false | false | zero |
60,010,896 | Issue with null Uid using Firebase for a chat function | <p>I received the error </p>
<blockquote>
<p>"java.lang.NullPointerException: Attempt to invoke virtual method
'boolean java.lang.String.equals(java.lang.Object)' on a null object
reference at
com.example.socialapp.ChatActivity$5.onDataChange(ChatActivity.java:255)"</p>
</blockquote>
<p>and I've been searchin... | I received the error "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.example.socialapp.ChatActivity$5.onDataChange(ChatActivity.java:255)" and I've been searching other similar issues other people have had. I'm not s... | java|android|firebase|firebase-realtime-database|nullpointerexception | 0 | 2020-01-31T20:36:20.193Z | 2,020 | 1 | 20 | 4 | 15 | 0 | 728 | 54 | 5 | 3 | true | true | false | false | false | false | zero |
60,010,916 | android app keeps stopping when i try to open on emulator | <p>I am beginner in android development. I created an activity and added a button. Then I added an event listener to open another activity when the button is clicked. So far the two classes are </p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle saved... | I am beginner in android development. I created an activity and added a button. Then I added an event listener to open another activity when the button is clicked. So far the two classes are [CODE] and [CODE] layout file for MainActivity is as follows [CODE] can anyone tell me what is wrong with this? And why does app ... | java|android | 0 | 2020-01-31T20:38:10.637Z | 2,020 | 1 | 20 | 4 | 30 | 1 | 334 | 57 | 2 | 3 | true | false | false | false | false | false | zero |
60,010,997 | how fix android Setters that changes similar array list values? | <p>i have a Arraylist with Getters and Setters:</p>
<pre><code>public class TestList {
String name ;
Double val ;
public TestList(String name, Double val) {
this.name = name;
this.val = val;
}
public String getName() {
return name;
}
public Double getVal() {
... | i have a Arraylist with Getters and Setters: [CODE] i added some data to arraylist : [CODE] Then i use setter to change some value of array list , then i got a problem : [CODE] Out Put of above arraylist [name : val]: [CODE] i want this output,not the above one : [CODE] how can i fix this. i only need to change arrayli... | java|android|arraylist | 0 | 2020-01-31T20:45:43.173Z | 2,020 | 1 | 20 | 4 | 51 | 2 | 527 | 63 | 3 | 7 | true | false | false | false | false | false | zero |
60,011,079 | Get item from new RecyclerView ListAdapter | <p>I updated the adapter for RecyclerViev to the new <code>ListAdapter</code>, but now I don’t understand how to get the clicked object because the adapter no longer has a list of objects. Previously, I used my custom <code>ClickListener</code> interface, which passed to the adapter constructor and next to the viewHold... | I updated the adapter for RecyclerViev to the new ListAdapter , but now I don’t understand how to get the clicked object because the adapter no longer has a list of objects. Previously, I used my custom ClickListener interface, which passed to the adapter constructor and next to the viewHolder, through which I received... | android|kotlin|android-recyclerview|android-listadapter | 0 | 2020-01-31T20:54:06.447Z | 2,020 | 1 | 20 | 4 | 455 | 1 | 376 | 42 | 4 | 1 | true | false | false | false | false | false | zero |
60,011,163 | Use Material design icons library in a FloatingActionButton | <p>I am making an app that uses a <code>FloatingActionButton</code> with a '+' icon, and I am using the <a href="https://materialdesignicons.com/" rel="nofollow noreferrer">Materian Design Icons</a> library to add icons. Is there any way I can use a Material Design icon fro this library in my <code>FloatingActionButton... | I am making an app that uses a FloatingActionButton with a '+' icon, and I am using the Materian Design Icons library to add icons. Is there any way I can use a Material Design icon fro this library in my FloatingActionButton ? My FloatingActionButton code so far is [CODE] I don't have much else because I can't get an ... | android|material-design | 0 | 2020-01-31T21:01:30.830Z | 2,020 | 1 | 21 | 4 | 36 | 1 | 337 | 59 | 2 | 1 | true | false | false | false | false | false | zero |
60,011,186 | Android Background App - Foreground FusedLocationProviderClient Service Stops Providing Location Updates | <p>I've been running into this problem for a couple months now. My android app uses a foreground service (modeled on <a href="https://github.com/android/location-samples/blob/432d3b72b8c058f220416958b444274ddd186abd/LocationUpdatesForegroundService/app/src/main/java/com/google/android/gms/location/sample/locationupdate... | I've been running into this problem for a couple months now. My android app uses a foreground service (modeled on this to track the location of for brief periods. This was working well through Android P, but with the release of Android 10/Q, the foreground service stops sending updates for a period of ten minutes befor... | android|android-10.0|foreground-service|fusedlocationproviderclient|location-updates | 1 | 2020-01-31T21:03:21.127Z | 2,020 | 1 | 21 | 4 | 294 | 0 | 1,664 | 104 | 5 | 0 | false | true | false | false | false | false | low |
60,011,395 | drawerlayout + CoordinatorLayout in xamarin.android | <p>Please help me.<br>
Failed to execute the program with the following code in Xamarin.android:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
... | Please help me. Failed to execute the program with the following code in Xamarin.android: [CODE] Error: [ERROR] FATAL UNHANDLED EXCEPTION: Android.Views.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class TextView ---> Android.Views.InflateException: Binary XML file line #1: Error ... | android|xamarin.android|android-coordinatorlayout|drawerlayout | 0 | 2020-01-31T21:23:04.763Z | 2,020 | 1 | 21 | 4 | 106 | 0 | 464 | 51 | 4 | 1 | true | true | false | false | false | false | zero |
60,011,399 | Errors when trying to set up Data Binding | <p>I am trying to convert an existing java app to utilize Data Binding. I can't seem to get the reference to my view model recognized in the layout xml file.</p>
<p>I have recreated the problem in this very simple example.</p>
<p>I have enabled data binding in my build.gradle file.</p>
<p>When I try to point the Tex... | I am trying to convert an existing java app to utilize Data Binding. I can't seem to get the reference to my view model recognized in the layout xml file. I have recreated the problem in this very simple example. I have enabled data binding in my build.gradle file. When I try to point the TextView's android:text field ... | java|android|data-binding | 2 | 2020-01-31T21:23:26.480Z | 2,020 | 1 | 21 | 4 | 69 | 1 | 591 | 41 | 3 | 3 | true | false | false | false | false | false | low |
60,011,504 | Crash on Fragment change in RecyclerView. I can't find a solution | <p>When i try to change fragment on clickevent, app crash. Im new on Android :). I am trying to change fragment when I click on a menu created in a RecyclerActivity. verything works fine except when I try to change one fragment to another. I tried from the adapter to change the fragment and in a thousand ways but I can... | When i try to change fragment on clickevent, app crash. Im new on Android :). I am trying to change fragment when I click on a menu created in a RecyclerActivity. verything works fine except when I try to change one fragment to another. I tried from the adapter to change the fragment and in a thousand ways but I can't ... | android | 0 | 2020-01-31T21:32:36.660Z | 2,020 | 1 | 21 | 4 | 38 | 1 | 361 | 65 | 1 | 2 | true | false | false | false | false | false | zero |
60,011,516 | WebApi and Xamarin.Forms [Android Emulator] Bad Request | <p>Every time I tried to consume my web Api with my android emulator, It doesn't work.</p>
<p>I tried the simple get values but It didn't work : </p>
<pre><code> public async void Test()
{
HttpClient httpClient = this.HttplicentAccount;
var uploadServiceBaseAdress = "https://192.1... | Every time I tried to consume my web Api with my android emulator, It doesn't work. I tried the simple get values but It didn't work : [CODE] I use : [CODE] To Counter the certficate error. I tried on swagger and the get values was working. But for example When I am starting my android emulator to test my web api is st... | c#|android|visual-studio|xamarin|asp.net-web-api | 2 | 2020-01-31T21:33:29.483Z | 2,020 | 1 | 21 | 4 | 758 | 1 | 336 | 55 | 5 | 2 | true | false | false | false | false | false | low |
60,011,889 | Continue app in a smaller window when person leaves app - Android | <p>How can I create a window for when the person leaves the app they can still use it, but in a small floating window? Very similar to when you leave a face call in Whatsapp.</p> | How can I create a window for when the person leaves the app they can still use it, but in a small floating window? Very similar to when you leave a face call in Whatsapp. | android|xml|kotlin | 0 | 2020-01-31T22:08:16.917Z | 2,020 | 1 | 22 | 4 | 28 | 0 | 171 | 65 | 3 | 0 | false | true | false | false | false | false | zero |
60,011,939 | Android - How to make sure sound output is not picked up by microphone | <p>So I am trying to build a recorder app in Android.
I want to record sound that is spoken to the device while ignoring any sound output that goes out of the phone. </p>
<p>Here is a use case.</p>
<p>The phone plays a song.
The mic turns on, waiting for user's input. The music is still playing.
The user says "Hello ... | So I am trying to build a recorder app in Android. I want to record sound that is spoken to the device while ignoring any sound output that goes out of the phone. Here is a use case. The phone plays a song. The mic turns on, waiting for user's input. The music is still playing. The user says "Hello world" The mic picks... | android|recording | 0 | 2020-01-31T22:14:03.687Z | 2,020 | 1 | 22 | 4 | 349 | 0 | 574 | 70 | 2 | 0 | false | true | false | false | false | false | zero |
60,012,002 | Inject ViewModelProvider.Factory to different Activity using dagger | <p>I have the following activity where a user logs in. When ever the request is successful and the API returns a valid <code>LoggedInUser</code> I would like to navigate to a different activity and still have access to that <code>LoggedInUser</code>.</p>
<p>The following is my loginActivity:</p>
<pre><code>class Logi... | I have the following activity where a user logs in. When ever the request is successful and the API returns a valid LoggedInUser I would like to navigate to a different activity and still have access to that LoggedInUser . The following is my loginActivity: [CODE] The following are my ViewModel and ViewModelFactory: Ma... | android|kotlin|mvvm|dagger-2|dagger | 0 | 2020-01-31T22:20:21.317Z | 2,020 | 1 | 22 | 4 | 795 | 1 | 740 | 67 | 5 | 4 | true | false | false | false | false | false | zero |
60,012,252 | Android WebView: Audio stutters when phone is locked | <p>I have an app that plays audio via <code>HTML5</code> <code><audio></code> in an embedded <code>WebView</code>.</p>
<p>The audio sounds great when the phone is unlocked. However, when the phone is locked, the audio continues playing, but it stutters. How can I fix this?</p>
<p>I see a lot of posts talking ab... | I have an app that plays audio via HTML5 <audio> in an embedded WebView . The audio sounds great when the phone is unlocked. However, when the phone is locked, the audio continues playing, but it stutters. How can I fix this? I see a lot of posts talking about using MediaPlayer in a service to play audio when the phone... | android|audio|android-webview|html5-audio | 2 | 2020-01-31T22:44:15.507Z | 2,020 | 1 | 22 | 4 | 200 | 0 | 459 | 52 | 4 | 0 | false | true | false | false | false | false | low |
60,012,651 | Problem with ImageButton in Android Studio | <p>I try to create two ImageButton in an activity but I can only see one of these. Someone can help me?</p>
<pre><code>activity_ristorante.xml :
?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="h... | I try to create two ImageButton in an activity but I can only see one of these. Someone can help me? [CODE] Class: [CODE] what's errors? I can't see the button even though it's set to "visible" within android studioCan you help me? thank you | java|android|android-studio | 0 | 2020-01-31T23:37:13.463Z | 2,020 | 1 | 23 | 4 | 39 | 1 | 241 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
60,012,701 | Firestore getting the value from different documents | <pre><code>sportsRef.collection("sports").documents [
["bowling" : [
"equipment": "bowling ball, bowling alley, bowling shoes",
"description": "bowl the ball" ]]
["football": [
"equipment": "ball, boots, shin pads, goalie gloves",
"description": "kick the ball in the goal" ]]
["darts": [
"equipment": "darts, dartboar... | [CODE] [CODE] Is there a possible way i can query all the value of the field "description"? | android|google-cloud-firestore | 0 | 2020-01-31T23:46:02.453Z | 2,020 | 1 | 23 | 4 | 44 | 2 | 91 | 52 | 2 | 2 | true | false | false | false | false | false | zero |
60,012,776 | Drop column Room migration android | <p>I have a table Server</p>
<pre><code>@Entity(tableName = "servers")
data class ServerDto(
@PrimaryKey
@ColumnInfo(name = "server_id")
var serverId: Long,
@ColumnInfo(name = "address", defaultValue = "")
var serverAddress: String,
@ColumnInfo(name = "description", defaultValue = "")
va... | I have a table Server [CODE] and a table accounts [CODE] I want to transfer 2 columns (username, password) from accounts to server and then remove them from accounts. I wrote the Migrations but i see that Android Studio does not allow to write DROP COLUMN since it underlines it with red. What is wrong with that?? [CODE... | android-studio|kotlin|migration|android-room | 6 | 2020-01-31T23:58:09.323Z | 2,020 | 1 | 23 | 4 | 4,853 | 2 | 321 | 34 | 4 | 3 | true | false | true | false | false | false | medium |
60,013,144 | Fragment Lifecycle - onCreateView-UI elements | <p>How we can access UI elements of a fragment in oncreateview, as onCreateView is called before onActivity created?<a href="https://i.stack.imgur.com/DPAWJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DPAWJ.jpg" alt="enter image description here"></a></p> | How we can access UI elements of a fragment in oncreateview, as onCreateView is called before onActivity created? | android|fragment | 0 | 2020-02-01T01:04:19.227Z | 2,020 | 2 | 1 | 5 | 26 | 1 | 113 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
60,013,180 | Room library Typeconverter not working in Kotlin | <p>I'm trying to implement <code>TypeConverter</code>, but I'm getting
this error:</p>
<blockquote>
<p>Cannot figure out how to save this field into database. You can consider adding a type converter for it.</p>
</blockquote>
<p>This the data class:</p>
<pre><code>@Entity
data class SubEmergencyData (
@Primar... | I'm trying to implement TypeConverter , but I'm getting this error: Cannot figure out how to save this field into database. You can consider adding a type converter for it. This the data class: [CODE] And this is my TypeConverter: [CODE] Here is the Stepdata [CODE] | android|kotlin|android-room | 0 | 2020-02-01T01:13:04.060Z | 2,020 | 2 | 1 | 5 | 125 | 2 | 265 | 48 | 3 | 3 | true | false | false | false | false | false | zero |
60,013,205 | How to reduce bottom margin in CPCL command? | <p>I tried this command:</p>
<pre><code> //COUPON TICKET...
mPrinter.sendCommand("! 0 200 200 560 1");
mPrinter.sendCommand("CENTER");
mPrinter.sendCommand("TEXT 5 0 48 30 ALTA CITTA");
mPrinter.sendCommand("TEXT 5 0 48 60 SURFACE PAY PARKING");
mP... | I tried this command: [CODE] I tried to remove "FORM Command" and removes the margin but i can`t use "WAIT Command". Thanks in advance! | java|android|printing|zebra-printers | 0 | 2020-02-01T01:17:11.527Z | 2,020 | 2 | 1 | 5 | 74 | 0 | 135 | 44 | 4 | 1 | true | true | false | false | false | false | zero |
60,013,245 | got cannot resolve symbol error when adding new view to fragment programmatically | <p>when I am writing a viewholder as the android guide described, I got error in the </p>
<pre><code> @Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
TextView v = (TextView) (LayoutInflater.from(parent.getContext())
// here got error: cannot resolve symbol my_newly... | when I am writing a viewholder as the android guide described, I got error in the [CODE] as far as I know, here the method inflate accepts 3 parameters: int, viewgroup and boolean. and the int should be the "new view element id", so I just write down a newly id ( my_newly_added_view ) which never exists and totally new... | android | 0 | 2020-02-01T01:26:10.973Z | 2,020 | 2 | 1 | 5 | 53 | 1 | 450 | 81 | 1 | 2 | true | false | false | false | false | false | zero |
60,013,294 | Change size of Tabs in Android TabLayout In Kotlin | <p>I am new to Android and Kotlin. I am trying to develop an app that contains a TabLayout with 2 tabs. The titles are rather large, and no matter what I do, I cannot get things to look right. The app displays in horizontal mode only and so there is plenty of space in the top bar for the titles, but the tab titles a... | I am new to Android and Kotlin. I am trying to develop an app that contains a TabLayout with 2 tabs. The titles are rather large, and no matter what I do, I cannot get things to look right. The app displays in horizontal mode only and so there is plenty of space in the top bar for the titles, but the tab titles appear ... | android|kotlin|android-tablayout | 0 | 2020-02-01T01:43:00.663Z | 2,020 | 2 | 1 | 5 | 466 | 1 | 702 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
60,013,608 | Android update apk programmatically | <p>I have an app on my phone. I was tried to call intent and install new version of apk. I've got error like that "There was a problem parsing the package". If I delete apk from my phone and install apk manually it works fine. What is the problem?</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri ... | I have an app on my phone. I was tried to call intent and install new version of apk. I've got error like that "There was a problem parsing the package". If I delete apk from my phone and install apk manually it works fine. What is the problem? [CODE] screenshot | java|android | 0 | 2020-02-01T02:57:34.403Z | 2,020 | 2 | 2 | 5 | 815 | 1 | 262 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
60,013,763 | i want to add the values which are in my realtime firebase database | <p>this is realtime database where p_price is the product price i want to add to get the total price of the shopping cart</p>
<p><img src="https://i.stack.imgur.com/KTU98.png" alt=""></p>
<p>MainActivity.java</p>
<pre><code>public class MainActivity extends AppCompatActivity {
private DatabaseReference mDatabas... | this is realtime database where p_price is the product price i want to add to get the total price of the shopping cart MainActivity.java [CODE] i want to display the total cart price and do the payment accordingly i am using default arrayadapter.....if someone knows how to make a custom arrayadapter please help me in t... | java|android|firebase|firebase-realtime-database | 0 | 2020-02-01T03:39:08.093Z | 2,020 | 2 | 3 | 5 | 53 | 1 | 327 | 67 | 4 | 1 | true | false | false | false | false | false | zero |
60,013,922 | Android BottomSheet gray grapple/handle bar | <p>I've seen this sort of gray handle bar decoration on BottomSheets in a few popular apps. This is a screenshot of a BottomSheet in Google Maps. Notice the gray handle/gripper at the top of the BottomSheet.</p>
<p>What is the best way to implement a decoration or background like this? Is there a standard material or ... | I've seen this sort of gray handle bar decoration on BottomSheets in a few popular apps. This is a screenshot of a BottomSheet in Google Maps. Notice the gray handle/gripper at the top of the BottomSheet. What is the best way to implement a decoration or background like this? Is there a standard material or Android sty... | android|bottom-sheet|android-bottomsheetdialog | 10 | 2020-02-01T04:08:24.117Z | 2,020 | 2 | 4 | 5 | 2,072 | 3 | 343 | 43 | 3 | 0 | false | false | false | false | true | false | medium |
60,013,939 | How do I programmatically change the color of the hamburger menu icon using hex values in xamarin forms? | <p>I am working on a mvvm light xamarin forms application where i allow the user to create there own theme with in the application itself. As of right now, i have everything working as intended with the exception of the send button(image icon), add button (image icon), and hamburger menu icon. </p>
<p>The user selects... | I am working on a mvvm light xamarin forms application where i allow the user to create there own theme with in the application itself. As of right now, i have everything working as intended with the exception of the send button(image icon), add button (image icon), and hamburger menu icon. The user selects a image/nam... | xamarin.forms|xamarin.android|xamarin.ios|master-detail|hamburger-menu | 0 | 2020-02-01T04:13:10.333Z | 2,020 | 2 | 4 | 5 | 865 | 1 | 1,365 | 104 | 5 | 3 | true | false | false | false | false | false | zero |
60,014,109 | Android Studio Alarm Clock MP3 Song | <p>I'm making an alarm clock. I have the codes below. However, the notification music is working. I want it to play the mp3 file I set. What should I do?</p>
<pre><code>@Override
public void onReceive(Context context, Intent intent)
{
Toast.makeText(context, "Alarm! Wake up! Wake up!", Toast.LENGTH_LON... | I'm making an alarm clock. I have the codes below. However, the notification music is working. I want it to play the mp3 file I set. What should I do? [CODE] | java|android|mp3|alarm | 0 | 2020-02-01T04:51:16.547Z | 2,020 | 2 | 4 | 5 | 1,187 | 1 | 157 | 35 | 4 | 1 | true | false | false | false | false | false | zero |
60,014,144 | Suitable 3rd party libraries to use on android video editing app development? | <p>I am planning to develop an android app for video editing using react-native.
Example: Video cropping, Video rotating, Video frame editing mainly.<br>
I want to know suitable and best libraries for the development also i would like to know if there are any better frameworks to do that.</p>
<p>Thank you!</p> | I am planning to develop an android app for video editing using react-native. Example: Video cropping, Video rotating, Video frame editing mainly. I want to know suitable and best libraries for the development also i would like to know if there are any better frameworks to do that. Thank you! | android|react-native|libraries | 0 | 2020-02-01T04:57:46.223Z | 2,020 | 2 | 4 | 5 | 333 | 1 | 293 | 77 | 3 | 0 | false | false | false | false | false | false | zero |
60,014,273 | Couldn't find meta-data for provider with authority com.scanlibrary.provider | <p>I have imported the <code>scanlibrary</code> module in my app. This module has its own Manifest file with <code>FileProvider</code>.</p>
<p>This is the directory structure:</p>
<p><a href="https://i.stack.imgur.com/IU5sV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IU5sVm.jpg" alt="enter imag... | I have imported the scanlibrary module in my app. This module has its own Manifest file with FileProvider . This is the directory structure: Below is my code to open the camera, and the Manifest files. scanlibrary code to open camera and capture image [CODE] scanlibrary Manifest file [CODE] My app Manifest file [CODE] ... | android|android-camera|android-manifest|android-fileprovider | 2 | 2020-02-01T05:25:47.303Z | 2,020 | 2 | 5 | 5 | 5,026 | 2 | 445 | 76 | 4 | 4 | true | false | true | false | false | false | low |
60,014,297 | How to add fragments dynamically when the no. is not known before hand? | <p>I want to add <strong>n</strong> no. of fragment A to the layout, based on a server response. All fragments have same UI design, but will contain different data. </p>
<p>Do i have to define multiple container for this ? Whats a better approach ?</p>
<pre><code> <FrameLayout
android:id="@+id/your_placeho... | I want to add n no. of fragment A to the layout, based on a server response. All fragments have same UI design, but will contain different data. Do i have to define multiple container for this ? Whats a better approach ? [CODE] I need a vertical scrolling experience , previous fragment should be visible as i scroll | android | -1 | 2020-02-01T05:30:01.600Z | 2,020 | 2 | 5 | 5 | 57 | 3 | 316 | 71 | 1 | 1 | true | false | false | false | false | true | negative |
60,014,458 | html is working but javascript is not working in android version 4.4 | <p>I have a webview and I've loaded the html in that webview from assets. the html contains some javascript. I've also enabled <code>settings.setJavaScriptEnabled(true);</code> in activity.</p>
<p>Javascript is working perfectly in other phones but I tested the app in android version 4.4 and html is loaded properly bu... | I have a webview and I've loaded the html in that webview from assets. the html contains some javascript. I've also enabled settings.setJavaScriptEnabled(true); in activity. Javascript is working perfectly in other phones but I tested the app in android version 4.4 and html is loaded properly but javascript functions i... | javascript|java|android|html | 0 | 2020-02-01T06:02:14.600Z | 2,020 | 2 | 6 | 5 | 79 | 1 | 391 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
60,014,459 | Stop playing audio/radio and cancelled Notification control on back to home screen, music stops, notification stops, foreground service not working | <p><strong>Hello guys, I am making a Radio stream app</strong>, I am stuck in a problem. When I press back button to go phone's home screen it stop playing and disappear notification but when I play and go back to home screen by pressing home button it works well and keep showing notification.<strong><em>I want to show... | Hello guys, I am making a Radio stream app , I am stuck in a problem. When I press back button to go phone's home screen it stop playing and disappear notification but when I play and go back to home screen by pressing home button it works well and keep showing notification. I want to show notification control and cont... | java|android|audio|stream|android-notifications | -1 | 2020-02-01T06:02:31Z | -1 | -1 | -1 | -1 | 561 | 1 | 647 | 147 | 5 | 4 | true | false | false | false | false | true | negative |
60,014,566 | How to transfer a (Mutable)Map to an Data Transfer Object Class in Kotlin? | <p>I have a Firebase project which contains a Firestore collection of tasks that have an associated:</p>
<ul>
<li>taskNumber(<strong>set as the document ID</strong>)</li>
<li>site(name)</li>
<li>status</li>
<li>location(<strong>optional</strong>) </li>
<li>description(<strong>optional</strong>)</li>
<li>notes(<strong>... | I have a Firebase project which contains a Firestore collection of tasks that have an associated: taskNumber( set as the document ID ) site(name) status location( optional ) description( optional ) notes( optional ) long( optional ) lat( optional ) There are additional fields in the Firestore that I do not wish to pass... | android|firebase|dictionary|kotlin|dto | 0 | 2020-02-01T06:22:12.093Z | 2,020 | 2 | 6 | 5 | 428 | 1 | 952 | 74 | 5 | 2 | true | false | false | false | false | false | zero |
60,014,664 | Get font from resources has bug in Java - Android | <p>I write code and use CompatResources to get font and set as TypeFace to views bug Fabric.io reported some crashes about it .</p>
<blockquote>
<p>Caused by android.content.res.Resources$NotFoundException Font
resource ID #0x7f090000 could not be retrieved.</p>
</blockquote>
<p>and it is my code :</p>
<pre><cod... | I write code and use CompatResources to get font and set as TypeFace to views bug Fabric.io reported some crashes about it . Caused by android.content.res.Resources$NotFoundException Font resource ID #0x7f090000 could not be retrieved. and it is my code : [CODE] thanks for your help. | java|android|fonts|resources|typeface | 5 | 2020-02-01T06:41:19.730Z | 2,020 | 2 | 6 | 5 | 1,947 | 1 | 284 | 49 | 5 | 1 | true | false | false | false | false | false | low |
60,014,677 | Android LiveData: Transformation switchMap: Apply filter on the original list and show the filtered data | <pre><code>public class FlightViewModel extends BaseViewModel {
private FlightRepository flightRepository;
private MediatorLiveData<Resource<FlightSearchMainOuterModel>> mSearchFlights = new MediatorLiveData<>();
private MediatorLiveData<Resource<FlightSearchMainOuterModel>> m... | [CODE] In mSearchFlights I'm getting the whole list on which I have to apply filter. After applying one filter the mSearchFlights original list gets filtered even after copying the data in another liveData. So while applying filter second time it works on the filtered list rather than the original one list which is mSe... | java|android|android-livedata|android-architecture-components|android-mvvm | 0 | 2020-02-01T06:43:19.413Z | 2,020 | 2 | 6 | 5 | 1,609 | 1 | 444 | 104 | 5 | 2 | true | false | false | false | false | false | zero |
60,014,724 | Android worker gets cancelled no cause shown | <pre><code>Work [ id=ab50e634-d315-4566-acc2-fe146a7366e2, tags={ in.offline.usecase.Upload****s$Worker, upload/***/now/* } ] was cancelled
java.util.concurrent.CancellationException: Task was cancelled.
at androidx.work.impl.utils.futures.AbstractFuture.cancellationExceptionWithCause(AbstractFuture.java:1184)
... | [CODE] Why work manager developer cannot show the cause for cancellation, this issue is around a year now, they are providing foreground support but not fixing the basic issue. | android|android-workmanager | 5 | 2020-02-01T06:55:02.523Z | 2,020 | 2 | 6 | 5 | 832 | 1 | 176 | 44 | 2 | 1 | true | false | false | false | false | false | low |
60,014,767 | Get Location Permission from User in Android App | <p>I am implementing Access Location from user.Following is my Code. My problem is When I am clicking on Location permission it not getting the location.Bt when i am manually turn on the location from setting after that it giving me the location.My requirement is i Want compulsory check the Location permission from my ... | I am implementing Access Location from user.Following is my Code. My problem is When I am clicking on Location permission it not getting the location.Bt when i am manually turn on the location from setting after that it giving me the location.My requirement is i Want compulsory check the Location permission from my App... | android|android-studio|location|android-permissions | 0 | 2020-02-01T07:01:05.567Z | 2,020 | 2 | 7 | 5 | 685 | 2 | 455 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
60,014,794 | why i am not able to download any html page of any website?(i am using android studio) | <p><code>public class MainActivity extends AppCompatActivity{</code></p>
<p>For downloading html page , This is not even returning failed</p>
<pre><code> public class DownloadTask extends AsyncTask<String,Void,String>{
@Override
protected String doInBackground(String... urls){
... | public class MainActivity extends AppCompatActivity{ For downloading html page , This is not even returning failed [CODE] When I excecute it in OnCreate , I get nothing in Logcat (Here I print the variable in which I store html page.) | java|android|http|url | 1 | 2020-02-01T07:06:18.200Z | 2,020 | 2 | 7 | 5 | 39 | 1 | 234 | 86 | 4 | 1 | true | false | false | false | false | false | low |
60,014,825 | onSensorChanged , Compare sensor data every 10 seconds | <p>My code : </p>
<pre><code>@Override
public void onSensorChanged(SensorEvent event) {
float f1 = event.values[0];
float f2 = event.values[1];
float f3 = event.values[2];
new Handler().postDelayed(new Runnable() {
@Override
publi... | My code : [CODE] I'm trying to compare sensor data every 10 second but postDelayed function does only work first time.After this the toast message is spamming. | java|android|multithreading|sensors | 0 | 2020-02-01T07:12:08.630Z | 2,020 | 2 | 7 | 5 | 132 | 1 | 159 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
60,014,852 | How to make Call permission | <p>I am new in Android...
I need to make call permission.
I wrote user-permission in Manifest, but when I start the app, I need to go to settings to give permission. I want that permission displays in my app like alert dialog.</p>
<p>Can somebody help me to do this? Please</p> | I am new in Android... I need to make call permission. I wrote user-permission in Manifest, but when I start the app, I need to go to settings to give permission. I want that permission displays in my app like alert dialog. Can somebody help me to do this? Please | java|android|user-permissions | -2 | 2020-02-01T07:16:50.093Z | 2,020 | 2 | 7 | 5 | 90 | 1 | 263 | 27 | 3 | 0 | false | false | false | false | false | true | negative |
60,014,865 | My android mobile app doesn't working on android tv | <p>Hello Guys i have make my application first of all for my android mobile but this when i install on my android tv so i am getting an error and it's not working on my android tv but this app perfectly working fine on my mobile how can i run my app on android tv any suggestion please guys help me \
my tv android versi... | Hello Guys i have make my application first of all for my android mobile but this when i install on my android tv so i am getting an error and it's not working on my android tv but this app perfectly working fine on my mobile how can i run my app on android tv any suggestion please guys help me \ my tv android version ... | android|android-studio|android-layout|error-handling|television | 0 | 2020-02-01T07:19:02.517Z | 2,020 | 2 | 7 | 5 | 977 | 1 | 405 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
60,014,916 | How to fix duplicate class issue when importing flutter modules in build gradle inside android? | <p>I have trying to import two flutter modules in the android build.gradle file as shown below : </p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibilit... | I have trying to import two flutter modules in the android build.gradle file as shown below : [CODE] But during gradle build I get the following error : [CODE] How do I fix this duplication issue ? Is there a way to exclude the clashing class from the flutter build process itself so that it doesn't clash when included ... | android|performance|flutter|aar | 0 | 2020-02-01T07:29:22.510Z | 2,020 | 2 | 7 | 5 | 834 | 0 | 321 | 95 | 4 | 2 | true | true | false | false | false | false | zero |
60,014,999 | Firebase data changing forever | <p>im new to making app and trying to make a task list app using android studio, firebase, and kotlin. In MainActivity, i show the list of task that stored in fire base. then there is button to add a new task and store it into firebase. if i click on a task at MainActivity, the app will move to EditTaskActivity, which ... | im new to making app and trying to make a task list app using android studio, firebase, and kotlin. In MainActivity, i show the list of task that stored in fire base. then there is button to add a new task and store it into firebase. if i click on a task at MainActivity, the app will move to EditTaskActivity, which con... | android|firebase|android-studio|kotlin|firebase-realtime-database | 0 | 2020-02-01T07:47:43.660Z | 2,020 | 2 | 7 | 5 | 55 | 2 | 829 | 30 | 5 | 4 | true | false | false | false | false | false | zero |
60,015,025 | Using Firebase Realtime Database to trigger an event for all users to notifydatasetchange on Recyclerview | <p>I have a layout with 8 recyclerviews and 8 imageviews with textviews all of them set to visible with each recyclerview corresponding to a specific user.
<a href="https://i.stack.imgur.com/Lxsgg.png" rel="nofollow noreferrer">8 recyclerviews for 8 users</a></p>
<p>When a user clicks on the empty mic icon, the fireba... | I have a layout with 8 recyclerviews and 8 imageviews with textviews all of them set to visible with each recyclerview corresponding to a specific user. 8 recyclerviews for 8 users When a user clicks on the empty mic icon, the firebase database is updated and seat is assigned in this room with the user's data, the imag... | android|database|firebase|layout|android-recyclerview | 0 | 2020-02-01T07:54:10.380Z | 2,020 | 2 | 7 | 5 | 39 | 0 | 1,034 | 105 | 5 | 1 | true | true | false | false | false | false | zero |
60,015,196 | Android, get all events of other applications in logcat? | <p>How can I get logcat of all events of other applications in a rooted android phone? Actually I want to get if an activity is resumed, paused or destroyed in another application? I know there's not any direct method to do this,so I am trying to get these events in logcat.
I tried a test in terminal.</p>
<pre><code>s... | How can I get logcat of all events of other applications in a rooted android phone? Actually I want to get if an activity is resumed, paused or destroyed in another application? I know there's not any direct method to do this,so I am trying to get these events in logcat. I tried a test in terminal. [CODE] But I couldn'... | android|root|logcat | 0 | 2020-02-01T08:23:07.960Z | 2,020 | 2 | 8 | 5 | 43 | 1 | 519 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
60,015,308 | Trying to display large bitmap images in a RecyclerView Android displays an error setDataSource failed | <p>I'm trying to load images on a RecyclerView using Glide, but I keep getting an error, Glide failed to load the resource even when the image URL seems to be there and when I click on the URL I can view the image.</p>
<p>Here is my FiltersViewHolder code;</p>
<pre><code>public class FiltersViewHolder extends Recycle... | I'm trying to load images on a RecyclerView using Glide, but I keep getting an error, Glide failed to load the resource even when the image URL seems to be there and when I click on the URL I can view the image. Here is my FiltersViewHolder code; [CODE] Here I try to bind the images to the ImageView using Glide; [CODE]... | android|android-recyclerview | 1 | 2020-02-01T08:40:57.177Z | 2,020 | 2 | 8 | 5 | 124 | 0 | 660 | 102 | 2 | 5 | true | true | false | false | false | false | low |
60,015,324 | How to change an API request? | <p>I'm new to android development. I have an example from github <a href="https://github.com/rodion-m/DaDataExample" rel="nofollow noreferrer">here</a>. This example shows a way to interact with server to get suggestions on query.
Currently request body have following form:</p>
<pre><code>{
"query": "m... | I'm new to android development. I have an example from github here . This example shows a way to interact with server to get suggestions on query. Currently request body have following form: [CODE] And i need to edit body like this: [CODE] to make request show me only regions, not full address. Piece of code, where req... | java|android | 1 | 2020-02-01T08:42:39.223Z | 2,020 | 2 | 8 | 5 | 134 | 1 | 673 | 29 | 2 | 5 | true | false | false | false | false | false | low |
60,015,333 | JAVA / How to make an async callback using comletable-future? | <p>I am fetching data from dedicated file HttpHandler. It works, I call my class HttpHandler into a fragment named HomeFragment.</p>
<p>What I'd like to do is to use these data in my HomeFragment. I had been adviced to look at completable-futur and async computation. </p>
<p>What I did, I found some article about it.... | I am fetching data from dedicated file HttpHandler. It works, I call my class HttpHandler into a fragment named HomeFragment. What I'd like to do is to use these data in my HomeFragment. I had been adviced to look at completable-futur and async computation. What I did, I found some article about it. But how to implemen... | java|android-studio|asynchronous|fetch|completable-future | 0 | 2020-02-01T08:44:19.110Z | 2,020 | 2 | 8 | 5 | 1,183 | 2 | 441 | 61 | 5 | 2 | true | false | false | false | false | false | zero |
60,015,348 | How do insert data to content://media/external/audio/albumart through content resolver, if Mediastore.audio.media.data is deprecated? | <p>I am trying to insert bitmap to <code>content://media/external/audio/albumart</code> through Content resolver. But after of running data don't insert and absent exceptions and errors. Later I observed that Mediastore.audio.media.data is deprecated for android. Tell me how fix it. Below example:</p>
<pre><code> priv... | I am trying to insert bitmap to content://media/external/audio/albumart through Content resolver. But after of running data don't insert and absent exceptions and errors. Later I observed that Mediastore.audio.media.data is deprecated for android. Tell me how fix it. Below example: [CODE] | java|android | 1 | 2020-02-01T08:46:16.663Z | 2,020 | 2 | 8 | 5 | 235 | 0 | 289 | 133 | 2 | 1 | true | true | false | false | false | false | low |
60,015,485 | include line only if platform is Android | <p>One problem that I have is that when I navigate to a page containing a form on android the keyboard pops up automatically. I found a solution for it but it only works on Android:</p>
<pre><code>import { View } from "tns-core-modules/ui/core/view";
export class AutoFocusView extends View {
createNativeView() {... | One problem that I have is that when I navigate to a page containing a form on android the keyboard pops up automatically. I found a solution for it but it only works on Android: [CODE] I use this component. but it only works on android so I need to comment it from my code everytime I want to build for IOS. I was wonde... | android|ios|nativescript|nativescript-vue | -2 | 2020-02-01T09:11:11.673Z | 2,020 | 2 | 9 | 5 | 171 | 2 | 352 | 40 | 4 | 1 | true | false | false | false | false | true | negative |
60,015,501 | How do we handle navigation when integrating react-native to an existing native project | <p>I am trying to integrate a react-native project to existing native projects(android and iOS). What are the different options available for acheiving full navigation from native to JS and vice-versa with a single navigation control.</p>
<ol>
<li>Say i want to add just a single .reactNativeActivity and render all of ... | I am trying to integrate a react-native project to existing native projects(android and iOS). What are the different options available for acheiving full navigation from native to JS and vice-versa with a single navigation control. Say i want to add just a single .reactNativeActivity and render all of my ReactNative ac... | android|ios|react-native|react-native-ios | 2 | 2020-02-01T09:14:39.097Z | 2,020 | 2 | 9 | 5 | 59 | 0 | 939 | 87 | 4 | 0 | false | true | false | false | false | false | low |
60,015,621 | Android DetailsSupportFragment focus action programmatically | <p>Im using android leanback library and in DetailFragment I want to do the next - when return on actionadapter focused first action, how can I focused action programmatically?</p>
<p>I know what I must doing it in setOnItemViewSelectedListener</p>
<pre><code>setOnItemViewSelectedListener((itemViewHolder, item, rowV... | Im using android leanback library and in DetailFragment I want to do the next - when return on actionadapter focused first action, how can I focused action programmatically? I know what I must doing it in setOnItemViewSelectedListener [CODE] | android|leanback | 0 | 2020-02-01T09:30:04.300Z | 2,020 | 2 | 9 | 5 | 151 | 0 | 241 | 60 | 2 | 1 | true | true | false | false | false | false | zero |
60,015,683 | Gradle sync failed and ERROR: Failed to parse XML in | <p>I have an error with Gradle. i tried to reboot my computer and the programe but nothing changes. i have the same error saying <code>ParseError at [row,col]:[17,9]
Message: expected start or end tag</code></p>
<p>I tried to find something not normal at the line 17, but for me all is normal.
In the file build.gradle... | I have an error with Gradle. i tried to reboot my computer and the programe but nothing changes. i have the same error saying ParseError at [row,col]:[17,9] Message: expected start or end tag I tried to find something not normal at the line 17, but for me all is normal. In the file build.gradle when i clicked on some l... | android|xml|gradle | 1 | 2020-02-01T09:40:11.583Z | 2,020 | 2 | 9 | 5 | 250 | 1 | 636 | 52 | 3 | 4 | true | false | false | false | false | false | low |
60,015,731 | Android version compatibility for Math.toIntExact Utility method | <p>The <code>Math.toIntExact</code> method is throwing an exception on my Android 6.0 emulator. (More recent emulator versions are ok)</p>
<p><a href="https://docs.microsoft.com/en-us/dotnet/api/java.lang.math.tointexact?view=xamarin-android-sdk-9" rel="nofollow noreferrer">This Microsoft doc</a> is the only doc I fou... | The Math.toIntExact method is throwing an exception on my Android 6.0 emulator. (More recent emulator versions are ok) This Microsoft doc is the only doc I found about it. Am I correct in thinking that Math.toIntExact is not compatible before Android 9.0 ? [CODE] | java|android|utility | 1 | 2020-02-01T09:45:48.047Z | 2,020 | 2 | 9 | 5 | 403 | 1 | 263 | 64 | 3 | 1 | true | false | false | false | false | false | low |
60,016,019 | Why we can set "var name = null" with no error | <p>I just started learning Kotlin and I found a problem I can't understand about Null Safety in Kotlin. I read that variable can't hold null value.</p>
<p>So I made some test about this</p>
<pre><code>var name:String = "Albert"
name = null //error
</code></pre>
<p>Until I try this</p>
<pre><code>var name = null //w... | I just started learning Kotlin and I found a problem I can't understand about Null Safety in Kotlin. I read that variable can't hold null value. So I made some test about this [CODE] Until I try this [CODE] I don't know why I can set var name = null with no error. | android|kotlin|null|kotlin-null-safety | 0 | 2020-02-01T10:29:16.490Z | 2,020 | 2 | 10 | 5 | 226 | 1 | 264 | 46 | 4 | 2 | true | false | false | false | false | false | zero |
60,016,035 | android lock main thread after obfuscating app | <p>I created my app and the app is working correctly in debug mode.after obfuscating a part of application that get codes list and shows in recyclerview not working properly
in this fragment I am going to get the codes list-codes is my parcelable models class-but the main thread lock and nothing works
I tried to preven... | I created my app and the app is working correctly in debug mode.after obfuscating a part of application that get codes list and shows in recyclerview not working properly in this fragment I am going to get the codes list-codes is my parcelable models class-but the main thread lock and nothing works I tried to prevent o... | multithreading|kotlin|proguard|parcelable|android-obfuscation | 0 | 2020-02-01T10:31:30.633Z | 2,020 | 2 | 10 | 5 | 92 | 0 | 624 | 46 | 5 | 3 | true | true | false | false | false | false | zero |
60,016,118 | Pass argment to a nested graph's startDestination | <p>I've created multiple graphs in separate files.</p>
<p>The first one is <strong>GraphA</strong> and it's includes <strong>GraphB</strong>. the <code>startDestination</code> of <strong>GraphB</strong> is <strong>FragmentB</strong> that has an argument named <strong>AnID</strong></p>
<p>Now I want to pass the <stron... | I've created multiple graphs in separate files. The first one is GraphA and it's includes GraphB . the startDestination of GraphB is FragmentB that has an argument named AnID Now I want to pass the AnID from GraphA to GraphB ( FragmentB ) Despite of the editor know about the argument but generated codes don't regard th... | android|navigation|android-navigation-graph | 4 | 2020-02-01T10:42:10.207Z | 2,020 | 2 | 10 | 5 | 938 | 1 | 385 | 49 | 3 | 1 | true | false | false | false | false | false | low |
60,016,303 | Image is displaying in only 1st item in gridview | <p>Image is displaying in only first item in gridview. Below is my GridImageActivity where i am taking the image either from gallery or capturing it from camera. After taking the image, image is setting in only first item of gridview.
How can I display the image in different items of gridview. Any help is appreciated. ... | Image is displaying in only first item in gridview. Below is my GridImageActivity where i am taking the image either from gallery or capturing it from camera. After taking the image, image is setting in only first item of gridview. How can I display the image in different items of gridview. Any help is appreciated. Tha... | android | 1 | 2020-02-01T11:10:21.077Z | 2,020 | 2 | 11 | 5 | 108 | 3 | 439 | 48 | 1 | 4 | true | false | false | false | false | false | low |
60,016,339 | React Native - IOS device screens zoom in issue in standard mode | <ul>
<li>In my React-Native app, I have shown <code>splash screen</code> from react-native and not (<strong>Android/IOS</strong>) natively. </li>
<li>But when splash screen loads it zooms in automatically and the same behavior is for other screens.</li>
<li><p>It works well in <strong>Android</strong> but not in <stron... | In my React-Native app, I have shown splash screen from react-native and not ( Android/IOS ) natively. But when splash screen loads it zooms in automatically and the same behavior is for other screens. It works well in Android but not in IOS . From Xcode(10.1) I have removed LaunchScreen.xib as my splash screen require... | android|ios|xcode|react-native|splash-screen | 3 | 2020-02-01T11:14:46.130Z | 2,020 | 2 | 11 | 5 | 338 | 0 | 350 | 64 | 5 | 0 | false | true | false | false | false | false | low |
60,016,346 | Is it possible to use Android Studio's decompiler from command line? | <p>I'm a begginner in android pentest and I'm using some decompiler like jadx but sometimes It does'nt work on decompiling some classes,</p>
<p>but when I drag and drop the .class file in android studio it decompiles it.</p>
<p>So is there a tool that use the android decompiler to decompile android application ?
Or i... | I'm a begginner in android pentest and I'm using some decompiler like jadx but sometimes It does'nt work on decompiling some classes, but when I drag and drop the .class file in android studio it decompiles it. So is there a tool that use the android decompiler to decompile android application ? Or is there any way to ... | android|android-studio|reverse-engineering|decompiling | 1 | 2020-02-01T11:15:03.690Z | 2,020 | 2 | 11 | 5 | 2,296 | 1 | 414 | 68 | 4 | 0 | false | false | false | false | false | false | low |
60,016,382 | Overriding onInterceptTouchEvent in extension method | <p>Is it possible to override the <code>onInterceptTouchEvent</code> method of <code>ViewPager</code> in an extension method like we do for <code>onTouch</code> Event</p>
<pre><code>fun ViewPager.disableSwiping(): ViewPager {
this.onInterceptTouchEvent = { ... }
this.setOnTouchListener(object : View.OnTouchL... | Is it possible to override the onInterceptTouchEvent method of ViewPager in an extension method like we do for onTouch Event [CODE] | android|kotlin | 0 | 2020-02-01T11:19:32.530Z | 2,020 | 2 | 11 | 5 | 300 | 1 | 131 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
60,016,386 | Nativescript app keeps crashing on android after adding firebase plugin | <p>my nativescript app was working fine until i added firebase plugin. Now, when i run it on my device, it gives the error message '<strong>app has stopped working</strong>' . Please help</p>
<p>this is the plugin i'm using
<a href="https://github.com/EddyVerbruggen/nativescript-plugin-firebase" rel="nofollow noreferr... | my nativescript app was working fine until i added firebase plugin. Now, when i run it on my device, it gives the error message ' app has stopped working ' . Please help this is the plugin i'm using https://github.com/EddyVerbruggen/nativescript-plugin-firebase | android|firebase|nativescript|nativescript-firebase | 1 | 2020-02-01T11:20:10.343Z | 2,020 | 2 | 11 | 5 | 542 | 3 | 261 | 71 | 4 | 0 | false | false | false | false | false | false | low |
60,016,423 | Android.Media.MediaRecorder - delay when recording audio, with sections of silence | <p>Please help solve the problem. To record an audio file, I use Android.Media.MediaRecorder. As a result, I get a section with silence 650 milliseconds at the beginning and at the end of the file. And it turns out that part of the phrase at the beginning and at the end is not recorded, only silence.</p>
<pre><code>pu... | Please help solve the problem. To record an audio file, I use Android.Media.MediaRecorder. As a result, I get a section with silence 650 milliseconds at the beginning and at the end of the file. And it turns out that part of the phrase at the beginning and at the end is not recorded, only silence. [CODE] | c#|android|xamarin|mediarecorder|android-mediarecorder | 0 | 2020-02-01T11:25:14.157Z | 2,020 | 2 | 11 | 5 | 530 | 2 | 305 | 82 | 5 | 1 | true | false | false | false | false | false | zero |
60,016,433 | Loading of asset images in androidTest fails using Picasso/Glide | <p><strong>Short question</strong></p>
<p>How can I sucessfully load an asset image in an androidTest with Picasso or Glide?</p>
<p><strong>Long explaination</strong></p>
<p>In an UI test I want to invoke my application to load images into an ImageView with certain operations applied to them (e.g. cropping, centerin... | Short question How can I sucessfully load an asset image in an androidTest with Picasso or Glide? Long explaination In an UI test I want to invoke my application to load images into an ImageView with certain operations applied to them (e.g. cropping, centering, etc.). To perform the image loading, cropping, etc., I use... | android|testing|assets|picasso|android-glide | 2 | 2020-02-01T11:26:08.750Z | 2,020 | 2 | 11 | 5 | 287 | 0 | 2,786 | 64 | 5 | 3 | true | true | false | false | false | false | low |
60,016,447 | Flutter and Android files | <p>I've using VSCODE for Flutter and android studio for Android codes, but i dont want to use two ide at the same time, since i can't juggle with ides... </p>
<p>If i open Flutter project android studio doesn't complain anything, But if I open file.kt files then android studio complains about SDK was not setup, after ... | I've using VSCODE for Flutter and android studio for Android codes, but i dont want to use two ide at the same time, since i can't juggle with ides... If i open Flutter project android studio doesn't complain anything, But if I open file.kt files then android studio complains about SDK was not setup, after that i setup... | android|android-studio|flutter|visual-studio-code | 0 | 2020-02-01T11:29:23.550Z | 2,020 | 2 | 11 | 5 | 27 | 0 | 477 | 25 | 4 | 0 | false | true | false | false | false | false | zero |
60,016,452 | Android studio "design" part - no upper activity panel visible, only blank screen | <p><a href="https://i.stack.imgur.com/ZWZWz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZWZWz.png" alt="The upper "TestApp" panel is not visible in my design section"></a></p>
<p>Hello,
I am having an issue in Android Studio - when designing an app, I dont see the upper panel of the ap... | Hello, I am having an issue in Android Studio - when designing an app, I dont see the upper panel of the app, it is only visible in the emulator, other people seem to have in their design section (Youtube,..) Can someone help me to see the green panel in the design section? | java|android|android-studio|android-layout|android-emulator | 1 | 2020-02-01T11:29:52.840Z | 2,020 | 2 | 11 | 5 | 82 | 2 | 274 | 81 | 5 | 0 | false | false | false | false | false | false | low |
60,016,541 | Is there any way in Android Q to move an image from Gallery to another album using Java? | <p>I'm doing an app for Android using Java, and I need to move an image from Camera album to another album programmatically. It is possible in Android P and lower versions. But, I am looking for Android Q. Because of Scoped Storage concept I couldn't find any solution. I don't want to make a copy of them, I just want t... | I'm doing an app for Android using Java, and I need to move an image from Camera album to another album programmatically. It is possible in Android P and lower versions. But, I am looking for Android Q. Because of Scoped Storage concept I couldn't find any solution. I don't want to make a copy of them, I just want to m... | java|android|storage|image-gallery|android-10.0 | 1 | 2020-02-01T11:44:33.350Z | 2,020 | 2 | 11 | 5 | 78 | 0 | 369 | 88 | 5 | 0 | false | true | false | false | false | false | low |
60,016,554 | build XML button in android studio | <p>how can I build a FAB button like this one to expand a view in android studio with XML?</p>
<p><a href="https://i.stack.imgur.com/NB2TO.png" rel="nofollow noreferrer">this is the button I need to build</a></p> | how can I build a FAB button like this one to expand a view in android studio with XML? this is the button I need to build | android|xml|user-interface|kotlin|button | -1 | 2020-02-01T11:46:37.810Z | 2,020 | 2 | 11 | 5 | 33 | 1 | 122 | 34 | 5 | 0 | false | false | false | false | false | true | negative |
60,016,587 | I want to get the size of all Video list from external and internal storage? | <p>I build an app in which we can delete the duplicate file from external and internal storage. I am able to get all images, videos, songs, and files from phone and external storage. But now I want the size of each image which I get from list of storage.</p>
<p>MainActivity</p>
<pre><code> package com.deitel.dupli... | I build an app in which we can delete the duplicate file from external and internal storage. I am able to get all images, videos, songs, and files from phone and external storage. But now I want the size of each image which I get from list of storage. MainActivity [CODE] VideoMethod.class [CODE] VideoRecyclerAdapter.Cl... | android|size | 1 | 2020-02-01T11:52:30.917Z | 2,020 | 2 | 11 | 5 | 700 | 0 | 373 | 76 | 2 | 5 | true | true | false | false | false | false | low |
60,016,600 | URL is not loading in webview android | <p>I am developing an android app for my website and in the webview i need to load (<a href="https://dl.flipkart.com/dl/flipstart-days-store?affid=admingopai&affExtParam2=75&affExtParam1=10317EE844E611E&1580556780117=1" rel="nofollow noreferrer">https://dl.flipkart.com/dl/flipstart-days-store?affid=admingop... | I am developing an android app for my website and in the webview i need to load ( https://dl.flipkart.com/dl/flipstart-days-store?affid=admingopai&affExtParam2=75&affExtParam1=10317EE844E611E&1580556780117=1 ) url. but it doesn't load it is showing a blank page. It is getting loaded in web browser and android brower to... | android|webview|cleartext | 0 | 2020-02-01T11:54:17.820Z | 2,020 | 2 | 11 | 5 | 60 | 0 | 602 | 37 | 3 | 2 | true | true | false | false | false | false | zero |
60,016,659 | React Native error: Super expression must either be null or a function | <p>I get the error when i trie to run this app on my Android Emulator. I changed "Component" to "React.Component" but then i get other Problems.
My versions of React, Node and JS are the newest.
The Problem is that im new and have this Code from a Viedo and he didnt got thet Mistake.</p>
<p><em>Without React.Component... | I get the error when i trie to run this app on my Android Emulator. I changed "Component" to "React.Component" but then i get other Problems. My versions of React, Node and JS are the newest. The Problem is that im new and have this Code from a Viedo and he didnt got thet Mistake. Without React.Component: With React.Co... | react-native|error-handling|android-emulator|runtime-error | 0 | 2020-02-01T12:02:03.970Z | 2,020 | 2 | 12 | 5 | 488 | 1 | 356 | 70 | 4 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.