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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,904,739 | Html.fromHtml deprecated in Android N | <p>I am using <code>Html.fromHtml</code> to view html in a <code>TextView</code>.</p>
<pre><code>Spanned result = Html.fromHtml(mNews.getTitle());
...
...
mNewsTitle.setText(result);
</code></pre>
<p>But <code>Html.fromHtml</code> is now deprecated in Android N+</p>
<p>What/How do I find the new way of doing this?</... | I am using Html.fromHtml to view html in a TextView . [CODE] But Html.fromHtml is now deprecated in Android N+ What/How do I find the new way of doing this? | android|deprecated|android-7.0-nougat | 384 | 2016-06-19T07:00:12.687Z | 2,016 | 6 | 7 | 6 | 199,426 | 15 | 156 | 37 | 3 | 1 | true | false | true | true | true | false | high |
37,986,754 | How to remove (Android) app title bar in Xamarin.Forms? | <p>Is there any chance that I can remove the title bar of the app in Xamarin.Forms? I am working on a Xamarin.Forms Portable project. I tried a lot of solutions, but neither worked, I couldn't even start the app.</p>
<p><strong>First attempt</strong> I tried adding this to my AndroidManifest.xml, didn't work:</p>
<pr... | Is there any chance that I can remove the title bar of the app in Xamarin.Forms? I am working on a Xamarin.Forms Portable project. I tried a lot of solutions, but neither worked, I couldn't even start the app. First attempt I tried adding this to my AndroidManifest.xml, didn't work: [CODE] Second attempt I tried creati... | c#|android|xaml|xamarin.forms | 11 | 2016-06-23T08:55:50.510Z | 2,016 | 6 | 8 | 3 | 11,266 | 7 | 577 | 55 | 4 | 4 | true | false | true | false | true | false | medium |
37,603,104 | Keeping a view at the bottom with the SlidingUpPanel library | <p>I am using the <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="noreferrer"><code>SlidingUpPanel</code> library</a> in one of my <code>Media Player</code> apps.</p>
<p>In the slide panel, I have the media controls and I would like to display the track's artwork on top. The problem I am having is that I... | I am using the SlidingUpPanel library in one of my Media Player apps. In the slide panel, I have the media controls and I would like to display the track's artwork on top. The problem I am having is that I would like the media controls to always stay at the bottom of the screen (even while the user is dragging the pane... | java|android|android-layout | 11 | 2016-06-02T22:22:48.857Z | 2,016 | 6 | 22 | 3 | 3,080 | 5 | 973 | 60 | 3 | 2 | true | false | true | false | true | false | medium |
37,689,903 | Animators may only be run on Looper threads Android | <p>I'm trying to animate something when a task is completed. The problem here is I get this error message: </p>
<pre><code>android.util.AndroidRuntimeException: Animators may only be run on Looper threads
at android.animation.ValueAnimator.cancel(ValueAnimator.java:1004)
at android.view.ViewPropertyAnimator.anim... | I'm trying to animate something when a task is completed. The problem here is I get this error message: [CODE] The app worked fine before with the same exact code but now it simply doesn't. I'm really confused. Here's where the error happens: [CODE] The error outlines the loading.animate() method. Thanks in advance! | java|android|multithreading|android-animation | 43 | 2016-06-07T21:44:15.637Z | 2,016 | 6 | 21 | 1 | 44,552 | 6 | 317 | 51 | 4 | 2 | true | false | true | true | true | false | high |
37,909,312 | RecyclerView inside a ScrollView/NestedScrollView does not scroll properly | <p>I have a layout which has a <code>CardView</code> and a <code>FloatingActionButton</code> associated with it. There is a list of replies below the <code>CardView</code> (which is a <code>RecyclerView</code>). Sometimes the <code>CardViews'</code> height is greater than the screen, so I have used <code>layout_height=... | I have a layout which has a CardView and a FloatingActionButton associated with it. There is a list of replies below the CardView (which is a RecyclerView ). Sometimes the CardViews' height is greater than the screen, so I have used layout_height="wrap_content" for the CardView and wrapped the whole LinearLayout inside... | android|android-recyclerview|scrollview | 9 | 2016-06-19T16:19:33.483Z | 2,016 | 6 | 16 | 6 | 19,212 | 6 | 718 | 74 | 3 | 1 | true | false | true | true | false | false | medium |
37,718,739 | Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled. | <p>If the <strong>"Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled."</strong> issue occurs while using the latest Gradle Plugin & Latest Android SDK. You can use the below solution as mentioned in the screenshot</p>
<p><a href="https://i.stack.imgur.com/61aeW.png"><... | If the "Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled." issue occurs while using the latest Gradle Plugin & Latest Android SDK. You can use the below solution as mentioned in the screenshot In your gradle file just enable 3 options as per the diagram (default always al... | android|android-studio | 57 | 2016-06-09T06:51:24.363Z | 2,016 | 6 | 6 | 3 | 84,240 | 5 | 527 | 97 | 2 | 0 | false | false | true | true | true | false | high |
37,942,674 | unable to get the registered id from gcm | <ul>
<li><p>I am using this <a href="http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/" rel="nofollow">Android
hive</a>
tutorial to get the push notification.</p></li>
<li><p>I couldn't get the registration id from gcm because GCMIntentService
class is runnni... | I am using this Android hive tutorial to get the push notification. I couldn't get the registration id from gcm because GCMIntentService class is runnning after register id becomes null in mainActivity. Registration id is always null when executing the mainActivity.After sometime only I am getting the registration id f... | android|google-cloud-messaging | 2 | 2016-06-21T11:01:56.443Z | 2,016 | 6 | 11 | 1 | 787 | 5 | 651 | 40 | 2 | 3 | true | false | false | false | false | false | low |
38,037,773 | Java Lambda expressions: Why should I use them? | <p>I heard that it's a concept named Lambda expressions in C# and it's added in java 8.
I'm android developer so it's my concern that why this concept added to Java. Certainly it have a good advantage but I could not find out that.</p>
<p>I Implement it to my project by adding this to Cradle:</p>
<pre><code>android ... | I heard that it's a concept named Lambda expressions in C# and it's added in java 8. I'm android developer so it's my concern that why this concept added to Java. Certainly it have a good advantage but I could not find out that. I Implement it to my project by adding this to Cradle: [CODE] and write some Lambda Express... | java|android|lambda | 0 | 2016-06-26T10:55:51.503Z | 2,016 | 6 | 10 | 6 | 2,071 | 6 | 426 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
37,775,213 | Adding pull to refresh on webview for refreshing | <p>I will add pull to refresh on my webview so it refresh my webview. i have seen all questions on this page but i can't find the good way to add pull to refresh... </p>
<p>Mainactivity.java</p>
<pre><code>package com.vvhvb.hesselfeenstra.vvheerenveenseboys;
import android.os.Bundle;
import android.support.v7.app.Ap... | I will add pull to refresh on my webview so it refresh my webview. i have seen all questions on this page but i can't find the good way to add pull to refresh... Mainactivity.java [CODE] content_main.xml [CODE] I hope anyone can help me and solve this problem for me. | java|android|android-studio|webview|pull-to-refresh | 29 | 2016-06-12T14:12:50.777Z | 2,016 | 6 | 14 | 6 | 54,040 | 8 | 267 | 48 | 5 | 2 | true | false | true | true | true | false | high |
37,836,383 | Android: Firebase token is null at first run | <p>I am using FCM to provide notifications in my app. Everything worked well, but now I realised that, when I install my application using Android Studio (not from GooglePlay) the token is null at first run. When I close my app and restart it, the token is not null anymore. What cause this problem and how can I avoid i... | I am using FCM to provide notifications in my app. Everything worked well, but now I realised that, when I install my application using Android Studio (not from GooglePlay) the token is null at first run. When I close my app and restart it, the token is not null anymore. What cause this problem and how can I avoid it? ... | android|firebase|firebase-cloud-messaging | 33 | 2016-06-15T13:07:51.677Z | 2,016 | 6 | 13 | 2 | 43,819 | 10 | 472 | 44 | 3 | 3 | true | false | true | true | true | false | high |
37,698,501 | retrofit 2 @path Vs @query | <p>I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying parameters.In my method that generated the XML resource is below. </p>
<pre><code>@GET
@Path("/foods")
@Produces(MediaType.APPLICATION_XML)
public List<FoodPy... | I am new to retrofit 2 library.I read several articles to get started as a beginner and I managed to fetch XML data from my RESTful API without specifying parameters.In my method that generated the XML resource is below. [CODE] Now when I tried to pass parameter in the interface [CODE] It failed to run,no data was rece... | java|android|rest|retrofit2 | 96 | 2016-06-08T09:27:54.940Z | 2,016 | 6 | 9 | 2 | 80,684 | 8 | 569 | 26 | 4 | 3 | true | false | true | true | true | false | high |
37,743,661 | Firebase No properties to serialize found on class | <p>I'm bloqued creating a Firebase Database. </p>
<p>I'm trying to model a class. A very simple class:</p>
<pre><code>package com.glups.model;
import com.google.firebase.database.IgnoreExtraProperties;
@IgnoreExtraProperties
public class AlumnoFB {
private String nombre;
private String apellidos;
priva... | I'm bloqued creating a Firebase Database. I'm trying to model a class. A very simple class: [CODE] that is almost like a sample class from Firebase. Application user obtained from getUser() has been logged on Firebase. When I call SetValue: [CODE] A fatal exception raises. [CODE] I've checked types, and all are accepte... | java|android|firebase|firebase-realtime-database | 98 | 2016-06-10T08:37:54.663Z | 2,016 | 6 | 8 | 4 | 50,989 | 12 | 336 | 50 | 4 | 3 | true | false | true | true | true | false | high |
38,011,707 | How to modify a textview of the fragment from parent activity in android | <p>In my activity, i have created added some fragments</p>
<pre><code>public class MainActivity extends AppCompatActivity implements IabBroadcastListener{
static ViewPagerAdapter adapter;
....
adapter = new ViewPagerAdapter(getSupportFragmentManager());
adapter.addFragment(new MainFragment(), "\uE602"... | In my activity, i have created added some fragments [CODE] how can i modify like a textview of the fragment from my activity ? Im trying to get the view of the MainFragment from the parent activity [CODE] | android|android-fragments|android-activity|view | 1 | 2016-06-24T10:54:14.830Z | 2,016 | 6 | 10 | 4 | 1,838 | 5 | 204 | 72 | 4 | 2 | true | false | false | false | false | false | low |
37,817,537 | This view is not constrained | <p>I get the following error and I am using Android studio 2.2 Preview 3. I searched Google but couldn't find any resources.</p>
<pre><code>Error: This view is not constrained, it only has design time positions, so it will jump to (0,0) unless you add constraints
</code></pre>
<p><a href="https://i.stack.imgur.com/nC... | I get the following error and I am using Android studio 2.2 Preview 3. I searched Google but couldn't find any resources. [CODE] [CODE] | java|android|layout | 104 | 2016-06-14T16:31:07.880Z | 2,016 | 6 | 16 | 1 | 197,167 | 12 | 135 | 28 | 3 | 2 | true | false | true | true | true | false | high |
37,620,473 | React Native error: Element type is invalid: expected a string or a class/function but got: object | <p>I am getting this error and I am having a lot of trouble fixing this.</p>
<p>What I am trying to do here is have 3 different screens and have a tabbar that navigates to each screen.</p>
<p>Here is my index:</p>
<pre><code>import React, { Component } from 'react';
import { AppRegistry, Navigator, StyleSheet, View,... | I am getting this error and I am having a lot of trouble fixing this. What I am trying to do here is have 3 different screens and have a tabbar that navigates to each screen. Here is my index: [CODE] here is my SwitchView: [CODE] | javascript|android|reactjs|react-native | 58 | 2016-06-03T17:39:28.387Z | 2,016 | 6 | 17 | 4 | 74,033 | 17 | 229 | 98 | 4 | 2 | true | false | true | true | true | false | high |
37,792,333 | How can I use Firebase cloud message in an eclipse project? | <p>I have a project in eclipse. I need include <a href="https://console.firebase.google.com/" rel="noreferrer">firebase</a> library. If I was using Android Studio the steps would simply be:</p>
<p><a href="https://i.stack.imgur.com/CzQgu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CzQgu.png" alt="enter i... | I have a project in eclipse. I need include firebase library. If I was using Android Studio the steps would simply be: And its all, all library include. But I cant understand how include firebase cloud message to eclipse. I cant find how include it to eclipse. | java|android|eclipse|firebase|firebase-cloud-messaging | 7 | 2016-06-13T14:27:22.997Z | 2,016 | 6 | 14 | 0 | 18,739 | 5 | 260 | 59 | 5 | 0 | false | false | true | true | false | false | medium |
37,819,278 | Android Espresso - Click checkbox if not checked | <p>I have <code>onView(withId(R.id.check_box)).perform(click())</code>, but i only want to do this if the check box is not already checked. How can I do this in espresso?</p> | I have onView(withId(R.id.check_box)).perform(click()) , but i only want to do this if the check box is not already checked. How can I do this in espresso? | android|testing|checkbox|android-espresso | 27 | 2016-06-14T18:12:09.337Z | 2,016 | 6 | 18 | 1 | 17,207 | 6 | 155 | 48 | 4 | 0 | false | false | true | true | true | false | high |
37,693,664 | Inserting and updating SharedPreferences | <p>I have a help_view that have to show only once when user first open the app when installed. When user uninstall the application and re install it the view must show.</p>
<p>I tried to implement this by shared preferences. See below by code ; </p>
<pre><code> private void gotoMainActivity() {
Shared... | I have a help_view that have to show only once when user first open the app when installed. When user uninstall the application and re install it the view must show. I tried to implement this by shared preferences. See below by code ; [CODE] I realize I have to update shared preference when first login. Please help me ... | android|sharedpreferences | 0 | 2016-06-08T05:06:03.417Z | 2,016 | 6 | 5 | 2 | 63 | 5 | 331 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
37,653,037 | Android How to call Fragment from my Main Activity | <p>i am very new to android development.</p>
<p>in my case i have one main activity and one fragment created.Main activity as two buttons.</p>
<p>when i click on button, my fragment should load .how can i achieve that?</p>
<p>Mainactivity .XML
</p>
<pre><code><Button
android:layout_width="wrap_content"... | i am very new to android development. in my case i have one main activity and one fragment created.Main activity as two buttons. when i click on button, my fragment should load .how can i achieve that? Mainactivity .XML [CODE] Main activity .java [CODE] fragment_fragment1.xml [CODE] Fragment1.java [CODE] Not done much ... | java|android|android-fragments | 9 | 2016-06-06T08:43:09.607Z | 2,016 | 6 | 8 | 0 | 89,156 | 6 | 556 | 50 | 3 | 4 | true | false | true | true | false | false | medium |
37,754,591 | Getting 'User does not have Permission to access this object. Code: -13021 HttpResult: 403' error. Please see details | <p>I am trying to download some images from FirebaseStorage. </p>
<p>Though I am authenticating user through google, I'm still getting this
error: </p>
<pre><code>E/StorageException: StorageException has occurred. User does not have permission to access this object. Code: -13021 HttpResult: 403
</code></pre>
<p>wh... | I am trying to download some images from FirebaseStorage. Though I am authenticating user through google, I'm still getting this error: [CODE] when trying to download the images. Here's the rules: [CODE] Has anybody got answer for this? | android|firebase|firebase-realtime-database|firebase-security | 2 | 2016-06-10T18:02:36.020Z | 2,016 | 6 | 18 | 4 | 14,411 | 6 | 236 | 117 | 4 | 2 | true | false | true | true | false | false | low |
38,009,524 | how to divide the string based on the # in android? | <p>I have a string like "#123#456 #abc". my requirement is dividing the string into tokens based on the #.
So my result tokens are #123,#456,#abc.</p>
<p>How to divide the string in android?</p> | I have a string like "#123#456 #abc". my requirement is dividing the string into tokens based on the #. So my result tokens are #123,#456,#abc. How to divide the string in android? | android|string|token|stringtokenizer | -4 | 2016-06-24T09:06:47.830Z | 2,016 | 6 | 9 | 4 | 77 | 5 | 180 | 51 | 4 | 0 | false | false | false | false | false | true | negative |
37,828,376 | Android Open external UVC camera instead hardware camera | <p>i need to open external UVC camera with</p>
<p>Camera.open(CameraId);</p>
<p>but not working</p>
<p>Please help? </p> | i need to open external UVC camera with Camera.open(CameraId); but not working Please help? | android|android-camera | 9 | 2016-06-15T07:09:08.227Z | 2,016 | 6 | 7 | 2 | 20,558 | 6 | 91 | 56 | 2 | 0 | false | false | true | true | false | false | medium |
71,324,714 | Breakpoints not working with Flutter in Android Studio | <p>I can set breakpoints, but when I run in Debug mode the breakpoint's icon change with this:</p>
<p><a href="https://i.stack.imgur.com/SU9wF.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/SU9wF.jpg" alt="enter image description here" /></a></p>
<p>I think that the problem is the new version of Flutter plug... | I can set breakpoints, but when I run in Debug mode the breakpoint's icon change with this: I think that the problem is the new version of Flutter plugin in Android Studio, but I'm not sure. How to fix this? What I've tried: flutter clean android studio cache clean and restart | flutter|android-studio|breakpoints | 13 | 2022-03-02T14:52:04.823Z | 2,022 | 3 | 14 | 2 | 3,372 | 5 | 277 | 54 | 3 | 0 | false | false | true | false | true | false | medium |
53,689,759 | Retrofit - Android - Handling multiple type keys and values with gson | <p>So I've been having some trouble with an api that I want to consume from my application when dealing with multiple types from the keys and values of the response json.</p>
<p>Let me show you the json response: </p>
<pre><code>{
"error":[
],
"result":{
"field1":[
[
1544258160,
... | So I've been having some trouble with an api that I want to consume from my application when dealing with multiple types from the keys and values of the response json. Let me show you the json response: [CODE] and here is the representation of the pojo class: [CODE] I know that the current structure fails to represent ... | android|json|gson|retrofit|retrofit2 | 0 | 2018-12-09T05:49:09.837Z | 2,018 | 12 | 5 | 6 | 1,537 | 5 | 497 | 69 | 5 | 4 | true | false | false | false | false | false | zero |
53,572,110 | Flutter: Push notifications even if the app is closed | <p>I have built an application with flutter that works like a reminder.<br>
How can I display notifications to the user even though the app is closed?</p> | I have built an application with flutter that works like a reminder. How can I display notifications to the user even though the app is closed? | push-notification|flutter|apple-push-notifications|android-notifications|mobile-application | 54 | 2018-12-01T15:07:20.340Z | 2,018 | 12 | 15 | 5 | 96,776 | 6 | 143 | 53 | 5 | 0 | false | false | true | true | true | false | high |
53,719,014 | Native Base Toast - TypeError: TypeError: TypeError: null is not an object (evaluating 'this.toastInstance._root.getModalState') | <p>I am using react native to build a mobile app. I am facing a Nativ Base Toast issue. When I first load application and then navigate to ticket status, if I go back to a home page with an android back button, following error popup.</p>
<p>Below are my code and error screenshot.</p>
<p><strong>NOTE</strong> - This e... | I am using react native to build a mobile app. I am facing a Nativ Base Toast issue. When I first load application and then navigate to ticket status, if I go back to a home page with an android back button, following error popup. Below are my code and error screenshot. NOTE - This error does not come every time. Any h... | javascript|android|react-native|native-base|android-toast | 2 | 2018-12-11T07:03:56.033Z | 2,018 | 12 | 7 | 1 | 4,623 | 6 | 440 | 128 | 5 | 2 | true | false | true | false | false | false | low |
53,476,115 | Error : IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents | <p>Below are my dependencies</p>
<pre><code>implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
</code></pre>
<p>My layout.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<... | Below are my dependencies [CODE] My layout.xml [CODE] The Above code is working fine for me But when i update the dependencies of material design [CODE] I'm getting below error: [CODE] | android|android-layout|material-design|bottombar | 84 | 2018-11-26T07:02:02.897Z | 2,018 | 11 | 7 | 0 | 58,128 | 12 | 184 | 116 | 4 | 4 | true | false | true | true | true | false | high |
53,736,016 | Customizing new Android MaterialButton for Google SignIn | <p>Before migrating to <code>AndroidX / MaterialComponents</code>, I had customized the <code>Buttons</code> to look like this.</p>
<p><a href="https://i.stack.imgur.com/Wmgyo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wmgyo.png" alt="enter image description here"></a>
Custom <code>Google SignI... | Before migrating to AndroidX / MaterialComponents , I had customized the Buttons to look like this. Custom Google SignIn button : [CODE] Upon migrating to new MaterialComponents , I couldn't customize the MaterialButton to look the same way. The specific challenge I'm facing is, I couldn't set Google icon, and also the... | android|material-components | 2 | 2018-12-12T04:19:19.407Z | 2,018 | 12 | 4 | 2 | 1,821 | 6 | 439 | 56 | 2 | 2 | true | false | false | false | false | false | low |
53,583,369 | HTTP Post request with content type application/x-www-form-urlencoded not working in Spring boot service | <p>I am new to spring boot recently i am trying to do HTTP POST request from one android application through retrofit2 rest API library with application/x-www-form-url encoded but when i hit my spring boot POST service it shows me below error</p>
<blockquote>
<p>"status":415,"error":"Unsupported Media
Type","excep... | I am new to spring boot recently i am trying to do HTTP POST request from one android application through retrofit2 rest API library with application/x-www-form-url encoded but when i hit my spring boot POST service it shows me below error "status":415,"error":"Unsupported Media Type","exception":"org.springframework.w... | java|android|spring|spring-boot|retrofit2 | 1 | 2018-12-02T18:36:44.383Z | 2,018 | 12 | 18 | 6 | 19,233 | 5 | 1,124 | 104 | 5 | 6 | true | false | true | true | false | false | low |
53,458,821 | Why is my FloatingActionButton icon black? | <p>Following is the code I'm using. I'm using androidx. Every FAB has a black icon, even if it has a white color.</p>
<p>mylayout.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns... | Following is the code I'm using. I'm using androidx. Every FAB has a black icon, even if it has a white color. mylayout.xml [CODE] style.xml [CODE] | android|android-layout|androidx | 83 | 2018-11-24T13:50:28.350Z | 2,018 | 11 | 13 | 5 | 28,452 | 6 | 147 | 42 | 3 | 2 | true | false | true | true | true | false | high |
53,523,318 | Renew StableIdKeyProvider cache and RecyclerView/SelectionTracker crash on new selection after item removed | <p>Preparation:</p>
<p><code>RecyclerView</code> with <code>RecyclerView.Adapter</code> binded to SQLite <code>Cursor</code> (via <code>ContentProvider</code> && Loader). <code>RecyclerView</code> and <code>RecyclerView.Adapter</code> linked with <code>SelectionTracker</code> as <a href="https://developer.andro... | Preparation: RecyclerView with RecyclerView.Adapter binded to SQLite Cursor (via ContentProvider && Loader). RecyclerView and RecyclerView.Adapter linked with SelectionTracker as design suggests . SelectionTracker builded with StableIdKeyProvider . On first step - delete an item: Select RecyclerViews 's an item with a ... | java|android|android-recyclerview | 12 | 2018-11-28T15:50:43.120Z | 2,018 | 11 | 15 | 2 | 3,628 | 7 | 1,577 | 107 | 3 | 3 | true | false | true | false | true | false | medium |
53,532,406 | activeNetworkInfo.type is deprecated in API level 28 | <p><a href="https://i.stack.imgur.com/Jfwwh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Jfwwh.png" alt="enter image description here"></a>I want to use the Connectivity manager which provide the method activeNetworkInfo.type for checking the type of network in Android. This method was deprecated in API le... | I want to use the Connectivity manager which provide the method activeNetworkInfo.type for checking the type of network in Android. This method was deprecated in API level 28. so what is the solution to check network type in API 28. my code is : [CODE] My Gradle is like : [CODE] | android|kotlin|deprecated|android-connectivitymanager | 81 | 2018-11-29T05:27:48.153Z | 2,018 | 11 | 5 | 3 | 43,830 | 16 | 279 | 52 | 4 | 2 | true | false | true | true | true | false | high |
53,363,893 | XML vs JSON vs SQLite for only reading data | <p>I have a collection of 350 locations in the United States with each containing about 25 subcategories. The data structure looks something like this:</p>
<pre><code>Location (ex: Albany, NY)
--> Things to do
--> Population
... 23 More
</code></pre>
<p>Which of the following would be best for loadi... | I have a collection of 350 locations in the United States with each containing about 25 subcategories. The data structure looks something like this: [CODE] Which of the following would be best for loading this data into the app: JSON, XML, or SQLite? Just to clarify, I don't need to edit this data in any way. I simply ... | java|android | 6 | 2018-11-18T17:57:57.357Z | 2,018 | 11 | 17 | 6 | 2,616 | 9 | 717 | 43 | 2 | 1 | true | false | true | false | false | false | medium |
44,071,080 | Could not find com.android.tools.build:gradle:3.0.0-alpha1 in circle ci | <p>I updated the gradle plugin to the latest version : <code>com.android.tools.build:gradle:3.0.0-alpha1</code> and this error occured in AS:</p>
<pre><code>export TERM="dumb"
if [ -e ./gradlew ]; then ./gradlew test;else gradle test;fi
FAILURE: Build failed with an exception.
What went wrong:
A proble... | I updated the gradle plugin to the latest version : com.android.tools.build:gradle:3.0.0-alpha1 and this error occured in AS: [CODE] Current CI config circle.yml [CODE] Edit: My gradle file : [CODE] | android|android-studio|gradle|build|circleci | 174 | 2017-05-19T13:13:02.603Z | 2,017 | 5 | 13 | 4 | 215,300 | 15 | 198 | 71 | 5 | 3 | true | false | true | true | true | false | high |
44,159,819 | How to dismiss an AlertDialog on a FlatButton click? | <p>I have the following <code>AlertDialog</code>.</p>
<pre><code>showDialog(
context: context,
child: new AlertDialog(
title: const Text("Location disabled"),
content: const Text(
"""
Location is disabled on this device. Please enable it and try aga... | I have the following AlertDialog . [CODE] How can I make _dismissDialog() dismiss said AlertDialog ? | android|ios|flutter|flutter-alertdialog | 136 | 2017-05-24T13:28:54.767Z | 2,017 | 5 | 13 | 2 | 111,112 | 17 | 100 | 52 | 4 | 1 | true | false | true | true | true | false | high |
44,121,908 | Android Studio 3.0 Canary 1: Gradle Sync Error | <p>I'm getting this error in my Kotlin project:</p>
<p><a href="https://i.stack.imgur.com/barjO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/barjO.png" alt="Gradle error"></a></p>
<p>Here is my app's Gradle files:</p>
<p><a href="https://i.stack.imgur.com/cUIyp.png" rel="nofollow noreferrer"><i... | I'm getting this error in my Kotlin project: Here is my app's Gradle files: I haven't really done anything to the project yet except add Kotlin and Anko dependencies. Not sure what's happening... | android|android-studio|gradle|anko | 2 | 2017-05-22T20:47:38.557Z | 2,017 | 5 | 20 | 0 | 1,290 | 5 | 195 | 46 | 4 | 0 | false | false | false | false | false | false | low |
44,016,702 | Redux usecase in react native application | <p>I am learning <a href="http://redux.js.org/" rel="nofollow noreferrer">redux</a> to implement in my <code>react-native</code> android application. I see it helps to maintain state in an application. </p>
<p>For instance if user has logged then it helps to save user state to logged to true kinda. I hope I took corre... | I am learning redux to implement in my react-native android application. I see it helps to maintain state in an application. For instance if user has logged then it helps to save user state to logged to true kinda. I hope I took correct example. I see react-native has AsyncStorage also where we can save this also wheth... | android|react-native|redux|react-redux | 1 | 2017-05-17T05:58:18.320Z | 2,017 | 5 | 5 | 2 | 269 | 5 | 715 | 41 | 4 | 0 | false | false | false | false | false | false | low |
44,007,653 | Android Cannot resolve symbol '?attr/selectableItemBackground' | <pre><code><android.support.v7.widget.CardView
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/card_outer_padding"
android:layout_marginTop="@dimen/card_outer_padding"
android:layout_marginRight="@dimen/car... | [CODE] I got this error message Cannot resolve symbol ?attr/selectableItemBackground Validates resource references inside Android XML files. [CODE] And, I got a similar error for the above as well Cannot resolve symbol '@style/TextAppearance.AppCompat.Headline' Validates resource references inside Android XML files. An... | android|android-xml | 54 | 2017-05-16T17:10:05.243Z | 2,017 | 5 | 17 | 1 | 18,702 | 10 | 424 | 62 | 2 | 2 | true | false | true | true | true | false | high |
44,364,657 | Can't use debugger for xamarin android project: System.IO.FileNotFoundException: Could not load file or assembly Mono.Posix | <p>After upgrading my visual studio 2017 to <code>15.2v (26430.12)</code></p>
<p><code>Xamarin.Android SDK 7.3.1.2 (9dbc4c5)</code></p>
<p>Can't use the debugger anymore. The project builds successfully and deployment finishes but then this error happens:</p>
<blockquote>
<p>Could not load file or assembly Mono.Po... | After upgrading my visual studio 2017 to 15.2v (26430.12) Xamarin.Android SDK 7.3.1.2 (9dbc4c5) Can't use the debugger anymore. The project builds successfully and deployment finishes but then this error happens: Could not load file or assembly Mono.Posix Full error message: | android|visual-studio|xamarin | 6 | 2017-06-05T08:21:29.793Z | 2,017 | 6 | 8 | 0 | 1,295 | 5 | 275 | 123 | 3 | 0 | false | false | false | false | false | false | medium |
44,236,842 | Kotlin - equivalence to Swift's combination of "if let + cast" | <p>I'm trying to find out how to achieve the combination of "if let + cast" in kotlin:</p>
<p>in swift:</p>
<pre><code>if let user = getUser() as? User {
// user is not nil and is an instance of User
}
</code></pre>
<p>I saw some documentation but they say nothing regarding this combination</p>
<p><a href="https... | I'm trying to find out how to achieve the combination of "if let + cast" in kotlin: in swift: [CODE] I saw some documentation but they say nothing regarding this combination https://medium.com/@adinugroho/unwrapping-sort-of-optional-variable-in-kotlin-9bfb640dc709 https://kotlinlang.org/docs/reference/null-safety.html | android|kotlin | 26 | 2017-05-29T07:28:30.760Z | 2,017 | 5 | 7 | 0 | 11,026 | 5 | 319 | 62 | 2 | 1 | true | false | true | false | true | false | high |
44,046,877 | How to import Room Persistence Library to an Android project | <p>I recently saw the new feature announced on Google I/O Room Persistence Library to work with Sqlite databases on Android. I have been looking to the <a href="https://developer.android.com/topic/libraries/architecture/room.html" rel="noreferrer">official documentation</a> and I don't find which dependencies I should ... | I recently saw the new feature announced on Google I/O Room Persistence Library to work with Sqlite databases on Android. I have been looking to the official documentation and I don't find which dependencies I should import to my gradle file on my Android project. Someone can give me a hand? | android|sqlite|android-sqlite|android-room | 52 | 2017-05-18T11:46:05.720Z | 2,017 | 5 | 11 | 3 | 54,036 | 13 | 292 | 60 | 4 | 0 | false | false | true | true | true | false | high |
44,069,128 | setContentview() change layout in onConfigurationChanged() but not set the Data in android | <p>I have created two layouts for portrait and landscape mode, My scenario is I want to change the Text of TextView based on the orientation changes. here is my code:-</p>
<p>AndroidManifest.xml:</p>
<pre><code><activity android:name=".MainActivity"
android:configChanges="orientation|screenSize|keyboardHid... | I have created two layouts for portrait and landscape mode, My scenario is I want to change the Text of TextView based on the orientation changes. here is my code:- AndroidManifest.xml: [CODE] activity_main.xml (portrait) [CODE] activity_main.xml (landscape): [CODE] MainActivity: [CODE] } For the First Time, it shows t... | android|xml|orientation|landscape|portrait | 1 | 2017-05-19T11:40:37.623Z | 2,017 | 5 | 11 | 4 | 2,327 | 5 | 485 | 90 | 5 | 4 | true | false | false | false | false | false | low |
43,992,506 | How to fix "couldn't follow symbolic link" in Android Studio? | <p>I'm now running an Android App project on Windows and running into the condition </p>
<blockquote>
<p>Error:Could not list contents of
'D:\source\App\src\main\res\drawable'. Couldn't follow symbolic link.</p>
</blockquote>
<p>after did the clean build.</p>
<p>Android Studio states the drawable file is a broke... | I'm now running an Android App project on Windows and running into the condition Error:Could not list contents of 'D:\source\App\src\main\res\drawable'. Couldn't follow symbolic link. after did the clean build. Android Studio states the drawable file is a broken symbolic link. I just check other related post online but... | android-studio|symlink | 8 | 2017-05-16T04:27:28.267Z | 2,017 | 5 | 4 | 1 | 11,035 | 5 | 451 | 61 | 2 | 0 | false | false | true | false | false | false | medium |
43,928,118 | Outdated Kotlin Runtime warning in Android Studio | <p>After downloaded and installed latest Kotlin plugin I have <strong>Outdated Kotlin Runtime</strong> warning from Android Studio that telling me:</p>
<blockquote>
<p>Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2' library is
1.1.2, while plugin version is 1.1.2-release-Studio2.3-3. Runtime library should... | After downloaded and installed latest Kotlin plugin I have Outdated Kotlin Runtime warning from Android Studio that telling me: Your version of Kotlin runtime in 'kotlin-stdlib-1.1.2' library is 1.1.2, while plugin version is 1.1.2-release-Studio2.3-3. Runtime library should be updated to avoid compatibility problems. ... | android|android-studio|kotlin|kotlin-android-extensions | 167 | 2017-05-12T01:53:43.923Z | 2,017 | 5 | 1 | 4 | 83,739 | 15 | 533 | 49 | 4 | 0 | false | false | true | true | true | false | high |
44,013,098 | Xamarin.Android.Support.Fragment, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? | <p>I attempted to use Xamarin.Android.Support libraries version 25.3.1 but because of a bug I decided to downgrade back to my previous version 23.3.0. After Downgrading I am getting this error message below. whatever I tried, i cant get rid of it. I tried to delete all bin, obj, tmp etc folders. restarted VS2015, clean... | I attempted to use Xamarin.Android.Support libraries version 25.3.1 but because of a bug I decided to downgrade back to my previous version 23.3.0. After Downgrading I am getting this error message below. whatever I tried, i cant get rid of it. I tried to delete all bin, obj, tmp etc folders. restarted VS2015, clean,re... | xamarin|xamarin.android|xamarin.forms | 7 | 2017-05-16T23:16:39.467Z | 2,017 | 5 | 23 | 1 | 11,806 | 6 | 833 | 143 | 3 | 3 | true | false | true | true | false | false | medium |
44,270,504 | React Native iOS and Android folders not present | <p>I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating the project with npm, I get some starting files (App.js etc.) and a node_modules folder. I've got it up and running w... | I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating the project with npm, I get some starting files (App.js etc.) and a node_modules folder. I've got it up and running with... | android|ios|react-native|expo | 81 | 2017-05-30T19:34:12.043Z | 2,017 | 5 | 19 | 1 | 103,212 | 14 | 882 | 48 | 4 | 0 | false | false | true | true | true | false | high |
43,964,339 | Android String format not working | <p>I have a problem with <code>String.format</code> In android I want replace <strong>{ 0 }</strong> with my id.
My this code not working:</p>
<pre><code>String str = "abc&id={0}";
String result = String.format(str, "myId");
</code></pre> | I have a problem with String.format In android I want replace { 0 } with my id. My this code not working: [CODE] | java|android|string|format | 2 | 2017-05-14T13:17:58.067Z | 2,017 | 5 | 13 | 6 | 1,070 | 5 | 112 | 33 | 4 | 1 | true | false | false | false | false | false | low |
44,145,363 | Animate visibility of a view from gone to visible with animation | <p>I have a view that is <code>invisible</code> by default(Just for the first time).</p>
<p>Now I need to switch the visibility to <code>VISIBLE</code> with this <code>animation</code>:</p>
<pre><code>if (myView.getVisibility() == View.INVISIBLE) {
myView.setVisibility(View.VISIBLE);
myView.animate().translat... | I have a view that is invisible by default(Just for the first time). Now I need to switch the visibility to VISIBLE with this animation : [CODE] (Like the SnackBar default animation) But this isn't working. It will turn visible with default animation Is there any simple way that I could achieve this? Note I'm animating... | android|animation|android-animation|visibility | 26 | 2017-05-23T21:30:26.817Z | 2,017 | 5 | 21 | 1 | 45,873 | 5 | 358 | 64 | 4 | 2 | true | false | true | true | true | false | high |
44,355,452 | Google play app signing key hash | <p>I have opted for google play app signing and i understand that google changes the signing keys for the app and I found the Sha 1 certificate but couldnt find the keyhash .</p>
<p>How can i get the keyhash of my released app is there a way to extract it from the certificate?</p> | I have opted for google play app signing and i understand that google changes the signing keys for the app and I found the Sha 1 certificate but couldnt find the keyhash . How can i get the keyhash of my released app is there a way to extract it from the certificate? | android|google-play | 59 | 2017-06-04T15:00:50.533Z | 2,017 | 6 | 15 | 6 | 28,210 | 5 | 267 | 32 | 2 | 0 | false | false | true | true | true | false | high |
44,263,732 | Using Realm and Remote Debugging fails on android | <p>Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields.</p>
<p><a href="https://i.stack.imgur.com/p3vGK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p3vGK.png" alt="en... | Importing and using Realm on react native works fine for iOS. Android also works in terms of functionality, however, when using remote debugging on chrome the following error yields. I've looked around almost everywhere and nobody seems to have a clear cut answer for this. Anyone here that has managed to get out of thi... | javascript|android|reactjs|react-native|realm | 3 | 2017-05-30T13:31:24.230Z | 2,017 | 5 | 13 | 1 | 2,876 | 6 | 489 | 49 | 5 | 0 | false | false | true | false | false | false | low |
44,361,824 | How can I represent a "many to many" relation with Android Room when column names are same? | <p>How can I represent a "many to many" relation with <code>Room</code>? My column names are also the same.</p>
<p>e.g. I have <code>Guest</code> and <code>Reservation</code>. <code>Reservation</code> can have many <code>Guest</code>'s and a <code>Guest</code> can be part of many Reservations.</p>
<p>Here are... | How can I represent a "many to many" relation with Room ? My column names are also the same. e.g. I have Guest and Reservation . Reservation can have many Guest 's and a Guest can be part of many Reservations. Here are my entity definitions: [CODE] While looking into docs I came across @Relation . I found it ... | android|kotlin|android-room|android-architecture-components | 65 | 2017-06-05T04:47:42.360Z | 2,017 | 6 | 4 | 0 | 33,086 | 6 | 571 | 91 | 4 | 3 | true | false | true | true | true | false | high |
43,973,267 | Best approach for handling same layouts for different activities | <p>I have been working on application which has <strong>3 types</strong> of accounts related to it. We create a <strong>single layout</strong> and <code>view/hide</code> items on it depending on, from which account you are currently logged in.</p>
<p>With this approach, we have <code>activities/fragments</code> <stron... | I have been working on application which has 3 types of accounts related to it. We create a single layout and view/hide items on it depending on, from which account you are currently logged in. With this approach, we have activities/fragments doing a lot of different things , they handle all cases wrapped in if/else ch... | android|design-patterns|architecture | 1 | 2017-05-15T07:01:20.853Z | 2,017 | 5 | 7 | 0 | 71 | 5 | 689 | 64 | 3 | 0 | false | false | false | false | false | false | low |
37,708,463 | How to get trace when Android phone crashes while developing in react-native | <p>I upgraded a 2013 Nexus 4 to Android 5.1, and I am using it to develop a react-native Android app with a <a href="https://github.com/ideacreation/react-native-barcodescanner" rel="nofollow">https://github.com/ideacreation/react-native-barcodescanner</a>, using the Navigator component for navigation. </p>
<p>Here is... | I upgraded a 2013 Nexus 4 to Android 5.1, and I am using it to develop a react-native Android app with a https://github.com/ideacreation/react-native-barcodescanner , using the Navigator component for navigation. Here is my react version [CODE] After an initial deploy of react-native run-android, I would typically run ... | android|react-native | 1 | 2016-06-08T16:50:34.840Z | 2,016 | 6 | 16 | 2 | 259 | 0 | 1,308 | 76 | 2 | 2 | true | true | false | false | false | false | low |
37,618,315 | Send a file to server asp in android using http | <p>Server side</p>
<pre><code>public class FileController : ApiController
{
public HttpResponseMessage PostFile()
{
var httpRequest = HttpContext.Current.Request;
if (httpRequest.Files.Count > 0)
{
foreach (string file in httpRequest.Files)
{
... | Server side [CODE] Client side [CODE] I had already a file in Internal, and i want send it to server. response.getStatusLine().getStatusCode() alway is 404, "Page not found", i tried: [CODE] Anyone know what i went wrong ? or what thing exacly in that url ? I references two link below: Server Side Android Side | android|asp-classic|sendfile | 1 | 2016-06-03T15:31:48.590Z | 2,016 | 6 | 15 | 4 | 260 | 0 | 311 | 47 | 3 | 3 | true | true | false | false | false | false | low |
37,811,030 | Facing issue with ionic web-socket connection with java socket server | <p>I am facing issue with websocket on Ionic
connection with "ionic serve" working perfect. but when i try with "ionic run android"(which is connected with WiFi) getting below given error.</p>
<pre><code>"WebSocket connection to 'ws://192.168.1.7:8086/wsConn' failed: Error in connection establishment: net::ERR_CONNEC... | I am facing issue with websocket on Ionic connection with "ionic serve" working perfect. but when i try with "ionic run android"(which is connected with WiFi) getting below given error. [CODE] "192.168.1.7" is my server ip address. I tested server running on window 10 and window server 2012 both. tried with turning off... | java|android|sockets|ionic-framework|firewall | 1 | 2016-06-14T11:42:42.643Z | 2,016 | 6 | 11 | 1 | 261 | 0 | 371 | 69 | 5 | 1 | true | true | false | false | false | false | low |
37,878,474 | SSL Handshake failed on Android 6 | <p>I need to get a content from website through https connection. I have used the below code to connect the website with desktop application but its getting failed on Android 6. I have searched for many days however found no result(I tried to add intermediate CA and root CA but the same result). Please anyone help me o... | I need to get a content from website through https connection. I have used the below code to connect the website with desktop application but its getting failed on Android 6. I have searched for many days however found no result(I tried to add intermediate CA and root CA but the same result). Please anyone help me out.... | java|android|ssl|ssl-certificate|tls1.2 | 2 | 2016-06-17T09:52:09.030Z | 2,016 | 6 | 9 | 4 | 262 | 0 | 406 | 33 | 5 | 1 | true | true | false | false | false | false | low |
38,053,212 | Gradle Error: Not able to use gradle | <p>Installed gradle version 2.10 from using HomeBrew and the Offical Zip file.</p>
<p>Trying to run command: gradle --version (or any other command)</p>
<p>Getting error:</p>
<pre><code>FAILURE: Build failed with an exception.
* What went wrong:
org.slf4j.impl.Log4jLoggerFactory cannot be cast to org.gradle.logging... | Installed gradle version 2.10 from using HomeBrew and the Offical Zip file. Trying to run command: gradle --version (or any other command) Getting error: [CODE] Stacktrace: [CODE] | java|gradle|android-gradle-plugin|build-tools | 3 | 2016-06-27T11:49:47.520Z | 2,016 | 6 | 11 | 0 | 262 | 0 | 179 | 36 | 4 | 2 | true | true | false | false | false | false | low |
37,711,926 | TiHTTPClient: (java.net.ProtocolException): exceeded content-length limit of 439 bytes | <p>When submitting a POST request using the HTTPClient for user's authentification in my android app version, i got an error : </p>
<pre><code>TiHTTPClient: (java.net.ProtocolException): exceeded content-length limit of 439 bytes
</code></pre>
<p>this is the request code : </p>
<pre><code>var xhr = Titanium.Network.... | When submitting a POST request using the HTTPClient for user's authentification in my android app version, i got an error : [CODE] this is the request code : [CODE] The few solutions i found was to remove the setContentLength like in this answer for a similar question but i didn't find how to flush the buffer as it sai... | android|appcelerator-titanium|androidhttpclient | 2 | 2016-06-08T20:06:00.690Z | 2,016 | 6 | 20 | 2 | 1,030 | 0 | 505 | 86 | 3 | 2 | true | true | false | false | false | false | low |
37,819,432 | Android tts in talk back mode | <p>I try to speak phrase consecutive in tts. In onDone() method my syntezator start speak next phrase. But in talkback mode tss stoped on accessebility event. Is the way to detect end of accessebility event and restore tts playing?</p> | I try to speak phrase consecutive in tts. In onDone() method my syntezator start speak next phrase. But in talkback mode tss stoped on accessebility event. Is the way to detect end of accessebility event and restore tts playing? | android|text-to-speech|talkback | 1 | 2016-06-14T18:21:37.323Z | 2,016 | 6 | 18 | 1 | 264 | 0 | 228 | 29 | 3 | 0 | false | true | false | false | false | false | low |
37,906,215 | MongoDB: ObjectId object delivered to an android app through REST API | <p>I have an server that runs mongoDB as my backend database. In one of the rest APIs, I'm returning the ObjectId to my android app.</p>
<p>In javascript, it looks like this: <code>"_id" : ObjectId("570957abc002e4a2bd56c57f")</code>. </p>
<p>In JSON, it looks like this:</p>
<pre><code> "my_object_id": {
"timest... | I have an server that runs mongoDB as my backend database. In one of the rest APIs, I'm returning the ObjectId to my android app. In javascript, it looks like this: "_id" : ObjectId("570957abc002e4a2bd56c57f") . In JSON, it looks like this: [CODE] I don't know how to convert this back to ObjectId in android. Of course,... | java|android|json|mongodb | 5 | 2016-06-19T10:24:58.033Z | 2,016 | 6 | 10 | 6 | 520 | 0 | 1,285 | 69 | 4 | 1 | true | true | false | false | false | false | low |
37,642,336 | Initialize google firebase connection in app engine | <p>I would like to initialize a firebase database connection in a cron job. However I only found the old document which is not updated after the new firebase release in May. Can anyone please let me know how I can establish google firebase connection in app engine? (Should we use the firebase server SDK?)</p>
<p><a hr... | I would like to initialize a firebase database connection in a cron job. However I only found the old document which is not updated after the new firebase release in May. Can anyone please let me know how I can establish google firebase connection in app engine? (Should we use the firebase server SDK?) https://cloud.go... | android|google-app-engine|firebase|firebase-realtime-database | 1 | 2016-06-05T13:14:48.807Z | 2,016 | 6 | 13 | 6 | 265 | 0 | 391 | 51 | 4 | 0 | false | true | false | false | false | false | low |
37,700,524 | Hiding the navigation bar in Android, strange issue | <p>I am hiding the navigation bar on a certain activity so i can make use of the full screen.</p>
<p>About My App.</p>
<p>I have two login screens, the first one is a full login that takes all details, the second is a partial login which only asks for password based on having already gone through the main login page.... | I am hiding the navigation bar on a certain activity so i can make use of the full screen. About My App. I have two login screens, the first one is a full login that takes all details, the second is a partial login which only asks for password based on having already gone through the main login page. I have used this c... | android|user-interface|navigationbar | 1 | 2016-06-08T10:55:03.197Z | 2,016 | 6 | 10 | 2 | 265 | 0 | 1,400 | 51 | 3 | 2 | true | true | false | false | false | false | low |
37,781,146 | How to show FPS meter in Chrome on (Android) settop box? | <p>I want to show video's FPS using HTML5 tag in Chrome on settop box(android)</p>
<p>In Chrome 29, I can use <code>chrome://flags/#show-fps-counter</code> to use FPS meter.
But latest Version(50.+), I can't find it any more.</p>
<p>How to show FPS meter on android settop box?</p> | I want to show video's FPS using HTML5 tag in Chrome on settop box(android) In Chrome 29, I can use chrome://flags/#show-fps-counter to use FPS meter. But latest Version(50.+), I can't find it any more. How to show FPS meter on android settop box? | android|google-chrome|frame-rate|television | 7 | 2016-06-13T02:46:54.403Z | 2,016 | 6 | 2 | 0 | 778 | 0 | 247 | 56 | 4 | 0 | false | true | false | false | false | false | medium |
π» StackOverflow-778K: Multi-Year Developer Q&A Dataset
Dataset Summary
A large-scale Stack Overflow question dataset containing 778,929 unique questions sampled across 7 years (2015β2022). Each question includes the raw HTML body, plain-text version, tags, score, view count, answer count, and a rich set of derived features for immediate ML use.
Collected across 8 sampling runs on Feb 27 2026, deduplicated to 778,929 unique questions with only 2 duplicates removed.
π Files in This Dataset
| File | Format | Rows | Description |
|---|---|---|---|
| stackoverflow_778k_full.csv | CSV | 778,929 | Complete dataset |
| stackoverflow_unanswered.csv | CSV | 224,733 | Questions with 0 answers |
| stackoverflow_with_code.csv | CSV | 595,679 | Questions containing code blocks |
| stackoverflow_high_quality.csv | CSV | 20,205 | Score β₯ 5 and answered |
| stackoverflow_python.csv | CSV | 107,083 | Python-tagged questions |
| stackoverflow_javascript.csv | CSV | 87,367 | JavaScript-tagged questions |
| stackoverflow_java.csv | CSV | 54,077 | Java-tagged questions |
| stackoverflow_csharp.csv | CSV | 40,420 | C#-tagged questions |
| stackoverflow_android.csv | CSV | 42,004 | Android-tagged questions |
| *.jsonl versions | JSONL | same | HuggingFace-native format for all above |
ποΈ Schema Reference
| Column | Type | Description |
|---|---|---|
| id | int64 | Unique Stack Overflow question ID |
| title | string | Question title |
| question_body | string | Raw HTML body (includes <pre><code> blocks) |
| body_text | string | Plain text body (HTML stripped, code replaced with [CODE]) |
| tags | string | Pipe-separated tags e.g. python|pandas|dataframe |
| score | int64 | Net upvotes (can be negative) |
| creation_date | string | ISO 8601 UTC creation timestamp |
| year | int32 | Year extracted from creation_date |
| month | int32 | Month (1β12) |
| hour | int32 | Hour of day (0β23, UTC) |
| dayofweek | int32 | Day of week (0=Monday, 6=Sunday) |
| view_count | int64 | Total question views |
| answer_count | int64 | Number of answers received |
| body_len | int64 | Plain text body character length |
| title_len | int64 | Title character length |
| tag_count | int64 | Number of tags (1β5) |
| code_block_cnt | int64 | Number of <pre> code blocks in body |
| has_code | bool | True if question contains at least one code block |
| is_unanswered | bool | True if answer_count == 0 |
| is_popular | bool | True if view_count > 95th percentile (~2,599) |
| is_viral | bool | True if view_count > 99th percentile (~11,513) |
| is_highly_voted | bool | True if score >= 10 |
| is_negative | bool | True if score < 0 |
| score_bucket | string | "negative" / "zero" / "low" / "medium" / "high" |
π Dataset Statistics
Overview
- Total questions: 778,929
- Date range: 2015-02-14 β 2022-09-25
- Missing years: 2019, 2021 (sampling gaps)
- Unique tags: 41,754
- Zero nulls in all core columns (2 questions have empty tags)
Score Distribution
- Mean: 0.69 | Median: 0 | Std: 4.77
- Range: -27 to 1,061
- Negative score: 63,415 (8.14%)
- Zero score: 461,977 (59.31%) β majority never upvoted
- Score β₯ 10: 7,431 (0.95%)
- Score β₯ 100: 246 (0.032%)
View Count Distribution
- Mean: 794 | Median: 66 | P95: 2,599 | P99: 11,513
- Max: 915,870 views
- Popular (>P95): 38,944 (5.00%)
- Viral (>P99): 7,789 (1.00%)
Answer Count
- Unanswered: 224,733 (28.85%)
- 1 answer: 387,399 (49.73%)
- 2+ answers: 166,797 (21.42%)
- Max answers on a single question: 36
Question Body
- Has code block: 595,679 (76.47%)
- Avg code blocks per question: 1.56
- Avg body length: 557 chars | Median: 447 chars
- Avg title length: 59 chars
Tags
- Avg tags per question: 3.01
- 5 tags (SO max): 117,671 (15.1%)
- 1 tag: 92,409 (11.9%)
Questions Per Year
- -1: 2,694
- 2015: 99,664
- 2016: 120,887
- 2017: 20,791
- 2018: 20,096
- 2020: 99,676
- 2022: 415,121 (Note: 2017/2018 low counts reflect sampling focus; 2022 dominates at 53%)
Top 10 Tags
- python (98,154)
- javascript (87,156)
- java (53,052)
- c# (40,178)
- android (38,543)
- html (36,572)
- php (34,656)
- reactjs (31,727)
- css (24,770)
- r (21,694)
Unanswered Rate by Top Tags
- node.js: 36.46% unanswered (hardest to answer)
- reactjs: 35.31%
- flutter: 33.44%
- typescript: 31.19%
- android: 30.49%
- python: 28.69%
- java: 26.88%
- css: 19.59% (easiest to get answered)
- jquery: 18.30%
β οΈ Known Issues & Caveats
YEAR GAPS: Years 2019 and 2021 are absent β this is a sampling artifact, not a gap in SO activity. Do not use for temporal trend analysis without noting this.
2022 DOMINANCE: 415,121 questions (53%) are from 2022. The dataset skews heavily toward recent questions. Stratify by year if balance matters.
RAW HTML:
question_bodycontains raw HTML including<,>,<pre><code>blocks. Usebody_textfor NLP tasks. Usequestion_bodyfor HTML-aware or code-extraction tasks.SCORE SKEW: 59.3% of questions have score=0. Mean (0.69) is misleading. Use
score_bucketoris_highly_votedfor classification tasks.VIEW COUNT SKEW: Mean (794) is 12Γ the median (66) due to viral questions. Use log-transformed view_count for regression tasks.
PIPE-SEPARATED TAGS: The
tagscolumn uses|as delimiter e.g.python|pandas|dataframe. Split withstr.split("|")before use.CODE PLACEHOLDER: In
body_text, all<pre>...</pre>blocks are replaced with the token[CODE]. The original HTML is preserved inquestion_body.DUPLICATE IDs: 2 exact duplicates were found and removed during processing.
π Quick Start
pandas
import pandas as pd
# Full dataset
df = pd.read_csv("data/stackoverflow_778k_full.csv")
# High quality only (score >= 5, answered)
hq = pd.read_csv("data/stackoverflow_high_quality.csv")
# Python questions only
py = pd.read_csv("data/stackoverflow_python.csv")
# Unanswered questions (good for difficulty modeling)
ua = pd.read_csv("data/stackoverflow_unanswered.csv")
# Split tags into list
df["tag_list"] = df["tags"].str.split("|")
# Filter by year
df_2022 = df[df["year"] == 2022]
# Log-transform view count for regression
import numpy as np
df["log_views"] = np.log1p(df["view_count"])
HuggingFace datasets
from datasets import load_dataset
REPO = "Omarrran/StackPulse_778K_QnA_Code_dataset"
# Full 778K
ds = load_dataset(REPO, "full")
# High quality only
hq = load_dataset(REPO, "high_quality")
# Python questions
py = load_dataset(REPO, "python")
# Unanswered questions
ua = load_dataset(REPO, "unanswered")
# Convert to pandas
df = ds["train"].to_pandas()
π¬ Suggested Research Tasks
| Task | Config | Key Columns |
|---|---|---|
| Answer prediction (binary) | full | title, body_text, tags β is_unanswered |
| Score regression | full | title, body_text, tags β score |
| View count prediction | full | title, tags, score β log(view_count) |
| Tag recommendation | full | title, body_text β tags |
| Code vs no-code classification | full | body_text β has_code |
| Question quality scoring | full | title, body_text β score_bucket |
| LLM fine-tuning (Q&A) | high_quality | title + body_text as prompt |
| Difficulty estimation | full | tags β unanswered rate per tag |
| Time-of-day analysis | full | hour, dayofweek β view_count / score |
| Language-specific modeling | python/javascript/java | any |
π Citation
@dataset{malik2026stackoverflow,
author = {Malik, Omar Haq Nawaz},
title = {StackOverflow-778K: Multi-Year Developer Q&A Dataset},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/Omarrran/StackPulse_778K_QnA_Code_dataset},
questions = {778929},
years = {2015-2022},
license = {Apache-2.0}
}
π€ Author
Omar Haq Nawaz Malik (HuggingFace: Omarrran) AI Engineer & NLP Researcher | BITS Pilani | Srinagar, Kashmir
- Downloads last month
- -