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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,943,260 | I'm not having setUpMapIfNeeded library in my MapsActivity.java file | <p>I posted the code snippet below as I'm unable to find the command <code>setUpMapIfNeeded();</code>. When I type the necessary command, I get red lines everywhere. Can anyone help me out with this code? Also, I'm not getting any marker in my emulator. </p>
<p>I'm open to suggestions, please help me out. The min sdk... | I posted the code snippet below as I'm unable to find the command setUpMapIfNeeded(); . When I type the necessary command, I get red lines everywhere. Can anyone help me out with this code? Also, I'm not getting any marker in my emulator. I'm open to suggestions, please help me out. The min sdk version that I'm using i... | java|android|google-maps|android-studio-2.1 | 0 | 2016-04-29T16:24:15.147Z | 2,016 | 4 | 16 | 4 | 833 | 2 | 727 | 68 | 4 | 1 | true | false | false | false | false | false | zero |
36,943,268 | Multiple condition for SQLITE Triggers | <p>I need to update a field on a different table if the current table that is declared on the trigger gets updated. But I need to update only after 2 conditions</p>
<pre><code> public class Match{
public int participant1;
public int participant2;
public int winner;
public boolean fin... | I need to update a field on a different table if the current table that is declared on the trigger gets updated. But I need to update only after 2 conditions [CODE] But this throws an error. Apparently there can only be on "WHEN condition" for triggers on android. Now I'm not really sure how to go about checking it. As... | android|sqlite|android-sqlite | 0 | 2016-04-29T16:24:28.503Z | 2,016 | 4 | 16 | 4 | 914 | 1 | 596 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,943,306 | Android - SQL query every 1 second for 2 minutes | <p>I'm trying to check a record of a database in real time.
For this, I intend to check every 1 second every 2 minutes.
I've been trying to do the consultations.</p>
<p>The query do with the volley, which maybe it's the most convenient. The problem is that it seems not work the query sequence.</p>
<p>Here my code:</p... | I'm trying to check a record of a database in real time. For this, I intend to check every 1 second every 2 minutes. I've been trying to do the consultations. The query do with the volley, which maybe it's the most convenient. The problem is that it seems not work the query sequence. Here my code: [CODE] Directly, I do... | android|mysql|runnable | 0 | 2016-04-29T16:27:01.667Z | 2,016 | 4 | 16 | 4 | 242 | 2 | 616 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
36,943,382 | Android webview keep previous page content without reload? | <p>The webview seems like only keep previous page's url and scroll position, not keep the content? I have a main page with json data, and a child page. The main page generate hyperlink form some json data to open child page in a new window. In laptop browser, I just have to close the child page in new window. But in we... | The webview seems like only keep previous page's url and scroll position, not keep the content? I have a main page with json data, and a child page. The main page generate hyperlink form some json data to open child page in a new window. In laptop browser, I just have to close the child page in new window. But in webvi... | android|webview|xamarin.android | 4 | 2016-04-29T16:31:08.707Z | 2,016 | 4 | 16 | 4 | 4,611 | 2 | 527 | 58 | 3 | 2 | true | false | true | false | false | false | low |
36,943,592 | Android register for location updates in activity | <p>I have a <code>singleton</code> for retrieving <code>location updates</code> in my Android project.
This works fine for when I want to use <code>getters</code> to get values I need.</p>
<p>However, for one of my <code>activities</code>, I need to retrieve location updates as they happen. Is there anyway to "tap" in... | I have a singleton for retrieving location updates in my Android project. This works fine for when I want to use getters to get values I need. However, for one of my activities , I need to retrieve location updates as they happen. Is there anyway to "tap" into the singleton to retrieve location updates, and process the... | android | 0 | 2016-04-29T16:45:51.470Z | 2,016 | 4 | 16 | 4 | 69 | 1 | 544 | 49 | 1 | 1 | true | false | false | false | false | false | zero |
36,943,655 | Android view on top of Button and EditText doesn't obscure them | <p>This one was a bit unexpected for me. I have the following layout file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_pa... | This one was a bit unexpected for me. I have the following layout file: [CODE] And I was expecting the LinearLayout to obscure part of both views (The button and the EditText. The result in the emulator is exactly that: However on the device (A Moto G 3rd Generation), the button is shown on top of the LinearLayout: Fur... | android|android-layout | 1 | 2016-04-29T16:49:00.797Z | 2,016 | 4 | 16 | 4 | 370 | 1 | 750 | 63 | 2 | 1 | true | false | false | false | false | false | low |
36,943,716 | SQLite delete item | <p>i would like to know, how to delete item from a listview and SQLite database. I have this code. What should i change because items are not deleting from the listview. This is my whole code, i dont know what to change in it </p>
<p><strong>DBAdapter.java</strong></p>
<pre><code>static final String ROW_ID ="id";
sta... | i would like to know, how to delete item from a listview and SQLite database. I have this code. What should i change because items are not deleting from the listview. This is my whole code, i dont know what to change in it DBAdapter.java [CODE] MainActivity.java [CODE] I inserted this to DPAdapter [CODE] and this to Ma... | android|sqlite|listview | 0 | 2016-04-29T16:52:48.493Z | 2,016 | 4 | 16 | 4 | 888 | 2 | 399 | 18 | 3 | 4 | true | false | false | false | false | false | zero |
36,943,876 | How to refresh listview from database after dismissing a dialog fragment? | <p>I have a list view which contains items stored in a database. When each item is clicked, a dialog fragment pops up which has buttons for editing and deleting. When clicking on delete, the item gets deleted from the database and the dialog fragment is dismissed. However, on the main activity, where the list view resi... | I have a list view which contains items stored in a database. When each item is clicked, a dialog fragment pops up which has buttons for editing and deleting. When clicking on delete, the item gets deleted from the database and the dialog fragment is dismissed. However, on the main activity, where the list view resides... | android|listview|android-cursoradapter|dialogfragment | 0 | 2016-04-29T17:02:20.133Z | 2,016 | 4 | 17 | 4 | 1,467 | 3 | 543 | 73 | 4 | 2 | true | false | false | false | false | false | zero |
36,943,889 | E/Volley: [1376] BasicNetwork.performRequest: Unexpected response code 404 for http://192.168.0.109/connectphp/GetRestaurantData.php?restype=cafe | <p>I am managed to display at the web browser to retrieve my data from mySQL database. But i could not retrieve my data in my android studio v2.0.</p>
<p>Configuration.java class</p>
<pre><code>public class configuration {
public static final String DATA_URL = "http://192.168.0.109/connectphp/GetRestaurantData.php?r... | I am managed to display at the web browser to retrieve my data from mySQL database. But i could not retrieve my data in my android studio v2.0. Configuration.java class [CODE] Restaurant Page Class [CODE] Restaurant_page_xml [CODE] GetRestaurantData.php class [CODE] Connection.php class [CODE] Anything I did wrong here... | php|android|mysql|android-studio | 2 | 2016-04-29T17:03:29.250Z | 2,016 | 4 | 17 | 4 | 828 | 1 | 340 | 145 | 4 | 5 | true | false | false | false | false | false | low |
36,943,983 | Android Crop Bitmap Canvas | <p>I want to create the crop bitmap functionality and have referred <a href="https://stackoverflow.com/questions/18439246/android-free-croping-of-image">Android: Free Croping of Image</a> but this sets the bitmap in another imageView.Now I know I can set the cropped bitmap in the canvas but I want to retain the origina... | I want to create the crop bitmap functionality and have referred Android: Free Croping of Image but this sets the bitmap in another imageView.Now I know I can set the cropped bitmap in the canvas but I want to retain the original bitmap and want to do the cropping in onDraw() and not make a different bitmap and then se... | android|android-canvas|android-bitmap|porter-duff | 1 | 2016-04-29T17:10:27.397Z | 2,016 | 4 | 17 | 4 | 2,062 | 0 | 544 | 26 | 4 | 2 | true | true | false | false | false | false | low |
36,944,039 | I want to retrieve the saved movies data from database and show it to user android | <p>I am building an app for Udacity called popular movies app which will fetch movies info from movieDB and display posters in the first activity than if the user clicked any poster it will take him to detailActivity where all the Movie detail will be displayed.</p>
<p>Now I am done with stage 1, stage 2 I am supposed... | I am building an app for Udacity called popular movies app which will fetch movies info from movieDB and display posters in the first activity than if the user clicked any poster it will take him to detailActivity where all the Movie detail will be displayed. Now I am done with stage 1, stage 2 I am supposed to give th... | java|android|mobile-application | 0 | 2016-04-29T17:14:15.143Z | 2,016 | 4 | 17 | 4 | 1,801 | 1 | 853 | 82 | 3 | 5 | true | false | false | false | false | false | zero |
36,944,145 | succession of addition, calculator | <p>I try to program a calculator in Java;
I have a concern when adding several numbers, I can not display has the result that if I click the button equal, for example if I put 1 + 1, when I click its + should show me the number 2, but if I click on another number such as the number 1 show me the screen "21", so I want ... | I try to program a calculator in Java; I have a concern when adding several numbers, I can not display has the result that if I click the button equal, for example if I put 1 + 1, when I click its + should show me the number 2, but if I click on another number such as the number 1 show me the screen "21", so I want to ... | java|android|calculator | 1 | 2016-04-29T17:21:02.827Z | 2,016 | 4 | 17 | 4 | 76 | 0 | 346 | 34 | 3 | 1 | true | true | false | false | false | false | low |
36,944,205 | Android-Picasso java.lang.IllegalArgumentException: Target must not be null. when the image view is in a custom layout for a alertdialog | <p>I have <code>java.lang.IllegalArgumentException: Target must not be null</code>. when I try to download an image and put it in the <code>imageView</code> By picasso library. let me show you my code:</p>
<pre><code>public class ads_show extends AppCompatActivity {
private Toolbar toolbar;
private ImageView img_view1... | I have java.lang.IllegalArgumentException: Target must not be null . when I try to download an image and put it in the imageView By picasso library. let me show you my code: [CODE] } My problem is with onFullScreenClick method. and the image view in the onCreate method works fine. | java|android|imageview|android-alertdialog|picasso | 0 | 2016-04-29T17:24:47.237Z | 2,016 | 4 | 17 | 4 | 547 | 1 | 281 | 136 | 5 | 1 | true | false | false | false | false | false | zero |
36,944,248 | Android 2.1 using 4.4 sdk - How to send data using HTTP POST request? | <p>This is my UI layout:<br/><br/>
<a href="https://i.stack.imgur.com/z5Pmn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z5Pmn.png" alt="enter image description here"></a></p>
<p>I want to send some msg by using HTTP POST request.</p>
<pre><code>public class MainActivity extends AppCompatActivit... | This is my UI layout: I want to send some msg by using HTTP POST request. [CODE] I came to know that httpclient is not supported to higher sdk version. So please, help me how to write code for http request post to send some msg and email with given url. | android | 0 | 2016-04-29T17:27:23.173Z | 2,016 | 4 | 17 | 4 | 213 | 1 | 253 | 69 | 1 | 1 | true | false | false | false | false | false | zero |
36,944,457 | Using a view with enterAlways scrollFlag and another view with exitUntilCollapsed scrollFlag in an AppBarLayout | <p>I'm trying to build a following layout using CoordinatorLayout and AppBarLayout:</p>
<p>|View 1 (Header)|<br>
|View 2 ------------|<br>
|RecyclerView--- | </p>
<p>The behavior I want to achieve is as the following:</p>
<ul>
<li>When I scroll the RecyclerView, View 1 will completely collapse.</li>
<li>As I contin... | I'm trying to build a following layout using CoordinatorLayout and AppBarLayout: |View 1 (Header)| |View 2 ------------| |RecyclerView--- | The behavior I want to achieve is as the following: When I scroll the RecyclerView, View 1 will completely collapse. As I continue scrolling, View 2 will collapse until it's "colla... | android|material-design|android-coordinatorlayout|android-appbarlayout | 3 | 2016-04-29T17:40:33.463Z | 2,016 | 4 | 17 | 4 | 627 | 1 | 1,613 | 111 | 4 | 1 | true | false | false | false | false | false | low |
36,944,504 | android : gif image dose not loop when getting data from webservice in android | <p>I am new in android and I want to show a loading image in gif format. after searching in google I found this :</p>
<p>GifView :</p>
<pre><code>package ComponentGif;
import java.io.InputStream;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Movie;
import android.util.Attri... | I am new in android and I want to show a loading image in gif format. after searching in google I found this : GifView : [CODE] in Main_Activity xml I added this: [CODE] I am using webservice to get data (connecting internet) and the image start looping after getting data from webservice finished.Why? | android|web-services|gif | 1 | 2016-04-29T17:44:23.433Z | 2,016 | 4 | 17 | 4 | 73 | 0 | 302 | 78 | 3 | 2 | true | true | false | false | false | false | low |
36,944,612 | android : image Button array error | <p>i'm new in android programming and i try to make activity that display three rows, each row contain number of image Buttons with some details
when click on image it should take me to another activity that display video</p>
<p>whatever,when i debug my code in android studio its runs ok but when i but it on my galaxy... | i'm new in android programming and i try to make activity that display three rows, each row contain number of image Buttons with some details when click on image it should take me to another activity that display video whatever,when i debug my code in android studio its runs ok but when i but it on my galaxy S4 it's gi... | android|loops|imagebutton | 0 | 2016-04-29T17:50:40.070Z | 2,016 | 4 | 17 | 4 | 129 | 0 | 733 | 34 | 3 | 2 | true | true | false | false | false | false | zero |
36,944,614 | How can I run the viewpager program with using Action Bar? Because after I add the action bar, program stops | <p>I am trying to do two different fragment combined with view pager. However, the program stops when i run it. I could not find the problem. Can you help me? Thanks.</p>
<p><strong>//StartingTestActivity.java <- My First Fragment here</strong></p>
<pre><code>import android.graphics.Color;
import android.graphics.... | I am trying to do two different fragment combined with view pager. However, the program stops when i run it. I could not find the problem. Can you help me? Thanks. //StartingTestActivity.java <- My First Fragment here [CODE] //ProfileActivity.java <- My Second Fragment here [CODE] // PagerAdapter1.java <- My Pager Adap... | android|android-fragments|android-viewpager|fragment|android-fragmentactivity | 0 | 2016-04-29T17:50:44.517Z | 2,016 | 4 | 17 | 4 | 293 | 2 | 444 | 108 | 5 | 4 | true | false | false | false | false | false | zero |
36,944,655 | Android form submission to ASP | <p>Okay, weird, weird question time. I have an Android app that submits data to the server using a form POST to an ASP page. Well, at least it SHOULD. I actually have 2 domains. Let's say they are: MySite.com and MySiteBeta.com. </p>
<p>When I use the Android app and post to MySite.com the form data is received w... | Okay, weird, weird question time. I have an Android app that submits data to the server using a form POST to an ASP page. Well, at least it SHOULD. I actually have 2 domains. Let's say they are: MySite.com and MySiteBeta.com. When I use the Android app and post to MySite.com the form data is received without any proble... | android|forms|asp-classic|iis-8 | 0 | 2016-04-29T17:53:05.520Z | 2,016 | 4 | 17 | 4 | 43 | 0 | 1,049 | 30 | 4 | 0 | false | true | false | false | false | false | zero |
36,944,694 | How to preview captured video on a SurfaceView? | <p>I have used this code to capture a video and preview it on surface. But there is some logical error. Camera does not capture video. i don;t understand what is the error</p>
<pre><code>public class VideoCapture extends Activity implements View.OnClickListener,SurfaceHolder.Callback
{
MediaRecorder ... | I have used this code to capture a video and preview it on surface. But there is some logical error. Camera does not capture video. i don;t understand what is the error [CODE] The XML file is [CODE] Manifest file [CODE] | java|android|surfaceview|android-mediarecorder|surfaceholder | 1 | 2016-04-29T17:54:52.443Z | 2,016 | 4 | 17 | 4 | 477 | 0 | 219 | 47 | 5 | 3 | true | true | false | false | false | false | low |
36,944,754 | Positioning of the elements - not in the same line | <p>I have started learning android development and I have stumbled across a thing I don't quite understand why is it happening. Here is the code I am having trouble with:</p>
<p></p>
<pre><code> <LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:la... | I have started learning android development and I have stumbled across a thing I don't quite understand why is it happening. Here is the code I am having trouble with: [CODE] Which results in the following: As you can see, even though my two containers are exactly the same, for unknown reason text under the second cont... | android | 2 | 2016-04-29T17:58:32.357Z | 2,016 | 4 | 17 | 4 | 32 | 2 | 444 | 50 | 1 | 1 | true | false | false | false | false | false | low |
36,944,812 | Custom Android Components with XML children | <p>I'm an iOS developer that is relatively new with Android and I'm trying to create reusable components that separate the controller logic and View definition. I want a pattern similar to iOS IBOutlets where you define a class that can be used with different xib files or storyboard layouts.</p>
<p>For example, say I... | I'm an iOS developer that is relatively new with Android and I'm trying to create reusable components that separate the controller logic and View definition. I want a pattern similar to iOS IBOutlets where you define a class that can be used with different xib files or storyboard layouts. For example, say I want to cre... | android | 0 | 2016-04-29T18:01:50.427Z | 2,016 | 4 | 18 | 4 | 106 | 1 | 1,083 | 43 | 1 | 2 | true | false | false | false | false | false | zero |
36,945,093 | Using Exoplayer to decode an MP3 and write to a file | <p>I am new to Exoplayer and I know the primary goal of the library is to stream and play audio at a higher level than android's MediaCodec/AudioTrack. </p>
<p>I have noticed the github conversations about work arounds for mp3 decoding for older android API's/devices. I wanted to take advantage of this work by using e... | I am new to Exoplayer and I know the primary goal of the library is to stream and play audio at a higher level than android's MediaCodec/AudioTrack. I have noticed the github conversations about work arounds for mp3 decoding for older android API's/devices. I wanted to take advantage of this work by using exoplayer to ... | android|decoding|exoplayer | 1 | 2016-04-29T18:20:23.193Z | 2,016 | 4 | 18 | 4 | 806 | 0 | 869 | 52 | 3 | 1 | true | true | false | false | false | false | low |
36,945,115 | volley NoConnectionError: java.net.UnknownHostException | <p>I am trying to wake up my device to make a network request. When I set the alarm to a minute or two. It works perfectly. But when I set it to about 10 minutes and turn off my display, the alarm is raised, but volley throws a "NoConnectionError" as shown in the title.</p>
<p>I researched on it, I have implemented my... | I am trying to wake up my device to make a network request. When I set the alarm to a minute or two. It works perfectly. But when I set it to about 10 minutes and turn off my display, the alarm is raised, but volley throws a "NoConnectionError" as shown in the title. I researched on it, I have implemented my receiver u... | java|android|alarm | 0 | 2016-04-29T18:22:07.007Z | 2,016 | 4 | 18 | 4 | 3,625 | 2 | 1,065 | 55 | 3 | 3 | true | false | true | false | false | false | zero |
36,945,136 | Compiling error in Android Studio | <p>I have the following build.gradle file but when I try to run the code I get the following error (The error is occurring because i'm adding in a mysql library, seen under dependencies in the build.gradle file) : </p>
<pre><code>Error:Execution failed for task ':app:preDexDebug'.
com.android.ide.common.process.Proces... | I have the following build.gradle file but when I try to run the code I get the following error (The error is occurring because i'm adding in a mysql library, seen under dependencies in the build.gradle file) : [CODE] Here's the full output that I get: [CODE] I've looked at Error: finished with non-zero exit value2 and... | android|android-studio|gradle | 0 | 2016-04-29T18:23:24.370Z | 2,016 | 4 | 18 | 4 | 415 | 0 | 520 | 33 | 3 | 3 | true | true | false | false | false | false | zero |
36,945,166 | Android JobScheduler running way too often when using setPeriodic() | <p>I noticed my scheduled JobScheduler is executing the job way too often. I have it set to execute daily and it requires to be idle, to be on wlan and to be charging, but when those conditions are met the job executes like every 10min or even more frequently.</p>
<p>My code:</p>
<pre><code>JobInfo.Builder builder = ... | I noticed my scheduled JobScheduler is executing the job way too often. I have it set to execute daily and it requires to be idle, to be on wlan and to be charging, but when those conditions are met the job executes like every 10min or even more frequently. My code: [CODE] The job executes a background thread to downlo... | android|synchronization|android-wifi|job-scheduling|milliseconds | 12 | 2016-04-29T18:25:04.863Z | 2,016 | 4 | 18 | 4 | 3,607 | 1 | 640 | 67 | 5 | 2 | true | false | true | false | true | false | medium |
36,945,477 | FATAL EXCEPTION: main (School Project) | <p>I'm doing a Final Project for my class and everything is going smoothly and then i try to run the app, crashes on my phone and this:</p>
<blockquote>
<p>04-29 13:36:24.185 3507-3507/com.example.jessewmoore.database2 E/AndroidRuntime: FATAL EXCEPTION: main
... | I'm doing a Final Project for my class and everything is going smoothly and then i try to run the app, crashes on my phone and this: 04-29 13:36:24.185 3507-3507/com.example.jessewmoore.database2 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.jessewmoore.database2, PID: 3507 java.lang.RuntimeException: Un... | java|android|xml|crash | 0 | 2016-04-29T18:46:09.120Z | 2,016 | 4 | 18 | 4 | 142 | 1 | 2,642 | 38 | 4 | 3 | true | false | false | false | false | false | zero |
36,945,537 | Volley error when parsing JSON | <p>I get an error when I receive the response from a REST server. I found few topics with the same problem but still can't find the solution. This is my code</p>
<pre><code>public void clickFunc(View v){
String url = "http://localhost:8080/Server/file/04";
final CustomJSONObjectRequest jsonRequest = new Custom... | I get an error when I receive the response from a REST server. I found few topics with the same problem but still can't find the solution. This is my code [CODE] The error is [CODE] I tried to change the response function in this way [CODE] But I get an error: Method does not override ... | java|android|android-volley | 0 | 2016-04-29T18:50:28.543Z | 2,016 | 4 | 18 | 4 | 403 | 0 | 289 | 30 | 3 | 3 | true | true | false | false | false | false | zero |
36,945,568 | Android Studio not starting , failed to create a child event loop , cannot lock system folders | <p>Android Studio not starting, failed to create a child event loop, cannot lock system folders</p>
<blockquote>
<p>java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:81)
at io.netty.ut... | Android Studio not starting, failed to create a child event loop, cannot lock system folders java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:81) at io.netty.util.concurrent.MultithreadEventExecutorGroup.(M... | android|android-studio | 2 | 2016-04-29T18:53:00.500Z | 2,016 | 4 | 18 | 4 | 2,505 | 2 | 2,859 | 94 | 2 | 0 | false | false | false | false | false | false | low |
36,945,641 | Android OnDragListener - ACTION_DRAG_ENDED firing multiple times | <p>I'm making a list view with custom rows and custom Adapter. I've attached an OnTouchListener and OnDragListener to each view in the list view.</p>
<p>I'm updating the underlying data if the drop result is true (the view being dragged is dropped within the bounds of the list view)</p>
<p>The ACTION_DRAG_ENDED case ... | I'm making a list view with custom rows and custom Adapter. I've attached an OnTouchListener and OnDragListener to each view in the list view. I'm updating the underlying data if the drop result is true (the view being dragged is dropped within the bounds of the list view) The ACTION_DRAG_ENDED case fires 4 times for b... | android|drag-and-drop|ontouchlistener | 2 | 2016-04-29T18:58:19.063Z | 2,016 | 4 | 18 | 4 | 1,058 | 2 | 462 | 64 | 3 | 1 | true | false | false | false | false | false | low |
36,945,645 | Android.Views.InflateException: Binary XML file line #1: Error inflating class android.widget.Button | <p>I need your help. I get this error when I try to compile my application on my phone: </p>
<pre><code>Android.Views.InflateException: Binary XML file line #1: Error inflating class android.widget.Button
</code></pre>
<p>Well, it says Button so, this is my code in my axml:</p>
<pre><code><Button
android:text... | I need your help. I get this error when I try to compile my application on my phone: [CODE] Well, it says Button so, this is my code in my axml: [CODE] and I have a xml file in my drawable folder call: BotonLoginStyle [CODE] Thank you. | android|visual-studio|xamarin | 1 | 2016-04-29T18:58:36.547Z | 2,016 | 4 | 18 | 4 | 2,178 | 3 | 235 | 100 | 3 | 3 | true | false | false | false | false | false | low |
36,945,702 | How to show custom UI for a GCM push notification? | <p>I want to show a notification like in the snap below in my app:</p>
<p><a href="https://i.stack.imgur.com/9ujmE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9ujmE.png" alt="Push Notification" /></a></p>
<p>I have already gone through <a href="https://stackoverflow.com/questions/16855135/custom-... | I want to show a notification like in the snap below in my app: I have already gone through this question and this Github issue. It says you have to send your data as payload in the message to GCM server, and you can access this data in the app through intent when the user clicks on the notification. The message I am s... | android|push-notification|google-cloud-messaging|gcmlistenerservice | 1 | 2016-04-29T19:01:57.900Z | 2,016 | 4 | 19 | 4 | 1,143 | 1 | 1,170 | 50 | 4 | 1 | true | false | false | false | false | false | low |
36,945,750 | ListView in alphabetical order without Comparable | <p>I'm trying to put this ListView in an alphabetical order by value of WORDS column. I've already read answers on this topic, but nevertheless haven't found any solution. Have I necessarily use Comparable/Comparator?</p>
<pre><code>private ArrayList<HashMap<String, Object>> wordList;
private static final ... | I'm trying to put this ListView in an alphabetical order by value of WORDS column. I've already read answers on this topic, but nevertheless haven't found any solution. Have I necessarily use Comparable/Comparator? [CODE] | java|android|listview|android-studio|alphabetical | 2 | 2016-04-29T19:04:53.570Z | 2,016 | 4 | 19 | 4 | 90 | 1 | 221 | 49 | 5 | 1 | true | false | false | false | false | false | low |
36,945,793 | Android: Dynamically show all checkboxes in adapter onLongClick | <p>I was learning custom adapter concepts recently.</p>
<p>Problem is during onlongClick in a row,
I want to show checkboxes checked in the longclicked row, which is in <code>android:visibility="gone"</code> initially. And also to show checkboxes in other rows which are not clicked in unchecked state.</p>
<p>I change... | I was learning custom adapter concepts recently. Problem is during onlongClick in a row, I want to show checkboxes checked in the longclicked row, which is in android:visibility="gone" initially. And also to show checkboxes in other rows which are not clicked in unchecked state. I changed some parts of this code here. ... | android|listview|checkbox|custom-adapter | 1 | 2016-04-29T19:07:40.977Z | 2,016 | 4 | 19 | 4 | 497 | 1 | 803 | 63 | 4 | 1 | true | false | false | false | false | false | low |
36,945,796 | ListView working with database in android | <p>I asked a similar question before but wasn't sure how to word it. I have since looked at some tutorials and have a little more understanding of my problem. I am trying to display information from my database into a list view but can't figure out how to make it work. Any help would be great. </p>
<p>This is my DataB... | I asked a similar question before but wasn't sure how to word it. I have since looked at some tutorials and have a little more understanding of my problem. I am trying to display information from my database into a list view but can't figure out how to make it work. Any help would be great. This is my DataBase Adapter ... | android|android-layout|listview | 1 | 2016-04-29T19:07:45.353Z | 2,016 | 4 | 19 | 4 | 77 | 2 | 648 | 41 | 3 | 5 | true | false | false | false | false | false | low |
36,945,957 | Service "has no zero argument constructor", But it does. What to do? Make class static? | <p>I have an Android app that works fine, but I want it to be able to run in the background and continue running even when it doesn't have focus.</p>
<p><code>QueryDB</code> (see below) extends <code>AsyncTask</code> in the current version of the app. I've been advised to use a <code>Service</code> (or <code>IntentSer... | I have an Android app that works fine, but I want it to be able to run in the background and continue running even when it doesn't have focus. QueryDB (see below) extends AsyncTask in the current version of the app. I've been advised to use a Service (or IntentSerivce ) to accomplish the above goal. So I changed QueryD... | java|android|service | 3 | 2016-04-29T19:17:55.643Z | 2,016 | 4 | 19 | 4 | 2,927 | 1 | 1,329 | 87 | 3 | 2 | true | false | true | false | false | false | low |
36,946,030 | Dismiss DialogFragment in MVVMCross | <p>In the <strong>FundamentalView.cs</strong>, I have click event which triggers a fragment from the bottom of the view with having options (adding a new person and new calculations).</p>
<pre><code> var addButton = view.FindViewById<ImageButton>(Resource.Id.addButton);
addButton.Click += OnAddButtonClick;
vo... | In the FundamentalView.cs , I have click event which triggers a fragment from the bottom of the view with having options (adding a new person and new calculations). [CODE] CardDialogView.axml [CODE] CardDialogView.cs [CODE] When I click on the textview, it opens the NewItemViewModel . So far, so good, but CardDialogVie... | android|xamarin|mvvmcross | 1 | 2016-04-29T19:22:47.923Z | 2,016 | 4 | 19 | 4 | 984 | 1 | 407 | 35 | 3 | 4 | true | false | false | false | false | false | low |
36,946,059 | Android Volley NullPointerException without any explanation | <p>I have 3 functions that are uploading images and setting the name of an image on a server. The thing is, I can't get all functions to work at a time. Only one function works and the other throws a NullPointerException that aren't pointing to anything specific but just the first line in the function.</p>
<pre><code>... | I have 3 functions that are uploading images and setting the name of an image on a server. The thing is, I can't get all functions to work at a time. Only one function works and the other throws a NullPointerException that aren't pointing to anything specific but just the first line in the function. [CODE] This is the ... | android|nullpointerexception|android-volley | 0 | 2016-04-29T19:24:36.117Z | 2,016 | 4 | 19 | 4 | 634 | 1 | 731 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
36,946,173 | Android custom view group delegate addView | <p>I want to implement custom <code>ViewGroup</code> in my case derived from <code>FrameLayout</code> but I want all child views added from xml to be added not directly into this view but in <code>FrameLayout</code> contained in this custom <code>ViewGroup</code>.
Let me show example to make it clear.</p>
<pre><code>&... | I want to implement custom ViewGroup in my case derived from FrameLayout but I want all child views added from xml to be added not directly into this view but in FrameLayout contained in this custom ViewGroup . Let me show example to make it clear. [CODE] And I want to redirect adding all child view to FrameLayout with... | android|performance|android-layout|android-view|android-custom-view | 10 | 2016-04-29T19:32:03.763Z | 2,016 | 4 | 19 | 4 | 5,797 | 1 | 1,314 | 42 | 5 | 3 | true | false | true | false | true | false | medium |
36,946,238 | No static field INSTANCE of type Lorg/apache/http/message/BasicHeaderValueFormatter | <p>I get the following error:</p>
<pre><code>Process: com.project.publiko, PID: 27061
java.lang.NoSuchFieldError: No static field INSTANCE of type Lorg/apache/http/message/BasicHeaderValueFormatter; in class Lorg/apache/http/message/BasicHeaderValueFormatter; or its superclasses (declaration of 'org.apache.http.message... | I get the following error: [CODE] Refer error line (Gradle): [CODE] [CODE] Call to the class: [CODE] Can you help me to solve this error? Thanks in advance ;) | android|apache|httpclient|android-volley|multipartentity | 5 | 2016-04-29T19:37:34.513Z | 2,016 | 4 | 19 | 4 | 8,950 | 2 | 158 | 83 | 5 | 4 | true | false | true | false | false | false | low |
36,946,240 | Detect when app just started or opened from Recent Apps | <p>I'm developing an Android application and I would like to emulate the same behavior of the official Google Plus app when it is opened, which is:</p>
<ul>
<li>If the app is still in the Recent Apps list and you open it (from icon or from recent apps, it doesn't matter) you will resume the app from where you left. </... | I'm developing an Android application and I would like to emulate the same behavior of the official Google Plus app when it is opened, which is: If the app is still in the Recent Apps list and you open it (from icon or from recent apps, it doesn't matter) you will resume the app from where you left. If the app is no lo... | android|android-fragments|android-activity|android-lifecycle | 2 | 2016-04-29T19:37:44.433Z | 2,016 | 4 | 19 | 4 | 3,278 | 2 | 1,257 | 55 | 4 | 0 | false | false | true | false | false | false | low |
36,946,303 | Having trouble getting the SharedPreference number to subtract from a total | <p>Im developing a calorie app , where the user inputs amount they consumed
and then displays how many calories they have left. I created a xml for the sharedpreferences where the user puts the goal amount. </p>
<p>Problem : getting the Shared Preference to subtract my list-view total.</p>
<p>right now the app is dis... | Im developing a calorie app , where the user inputs amount they consumed and then displays how many calories they have left. I created a xml for the sharedpreferences where the user puts the goal amount. Problem : getting the Shared Preference to subtract my list-view total. right now the app is displaying the total am... | android|listview|android-fragments|sharedpreferences|android-preferences | 1 | 2016-04-29T19:41:47.783Z | 2,016 | 4 | 19 | 4 | 107 | 1 | 490 | 75 | 5 | 2 | true | false | false | false | false | false | low |
36,946,307 | How can I implement AppCompatActivity in 2 fragments? | <p>I'm trying to add 2 fragment activities but I have to use AppCompatActivity. Because of that when I add AppCompatActivity the program stops. How can I solve this problem? </p>
<p><strong>My CombineFragmentActivity.java</strong></p>
<pre><code>import android.graphics.Color;
import android.os.Bundle;
import android.... | I'm trying to add 2 fragment activities but I have to use AppCompatActivity. Because of that when I add AppCompatActivity the program stops. How can I solve this problem? My CombineFragmentActivity.java [CODE] My StartingTestActivity.java //First Fragment [CODE] My ProfileActivity.java // Second Fragment [CODE] combine... | android|android-fragments|android-viewpager|fragment | -1 | 2016-04-29T19:41:55.703Z | 2,016 | 4 | 19 | 4 | 1,428 | 1 | 355 | 53 | 4 | 4 | true | false | false | false | false | true | negative |
36,946,363 | How do I get my app to give me message "Net not connected" instead of crashing | <p>My app crashes, and I am unable to find the error.</p>
<p>I would like it to give me a message saying the network is not connected. </p>
<pre><code>import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
i... | My app crashes, and I am unable to find the error. I would like it to give me a message saying the network is not connected. [CODE] | android|android-asynctask|apache-httpclient-4.x | 0 | 2016-04-29T19:46:17.343Z | 2,016 | 4 | 19 | 4 | 54 | 1 | 131 | 78 | 3 | 1 | true | false | false | false | false | false | zero |
36,946,515 | time picker dialog not working | <p>I am new in android, and I tried to add time picker dialog to my app to take the time from the user.
but the dialog was not appear.
I am using android studio.
this is the code:</p>
<pre><code>Calendar calendar=Calendar.getInstance();
int hour= calendar.get(Calendar.HOUR_OF_DAY);
int minutes1= calendar.get(Calendar... | I am new in android, and I tried to add time picker dialog to my app to take the time from the user. but the dialog was not appear. I am using android studio. this is the code: [CODE] the dialog is not appear when i tried to run the application. my goal is to take the time from the user and use it as input to text, the... | android|android-dialog | 0 | 2016-04-29T19:56:52.233Z | 2,016 | 4 | 19 | 4 | 769 | 1 | 364 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
36,946,522 | How change a textview from a fragment on android studio | <p>I am having a problem. I have an activity that implements several fragments. Now I need to update a textview of one of the fragments, I have the string in the activity, so I need to pass this string to the fragment and update that textview. </p>
<p>NavigationDrawer.java --> this is the activity</p>
<pre><code>Stri... | I am having a problem. I have an activity that implements several fragments. Now I need to update a textview of one of the fragments, I have the string in the activity, so I need to pass this string to the fragment and update that textview. NavigationDrawer.java --> this is the activity [CODE] } InicialPage.java --> th... | java|android|android-fragments|fragment|android-studio-2.0 | 0 | 2016-04-29T19:57:32.473Z | 2,016 | 4 | 19 | 4 | 1,051 | 3 | 345 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
36,946,552 | Application could not be started | <p>I am unable to get my application to run an Android device from Visual Studio 2015/Xamarin. It fails to start on the device, giving this message:</p>
<pre><code>The application could not be started.
Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = tru... | I am unable to get my application to run an Android device from Visual Studio 2015/Xamarin. It fails to start on the device, giving this message: [CODE] So I added the decorator [Activity(MainLauncher = true)] to the MainActivity. I checked that in Build-> Configuration Manager , AnyCPU, Build, and Deploy are checked. ... | android|xamarin|xamarin.android | 6 | 2016-04-29T20:00:15.300Z | 2,016 | 4 | 20 | 4 | 5,217 | 3 | 1,938 | 32 | 3 | 7 | true | false | true | false | false | false | medium |
36,946,892 | onHandleIntent method is not called on IntentService | <p>I'm developing an android app which starts a service when the device is connected to the internet.
the problem is that the onHandleIntent method is not called in my IntentService subclass.
can somebody please explain for me why??</p>
<p>Below is my IntentService subclass:</p>
<pre><code>public class RefreshService... | I'm developing an android app which starts a service when the device is connected to the internet. the problem is that the onHandleIntent method is not called in my IntentService subclass. can somebody please explain for me why?? Below is my IntentService subclass: [CODE] And below is my BroadcastReceiver subclass: [CO... | android | 0 | 2016-04-29T20:25:22.037Z | 2,016 | 4 | 20 | 4 | 319 | 0 | 626 | 52 | 1 | 4 | true | true | false | false | false | false | zero |
36,946,914 | How can I resume playing the video in Brightcove Exoplayer when network connection is re-established? | <p>I am using the <a href="http://docs.brightcove.com/en/perform/mobile-sdks/hls-player/guides/exoplayer.html" rel="nofollow">Brightcove Exoplayer</a> in my app to stream videos. However, I noticed that it does not handle network interruption completely (disconnect followed by reconnect) on its own. </p>
<p>It is unab... | I am using the Brightcove Exoplayer in my app to stream videos. However, I noticed that it does not handle network interruption completely (disconnect followed by reconnect) on its own. It is unable to resume playback in the following cases: Once the seek position = buffer position and the device reconnects to the data... | android|brightcove|exoplayer | 0 | 2016-04-29T20:26:55.553Z | 2,016 | 4 | 20 | 4 | 617 | 1 | 524 | 101 | 3 | 1 | true | false | false | false | false | false | zero |
36,947,015 | How to handle uninstall intent on Android 6 and above? | <h2>Background</h2>
<p>On my "<a href="https://play.google.com/store/apps/details?id=com.lb.app_manager" rel="nofollow"><strong>app manager</strong></a>" app, I handled uninstall intent so that users could uninstall apps in the background, using root.</p>
<h2>The problem</h2>
<p>Up to Android 5.x , all went well and... | Background On my " app manager " app, I handled uninstall intent so that users could uninstall apps in the background, using root. The problem Up to Android 5.x , all went well and worked fine, but it seems that starting from Android 6, things have changed and the same intent, even though the logs say is being used, ca... | android|android-intent|uninstallation|intentfilter | 1 | 2016-04-29T20:34:34.923Z | 2,016 | 4 | 20 | 4 | 763 | 1 | 1,070 | 54 | 4 | 1 | true | false | false | false | false | false | low |
36,947,099 | How to keep list last item above bottomsheeet | <p>I am building a music player. I am working with <code>bottomsheet</code>. Its working fine and it has its peek height, But it covers the RecyclerView last item.
How can I set <code>recyclerView</code> above <code>BottomSheet</code> view.
Please help me.</p>
<p>Here is my MainActivity XML</p>
<pre><code><?xml ... | I am building a music player. I am working with bottomsheet . Its working fine and it has its peek height, But it covers the RecyclerView last item. How can I set recyclerView above BottomSheet view. Please help me. Here is my MainActivity XML [CODE] Please suggest what to do. | android|android-layout|android-recyclerview|bottom-sheet | 5 | 2016-04-29T20:40:50.327Z | 2,016 | 4 | 20 | 4 | 890 | 1 | 277 | 45 | 4 | 1 | true | false | false | false | false | false | low |
36,947,168 | Escaping special characters in sqlite when using = in query in android | <p>I have database with a column itemitem that looks like this</p>
<p>aaabbb</p>
<p>aaa%bbb</p>
<p>aaa_bbb</p>
<p>aaa'bbb</p>
<p>My query looks like this where itemitems is one of the above fields;</p>
<pre><code> itemitems = itemitems.replaceAll("'","''");
itemitems = itemitems.replaceAll("%","\\\\%"); /... | I have database with a column itemitem that looks like this aaabbb aaa%bbb aaa_bbb aaa'bbb My query looks like this where itemitems is one of the above fields; [CODE] I get the following exception: [CODE] However if I use itemitem like instead of itemitem =, I don't get the exception. But, I don't get the exact match e... | android|sqlite|special-characters | 0 | 2016-04-29T20:46:37.157Z | 2,016 | 4 | 20 | 4 | 908 | 1 | 498 | 70 | 3 | 2 | true | false | false | false | false | false | zero |
36,947,200 | It's possible to make SpeechRecognizer faster? | <p>I'm developing an application which is using the android SpeechRecognizer. I'm using it for something simple. I click in a button, my SpeechRecognizer start listening and I got some results from what I said.</p>
<p>Easy right? Well, My problem is that I need to make SpeechRecognizer fast. I mean, I click in my butto... | I'm developing an application which is using the android SpeechRecognizer. I'm using it for something simple. I click in a button, my SpeechRecognizer start listening and I got some results from what I said. Easy right? Well, My problem is that I need to make SpeechRecognizer fast. I mean, I click in my button, I say &... | android|performance|speech-recognition|voice-recognition | 5 | 2016-04-29T20:48:44.963Z | 2,016 | 4 | 20 | 4 | 3,744 | 1 | 1,313 | 46 | 4 | 1 | true | false | true | false | false | false | low |
36,947,254 | Unable to attach Activity interface to Fragment. Getting NullPointerException | <p>I'm writing an app for school and everything works fine when I run the app in the emulator.</p>
<p>The problem is when I connect my phone through usb and run the app on the phone.</p>
<p>Whenever I do something which requires the mListener (in any fragment in the whole app), I get a nullpointerexception on my mLis... | I'm writing an app for school and everything works fine when I run the app in the emulator. The problem is when I connect my phone through usb and run the app on the phone. Whenever I do something which requires the mListener (in any fragment in the whole app), I get a nullpointerexception on my mListener. I have searc... | android|android-fragments|nullpointerexception | 0 | 2016-04-29T20:52:51.637Z | 2,016 | 4 | 20 | 4 | 657 | 3 | 613 | 77 | 3 | 3 | true | false | false | false | false | false | zero |
36,947,392 | Receive Listener onResults() from a different activity | <p>I'm developing an App with <code>SpeechRecognizer</code>. I will use it in different activities for different uses and It's a bit dirty add the same code all time to different classes. So I moved my custom <code>RecognitionListener</code> to a new class. In that way I just initialize it when I want from my activitie... | I'm developing an App with SpeechRecognizer . I will use it in different activities for different uses and It's a bit dirty add the same code all time to different classes. So I moved my custom RecognitionListener to a new class. In that way I just initialize it when I want from my activities. But I can´t find a way to... | android|android-activity|listener|android-custom-view|actionresult | 0 | 2016-04-29T21:03:19.760Z | 2,016 | 4 | 21 | 4 | 509 | 1 | 673 | 54 | 5 | 1 | true | false | false | false | false | false | zero |
36,947,410 | Xamarin Android can't set new event's date | <p>I can create a new Event in calendar, but I can't set the datetime of the event.
I can set the Location, title, description and so on.</p>
<p>When debugging, I can see the variables dtStart and dtEnd corretly (for testing, I'm using the string "15/05/2016 15:00:00" in the format dd/MM/yyyy hh:mm:ss - brasilian patt... | I can create a new Event in calendar, but I can't set the datetime of the event. I can set the Location, title, description and so on. When debugging, I can see the variables dtStart and dtEnd corretly (for testing, I'm using the string "15/05/2016 15:00:00" in the format dd/MM/yyyy hh:mm:ss - brasilian pattern) Thank ... | xamarin|xamarin.android|android-calendar | 0 | 2016-04-29T21:04:21.733Z | 2,016 | 4 | 21 | 4 | 568 | 1 | 362 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
36,947,424 | Error occured while executing doInBackground() while running Countdowntimer | <p>I am trying to run a countdowntimer in background to do some computation through asynctask but i am getting this error</p>
<p>This is my code</p>
<pre><code>public class CurrentStatus extends AsyncTask<Context,Void,Context> {
float BatteryStatus;
int TimeStatus,HoursToCharge;
String USID, BatteryID, Network... | I am trying to run a countdowntimer in background to do some computation through asynctask but i am getting this error This is my code [CODE] } [CODE] and this is LogCat [CODE] 04-30 02:32:21.697 30111-30974/com.first.shash_000.anantha E/AndroidRuntime: at android.os.CountDownTimer.(CountDownTimer.java:114) 04-30 02:32... | java|android|android-asynctask|countdowntimer | -2 | 2016-04-29T21:05:41.320Z | 2,016 | 4 | 21 | 4 | 52 | 1 | 1,067 | 75 | 4 | 3 | true | false | false | false | false | true | negative |
36,947,566 | Travis CI build failed in gradle task | <p>I've create an extra task in my build.gradle to provide secret keys for public github repo.</p>
<pre><code>afterEvaluate {
initFabricPropertiesIfNeeded()
}
def initFabricPropertiesIfNeeded() {
def propertiesFile = file('fabric.properties')
if (!propertiesFile.exists()) {
def commentMessage = "This is autogenera... | I've create an extra task in my build.gradle to provide secret keys for public github repo. [CODE] I want to build this with travis ci server side and add these two variables FABRIC_API_SECRET and FABRIC_API_KEY in environment variables settings. But the build failed with this exception. A problem occurred configuring ... | android|continuous-integration|travis-ci|continuous-deployment | 0 | 2016-04-29T21:16:02.697Z | 2,016 | 4 | 21 | 4 | 163 | 1 | 434 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
36,947,618 | Android Service - SocketIO - GCM - Communicate with Activity | <p>Hopefully this question is not too broad or too much to ask for...</p>
<p>I am building an Android app for my office. The app is used to send message alerts (as a custom "message" object class) to all users with the app (my office only). Once the message is received, all the names of the recipients are listed at th... | Hopefully this question is not too broad or too much to ask for... I am building an Android app for my office. The app is used to send message alerts (as a custom "message" object class) to all users with the app (my office only). Once the message is received, all the names of the recipients are listed at the bottom wi... | java|android|multithreading|socket.io|google-cloud-messaging | 0 | 2016-04-29T21:19:47.060Z | 2,016 | 4 | 21 | 4 | 445 | 1 | 2,969 | 60 | 5 | 0 | false | false | false | false | false | false | zero |
36,947,676 | New android:gradle commandline app doesn't show first screen, just buzzes black | <p>I had a working project built from command-line Ant which I converted to Gradle 2.12 from scratch.<br>
I installed it with Gradle installDebugAndroidTest (via USB) but when I run it (on a Samsung with Android 4.0.4) it just shows a black screen, with the correct header line, and buzzes.
Normally the header line goe... | I had a working project built from command-line Ant which I converted to Gradle 2.12 from scratch. I installed it with Gradle installDebugAndroidTest (via USB) but when I run it (on a Samsung with Android 4.0.4) it just shows a black screen, with the correct header line, and buzzes. Normally the header line goes away a... | android-gradle-plugin | 0 | 2016-04-29T21:25:08.113Z | 2,016 | 4 | 21 | 4 | 98 | 1 | 1,641 | 79 | 1 | 7 | true | false | false | false | false | false | zero |
36,947,699 | Cursor Exception after deleting a row in my android app | <p>Do not know where I am getting this wrong. After deleting a row when I click on my list view, the app exits. Below is my source code:</p>
<pre><code> private void showlist() {
ArrayList<ContactListItems> contactList = new ArrayList<ContactListItems>();
contactList.clear();
mydb = new DBHe... | Do not know where I am getting this wrong. After deleting a row when I click on my list view, the app exits. Below is my source code: [CODE] Part of the code that views the clicked item public void dislplaybookings() { [CODE] myDBHelpe for selection [CODE] Delete called [CODE] Delete [CODE] my logcat. [CODE] Please I n... | android | 0 | 2016-04-29T21:27:22.873Z | 2,016 | 4 | 21 | 4 | 72 | 2 | 378 | 55 | 1 | 6 | true | false | false | false | false | false | zero |
36,947,862 | Adding views in a specific order and storing that order | <p>I have an 'add' button and a GridLayout with 6 slots in it, when I click the 'add' button, view1 gets added into the gridlayout, I click the 'add' button again view2 gets added, and so on.</p>
<pre><code> if (!theLayout1.isShown()) {
Grid.addView(theLayout1);
} else if (!theLayout2.isShown()) {
Grid.ad... | I have an 'add' button and a GridLayout with 6 slots in it, when I click the 'add' button, view1 gets added into the gridlayout, I click the 'add' button again view2 gets added, and so on. [CODE] after a view gets added I check if its text was already added into sharedPrefs so they can be automatically added when reCre... | java|android|android-layout|logic | 8 | 2016-04-29T21:40:17.027Z | 2,016 | 4 | 21 | 4 | 343 | 5 | 842 | 55 | 4 | 2 | true | false | false | false | false | false | medium |
36,948,006 | data doesn't show in gridView Android | <p>I want to load data to display in a gridView.</p>
<p>It runs without any errors. However, screen remains blank and the gridView doesn't show up.</p>
<p>Here's my code </p>
<p>MainActivity.java</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I want to load data to display in a gridView. It runs without any errors. However, screen remains blank and the gridView doesn't show up. Here's my code MainActivity.java [CODE] fragment.java [CODE] custom adapter [CODE] fragment_fragment.xml [CODE] item.xml [CODE] | android|android-fragments|gridview | 1 | 2016-04-29T21:53:38.397Z | 2,016 | 4 | 21 | 4 | 744 | 1 | 265 | 37 | 3 | 5 | true | false | false | false | false | false | low |
36,948,045 | Android button click doesn't work and editing textbox with it | <p>I'm really new in coding for Android, just started to learn. I have some image buttons to change values displayed in textboxes and I don't know how to do this. I tried some tests for buttons but I have some errors which I can't repair.</p>
<p>Message from eclipse is:</p>
<p>The method setOnClickListener(View.OnCli... | I'm really new in coding for Android, just started to learn. I have some image buttons to change values displayed in textboxes and I don't know how to do this. I tried some tests for buttons but I have some errors which I can't repair. Message from eclipse is: The method setOnClickListener(View.OnClickListener) in the ... | java|android|eclipse | 0 | 2016-04-29T21:56:18.967Z | 2,016 | 4 | 21 | 4 | 68 | 2 | 901 | 61 | 3 | 2 | true | false | false | false | false | false | zero |
36,948,050 | Build gradle failed for google play services version | <p>When I try to execute buid.gradle I get this error on android studio</p>
<pre><code>Error:Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintr... | When I try to execute buid.gradle I get this error on android studio [CODE] and this is the module build.gradle file [CODE] In this file the play services version is 8.4.0 but I don't know whre I have to update the version from 8.3.0 to 8.4.0 | android|gradle|google-play-services | 0 | 2016-04-29T21:56:33.067Z | 2,016 | 4 | 21 | 4 | 814 | 3 | 242 | 52 | 3 | 2 | true | false | false | false | false | false | zero |
36,948,097 | Phonegap export to Android | <p>I have this working and for a long time was all cool, then at some point it stopped working without me having touched it. I see this error:</p>
<blockquote>
<p><code>ERROR building one of the platforms: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Detected 'android' comma... | I have this working and for a long time was all cool, then at some point it stopped working without me having touched it. I see this error: ERROR building one of the platforms: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Detected 'android' command at C:\Users\Tower\bin but no 't... | java|android|cordova|sdk|phonegap-cli | 1 | 2016-04-29T22:01:00.260Z | 2,016 | 4 | 22 | 4 | 47 | 1 | 850 | 26 | 5 | 0 | false | false | false | false | false | false | low |
36,948,103 | Login + Navigation drawer | <p>When my log in class and call the activity_Main with navigation drawer can not navigate the menus. When I start the application by activity_main navigation drawer works correctly.</p>
<p>Error:
Method invocation 'drawer.setDrawerListener(toggle)' may produce 'java.lang.NullPointerException' less... (Ctrl+F1)
This ... | When my log in class and call the activity_Main with navigation drawer can not navigate the menus. When I start the application by activity_main navigation drawer works correctly. Error: Method invocation 'drawer.setDrawerListener(toggle)' may produce 'java.lang.NullPointerException' less... (Ctrl+F1) This inspection a... | java|android|authentication | -1 | 2016-04-29T22:01:26.560Z | 2,016 | 4 | 22 | 4 | 340 | 1 | 1,654 | 25 | 3 | 2 | true | false | false | false | false | true | negative |
36,948,210 | Gamefication non-game Android app | <p>I created an Android application (non-game) that already is alpha Test and now would like to leave it more attractive using the concept of Gamefication. Of course not want to start the implementation of the concept of zero, and would like to get the community some insight on the subject. So there's a few questions.<... | I created an Android application (non-game) that already is alpha Test and now would like to leave it more attractive using the concept of Gamefication. Of course not want to start the implementation of the concept of zero, and would like to get the community some insight on the subject. So there's a few questions. 1) ... | android|google-play-services | 0 | 2016-04-29T22:09:49.777Z | 2,016 | 4 | 22 | 4 | 47 | 0 | 1,597 | 33 | 2 | 0 | false | true | false | false | false | false | zero |
36,948,227 | when clicking on listview items no action performed and LogCat shows ViewPostImeInputStage ACTION_DOWN | <p>I'm trying to create an activity that search throw the listview items. I create a <code>switch</code> with <code>case</code> <code>Category</code> where <code>Category</code> is an item in the <code>main</code> <code><string-array></code>, but when I'm clicking on the Item no action is performed and the LogCat... | I'm trying to create an activity that search throw the listview items. I create a switch with case Category where Category is an item in the main <string-array> , but when I'm clicking on the Item no action is performed and the LogCat show this msg --> 04-29 20:20:00.380: D/ViewRootImpl(30869): ViewPostImeInputStage AC... | android|listview|exception|logcat | 3 | 2016-04-29T22:11:17.033Z | 2,016 | 4 | 22 | 4 | 7,855 | 2 | 452 | 102 | 4 | 4 | true | false | true | false | false | false | low |
36,948,310 | Android App - Selecting Image from Phone Gallery and Adding it to a ListView | <p>I am using a custom adapter in order to add a selected image to the ListView. I get this error: </p>
<pre><code> 04-29 18:15:33.582: E/AndroidRuntime(24214): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageBitmap(android.graphics.Bitmap)' on a null object refe... | I am using a custom adapter in order to add a selected image to the ListView. I get this error: [CODE] When a photo is added from the gallery, I create a new Photo object and store the given Bitmap in there. And my getBitmap() method calls that but apparently it is null in this case. Not sure what s wrong here Here is ... | android|image|listview|android-imageview | 0 | 2016-04-29T22:18:30.320Z | 2,016 | 4 | 22 | 4 | 1,062 | 1 | 399 | 76 | 4 | 5 | true | false | false | false | false | false | zero |
36,948,386 | Can't seem to register Broadcastreceiver dynamically | <p>I'm pretty new to android, and I've been trying to register my Broadcastreceiver dynamically so I could receive smss , but I just can't seem to make it work, here's my code:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
BroadcastReceiver receiver;
@Override
protected void onCreate(Bundle sa... | I'm pretty new to android, and I've been trying to register my Broadcastreceiver dynamically so I could receive smss , but I just can't seem to make it work, here's my code: [CODE] The "hello" Toast wont pop up so I'm assuming the receiver was not registered I put this permissions in my manifest: [CODE] What am i missi... | android|broadcastreceiver|sms|intentfilter | 0 | 2016-04-29T22:26:03.180Z | 2,016 | 4 | 22 | 4 | 393 | 1 | 324 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
36,948,565 | I'd like to look through a text file that asks math questions and takes in the answer | <p>I can successfully display the first problem from the text file, however I am having trouble accepting that answer and then displaying the second problem. I used a for loop in order to read lines from the text file. I also have an onClick listener.</p>
<p>My major problem is, how do I have the for loop wait until t... | I can successfully display the first problem from the text file, however I am having trouble accepting that answer and then displaying the second problem. I used a for loop in order to read lines from the text file. I also have an onClick listener. My major problem is, how do I have the for loop wait until the onClick ... | android | 0 | 2016-04-29T22:41:09.350Z | 2,016 | 4 | 22 | 4 | 29 | 1 | 538 | 85 | 1 | 1 | true | false | false | false | false | false | zero |
36,949,056 | My Intent does not work | <p>I'm a begginer with Android and this got me stuck. I have this Intent on my MainActivity.java :</p>
<pre><code> Intent callLong = new Intent(MainActivity.this, LongActivity.class);
callLong.putExtra("value1",value1);
callLong.putExtra("value1",value2);
callLong.putExtra("value1",value3);
startAct... | I'm a begginer with Android and this got me stuck. I have this Intent on my MainActivity.java : [CODE] I declared the double values 1,2 and 3, but it says: "Variable might not have been initialized." And in my LongActivity.java I put this code: [CODE] But It doesn't work. Please help :( This is the whole code: [CODE] } | android|android-intent | -1 | 2016-04-29T23:37:34.380Z | 2,016 | 4 | 23 | 4 | 48 | 1 | 320 | 23 | 2 | 3 | true | false | false | false | false | true | negative |
36,949,084 | Capture EditText Changes in MVVMCross | <p>I have a <code>Person</code> Object where I am passing this object from <code>ViewModel A</code> to <code>ViewModel B</code>.</p>
<p>In the <code>View B</code> display this information as follows.</p>
<pre><code> <EditText
style="@style/InputNumbersEditText"
android:layout_weight="1"
android:layo... | I have a Person Object where I am passing this object from ViewModel A to ViewModel B . In the View B display this information as follows. [CODE] Here is the EditPerson property in the ViewModel B [CODE] I wonder when I edit any of these EditText , in debug mode, it does not hit the EditPerson Property at all. How can ... | android|xamarin|mvvmcross | 1 | 2016-04-29T23:40:38.697Z | 2,016 | 4 | 23 | 4 | 640 | 3 | 382 | 37 | 3 | 2 | true | false | false | false | false | false | low |
36,949,108 | Drawable xml issue: corner radius not working | <p>Due to a bug in my app on android 4.4, I had to change some of my xml drawable files.
Now I have this xml file that I use to give a background color and to round the corners:</p>
<p>My xml file:</p>
<pre class="lang-html prettyprint-override"><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:an... | Due to a bug in my app on android 4.4, I had to change some of my xml drawable files. Now I have this xml file that I use to give a background color and to round the corners: My xml file: [CODE] The problem is that my corners are not rounded at all! Note that if I remove this attribute of the "item" tag: [CODE] it work... | android|xml|drawable | 3 | 2016-04-29T23:44:26.543Z | 2,016 | 4 | 23 | 4 | 784 | 0 | 590 | 45 | 3 | 3 | true | true | false | false | false | false | low |
36,949,239 | handler.postDelayed is not working in onHandleIntent method of IntentService | <pre><code>final Handler handler = new Handler();
LOG.d("delay");
handler.postDelayed(new Runnable() {
@Override public void run() {
LOG.d("notify!");
//calling some methods here
}
}, 2000);
</code></pre>
<p>The "delay" does shows in the log, but not others at all. And the method called in the ... | [CODE] The "delay" does shows in the log, but not others at all. And the method called in the run() is not called at all also. Can anyone help explain why this happens, am I doing anything wrong? The class that has this code extends IntentService, will this be a problem? ============================ UPDATE: I put this ... | android|intentservice|android-handler|android-intentservice|postdelayed | 10 | 2016-04-30T00:03:06.977Z | 2,016 | 4 | 0 | 5 | 13,130 | 6 | 1,175 | 76 | 5 | 1 | true | false | true | true | true | false | medium |
36,949,305 | Saving file in Android using Xamarin | <p>In a C# WinForm app I'm using the exact same code to download a file from a website that uses FTPS protocol. </p>
<p>However, when I port the code to a Xamarin Android app the code fails with the following error msg.</p>
<blockquote>
<p>System.UnauthorizedAccessException: Access to the path "/C:\Projects\Downloa... | In a C# WinForm app I'm using the exact same code to download a file from a website that uses FTPS protocol. However, when I port the code to a Xamarin Android app the code fails with the following error msg. System.UnauthorizedAccessException: Access to the path "/C:\Projects\DownloadFileTest1\DownloadFileTest1\bin\de... | c#|winforms|xamarin.android | 1 | 2016-04-30T00:12:51.750Z | 2,016 | 4 | 0 | 5 | 396 | 0 | 582 | 36 | 3 | 2 | true | true | false | false | false | false | low |
36,949,548 | cannot Resolve Symbol 'AsyncResult' | <p>here is my code for downloading information from a google sheet to my app.
my android studio cant seem to find this class.
what can i do about this problem? i'm lost.
thanks.
i took this code from this tutorial:
<a href="http://www.telerik.com/blogs/google-spreadsheet-as-data-source-android" rel="nofollow">http://ww... | here is my code for downloading information from a google sheet to my app. my android studio cant seem to find this class. what can i do about this problem? i'm lost. thanks. i took this code from this tutorial: http://www.telerik.com/blogs/google-spreadsheet-as-data-source-android [CODE] | android|symbols|iasyncresult | 0 | 2016-04-30T00:53:24.377Z | 2,016 | 4 | 0 | 5 | 1,260 | 1 | 289 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
36,949,582 | Unable to convert kivy .py into .apk | <p>I have set up the kivy VM environment and have tested successfully that it's working with a sample main.py made in kivy.</p>
<p>When I tried to convert my actual kivy app, it generates the .apk but after I installed in some android device, the installed logo appears, but when I try to open it, it loaded the kivy lo... | I have set up the kivy VM environment and have tested successfully that it's working with a sample main.py made in kivy. When I tried to convert my actual kivy app, it generates the .apk but after I installed in some android device, the installed logo appears, but when I try to open it, it loaded the kivy logo then dis... | android|python-2.7|ubuntu|apk|kivy | 0 | 2016-04-30T00:57:56.623Z | 2,016 | 4 | 0 | 5 | 251 | 1 | 529 | 36 | 5 | 2 | true | false | false | false | false | false | zero |
36,949,704 | Android Facebook SDK login button only working on one phone | <p>So i've got a <code>LoginActivity</code> that has the facebook <code>LoginButton</code>. It works perfectly fine with my development phone with or without the facebook application.</p>
<p>However, for my emulator device or for my beta testers when the login button is clicked it allows you to login and then once you... | So i've got a LoginActivity that has the facebook LoginButton . It works perfectly fine with my development phone with or without the facebook application. However, for my emulator device or for my beta testers when the login button is clicked it allows you to login and then once you've logged in, the phone simply goes... | android|android-facebook | 0 | 2016-04-30T01:21:13.923Z | 2,016 | 4 | 1 | 5 | 369 | 1 | 893 | 59 | 2 | 1 | true | false | false | false | false | false | zero |
36,949,763 | Twitter fabric API: Sorting tweets based on location (nearest first) | <p>So I am developing a lost and found app using Fabric API. It has a option to sort the collected tweets based on user's current location. I found the below way online to sort using a comparator. This however, doesn't seem to work and the before-sorting and after-sorting results are totally alike.</p>
<pre><code>publ... | So I am developing a lost and found app using Fabric API. It has a option to sort the collected tweets based on user's current location. I found the below way online to sort using a comparator. This however, doesn't seem to work and the before-sorting and after-sorting results are totally alike. [CODE] This is how the ... | android|sorting|twitter|tweets|twitter-fabric | 0 | 2016-04-30T01:34:24.800Z | 2,016 | 4 | 1 | 5 | 69 | 1 | 435 | 68 | 5 | 2 | true | false | false | false | false | false | zero |
36,950,017 | Weird glitch in listview in Android app | <p>There are two weird glitches in my app</p>
<ol>
<li>When using Listview, when I scroll down fast and up again, the first Item changes.</li>
</ol>
<p>I didn't implement anything that would cause this, is it a glitch with
Listview?</p>
<ol start="2">
<li>When updating the Listview, it fetches the data and when it ... | There are two weird glitches in my app When using Listview, when I scroll down fast and up again, the first Item changes. I didn't implement anything that would cause this, is it a glitch with Listview? When updating the Listview, it fetches the data and when it goes to update it, it does the first 12 items right, then... | java|android|android-layout|listview | 0 | 2016-04-30T02:25:00.533Z | 2,016 | 4 | 2 | 5 | 88 | 2 | 572 | 39 | 4 | 3 | true | false | false | false | false | false | zero |
36,950,045 | Phonegap barcode scanner: couldn't make it run | <p>I've tried to create a default Phonegap barcode scanner trough plugin basic installation, but it didn't work well. I don't know what's happening. Here is my code:</p>
<pre><code>var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
// Bind any ev... | I've tried to create a default Phonegap barcode scanner trough plugin basic installation, but it didn't work well. I don't know what's happening. Here is my code: [CODE] It's basically the default Phonegap plugin panel. The problem is that it doesn't recognize the cordova.plugin.barcodeScanner . I've created the projec... | javascript|android|cordova | 1 | 2016-04-30T02:30:23.883Z | 2,016 | 4 | 2 | 5 | 239 | 1 | 507 | 46 | 3 | 1 | true | false | false | false | false | false | low |
36,950,236 | java iterator stops unexpectadely | <p><strong>My code to iterate is,</strong></p>
<pre><code>Iterator<BrokerDeals> it = listBrokerDeals.iterator();
ArrayList<BrokerDeals> listBrokerDeals_new = new ArrayList<BrokerDeals>();
while (it.hasNext())
{
BrokerDeals deals = it.... | My code to iterate is, [CODE] My Log is [CODE] As you can see in log ITERATOR STOPS when deals.ok_id() gives null and Log.i("TRACE==","list broker deals" +listBrokerDeals_new); this never gets printed. Any idea why program is stopping without error? | java|android | 0 | 2016-04-30T03:05:54.673Z | 2,016 | 4 | 3 | 5 | 37 | 1 | 249 | 33 | 2 | 2 | true | false | false | false | false | false | zero |
36,950,272 | Crashing when launching activity | <p>I am trying to start an Activity from the onPostExecute() method in this class:</p>
<pre><code>private class LoadFragmentTask extends AsyncTask<Void, Void, Void> {
private View view;
private Bundle bundle;
public LoadFragmentTask(View view){
this.view = view;
}
@Override
pr... | I am trying to start an Activity from the onPostExecute() method in this class: [CODE] But whenever it tries to launch the activity, it crashes suddenly with no error, but I did manage to find an error somewhere that said Dictionary was not serializable, but it is: [CODE] I just can't figure out why it won't work. | java|android|android-activity|serialization|android-asynctask | 0 | 2016-04-30T03:10:44.203Z | 2,016 | 4 | 3 | 5 | 29 | 1 | 315 | 32 | 5 | 2 | true | false | false | false | false | false | zero |
36,950,285 | Want to loop through questions and count correct answers | <p>I'd like to show a series of 10 questions and have the user answer, and have the app show whether the answer is correct, and then show the next question.</p>
<p>Right now I can show the first question, check whether it's correct, and then display the second question. I don't know how to get this looping, however, t... | I'd like to show a series of 10 questions and have the user answer, and have the app show whether the answer is correct, and then show the next question. Right now I can show the first question, check whether it's correct, and then display the second question. I don't know how to get this looping, however, to show all ... | android | 0 | 2016-04-30T03:13:19.943Z | 2,016 | 4 | 3 | 5 | 103 | 3 | 364 | 56 | 1 | 1 | true | false | false | false | false | false | zero |
36,950,398 | Listview Element onItemClickListeners overlapping | <p>I've created a list view that automatically created its content from an sql DB. When clicked, each list item opens into another page based on what was clicked, but the area for clicking on each member of the list seems to extend across the entire page, despite each member only filling part of the page, as a result t... | I've created a list view that automatically created its content from an sql DB. When clicked, each list item opens into another page based on what was clicked, but the area for clicking on each member of the list seems to extend across the entire page, despite each member only filling part of the page, as a result the ... | android|listview | 0 | 2016-04-30T03:33:15.870Z | 2,016 | 4 | 3 | 5 | 49 | 1 | 776 | 49 | 2 | 3 | true | false | false | false | false | false | zero |
36,950,563 | Android Studio - Parsing with jsoup throws error (java.lang.NullPointerException) | <p>I am trying to data_mine a table from a website, store it into an <code>ArrayList<String></code>and view it on a <code>ListView</code> layout. Every time I run the program I get this error.</p>
<pre><code>04-29 23:52:57.122 20095-20095/com.example.user.datamining E/AndroidRuntime: FATAL EXCEPTION: main
Proces... | I am trying to data_mine a table from a website, store it into an ArrayList<String> and view it on a ListView layout. Every time I run the program I get this error. [CODE] This is my code: [CODE] | java|android|jsoup | 1 | 2016-04-30T04:00:55.357Z | 2,016 | 4 | 4 | 5 | 4,026 | 1 | 195 | 81 | 3 | 2 | true | false | true | false | false | false | low |
36,950,592 | How to save resources on android when loading several bitmaps from assets that are needed in various activities | <p>Sorry for the long title just wanted to be specific So I have several activities that once started should have all bitmaps in assets initialized, the code that follows works but there most be better solutions please all help will be appreciated.</p>
<p>Class that initializes bitmaps:</p>
<pre><code>public class Im... | Sorry for the long title just wanted to be specific So I have several activities that once started should have all bitmaps in assets initialized, the code that follows works but there most be better solutions please all help will be appreciated. Class that initializes bitmaps: [CODE] ´ Code from main activity: [CODE] U... | android|performance|bitmap|assets|android-bitmap | 0 | 2016-04-30T04:06:47.093Z | 2,016 | 4 | 4 | 5 | 34 | 1 | 340 | 111 | 5 | 3 | true | false | false | false | false | false | zero |
36,950,641 | How to implement onBackPressed() from Viewpager subFragment | <p>I am trying implement <strong><em>onBackPressed()</em></strong> from ViewPager subFragment. I has some issue. I did listener and implement for both. But it works only for Fragment B. But When I delete implementing from Fragment B, onBackPressed() worked for Fragment A. What I am doing wrong? Any help apraciete!
<br... | I am trying implement onBackPressed() from ViewPager subFragment. I has some issue. I did listener and implement for both. But it works only for Fragment B. But When I delete implementing from Fragment B, onBackPressed() worked for Fragment A. What I am doing wrong? Any help apraciete! Structure I did listener [CODE] }... | android|android-fragments|android-viewpager | 0 | 2016-04-30T04:15:58.567Z | 2,016 | 4 | 4 | 5 | 913 | 1 | 493 | 59 | 3 | 4 | true | false | false | false | false | false | zero |
36,950,692 | SeekBar.IOnSeekBarChangeListener, seekBar can't run | <p>A callback that notifies clients when the progress level has been changed. This includes changes that were initiated by the user through a touch gesture or arrow key/trackball as well as changes that were initiated programmatically.</p>
<p>Inside <code>OnCreate</code></p>
<pre><code>public class AudioPlayer : Acti... | A callback that notifies clients when the progress level has been changed. This includes changes that were initiated by the user through a touch gesture or arrow key/trackball as well as changes that were initiated programmatically. Inside OnCreate [CODE] While tracks are playing, seekBar still stops. | xamarin|xamarin.android | 1 | 2016-04-30T04:23:36.313Z | 2,016 | 4 | 4 | 5 | 274 | 1 | 302 | 51 | 2 | 1 | true | false | false | false | false | false | low |
36,950,724 | Why is my SQLite database keep adding those data that have been added? | <p>I just want my SQLite databse add the data one time, but My SQLite database keeps adding those data that have been added when I launch my app? How could I solve this problem? Can someone help me? I appreciate it.</p>
<p>Here is my java main class:</p>
<pre><code>public class MainActivity extends AppCompatActivity ... | I just want my SQLite databse add the data one time, but My SQLite database keeps adding those data that have been added when I launch my app? How could I solve this problem? Can someone help me? I appreciate it. Here is my java main class: [CODE] Here is my database class: [CODE] | android|database|sqlite | 0 | 2016-04-30T04:28:16.947Z | 2,016 | 4 | 4 | 5 | 154 | 2 | 281 | 70 | 3 | 2 | true | false | false | false | false | false | zero |
36,950,821 | Unable to hide button from Listview in Custom Dialog Android | <p>In first activity i have button(Named btIndividual) inside listview from that one custom dialog layout opens. In that custom dialog i have one text and edittext field inside listview and one save Button for posting data to server. Now i want that after posting data to server the button named btIndividual in first ac... | In first activity i have button(Named btIndividual) inside listview from that one custom dialog layout opens. In that custom dialog i have one text and edittext field inside listview and one save Button for posting data to server. Now i want that after posting data to server the button named btIndividual in first activ... | android|listview|adapter | 0 | 2016-04-30T04:42:17.160Z | 2,016 | 4 | 4 | 5 | 66 | 1 | 504 | 60 | 3 | 3 | true | false | false | false | false | false | zero |
36,950,864 | Android VideoView not working in sdk 4.3 | <p>I am trying to play a video from the device on a <code>VideoView</code>. Here is my code: </p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
vView = (VideoView) findViewById(R.id.videoView);
mc = new MediaCont... | I am trying to play a video from the device on a VideoView . Here is my code: [CODE] ... [CODE] While using the same code on 5.1 it plays fine, but does not play in 4.3 and below. Following is the log extract: [CODE] I have seen many threads in regard to this error code, but could not comprehend any explanations. EDIT:... | android|android-videoview | 1 | 2016-04-30T04:47:13.973Z | 2,016 | 4 | 4 | 5 | 587 | 1 | 586 | 40 | 2 | 3 | true | false | false | false | false | false | low |
36,950,940 | How handle boundary condition on buffer size when reading synchronously from a socket? | <p>If you call <code>read()</code> on an <code>InputStream</code> retrieved from a <code>Socket</code> (with an infinite read timeout) passing a buffer of <code>N</code> bytes and it returns <code>N</code>, how do you distinguish between these 2 cases:</p>
<ol>
<li>There was exactly <code>N</code> bytes received by th... | If you call read() on an InputStream retrieved from a Socket (with an infinite read timeout) passing a buffer of N bytes and it returns N , how do you distinguish between these 2 cases: There was exactly N bytes received by the socket so far and your buffer happens to have the same size Calling read() again will block ... | java|android | 0 | 2016-04-30T04:58:16.833Z | 2,016 | 4 | 4 | 5 | 39 | 0 | 1,076 | 86 | 2 | 0 | false | true | false | false | false | false | zero |
36,950,973 | Meteor App Mongo Collection doesn't load on Chrome Mobile | <p>I've created a <em>Meteor 1.3</em> test app to demonstrate the problem I'm facing. It's online at <a href="http://grido.bvodola.webfactional.com" rel="nofollow">grido.bvodola.webfactional.com</a>. This is a very simple todo app.</p>
<p>This app works well almost everywhere. Except on some of the devices I tested an... | I've created a Meteor 1.3 test app to demonstrate the problem I'm facing. It's online at grido.bvodola.webfactional.com . This is a very simple todo app. This app works well almost everywhere. Except on some of the devices I tested and only on mobile versions of Google Chrome. The versions I tested were 50.0.2661.89 an... | javascript|android|mongodb|google-chrome|meteor | 0 | 2016-04-30T05:03:43.737Z | 2,016 | 4 | 5 | 5 | 125 | 0 | 859 | 57 | 5 | 4 | true | true | false | false | false | false | zero |
36,950,991 | Add shadow between layout | <p>I'm trying to do this for months and finally i can't find anyway. Elevation is just for API 21+ and other ways sometimes work and sometimes doesn't. I'm working on a music player and i need shadow between music controller and musics cover. How to add shadow? elevation doesn't work here as you can see</p>
<pre><code... | I'm trying to do this for months and finally i can't find anyway. Elevation is just for API 21+ and other ways sometimes work and sometimes doesn't. I'm working on a music player and i need shadow between music controller and musics cover. How to add shadow? elevation doesn't work here as you can see [CODE] | java|android|layout | 1 | 2016-04-30T05:06:40.503Z | 2,016 | 4 | 5 | 5 | 75 | 1 | 308 | 25 | 3 | 1 | true | false | false | false | false | false | low |
36,951,077 | Android NfcV get information command returns only one byte | <p>I'm writing an app for reading binary infos of NFC tags. Here's the code of the NFC intent handler function:</p>
<pre><code>protected void onNewIntent(@NonNull Intent intent)
{
try
{
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
NfcV nfcV = NfcV.get(tag);
byt... | I'm writing an app for reading binary infos of NFC tags. Here's the code of the NFC intent handler function: [CODE] If I run this function reading an NFC tag on a Samsung S3 Neo everything works fine, the answer variable is filled with the expected data: [CODE] Howewer if I run the same function reading the same NFC ta... | android|tags|nfc|rfid|iso-15693 | 2 | 2016-04-30T05:19:40.427Z | 2,016 | 4 | 5 | 5 | 1,855 | 1 | 708 | 58 | 5 | 4 | true | false | false | false | false | false | low |
36,951,168 | How to modify EditText's content on-the-fly? | <p>I have an <code>EditText</code> which requires certain on-the-fly formatting after each character when user types text into it. However, <code>TextWatcher</code> doesn't seem to be suitable for this since whenever the text is changed, it is called recursively:</p>
<blockquote>
<p>It is legitimate to make further ... | I have an EditText which requires certain on-the-fly formatting after each character when user types text into it. However, TextWatcher doesn't seem to be suitable for this since whenever the text is changed, it is called recursively: It is legitimate to make further changes to s from this callback, but be careful not ... | android | 1 | 2016-04-30T05:33:35.323Z | 2,016 | 4 | 5 | 5 | 85 | 0 | 701 | 44 | 1 | 1 | true | true | false | false | false | false | low |
36,951,291 | How to properly login to Google Play Games services in Unity? | <p>I'm just looking for some help from someone who has expert nce working with Google Play Games Services in Unity on Android. Basically, I've got my project all set up in the Google Developer console, and using the most recent version of the Google-made plugin for Unity. </p>
<p>I've got my package signinf, and onsta... | I'm just looking for some help from someone who has expert nce working with Google Play Games Services in Unity on Android. Basically, I've got my project all set up in the Google Developer console, and using the most recent version of the Google-made plugin for Unity. I've got my package signinf, and onstart in my gam... | android|unity3d|google-play-games | 3 | 2016-04-30T05:49:59.520Z | 2,016 | 4 | 5 | 5 | 7,153 | 0 | 1,155 | 61 | 3 | 1 | true | true | true | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.