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,756,269 | Populating a listview with array data from JSON (populated by a background thread) Android | <p>I'm trying to create a window which will display a listbox populated with an array parsed from JSON. </p>
<p>The listview is populated and created in the <code>OnCreate</code> method in my <code>MainActivity</code>. In the main activity I'm also calling an <code>AsyncTask</code> to parse the JSON array from a websi... | I'm trying to create a window which will display a listbox populated with an array parsed from JSON. The listview is populated and created in the OnCreate method in my MainActivity . In the main activity I'm also calling an AsyncTask to parse the JSON array from a website. The task is shown below: [CODE] What is the be... | java|android|json | 0 | 2016-04-20T22:21:59.950Z | 2,016 | 4 | 22 | 2 | 102 | 2 | 650 | 90 | 3 | 2 | true | false | false | false | false | false | zero |
36,756,346 | cannot convert CustomAdapter expression to type System.Collections.Generic.List<string> on xamarin android | <p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>string[] items = new string[] { "Alternative Rock","Classical", "Country"}</code></pre>
</div>
</div>
</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<... | [CODE] [CODE] [CODE] cannot convert CustomAdapter expression to type System.Collections.Generic.List on xamarin android at CustomAdapter : BaseAdapter and new CustomAdapter (Activity, mAdapter); Blockquote In this example we will show how to create a ListView with section header. This involves following steps Update my... | xamarin|xamarin.android | 0 | 2016-04-20T22:29:09.777Z | 2,016 | 4 | 22 | 2 | 237 | 1 | 326 | 106 | 2 | 3 | true | false | false | false | false | false | zero |
36,756,351 | php mysql query always returns false | <p>using the code below, I always get the result false although I have confirmed that the data is in the table. </p>
<p>Is my php wrong somewhere?</p>
<pre><code> <?php
$con = mysqli_connect(".....", "....", ".....", "Pi");
$username = $_POST["username"];
$password = $_POST["password"];
$statem... | using the code below, I always get the result false although I have confirmed that the data is in the table. Is my php wrong somewhere? [CODE] Tested using the following link: http://joemalloy.co.uk/baj/Login.php?username=j&password=j Within my android app the following is used: Login Request [CODE] Login Activity [COD... | php|android | -2 | 2016-04-20T22:29:25.627Z | 2,016 | 4 | 22 | 2 | 73 | 1 | 322 | 36 | 2 | 3 | true | false | false | false | false | true | negative |
36,756,473 | How to disable android run-time location permission prompt in android Unity app | <p>Our Unity app does not use any kind of location services however it gets deployed in the AndroidManifest.xml. As our target sdk version is set to 23, it asks for permissions at runtime which we don't want specifically the location GPS permission since we don't use it but I believe Unity adds because maybe some 3rd p... | Our Unity app does not use any kind of location services however it gets deployed in the AndroidManifest.xml. As our target sdk version is set to 23, it asks for permissions at runtime which we don't want specifically the location GPS permission since we don't use it but I believe Unity adds because maybe some 3rd part... | android|unity3d|permissions | 1 | 2016-04-20T22:39:28.780Z | 2,016 | 4 | 22 | 2 | 2,446 | 1 | 962 | 79 | 3 | 1 | true | false | false | false | false | false | low |
36,756,491 | Universal Image Loader: Why are loaded Images limiting the vertical size of a Textview | <p>I am fetching data from JSON with volley. In the data displayed in <code>bookContent</code>, there are <img> tags in varying positions.</p>
<p>I'm using Universal Image Loader to Load the images in the <img> tags.</p>
<p>This is my Activity.</p>
<p><strong>BookDetails</strong></p>
<pre><code>public c... | I am fetching data from JSON with volley. In the data displayed in bookContent , there are <img> tags in varying positions. I'm using Universal Image Loader to Load the images in the <img> tags. This is my Activity. BookDetails [CODE] Below, I use this piece of code I got from the accepted answer in this question to lo... | android|json|universal-image-loader | 0 | 2016-04-20T22:41:04.637Z | 2,016 | 4 | 22 | 2 | 76 | 1 | 905 | 86 | 3 | 2 | true | false | false | false | false | false | zero |
36,756,540 | Issue with ListView content (viewHolder is not altering views inside) | <p>I've been looking for the answer to my problem, and I've found similar entries and have fixed some things but not the main problem.
When I run my code all thumbnails' images are the same and there is no text displaying in the TextViews, even though the Log.D is showing I'm changing the textViews to the correct texts... | I've been looking for the answer to my problem, and I've found similar entries and have fixed some things but not the main problem. When I run my code all thumbnails' images are the same and there is no text displaying in the TextViews, even though the Log.D is showing I'm changing the textViews to the correct texts an... | java|android|listview | 0 | 2016-04-20T22:44:58.693Z | 2,016 | 4 | 22 | 2 | 35 | 3 | 621 | 69 | 3 | 4 | true | false | false | false | false | false | zero |
36,756,621 | Unable to load Bitmap from gallery to Canvas | <p>I am trying to load an image that I picked from the gallery onto Canvas but for some reason it is not showing up on it.
I am using <a href="https://github.com/Korilakkuma/CanvasView" rel="nofollow">THIS Canvas Library</a> and the method to draw a Bitmap on to the Canvas there is <code>this.canvas.drawBitmap(bitmap)... | I am trying to load an image that I picked from the gallery onto Canvas but for some reason it is not showing up on it. I am using THIS Canvas Library and the method to draw a Bitmap on to the Canvas there is this.canvas.drawBitmap(bitmap); and I am using that but I dont know what is going wrong. MainActivity.java : [C... | java|android|bitmap|android-canvas | 1 | 2016-04-20T22:52:57.893Z | 2,016 | 4 | 22 | 2 | 120 | 1 | 748 | 44 | 4 | 4 | true | false | false | false | false | false | low |
36,756,658 | Compatibility with HttpClient and SDK v23 | <p>first I apologize for my bad English . My problem is I can not reconcile two codes that run on different versions of Android, as they are:</p>
<pre><code> import org.apache.http.client.HttpClient; (This work with 22)
import com.github.paolorotolo.appintro.AppIntro;(This work with 23)
</code></pre>
<p>If I s... | first I apologize for my bad English . My problem is I can not reconcile two codes that run on different versions of Android, as they are: [CODE] If I set my project to version 22 , it works only HTTPClient , but changing to 23 does not recognize it , but it works the AppIntro . Attachment " build.gradle " and the erro... | java|android|apache|android-studio|sdk | 0 | 2016-04-20T22:56:37.727Z | 2,016 | 4 | 22 | 2 | 319 | 1 | 506 | 41 | 5 | 2 | true | false | false | false | false | false | zero |
36,756,674 | Frame animation not working | <p>I am attempting to have frame animation in the app I'm designing for class but the app keeps crashing despite the research I've done on exactly how to go about the frame animation. Is it more likely to be my android studio bugging out or the code is incorrect?</p>
<p></p>
<pre><code><item android:drawable="@dra... | I am attempting to have frame animation in the app I'm designing for class but the app keeps crashing despite the research I've done on exactly how to go about the frame animation. Is it more likely to be my android studio bugging out or the code is incorrect? [CODE] [CODE] | android|animation|frame|android-drawable | 0 | 2016-04-20T22:58:07.927Z | 2,016 | 4 | 22 | 2 | 112 | 1 | 274 | 27 | 4 | 2 | true | false | false | false | false | false | zero |
36,756,863 | Generating C++ header file android | <p>I have been trying to create a <code>C++ header</code> file for 3 days now, I downloaded a project on Github that uses <code>C++</code>, the issue is I want to modify the project as it only runs on <code>armeabi-v7a</code> architecture. I want to generate <code>.so</code> files for both <code>armeabi-v7a</code> and ... | I have been trying to create a C++ header file for 3 days now, I downloaded a project on Github that uses C++ , the issue is I want to modify the project as it only runs on armeabi-v7a architecture. I want to generate .so files for both armeabi-v7a and x86 , below is the java class: [CODE] The Android.mk file: [CODE] A... | java|android|c++ | 0 | 2016-04-20T23:14:29.323Z | 2,016 | 4 | 23 | 2 | 549 | 1 | 661 | 34 | 3 | 5 | true | false | false | false | false | false | zero |
36,756,898 | Why doesn't my result string print to the logcat after parsing json data? | <p>I'm trying to parse a Json feed from wunderground.com and display the result in the logcat but nothing prints when it gets to the Log.v statement. I know call is going through because it shows up on the analitics page on wunderground. I'm using Android Studio and I'm not getting any errors or crashes. It just doesn'... | I'm trying to parse a Json feed from wunderground.com and display the result in the logcat but nothing prints when it gets to the Log.v statement. I know call is going through because it shows up on the analitics page on wunderground. I'm using Android Studio and I'm not getting any errors or crashes. It just doesn't p... | java|android|json | 1 | 2016-04-20T23:17:31.983Z | 2,016 | 4 | 23 | 2 | 767 | 1 | 1,773 | 73 | 3 | 2 | true | false | false | false | false | false | low |
36,756,959 | Android Activity methods in Fragment | <p>I have a Fragment activity that I am using to make a tab bar. Inside this activity I am planning to put a table or ListViews with some random values. </p>
<p>Here's my code:</p>
<pre><code>import com.example.mvaguimaraes.beetrackprov.R;
import android.app.Activity;
import android.os.Bundle;
import android.support... | I have a Fragment activity that I am using to make a tab bar. Inside this activity I am planning to put a table or ListViews with some random values. Here's my code: [CODE] The problem is that I cannot extend my Orders class to Fragment and Activity so I'm getting this errors in my code: Cannot resolve method findViewB... | android|android-activity|fragment|extends | 0 | 2016-04-20T23:24:15.507Z | 2,016 | 4 | 23 | 2 | 216 | 1 | 830 | 36 | 4 | 5 | true | false | false | false | false | false | zero |
36,757,000 | Why is my Spinner empty? | <p>I'm making a project for university, I have a DialogFragment where I record a new animal for a database. In the form, there is a spinner that is loaded from a database. This is the "onCreate" code of DialogFragment:</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSt... | I'm making a project for university, I have a DialogFragment where I record a new animal for a database. In the form, there is a spinner that is loaded from a database. This is the "onCreate" code of DialogFragment: [CODE] I can see in the log and debugging that the cursor has information, as does the spinner -- but wh... | android|android-spinner|simplecursoradapter|android-cursor | 2 | 2016-04-20T23:28:34.390Z | 2,016 | 4 | 23 | 2 | 656 | 1 | 391 | 24 | 4 | 1 | true | false | false | false | false | false | low |
36,757,076 | Prevent OkHttp/Retrofit from bypassing proxy | <p>When OkHttp tries a proxy, and that route fails once, every request after that request will completely bypass the Android system proxy. So it is difficult to debug using Charles.</p>
<p>I currently have the code below, but it is setup to only be for Debug builds. It works great, but it's a hack, and we're looking t... | When OkHttp tries a proxy, and that route fails once, every request after that request will completely bypass the Android system proxy. So it is difficult to debug using Charles. I currently have the code below, but it is setup to only be for Debug builds. It works great, but it's a hack, and we're looking to release t... | android|retrofit|retrofit2|okhttp | 11 | 2016-04-20T23:37:47.723Z | 2,016 | 4 | 23 | 2 | 3,326 | 1 | 473 | 44 | 4 | 1 | true | false | true | false | true | false | medium |
36,757,119 | Is it possible to dynamically set UUID on iBeacon app? | <p>I have a beacon device that broadcasts different UUID values based on a custom rotation scheme. </p>
<p>Usually, the developer has to set static UUID to be recognized by the app like that (example for iOS):</p>
<pre><code>CLBeaconRegion *region = [[CLBeaconRegion alloc] initWithProximityUUID:uuid major:major minor... | I have a beacon device that broadcasts different UUID values based on a custom rotation scheme. Usually, the developer has to set static UUID to be recognized by the app like that (example for iOS): [CODE] I was wondering if there is a way to dynamically generate (or receive from a server) the UUIDs to be recognized. H... | core-location|ibeacon|ibeacon-android|android-ibeacon|google-beacon-platform | 1 | 2016-04-20T23:41:10.053Z | 2,016 | 4 | 23 | 2 | 968 | 1 | 956 | 54 | 5 | 1 | true | false | false | false | false | false | low |
36,757,367 | Cannot add AutoFitTextView to my application | <p>I had this <a href="https://github.com/grantland/android-autofittextview" rel="nofollow">https://github.com/grantland/android-autofittextview</a> , working great on my application.</p>
<p>Then i tried to add WizardPage to my app, and then removed everything about WizardPage.</p>
<p>Now, i cannot open Activities wh... | I had this https://github.com/grantland/android-autofittextview , working great on my application. Then i tried to add WizardPage to my app, and then removed everything about WizardPage. Now, i cannot open Activities which has me.grantland.widget.AutofitTextView's. I didn't touch any of my layouts, i deleted everything... | android|textview|setcontentview | 0 | 2016-04-21T00:08:08.630Z | 2,016 | 4 | 0 | 3 | 216 | 0 | 437 | 44 | 3 | 3 | true | true | false | false | false | false | zero |
36,757,373 | Android Image Transition Animation overlays bars | <p>Image Transition Animation overlays bottom buttons or taskbar and statusbar.</p>
<p>Is there a way to fix it (make buttons and bars to be always on top)?</p>
<hr>
<p><img src="https://i.giphy.com/LZ5zasWET2vDO.gif" alt="Screen Record"></p>
<p>(On a tap on a item, the image overlays bottom buttons. The same happe... | Image Transition Animation overlays bottom buttons or taskbar and statusbar. Is there a way to fix it (make buttons and bars to be always on top)? (On a tap on a item, the image overlays bottom buttons. The same happens on the top.) Code: [CODE] Both images have: [CODE] Part of styles.xml: [CODE] item xml: [CODE] | android|android-layout|android-intent|android-animation|android-transitions | 1 | 2016-04-21T00:08:53.063Z | 2,016 | 4 | 0 | 3 | 336 | 0 | 314 | 48 | 5 | 4 | true | true | false | false | false | false | low |
36,757,454 | List Crashes App when updated | <p>I'm trying to get a ListView to show the contents of a simple array but my program crashes at the setAdapeter line. As I understand this is supposed to be because the final value comes out as null but I don't see why that would be the case or how to fix it. I have already tried using ArrayAdapeter instead as well as... | I'm trying to get a ListView to show the contents of a simple array but my program crashes at the setAdapeter line. As I understand this is supposed to be because the final value comes out as null but I don't see why that would be the case or how to fix it. I have already tried using ArrayAdapeter instead as well as ca... | android|listview|null|crash|listadapter | 2 | 2016-04-21T00:19:30.150Z | 2,016 | 4 | 0 | 3 | 66 | 1 | 647 | 29 | 5 | 4 | true | false | false | false | false | false | low |
36,757,573 | Video does not play on android mobile phone after being recorded using cordova + ionic? | <p>So here's the case, I am using cordova with ionic to make an app. One of the features of the app is to let the user record their video. This video is then supposed to show up on the app, immediately after being recorded. I have managed to get the app to record the video, which then gets stored in the users's phone. ... | So here's the case, I am using cordova with ionic to make an app. One of the features of the app is to let the user record their video. This video is then supposed to show up on the app, immediately after being recorded. I have managed to get the app to record the video, which then gets stored in the users's phone. How... | android|cordova|video|ionic-framework|playback | 0 | 2016-04-21T00:31:30.443Z | 2,016 | 4 | 0 | 3 | 183 | 1 | 524 | 87 | 5 | 2 | true | false | false | false | false | false | zero |
36,757,944 | Can't chain method calls for builder pattern with compiled inner class | <p>I am creating an android application that uses an aar file that has a class that uses the builder pattern. However, I suspect this is a plain old Java issue.</p>
<p>Everything works fine if I don't use any of the chained setter methods:</p>
<pre><code>ProjectConfig config = new ProjectConfig$Builder("reqparam0")
... | I am creating an android application that uses an aar file that has a class that uses the builder pattern. However, I suspect this is a plain old Java issue. Everything works fine if I don't use any of the chained setter methods: [CODE] However, once I try to use any of chained setter methods, [CODE] I know that there ... | java|android|compiler-errors|inner-classes|builder-pattern | 2 | 2016-04-21T01:21:36.163Z | 2,016 | 4 | 1 | 3 | 674 | 1 | 767 | 70 | 5 | 3 | true | false | false | false | false | false | low |
36,758,022 | Error null exception in "for" construct xamarin android. Where is incorrect? | <p><a href="https://i.stack.imgur.com/SvZ03.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SvZ03.png" alt="enter image description here"></a>This method returns the number of types of Views that will be created by getView method.
<div class="snippet" data-lang="js" data-hide="false" data-console="fa... | This method returns the number of types of Views that will be created by getView method. [CODE] [CODE] I spent much time for looking for errors but I have no idea why It was null. although It got a data from list mAdapter.addItem (listItems[i]); -> null exception when I debug on device. Where is incorrect? | xamarin|xamarin.android | 0 | 2016-04-21T01:30:38.400Z | 2,016 | 4 | 1 | 3 | 68 | 1 | 307 | 76 | 2 | 2 | true | false | false | false | false | false | zero |
36,758,029 | navigationdrawer and searchview functionality mixed | <p>iam having a strange issue my navigation drawer and searchview functionality are mixed when i open my navigation drawer function onQueryChanged or onQuerySubmited are called even if i didn't click on the search icon !! </p>
<p>and another thing my navigation drawer when i click on it it opens the item in the gridvi... | iam having a strange issue my navigation drawer and searchview functionality are mixed when i open my navigation drawer function onQueryChanged or onQuerySubmited are called even if i didn't click on the search icon !! and another thing my navigation drawer when i click on it it opens the item in the gridview behind th... | java|android | 3 | 2016-04-21T01:31:25.483Z | 2,016 | 4 | 1 | 3 | 177 | 0 | 632 | 51 | 2 | 5 | true | true | false | false | false | false | low |
36,758,086 | Sending a string through a socket using TCP | <p>I am trying to send a string (and later also an image) from one Android app, to another Android app. I know that I am very close. </p>
<p>The code "SendString" is one Android app on one phone. And the code "AppListener" is on the other phone. "SendString" seems to be working correctly and sending the string because... | I am trying to send a string (and later also an image) from one Android app, to another Android app. I know that I am very close. The code "SendString" is one Android app on one phone. And the code "AppListener" is on the other phone. "SendString" seems to be working correctly and sending the string because all of my p... | java|android|string|sockets|tcp | 1 | 2016-04-21T01:38:18.800Z | 2,016 | 4 | 1 | 3 | 938 | 1 | 1,266 | 43 | 5 | 3 | true | false | false | false | false | false | low |
36,758,149 | MultiSelectListPreference defaultValues not working | <p>I have a project that I am building in Android Studio. I've added the prebuilt preference screen with fragments which compiles and runs fine. I added a MultiSelectListPreference to one of the preference screens which displays fine and stores preference settings. However, the defaultValue is not working whether I add... | I have a project that I am building in Android Studio. I've added the prebuilt preference screen with fragments which compiles and runs fine. I added a MultiSelectListPreference to one of the preference screens which displays fine and stores preference settings. However, the defaultValue is not working whether I add it... | java|android|sharedpreferences|android-multiselectlistpreference | 1 | 2016-04-21T01:45:18.253Z | 2,016 | 4 | 1 | 3 | 745 | 1 | 1,173 | 51 | 4 | 4 | true | false | false | false | false | false | low |
36,758,225 | Creating an NDEF WiFi record using application/vnd.wfa.wsc in Android | <p>As of Android 5.0.0 you can long tap on a WiFi connection and write that connection to a tag ("Write to NFC tag"). You can find the source for that operation here: <a href="http://androidxref.com/5.1.0_r1/xref/packages/apps/Settings/src/com/android/settings/wifi/WriteWifiConfigToNfcDialog.java" rel="noreferrer">Writ... | As of Android 5.0.0 you can long tap on a WiFi connection and write that connection to a tag ("Write to NFC tag"). You can find the source for that operation here: WriteWifiConfigToNfcDialog.java . The relevant line that takes a WiFi connection and creates an NDEF payload appears to be here: String wpsNfcConfigurationT... | java|android|wifi|nfc|ndef | 15 | 2016-04-21T01:54:09.350Z | 2,016 | 4 | 1 | 3 | 3,681 | 2 | 1,627 | 69 | 5 | 0 | false | false | true | false | true | false | medium |
36,758,333 | Android sdk manager can't download packages other than lollipop | <p>i installed Android Studio and i couldn't find any package other than 5.1.1 to download and here is the SDK Manager log</p>
<p><img src="https://i.stack.imgur.com/ra4T5.jpg" alt="as showed in picture"></p>
<blockquote>
<p>Fetching <a href="http://dl-ssl.google.com/android/repository/addons_list-2.xml" rel="nofol... | i installed Android Studio and i couldn't find any package other than 5.1.1 to download and here is the SDK Manager log Fetching http://dl-ssl.google.com/android/repository/addons_list-2.xml Fetched Add-ons List successfully Fetching URL: http://dl-ssl.google.com/android/repository/repository-7.xml Done loading package... | android|android-studio|android-sdk-manager | 1 | 2016-04-21T02:05:21.170Z | 2,016 | 4 | 2 | 3 | 344 | 0 | 525 | 63 | 3 | 0 | false | true | false | false | false | false | low |
36,758,502 | Android: Null Pointer Exception Attempt to invoke virtual method on a null object reference | <p>I am a beginner working with Android studio. I have an assignment at hand where I am supposed to use the spinner control containing choices to fetch database records from a books.db such as records with highest and lowest values, record count etc.
Below are my Main class and SQLHelper classes listing the details.
I ... | I am a beginner working with Android studio. I have an assignment at hand where I am supposed to use the spinner control containing choices to fetch database records from a books.db such as records with highest and lowest values, record count etc. Below are my Main class and SQLHelper classes listing the details. I kee... | android|sqlite | -1 | 2016-04-21T02:25:46.213Z | 2,016 | 4 | 2 | 3 | 2,644 | 1 | 518 | 91 | 2 | 2 | true | false | true | false | false | true | negative |
36,758,555 | Can't connect to socket using Android Studio | <p>I have a problem connecting to telnet using Android Studio. Connecting through a terminal works just fine, but when I try to connect to Android Studio it doesn't connect. I just can't figure out what I'm doing wrong.</p>
<p>I can tell it's not connected because when I look at my telnet connection, a new message sho... | I have a problem connecting to telnet using Android Studio. Connecting through a terminal works just fine, but when I try to connect to Android Studio it doesn't connect. I just can't figure out what I'm doing wrong. I can tell it's not connected because when I look at my telnet connection, a new message should come up... | java|android|sockets|android-studio|telnet | 1 | 2016-04-21T02:32:26.837Z | 2,016 | 4 | 2 | 3 | 1,917 | 0 | 511 | 44 | 5 | 3 | true | true | false | false | false | false | low |
36,758,793 | Simple application of photo on Android Studio using Android tutorial of Camera | <p>I want to create an application to take a picture. I followed the Camera tutorial, I tried 3 times but unable to make it work.I added a button to take a picture.But the app is not working properly.Please help me out.Here is my code:</p>
<pre><code> // CAMERA VIEW displays the picture in a FrameLayout
public cl... | I want to create an application to take a picture. I followed the Camera tutorial, I tried 3 times but unable to make it work.I added a button to take a picture.But the app is not working properly.Please help me out.Here is my code: [CODE] And this is my activity, which takes a picture and save it [CODE] | java|android|image|photo | 0 | 2016-04-21T02:57:29.443Z | 2,016 | 4 | 2 | 3 | 447 | 0 | 305 | 78 | 4 | 2 | true | true | false | false | false | false | zero |
36,758,844 | Android upload file exception Invalid token character ' ' in token "json charset=UTF-8" | <p>I am trying to send a POST request on web server with Android Annotations REST Api, and I am trying to send an image as a Base64 String and video as a file.
The operation also needs a Bearer Auth but I have managed that without an error.</p>
<p>My RestClient interface is like this:</p>
<pre><code>@Rest(rootUrl = N... | I am trying to send a POST request on web server with Android Annotations REST Api, and I am trying to send an image as a Base64 String and video as a file. The operation also needs a Bearer Auth but I have managed that without an error. My RestClient interface is like this: [CODE] And my Request is like this: [CODE] I... | android|json|rest|upload|android-annotations | 2 | 2016-04-21T03:03:42.453Z | 2,016 | 4 | 3 | 3 | 689 | 2 | 682 | 87 | 5 | 4 | true | false | false | false | false | false | low |
36,758,864 | Sending data from activity to fragment using set methods | <p>I've posted a question regarding of passing data from activity to a fragment. And I've learnt that implementing Parcelable to a POJO class is a right way of doing it. After some research I also understand that in order to pass data to a fragment should use Bundle instead of Intent. </p>
<p>My previous question -->
... | I've posted a question regarding of passing data from activity to a fragment. And I've learnt that implementing Parcelable to a POJO class is a right way of doing it. After some research I also understand that in order to pass data to a fragment should use Bundle instead of Intent. My previous question --> Using same f... | android|parcelable | 4 | 2016-04-21T03:05:16.013Z | 2,016 | 4 | 3 | 3 | 653 | 2 | 1,809 | 56 | 2 | 6 | true | false | false | false | false | false | low |
36,758,916 | Reading JSON data from internal android storage and populating a ListView | <p>I have a bunch of json files which are saved into the android application internal storage like this:</p>
<pre><code> JSONObject jsonToSave = createJSONObject();
filenames = getFilenames(filepath);
int filenameNumber = filenames.size() + 1;
ContextWrapper contextWra... | I have a bunch of json files which are saved into the android application internal storage like this: [CODE] For context, here are the getFilenames and createJSONObject methods: [CODE] What I am trying to do is populate a ListView with a couple of fields from each file. This is what I have so far, using the same getFil... | java|android|json|listview | 1 | 2016-04-21T03:12:00.860Z | 2,016 | 4 | 3 | 3 | 117 | 0 | 421 | 73 | 4 | 3 | true | true | false | false | false | false | low |
36,758,923 | CollapsingToolbarLayout display the incorrect view? | <p>I using CollapsingToolbarLayout to stretchy image vs Toolbar when Scroll, but when start then layout obscured like below image:
<a href="https://i.stack.imgur.com/LnSfg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LnSfg.png" alt="enter image description here"></a></p>
<p>The left image,when a... | I using CollapsingToolbarLayout to stretchy image vs Toolbar when Scroll, but when start then layout obscured like below image: The left image,when app start, layout 12 Animal is pull up , I do not want such. Please for me solution, i want start application show all view on screan like right image. Thank all! This is m... | android | 1 | 2016-04-21T03:13:13.627Z | 2,016 | 4 | 3 | 3 | 74 | 0 | 341 | 51 | 1 | 2 | true | true | false | false | false | false | low |
36,758,981 | Multiple hints or multiple style for the same hint in edittext | <p>How to add to an EditText component another hint that will react as an hint, but with different as the default hint.</p>
<p>For example: field name is city, so I would like the primary hint in black to be displayed as "city" and in light blue I would like it to be dislayed as "tap to select a city".</p>
<p>Are the... | How to add to an EditText component another hint that will react as an hint, but with different as the default hint. For example: field name is city, so I would like the primary hint in black to be displayed as "city" and in light blue I would like it to be dislayed as "tap to select a city". Are there any ready-to-go ... | android|android-layout|android-edittext | 1 | 2016-04-21T03:18:40.887Z | 2,016 | 4 | 3 | 3 | 1,200 | 1 | 663 | 62 | 3 | 2 | true | false | false | false | false | false | low |
36,759,015 | Why Listview setOnItemClickListener can't work | <p>In <code>MainActivity</code> class:</p>
<pre><code> public class MainActivity extends ActionBarActivity {
public static final int MESSAGE_STATE_CHANGE = 1;
public static final int MESSAGE_READ = 2;
public static final int MESSAGE_WRITE = 3;
public static final int MESSAGE_DEVICE_NAME = 4;
publi... | In MainActivity class: [CODE] Source Code In AdapterList [CODE] in list_item_message_left1.xml [CODE] list_item_message_right1.xml [CODE] | android|listview|onitemclicklistener | -1 | 2016-04-21T03:22:53.043Z | 2,016 | 4 | 3 | 3 | 99 | 1 | 137 | 46 | 3 | 4 | true | false | false | false | false | true | negative |
36,759,053 | Invalid URI exception in DocumentsContract.getDocumentId (uri) | <p>I am trying to get the document id of the image which I saved, I am saving the image file to the following external storage in the device.</p>
<pre><code>file:///storage/emulated/0/Pictures/BeautifulFaces/kvh_20160420T225141.jpg
</code></pre>
<p>After querying querying </p>
<pre><code>public String checkIfImageIs... | I am trying to get the document id of the image which I saved, I am saving the image file to the following external storage in the device. [CODE] After querying querying [CODE] image_data_path is [CODE] Now when I am trying to do DocumentsContract.getDocumentId(uri) where uri is either the file uri mentioned at the top... | android | 4 | 2016-04-21T03:26:41.233Z | 2,016 | 4 | 3 | 3 | 2,595 | 0 | 512 | 62 | 1 | 5 | true | true | false | false | false | false | low |
36,759,200 | Understanding Android Binders | <p>I'm trying to understand a piece of code that uses Android Binders and Messages to perform IPC. I've read a few articles, papers and slides on binders, but I'm still confused and have a hard time understanding the code, since I didn't encounter any tutorials/examples of actually implementing binders in java code. I ... | I'm trying to understand a piece of code that uses Android Binders and Messages to perform IPC. I've read a few articles, papers and slides on binders, but I'm still confused and have a hard time understanding the code, since I didn't encounter any tutorials/examples of actually implementing binders in java code. I am ... | android|android-service|ipc|android-binder | 1 | 2016-04-21T03:39:42.590Z | 2,016 | 4 | 3 | 3 | 1,714 | 0 | 1,090 | 29 | 4 | 3 | true | true | false | false | false | false | low |
36,759,202 | Android - Best approach for passing context in adapter (Specifically `RecyclerViewAdapter`) | <p>I have a <code>RecyclerView</code> with its <code>Adapter</code> in a <code>Fragment</code>. Currently I'm hunting for OOM causes and <code>Context</code> leaking might be one of the cause.</p>
<p>There are several approaches I did in getting the context in <code>Adapter</code> (Need the <code>Context</code> for <c... | I have a RecyclerView with its Adapter in a Fragment . Currently I'm hunting for OOM causes and Context leaking might be one of the cause. There are several approaches I did in getting the context in Adapter (Need the Context for SharedPreferences , Glide / Picasso , and replacing Fragments ). Passing the Context throu... | android|android-fragments|android-context | 2 | 2016-04-21T03:39:48.233Z | 2,016 | 4 | 3 | 3 | 787 | 1 | 1,511 | 91 | 3 | 2 | true | false | false | false | false | false | low |
36,759,212 | Capturing a photo taken from a gallery intent | <p>I have a method which launches the gallery so that I can choose photos (this works)</p>
<pre><code>public ArrayList<ImageEntry> pickImages(Context cont){
Picker.PickListener pic = new MyPickListener();
ArrayList<ImageEntry> images = new ArrayList<>();
pic.onPickedSuccessfully(images);
... | I have a method which launches the gallery so that I can choose photos (this works) [CODE] Except when I take a photo in gallery it returns with [CODE] As the image path When I try to load this image [CODE] My question is what do I need to do to be able to load images taken from the gallery. At the moment they only sho... | android | 2 | 2016-04-21T03:41:18.440Z | 2,016 | 4 | 3 | 3 | 23 | 0 | 338 | 45 | 1 | 3 | true | true | false | false | false | false | low |
36,759,251 | Adding ffmpeg OMX codec to Genymotion Android 4.4.2 emulator | <p>Basic Question:</p>
<p>Is there a way to add a new audio codec to the Genymotion Android emulator, short of downloading the entire Android source, learning how to build it, and creating my own version of Android?</p>
<hr>
<p>Context:</p>
<p>I have written a java Android app that acts as an audio renderer, as wel... | Basic Question: Is there a way to add a new audio codec to the Genymotion Android emulator, short of downloading the entire Android source, learning how to build it, and creating my own version of Android? Context: I have written a java Android app that acts as an audio renderer, as well as being a DLNA/OpenHome server... | android|ffmpeg|genymotion|codec | 3 | 2016-04-21T03:44:34.513Z | 2,016 | 4 | 3 | 3 | 1,676 | 1 | 7,184 | 60 | 4 | 0 | false | false | false | false | false | false | low |
36,759,324 | Android CTS: "Error during Sync: timeout" | <ul>
<li>UBUNTU : 12.04 </li>
<li>Android CTS : 6.0_r5 </li>
<li>ADB version : Android Debug Bridge version 1.0.32 (Revision 09a0d98bebce-android)</li>
</ul>
<p>When running a CTS test on my target board, I got "Error duing Sync: timeout" so any test is not executed. I tried to the same test with CTS 6.0_r3 but the re... | UBUNTU : 12.04 Android CTS : 6.0_r5 ADB version : Android Debug Bridge version 1.0.32 (Revision 09a0d98bebce-android) When running a CTS test on my target board, I got "Error duing Sync: timeout" so any test is not executed. I tried to the same test with CTS 6.0_r3 but the result is same. BTW, when my coworker run the ... | android|android-cts | 1 | 2016-04-21T03:51:09.970Z | 2,016 | 4 | 3 | 3 | 1,218 | 2 | 433 | 41 | 2 | 1 | true | false | false | false | false | false | low |
36,759,369 | Can Android Preferences/Settings screen be configured to use preferences other than 'DEFAULT' shared preferences? | <p>Android Tutorials and examples show how to use <strong>Preference Fragment and Preference Activity</strong> to create <strong>Settings screen</strong> in an app.</p>
<p>However, all preferences exposed this way get their values to '<strong>DefaultSharedPreferences</strong>'. </p>
<p>What if we want to save prefere... | Android Tutorials and examples show how to use Preference Fragment and Preference Activity to create Settings screen in an app. However, all preferences exposed this way get their values to ' DefaultSharedPreferences '. What if we want to save preference values to other (non-default / custom) SharedPreferences. The use... | android|sharedpreferences|settings|android-preferences | 2 | 2016-04-21T03:55:51.673Z | 2,016 | 4 | 3 | 3 | 967 | 1 | 901 | 113 | 4 | 0 | false | false | false | false | false | false | low |
36,759,381 | Android Changing OpenGL Coordinate System | <p>Ok so I found this <a href="https://stackoverflow.com/questions/5814374/blank-screen-when-using-gluortho2d">thread</a>, which is what I believe I need to do. However, I am not using <code>GL10</code> but <code>GLES20</code>. <code>glOrthof</code> isn't a part of the <code>GLES20</code> API.</p>
<p>What I want to do... | Ok so I found this thread , which is what I believe I need to do. However, I am not using GL10 but GLES20 . glOrthof isn't a part of the GLES20 API. What I want to do is change the coordinate system's range from [-1, 1] to [0,1] . This is the normal system. I would like to change it so that it is this.(Below) The cente... | java|android|opengl-es-2.0 | 2 | 2016-04-21T03:56:49.087Z | 2,016 | 4 | 3 | 3 | 1,084 | 1 | 432 | 41 | 3 | 2 | true | false | false | false | false | false | low |
36,759,384 | Base64 encoded string for image in java is not valid in php | <p>I have seen many examples and still not able to get my work done.
I'm using below code for encoding my image into Base64 string</p>
<pre><code>public static String getStringImage(Bitmap bmp){
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bmp.compress(Bitmap.CompressFormat.JPEG, 100, baos);
... | I have seen many examples and still not able to get my work done. I'm using below code for encoding my image into Base64 string [CODE] when I post this encodedImage to my web server where PHP is running, it doesn't decode back to the image I tested it using below PHP code [CODE] where the $image has encoded string. Bel... | java|php|android|encoding | 0 | 2016-04-21T03:57:10.807Z | 2,016 | 4 | 3 | 3 | 966 | 1 | 881 | 59 | 4 | 5 | true | false | false | false | false | false | zero |
36,759,430 | Java gson.fromJson() to POJO using Reflection causes java.lang.ClassCastException | <p>I am having a bit of a nightmarish issue parsing some JSON using Gson.</p>
<p>The Json structure I am trying to parse looks like this:</p>
<pre><code>{ "user_id" : "833", "message" : "User created and registered" }
</code></pre>
<p>When I parse the Json using the following code:</p>
<pre><code>Type response = gs... | I am having a bit of a nightmarish issue parsing some JSON using Gson. The Json structure I am trying to parse looks like this: [CODE] When I parse the Json using the following code: [CODE] I receive the following error: java.lang.ClassCastException: ... RestResponse cannot be cast to java.lang.reflect.Type I am parsin... | java|android|json|gson | -1 | 2016-04-21T04:02:47.857Z | 2,016 | 4 | 4 | 3 | 1,284 | 3 | 598 | 81 | 4 | 5 | true | false | false | false | false | true | negative |
36,759,451 | Android: Content provider security | <p>I am learning some basic knowledge in Android. Now, I am dealing with <code>ContentProvider</code>. Many post said that we should use content provider for data sharing between application. </p>
<p>After a few days researching, I totally agree that it is quite convenience to use <code>ContentProvider</code> in Andro... | I am learning some basic knowledge in Android. Now, I am dealing with ContentProvider . Many post said that we should use content provider for data sharing between application. After a few days researching, I totally agree that it is quite convenience to use ContentProvider in Android. However, there is a security prob... | android|android-contentprovider|android-contentresolver|android-security | 3 | 2016-04-21T04:05:16.120Z | 2,016 | 4 | 4 | 3 | 440 | 0 | 1,328 | 34 | 4 | 0 | false | true | false | false | false | false | low |
36,759,519 | Getting nullpointerexception even after giving right reference. Please see details | <p>I'm trying to set the name and email in <code>NavigationView</code> after fetching it from the database.</p>
<p>Here's how I have given reference of <code>NavigationView</code> in <code>onCreate()</code> method:</p>
<pre><code>navigationView = (NavigationView) findViewById(R.id.nav_view);
navigationView.setNavigat... | I'm trying to set the name and email in NavigationView after fetching it from the database. Here's how I have given reference of NavigationView in onCreate() method: [CODE] But, I'm still getting this error: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.support.d... | java|android|nullpointerexception|navigation-drawer|android-navigationview | 1 | 2016-04-21T04:13:08.833Z | 2,016 | 4 | 4 | 3 | 3,294 | 2 | 717 | 82 | 5 | 4 | true | false | true | false | false | false | low |
36,759,526 | how to stop mouse motion event in particular stage | <p>am new to android. i have small issue in mouse motion use, i don't know to handle . when scroll up or down in mouse to change the button value when reach the particular value stop the mouse motion or not change the values. Please suggest me and advance thanks...</p>
<blockquote>
<p>My Activity</p>
</blockquote>
... | am new to android. i have small issue in mouse motion use, i don't know to handle . when scroll up or down in mouse to change the button value when reach the particular value stop the mouse motion or not change the values. Please suggest me and advance thanks... My Activity [CODE] | java|android|mousemotionevent | 1 | 2016-04-21T04:14:14.457Z | 2,016 | 4 | 4 | 3 | 47 | 1 | 281 | 50 | 3 | 1 | true | false | false | false | false | false | low |
36,759,562 | how to get a boolean value of checkbox whether it is checked or unchecked- android studio? | <p>I am using <code>checkbox</code> to register a faculty if the <code>checkbox</code> is checked, else- by default, student is registered <code>onClick</code>. The checkbox value is always checked using the <code>checkbox.isChecked()</code>, how do i change it so that it will get the status of the checked/unchecked in... | I am using checkbox to register a faculty if the checkbox is checked, else- by default, student is registered onClick . The checkbox value is always checked using the checkbox.isChecked() , how do i change it so that it will get the status of the checked/unchecked in boolean form. i need it in boolean since i have used... | android|windows|sqlite | 0 | 2016-04-21T04:17:08.957Z | 2,016 | 4 | 4 | 3 | 3,684 | 2 | 515 | 90 | 3 | 2 | true | false | true | false | false | false | zero |
36,759,744 | onclicklistener on the specific item of the recyclerview in android | <p>I am going to ask very basic question, but i am stuck in it for a long time.</p>
<p><a href="https://i.stack.imgur.com/Ou5bt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ou5bt.png" alt=""></a></p>
<p>after card view there is an recycleview which has 2 images in each row.
now i want to create the click... | I am going to ask very basic question, but i am stuck in it for a long time. after card view there is an recycleview which has 2 images in each row. now i want to create the click listener on the images rather than the recycleview. the corresponding layout(layout_main.xml) of this activity(MainActivity.java) contain on... | java|android|xml|android-recyclerview | 7 | 2016-04-21T04:34:19.510Z | 2,016 | 4 | 4 | 3 | 18,308 | 6 | 865 | 67 | 4 | 1 | true | false | true | true | false | false | medium |
36,759,784 | Time taken on first run with AS 2.0 and gradle 2.0 | <p>Recently i have upgraded <code>Android Studio</code> from <code>1.5</code> to <code>2.0</code>.</p>
<p>With that i am using <code>gradle 2.0.0</code></p>
<pre><code>classpath 'com.android.tools.build:gradle:2.0.0'
</code></pre>
<p>But there seems some issue with it, whenever i am running my app for first time, it... | Recently i have upgraded Android Studio from 1.5 to 2.0 . With that i am using gradle 2.0.0 [CODE] But there seems some issue with it, whenever i am running my app for first time, it is showing while/black screen for 10-15 seconds. There is nothing i am doing on applicationClass or launcher activity, but then also it i... | android|android-studio-2.0|android-gradle-2.0 | 14 | 2016-04-21T04:38:00.850Z | 2,016 | 4 | 4 | 3 | 471 | 4 | 825 | 50 | 3 | 1 | true | false | false | false | true | false | medium |
36,759,822 | security.AccessControlException Error | <p>When i used quartz trigger in backend java i am getting this error:</p>
<pre><code>java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:382)
at java.security.AccessController.ch... | When i used quartz trigger in backend java i am getting this error: [CODE] Can anyone help me??? My code: [CODE] and i am calling this as: [CODE] please help i am stuck. I didn't understand the issue..what is this servelet issue?? | android|google-app-engine|jetty|quartz-scheduler | 2 | 2016-04-21T04:41:32.107Z | 2,016 | 4 | 4 | 3 | 87 | 1 | 230 | 37 | 4 | 3 | true | false | false | false | false | false | low |
36,759,839 | "Duplicate Zip Entry" (from Proguard) - renderscript-v8.jar | <p>I am developing android application in Android Studio. There is no problem when I build the project an export signed APK without Proguard, but when I try to build the project with ProGuard(minifyEnabled true), there is an Proguard build failed with error like this:</p>
<pre><code>Error:Execution failed for task ':a... | I am developing android application in Android Studio. There is no problem when I build the project an export signed APK without Proguard, but when I try to build the project with ProGuard(minifyEnabled true), there is an Proguard build failed with error like this: [CODE] Here is my build.gradle codes [CODE] Here is my... | android-studio|gradle|android-proguard | 0 | 2016-04-21T04:43:03.950Z | 2,016 | 4 | 4 | 3 | 689 | 1 | 910 | 59 | 3 | 4 | true | false | false | false | false | false | zero |
36,759,841 | Android: Programmatically changing XML layout to "Lefty Flip" | <p>I'm trying to allow users of my app to toggle the UI to be either standard orientation or "lefty flip". I'm unsure how low-level of a solution I need to program, considering Android might provide an abstracted way to easily do this. </p>
<p>Visually, the standard orientation would be: <a href="https://i.stack.imgur... | I'm trying to allow users of my app to toggle the UI to be either standard orientation or "lefty flip". I'm unsure how low-level of a solution I need to program, considering Android might provide an abstracted way to easily do this. Visually, the standard orientation would be: and the lefty flip orientation would be: S... | android|xml|android-layout|android-view | 0 | 2016-04-21T04:43:13.950Z | 2,016 | 4 | 4 | 3 | 192 | 1 | 643 | 61 | 4 | 1 | true | false | false | false | false | false | zero |
36,759,846 | EditText and Textview not displayed in layout | <p>Hey StackOverflow community.</p>
<p>I am working on an android app right now and I got some problem with the layout of a fragment.</p>
<p>My problem is that the textviews and edittexts are not displayed, they are like squeeze in the layout design mode of android studio. It's the same thing when I run the app in th... | Hey StackOverflow community. I am working on an android app right now and I got some problem with the layout of a fragment. My problem is that the textviews and edittexts are not displayed, they are like squeeze in the layout design mode of android studio. It's the same thing when I run the app in the emulator. I am us... | android|android-layout|android-fragments|android-studio|android-relativelayout | 0 | 2016-04-21T04:43:49.933Z | 2,016 | 4 | 4 | 3 | 331 | 4 | 729 | 45 | 5 | 1 | true | false | false | false | false | false | zero |
36,759,929 | NullPointerException ContextCompat Error | <p>I have created a custom component ,which on adding to the layout i get the following error</p>
<p>Error is as follows</p>
<pre><code>java.lang.NullPointerException
at android.support.v4.content.ContextCompatApi21.getDrawable(ContextCompatApi21.java:26)
at android.support.v4.content.ContextCompat.getDrawabl... | I have created a custom component ,which on adding to the layout i get the following error Error is as follows [CODE] In my java class i have imported [CODE] In dependencies i have added [CODE] and i am using gradle version [CODE] custom component widget code http://pastebin.com/nWn46qA3 | android|nullpointerexception | 3 | 2016-04-21T04:50:23.440Z | 2,016 | 4 | 4 | 3 | 1,253 | 1 | 288 | 40 | 2 | 4 | true | false | false | false | false | false | low |
36,759,964 | How to properly start a music service on Android with Java | <p><strong>The Music Service</strong></p>
<p>I've been trying to follow on a tutorial on this and it seems to be failing to start the music service. What am I missing? </p>
<pre><code>public class MusicService extends Service implements
OnPreparedListener, MediaPlayer.OnErrorListener,
MediaPlayer.OnC... | The Music Service I've been trying to follow on a tutorial on this and it seems to be failing to start the music service. What am I missing? [CODE] MainActivity [CODE] Logcat [CODE] | java|android|android-service|media-player | 1 | 2016-04-21T04:53:48.143Z | 2,016 | 4 | 4 | 3 | 533 | 0 | 181 | 58 | 4 | 3 | true | true | false | false | false | false | low |
36,760,049 | Google Sign in API - get photo Uri is null | <p>I was using Google Sign in API to request user profile, likes user display name, avatar photo. I got <strong>null</strong> value GoogleSignInAccount.getPhotoUrl(), got value GoogleSignInAccount.getDisplayName().</p>
<p>Gmail account ok, but private account is not. private account is linked to Google gmail, it can s... | I was using Google Sign in API to request user profile, likes user display name, avatar photo. I got null value GoogleSignInAccount.getPhotoUrl(), got value GoogleSignInAccount.getDisplayName(). Gmail account ok, but private account is not. private account is linked to Google gmail, it can see the picture in my Gmail a... | android|google-signin | 4 | 2016-04-21T05:01:16.933Z | 2,016 | 4 | 5 | 3 | 2,013 | 1 | 441 | 42 | 2 | 1 | true | false | false | false | false | false | low |
36,760,123 | Do network location provider need internet to determine location? | <p>Do Android devices need internet when using network provider for location fetching? I see few articles saying it works without internet and few saying it needs internet.</p>
<p>I am looking more into how Android internally does location fetching (rather than the code).</p>
<p>Articles saying we need internet: Devi... | Do Android devices need internet when using network provider for location fetching? I see few articles saying it works without internet and few saying it needs internet. I am looking more into how Android internally does location fetching (rather than the code). Articles saying we need internet: Device captures cell id... | android|android-location|locationmanager | 5 | 2016-04-21T05:07:05.940Z | 2,016 | 4 | 5 | 3 | 3,139 | 1 | 2,013 | 65 | 3 | 0 | false | false | true | false | false | false | low |
36,760,297 | My contours smaller than a certain value are Not being removed from list of contours, despite of correct logic. Why? | <p>I started with this image:</p>
<p><a href="https://i.stack.imgur.com/oG64g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oG64g.png" alt="enter image description here"></a></p>
<p>Then I applied Canny Edge Detector like:</p>
<pre><code>Mat originalMatGreyScale = new Mat();
Imgproc.cvtColor(ori... | I started with this image: Then I applied Canny Edge Detector like: [CODE] I got: Then I found a list of contours ( contours ) by Imgproc.findContours() .Then I did some coding to (1)find the area of largest contour ( maximumContourArea ) (2) Remove from contours any contour which has an area less than the maximumConto... | android|opencv|image-processing|contour | 0 | 2016-04-21T05:21:01.773Z | 2,016 | 4 | 5 | 3 | 134 | 1 | 2,396 | 116 | 4 | 6 | true | false | false | false | false | false | zero |
36,760,344 | How to read Heart rate from Android Wear | <p>I need to read the heart rate of the user at that instant. I tried using this code located in my main activity in the Wear project.</p>
<pre>
public class MainActivity extends WearableActivity implements SensorEventListener {
private static final String TAG = "MainActivity";
private TextView mTextViewHeart... | I need to read the heart rate of the user at that instant. I tried using this code located in my main activity in the Wear project. [CODE] This code is simply not working, giving me an error saying: [CODE] It works fine if I use anything else but the heart rate sensor. I am using: LG G4 with android API level 23 LG Urb... | java|android | 11 | 2016-04-21T05:24:28.083Z | 2,016 | 4 | 5 | 3 | 17,565 | 4 | 416 | 40 | 2 | 2 | true | false | true | true | true | false | medium |
36,760,475 | How to use Webview? | <pre><code> String fbid = getIntent().getStringExtra("id");//Getting this value from previous screen
Log.e( "What I am getting : " + fbid);
final String url = "https://www.fbbexample.com/abc/"+fbid; //**not working**
Log.e( "url I am getting : " + url); Log value: https://www.fbbexample.com/abc/59
/... | [CODE] What I am facing is when I hard code the String "fbid" it works and when I try it as mention above then getting blank screen .. .... Intent intent = new Intent(getContext(), SingleFbb.class); intent.putExtra("id",idno); | android|webview | -2 | 2016-04-21T05:34:02.407Z | 2,016 | 4 | 5 | 3 | 148 | 2 | 226 | 19 | 2 | 1 | true | false | false | false | false | true | negative |
36,760,526 | verticalHorizontal scroll Listview for android TV app | <p>I had a requirement of implementing a Header List view with horizontal scroll items as rows (similar to UI shown by using Browse fragment of leanback library) for android TV app . I browsed on net and used verticalHorizontalscroll view using Two way View example and added a header text.As the app is for android TV ,... | I had a requirement of implementing a Header List view with horizontal scroll items as rows (similar to UI shown by using Browse fragment of leanback library) for android TV app . I browsed on net and used verticalHorizontalscroll view using Two way View example and added a header text.As the app is for android TV , bo... | android|horizontalscrollview|smooth-scrolling|google-tv|android-tv | 0 | 2016-04-21T05:37:50.940Z | 2,016 | 4 | 5 | 3 | 863 | 0 | 1,179 | 53 | 5 | 0 | false | true | false | false | false | false | zero |
36,760,595 | Odd white space at the bottom of the Android fragment? | <p>I faced with the weird issue: there is a white space at the bottom of the fragment and I am not able to get rid off it. It is also worth to mention that this space disappears if I click any button. </p>
<p>Any help is appreciated! Please find screenshot and layout codes below.</p>
<p><a href="http://i.stack.imgur.... | I faced with the weird issue: there is a white space at the bottom of the fragment and I am not able to get rid off it. It is also worth to mention that this space disappears if I click any button. Any help is appreciated! Please find screenshot and layout codes below. Screenshot DetailActivity layout: [CODE] DetailFra... | android|xml|android-fragments|layout|fragment | 5 | 2016-04-21T05:42:31.773Z | 2,016 | 4 | 5 | 3 | 2,704 | 3 | 407 | 54 | 5 | 4 | true | false | true | false | false | false | low |
36,760,717 | child recyclerview methods is not calling (onCreateViewHolder, onBindViewHolder). But getItemCount() method is calling | <p>I have one recyclerview and this will display data in vertically. One row will display data in horizontally so i used another recyclerview. which is calling from first recyclerview's onBindViewHolder.</p>
<p>parent recylerview is working but when i am adding child recycler view. these methods are not calling (onCre... | I have one recyclerview and this will display data in vertically. One row will display data in horizontally so i used another recyclerview. which is calling from first recyclerview's onBindViewHolder. parent recylerview is working but when i am adding child recycler view. these methods are not calling (onCreateViewHold... | android|android-recyclerview | 0 | 2016-04-21T05:52:06.077Z | 2,016 | 4 | 5 | 3 | 993 | 1 | 765 | 118 | 2 | 6 | true | false | false | false | false | false | zero |
36,760,748 | java.lang.NoClassDefFoundError: android.app.usage.UsageStatsManager in android | <p>Hi i am using UsageStatsManager api to show some usage list to user. But i am facing some issue. i am getting this error in many device, in some device it's working fine. i am still surfing about this issue. can you guys please help me to solve this. </p>
<p><strong>Error:</strong></p>
<pre><code>java.lang.NoClass... | Hi i am using UsageStatsManager api to show some usage list to user. But i am facing some issue. i am getting this error in many device, in some device it's working fine. i am still surfing about this issue. can you guys please help me to solve this. Error: [CODE] Code i have used: [CODE] Manifest: [CODE] Check my app ... | java|android|usagestatsmanager | 1 | 2016-04-21T05:53:41.913Z | 2,016 | 4 | 5 | 3 | 826 | 2 | 321 | 78 | 3 | 3 | true | false | false | false | false | false | low |
36,760,789 | Parse Object Not Found For Update Error | <p>On Parse I have a user, this user has an ID needed to start a messaging service with them called <code>messageID</code>. This <code>messageID</code> is contained in a separate class (Messaging) with class ACL set to public read and <code>write = true</code>, however the individual rows have their ACL's set to <code>... | On Parse I have a user, this user has an ID needed to start a messaging service with them called messageID . This messageID is contained in a separate class (Messaging) with class ACL set to public read and write = true , however the individual rows have their ACL's set to publicRead = false and publicWrite = false , s... | android|ios|parse-platform | 0 | 2016-04-21T05:55:39.933Z | 2,016 | 4 | 5 | 3 | 274 | 2 | 929 | 39 | 3 | 0 | false | false | false | false | false | false | zero |
36,760,805 | Passing string[] between fragment. How to do that? | <p>fragment1:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>lst.ItemClick += delegate(object sender, AdapterView.ItemClickEventArgs e) {
var intent = new Intent (this, typeof(TracksByGenres));
intent... | fragment1: [CODE] TracksByGenres is fragment2 Error:The best overloaded method match for `Android.Content.Intent.Intent(Android.Content.Context, System.Type)' has some invalid arguments atnew Intent (this, typeof(TracksByGenres)); Fragment2: [CODE] Where is incorrect? | xamarin|xamarin.android | 0 | 2016-04-21T05:56:40.720Z | 2,016 | 4 | 5 | 3 | 195 | 1 | 268 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
36,760,812 | VideoView crashing after few hours of playing videos, says frames skipped in logs and can't play this video popup on screen Android? | <p>Android VideoView works for few hours and plays videos, but after a few hours it crashes and says can't play this video. also in logs it show skipped 100 frames or so and the video never plays, I am attaching the logs, is this info enough to clear the problem ? </p>
<pre><code>04-21 11:10:07.465 16564-16564/com.exa... | Android VideoView works for few hours and plays videos, but after a few hours it crashes and says can't play this video. also in logs it show skipped 100 frames or so and the video never plays, I am attaching the logs, is this info enough to clear the problem ? [CODE] | android|android-videoview | 0 | 2016-04-21T05:57:04.203Z | 2,016 | 4 | 5 | 3 | 92 | 0 | 268 | 132 | 2 | 1 | true | true | false | false | false | false | zero |
36,760,848 | how to draw ECG wave form in android using canvas | <p>i try to draw wave form using canvas method. unfortunately i get current position to end position but i need to full wave to show in view. </p>
<p>MainActivity</p>
<pre><code>public class LineView extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIn... | i try to draw wave form using canvas method. unfortunately i get current position to end position but i need to full wave to show in view. MainActivity [CODE] XML [CODE] ` My view is here [CODE] Expected output like here I need to not only current to end position. i want previous position also draw in view activity. | java|android|android-studio|android-canvas | -2 | 2016-04-21T05:59:26.503Z | 2,016 | 4 | 5 | 3 | 2,306 | 1 | 317 | 49 | 4 | 3 | true | false | false | false | false | true | negative |
36,760,851 | Canvas drawing with Android | <p>I'm very new to Android Development (as in started yesterday)! I'm trying to make an app where I can draw a circle and move it around. I ran into a problem, as touch events with my current code cause it to crash. Here's the code:</p>
<pre><code>/**
* capture touch events and draw or erase circles accordingly
*/
@... | I'm very new to Android Development (as in started yesterday)! I'm trying to make an app where I can draw a circle and move it around. I ran into a problem, as touch events with my current code cause it to crash. Here's the code: [CODE] and [CODE] | android | -1 | 2016-04-21T05:59:36.883Z | 2,016 | 4 | 5 | 3 | 44 | 1 | 247 | 27 | 1 | 2 | true | false | false | false | false | true | negative |
36,760,963 | Android studio instrumented apk error while running application | <p>I have created one hello world demo and try to create an instumented apk using monkey talk with below link
<a href="http://www.jiahaoliuliu.com/2015/02/monkey-talk-integration-with-android.html" rel="nofollow noreferrer">http://www.jiahaoliuliu.com/2015/02/monkey-talk-integration-with-android.html</a></p>
<p>I don'... | I have created one hello world demo and try to create an instumented apk using monkey talk with below link http://www.jiahaoliuliu.com/2015/02/monkey-talk-integration-with-android.html I don't found any error in build.gradle file in app module Below is my build.gradle [CODE] While running application i found below erro... | android|android-studio|monkeytalk | 0 | 2016-04-21T06:07:42.863Z | 2,016 | 4 | 6 | 3 | 68 | 1 | 566 | 63 | 3 | 1 | true | false | false | false | false | false | zero |
36,761,042 | How to dismiss progress bar once otp read from Inbox in android? | <p>I have a Otp verification Screen in which I have a progress bar with timer ,what I want is to dismiss this progressbar once Read Otp from inbox if read successfully from Inbox then dismiss progressbar and execute Jsons Url if not then show progressbar with timer until not read sms from Inbox.for this I am using Broa... | I have a Otp verification Screen in which I have a progress bar with timer ,what I want is to dismiss this progressbar once Read Otp from inbox if read successfully from Inbox then dismiss progressbar and execute Jsons Url if not then show progressbar with timer until not read sms from Inbox.for this I am using Broadca... | android | -2 | 2016-04-21T06:12:41.030Z | 2,016 | 4 | 6 | 3 | 462 | 1 | 439 | 64 | 1 | 2 | true | false | false | false | false | true | negative |
36,761,141 | common runonUIthread for whole application | <p>So, I am designing an android application that interacts with some hardware over a bluetooth dongle. </p>
<p>The request/response model is a little slow (sometimes it takes 1-2 seconds to receive a response to a particular request) and hence I have kept the request sent and response received model in a different th... | So, I am designing an android application that interacts with some hardware over a bluetooth dongle. The request/response model is a little slow (sometimes it takes 1-2 seconds to receive a response to a particular request) and hence I have kept the request sent and response received model in a different thread. To ach... | android|multithreading|design-patterns | 0 | 2016-04-21T06:18:56.390Z | 2,016 | 4 | 6 | 3 | 1,840 | 1 | 1,147 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,761,161 | Android - Crash when clicking on RecyclerView when SwipeRefreshLayout loading | <p>I have a <code>RecyclerView</code> inside a <code>SwipeRefreshLayout</code> , when I reload my page , when <code>SwipeRefreshLayout</code> is loading, I click on the item on the <code>RecyclerView</code> and it crashes.</p>
<pre><code>04-21 13:14:49.605 25586-25586/? E/AndroidRuntime: FATAL EXCEPTION: main
... | I have a RecyclerView inside a SwipeRefreshLayout , when I reload my page , when SwipeRefreshLayout is loading, I click on the item on the RecyclerView and it crashes. [CODE] 04-21 13:14:49.675 182-1124/? E/IMGSRV: :0: PVRDRMOpen: TP3, ret = 57 | android|android-recyclerview|swiperefreshlayout | 2 | 2016-04-21T06:19:46.647Z | 2,016 | 4 | 6 | 3 | 2,137 | 3 | 244 | 77 | 3 | 1 | true | false | false | false | false | false | low |
36,761,310 | When using an existing Database in Android, Does the onCreate method still get called? | <p>BUMP EDIT.</p>
<p>I'm relatively new to Android, so please excuse if this question seems easy, but I'm Trying to import an existing database into my program, and I used the method mentioned in the links
<a href="http://blog.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/" rel="nofollow... | BUMP EDIT. I'm relatively new to Android, so please excuse if this question seems easy, but I'm Trying to import an existing database into my program, and I used the method mentioned in the links http://blog.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ How to use an existing database wit... | android | -1 | 2016-04-21T06:27:37.520Z | 2,016 | 4 | 6 | 3 | 315 | 1 | 1,176 | 86 | 1 | 2 | true | false | false | false | false | true | negative |
36,761,346 | ActivityNotFoundException exception but source is not error on android | <p>I want apk url download</p>
<p>I try this code </p>
<pre><code> Button btn = (Button) findViewById(R.id.btn);
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.parse("http... | I want apk url download I try this code [CODE] but this code ActivityNotFoundException . android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= https://~~~~~.apk typ=application/vnd.android.package-archive } at android.app.Instrumentation.checkStartActivityRe... | android | -4 | 2016-04-21T06:29:31.410Z | 2,016 | 4 | 6 | 3 | 367 | 1 | 1,414 | 70 | 1 | 1 | true | false | false | false | false | true | negative |
36,761,354 | Elevation on SlidingTabLayout in pre lollipop device | <p>"Elevation" make Sliding Tab Layout worked fine on Lollipop device but tabs will disappeared on pre-lollipop device. I wondering is there any way to add elevation on SlidingTabLayout for pre-Lollipop devices.</p>
<p>Here is my .XML file :</p>
<pre><code><RelativeLayout
android:id="@+id/tab_frame_layout"
... | "Elevation" make Sliding Tab Layout worked fine on Lollipop device but tabs will disappeared on pre-lollipop device. I wondering is there any way to add elevation on SlidingTabLayout for pre-Lollipop devices. Here is my .XML file : [CODE] | pagerslidingtabstrip|android-sliding|android-elevation | 2 | 2016-04-21T06:29:57.920Z | 2,016 | 4 | 6 | 3 | 347 | 1 | 238 | 52 | 3 | 1 | true | false | false | false | false | false | low |
36,761,468 | Why a ListView in a Fragment cannot work? | <blockquote>
<p>Why there's an error in <a href="http://i.stack.imgur.com/JDRF4.png" rel="nofollow">logcat : open this image</a></p>
</blockquote>
<p>This java i copied from extend ListActivity</p>
<p>I change ListActivity to Fragment and the wrong code, i add getActivity() but ListView lv = getListView(); is wrong... | Why there's an error in logcat : open this image This java i copied from extend ListActivity I change ListActivity to Fragment and the wrong code, i add getActivity() but ListView lv = getListView(); is wrong can you help me? [CODE] | android|listview|fragment | 3 | 2016-04-21T06:36:35.923Z | 2,016 | 4 | 6 | 3 | 56 | 0 | 232 | 41 | 3 | 1 | true | true | false | false | false | false | low |
36,761,476 | Error in Arabic reader project | <p>I am build a NDK application from the Arabic reader open source project.And i successfuly buld project and imprted into eclipse work Space.But when I run the application the following log Shown in my logcat </p>
<p>i am sure that iam build all the nesseserry .so file</p>
<p>1.libNativeFormats-v4.so
2.libLineBreak-... | I am build a NDK application from the Arabic reader open source project.And i successfuly buld project and imprted into eclipse work Space.But when I run the application the following log Shown in my logcat i am sure that iam build all the nesseserry .so file 1.libNativeFormats-v4.so 2.libLineBreak-v2.so 3.libDeflating... | java|android|eclipse|android-ndk | 1 | 2016-04-21T06:36:58.550Z | 2,016 | 4 | 6 | 3 | 66 | 0 | 406 | 30 | 4 | 1 | true | true | false | false | false | false | low |
36,761,478 | Cannot set OnItemClickListener for spinner in android | <p>In a customized <code>RecyclerView.Adapter<CustomAdapter.ViewHolder></code>, I set an adapter for a spinner and found that the value of my spinner isn't change after selection, so I tried to add an <code>OnItemClickListener</code> on my spinner:</p>
<pre><code>override fun onBindViewHolder(viewHolder: ViewHol... | In a customized RecyclerView.Adapter<CustomAdapter.ViewHolder> , I set an adapter for a spinner and found that the value of my spinner isn't change after selection, so I tried to add an OnItemClickListener on my spinner: [CODE] I didn't get any warning or error while compiling, however during run time, I got a RuntimeE... | android|android-spinner|kotlin | 5 | 2016-04-21T06:37:06.393Z | 2,016 | 4 | 6 | 3 | 15,597 | 4 | 736 | 53 | 3 | 2 | true | false | true | true | false | false | low |
36,761,650 | Not Working notifyDataSetChanged() in BaseAdapter class | <p>This is my code base adapter to set list item. My code in notifyDataSetChanged() not work. Delete Btn click to delete item of listview how can I change to work this code please help me </p>
<pre><code>public class CustomListviewMyCartitem extends BaseAdapter {
ArrayList<Mycartitem> myList = new Arra... | This is my code base adapter to set list item. My code in notifyDataSetChanged() not work. Delete Btn click to delete item of listview how can I change to work this code please help me [CODE] | android | 0 | 2016-04-21T06:45:25.653Z | 2,016 | 4 | 6 | 3 | 614 | 2 | 191 | 55 | 1 | 1 | true | false | false | false | false | false | zero |
36,761,661 | Google Maps API expecting Different Key | <p>I am using the Google Maps API for Android and I've created my credentials multiple times with the correct project name and SHA1 value, but I keep getting an error where the application is for some reason expecting a different API Key than the one I provided, but I can't find this API key anywhere and it doesn't acc... | I am using the Google Maps API for Android and I've created my credentials multiple times with the correct project name and SHA1 value, but I keep getting an error where the application is for some reason expecting a different API Key than the one I provided, but I can't find this API key anywhere and it doesn't accept... | android|google-maps|google-maps-android-api-2 | 0 | 2016-04-21T06:46:00.303Z | 2,016 | 4 | 6 | 3 | 313 | 1 | 501 | 39 | 3 | 4 | true | false | false | false | false | false | zero |
36,761,664 | android instrumentation test for listview | <p>I wrote a code for performing test for the listview (i.e., we can check the position of the item in listview, display toast messame when we click on item in list). i want to move to another activity when we click on list item in android.</p>
<pre><code>public class MainActivityTest {
@Rule
public ActivityT... | I wrote a code for performing test for the listview (i.e., we can check the position of the item in listview, display toast messame when we click on item in list). i want to move to another activity when we click on list item in android. [CODE] here i write a test for counting the nomber of items in list [CODE] here i ... | android|listview|integration-testing|junit4 | 0 | 2016-04-21T06:46:07.357Z | 2,016 | 4 | 6 | 3 | 1,252 | 1 | 451 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
36,761,710 | How can I save my ImageView when I turn my tablet | <p>I am a French noob in Android and I have a problem which I do not find a solution.
In fact, I can't save my LinearLayouts'states during my tablet's rotation. I have tried a lot of things and I made this code:</p>
<pre><code> public class Repas extends Activity {
private LinearLayout area1, area2;
@Overrid... | I am a French noob in Android and I have a problem which I do not find a solution. In fact, I can't save my LinearLayouts'states during my tablet's rotation. I have tried a lot of things and I made this code: [CODE] My current problem, assuming my logic is right, is I cannot convert my String into ImageView during my t... | android|layout|rotation|imageview|bundle | 1 | 2016-04-21T06:48:56.343Z | 2,016 | 4 | 6 | 3 | 50 | 1 | 606 | 49 | 5 | 1 | true | false | false | false | false | false | low |
36,761,736 | How to get valid base64 string from html image tag android? | <p>I am working on to extract base64 data from image.so how can I get base64 data from image.my base 64 string inside image tage as per below code.</p>
<pre><code>"<div> <img alt="" id="cke_98" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGMAAAAfCAIAAAB8ueR4AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJc... | I am working on to extract base64 data from image.so how can I get base64 data from image.my base 64 string inside image tage as per below code. [CODE] | android|image|base64 | 0 | 2016-04-21T06:50:15.410Z | 2,016 | 4 | 6 | 3 | 266 | 0 | 151 | 59 | 3 | 1 | true | true | false | false | false | false | zero |
36,761,825 | How to retrive Single Column data from sqlite database in android and Display it in TextView | <p>I have gone through lot of tutorials and SO answers but I didn't Understand exactly how to retrieve single column from sqlite database. I am using pojo class also. I will attach my sample code please help me out of here...
This is my POJO class:</p>
<pre><code>String health_center;
public void setHealth_center(St... | I have gone through lot of tutorials and SO answers but I didn't Understand exactly how to retrieve single column from sqlite database. I am using pojo class also. I will attach my sample code please help me out of here... This is my POJO class: [CODE] This is DBHelper class: [CODE] This is My Activity Class: [CODE] Th... | java|android|sqlite | 0 | 2016-04-21T06:53:50.153Z | 2,016 | 4 | 6 | 3 | 2,056 | 2 | 461 | 92 | 3 | 4 | true | false | false | false | false | false | zero |
36,761,918 | Add Data into Listview Runtime using Custom Adapter | <p><a href="https://i.stack.imgur.com/FsNFY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FsNFY.png" alt="enter image description here"></a></p>
<p><strong>PROBLEM :</strong> when i am click on add button then all data are clear and only one item is shows.... i want to Show Old items as well as ne... | PROBLEM : when i am click on add button then all data are clear and only one item is shows.... i want to Show Old items as well as new added item... this is my code..... MODEL class [CODE] MAIN ACTIVITY [CODE] ADAPTER class [CODE] | java|android|listview|baseadapter | -1 | 2016-04-21T06:57:24.823Z | 2,016 | 4 | 6 | 3 | 532 | 4 | 230 | 51 | 4 | 3 | true | false | false | false | false | true | negative |
36,762,057 | ListView doesn't erase old text, only overlay the new | <p>I'm following the Sunshine tutorial on udacity, here comes my problem:</p>
<p>I have a ListView with some items, taken from an ArrayAdapter: </p>
<pre><code>List<String> weekForecast = new ArrayList<String>(Arrays.asList(data));
mForecastAdapter =
new ArrayAdapter<String>(
... | I'm following the Sunshine tutorial on udacity, here comes my problem: I have a ListView with some items, taken from an ArrayAdapter: [CODE] And in another function, as a background task, I update my Adapter: [CODE] But for some reason, I get these results: Anyone know a solution? UPDATE: weekForecast was a method vari... | android|listview|android-arrayadapter | 0 | 2016-04-21T07:03:32.677Z | 2,016 | 4 | 7 | 3 | 80 | 3 | 612 | 53 | 3 | 3 | true | false | false | false | false | false | zero |
36,762,220 | Application crashes after Replacing fragment with custom Animation | <p>Within my application, I am replacing fragment with other fragment with animation. Other fragment opens perfectly but application crashed</p>
<pre><code>java.lang.NullPointerException at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2796) ... | Within my application, I am replacing fragment with other fragment with animation. Other fragment opens perfectly but application crashed [CODE] Here is my calling data : [CODE] My animation class [CODE] Please let me know in case any one found the same issue and have resolved it. | android|animation|view|fragment|render | 0 | 2016-04-21T07:10:35.260Z | 2,016 | 4 | 7 | 3 | 352 | 1 | 281 | 66 | 5 | 3 | true | false | false | false | false | false | zero |
36,762,314 | X.509 Digital signature implementation in Android | <p>I am trying to generate X.509 digital signature in my android application.</p>
<p>But I am getting this error </p>
<pre><code>Error:trouble processing "javax/xml/crypto/AlgorithmMethod.class":
Error:Ill-advised or mistaken usage of a core class (java.* or javax.*)
</code></pre>
<p>It is because I am using jav... | I am trying to generate X.509 digital signature in my android application. But I am getting this error [CODE] It is because I am using javax file in my IDE with android SDK. Is it Possible to resolve this error or is there any alternative in android to create digital signature in some other way? Here What I have tried ... | java|android|digital-signature|xml-signature|pkcs#12 | 2 | 2016-04-21T07:14:34.497Z | 2,016 | 4 | 7 | 3 | 968 | 0 | 539 | 49 | 5 | 3 | true | true | false | false | false | false | low |
36,762,361 | Android: Custom Keyboard width increases automatically | <p>I am having a weird issue on emulator with ICS (but not on emulator with API level 21). I created a custom Keyboard:
<a href="https://i.stack.imgur.com/V90Jp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V90Jp.png" alt="Normal"></a></p>
<p>Now whenever I tap a key, the width of the keyboard aut... | I am having a weird issue on emulator with ICS (but not on emulator with API level 21). I created a custom Keyboard: Now whenever I tap a key, the width of the keyboard automatically increases a little bit. After hitting the keys several times, this is how it looks: On the logcat I see "GC_FOR_ALLOC freed" every time i... | android|keyboard|width | 0 | 2016-04-21T07:16:10.700Z | 2,016 | 4 | 7 | 3 | 141 | 0 | 426 | 54 | 3 | 2 | true | true | false | false | false | false | zero |
36,762,423 | ArrayIndexOutOfBoundsException error reported on Sony devices in setContentView() | <p>I have got a <code>ArrayIndexOutOfBoundsException</code> error reported only on Sony devices e.g. - ( D6603 , SGP521 ) with Android 5.1.1. </p>
<p>The line of my code in the stack trace is a call to Activity.setContentView(). Thanks.</p>
<p>The stack trace :-</p>
<pre><code>Fatal Exception: java.lang.RuntimeExcep... | I have got a ArrayIndexOutOfBoundsException error reported only on Sony devices e.g. - ( D6603 , SGP521 ) with Android 5.1.1. The line of my code in the stack trace is a call to Activity.setContentView(). Thanks. The stack trace :- [CODE] ParentActivity - [CODE] R.layout.full_game_layout - [CODE] | android|android-layout | 3 | 2016-04-21T07:18:52.570Z | 2,016 | 4 | 7 | 3 | 436 | 3 | 297 | 81 | 2 | 3 | true | false | false | false | false | false | low |
36,762,474 | Android :delete item from grid view after drag and drop | <p>i try to drag and drop item between 2 grid view, when i drop it, the item correctly added to the destination list but it's not deleted from the source list.
this is my function</p>
<pre><code> @Override
public boolean onDrag(View v, DragEvent event) {
switch (event.getAction()) {
... | i try to drag and drop item between 2 grid view, when i drop it, the item correctly added to the destination list but it's not deleted from the source list. this is my function [CODE] can somebody help me | android|object|gridview|drag-and-drop | 0 | 2016-04-21T07:21:06.167Z | 2,016 | 4 | 7 | 3 | 568 | 1 | 204 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
36,762,541 | Error android.view.InflateException: Binary XML: Error inflating class Button caused by xml background | <p>Couple days i'm confused with error Caused by: android.view.InflateException: Binary XML file line #46: Error inflating class Button, i tried to find out what happen but no luck, in similar problem i found in stackoverflow but i think my case is little bit difference,,</p>
<pre><code>FATAL EXCEPTION: main java.lang... | Couple days i'm confused with error Caused by: android.view.InflateException: Binary XML file line #46: Error inflating class Button, i tried to find out what happen but no luck, in similar problem i found in stackoverflow but i think my case is little bit difference,, [CODE] then i realize, my file btn_primary_dark.xm... | java|android|xml|android-layout | 0 | 2016-04-21T07:23:36.750Z | 2,016 | 4 | 7 | 3 | 3,232 | 1 | 767 | 102 | 4 | 5 | true | false | true | false | false | false | zero |
36,762,626 | Estimate dimensions of objects in video and display them as overlays | <p>I am trying to develop an application to measure the dimensions of an object in video and overlay them in the same video (e.g.h eight and width). Similar to what is done in this <a href="https://www.youtube.com/watch?v=Z3AxsV8rjos" rel="nofollow noreferrer">YouTube video</a>:</p>
<p><a href="https://i.stack.imgur.... | I am trying to develop an application to measure the dimensions of an object in video and overlay them in the same video (e.g.h eight and width). Similar to what is done in this YouTube video : The code I am using: [CODE] | android|opencv|image-processing|android-studio-2.0 | 0 | 2016-04-21T07:27:38.573Z | 2,016 | 4 | 7 | 3 | 491 | 0 | 221 | 68 | 4 | 1 | true | true | false | false | false | false | zero |
36,762,705 | Caching JSON (Xamarin C#) | <p>I writing Android app and want professional advice.</p>
<p>I have category with products.</p>
<p>I have JSON with this products.</p>
<pre><code> Array
(
[0] => Array
(
[post_title] => Яблочный десерт
[post_excerpt] => Мус топленный шоколад, яблоко в карамели с орехо... | I writing Android app and want professional advice. I have category with products. I have JSON with this products. [CODE] I need to cache it and then show some of fields in UI. Now I Download it and show in UI,like this. Downloading: [CODE] And Displaying : [CODE] How can I make a cache for this JSON and don't download... | c#|android|json|caching|xamarin.android | 0 | 2016-04-21T07:31:07.090Z | 2,016 | 4 | 7 | 3 | 294 | 1 | 405 | 25 | 5 | 3 | true | false | false | false | false | false | zero |
36,762,754 | Getting savedInstanceState null in BAseActivity class | <p>I am trying to manage all activities from baseActivity class even setContentView method , but it's returning me savedInstanceState null </p>
<p>Here is my code for BaseActivity :-</p>
<pre><code> package com.example.testBaseclass;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutIn... | I am trying to manage all activities from baseActivity class even setContentView method , but it's returning me savedInstanceState null Here is my code for BaseActivity :- [CODE] Here is my MainActivity code :- [CODE] Any help will be appreciated, Thanks. | android|android-activity | -1 | 2016-04-21T07:33:03.190Z | 2,016 | 4 | 7 | 3 | 252 | 1 | 255 | 53 | 2 | 2 | true | false | false | false | false | true | negative |
36,762,792 | visual studio - cordova - running my app on an Android device | <p>I have followed these instructions:</p>
<p><a href="https://taco.visualstudio.com/en-us/docs/run-app-apache/#android-devices" rel="nofollow noreferrer">https://taco.visualstudio.com/en-us/docs/run-app-apache/#android-devices</a></p>
<p><a href="https://i.stack.imgur.com/Z1Xlf.png" rel="nofollow noreferrer"><img sr... | I have followed these instructions: https://taco.visualstudio.com/en-us/docs/run-app-apache/#android-devices I have enabled USB debugging mode in my device. And everything seems fine: Although, when i pushed the "device" button App was built fine(apk was created) but there was an error: [CODE] What have i done wrong? | android|visual-studio|visual-studio-2015|visual-studio-cordova | 1 | 2016-04-21T07:34:11.277Z | 2,016 | 4 | 7 | 3 | 1,255 | 1 | 318 | 61 | 4 | 1 | true | false | false | false | false | false | low |
36,762,820 | Gradle sync failed: Argument for @NotNull parameter 'aFileName' of com/intellij/openapi/util/io/FileUtil.toSystemIndependentName must not be null | <p>I imported my project to <code>Android Studio 1.3.2</code> and now it is showing error</p>
<pre><code>Gradle sync started
Gradle sync failed: Argument for @NotNull parameter 'aFileName' of com/intellij/openapi/util/io/FileUtil.toSystemIndependentName must not be null
Gradle sync completed
IllegalArgumentException: ... | I imported my project to Android Studio 1.3.2 and now it is showing error [CODE] Gradle [CODE] | android|android-studio|android-gradle-plugin | 10 | 2016-04-21T07:35:26.957Z | 2,016 | 4 | 7 | 3 | 11,981 | 1 | 94 | 145 | 3 | 2 | true | false | true | true | true | false | medium |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.