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,936,720 | toolbar turns to blank while scrolling the view | <p>am using coordinator layout for hiding the toolbar but the problem is in some devices (android 4.4)am getting blank toolbar while scrolling the list ,please help me </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.... | am using coordinator layout for hiding the toolbar but the problem is in some devices (android 4.4)am getting blank toolbar while scrolling the list ,please help me [CODE] | android|material-design | 0 | 2016-04-29T11:06:26.670Z | 2,016 | 4 | 11 | 4 | 100 | 2 | 171 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
36,936,733 | recycler view does not scroll fluently | <p>I have a fragment in my Activity with the below structure:</p>
<pre><code><android.support.v7.widget.RecyclerView android:id="@+id/cafeRecyclerView"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_paren... | I have a fragment in my Activity with the below structure: [CODE] it has only a RecyclerView. and it has an Adapter with the below code: [CODE] I also setup my fragment at this way: [CODE] and each time I receive new data from server, I add them to RecyclerView in CardView s at this way: [CODE] every thing is fine! I c... | android|android-fragments|android-recyclerview|android-cardview | 0 | 2016-04-29T11:06:56.947Z | 2,016 | 4 | 11 | 4 | 198 | 1 | 639 | 38 | 4 | 4 | true | false | false | false | false | false | zero |
36,936,773 | AndroidPlot graph disappears on landscape view in Fragment | <p>I am using AndroidPlot for displaying dynamic data on a graph in my android App. The graph is displayed in a fragment, which is a part of a tabbed screen (view pager). The graph needs to be displayed in landscape and portrait mode.</p>
<p>When the graph is displayed on the portrait mode, I can see it properly. How... | I am using AndroidPlot for displaying dynamic data on a graph in my android App. The graph is displayed in a fragment, which is a part of a tabbed screen (view pager). The graph needs to be displayed in landscape and portrait mode. When the graph is displayed on the portrait mode, I can see it properly. However, when t... | android|android-fragments|androidplot | 0 | 2016-04-29T11:08:49.793Z | 2,016 | 4 | 11 | 4 | 249 | 0 | 760 | 58 | 3 | 2 | true | true | false | false | false | false | zero |
36,936,947 | How to show error message in my android webview app when no internet is connected to mobile | <p>iam begineer in android development , i would like to diplay my custom/own error message instead of web page not avaialble message when my device is not connected to internet . </p>
<p>Here is my Main activity.java Source:</p>
<pre><code>import android.app.ActionBar;
import android.app.Activity;
import android.con... | iam begineer in android development , i would like to diplay my custom/own error message instead of web page not avaialble message when my device is not connected to internet . Here is my Main activity.java Source: [CODE] and here is myappwebviewclient.java source : [CODE] Plz help me in Fixing this. | android | 0 | 2016-04-29T11:16:42.367Z | 2,016 | 4 | 11 | 4 | 3,042 | 2 | 301 | 91 | 1 | 2 | true | false | true | false | false | false | zero |
36,936,993 | Is event bus library mechanism as bad as the use of static variables to pass data between activities? | <p>I'm learning Android, and AFAIK, the standard Android mechanism to pass data between Activities is using Intents which in turn are implemented as IPC on lower level (maybe I'm wrong).</p>
<p>It seems that recently have emerged a bunch of libraries to make life easier to Android devs. Between them, the famous Event ... | I'm learning Android, and AFAIK, the standard Android mechanism to pass data between Activities is using Intents which in turn are implemented as IPC on lower level (maybe I'm wrong). It seems that recently have emerged a bunch of libraries to make life easier to Android devs. Between them, the famous Event Bus (Greenr... | android|android-intent|event-bus|otto | 2 | 2016-04-29T11:18:54.450Z | 2,016 | 4 | 11 | 4 | 1,162 | 1 | 1,234 | 101 | 4 | 0 | false | false | false | false | false | false | low |
36,936,999 | JSON Out of Memory error | <p>The application I made worked fine on my phone. When I launched it on the Google Play Store as a alpha version, i've had some reports/crashes of an Out of Memory error.</p>
<p>The error that is send:</p>
<pre><code>android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating cla... | The application I made worked fine on my phone. When I launched it on the Google Play Store as a alpha version, i've had some reports/crashes of an Out of Memory error. The error that is send: [CODE] The code where is goes wrong: [CODE] XML layout: [CODE] When I debug I noticed that the setButtonLessons has the full 10... | java|android|json|arraylist | 0 | 2016-04-29T11:19:10.883Z | 2,016 | 4 | 11 | 4 | 754 | 1 | 704 | 24 | 4 | 4 | true | false | false | false | false | false | zero |
36,937,047 | rare InflateException on ProgressBar | <ol>
<li><code>Activity</code> with <code>ViewPager</code></li>
<li>each page is <code>Fragment</code>, which is inflating custom layout-template</li>
<li>content (JSON) is downloading (using <code>Loader</code>) for each <code>Fragment</code> and after download I'm fulfilling previously inflated layout.</li>
<li><p>in... | Activity with ViewPager each page is Fragment , which is inflating custom layout-template content (JSON) is downloading (using Loader ) for each Fragment and after download I'm fulfilling previously inflated layout. inside layout I have container to which I'm adding manually "lines" (after downloading I know how much),... | android|android-progressbar|android-inflate | 0 | 2016-04-29T11:21:39.720Z | 2,016 | 4 | 11 | 4 | 348 | 1 | 763 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
36,937,090 | java.lang.IllegalStateException: Could not execute method of the activity | <p>During development, there was a similar problem and also because of the fact that I am a novice, do not know how to handle it, thanks in advance to those who help!
I tried to change something to rewrite over and all else fails, I can not understand at what point I did something wrong</p>
<p>Activity</p>
<pre><code... | During development, there was a similar problem and also because of the fact that I am a novice, do not know how to handle it, thanks in advance to those who help! I tried to change something to rewrite over and all else fails, I can not understand at what point I did something wrong Activity [CODE] Error [CODE] | java|android | 0 | 2016-04-29T11:23:42.157Z | 2,016 | 4 | 11 | 4 | 367 | 2 | 313 | 73 | 2 | 2 | true | false | false | false | false | false | zero |
36,937,107 | Delay in audio for Mic to speaker direct streaming application Android | <p>I am trying to built a mic application, sound from mic is directly played by speaker.The problem is there is a delay in sound heard. Code is given below. Is there a way to avoid this delay? I have heard that we can avoid this by adding native code in c/c++ and then call it from java. Is it possible? If so how?</p>
... | I am trying to built a mic application, sound from mic is directly played by speaker.The problem is there is a delay in sound heard. Code is given below. Is there a way to avoid this delay? I have heard that we can avoid this by adding native code in c/c++ and then call it from java. Is it possible? If so how? [CODE] | android|audio|android-ndk|java-native-interface|microphone | 2 | 2016-04-29T11:24:30.890Z | 2,016 | 4 | 11 | 4 | 2,011 | 2 | 318 | 70 | 5 | 1 | true | false | false | false | false | false | low |
36,937,122 | Android How does TextView Shadow work | <p>I have textview with shadow to show,I put parameters of Shadow ShadowX and ShadowY and ShadowRadius like in following XML code</p>
<pre><code> <TextView
android:id="@+id/Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:shadowD... | I have textview with shadow to show,I put parameters of Shadow ShadowX and ShadowY and ShadowRadius like in following XML code [CODE] but I don't know that how Shadow X ,Shadow Y and Shadow Radius work in background and how android evaluate these parameters values conceptually? android:shadowDx – specifies the X-axis o... | android|textview|shadow | 4 | 2016-04-29T11:25:03.647Z | 2,016 | 4 | 11 | 4 | 16,628 | 2 | 1,017 | 37 | 3 | 1 | true | false | true | true | false | false | low |
36,937,169 | android audio file play between milliseconds range | <p>I want play mp3 sound file between range of milliseconds.
So I tried do that by like described this <a href="https://stackoverflow.com/questions/26369993/how-to-play-an-mp3-file-between-a-range-of-milliseconds-using-android-mediaplaye">question.</a> </p>
<p>But I receive result almost good for me. The sound files ... | I want play mp3 sound file between range of milliseconds. So I tried do that by like described this question. But I receive result almost good for me. The sound files has different parameters like sample rate... So, I get code from ringdroid library. It's two java files, decoder and player, based on AudioTrack.java Pla... | java|android|audio | 1 | 2016-04-29T11:27:41.190Z | 2,016 | 4 | 11 | 4 | 691 | 1 | 650 | 50 | 3 | 3 | true | false | false | false | false | false | low |
36,937,176 | How to left align tabs for TabHost using TabWidget? | <p>The following is my XML layout. I am trying to left align the only tab as seen in the following image (the image has 2 tabs, but I want to align it in the way that it only has "<strong>FOCUSED</strong>" without "<strong>OTHER</strong>" tab)</p>
<p><img src="https://i.imgur.com/PGFhrcI.png" alt="image"></p>
<p><str... | The following is my XML layout. I am trying to left align the only tab as seen in the following image (the image has 2 tabs, but I want to align it in the way that it only has " FOCUSED " without " OTHER " tab) Message_List.xml [CODE] Currently, i only have 1 tab and it is in the center with white spaces on its left an... | android|xml|layout|android-tabhost|tabwidget | 4 | 2016-04-29T11:27:57.033Z | 2,016 | 4 | 11 | 4 | 514 | 0 | 328 | 51 | 5 | 1 | true | true | false | false | false | false | low |
36,937,232 | Fail to parse Dynamic KeyValue pair JSON Using Custom JsonDeserializer GSON | <p>I am tried to parse JSON using customDeserilizer for nesting Object</p>
<p>Here is my deserializer: </p>
<pre><code> class MapDeserializer implements JsonDeserializer<Map<String, String>> {
public Map<String, String> deserialize(JsonElement json, Type typeOfT,
... | I am tried to parse JSON using customDeserilizer for nesting Object Here is my deserializer: [CODE] And i am using following line of code to register this deserializer [CODE] Here is my POJO Class [CODE] I am getting following Error [CODE] | java|json|gson|android | 0 | 2016-04-29T11:30:23.830Z | 2,016 | 4 | 11 | 4 | 190 | 1 | 239 | 75 | 4 | 4 | true | false | false | false | false | false | zero |
36,937,274 | Java Android Basic game - Saving a HighScore using shared preferences - TOTAL BEGINNER | <p>I am a total beginner to Java Android programming. I'm creating a basic android game using Eclipse and I want to save a High Score. I've been told to use shared preferences so when I exit the game and open it again, the high score is saved. I've already got the High score to save on my 'main Menu' page but very conf... | I am a total beginner to Java Android programming. I'm creating a basic android game using Eclipse and I want to save a High Score. I've been told to use shared preferences so when I exit the game and open it again, the high score is saved. I've already got the High score to save on my 'main Menu' page but very confuse... | java|android|eclipse | 1 | 2016-04-29T11:32:26.583Z | 2,016 | 4 | 11 | 4 | 140 | 1 | 542 | 86 | 3 | 1 | true | false | false | false | false | false | low |
36,937,310 | android- Intentional '%' in string throws IllegalArgumentException | <p>I am making a http call to an api for a string response.
The result contains intentional % signs in a sentence like:
"This land is 95% fertail and 5% contaminated"</p>
<p>Android throws IllegalArgumentException: Invalid % sequence at 1756 which corresponds to the "95%" part.</p>
<p><strong>EDIT</strong>: StackTrac... | I am making a http call to an api for a string response. The result contains intentional % signs in a sentence like: "This land is 95% fertail and 5% contaminated" Android throws IllegalArgumentException: Invalid % sequence at 1756 which corresponds to the "95%" part. EDIT : StackTrace: [CODE] My httpGet method: [CODE]... | android|encoding|utf-8|illegalargumentexception | 1 | 2016-04-29T11:34:06.723Z | 2,016 | 4 | 11 | 4 | 387 | 0 | 818 | 66 | 4 | 3 | true | true | false | false | false | false | low |
36,937,371 | cannot access javascript output in android code properly | <p>I have used <a href="http://developer.android.com/guide/webapps/webview.html" rel="nofollow">this</a> guide for binding JavaScript code to Android code which works properly (a <code>Toast</code> message is triggered from javascript code and shows <code>double</code> type output of javascript code). My problem is tha... | I have used this guide for binding JavaScript code to Android code which works properly (a Toast message is triggered from javascript code and shows double type output of javascript code). My problem is that I cannot use the output in other parts of code. For example, correct outputs are 10, 20, 30, ... , but what I ac... | javascript|java|android|global-variables|inner-classes | 1 | 2016-04-29T11:37:37.183Z | 2,016 | 4 | 11 | 4 | 133 | 2 | 653 | 56 | 5 | 2 | true | false | false | false | false | false | low |
36,937,377 | Android: Align 3 TextViews in custom ListView | <p>I have 3 texviews in my custom ListView. Each TextView in each row has their varying length (on the screen, max length of 1th - 3, another two - 14).</p>
<p>How can I align them in one line?</p>
<p><a href="http://i.imgur.com/34tm0Ay.jpg" rel="nofollow" title="screen">screen</a></p>
<p>My layout:</p>
<pre><code>... | I have 3 texviews in my custom ListView. Each TextView in each row has their varying length (on the screen, max length of 1th - 3, another two - 14). How can I align them in one line? screen My layout: [CODE] | android|xml|listview | 0 | 2016-04-29T11:37:53.747Z | 2,016 | 4 | 11 | 4 | 550 | 5 | 208 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
36,937,624 | link query isnt working in realm | <p>i have following json structure</p>
<pre><code>Appointment (Appointment name in model )
|
|___AppointmentList (appointmentLists name in model)
|
|__sync (sync name in model )
|__subject
|__time
</code></pre>
<p>now i am trying to fetch sync = 1 but its returning all the data... | i have following json structure [CODE] now i am trying to fetch sync = 1 but its returning all the data whether sync has 1 or 0 [CODE] it only works in following case [CODE] | android|realm | 0 | 2016-04-29T11:49:28.307Z | 2,016 | 4 | 11 | 4 | 86 | 1 | 173 | 32 | 2 | 3 | true | false | false | false | false | false | zero |
36,937,673 | how to make tablayout transparent on image slider | <p>how to make tab layout transparent on image slider...here is my layout where i declared tab layout...i searched lot but i don't got any solution for this...</p>
<pre><code><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xm... | how to make tab layout transparent on image slider...here is my layout where i declared tab layout...i searched lot but i don't got any solution for this... [CODE] like in this image.. my app is like this | android|android-tablayout | 0 | 2016-04-29T11:51:29.207Z | 2,016 | 4 | 11 | 4 | 670 | 1 | 204 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
36,937,748 | Error inflating class android.support.design.widget.TabLayout occurs even after creating a style for TabLayout | <p>I've tried the solution that should make it work(custom style) :</p>
<p>folder <strong>res\values-v21\styles.xml</strong> :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="AppTheme.Base"/>
<!--... | I've tried the solution that should make it work(custom style) : folder res\values-v21\styles.xml : [CODE] the tab layout in myFragment.xml : [CODE] *using compile 'com.android.support:design:+' backtrace from Crashlytics (Since I've migrated to Android Studio, I can't see the stacktrace there like in Eclipse. Logcat p... | android|xml | 1 | 2016-04-29T11:54:59.853Z | 2,016 | 4 | 11 | 4 | 1,415 | 1 | 405 | 110 | 2 | 4 | true | false | false | false | false | false | low |
36,937,849 | Storing an arraylist of custom objects (which have Strings, Dates, Lists, and more as fields) in shared preferences | <p>I am trying to save an arraylist of clients in shared preferences, however I am getting out of memory error. I am new to this and can't figure out how to do this? I looked at a lot of pages on stackoverflow, but couldn't find one that would work for me or that also had an <code>ArrayList</code> of custom objects, wh... | I am trying to save an arraylist of clients in shared preferences, however I am getting out of memory error. I am new to this and can't figure out how to do this? I looked at a lot of pages on stackoverflow, but couldn't find one that would work for me or that also had an ArrayList of custom objects, where every object... | java|android|arraylist|save|sharedpreferences | 2 | 2016-04-29T12:00:18.227Z | 2,016 | 4 | 12 | 4 | 176 | 1 | 613 | 115 | 5 | 2 | true | false | false | false | false | false | low |
36,937,862 | Intent recieved from action send generates SecurityException on URI | <p>I'm trying to accept images with my app to send them to a server. Setting up the intent filter was easy enough and that works like a charm. The thing i can't seem to figure out is the way i need to retrieve the file path from the uri in the intent.</p>
<p>I receive intents on my activity with this filter</p>
<pre>... | I'm trying to accept images with my app to send them to a server. Setting up the intent filter was easy enough and that works like a charm. The thing i can't seem to figure out is the way i need to retrieve the file path from the uri in the intent. I receive intents on my activity with this filter [CODE] By trying to p... | android|android-intent|securityexception | 1 | 2016-04-29T12:00:52.800Z | 2,016 | 4 | 12 | 4 | 602 | 1 | 610 | 67 | 3 | 3 | true | false | false | false | false | false | low |
36,937,901 | android : show gif image 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.Att... | 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] but the image dose not show in loop.it loops just once.how can I show it in loop? | android|gif | 1 | 2016-04-29T12:03:00.253Z | 2,016 | 4 | 12 | 4 | 91 | 0 | 251 | 35 | 2 | 2 | true | true | false | false | false | false | low |
36,937,917 | Android: Unable to Decrypt Value | <p>Successfully get Right encrypted value but facing problem to decrypt that value(already encrypted).</p>
<p><strong>Value</strong>: 123456</p>
<p><strong>Encrpted</strong>: ncSzDj4j8l44iM5qgaqHgA==</p>
<p>Why i got java.lang.Exception: [decrypt] Invalid int: "Bo" ?</p>
<p>Is there any solution / Suggestion it... | Successfully get Right encrypted value but facing problem to decrypt that value(already encrypted). Value : 123456 Encrpted : ncSzDj4j8l44iM5qgaqHgA== Why i got java.lang.Exception: [decrypt] Invalid int: "Bo" ? Is there any solution / Suggestion it would be appreciated. Thanks MainActivity.java [CODE] ApiCrypter3.java... | java|android|encryption|rijndael | 1 | 2016-04-29T12:03:52.057Z | 2,016 | 4 | 12 | 4 | 3,004 | 2 | 340 | 32 | 4 | 3 | true | false | true | false | false | false | low |
36,937,925 | RecylerView data is missing after change page in viewpager? | <p>Hi I have a recyclerview in viewpager .It loads data when app launched.but When I change view pager and go back to recyclerview page, the data is missing. Recylerview looks empty.</p>
<p><strong>fragment_home.xml</strong></p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
... | Hi I have a recyclerview in viewpager .It loads data when app launched.but When I change view pager and go back to recyclerview page, the data is missing. Recylerview looks empty. fragment_home.xml [CODE] acitivity_home.xml [CODE] LibraryProductListAdapter.class [CODE] HomeFragment.java [CODE] | android|android-layout | 2 | 2016-04-29T12:04:03.493Z | 2,016 | 4 | 12 | 4 | 1,192 | 1 | 294 | 59 | 2 | 4 | true | false | false | false | false | false | low |
36,937,952 | Error creating apk, ONLY when creating signed apk | <p>I’ve been struggling to resolve a issue, tried several options, but couldn’t solve it.</p>
<p>Getting issue, only when creating signed apk : </p>
<blockquote>
<p>Error:Execution failed for task
':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.Zi... | I’ve been struggling to resolve a issue, tried several options, but couldn’t solve it. Getting issue, only when creating signed apk : Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/applov... | android|android-studio-2.0|android-multidex|applovin | 1 | 2016-04-29T12:05:30.633Z | 2,016 | 4 | 12 | 4 | 339 | 2 | 906 | 49 | 4 | 1 | true | false | false | false | false | false | low |
36,937,989 | Android RxJava remember variable | <p>I'm learning RxJava. </p>
<h3> My data: </h3>
<ul>
<li>String variable - command</li>
</ul>
<h3> My goal: </h3>
<ul>
<li>Split string (<em>space</em> as regular expression) - <em>done</em></li>
<li>Check if array has elements - <em>done</em></li>
<li>Map array into strings (foreach) - <em>done</em></li>
<li>Impo... | I'm learning RxJava. My data: String variable - command My goal: Split string ( space as regular expression) - done Check if array has elements - done Map array into strings (foreach) - done Important thing: I have to remember my 1st string after split, because it is required in subscribe I know that my 2nd string is o... | android|arrays|json|string|rx-java | 1 | 2016-04-29T12:07:57.240Z | 2,016 | 4 | 12 | 4 | 130 | 1 | 568 | 32 | 5 | 1 | true | false | false | false | false | false | low |
36,938,055 | Is there a way to extract a string with an automatically generated resource name for a java file in Android Studio? | <p>In Android Studio, Alt + Enter > "Extract String Resource" in a java file will open the following window:</p>
<p><a href="https://i.stack.imgur.com/WUgOg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WUgOg.png" alt="enter image description here"></a></p>
<p>Please note that the Resource name f... | In Android Studio, Alt + Enter > "Extract String Resource" in a java file will open the following window: Please note that the Resource name field is blank. However, the window will be like the following for a layout XML file: Please note the Resource name field is filled automatically. How can the Resource name field ... | android-studio|android-resources|android-studio-2.1 | 4 | 2016-04-29T12:11:36.747Z | 2,016 | 4 | 12 | 4 | 1,240 | 2 | 817 | 115 | 3 | 0 | false | false | false | false | false | false | low |
36,938,131 | Admob Violation Message Android Application | <p>I received this message, but I don't understand what's wrong with my app,
can you help, please?</p>
<blockquote>
<p>As a courtesy, we are alerting you that your app is currently in
violation of the AdMob program policies. Importantly, this will
require action on your part to ensure no disruption in ad serving... | I received this message, but I don't understand what's wrong with my app, can you help, please? As a courtesy, we are alerting you that your app is currently in violation of the AdMob program policies. Importantly, this will require action on your part to ensure no disruption in ad serving. Please read below for more i... | android|xml|layout|admob | 2 | 2016-04-29T12:14:51.273Z | 2,016 | 4 | 12 | 4 | 2,504 | 1 | 868 | 43 | 4 | 1 | true | false | false | false | false | false | low |
36,938,229 | How to distinguish between ACTION_UP and actual click via onTouchListener? | <p>I have an <code>ImageView</code> with an icon. I want to be able to:<br><br>
<strong>1</strong>. Change the icon on hover (meaning - change to icon #2 on <strong>ACTION_DOWN</strong> but also change it back to icon #1 on <strong>ACTION_UP</strong>)<br>
<strong>2</strong>. Trigger an onClick function (meaning - call ... | I have an ImageView with an icon. I want to be able to: 1 . Change the icon on hover (meaning - change to icon #2 on ACTION_DOWN but also change it back to icon #1 on ACTION_UP ) 2 . Trigger an onClick function (meaning - call another function when the ImageView was clicked ) This is how my onTouch looks like right now... | android|ontouchlistener | 0 | 2016-04-29T12:20:00.960Z | 2,016 | 4 | 12 | 4 | 41 | 2 | 682 | 74 | 2 | 1 | true | false | false | false | false | false | zero |
36,938,273 | android trianglish shape drawable | <p>I would like to achieve something like this:</p>
<p><a href="https://i.stack.imgur.com/LwkVe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LwkVe.jpg" alt="enter image description here"></a></p>
<p>This is my code. I unsuccessfully played with different attributes but nothing helped so far.
Thi... | I would like to achieve something like this: This is my code. I unsuccessfully played with different attributes but nothing helped so far. This is what I get. Colors are not important here [CODE] | android|android-drawable | 0 | 2016-04-29T12:22:51.477Z | 2,016 | 4 | 12 | 4 | 64 | 1 | 195 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
36,938,356 | Loading listView in new activity | <p>I'm having a bit of a trouble loading contents to a fresh listView. If i use setContentView, it displays an empty list and if i try changing my Intent the app crashes. Please what am I doing wrong. The main Activity class is: </p>
<pre><code>ListView lv;
Context context;
private int [] prgmImages={R.drawable.ph... | I'm having a bit of a trouble loading contents to a fresh listView. If i use setContentView, it displays an empty list and if i try changing my Intent the app crashes. Please what am I doing wrong. The main Activity class is: [CODE] My main xml layout construct is as follows: [CODE] I built it the following custom adap... | android|listview | 0 | 2016-04-29T12:27:28.967Z | 2,016 | 4 | 12 | 4 | 83 | 2 | 643 | 32 | 2 | 5 | true | false | false | false | false | false | zero |
36,938,438 | Starting location updates | <p>I am having trouble with the following code:</p>
<pre><code>protected void startLocationUpdates() {
LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, LocationRequest mLocationRequest, this);
Location OldLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);
... | I am having trouble with the following code: [CODE] When I type the request for location updates, the location request comes up with "Can't resolve symbol mLocationRequest." However, I have defined it below: [CODE] And OldLocation getLastLocation says the call requires permission, which I have defined in onCreate() Doe... | android|permissions | -1 | 2016-04-29T12:32:10.817Z | 2,016 | 4 | 12 | 4 | 39 | 1 | 592 | 25 | 2 | 2 | true | false | false | false | false | true | negative |
36,938,497 | android intent filter for pick file not working on Huawei P8 and LG F70 phones | <p>I want to open *.gpx files with my app. After some resource I placed these intent filters to my manifest file:</p>
<pre><code><!-- Intent-filter for Intents that contain the file suffix. -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="and... | I want to open *.gpx files with my app. After some resource I placed these intent filters to my manifest file: [CODE] and it's works with the most of android versions and phones. BUT as far as I know on the LG F70 with android version 4.4.2 and on the Huawei P8 Lite with android version 5.0.1 using the default file bro... | android|android-intent|android-manifest|intentfilter | 2 | 2016-04-29T12:35:16.843Z | 2,016 | 4 | 12 | 4 | 1,172 | 2 | 518 | 78 | 4 | 1 | true | false | false | false | false | false | low |
36,938,504 | Visibility not working in data binding android | <p>I am using the latest data binding in android using android studio 2.1.
using the visibility tag as describe in the below code getting an error as </p>
<blockquote>
<p>java.lang.RuntimeException: Found data binding errors.
/ data binding error ****msg:Identifiers must have user defined types from the XML file. ... | I am using the latest data binding in android using android studio 2.1. using the visibility tag as describe in the below code getting an error as java.lang.RuntimeException: Found data binding errors. / data binding error ****msg:Identifiers must have user defined types from the XML file. View is missing it file:D:\HP... | android|android-layout|android-fragments|android-databinding | 10 | 2016-04-29T12:35:34.050Z | 2,016 | 4 | 12 | 4 | 8,912 | 3 | 641 | 46 | 4 | 1 | true | false | true | false | true | false | medium |
36,938,581 | Displaying PDFs to authenticated users only and preventing downloading | <p>I have an app which presents authenticated users with a list and by selecting the item it will display a PDF.</p>
<ol>
<li><p>I need to prevent the user from accessing the PDFs using direct URLs if they are unauthenticated -
I have tried a HTTP Handler which works but then I have issues displaying the document in ... | I have an app which presents authenticated users with a list and by selecting the item it will display a PDF. I need to prevent the user from accessing the PDFs using direct URLs if they are unauthenticated - I have tried a HTTP Handler which works but then I have issues displaying the document in a iframe Display a PD... | c#|android|asp.net|pdf|iframe | 0 | 2016-04-29T12:39:20.810Z | 2,016 | 4 | 12 | 4 | 57 | 1 | 939 | 70 | 5 | 0 | false | false | false | false | false | false | zero |
36,938,649 | How to populate a listview in Android using Volley | <p>I am having trouble trying to get my andoid app to return a list view of all search results returned from a PHP files. I am using a wamp server to host the php files then I call them in the application using Volley. My problem is I can't get it to work with multiple return values. I have tried many different ways us... | I am having trouble trying to get my andoid app to return a list view of all search results returned from a PHP files. I am using a wamp server to host the php files then I call them in the application using Volley. My problem is I can't get it to work with multiple return values. I have tried many different ways using... | java|php|android|json|listview | 0 | 2016-04-29T12:41:57.923Z | 2,016 | 4 | 12 | 4 | 1,166 | 0 | 1,018 | 50 | 5 | 4 | true | true | false | false | false | false | zero |
36,938,702 | Unable to display name and photo from Contacts in android | <p>I'm currently trying to display a list of names and photos from contact from my android device, so I was trying to use SimpleCursorAdapter to display. I was able to display the name and phone to the listview, however, I am not able to display the photo to the imageview, is there a way to display a list of images wit... | I'm currently trying to display a list of names and photos from contact from my android device, so I was trying to use SimpleCursorAdapter to display. I was able to display the name and phone to the listview, however, I am not able to display the photo to the imageview, is there a way to display a list of images withou... | android | 0 | 2016-04-29T12:44:22.580Z | 2,016 | 4 | 12 | 4 | 45 | 0 | 442 | 57 | 1 | 1 | true | true | false | false | false | false | zero |
36,938,765 | Parser XML multi-tag | <p>i want parse this webpage on my android app:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<hello>
<world>
<a></a>
<b><![CDATA[one]]></b>
<c><![CDATA[two]]></c>
<d><![CDATA[... | i want parse this webpage on my android app: [CODE] I want extract : one, two, three, four, five and test1...and more.. | android|jsoup | 0 | 2016-04-29T12:47:45.697Z | 2,016 | 4 | 12 | 4 | 68 | 1 | 119 | 20 | 2 | 1 | true | false | false | false | false | false | zero |
36,938,865 | exceptions with the first call | <p>I've just created the newes android app and without changing anything I started it on my smartphone.</p>
<p>I'm getting the following sequence of exceptions and cannot understand what I've done wrong (actually I haven't done anything at all). I have only the default main activity, amin_activity layout and even the ... | I've just created the newes android app and without changing anything I started it on my smartphone. I'm getting the following sequence of exceptions and cannot understand what I've done wrong (actually I haven't done anything at all). I have only the default main activity, amin_activity layout and even the default lau... | android|android-layout | 0 | 2016-04-29T12:51:56.487Z | 2,016 | 4 | 12 | 4 | 36 | 0 | 568 | 30 | 2 | 3 | true | true | false | false | false | false | zero |
36,938,892 | android app not connectng to mysql database | <p>I am trying to build a login activity in Android studio,and connecting to mysql database using xampp server.Have tried using jTDS.jar,sqljdbc.jar,mysql-connector-java.jar.But nothing helped.</p>
<p>while debugging I am getting the following exceptions.
LOGCAT-</p>
<pre><code>04-29 08:43:05.904 29384-29384/com.exam... | I am trying to build a login activity in Android studio,and connecting to mysql database using xampp server.Have tried using jTDS.jar,sqljdbc.jar,mysql-connector-java.jar.But nothing helped. while debugging I am getting the following exceptions. LOGCAT- [CODE] and my JsonParser.java- [CODE] After running the app Logcat... | android|mysql|xampp | 0 | 2016-04-29T12:53:27.760Z | 2,016 | 4 | 12 | 4 | 46 | 0 | 360 | 43 | 3 | 4 | true | true | false | false | false | false | zero |
36,938,924 | How to draw a real time route in android, using google maps v2 and gps | <p>I'm trying to draw a path on google maps while moving from my location.<br>
For this I have created a google map activity and a gps service running on background but when I try to run the application I can see my location changed but the route is not showing.</p>
<pre><code>public class HomeActivity extends AppComp... | I'm trying to draw a path on google maps while moving from my location. For this I have created a google map activity and a gps service running on background but when I try to run the application I can see my location changed but the route is not showing. [CODE] | android|google-maps|gps | 4 | 2016-04-29T12:54:32.660Z | 2,016 | 4 | 12 | 4 | 5,526 | 1 | 262 | 70 | 3 | 1 | true | false | true | false | false | false | low |
36,938,953 | App crashed after program run | <p>I have a listview which display names from url and in the json response there is also news_id. I used a pojo for getter and setter of names and <code>news_id</code>. I want to filter the selected listview's names and their <code>user_id</code>'s and save the <code>news_id</code> in an array-list.</p>
<p>private sta... | I have a listview which display names from url and in the json response there is also news_id. I used a pojo for getter and setter of names and news_id . I want to filter the selected listview's names and their user_id 's and save the news_id in an array-list. private static final String TAG_HELLOGALLI="hellogalli"; pr... | android | 0 | 2016-04-29T12:56:02.947Z | 2,016 | 4 | 12 | 4 | 64 | 1 | 422 | 29 | 1 | 2 | true | false | false | false | false | false | zero |
36,938,974 | how we load previous loaded images show in offline view in android volley | <h2>*********i am create application which having list view and it shows network image view and text view*********</h2>
<p>when internet is on but when i goes in offline mode it doesn't show my previously loaded images in cache memory.below my code of main class in that when i tried offline working it directly goes to... | *********i am create application which having list view and it shows network image view and text view********* when internet is on but when i goes in offline mode it doesn't show my previously loaded images in cache memory.below my code of main class in that when i tried offline working it directly goes to json array w... | android|android-volley | 1 | 2016-04-29T12:57:15.613Z | 2,016 | 4 | 12 | 4 | 149 | 0 | 343 | 73 | 2 | 1 | true | true | false | false | false | false | low |
36,938,977 | mLastLocation value is getting null while creating Android Location API using GPS | <p>I'm trying to create an Android Location API using Google Play Services. But I keep on getting " mLastLocation value as null " with a message " Couldn't get the location. Make sure location is enabled on the device " which I have given to display for the null value of mLastLocation. Can anyone tell me what I am doin... | I'm trying to create an Android Location API using Google Play Services. But I keep on getting " mLastLocation value as null " with a message " Couldn't get the location. Make sure location is enabled on the device " which I have given to display for the null value of mLastLocation. Can anyone tell me what I am doing w... | java|android|google-play-services | 1 | 2016-04-29T12:57:18.860Z | 2,016 | 4 | 12 | 4 | 350 | 2 | 399 | 81 | 3 | 1 | true | false | false | false | false | false | low |
36,939,026 | ViewPagerAdapter update fragment when starting again | <p>I have the following ViewPagerAdapter:</p>
<pre><code>private void setupViewPager(ViewPager viewPager) {
adapter = new ViewPagerAdapter(((AppCompatActivity)getActivity()).getSupportFragmentManager());
adapter.addFrag(new OwnerPendingBookingsFragment(), "Pendientes");
adapter.addFrag(new OwnerConfirmedBo... | I have the following ViewPagerAdapter: [CODE] And one of the fragments that I use is like that: [CODE] The first time I use it, all the fragments loads without any problem. But when I go to another activity and then return it doesn't update the data. I debug it and onCreate and onCreateView are not firing? I tried to r... | android|android-viewpager | 0 | 2016-04-29T12:59:37.183Z | 2,016 | 4 | 12 | 4 | 47 | 0 | 396 | 52 | 2 | 2 | true | true | false | false | false | false | zero |
36,939,163 | Android View.getLayoutParams() leftMargin and topMargin give 0 | <p>I have a View in a RelativeLayout with layout_alignParentBottom and layout_alignParentRight attributes set to true like this : </p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rlroot"
android:lay... | I have a View in a RelativeLayout with layout_alignParentBottom and layout_alignParentRight attributes set to true like this : [CODE] I want to be able to move this view around. I am trying to achieve that as below : [CODE] The problem is that layoutParams.leftMargin and layoutParams.topMargin are found to be 0 (found ... | view|touch-event|android-relativelayout|layoutparams | 0 | 2016-04-29T13:05:36.017Z | 2,016 | 4 | 13 | 4 | 385 | 1 | 621 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
36,939,178 | Android Studio: Layout is going under the device buttons | <p>I'm writing an android app and have a problem with the user interface.</p>
<p>I have a chat section with the styling here: </p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout... | I'm writing an android app and have a problem with the user interface. I have a chat section with the styling here: [CODE] However; when I try run the application in an emulator, bottom side of the view extends under the navigation buttons However, what I want it to be is like this: , as shown in the layout preview sec... | android|user-interface|navigation | 1 | 2016-04-29T13:06:22.560Z | 2,016 | 4 | 13 | 4 | 500 | 1 | 783 | 56 | 3 | 1 | true | false | false | false | false | false | low |
36,939,314 | RenderScript does not modify alpha channel? [Android] | <p>I'm working with a simple script in RenderScript. I have to modify the RGBA values on a pixel from a Bitmap. After many attempts I discovered that the Alpha channel doesn't get modified.</p>
<p>I did some researches and I found <a href="https://stackoverflow.com/questions/18079898/allocation-copytobitmap-corrupting... | I'm working with a simple script in RenderScript. I have to modify the RGBA values on a pixel from a Bitmap. After many attempts I discovered that the Alpha channel doesn't get modified. I did some researches and I found this old question but I don't understand how and why this happen. Is there a correctly way to modip... | android|android-bitmap|renderscript|android-renderscript | 1 | 2016-04-29T13:12:36.017Z | 2,016 | 4 | 13 | 4 | 399 | 1 | 764 | 53 | 4 | 5 | true | false | false | false | false | false | low |
36,939,347 | google-services.json missing error | <p>The file google-sevices.json is missing from module root folder even the file is in the app directory. My gradle version is 2.10. I have spent most of my time to solve this issue but still I cannot resolve the issue.</p>
<p>Project-level gradle</p>
<pre><code>// Top-level build file where you can add configuration... | The file google-sevices.json is missing from module root folder even the file is in the app directory. My gradle version is 2.10. I have spent most of my time to solve this issue but still I cannot resolve the issue. Project-level gradle [CODE] App-Level gradle [CODE] | android|json|google-cloud-messaging | 0 | 2016-04-29T13:15:00.893Z | 2,016 | 4 | 13 | 4 | 1,476 | 1 | 268 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
36,939,411 | Getting Non SASL Authentication issue using XMPP | <p>I am implementing a chat application for which I have an <code>Openfire</code> Support as the backend and using <code>Asmack version 8-0.8.9</code> to implement it. However I am facing an issue of <strong>Non SASL Authentication</strong> during login and I get "<strong>No Response from Server</strong>" in the messag... | I am implementing a chat application for which I have an Openfire Support as the backend and using Asmack version 8-0.8.9 to implement it. However I am facing an issue of Non SASL Authentication during login and I get " No Response from Server " in the message. In addition, I am also facing an issue that whenever the a... | java|android|xmpp|sasl | 1 | 2016-04-29T13:17:41.223Z | 2,016 | 4 | 13 | 4 | 485 | 1 | 781 | 48 | 4 | 1 | true | false | false | false | false | false | low |
36,939,458 | Camera functionality is not working with cordova.js/ camera.js | <p>Iam working on camera functionality with cordova in my javascript project. I used cordova.js and camera.js files in my project. But When I call getPicture() function of camera.js, it is not working in my device. You can find the below code which I tried in my html. Please help me in acheiving this. Thanks in advance... | Iam working on camera functionality with cordova in my javascript project. I used cordova.js and camera.js files in my project. But When I call getPicture() function of camera.js, it is not working in my device. You can find the below code which I tried in my html. Please help me in acheiving this. Thanks in advance. [... | javascript|android|cordova|camera | 1 | 2016-04-29T13:19:44.437Z | 2,016 | 4 | 13 | 4 | 235 | 1 | 325 | 62 | 4 | 1 | true | false | false | false | false | false | low |
36,939,496 | Find the error: parcelable BadParcelableException | <p>I'm having the famous <code>BadParcelableException</code>, but I can't see where is the problem, here is my <code>Parcelable</code> class:</p>
<pre><code>public class PaymentInfoViewModel implements Parcelable {
private long idEstablishment;
private String nameEstablishment;
private int cardNumber;
... | I'm having the famous BadParcelableException , but I can't see where is the problem, here is my Parcelable class: [CODE] It's put here, inside my adapter on event click: [CODE] And how I'm trying to get the class: [CODE] I have previously checked these links, but I couldn't find a solution: Parcelable protocol requires... | java|android|parcelable|badparcelableexception | 2 | 2016-04-29T13:21:25.743Z | 2,016 | 4 | 13 | 4 | 1,047 | 3 | 545 | 49 | 4 | 4 | true | false | false | false | false | false | low |
36,939,682 | Visual Studio 2015 Xamarin aapt.exe error package resources do not exist | <p>I get a <code>aapt.exe</code> exited with code <strong>1073741819 error</strong> when I try to build a new blank android app in <code>VS2015 Community Edition</code>.
Also a file <code>obj\android\bin\packaged_resources</code> does not exist error.
I have changed nothing and this happens.</p>
<p>I've tried looking ... | I get a aapt.exe exited with code 1073741819 error when I try to build a new blank android app in VS2015 Community Edition . Also a file obj\android\bin\packaged_resources does not exist error. I have changed nothing and this happens. I've tried looking this up and have found about: Changing the output verbosity to Dia... | android|xamarin|visual-studio-2015|xamarin.android | 3 | 2016-04-29T13:29:35.790Z | 2,016 | 4 | 13 | 4 | 1,556 | 3 | 1,562 | 72 | 4 | 0 | false | false | false | false | false | false | low |
36,939,731 | Issues in Webservice | <p>My issue is if I am entering username,password,email register failure toast message appeared.can any one solve this problem in back ground task class and main activity ?</p>
<p>please can any one make it into it appears like register success?</p>
<pre><code> public void submitDetails(View v)
{
String... | My issue is if I am entering username,password,email register failure toast message appeared.can any one solve this problem in back ground task class and main activity ? please can any one make it into it appears like register success? [CODE] | java|android|web-services | 1 | 2016-04-29T13:31:54.857Z | 2,016 | 4 | 13 | 4 | 48 | 1 | 242 | 20 | 3 | 1 | true | false | false | false | false | false | low |
36,939,762 | How to set the first position of a spinner to null | <p>I have a Spinner I'm filling with a ArrayAdapter objects, but i need that first position of this Array Always be null or appear something like "Select an object". I searched here Forums but without success, solutions for ArrayList String or spinner.setPrompt that did not work =/</p>
<pre><code>ArrayList<Object&g... | I have a Spinner I'm filling with a ArrayAdapter objects, but i need that first position of this Array Always be null or appear something like "Select an object". I searched here Forums but without success, solutions for ArrayList String or spinner.setPrompt that did not work =/ [CODE] | java|android|android-arrayadapter|adapter|android-spinner | 1 | 2016-04-29T13:33:38.177Z | 2,016 | 4 | 13 | 4 | 915 | 2 | 286 | 50 | 5 | 1 | true | false | false | false | false | false | low |
36,939,854 | SQLlite causes crash upon button pressed | <p>I have an application in which I'm trying to add user info inside a table created using SQLlite. The problem is when I press the add button the application crashes. bellow I include all the code and logcat. </p>
<p>MainActivity.java</p>
<pre><code>package com.example.asus.sqlliteproject;
import android.support.v7... | I have an application in which I'm trying to add user info inside a table created using SQLlite. The problem is when I press the add button the application crashes. bellow I include all the code and logcat. MainActivity.java [CODE] DataBaseHelper.java [CODE] logcat error (separated into two imgs) and activity_main view | java|android|sqlite | 0 | 2016-04-29T13:37:42.150Z | 2,016 | 4 | 13 | 4 | 41 | 2 | 320 | 40 | 3 | 2 | true | false | false | false | false | false | zero |
36,939,943 | How to add search and checkbox icon with their functions in android action bar? | <p>I want to add a searchview and checkbox into action bar menu. And this checkbox will be visible if searchview is opened. And in it's opposite case it will be hidden. How I can do this?
I do something below . But it doesnt work correctly. I want hide checkbox (In my notes) when searchview is closed.
<strong>menu.xml<... | I want to add a searchview and checkbox into action bar menu. And this checkbox will be visible if searchview is opened. And in it's opposite case it will be hidden. How I can do this? I do something below . But it doesnt work correctly. I want hide checkbox (In my notes) when searchview is closed. menu.xml [CODE] Home... | android|checkbox|android-menu | 1 | 2016-04-29T13:41:45.467Z | 2,016 | 4 | 13 | 4 | 152 | 1 | 340 | 79 | 3 | 2 | true | false | false | false | false | false | low |
36,939,982 | Scrolling is not working with CoordinatorLayout + parallax image + BottomSheetLayout | <h2>Introduction</h2>
<p>I have an activity, which implements a common pattern with parallax header image and scrolling content using <code>CoordinatorLayout</code>, <code>AppBarLayout</code> and <code>CollapsingToolbarLayout</code>. My xml layout looks like this:</p>
<pre><code><android.support.design.widget.Coor... | Introduction I have an activity, which implements a common pattern with parallax header image and scrolling content using CoordinatorLayout , AppBarLayout and CollapsingToolbarLayout . My xml layout looks like this: [CODE] As you can see in the gif animation below, everything works correctly. You can scroll the whole s... | android|android-coordinatorlayout|android-collapsingtoolbarlayout|android-appbarlayout|bottom-sheet | 23 | 2016-04-29T13:43:13.490Z | 2,016 | 4 | 13 | 4 | 2,620 | 6 | 1,195 | 84 | 5 | 2 | true | false | true | false | true | false | high |
36,940,041 | getArguments() returns null when retrieving data from activity | <p>I have two different activities :
1.Login.java
2.Dashboard.java</p>
<p>In dashboard activity i have added navigation drawer by making navigation drawer fragment appearing in dashboard activity.</p>
<p>Now i want to pass data to that navigation drawer fragment through login.java</p>
<p>Here is my code :</p>
<p>Lo... | I have two different activities : 1.Login.java 2.Dashboard.java In dashboard activity i have added navigation drawer by making navigation drawer fragment appearing in dashboard activity. Now i want to pass data to that navigation drawer fragment through login.java Here is my code : Login.java- All things are imported [... | android|android-intent|android-activity|fragment|bundle | 0 | 2016-04-29T13:46:07.620Z | 2,016 | 4 | 13 | 4 | 413 | 0 | 573 | 62 | 5 | 4 | true | true | false | false | false | false | zero |
36,940,152 | android - Enable and Disable MenuItem on Navigation Drawer Activity Layout | <p>I have and app created using the Navigation Drawer <code>Activity</code> Layout.. And I need to <strong>enable/disable</strong> some items programmatically</p>
<p><a href="http://i.stack.imgur.com/oO2BF.jpg" rel="noreferrer">Menu Example</a></p>
<p>Example: I want to disable the Menu Item id nav_item2</p>
<p>I tr... | I have and app created using the Navigation Drawer Activity Layout.. And I need to enable/disable some items programmatically Menu Example Example: I want to disable the Menu Item id nav_item2 I tried to do... [CODE] And it return a NullPointerException to me.. Also tried... [CODE] with the same NullPointerException So... | android|nullpointerexception|menuitem|navigation-drawer | 15 | 2016-04-29T13:51:15.120Z | 2,016 | 4 | 13 | 4 | 16,944 | 3 | 498 | 74 | 4 | 4 | true | false | true | true | true | false | medium |
36,940,287 | Broken title in audio files? | <p>I have been running into a problem in which the title/artist tags of my audio files are not showing up properly.</p>
<p>Here are two screenshots of the most pertinent problem with the files <a href="https://imgur.com/a/4uhOG" rel="nofollow">https://imgur.com/a/4uhOG</a></p>
<p>Thinking it was a tagging issue, I us... | I have been running into a problem in which the title/artist tags of my audio files are not showing up properly. Here are two screenshots of the most pertinent problem with the files https://imgur.com/a/4uhOG Thinking it was a tagging issue, I used MP3Tag to rename/retag the files. I tried foobar as well too and it did... | android|audio|android-mediascanner | 1 | 2016-04-29T13:57:20.643Z | 2,016 | 4 | 13 | 4 | 35 | 0 | 1,042 | 28 | 3 | 0 | false | true | false | false | false | false | low |
36,940,301 | Airnotifier server 500 response JSON | <p>I want to use <a href="https://airnotifier.github.io/" rel="nofollow">Airnotifier</a> as a GCM server. The server is placed at my home right now. I forwarded the ports: 8000, 8801, 5228-5230 to the server. I know the server is working because I can connect to the web interface from another location. But now in the a... | I want to use Airnotifier as a GCM server. The server is placed at my home right now. I forwarded the ports: 8000, 8801, 5228-5230 to the server. I know the server is working because I can connect to the web interface from another location. But now in the app I want to register a token so I'm using this code: [CODE] I'... | android|python|json | 1 | 2016-04-29T13:58:02.907Z | 2,016 | 4 | 13 | 4 | 144 | 1 | 593 | 36 | 3 | 2 | true | false | false | false | false | false | low |
36,940,337 | IdHTTP Exception Causes Segmentation Fault | <p>I have run the code below as an Android App. The lHttp sends an request to a WebService that i made, where the IP (URL) and Port are defined by the user. However, if the webservice is not active in that URL the App is crashed. While debugging, it gives me the following errors while trying to catch an exception.</p>
... | I have run the code below as an Android App. The lHttp sends an request to a WebService that i made, where the IP (URL) and Port are defined by the user. However, if the webservice is not active in that URL the App is crashed. While debugging, it gives me the following errors while trying to catch an exception. raised ... | android|delphi|exception|firemonkey|idhttp | 1 | 2016-04-29T13:59:40.467Z | 2,016 | 4 | 13 | 4 | 806 | 3 | 660 | 42 | 5 | 1 | true | false | false | false | false | false | low |
36,940,381 | Chat application android guidance | <p>I'm trying to create a chat application and I need a little bit of guidance. I have a login system in place which is working. The user logs in/registers and everything is stored in a mysql database on the server.I know how to handle post requests and send stuff back.I have a recyclerView that can display the message... | I'm trying to create a chat application and I need a little bit of guidance. I have a login system in place which is working. The user logs in/registers and everything is stored in a mysql database on the server.I know how to handle post requests and send stuff back.I have a recyclerView that can display the messages, ... | android|mysql | -1 | 2016-04-29T14:01:24.237Z | 2,016 | 4 | 14 | 4 | 2,177 | 3 | 1,627 | 33 | 2 | 0 | false | false | false | false | false | true | negative |
36,940,460 | Error when trying to randomize few questions in android app | <p>Greeting peeps, need help on this error. trying googling but did not solve the issue. i did put remarks in which lines the errors occur.</p>
<p>notice below code have 2 different java class</p>
<p>[IMG="screenshot"]<a href="http://i.imgur.com/XYFHZOz.png[/IMG]" rel="nofollow">http://i.imgur.com/XYFHZOz.png[/IMG]</... | Greeting peeps, need help on this error. trying googling but did not solve the issue. i did put remarks in which lines the errors occur. notice below code have 2 different java class [IMG="screenshot"] http://i.imgur.com/XYFHZOz.png[/IMG] [CODE] } [CODE] | java|android | 0 | 2016-04-29T14:06:29.773Z | 2,016 | 4 | 14 | 4 | 68 | 2 | 254 | 59 | 2 | 2 | true | false | false | false | false | false | zero |
36,940,493 | Issues with Volley caching mechanism | <p>I have a website which publishes news on daily basis. </p>
<p>Now, I'm sending a <strong>JsonArrayRequest</strong> to retrieve and parse the title and summary of each news published on the website. The parsed items are then used to populate RecyclerView. </p>
<p>The problem I'm having is the way volley implements ... | I have a website which publishes news on daily basis. Now, I'm sending a JsonArrayRequest to retrieve and parse the title and summary of each news published on the website. The parsed items are then used to populate RecyclerView. The problem I'm having is the way volley implements caching . Let's take this scenario: th... | android|android-volley|android-json | 0 | 2016-04-29T14:07:52.797Z | 2,016 | 4 | 14 | 4 | 1,356 | 1 | 917 | 36 | 3 | 1 | true | false | false | false | false | false | zero |
36,940,543 | Returning PDF from MVC controller not working on android browsers | <p>I have a controller which is building a PDF file using pdfsharp and returning it as a file response to a GET request as below:</p>
<pre><code>[HttpGet]
public ActionResult downloadImageResultsPDF()
{
// Create a new PDF document
PdfDocument document = new PdfDocument();
document.Info.Title = "myheal... | I have a controller which is building a PDF file using pdfsharp and returning it as a file response to a GET request as below: [CODE] I am calling this controller from my razor using: [CODE] Everything seems to work fine on Chrome, Firefox and IE11 on desktop, Chrome and Safari on iOS and Firefox on Android 6.0 I canno... | c#|android|model-view-controller|http-headers|pdf-generation | 0 | 2016-04-29T14:09:47.627Z | 2,016 | 4 | 14 | 4 | 975 | 1 | 832 | 65 | 5 | 2 | true | false | false | false | false | false | zero |
36,940,577 | implementing YouTube API v3 in ViewPager Android | <p>I'm trying to implement Youtube API in my android application which uses a viewpager to show videos and some relative information. I have implemented the same using webview but can't go through with the YouTube API. Can anyone help me solve the problem?
The major errors are:</p>
<ul>
<li>Null Pointer Exception: dur... | I'm trying to implement Youtube API in my android application which uses a viewpager to show videos and some relative information. I have implemented the same using webview but can't go through with the YouTube API. Can anyone help me solve the problem? The major errors are: Null Pointer Exception: during pointing to Y... | android|android-fragments|youtube|youtube-api|android-youtube-api | 1 | 2016-04-29T14:11:20.893Z | 2,016 | 4 | 14 | 4 | 440 | 0 | 828 | 48 | 5 | 4 | true | true | false | false | false | false | low |
36,940,783 | How can I set a onLongItemClickListener on a list generated with SimpleCursorAdapter | <p>I am generating a list from my app's database with a <code>SimpleCursorAdapter</code>:</p>
<pre><code>SimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter(getActivity(),
android.R.layout.simple_list_item_1, mCursor,
new String[] { DataManager.TITLE },
new int[] { android.R.id.text1... | I am generating a list from my app's database with a SimpleCursorAdapter : [CODE] If I was using a ListView and ListAdapter, I would set a long click listener thus: [CODE] But as I don't have a ListView explicitly declared, I can't do this. How do I do it with a list generated by SimpleCursorAdapter ? | android|listview | 0 | 2016-04-29T14:21:35.433Z | 2,016 | 4 | 14 | 4 | 46 | 2 | 302 | 84 | 2 | 2 | true | false | false | false | false | false | zero |
36,940,847 | Retrieve data from Database with Ion | <p>I have a MySQL database where I'm storing data for my app. Now I want to retrieve this data with <a href="https://github.com/koush/ion" rel="nofollow">Ion</a> over PHP, in the Line </p>
<blockquote>
<p>JSONObject jObject = new JSONObject(<strong>result</strong>);</p>
</blockquote>
<p>it gives me an error in resu... | I have a MySQL database where I'm storing data for my app. Now I want to retrieve this data with Ion over PHP, in the Line JSONObject jObject = new JSONObject( result ); it gives me an error in result Error [CODE] MainActivity.java [CODE] PHP [CODE] | php|android|mysql|android-ion | 1 | 2016-04-29T14:24:55.710Z | 2,016 | 4 | 14 | 4 | 45 | 0 | 249 | 36 | 4 | 3 | true | true | false | false | false | false | low |
36,940,855 | Turning Screen Off in Android with PARTIAL_WAKE_LOCK | <p>I am using the following code to send some HTTP request when the device is moving. It works fine when I change PARTIAL_WAKE_LOCK to SCREEN_DIM_WAKE_LOCK and it keeps the screen on and app working. However, when using PARTIAL_WAKE_LOCK, the device locks the screen and the app stops working altogether. I need the scre... | I am using the following code to send some HTTP request when the device is moving. It works fine when I change PARTIAL_WAKE_LOCK to SCREEN_DIM_WAKE_LOCK and it keeps the screen on and app working. However, when using PARTIAL_WAKE_LOCK, the device locks the screen and the app stops working altogether. I need the screen ... | android|accelerometer|wakelock | 0 | 2016-04-29T14:25:22.830Z | 2,016 | 4 | 14 | 4 | 1,230 | 1 | 463 | 52 | 3 | 2 | true | false | false | false | false | false | zero |
36,940,896 | Missing Android NDK toolchains directory '\toolchains' when building Xamarin.Android with hosted tfs build server | <p>I am trying to set up a <code>TFS Build agent</code> to build my <code>Xamarin.Android</code> project automatically on every check in.</p>
<p>I have followed the steps outlined here: <a href="https://msdn.microsoft.com/library/vs/alm/build/apps/xamarin" rel="noreferrer">https://msdn.microsoft.com/library/vs/alm/bui... | I am trying to set up a TFS Build agent to build my Xamarin.Android project automatically on every check in. I have followed the steps outlined here: https://msdn.microsoft.com/library/vs/alm/build/apps/xamarin for setting up a Hosted build agent. TFS Build templates also have a Xamarin.Android template, which you woul... | tfs|xamarin|xamarin.android|azure-devops|tfsbuild | 5 | 2016-04-29T14:27:45.470Z | 2,016 | 4 | 14 | 4 | 4,162 | 3 | 933 | 113 | 5 | 0 | false | false | true | false | false | false | low |
36,940,995 | Android POI plugin says Duplicate files in APK-META-INF | <p>I know that this question has been asked by many before this but i have tried the solution in most of the posts but am still facing issue.</p>
<p>I want to read excel(xlsx) file in android app.
I have downloaded POI jar files and added it to lib folder and also added it as dependency
[ 1.poi-3.7.jar
2.poi-ooxml... | I know that this question has been asked by many before this but i have tried the solution in most of the posts but am still facing issue. I want to read excel(xlsx) file in android app. I have downloaded POI jar files and added it to lib folder and also added it as dependency [ 1.poi-3.7.jar 2.poi-ooxml-3.7.jar ] Firs... | java|android|excel|apache-poi | 0 | 2016-04-29T14:32:01.533Z | 2,016 | 4 | 14 | 4 | 372 | 1 | 820 | 55 | 4 | 3 | true | false | false | false | false | false | zero |
36,941,009 | error gps requestLocationUpdates android locationListener | <p>error: no suitable method found for requestLocationUpdates(String,int,int,com.google.android.gms.location.LocationListener)</p>
<pre><code>import android.content.Context;
import android.content.Intent;
import android.location.Location;
//import android.location.LocationListener;
import android.location.LocationMana... | error: no suitable method found for requestLocationUpdates(String,int,int,com.google.android.gms.location.LocationListener) [CODE] On AndroidManifest.xml [CODE] I'm getting an error on requestLocationUpdates method. Can you help me ? | android|gps|location | 0 | 2016-04-29T14:32:35.773Z | 2,016 | 4 | 14 | 4 | 1,522 | 0 | 233 | 57 | 3 | 2 | true | true | false | false | false | false | zero |
36,941,141 | Android - Creating contacts in phone | <p>Hi guys i need help to understand a code that i have i didnt used it yet because i don't understand it maybe you guys could help me doing that.</p>
<pre><code>private void createContact(String name, String phone) {
ContentResolver cr = getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.C... | Hi guys i need help to understand a code that i have i didnt used it yet because i don't understand it maybe you guys could help me doing that. [CODE] I understand the first part when we search if there is any contact with that name what i dont understand its the next part when we create an arraylist. There is an accou... | java|android | -1 | 2016-04-29T14:37:56.553Z | 2,016 | 4 | 14 | 4 | 54 | 1 | 728 | 36 | 2 | 2 | true | false | false | false | false | true | negative |
36,941,406 | jsonArray = (JSONArray)objIn.readObject(); raise java.lang.NoClassDefFoundError: java.beans.PropertyDescriptor | <p>I get an error while receiving a JSONArray from an ObjectOutputStream</p>
<pre><code>ObjectInputStream objIn = new ObjectInputStream(con.getInputStream());
</code></pre>
<p>I'm trying to retrieve my Stream like this:</p>
<pre><code>jsonArray = (JSONArray)objIn.readObject();
</code></pre>
<p>and it raise the fol... | I get an error while receiving a JSONArray from an ObjectOutputStream [CODE] I'm trying to retrieve my Stream like this: [CODE] and it raise the following Exception: [CODE] I tried to add the openbeans.jar in my Eclipse libs folder (even if I do not use it) but same error... any idea ? Thanks | java|android | 0 | 2016-04-29T14:50:01.820Z | 2,016 | 4 | 14 | 4 | 144 | 2 | 293 | 110 | 2 | 3 | true | false | false | false | false | false | zero |
36,941,511 | Difference between refunding and cancelling an In-App Billing order | <p>Based on the Trivial Drive sample, I was wondering what the difference was between refunding and cancelling an order for a managed, non-consumable product, the Premium car. Because, it's been about a week now since I've <strong>refunded</strong> the order to my test account via Google's Merchant Center, and yet the ... | Based on the Trivial Drive sample, I was wondering what the difference was between refunding and cancelling an order for a managed, non-consumable product, the Premium car. Because, it's been about a week now since I've refunded the order to my test account via Google's Merchant Center, and yet the Premium order is sti... | android|in-app-purchase|google-play-services | 1 | 2016-04-29T14:54:49.693Z | 2,016 | 4 | 14 | 4 | 170 | 0 | 864 | 67 | 3 | 0 | false | true | false | false | false | false | low |
36,941,512 | How to force sub PreferenceScreen to be contained in Fragment layout (Android) | <p>I'm quite new to Android's Preference system and I am currently facing a problem.</p>
<p>As advised by Android Guide (<a href="http://developer.android.com/guide/topics/ui/settings.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/ui/settings.html</a>), I use Preference Fragment. Thus, my Se... | I'm quite new to Android's Preference system and I am currently facing a problem. As advised by Android Guide ( http://developer.android.com/guide/topics/ui/settings.html ), I use Preference Fragment. Thus, my SettingsActivity contains some stuff (headers like title, tabs, etc.) and the PreferenceFragment below. The th... | android|android-fragments|preferenceactivity|preferencefragment|preferencescreen | 4 | 2016-04-29T14:54:53Z | -1 | -1 | -1 | -1 | 1,782 | 1 | 903 | 78 | 5 | 1 | true | false | false | false | false | false | low |
36,941,659 | ViewStub is Not Inflating and Layout Remains Blank - Android | <p>I am working through the sample code that is generated when you start a <code>Navigation Drawer Activity</code> in Android Studio. What I am trying to do is change an included view programatically and my research has shown that ViewStub is the best way to do this. However I cannot get it working. For the main lay... | I am working through the sample code that is generated when you start a Navigation Drawer Activity in Android Studio. What I am trying to do is change an included view programatically and my research has shown that ViewStub is the best way to do this. However I cannot get it working. For the main layout in question the... | java|android|xml|android-studio|viewstub | 2 | 2016-04-29T15:00:55.670Z | 2,016 | 4 | 15 | 4 | 1,612 | 1 | 565 | 60 | 5 | 4 | true | false | false | false | false | false | low |
36,941,670 | Gradle: Library project dependent library could not be found in Application project using Android Studio | <p>I have library1 that is referencing library2. Now when I reference library 1 in my application, library2 is not found. It gives me error that :Library2:SecondLibraySDK could not be found in project :..:Library1:FirstLibrarySDK.</p>
<p>Library1 is working absolutely fine. The problem appears when I add it in my ap... | I have library1 that is referencing library2. Now when I reference library 1 in my application, library2 is not found. It gives me error that :Library2:SecondLibraySDK could not be found in project :..:Library1:FirstLibrarySDK. Library1 is working absolutely fine. The problem appears when I add it in my application. I ... | android|android-studio|gradle | 0 | 2016-04-29T15:01:22.817Z | 2,016 | 4 | 15 | 4 | 48 | 0 | 614 | 104 | 3 | 4 | true | true | false | false | false | false | zero |
36,941,803 | Android ViewPager: Destroyed Fragment still contains user input | <p>I'm developing an Android App, where the user can save, how many hours he/she worked per day. Through a month overview you can get to a day detail view (i.e. by tapping on a day in <code>MonthRecordActivity</code> you get to the <code>DayRecordActivity</code> for the choosen day). The DayActivity uses <code>ViewPage... | I'm developing an Android App, where the user can save, how many hours he/she worked per day. Through a month overview you can get to a day detail view (i.e. by tapping on a day in MonthRecordActivity you get to the DayRecordActivity for the choosen day). The DayActivity uses ViewPager so slide to the previous or next ... | android|android-viewpager | 1 | 2016-04-29T15:07:32.093Z | 2,016 | 4 | 15 | 4 | 59 | 0 | 2,189 | 63 | 2 | 2 | true | true | false | false | false | false | low |
36,941,806 | Cordova Android Auto-Selects Select Element | <p>I'm using Cordova to facilitate a "native" iOS/Android app. Angular with Ionic is powering the view. I have a multi-step form that is using ng-show to mock the "wizard" aspect of the form. Upon clicking next from the previous step, the newly revealed "step" contains a select element which Android is selecting automa... | I'm using Cordova to facilitate a "native" iOS/Android app. Angular with Ionic is powering the view. I have a multi-step form that is using ng-show to mock the "wizard" aspect of the form. Upon clicking next from the previous step, the newly revealed "step" contains a select element which Android is selecting automatic... | android|angularjs|cordova|ionic-framework|usability | 1 | 2016-04-29T15:07:33.867Z | 2,016 | 4 | 15 | 4 | 405 | 1 | 1,401 | 43 | 5 | 0 | false | false | false | false | false | false | low |
36,941,827 | android application runs in AVD but stoppes in real device | <p>I have created a very simple android app using visual studio (xamarin for visual studio) and have changed nothing I mean the codes are as the same as default when you create an android app.</p>
<pre><code>[Activity(Label = "App2", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{... | I have created a very simple android app using visual studio (xamarin for visual studio) and have changed nothing I mean the codes are as the same as default when you create an android app. [CODE] When I run it, android virtual device starts and application runs normally without error but when I copy .apk file from the... | android|visual-studio-2015|xamarin.android | 0 | 2016-04-29T15:08:33.110Z | 2,016 | 4 | 15 | 4 | 37 | 2 | 834 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
36,941,854 | android global variable error | <p>In my application I want that by default the music will be running . But if the switch in the about.java is clicked off then It should be off. So I made a global variable. But problem is when I am clicking the switch OFF, it is giving an error.</p>
<p>MainActivity.java</p>
<pre><code>package com.example.asifsabir.... | In my application I want that by default the music will be running . But if the switch in the about.java is clicked off then It should be off. So I made a global variable. But problem is when I am clicking the switch OFF, it is giving an error. MainActivity.java [CODE] MyApplcation.java [CODE] About.java [CODE] error m... | java|android|global-variables | -2 | 2016-04-29T15:09:52.347Z | 2,016 | 4 | 15 | 4 | 113 | 1 | 337 | 29 | 3 | 4 | true | false | false | false | false | true | negative |
36,941,964 | Android programming, Background task (Context) in background task cannot be applied to () | <p>i need some help trying to figure this out, it worked previously but after changing a couple of codes, it might be an issue. Maybe because i change over from fragment to activities.</p>
<pre><code>btnRegister.setOnClickListener(new android.view.View.OnClickListener() {
@Override
public void ... | i need some help trying to figure this out, it worked previously but after changing a couple of codes, it might be an issue. Maybe because i change over from fragment to activities. [CODE] yep so it's at the setting of Background task = new Background task, it is showing an error stating "Background task (context) in B... | java|android|background-task | 0 | 2016-04-29T15:15:35.487Z | 2,016 | 4 | 15 | 4 | 732 | 1 | 398 | 89 | 3 | 2 | true | false | false | false | false | false | zero |
36,942,020 | How to put this element in the toolbar? | <p>I've created my application with Navigation Drawer.
In my Activity I put this code:</p>
<pre><code>public class MenuActivity extends AppCompatActivity
implements NavigationView.OnNavigationItemSelectedListener
{
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
s... | I've created my application with Navigation Drawer. In my Activity I put this code: [CODE] now in the HomeFragment I want to put a tab in the bottom of the screen. So i put this code: [CODE] But finally I obtain this result: I want to do this: put this tablayout in the toolbar put this in the bottom of the screen How c... | android|tabs|fragment | 0 | 2016-04-29T15:18:10.930Z | 2,016 | 4 | 15 | 4 | 27 | 1 | 333 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
36,942,044 | How can I upload all the flavor apks to nexus using gradle? | <p>So I've been successfully using the <code>uploadArchives</code> task to upload aar libraries to Nexus.
I want to do the same thing now with apks but not really managing to get it right at the moment.
I'm pretty much doing the same thing but with different packaging. That doesn't do the trick though.</p>
<p>I'm wond... | So I've been successfully using the uploadArchives task to upload aar libraries to Nexus. I want to do the same thing now with apks but not really managing to get it right at the moment. I'm pretty much doing the same thing but with different packaging. That doesn't do the trick though. I'm wondering now if using the u... | android|maven|gradle|nexus | 1 | 2016-04-29T15:19:12.413Z | 2,016 | 4 | 15 | 4 | 522 | 1 | 489 | 59 | 4 | 1 | true | false | false | false | false | false | low |
36,942,149 | intent.getCategories() is null although it was set | <p>I'm using this intent-filter configuration for an Activity to launch my app upon being called by a script embedded in a website:</p>
<pre><code><intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category androi... | I'm using this intent-filter configuration for an Activity to launch my app upon being called by a script embedded in a website: [CODE] This works fine as my test device HTC One M8 with Android 6.0 launches the app as designed. I can access query-parameters of the URL with this code in the Activity's onCreate method: [... | android|android-intent|intentfilter | 3 | 2016-04-29T15:23:40.277Z | 2,016 | 4 | 15 | 4 | 1,191 | 1 | 891 | 50 | 3 | 2 | true | false | false | false | false | false | low |
36,942,352 | How to change/update a single list item of list view? | <p>I am trying (for around 4 days) to change view of particular list view item. I have tried many solutions that were available and although this question may look "DUPLICATE" but I have tried my level best to implement all solutions, but still no luck.</p>
<p>So here is my question, I have a list view which is creat... | I am trying (for around 4 days) to change view of particular list view item. I have tried many solutions that were available and although this question may look "DUPLICATE" but I have tried my level best to implement all solutions, but still no luck. So here is my question, I have a list view which is created by by usi... | android|listview|android-arrayadapter | 0 | 2016-04-29T15:34:02.573Z | 2,016 | 4 | 15 | 4 | 1,312 | 1 | 848 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
36,942,451 | Simple Espresso test "Looped for x iterations over 60sec" error | <p>I actually tried to setup some unit test with Espresso and after some hours of research the app do only the click and get focus by the EditText but after that there is nothing</p>
<pre><code>Caused by: android.support.test.espresso.AppNotIdleException: Looped for 1996 iterations over 60 SECONDS. The following Idle ... | I actually tried to setup some unit test with Espresso and after some hours of research the app do only the click and get focus by the EditText but after that there is nothing [CODE] i've removed all animation & SwipeRefreshLayout cause i saw there is a bug with the swiperefresh I actually use some callback for replace... | android|unit-testing|android-espresso | 9 | 2016-04-29T15:39:33.013Z | 2,016 | 4 | 15 | 4 | 7,543 | 2 | 600 | 63 | 3 | 6 | true | false | true | false | false | false | medium |
36,942,575 | Migrating from Eclipse ADT to Android Studio 2.1 - error: package android.support.v4.view does not exist | <p>In Android Studio I imported the project developed with Eclipse + ADT (as described in <a href="http://developer.android.com/intl/pt-br/sdk/installing/migrate.html" rel="nofollow">http://developer.android.com/intl/pt-br/sdk/installing/migrate.html</a> ), and once the Gradle build is finished, the "import-summary.txt... | In Android Studio I imported the project developed with Eclipse + ADT (as described in http://developer.android.com/intl/pt-br/sdk/installing/migrate.html ), and once the Gradle build is finished, the "import-summary.txt" says: [CODE] But within the CirclePageIndicator.java class, of the libraryViewPagerIndicator , i h... | java|android|eclipse-luna|android-studio-2.1 | 1 | 2016-04-29T15:45:18.943Z | 2,016 | 4 | 15 | 4 | 351 | 1 | 609 | 104 | 4 | 3 | true | false | false | false | false | false | low |
36,942,608 | Thread already started- trans data via bluetooth | <p>This is my : bluetooth.java. When I test my app, its jumps out this errors "Thread are already started. Then I can't sent my data anymore, then i get out of my app, then I start my app again, then it allows my to use app.
So confusing.
I hope you will help me.
Thank for your help .</p>
<pre><code>public class blue... | This is my : bluetooth.java. When I test my app, its jumps out this errors "Thread are already started. Then I can't sent my data anymore, then i get out of my app, then I start my app again, then it allows my to use app. So confusing. I hope you will help me. Thank for your help . [CODE] } | android|multithreading|android-activity|bluetooth|onresume | 0 | 2016-04-29T15:46:59.010Z | 2,016 | 4 | 15 | 4 | 132 | 2 | 291 | 48 | 5 | 1 | true | false | false | false | false | false | zero |
36,942,615 | Android N + mp4Parser error | <p>So far I've been able to compile my app with <code>Android N</code> + <code>Java 8</code> without any problem. But now I add the library <code>mp4Parser</code> and it throws this error:</p>
<blockquote>
<p>Warning:Exception while processing task java.lang.RuntimeException:
com.android.sched.scheduler.RunnerProc... | So far I've been able to compile my app with Android N + Java 8 without any problem. But now I add the library mp4Parser and it throws this error: Warning:Exception while processing task java.lang.RuntimeException: com.android.sched.scheduler.RunnerProcessException: Error during 'UnusedDefinitionRemover' runner on 'pub... | java|android|gradle|mp4parser|android-7.0-nougat | 1 | 2016-04-29T15:47:31.323Z | 2,016 | 4 | 15 | 4 | 643 | 1 | 1,554 | 27 | 5 | 1 | true | false | false | false | false | false | low |
36,942,856 | Android - Service falls down in loop? | <p>I have a service that send errors to a url ,this service good work in other services but when i have an error in self falls down in loops that is very bad.</p>
<pre><code>public class Error_Service extends Service {
Context context;
RequestPackage RP;
String Value;
G g;
Internet_Connect IC;
... | I have a service that send errors to a url ,this service good work in other services but when i have an error in self falls down in loops that is very bad. [CODE] What can I do ? | android|android-service|android-looper | 0 | 2016-04-29T16:00:54.490Z | 2,016 | 4 | 16 | 4 | 35 | 1 | 178 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
36,942,859 | AutoCompleteTextView Text Filtering | <p>I am trying to use <code>AutoCompleteTextView</code> for filtering and I'm having a problem with the filter. It returns all the Items in the <code>ArrayList</code> instead of the filtered ones. Below is my code:</p>
<pre><code> Filter nameFilter = new Filter() {
@Override
public String convertResultToString... | I am trying to use AutoCompleteTextView for filtering and I'm having a problem with the filter. It returns all the Items in the ArrayList instead of the filtered ones. Below is my code: [CODE] And then I started logging around and I noticed this line is always null Log.e("Sta" + TAG, customer.getName()); //This is alwa... | java|android|autocompletetextview | 0 | 2016-04-29T16:01:11.383Z | 2,016 | 4 | 16 | 4 | 417 | 2 | 690 | 35 | 3 | 3 | true | false | false | false | false | false | zero |
36,942,910 | Mediacodec rendering to surface slow | <p>I'm trying to stream data (h.264 raw 1080p) to android and rendering it to surface view.The problem is that if I send the data faster than 45fps the decoder output is pixelated(the input index & output index are -1 or not ready)</p>
<p>Also if I sent a 720p or a lower resolution video the result is the same I ... | I'm trying to stream data (h.264 raw 1080p) to android and rendering it to surface view.The problem is that if I send the data faster than 45fps the decoder output is pixelated(the input index & output index are -1 or not ready) Also if I sent a 720p or a lower resolution video the result is the same I cannot render(wi... | android|android-ndk|surfaceview|android-mediacodec | 3 | 2016-04-29T16:03:48.400Z | 2,016 | 4 | 16 | 4 | 2,545 | 1 | 702 | 36 | 4 | 2 | true | false | false | false | false | false | low |
36,942,994 | Android ServerSocket strange exception | <p>When the code reaches that line:</p>
<pre><code>serverSocket = new ServerSocket(port);
</code></pre>
<p>the code is</p>
<pre><code>package com.kworks.org.tower_offense_game;
import java.io.*;
import java.net.*;
/**
* Created by User on 27.4.2016 г..
*/
public class Server extends Thread{
private ServerSocket ... | When the code reaches that line: [CODE] the code is [CODE] the application gives that exception: 04-29 09:04:40.467 24726-24726/? W/ClassFailureStapler: failed to install class failure stapler; proceeding java.lang.RuntimeException: could not hook fn dvmInitClass: crit: tgt=409a1964{0} pos=409a1ddc{1144} cr=[409a196c,4... | java|android|serversocket | 0 | 2016-04-29T16:08:46.037Z | 2,016 | 4 | 16 | 4 | 118 | 0 | 1,658 | 38 | 3 | 2 | true | true | false | false | false | false | zero |
36,943,016 | using TextFile in Delphi Android | <p>In my Delphi 10 Seattle app, I am reading a text file (actually an ini file) using TextFile as below:</p>
<pre><code> SDPath := ClientUtils.GetSharedPath;
FileName := TPath.Combine(SDPath, 'Client.ini');
if not MemoVisible then
begin
Panel2.Visible := True;
if FileExists(FileName) then
... | In my Delphi 10 Seattle app, I am reading a text file (actually an ini file) using TextFile as below: [CODE] I noticed that the first line contains [Configuration] , 3 additional characters that weren't in the original file. I'm guessing this is from when the client.ini file was deployed from my Windows 7 PC. After ... | android|delphi|delphi-10-seattle | -1 | 2016-04-29T16:10:11.310Z | 2,016 | 4 | 16 | 4 | 1,561 | 2 | 513 | 32 | 3 | 2 | true | false | false | false | false | true | negative |
36,943,087 | My receiver don't receive the intent | <p>I've this problem: i set the alarmManager with intent and pendingintent, if some conditions is satisfied, put some extras in the intent.
The problem is that my receiver don't read my extras:</p>
<p>Set alarmManager in MainActivity:</p>
<pre><code> AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_... | I've this problem: i set the alarmManager with intent and pendingintent, if some conditions is satisfied, put some extras in the intent. The problem is that my receiver don't read my extras: Set alarmManager in MainActivity: [CODE] And in the logcat i can see: [CODE] But in my receiver: [CODE] I see this: [CODE] I see ... | android|android-intent|broadcastreceiver|android-pendingintent|extras | 0 | 2016-04-29T16:14:37.960Z | 2,016 | 4 | 16 | 4 | 82 | 1 | 409 | 36 | 5 | 4 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.