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,708,107 | get video duration from URL in android app | <p>I'm working on an app where the user can see all the video's information and title that are stored on a SERVER. I'm almost done with it except that no matter how I code it, I cannot get the video duration from a given URL. Lets take this demo video from somewhere on the internet: <a href="https://12-lvl3-pdl.vimeo... | I'm working on an app where the user can see all the video's information and title that are stored on a SERVER. I'm almost done with it except that no matter how I code it, I cannot get the video duration from a given URL. Lets take this demo video from somewhere on the internet: CLICK HERE FOR VIDEO PATH I want the ap... | android|android-video-player | 8 | 2016-04-19T03:37:52.103Z | 2,016 | 4 | 3 | 1 | 17,035 | 4 | 697 | 42 | 2 | 1 | true | false | true | true | false | false | medium |
36,708,276 | Android 6 capture intent not writing file immediatly | <p>I'm developing an app which requires the user to take a Picture. I create a file for saving the image. So I call the Intent like this:</p>
<pre><code>if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
// Create the File where the photo should go
File photoFile = null;
try {
ph... | I'm developing an app which requires the user to take a Picture. I create a file for saving the image. So I call the Intent like this: [CODE] And then, I want to read the file. With something like this [CODE] This works nice in Android 4 and 5. However, in Android 6 the Bitmap is null. I think this happens because when... | android|bitmap|android-camera|android-6.0-marshmallow|android-camera-intent | 0 | 2016-04-19T03:57:28.863Z | 2,016 | 4 | 3 | 1 | 115 | 0 | 622 | 52 | 5 | 2 | true | true | false | false | false | false | zero |
36,708,400 | Something went wrong with the Activity lifecycle, not normal behavior by pressing home or task switch button | <p>Something is not OK in my code. Normally the activity lifecycle is
- at starting app: onCreate --> onStart --> onResume
- at closing app: onPause --> onStop --> onDestroy
- pressing the home button or the task switch button: onPause --> onStop
- coming back to the already opened app from another app: onStart --> onR... | Something is not OK in my code. Normally the activity lifecycle is - at starting app: onCreate --> onStart --> onResume - at closing app: onPause --> onStop --> onDestroy - pressing the home button or the task switch button: onPause --> onStop - coming back to the already opened app from another app: onStart --> onResu... | android|android-lifecycle|oncreate|ondestroy | 0 | 2016-04-19T04:11:26.973Z | 2,016 | 4 | 4 | 1 | 272 | 3 | 789 | 108 | 4 | 2 | true | false | false | false | false | false | zero |
36,708,414 | Failed to load the LayoutLib: com/android/layoutlib/bridge/Bridge : Unsupported major.minor version 52.0 | <pre><code>org.jetbrains.android.uipreview.RenderingException: Failed to load the LayoutLib: com/android/layoutlib/bridge/Bridge : Unsupported major.minor version 52.0
at org.jetbrains.android.uipreview.LayoutLibraryLoader.load(LayoutLibraryLoader.java:90)
at org.jetbrains.android.sdk.AndroidTargetData.getLayoutLibrar... | [CODE] | android | 0 | 2016-04-19T04:12:36.107Z | 2,016 | 4 | 4 | 1 | 4,358 | 1 | 6 | 104 | 1 | 1 | true | false | true | false | false | false | zero |
36,708,592 | Fetching Record from Local Database and Showing in Listview IllegalStateException: | <p>Getting ids from one table and matching with another table and getting record from that table.Some time i get records in list but when i want to insert one more record in list illegalexception that is not notified to listview etc.</p>
<pre><code>private void getAllRecords() {
String cmpId = "";
//fetching ids... | Getting ids from one table and matching with another table and getting record from that table.Some time i get records in list but when i want to insert one more record in list illegalexception that is not notified to listview etc. [CODE] AsyncTask class for calling to getAllRecords() function : [CODE] Customer adapter:... | java|android|database|android-arrayadapter | 1 | 2016-04-19T04:31:16.613Z | 2,016 | 4 | 4 | 1 | 44 | 1 | 369 | 82 | 4 | 5 | true | false | false | false | false | false | low |
36,708,617 | How to call notifydatasetchanged in PagerAdapter? | <p>I have one listview which each item contains one ViewPager. And every time I scroll my ViewPage I got error said that PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged!</p>
<p>I tried to set notifyDataSetChanged in my list adapter and pager adapter too, but it doesn't wor... | I have one listview which each item contains one ViewPager. And every time I scroll my ViewPage I got error said that PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! I tried to set notifyDataSetChanged in my list adapter and pager adapter too, but it doesn't work. Here is ... | android|android-viewpager|notifydatasetchanged|android-pageradapter | 1 | 2016-04-19T04:33:36.883Z | 2,016 | 4 | 4 | 1 | 1,006 | 0 | 459 | 49 | 4 | 3 | true | true | false | false | false | false | low |
36,708,651 | Checking the location every 10 minutes in the background | <p>My requirement is to check the location of the device every 10 minutes using a background service. So the basic gist of what should happen every 10 minutes is this - </p>
<ul>
<li>Start the service.</li>
<li>Wait a minute (maximum) for the listener to get a location, once the location is taken, remove the listener ... | My requirement is to check the location of the device every 10 minutes using a background service. So the basic gist of what should happen every 10 minutes is this - Start the service. Wait a minute (maximum) for the listener to get a location, once the location is taken, remove the listener and then stop the service. ... | android|gps|location | 3 | 2016-04-19T04:36:18.477Z | 2,016 | 4 | 4 | 1 | 6,690 | 3 | 1,218 | 56 | 3 | 0 | false | false | true | false | false | false | low |
36,708,658 | Encryption failed in Marshmallow | <p>I am trying to encrypt and decrypt a data from SD Card I tried oon code and working proper in lower version devices but I am getting one exception in marshmallow.</p>
<pre><code> 04-19 09:56:50.428: W/System.err(15137): javax.crypto.BadPaddingException: pad block corrupted
04-19 09:56:50.432: W/System.err(15137)... | I am trying to encrypt and decrypt a data from SD Card I tried oon code and working proper in lower version devices but I am getting one exception in marshmallow. [CODE] The code I am following is Encryption [CODE] Decryption [CODE] Crypt.java [CODE] | android | 0 | 2016-04-19T04:37:00.883Z | 2,016 | 4 | 4 | 1 | 597 | 1 | 250 | 32 | 1 | 4 | true | false | false | false | false | false | zero |
36,708,704 | Methods of Fragment class in android not getting called | <p>Hi I am a beginner for android and in my app I have to show SlidingPaneLayout at right side. </p>
<p>So far everything is OK.</p>
<p>But when I tap on SlidingPaneLayout of any row I want to reload Listview for this I wrote below code. </p>
<p>But here Listview is reloading by default, but when I tap on SlidingPan... | Hi I am a beginner for android and in my app I have to show SlidingPaneLayout at right side. So far everything is OK. But when I tap on SlidingPaneLayout of any row I want to reload Listview for this I wrote below code. But here Listview is reloading by default, but when I tap on SlidingPaneLayout it's not reloading. B... | android|android-fragments | 0 | 2016-04-19T04:40:37.940Z | 2,016 | 4 | 4 | 1 | 73 | 1 | 454 | 55 | 2 | 3 | true | false | false | false | false | false | zero |
36,708,712 | Android Buttom sheet is not working | <p>Android Bottom sheet is not working.
Below is my code and I want to create bottom sheet demo but it is not working and bottom sheet is not showing.</p>
<pre><code> public class MainActivity extends AppCompatActivity implements View.OnClickListener{
private BottomSheetBehavior mBottomSheetBehavior;
priva... | Android Bottom sheet is not working. Below is my code and I want to create bottom sheet demo but it is not working and bottom sheet is not showing. [CODE] Here is my xml file. [CODE] Actually I want to implement bottom sheet using Android Support Library 23.2 using abouve code without out using any other Library but it... | android|bottom-sheet | 2 | 2016-04-19T04:41:12.573Z | 2,016 | 4 | 4 | 1 | 1,527 | 1 | 356 | 35 | 2 | 2 | true | false | false | false | false | false | low |
36,708,805 | How AccountManager knows what Google account to use? | <p>I am trying to implement <a href="https://developers.google.com/drive/v3/web/handle-errors#errors_and_suggested_actions" rel="nofollow">Google rest api</a> for Drive V3 in Android.</p>
<p>But I am getting <strong>authError</strong></p>
<pre><code>{
"error":{
"errors":[
{
"domain":"glo... | I am trying to implement Google rest api for Drive V3 in Android. But I am getting authError [CODE] I use AccountManager to get token from user, and I think it access the wrong console account. How does it know what account to access? This is my AccountManager code, I successfully get user token. Also I invalidate it b... | android|authentication|oauth-2.0|google-drive-api|google-authentication | 1 | 2016-04-19T04:49:47.897Z | 2,016 | 4 | 4 | 1 | 919 | 1 | 372 | 52 | 5 | 2 | true | false | false | false | false | false | low |
36,708,883 | Android: why does Checkbox not show empty checkbox for unchecked state? | <p>I have checkbox code in a CardView layout file. The CardView has a white background. Normally, I think the unchecked Checkbox is a black square. My layout shows no blank checkbox. All I see is just the white CardView background (top CardView in the screenshot). When I click on the right-most area of the CardVie... | I have checkbox code in a CardView layout file. The CardView has a white background. Normally, I think the unchecked Checkbox is a black square. My layout shows no blank checkbox. All I see is just the white CardView background (top CardView in the screenshot). When I click on the right-most area of the CardView where ... | android|checkbox|view | 4 | 2016-04-19T04:55:04.273Z | 2,016 | 4 | 4 | 1 | 6,094 | 3 | 459 | 71 | 3 | 1 | true | false | true | false | false | false | low |
36,708,970 | Dynamic replacing of a fragment is not working | <p>I know there are a lot of posts about this but I just cant find a solution.
I'm trying to replace fragments on an activity dynamically, i have followed lots of tutorials and posts here and I got stuck in one exception: </p>
<p>" must implement OnFragmentInteractionListener"</p>
<p>I have looked for it but I'm hone... | I know there are a lot of posts about this but I just cant find a solution. I'm trying to replace fragments on an activity dynamically, i have followed lots of tutorials and posts here and I got stuck in one exception: " must implement OnFragmentInteractionListener" I have looked for it but I'm honestly getting really ... | android|android-fragments | 0 | 2016-04-19T05:02:01.260Z | 2,016 | 4 | 5 | 1 | 695 | 2 | 693 | 46 | 2 | 4 | true | false | false | false | false | false | zero |
36,709,026 | Custom adapter refresh in gridview android | <p>i have a grid view with 6 cells loading in adapter. when i click each cell,i am going to add image either from taking photos or choosing images from gallery.after selecting images, the grid view is showing empty only. though i set image in one cell,when go for another cell,the previous selection is gone. how to make... | i have a grid view with 6 cells loading in adapter. when i click each cell,i am going to add image either from taking photos or choosing images from gallery.after selecting images, the grid view is showing empty only. though i set image in one cell,when go for another cell,the previous selection is gone. how to make it... | android|gridview|getview | 0 | 2016-04-19T05:05:55.403Z | 2,016 | 4 | 5 | 1 | 296 | 2 | 391 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,709,189 | Gradle issue, Converting Application from eclipse to studio | <p>Error : </p>
<p>Error:Execution failed for task ':app:dexDebug'.</p>
<blockquote>
<p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 2</p>
</blockquote>
<p>my gradle :</p>... | Error : Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'' finished with non-zero exit value 2 my gradle : [CODE] -- Whats wrong in above gradle. -- I have also tried ... | android-studio|build.gradle | 0 | 2016-04-19T05:18:56.290Z | 2,016 | 4 | 5 | 1 | 17 | 0 | 340 | 59 | 2 | 2 | true | true | false | false | false | false | zero |
36,709,244 | Android MVP architecture standard for loading UI with Model class having android resource | <p>I am following MVP architecture in my application. My HomeActivity contains a Sliding Panel with list icon having selector that is upon selecting the Sliding Panel item the icon state is changed and i am not using any list selector. </p>
<blockquote>
<p>I am keeping a model class <strong>NavItemData</strong> for ... | I am following MVP architecture in my application. My HomeActivity contains a Sliding Panel with list icon having selector that is upon selecting the Sliding Panel item the icon state is changed and i am not using any list selector. I am keeping a model class NavItemData for populating the navigation drawer and using a... | android|android-layout|navigation-drawer|mvp|android-selector | 10 | 2016-04-19T05:22:39.480Z | 2,016 | 4 | 5 | 1 | 1,217 | 1 | 1,046 | 89 | 5 | 2 | true | false | false | false | true | false | medium |
36,709,260 | Getting " Gradle sync failed " on Xabber import | <p>I was importing the <a href="https://github.com/redsolution/xabber-android" rel="nofollow noreferrer">xabber</a> demo from github into my android studio . and is shows me error -</p>
<pre><code>Gradle sync failed: Configuration with name 'default' not found.
</code></pre>
<p>I tried to change the outer gradle and ... | I was importing the xabber demo from github into my android studio . and is shows me error - [CODE] I tried to change the outer gradle and this was of no use i am still getting the same error on syncing my gradle. My outer gradle is - [CODE] and settings.gradle is [CODE] I have also tried using tips from this SO Questi... | android|android-studio|xmpp|android-gradle-plugin|ejabberd | 2 | 2016-04-19T05:24:13.127Z | 2,016 | 4 | 5 | 1 | 384 | 1 | 414 | 47 | 5 | 3 | true | false | false | false | false | false | low |
36,709,421 | getLastLocation() always null after reinstall | <p>I seem to have a problem that I just can't figure out.
I am creating an application that requires Location Services with Android. The application needs to constantly poll for location.
This code had been working for months, and then when I uninstalled it from my phone and reinstalled it, the location is suddenly re... | I seem to have a problem that I just can't figure out. I am creating an application that requires Location Services with Android. The application needs to constantly poll for location. This code had been working for months, and then when I uninstalled it from my phone and reinstalled it, the location is suddenly return... | android|google-maps|geolocation|location|google-api-client | 0 | 2016-04-19T05:34:46.290Z | 2,016 | 4 | 5 | 1 | 205 | 1 | 812 | 45 | 5 | 1 | true | false | false | false | false | false | zero |
36,709,482 | Why does proguard require you to add both -keep and -dontwarn? | <p>I completely understand that <code>-keep</code> will preserve class and that <code>-dontwarn</code> will just ensure that you don't get a warning. However, I often find myself when including another SDK in my project with this situation - their instructions say add a line:</p>
<pre><code>-keep class com.fasterxml.j... | I completely understand that -keep will preserve class and that -dontwarn will just ensure that you don't get a warning. However, I often find myself when including another SDK in my project with this situation - their instructions say add a line: [CODE] When I do that and try to compile with proguard, sure enough my b... | java|android|proguard | 1 | 2016-04-19T05:39:33.177Z | 2,016 | 4 | 5 | 1 | 72 | 0 | 864 | 62 | 3 | 2 | true | true | false | false | false | false | low |
36,709,514 | Android Studio Build Error : This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run | <p>I upgraded Android Studio version from 1.5 to 2.0 today and something has gone wrong.<br>
First I got Gradle version error, so I updated Gradle version from 2.10 to 2.12.</p>
<pre><code># previous
# distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
# current
distributionUrl=https\://ser... | I upgraded Android Studio version from 1.5 to 2.0 today and something has gone wrong. First I got Gradle version error, so I updated Gradle version from 2.10 to 2.12. [CODE] Gradle version error has disappeared. But now I have this error when I try to run my project: [CODE] This is my Project Gradle.build: [CODE] And t... | android-studio|gradle|version | 17 | 2016-04-19T05:42:11.467Z | 2,016 | 4 | 5 | 1 | 35,952 | 8 | 487 | 130 | 3 | 4 | true | false | true | true | true | false | medium |
36,709,693 | Android native libc signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr | <p>I've been experiencing crash after adding following code:</p>
<pre><code>class AudioPolicyService :
public BinderService<AudioPolicyService>,
public BnAudioPolicyService,
public IBinder::DeathRecipient
{
friend class BinderService<AudioPolicyService>;
//[....]
class TestingClz : pub... | I've been experiencing crash after adding following code: [CODE] I got following crash: 02-03 22:21:17.971 367 367 F DEBUG : Revision: '0' 02-03 22:21:17.971 367 367 F DEBUG : ABI: 'arm' 02-03 22:21:17.971 367 367 F DEBUG : pid: 981, tid: 981, name: mediaserver >>> /system/bin/mediaserver <<< 02-03 22:21:17.972 367 367... | android|c++|debugging | 2 | 2016-04-19T05:54:53.600Z | 2,016 | 4 | 5 | 1 | 3,483 | 1 | 2,197 | 73 | 3 | 1 | true | false | true | false | false | false | low |
36,709,746 | How to handle a IOException by starting a new Activity in android | <p>I am trying to start my main page activity when an exception is thrown. Right now when the exception happens, the app shuts down and starts from the main page. I want for it to seamlessly go to the main page app, not give the user a waring that the app is shutting down. The error it gives me is this:</p>
<pre><code... | I am trying to start my main page activity when an exception is thrown. Right now when the exception happens, the app shuts down and starts from the main page. I want for it to seamlessly go to the main page app, not give the user a waring that the app is shutting down. The error it gives me is this: [CODE] This is fin... | java|android|android-activity|ioexception | 1 | 2016-04-19T05:59:00.533Z | 2,016 | 4 | 5 | 1 | 144 | 3 | 483 | 65 | 4 | 2 | true | false | false | false | false | false | low |
36,709,875 | org.testng.TestNGException: org.xml.sax.SAXParseException | <p>I get following error while executing TestNG </p>
<pre><code>org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 44; Attribute "parallel" with value "none" must have a value from the list "false methods tests classes instances ".
at org.testng.TestNG.initializeSuitesAndJarFil... | I get following error while executing TestNG [CODE] After doing some research came to know i have to include testing.xml file in android studio. I want to know in which path this should be added and what is the configuration that needs to be done | android|unit-testing|appium | 1 | 2016-04-19T06:07:45.270Z | 2,016 | 4 | 6 | 1 | 735 | 0 | 246 | 57 | 3 | 1 | true | true | false | false | false | false | low |
36,709,886 | RecyclerView: toggling visibility of a children of all visible rows | <p>I have an Horizontal RecyclerView.
What I would like to do, is, at runtime, to hide 2 TextViews of all items from adapter.</p>
<p>So, What I would like to do, is to cycle through all visible items, get their layout, and then change visibility of some TextViews inside each children.</p>
<p>You can see it as a "simp... | I have an Horizontal RecyclerView. What I would like to do, is, at runtime, to hide 2 TextViews of all items from adapter. So, What I would like to do, is to cycle through all visible items, get their layout, and then change visibility of some TextViews inside each children. You can see it as a "simple layout" Vs "Comp... | android|android-recyclerview|visibility | 0 | 2016-04-19T06:08:36.077Z | 2,016 | 4 | 6 | 1 | 1,194 | 1 | 606 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
36,710,102 | Android Intent ACTION_GET_CONTENT does not return extension of file | <p>I am trying get the path of the file selected by user, using calling the intent ACTION_GET_CONTENT for result.</p>
<p>The problem is when Selecting an audio file from the file manager, the intent does not return the extension of the file (which is there in the file name i checked it). In the case of video or image ... | I am trying get the path of the file selected by user, using calling the intent ACTION_GET_CONTENT for result. The problem is when Selecting an audio file from the file manager, the intent does not return the extension of the file (which is there in the file name i checked it). In the case of video or image it is worki... | java|android|android-intent | 2 | 2016-04-19T06:21:38.300Z | 2,016 | 4 | 6 | 1 | 2,605 | 2 | 544 | 67 | 3 | 3 | true | false | true | false | false | false | low |
36,710,150 | Watermark coming on whole image Android | <p>I want to place the watermark on the bottom right of the picture. But, in some mobiles it is coming perfectly and in some mobile phones, the watermark is coming on the whole image.</p>
<p>Here is my code:</p>
<pre><code>rotatedBitmap = Bitmap.createBitmap(loadedImage, 0, 0,
loadedImage.... | I want to place the watermark on the bottom right of the picture. But, in some mobiles it is coming perfectly and in some mobile phones, the watermark is coming on the whole image. Here is my code: [CODE] EDIT: Here are the screenshots of the result. In second picture, the watermark is coming perfectly and in first pic... | android|bitmap|android-canvas | 0 | 2016-04-19T06:24:17.287Z | 2,016 | 4 | 6 | 1 | 519 | 2 | 360 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
36,710,197 | Android App Deeplinking using assetlinks.json | <p>I am trying to link my app to url, so that it will open the app directly without selector option.</p>
<p>I added below code in android manifest file
but still it is not opening app directly.</p>
<pre><code> <intent-filter android:autoVerify="true">
<action android:name="android.intent.a... | I am trying to link my app to url, so that it will open the app directly without selector option. I added below code in android manifest file but still it is not opening app directly. [CODE] After app installation I check I ran below command [CODE] but still it is showing status undefined for my app package. [CODE] | android|applinks | 0 | 2016-04-19T06:26:45.953Z | 2,016 | 4 | 6 | 1 | 1,333 | 1 | 316 | 45 | 2 | 3 | true | false | false | false | false | false | zero |
36,710,200 | Android: Store SecretKey in KeyStore | <p>I use a <a href="http://developer.android.com/reference/javax/crypto/SecretKey.html" rel="noreferrer">SecretKey</a> to encrypt sensitive data in my application. Currently I am storing my SecretKey in Base64 encoded format in DB or SharedPrefs which is not a safe place to store Secret on a rooted phone. Hence, I want... | I use a SecretKey to encrypt sensitive data in my application. Currently I am storing my SecretKey in Base64 encoded format in DB or SharedPrefs which is not a safe place to store Secret on a rooted phone. Hence, I want to move my SecretKey to Android KeyStore . The problem I am facing is when I try this sample code fr... | android|encryption|keystore|android-keystore|secret-key | 11 | 2016-04-19T06:26:56.933Z | 2,016 | 4 | 6 | 1 | 11,872 | 2 | 627 | 36 | 5 | 1 | true | false | true | true | true | false | medium |
36,710,228 | Add dependency to android library | <p>Base on this tutorial</p>
<p><a href="http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en" rel="nofollow">http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en</a></p>
<p>I'm trying to upload my android library to JCenter/M... | Base on this tutorial http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en I'm trying to upload my android library to JCenter/Maven so that my colleague can easily add it to their project like following [CODE] Problem is, one of my library is depending on other library such... | android|maven|android-library|jcenter | 0 | 2016-04-19T06:28:48.030Z | 2,016 | 4 | 6 | 1 | 179 | 1 | 435 | 33 | 4 | 3 | true | false | false | false | false | false | zero |
36,710,279 | Same data from listview being printed multiple times | <p>This is my java activity.The data is being retrieve from server. Based on the <code>System.out.println("hi" +co.transaction_id)</code>, the same item is being printed 5 times. Is it my java problem or is it php problem. I have try to edit my listview xml height to match parent or fill parent but it doesn't help.</p>... | This is my java activity.The data is being retrieve from server. Based on the System.out.println("hi" +co.transaction_id) , the same item is being printed 5 times. Is it my java problem or is it php problem. I have try to edit my listview xml height to match parent or fill parent but it doesn't help. [CODE] This is my ... | java|php|android|listview | 3 | 2016-04-19T06:31:53.467Z | 2,016 | 4 | 6 | 1 | 114 | 1 | 338 | 52 | 4 | 2 | true | false | false | false | false | false | low |
36,710,301 | how to stop receiving location update in google map android | <p>i am making location tracking application.
For that i put two buttons stop and start, on start button click receiving location update is enable,
on stop button click stop receiving location update.</p>
<p>but stop receiving location update is not working.</p>
<pre><code> package com.jay... | i am making location tracking application. For that i put two buttons stop and start, on start button click receiving location update is enable, on stop button click stop receiving location update. but stop receiving location update is not working. [CODE] | android|google-maps|location | 0 | 2016-04-19T06:33:29.870Z | 2,016 | 4 | 6 | 1 | 3,117 | 1 | 255 | 59 | 3 | 1 | true | false | true | false | false | false | zero |
36,710,356 | Android: Set Margin for Edit Text in AlertDialog Box | <p>I am trying to create an <strong>Alert Dialog</strong> box like <strong>Lollipop</strong>, everything is going fine but I am stuck in one section the case of <strong>EditText</strong></p>
<p>I want an <strong>EditText</strong> with underline and <strong>margin left and right</strong> with 20dp.For underline I tried... | I am trying to create an Alert Dialog box like Lollipop , everything is going fine but I am stuck in one section the case of EditText I want an EditText with underline and margin left and right with 20dp.For underline I tried setBackground() , and its working fine. But there is a problem that setBackground() will not w... | android|android-edittext|android-alertdialog|android-5.1.1-lollipop | 3 | 2016-04-19T06:36:41.090Z | 2,016 | 4 | 6 | 1 | 6,454 | 3 | 555 | 52 | 4 | 2 | true | false | true | false | false | false | low |
36,710,371 | white background and black text color on android wear app | <p>in my android wear app i need to change the default black background to white and the text color to black. in order to not set those colors each time i create a new layout file, i created a theme that defines the background and text color and applied it to the main layoutfile</p>
<p><strong>the layout file:</strong... | in my android wear app i need to change the default black background to white and the text color to black. in order to not set those colors each time i create a new layout file, i created a theme that defines the background and text color and applied it to the main layoutfile the layout file: [CODE] the style file: [CO... | android|wear-os|android-theme | 1 | 2016-04-19T06:37:43.530Z | 2,016 | 4 | 6 | 1 | 1,116 | 1 | 486 | 57 | 3 | 2 | true | false | false | false | false | false | low |
36,710,394 | Wrong Y coordinate from TextView on Bitmap using Canvas.drawText | <p>Please help me with my problem or at least give me advice.
I have ImageView with overlayed TextView. The user can drag text to any position on the image. After, I want to save the image with text at chosen position.</p>
<p>Layout (TextView add dynamically to root element):</p>
<pre><code><LinearLayout
android:l... | Please help me with my problem or at least give me advice. I have ImageView with overlayed TextView. The user can drag text to any position on the image. After, I want to save the image with text at chosen position. Layout (TextView add dynamically to root element): [CODE] All problem in Y coordinate is always wrong . ... | java|android|android-canvas | 0 | 2016-04-19T06:38:34.727Z | 2,016 | 4 | 6 | 1 | 162 | 1 | 610 | 64 | 3 | 5 | true | false | false | false | false | false | zero |
36,710,550 | Android internet permission missing | <p>I've added internet permission in my AndroidManifest.xml, but I still get Internet Permission Missing Error thrown.</p>
<p>AndroidManifest.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="info.androidhive.slidingmenu"
a... | I've added internet permission in my AndroidManifest.xml, but I still get Internet Permission Missing Error thrown. AndroidManifest.xml [CODE] I'm following example how to make RSS reader: https://www.androidpit.com/java-guide-2-program-your-own-rss-reader I've done everything up to giving Internet permission, but afte... | java|android|xml|rss | 0 | 2016-04-19T06:48:01.643Z | 2,016 | 4 | 6 | 1 | 1,267 | 2 | 467 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
36,710,617 | addView dynamically can not get measuredHeight in android | <p>I try to encapulate a custom listView with head and footer.here is the description
of my problem.</p>
<pre><code><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<com.example.pj.news_demo.widget.WrapperVie... | I try to encapulate a custom listView with head and footer.here is the description of my problem. [CODE] Code above is my ui,WrapperView can be treated as a container,and RecycleView is the initial content.In the outside,some interface will be provided for the user ,handling the WrapperView,like addHeaderView() and add... | android | -1 | 2016-04-19T06:51:53.667Z | 2,016 | 4 | 6 | 1 | 75 | 3 | 1,084 | 57 | 1 | 4 | true | false | false | false | false | true | negative |
36,710,645 | Getting error in LocationManager | <p>I have been trying to get current address without mentioning latitude and longitude implicitly inside the code but by using LocationManager using GPS</p>
<p>iam getting only one error in LocationManager line in the below program:</p>
<pre><code> package com.example.admin.getcurrentlocation;
import ja... | I have been trying to get current address without mentioning latitude and longitude implicitly inside the code but by using LocationManager using GPS iam getting only one error in LocationManager line in the below program: [CODE] Here is my Logcat. [CODE] | android | 0 | 2016-04-19T06:53:28.257Z | 2,016 | 4 | 6 | 1 | 998 | 3 | 255 | 32 | 1 | 2 | true | false | false | false | false | false | zero |
36,710,700 | Android display Timeout Message in Web Service when connection or read timeout while internet connected | <blockquote>
<p>Hi I need to display the message "Data not Received" on connection or read Timeout.</p>
<p>I implement this using java.net.SocketTimeoutException but can't get message if there is no data received while internet connected.</p>
<p>I get only help through the internet connected or not.</p>
... | Hi I need to display the message "Data not Received" on connection or read Timeout. I implement this using java.net.SocketTimeoutException but can't get message if there is no data received while internet connected. I get only help through the internet connected or not. But actually I want to get it when the internet i... | android|web-services|connection-timeout | 2 | 2016-04-19T06:56:03.683Z | 2,016 | 4 | 6 | 1 | 1,055 | 1 | 383 | 103 | 3 | 2 | true | false | false | false | false | false | low |
36,710,739 | Can't initialize static member in Java - Android | <p>I've helper <code>class</code> named <code>Prefs</code> in which I've static <code>class member</code> of <code>interface</code> <code>SyncFinishedListener</code>. Here's they are:</p>
<pre><code>public interface SyncFinishedListener {
void onSyncFinished();
}
</code></pre>
<p>here's my <code>Prefs</code> help... | I've helper class named Prefs in which I've static class member of interface SyncFinishedListener . Here's they are: [CODE] here's my Prefs helper class [CODE] and here's how I'm calling this from Fragment [CODE] My code should run fine. but, I can't figure out why I'm getting NullPointerException . Here's some Log for... | java|android | 1 | 2016-04-19T06:58:01.967Z | 2,016 | 4 | 6 | 1 | 126 | 2 | 338 | 48 | 2 | 4 | true | false | false | false | false | false | low |
36,710,745 | One or multiple databases SQLite in Android? | <p>I'm coding an app in Android where I use a lot of databases in SQLite with the next schema:</p>
<pre><code>public class DBUser extends SQLiteOpenHelper {
private static final int VERSION_DATABASE = 1;
//Name of the database.
private static final String NAME_DATABASE = "NAMEOFDB.db";
//The creation of the table i... | I'm coding an app in Android where I use a lot of databases in SQLite with the next schema: [CODE] I've, more or less, 5 or 6 java files where I write differents methods for each database that I create. I want to know if this is the right way or if I must put all tables in one database and write all methods in only one... | java|android|database|sqlite | 0 | 2016-04-19T06:58:12.297Z | 2,016 | 4 | 6 | 1 | 1,187 | 0 | 339 | 44 | 4 | 1 | true | true | false | false | false | false | zero |
36,710,763 | set tab Selected Text Color do not work | <p>I want to change the color of tab when it's selected .in matrial design tutorial they said by set <code>tabSelectedTextColor</code> we can do that. but it did n't work for me .and i force to that in <code>onTabSelected</code> like below code:</p>
<pre><code> public void onTabSelected(TabLayout.Tab tab) {
... | I want to change the color of tab when it's selected .in matrial design tutorial they said by set tabSelectedTextColor we can do that. but it did n't work for me .and i force to that in onTabSelected like below code: [CODE] why this didn't work out? EDIT is this becuse i have custom tab layout? [CODE] Edit: ViewPageAda... | android|android-tablayout | 1 | 2016-04-19T06:59:07.180Z | 2,016 | 4 | 6 | 1 | 3,341 | 1 | 337 | 39 | 2 | 3 | true | false | true | false | false | false | low |
36,710,794 | Custom button drawable state_pressed and state_checked not working on CheckBox or RadioButton - Android | <p>I am setting custom drawable to the checkbox button,<br>
But only <code>android:state_checked="true"</code> and <code>android:state_checked="false"</code> seem to work.<br>
Other states aren't working. </p>
<p>I am unable to set a custom drawable on pressed state.</p>
<p><strong>This is the selector I am using:</... | I am setting custom drawable to the checkbox button, But only android:state_checked="true" and android:state_checked="false" seem to work. Other states aren't working. I am unable to set a custom drawable on pressed state. This is the selector I am using: [CODE] This is how I am setting it to radio button: [CODE] | java|android|checkbox|drawable|android-custom-view | 0 | 2016-04-19T07:00:08.460Z | 2,016 | 4 | 7 | 1 | 2,694 | 1 | 314 | 103 | 5 | 2 | true | false | true | false | false | false | zero |
36,710,984 | How to pass variables from a static function of class1 to another class2? | <p>I have intended to pass total weight from the function to another class. I plan to use getIntent(). However, a static function does not allow it. If that is the case, how should i pass it? Below is the static function of class1. I have been getting error at the "this" part.</p>
<pre><code>public class Shopping{
pub... | I have intended to pass total weight from the function to another class. I plan to use getIntent(). However, a static function does not allow it. If that is the case, how should i pass it? Below is the static function of class1. I have been getting error at the "this" part. [CODE] This is the class 2 function. [CODE] | java|android | -1 | 2016-04-19T07:09:31.070Z | 2,016 | 4 | 7 | 1 | 83 | 2 | 318 | 73 | 2 | 2 | true | false | false | false | false | true | negative |
36,711,070 | considering the use case of user selecting reverse time interval in android app | <p>The android app will notify user only between the time interval user selects.<br>
Settings will have two timepickers to store <code>TIME1</code> and <code>TIME2</code>
<br></p>
<p>I am planning to store the time in INT format as suggested by following link<br>
link --> <a href="https://stackoverflow.com/questions/5... | The android app will notify user only between the time interval user selects. Settings will have two timepickers to store TIME1 and TIME2 I am planning to store the time in INT format as suggested by following link link --> Store time in int data type in sql Following the above approach while comparing with current tim... | java|android|mysql|time|datetime-comparison | 1 | 2016-04-19T07:13:06.147Z | 2,016 | 4 | 7 | 1 | 52 | 1 | 748 | 79 | 5 | 3 | true | false | false | false | false | false | low |
36,711,105 | Using SWIG for setting types in overloaded C++ method | <p>I am writing C++ library that will be used by applications on different platforms, including Android.
And for Android build SWIG is used (I cannot change this choice, and I have never worked with swig).
Automatic type conversion for Java-to-C++ worked fine until I was assigned to task of init method overloading.</p>... | I am writing C++ library that will be used by applications on different platforms, including Android. And for Android build SWIG is used (I cannot change this choice, and I have never worked with swig). Automatic type conversion for Java-to-C++ worked fine until I was assigned to task of init method overloading. For ol... | java|android|c++|swig | 1 | 2016-04-19T07:14:59.587Z | 2,016 | 4 | 7 | 1 | 341 | 1 | 695 | 53 | 4 | 6 | true | false | false | false | false | false | low |
36,711,180 | setOnScrollListener() of Expandable Listview under scrollview | <p>I am using around 27 Expandable Listview(That scroll inside Scrollview, not the one that has parent, child relation) inside Scrollview(One is visible at a time, after selecting some text). I want to add load more on this, while user reached to last item while scrolling listview. But setOnScrollListener() return me l... | I am using around 27 Expandable Listview(That scroll inside Scrollview, not the one that has parent, child relation) inside Scrollview(One is visible at a time, after selecting some text). I want to add load more on this, while user reached to last item while scrolling listview. But setOnScrollListener() return me last... | android|expandablelistview|onscrolllistener | 2 | 2016-04-19T07:18:02.180Z | 2,016 | 4 | 7 | 1 | 1,493 | 1 | 443 | 61 | 3 | 1 | true | false | false | false | false | false | low |
36,711,220 | Why is the imageview returning null or not retrieving the selected photo from gallery? (Xamarin VS 2015 Android) | <p>This is stressing me out for almost a day already because I cannot seem to figure out why the image isn't showing up after I select an image from the gallery (of my android phone). It only gives me a full blank photo without the actual image although the tools (button, textview, etc.) below the image move down. I ba... | This is stressing me out for almost a day already because I cannot seem to figure out why the image isn't showing up after I select an image from the gallery (of my android phone). It only gives me a full blank photo without the actual image although the tools (button, textview, etc.) below the image move down. I based... | c#|android|visual-studio|xamarin|xamarin.android | 1 | 2016-04-19T07:19:32.817Z | 2,016 | 4 | 7 | 1 | 497 | 1 | 649 | 112 | 5 | 3 | true | false | false | false | false | false | low |
36,711,245 | Overriding value in resource with SharedPreference | <p>I'm trying to figure out if there is an easy way to achieve what I"m doing. Basically I have some predefined values about some cities in my Strings.xml. But user the option to change it which I"m storing internally as SharedPReferences (in essence overriding the resource values).</p>
<p>Firstly I assume that this i... | I'm trying to figure out if there is an easy way to achieve what I"m doing. Basically I have some predefined values about some cities in my Strings.xml. But user the option to change it which I"m storing internally as SharedPReferences (in essence overriding the resource values). Firstly I assume that this is one of th... | java|android|arrays|sharedpreferences | 0 | 2016-04-19T07:20:25.217Z | 2,016 | 4 | 7 | 1 | 54 | 1 | 831 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
36,711,258 | set Custom Programatically created drawable to radioButton for states | <p>I wanted to set a programatically created drawable to radio button for its checked and unchecked states, but it is not working my code is as follows,</p>
<p>Code to draw a rectangular box,</p>
<pre><code>public static GradientDrawable squareView(int backgroundColor, int borderColor)
{
GradientDrawable shape = ... | I wanted to set a programatically created drawable to radio button for its checked and unchecked states, but it is not working my code is as follows, Code to draw a rectangular box, [CODE] Code to set programatically created View(squareview) to set as stated to radiobutton, [CODE] | android|android-custom-view|android-drawable|android-radiobutton|android-custom-drawable | 1 | 2016-04-19T07:21:15.527Z | 2,016 | 4 | 7 | 1 | 727 | 1 | 281 | 69 | 5 | 2 | true | false | false | false | false | false | low |
36,711,332 | Android see if application is disabled | <p>In our app we have intent to start Skype. The method looks like this:</p>
<pre><code>public void startSkype(View view) {
if (!isSkypeClientInstalled()) {
openMarket();
return;
}
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("skype:" + getString(R.string.usr_name) + "?cha... | In our app we have intent to start Skype. The method looks like this: [CODE] It works fine in most cases, but to day we received a crash [CODE] After trying to reproduce it for a while we found that it happens if application is set to Disabled in phone settings (not all phones have this setting). So is there a way to s... | android|android-intent | 0 | 2016-04-19T07:24:07.310Z | 2,016 | 4 | 7 | 1 | 234 | 1 | 411 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
36,711,360 | Smooth scroll recyclerview android | <p>I have a <code>Recyclerview</code> which contains <code>ratingbar</code> in <code>list_items.xml</code></p>
<p>on completion of the rating of one item in <code>Recyclerview</code> I scroll to another item of <code>Recyclerview</code> automatically</p>
<p>The scrolling is very fast , user couldn't know that it is s... | I have a Recyclerview which contains ratingbar in list_items.xml on completion of the rating of one item in Recyclerview I scroll to another item of Recyclerview automatically The scrolling is very fast , user couldn't know that it is scrolled. I implemented smooth scroll , but not working properly, first scroll of 2nd... | android|android-recyclerview|smooth-scrolling | 3 | 2016-04-19T07:25:47.247Z | 2,016 | 4 | 7 | 1 | 935 | 0 | 447 | 34 | 3 | 2 | true | true | false | false | false | false | low |
36,711,396 | Imageview not showing on Lollipop and Marshmallow | <p>I have this very simple activity and xml that just shows a .png file that fills the whole activity. I have tested in KitKat and Ice Cream. It is working. It is not working however on Lollipop and Marshmallow. I've check the other answers but it is not the one I am looking for. The activity is very simple for this on... | I have this very simple activity and xml that just shows a .png file that fills the whole activity. I have tested in KitKat and Ice Cream. It is working. It is not working however on Lollipop and Marshmallow. I've check the other answers but it is not the one I am looking for. The activity is very simple for this one. ... | android|android-layout|android-5.0-lollipop|android-xml|android-6.0-marshmallow | 0 | 2016-04-19T07:27:40.760Z | 2,016 | 4 | 7 | 1 | 2,696 | 4 | 500 | 49 | 5 | 4 | true | false | true | false | false | false | zero |
36,711,400 | ?android:attr/selectableItemBackground not working on white windowBackground | <p>I would like to use </p>
<pre><code>?android:attr/selectableItemBackground
</code></pre>
<p>for items of my recyclerview. Unfortunately it is not working. I have this line in my styles.xml file:</p>
<pre><code><item name="android:windowBackground">@color/white</item>
</code></pre>
<p>Without this lin... | I would like to use [CODE] for items of my recyclerview. Unfortunately it is not working. I have this line in my styles.xml file: [CODE] Without this line I can see the ripple which means that the background os not working because of the whilte windowBackground. How can I force the ripppe effect to appear on my white b... | android|android-recyclerview | 4 | 2016-04-19T07:27:49.623Z | 2,016 | 4 | 7 | 1 | 2,989 | 1 | 403 | 76 | 2 | 3 | true | false | true | false | false | false | low |
36,711,696 | How can I save an image with text overlaying it to the Gallery in Android Studio? | <p>We are trying to make an app that lets the user upload an image, write text over it, and then save the new image with the text.</p>
<p>Our current implementation is to use an ImageView to hold the image, then use TextViews to write on top of it.</p>
<p>What would be the best way to save the image as a whole? Below... | We are trying to make an app that lets the user upload an image, write text over it, and then save the new image with the text. Our current implementation is to use an ImageView to hold the image, then use TextViews to write on top of it. What would be the best way to save the image as a whole? Below is our current cod... | android | 1 | 2016-04-19T07:41:22.077Z | 2,016 | 4 | 7 | 1 | 1,863 | 1 | 353 | 81 | 1 | 1 | true | false | false | false | false | false | low |
36,711,792 | android cannot find realm gradle dependency | <p>I get this error while building:</p>
<pre><code>Failed to sync Gradle project 'myapp'
Error:Could not find io.realm:realm-android:0.88.3.
Required by:
myapp:app:unspecified
Search in build.gradle files
</code></pre>
<p>In my project level gradle I have added as:</p>
<pre><code>classpath "io.realm:realm-gradl... | I get this error while building: [CODE] In my project level gradle I have added as: [CODE] In my module level: [CODE] How to fix this error? Project level gradle: [CODE] Module level: [CODE] | android|gradle|realm | 6 | 2016-04-19T07:45:34.643Z | 2,016 | 4 | 7 | 1 | 8,005 | 2 | 190 | 43 | 3 | 5 | true | false | true | false | false | false | medium |
36,712,023 | Android application crashes when I drop item into gridview | <p>I'm trying to drag and drop an item between grid view, and the item is correctly dragged but when the application crashes when in action. </p>
<p>This is my code:</p>
<pre><code> case DragEvent.ACTION_DROP:
PassObject passObj = (PassObject)event.getLocalState();
View view =... | I'm trying to drag and drop an item between grid view, and the item is correctly dragged but when the application crashes when in action. This is my code: [CODE] The problem is in this line exactly : [CODE] Any help is appreciated! | android|gridview|drag-and-drop | 0 | 2016-04-19T07:55:27.657Z | 2,016 | 4 | 7 | 1 | 44 | 0 | 231 | 58 | 3 | 2 | true | true | false | false | false | false | zero |
36,712,062 | The "CheckDuplicateJavaLibraries" task failed unexpectedly | <p>I'm trying to build my app, but following error pops up. A couple of days ago, I had no problems with building it.</p>
<pre><code>Error The "CheckDuplicateJavaLibraries" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find file 'obj\Debug\__library_projects__\VectorCompat\library_project_... | I'm trying to build my app, but following error pops up. A couple of days ago, I had no problems with building it. [CODE] Should I delete the VectorCompat component and add it again? Why is it suddenly giving this error when it built fine a couple of days ago? Thanks in advance. | android|visual-studio|xamarin|xamarin.android | 3 | 2016-04-19T07:57:28.943Z | 2,016 | 4 | 7 | 1 | 1,652 | 1 | 279 | 58 | 4 | 1 | true | false | false | false | false | false | low |
36,712,127 | XML parsing error Unexpected token position:TEXT @1:2? | <p><strong>The Error which is showing is</strong> </p>
<p><em>Unexpected token (position:TEXT @1:2 in java.io.StringReader@41d569a8)</em> </p>
<p><strong>I am following this tutorial</strong> <a href="http://www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/" rel="nofollow">AndroidHive</a></p>
... | The Error which is showing is Unexpected token (position:TEXT @1:2 in java.io.StringReader@41d569a8) I am following this tutorial AndroidHive but when I am using another url like ( http://example.com/ss.svc/APIabc?A=10&Key=XXXXX&From=19&To=221&Date=19-Apr-2016 ) to parse the data its showing me error like- [CODE] MY XM... | java|android|xml|xml-parsing|xmlpullparser | 0 | 2016-04-19T08:00:32.380Z | 2,016 | 4 | 8 | 1 | 529 | 0 | 348 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
36,712,155 | Connecting toolbar with the navigation drawer | <p>I have several activities where I want to use the same navigation drawer. Here's part of my Activity class code related to the drawer:</p>
<pre><code>Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowTitleEnabled(false);
DrawerLayout drawer = ... | I have several activities where I want to use the same navigation drawer. Here's part of my Activity class code related to the drawer: [CODE] I'm planning to make a DrawerActivity class and extend it from all those activities which want the Navigation drawer. Therefore, I will have to move all the drawer code to that D... | android|navigation-drawer|android-toolbar | 0 | 2016-04-19T08:01:52.270Z | 2,016 | 4 | 8 | 1 | 756 | 1 | 1,142 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
36,712,222 | Android expansion (obb) patch file version number | <p>I have uploaded my application to the Play Store with a huge expansion (obb) file. Everything's working fine, no problem with that. But now I have to upload a small update to the expansion file. I want to use the patch expansion file because I don't want to force the users to download the big main expansion file aga... | I have uploaded my application to the Play Store with a huge expansion (obb) file. Everything's working fine, no problem with that. But now I have to upload a small update to the expansion file. I want to use the patch expansion file because I don't want to force the users to download the big main expansion file again.... | android|zip|patch|expansion|apk-expansion-files | 1 | 2016-04-19T08:04:03.160Z | 2,016 | 4 | 8 | 1 | 894 | 0 | 1,928 | 49 | 5 | 4 | true | true | false | false | false | false | low |
36,712,235 | why am i getting a "cannot resolve method" error on getApplication? | <p>I believe I have all my code in order but ive been toiling over this error for a few hours now. Im trying to setup a basic app framework using fragments. I can get the code to work if i structure the project as activity based and put the string data along with the block of code below in my MainActivity, but that d... | I believe I have all my code in order but ive been toiling over this error for a few hours now. Im trying to setup a basic app framework using fragments. I can get the code to work if i structure the project as activity based and put the string data along with the block of code below in my MainActivity, but that doesnt... | java|android|android-fragments|syntax-error | -1 | 2016-04-19T08:04:46.577Z | 2,016 | 4 | 8 | 1 | 1,560 | 3 | 814 | 67 | 4 | 2 | true | false | false | false | false | true | negative |
36,712,248 | Notify loop with up toolbar button android | <p>first of all sorry for my horrible english, this is my problem:</p>
<p>I have a MainActivity.class that set the alarmmanager, at the specific time my alarmReceiver check on database if there is a specific record. If the check result false, he start the service that show my notification. </p>
<p>The notification op... | first of all sorry for my horrible english, this is my problem: I have a MainActivity.class that set the alarmmanager, at the specific time my alarmReceiver check on database if there is a specific record. If the check result false, he start the service that show my notification. The notification open my MealActivity.c... | java|android|loops|notify|up-button | 1 | 2016-04-19T08:05:11.547Z | 2,016 | 4 | 8 | 1 | 75 | 0 | 1,141 | 42 | 5 | 4 | true | true | false | false | false | false | low |
36,712,307 | How to set auto column in gridlayout of recycleview? | <p>I am trying to archive auto set column size on gridlayout in recycleview. I found a code for it but I am new in android, so I don't now how to implement it in my fragment class. Please guide me how to implement it </p>
<p>1) Base Fragment class </p>
<pre><code>public class BaseFragment extends android.app.Fragm... | I am trying to archive auto set column size on gridlayout in recycleview. I found a code for it but I am new in android, so I don't now how to implement it in my fragment class. Please guide me how to implement it 1) Base Fragment class [CODE] 2) method for autosetcolumn on gridlayout in recycleview [CODE] | android|android-recyclerview|android-gridlayout|gridlayoutmanager | 2 | 2016-04-19T08:07:57.363Z | 2,016 | 4 | 8 | 1 | 2,828 | 1 | 307 | 52 | 4 | 2 | true | false | true | false | false | false | low |
36,712,365 | What is the correct way to send data from Arduino HC-05 Bluetooth to Android? | <p>I am trying to send float data from Arduino HC-05 to Android. My android code to receive data is </p>
<pre><code>byte buffer[];
buffer = new byte[2048];
int bytes = dataInputStream.read(buffer);
if(bytes > 0) {
String message = new String(buffer, 0, bytes);
... | I am trying to send float data from Arduino HC-05 to Android. My android code to receive data is [CODE] I am unable to parse the byte buffer back to float. I tried googling but no help. Can anyone tell me what am I doing wrong? The string I get after this is some unknown characters with question mark. Below in my Aurdi... | android|bluetooth|arduino|embedded|buffer | 0 | 2016-04-19T08:10:34.587Z | 2,016 | 4 | 8 | 1 | 2,759 | 2 | 379 | 77 | 5 | 3 | true | false | true | false | false | false | zero |
36,712,569 | Xamarin Zxing Fragment OnPause Only the original thread that created a view hierarchy can touch its views | <p>I'm developing a codebar app for android with Xamarin and the Zxing library.
My objective was to have in the same view half of the screen with the codebar view, and the other half with the buttons to add or delete the scanned object to a list.</p>
<p>In MainActivity OnCreate function I have:</p>
<pre><code> ... | I'm developing a codebar app for android with Xamarin and the Zxing library. My objective was to have in the same view half of the screen with the codebar view, and the other half with the buttons to add or delete the scanned object to a list. In MainActivity OnCreate function I have: [CODE] In ZXingScannerFragment OnC... | android|android-fragments|xamarin|zxing | 0 | 2016-04-19T08:19:59.743Z | 2,016 | 4 | 8 | 1 | 316 | 1 | 1,461 | 105 | 4 | 5 | true | false | false | false | false | false | zero |
36,712,662 | Error when run Jitsi for android source | <p>I've got this error when I run Jitsi for android source. I got the source from <a href="http://www.java2s.com/Open-Source/Android_Free_Code/Chat_XMPP/Download_Free_code_jitsi_android.htm" rel="nofollow">here</a></p>
<p>The error was </p>
<pre><code>10-17 22:21:07.150: E/AndroidRuntime(14134): FATAL EXCEPTION: main... | I've got this error when I run Jitsi for android source. I got the source from here The error was [CODE] Is there something I missed? | java|android|eclipse|jitsi | 0 | 2016-04-19T08:24:12.613Z | 2,016 | 4 | 8 | 1 | 120 | 1 | 133 | 39 | 4 | 1 | true | false | false | false | false | false | zero |
36,712,675 | setText is not displaying text in another layout | <p>I have a program what uses setContentView to display one layout and at the same time I want to update text in another layout.</p>
<p>I don't find the text getting updated but retrieving values set by getText is giving updated value.</p>
<p>I want the value set using setText to get displayed.</p>
<pre><code>public... | I have a program what uses setContentView to display one layout and at the same time I want to update text in another layout. I don't find the text getting updated but retrieving values set by getText is giving updated value. I want the value set using setText to get displayed. [CODE] My Xml layout file is: [CODE] I wa... | android|android-layout | 0 | 2016-04-19T08:24:57.503Z | 2,016 | 4 | 8 | 1 | 457 | 1 | 364 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
36,712,704 | Why is my item Image in custom RecyclerView changing while scrolling? | <p>My app works fine, except that i saw some items changing images while scrolling, somehow i know that's a recycling problem, but i dont know how to solve it. I tried some code modifications in my adapter, because I think its from there, but i didn't succeed.</p>
<pre><code> public void onBindViewHolder(CustomAdapter... | My app works fine, except that i saw some items changing images while scrolling, somehow i know that's a recycling problem, but i dont know how to solve it. I tried some code modifications in my adapter, because I think its from there, but i didn't succeed. [CODE] For the download image, I'm using Picasso, thanks for t... | android|android-studio|imageview|android-recyclerview|picasso | 3 | 2016-04-19T08:26:08.333Z | 2,016 | 4 | 8 | 1 | 2,840 | 4 | 511 | 69 | 5 | 2 | true | false | true | false | false | false | low |
36,712,776 | Send data object from fragment to activity | <p>i have fragment(film) to show json data. now i want to send data( object) to activity( this class make show full inofrmation ). But i dont know get and send data in method onClick. who can show me some sugguest ?? Many thank .
Here is my code.</p>
<pre><code>public class FragmentFilmAdapter extends RecyclerView.Ada... | i have fragment(film) to show json data. now i want to send data( object) to activity( this class make show full inofrmation ). But i dont know get and send data in method onClick. who can show me some sugguest ?? Many thank . Here is my code. [CODE] | android|android-intent|fragment | -1 | 2016-04-19T08:28:47.657Z | 2,016 | 4 | 8 | 1 | 286 | 1 | 250 | 42 | 3 | 1 | true | false | false | false | false | true | negative |
36,712,824 | i want a popup menu when i click on my listview item | <p>my activity which contains listview i have five item in this listview.<a href="http://i.stack.imgur.com/DbrWM.png" rel="nofollow"> This is my items in Listview</a>
<a href="http://i.stack.imgur.com/N5VG5.png" rel="nofollow">, and this is what i want when i click on my first item in listview , there are some radio b... | my activity which contains listview i have five item in this listview. This is my items in Listview , and this is what i want when i click on my first item in listview , there are some radio button in the popup menu also [CODE] | android|listview|listviewitem | 0 | 2016-04-19T08:31:05.410Z | 2,016 | 4 | 8 | 1 | 932 | 2 | 227 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
36,712,849 | ExoPlayer doesn work on some devices | <p>I want to implement video player (ExoPlayer) in my android app. Player must play video (not big, ~2-3 minutes) from some url. On nexus 5 it works well, but on phone "Samsung GT-I8552 Galaxy Win" unfortunately it doesnt work. There are exception logs after compiling and starting app:</p>
<p>Internal runtime error.<b... | I want to implement video player (ExoPlayer) in my android app. Player must play video (not big, ~2-3 minutes) from some url. On nexus 5 it works well, but on phone "Samsung GT-I8552 Galaxy Win" unfortunately it doesnt work. There are exception logs after compiling and starting app: Internal runtime error. java.lang.Il... | android|exoplayer | 0 | 2016-04-19T08:32:08.517Z | 2,016 | 4 | 8 | 1 | 1,046 | 1 | 526 | 36 | 2 | 4 | true | false | false | false | false | false | zero |
36,713,033 | Does Android Content Provider authority definition break the DRY rule? | <p>Android's <code>Content Provider</code> <a href="http://developer.android.com/guide/topics/manifest/provider-element.html#auth" rel="nofollow">must have</a>:</p>
<blockquote>
<p>At least one authority must be specified.</p>
</blockquote>
<p>So for example in Google's samples <a href="https://github.com/googlesam... | Android's Content Provider must have : At least one authority must be specified. So for example in Google's samples android-BasicSyncAdapter AndroidManifest.xml there is [CODE] Then to implement this CP one need to define the same String inside the CP like in android-BasicSyncAdapter FeedProvider.java CONTENT_AUTHORITY... | android|android-contentprovider|dry | 2 | 2016-04-19T08:39:51.597Z | 2,016 | 4 | 8 | 1 | 1,286 | 1 | 497 | 70 | 3 | 2 | true | false | false | false | false | false | low |
36,713,097 | My spinner is not showing my selected value | <p>Any idea why my spinner is not showing my selected value, but when I scroll the scrollbar,the table in which the spinner is inserted, it suddenly shows up and proceed to my item selected function? I already search google but I didn't found any solutions. Please help me, guys. Thanks in advance.</p>
<p>Here is my co... | Any idea why my spinner is not showing my selected value, but when I scroll the scrollbar,the table in which the spinner is inserted, it suddenly shows up and proceed to my item selected function? I already search google but I didn't found any solutions. Please help me, guys. Thanks in advance. Here is my code for crea... | c#|android|xamarin | 1 | 2016-04-19T08:42:10.037Z | 2,016 | 4 | 8 | 1 | 322 | 1 | 367 | 43 | 3 | 1 | true | false | false | false | false | false | low |
36,713,168 | How to identify a row or a key in Android Keyboard | <p>I need to identify each row or keys in a row.</p>
<p>Since row or key does not have "id" attribute,we cannot find it using findViewById.</p>
<p>Iam wondering is there any way of identifying rows and keys in the keyboard.You can find the keyboard's xml file below.</p>
<pre><code><?xml version="1.0" encoding="ut... | I need to identify each row or keys in a row. Since row or key does not have "id" attribute,we cannot find it using findViewById. Iam wondering is there any way of identifying rows and keys in the keyboard.You can find the keyboard's xml file below. [CODE] Thanks in advance | android|keyboard|android-softkeyboard|android-keypad | 0 | 2016-04-19T08:44:46.227Z | 2,016 | 4 | 8 | 1 | 976 | 1 | 274 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
36,713,178 | Android Streetview check Availability | <p>I'm using Android Google Maps V2 and currently working on Google StreetView. I want to know if a certain location has streetview available before going to the Streetview Activity which has the StreetViewPanoramaFragment.</p>
<pre><code>@Override
public void onStreetViewPanoramaReady(StreetViewPanorama streetViewPan... | I'm using Android Google Maps V2 and currently working on Google StreetView. I want to know if a certain location has streetview available before going to the Streetview Activity which has the StreetViewPanoramaFragment. [CODE] I already use the above code but this code is can be use only when you have StreetViewPanora... | android|google-maps|google-street-view | 1 | 2016-04-19T08:45:07.553Z | 2,016 | 4 | 8 | 1 | 722 | 1 | 540 | 37 | 3 | 2 | true | false | false | false | false | false | low |
36,713,197 | dynamically adding check box and getting its checked unchecked value in android | <p>I am creating an android app where there are 20 checkboxes to be shown to user for multiple selection. I have programmed to display the checkbox dynamically but the problem is how to get the checked box value ? I have tried this code so far.</p>
<p><strong>my global variables are</strong></p>
<pre><code>ArrayList&... | I am creating an android app where there are 20 checkboxes to be shown to user for multiple selection. I have programmed to display the checkbox dynamically but the problem is how to get the checked box value ? I have tried this code so far. my global variables are [CODE] and for adding checkboxes I did something like ... | android|checkbox | 0 | 2016-04-19T08:46:22.710Z | 2,016 | 4 | 8 | 1 | 692 | 1 | 741 | 79 | 2 | 3 | true | false | false | false | false | false | zero |
36,713,235 | Android: Get Textview value of Spinner on Button click | <p>I have a <code>Spinner</code> and i am populating it with custom <code>SimpleCursorAdapter</code>. Spinner item layout contains two <code>TextView</code>s, One TextView for item id and it is not visible other is for item name. I want to get this item id on button click event then insert it to Sqlite database. I get ... | I have a Spinner and i am populating it with custom SimpleCursorAdapter . Spinner item layout contains two TextView s, One TextView for item id and it is not visible other is for item name. I want to get this item id on button click event then insert it to Sqlite database. I get the id on setOnItemSelectedListener of S... | java|android|android-spinner | 3 | 2016-04-19T08:48:10Z | -1 | -1 | -1 | -1 | 1,929 | 4 | 435 | 54 | 3 | 2 | true | false | false | false | false | false | low |
36,713,239 | Setting title for listview | <p>I have an android app that should parse data from php web page and display them into two listview, each listview to display values of a String</p>
<p>my problem is how to set titles for these listviews? </p>
<pre><code>public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedI... | I have an android app that should parse data from php web page and display them into two listview, each listview to display values of a String my problem is how to set titles for these listviews? [CODE] activity_main.xml [CODE] | android|listview | 0 | 2016-04-19T08:48:29.330Z | 2,016 | 4 | 8 | 1 | 1,182 | 2 | 227 | 26 | 2 | 2 | true | false | false | false | false | false | zero |
36,713,349 | Android adapter item change after click | <p>I have a custom adapter that holds humans. These humans have some features. What i want is when i click one of these human , features are changed. (Like new message in WhatsApp). Custom Adapter class : </p>
<pre><code> public class GecmisInsanAdapter extends ArrayAdapter<Insan> {
ArrayList<Insan>... | I have a custom adapter that holds humans. These humans have some features. What i want is when i click one of these human , features are changed. (Like new message in WhatsApp). Custom Adapter class : [CODE] These humans are in "objects" ArrayList which come from constructor. It has "yenimesajvarmi" and "kacyenimesaj"... | android | 1 | 2016-04-19T08:52:54.663Z | 2,016 | 4 | 8 | 1 | 53 | 0 | 598 | 39 | 1 | 1 | true | true | false | false | false | false | low |
36,713,372 | LayoutTransition causes Fragment to not show up the second time is created | <p>I have an activity which implements this method:</p>
<pre><code>public void pushFragment(MyFragment fragment) {
stack.add(fragment);
FragmentManager fragmentManager = getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.... | I have an activity which implements this method: [CODE] In a fragment, I have a listview with this onItemClickListener: [CODE] the AnotherFragment onCreateView method: [CODE] On API level >= 19 everything works. On API 18 and 17 (I didn't test on API 16), the first time I click on the listview item it works. Then I go ... | android|android-fragments|android-activity|android-transitions | 1 | 2016-04-19T08:54:06.420Z | 2,016 | 4 | 8 | 1 | 247 | 1 | 653 | 74 | 4 | 4 | true | false | false | false | false | false | low |
36,713,433 | RxAndroid response of one call to make another request | <p>I'm new to RxAndroid and trying to chain responses.</p>
<p>I'm using this <a href="https://api.github.com/repos/crashlytics/secureudid/issues" rel="nofollow">github</a> API to retrieve data. Along with each issue there are comments link and events link associated with it which I want to fetch and update existing ob... | I'm new to RxAndroid and trying to chain responses. I'm using this github API to retrieve data. Along with each issue there are comments link and events link associated with it which I want to fetch and update existing object with list of comments and events to form something like this. [CODE] I could retrieve initial ... | operators|retrofit|rx-java|chaining|rx-android | 0 | 2016-04-19T08:56:17.433Z | 2,016 | 4 | 8 | 1 | 943 | 1 | 471 | 54 | 5 | 2 | true | false | false | false | false | false | zero |
36,713,434 | Yellow highlight while using custom Toast in android | <p>I am trying to implement custom toast and below is the code I wrote and hooked it to a onClickeListner asusual</p>
<pre><code>Button customToastButton = (Button) this.findViewById(R.id.add_to_cart);
customToastButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
... | I am trying to implement custom toast and below is the code I wrote and hooked it to a onClickeListner asusual [CODE] And the code used is highlighted in yellow showing the below error.well it's not showing as a error in logcat and code works fine.The highlightend part also says ' may produce 'java.lang.NullPointerExce... | android|android-studio|toast|android-toast | 1 | 2016-04-19T08:56:17.837Z | 2,016 | 4 | 8 | 1 | 1,041 | 1 | 450 | 52 | 4 | 2 | true | false | false | false | false | false | low |
36,713,553 | android - replace ViewPager with MapFragment | <p>I am building one activity that has three fragments, using <code>ViewPager</code> and Tabs.
1 - list of locations ---> click should replace to map fragment
2 - list favorite locations
3 - map</p>
<p>my problem is that when I click on location from the list, <code>ViewPager</code> and Tabs does not replaced.</p>
<... | I am building one activity that has three fragments, using ViewPager and Tabs. 1 - list of locations ---> click should replace to map fragment 2 - list favorite locations 3 - map my problem is that when I click on location from the list, ViewPager and Tabs does not replaced. i have tried pager.setVisibility(View.GONE) ... | android|android-viewpager|fragment | 0 | 2016-04-19T09:00:29.533Z | 2,016 | 4 | 9 | 1 | 105 | 0 | 540 | 44 | 3 | 2 | true | true | false | false | false | false | zero |
36,713,637 | Setting On Click Listener For A Dynamic ListView | <p>thanks for always being available...</p>
<p>I have been able to populate my ListView with information i have in the database. </p>
<p>Now, I want setOnClickListener for the items to go to different pages. Currently, I am using a "switch(position)" construct, but it doesn't function appropriately since I can't hard... | thanks for always being available... I have been able to populate my ListView with information i have in the database. Now, I want setOnClickListener for the items to go to different pages. Currently, I am using a "switch(position)" construct, but it doesn't function appropriately since I can't hard code how many items... | android|listview|onclicklistener | 0 | 2016-04-19T09:03:56.787Z | 2,016 | 4 | 9 | 1 | 1,577 | 3 | 604 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
36,713,733 | CollapsableToolbarLayout with custom Toolbar height | <p>I'm creating a layout using a <code>CoordinatorLayout</code> holding an <code>AppBarLayout</code> with a <code>CollapsableToolbarLayout</code> and a <code>Toolbar</code>. Below the app bar is a <code>RecyclerView</code>.</p>
<p>When scrolling in the <code>RecyclerView</code>, the <code>Toolbar</code> should collaps... | I'm creating a layout using a CoordinatorLayout holding an AppBarLayout with a CollapsableToolbarLayout and a Toolbar . Below the app bar is a RecyclerView . When scrolling in the RecyclerView , the Toolbar should collapse, similar to the CheeseSquare demo app. The difference from that demo is that 1) I want my Toolbar... | android|android-layout|android-coordinatorlayout|android-collapsingtoolbarlayout | 2 | 2016-04-19T09:07:29.607Z | 2,016 | 4 | 9 | 1 | 524 | 0 | 2,401 | 51 | 4 | 1 | true | true | false | false | false | false | low |
36,713,765 | Using same fragments but different content in Android | <p>Here's the case.
I am trying to develop an Android app that will display a list of restaurant using CardView. Each time the user click a restaurant, it will display a screen that contains 3 fragments with swipe view - DetailsFragment, MenuFragment and TableBookingFragment. </p>
<p>I am a novice in Android developm... | Here's the case. I am trying to develop an Android app that will display a list of restaurant using CardView. Each time the user click a restaurant, it will display a screen that contains 3 fragments with swipe view - DetailsFragment, MenuFragment and TableBookingFragment. I am a novice in Android development so I am n... | android|android-activity|fragment | 1 | 2016-04-19T09:09:06.527Z | 2,016 | 4 | 9 | 1 | 1,670 | 3 | 1,074 | 53 | 3 | 6 | true | false | false | false | false | false | low |
36,713,841 | Text-to-Speech in on View Pager | <ul>
<li><p>I have view pager, and few text in every page, i have a button ,on button press text-to-speech event is fire</p></li>
<li><p>I know how to use text-to-speech, but when it comes to viewPager i dont know</p></li>
<li><p>Code :</p>
<p>public class MainActivity extends Activity implements
TextToSpeech.... | I have view pager, and few text in every page, i have a button ,on button press text-to-speech event is fire I know how to use text-to-speech, but when it comes to viewPager i dont know Code : public class MainActivity extends Activity implements TextToSpeech.OnInitListener { [CODE] } -- How to implement this in viewpa... | android|android-viewpager|text-to-speech | 0 | 2016-04-19T09:11:48.110Z | 2,016 | 4 | 9 | 1 | 529 | 1 | 375 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
36,713,882 | Can inside the same function startActivity(intent), then after getting value from the startActivity, run getintent() to get the value? | <p>It has been getting error unable to resume activity and null pointer exception. However i try putting this Intent intents = getIntent(); String cats = intents.getStringExtra("Final_Weight"); after super.oncreate and print it out, i'm able to get the value. But when i use getIntent() to get the value, i'm unable to g... | It has been getting error unable to resume activity and null pointer exception. However i try putting this Intent intents = getIntent(); String cats = intents.getStringExtra("Final_Weight"); after super.oncreate and print it out, i'm able to get the value. But when i use getIntent() to get the value, i'm unable to get ... | java|android|listview|android-activity | 0 | 2016-04-19T09:13:40.617Z | 2,016 | 4 | 9 | 1 | 48 | 0 | 502 | 134 | 4 | 2 | true | true | false | false | false | false | zero |
36,713,921 | how to Save data in sqlite from SQL server | <p>i have tried so much for establish connection,
i have used below code for this but it doesn't work.
please help me.
Thanks in advance..</p>
<pre><code>public DBConnector(Context context)
{
super(context, DATABASE_NAME, null, DATABASE_VERSION);
connect = CONN("username", "password", "db name", "sql_server_ip");
}ent... | i have tried so much for establish connection, i have used below code for this but it doesn't work. please help me. Thanks in advance.. [CODE] | android|sql|sql-server|sqlite | 0 | 2016-04-19T09:15:21.757Z | 2,016 | 4 | 9 | 1 | 59 | 0 | 142 | 42 | 4 | 1 | true | true | false | false | false | false | zero |
36,713,962 | Trouble with UTF-8 JSON file used in android | <p>I'm working on an android project and I use JSON to intechange data with server.. Problem is here when I use JSON file with UTF-8 format, some crash happens and the app stops.. and when I don't, it works fine.
I really need to have my files in UTF-8 format to have the correct charecters.
Where am I missing? Thank yo... | I'm working on an android project and I use JSON to intechange data with server.. Problem is here when I use JSON file with UTF-8 format, some crash happens and the app stops.. and when I don't, it works fine. I really need to have my files in UTF-8 format to have the correct charecters. Where am I missing? Thank you i... | android|json|utf-8 | 0 | 2016-04-19T09:17:02.390Z | 2,016 | 4 | 9 | 1 | 68 | 1 | 502 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
36,713,984 | How to extract data from a json object in android | <p>In my application I am receiving a JSON object as </p>
<blockquote>
<p>{"secQueList":{"1":"Which is your favorite book?","2":"Who was your childhood hero?","3":"What is your pet's name?","4":"What make was your first car or bike?","5":"What is your favorite color?","6":"Which is your favorite sports team?","7":"W... | In my application I am receiving a JSON object as {"secQueList":{"1":"Which is your favorite book?","2":"Who was your childhood hero?","3":"What is your pet's name?","4":"What make was your first car or bike?","5":"What is your favorite color?","6":"Which is your favorite sports team?","7":"What was the name of your sc... | android|json | 0 | 2016-04-19T09:18:03.627Z | 2,016 | 4 | 9 | 1 | 2,300 | 5 | 700 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
36,714,066 | java.lang.IllegalStateException: couldn't move cursor to position n | <p>I am tying to import contacts and display it in a <code>ListView</code>.
here is my cursor loader</p>
<pre><code> ContentResolver cr = getActivity().getContentResolver();
Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI,
null, null, null, ContactsContract.CommonDataKinds.P... | I am tying to import contacts and display it in a ListView . here is my cursor loader [CODE] And my adapter is [CODE] and this is my bindview [CODE] My code crashes when ListView reaches to the end. If there is 2 contacts I am getting error java.lang.IllegalStateException: couldn't move cursor to position 2 and similar... | java|android|listview|android-cursoradapter|android-cursor | 0 | 2016-04-19T09:21:21.693Z | 2,016 | 4 | 9 | 1 | 1,073 | 2 | 523 | 67 | 5 | 4 | true | false | false | false | false | false | zero |
36,714,173 | Install referrer receiver was accidentally left in the manifest file after I removed the referrer SDK | <p>I have removed the appnext SDK from my project. However, I forgot to remove the appnext install referral receiver. The version passed gradle build without any error or warning even though it should have failed the build! (Since I referenced an SDK that was no longer part of the project). My question is why Android S... | I have removed the appnext SDK from my project. However, I forgot to remove the appnext install referral receiver. The version passed gradle build without any error or warning even though it should have failed the build! (Since I referenced an SDK that was no longer part of the project). My question is why Android Stud... | android|android-manifest|android-build|android-lint|install-referrer | 4 | 2016-04-19T09:25:48.087Z | 2,016 | 4 | 9 | 1 | 735 | 0 | 1,121 | 101 | 5 | 2 | true | true | false | false | false | false | low |
36,714,378 | Apply Image Effects in GLSurfaceView while i scroll it in listview or RecyclerView [Android] | <p><strong>This is the class where I set bitmap to adapter</strong></p>
<pre><code> List<ItemEffectObject> bitmapList = new ArrayList<>();
for(int i = 0 ; i < 26 ; i++){
ItemEffectObject itemObject = new ItemEffectObject();
itemObject.setName(Effects.values()[i]);
... | This is the class where I set bitmap to adapter [CODE] This is ItemObject Dto [CODE] This is my RecyclerView Adapter I need a list of effect applying image list. While I load this code it show an exception. Thanks in advance. RuntimeException: Apply Wrong GL context exception [CODE] This is the place to apply effects i... | android|effect | 2 | 2016-04-19T09:34:32.913Z | 2,016 | 4 | 9 | 1 | 543 | 0 | 561 | 92 | 2 | 4 | true | true | false | false | false | false | low |
36,714,449 | how to create customized edittextbox android? | <p>I'm trying to make a customized edit <code>textbox</code>.
When getting a string of numbers I want to present them like this:</p>
<p><img src="https://i.stack.imgur.com/FpjmU.png" alt="Image 1"></p>
<p>Instead of the regular way like this:</p>
<p><img src="https://i.stack.imgur.com/U69l2.png" alt="Image 2"></p>
... | I'm trying to make a customized edit textbox . When getting a string of numbers I want to present them like this: Instead of the regular way like this: I have tried some ways but none of them gave me results like the pictures above, and i don't have any more ideas. Do you have any idea how to create it simply? Now i am... | android|android-studio | -1 | 2016-04-19T09:37:22.023Z | 2,016 | 4 | 9 | 1 | 42 | 2 | 466 | 45 | 2 | 2 | true | false | false | false | false | true | negative |
36,714,463 | How to POST json request on web server using HttpUrlConnection in android? | <p>I am new and trying to send json request to web server and trying to get json response using httpUrlConnection but its giving http 402 status, i am failing to get any solution any senior please help, my code is as follow</p>
<pre><code>URL url_webServer = new URL("http://teespire.com/ptracking/post/index.php?tag=Ge... | I am new and trying to send json request to web server and trying to get json response using httpUrlConnection but its giving http 402 status, i am failing to get any solution any senior please help, my code is as follow [CODE] | android|json | -1 | 2016-04-19T09:37:50.057Z | 2,016 | 4 | 9 | 1 | 697 | 3 | 227 | 74 | 2 | 1 | true | false | false | false | false | true | negative |
36,714,540 | Android CardView on 4.4.4, becomes transparent when animated or moved | <p>While testing my app compatibility on all android APIs, I found the bug in android.support.v7.widget.CardView on android 4.4.4, whenever I try to animated it or use it in any other widget <strong>it becomes transparent while it is animating or it is touched/moved</strong>.</p>
<p>This happens only on android kitkat... | While testing my app compatibility on all android APIs, I found the bug in android.support.v7.widget.CardView on android 4.4.4, whenever I try to animated it or use it in any other widget it becomes transparent while it is animating or it is touched/moved . This happens only on android kitkat 4.4.4, and it works perfec... | android|android-layout|android-4.4-kitkat|android-cardview | 1 | 2016-04-19T09:41:04.073Z | 2,016 | 4 | 9 | 1 | 258 | 0 | 709 | 69 | 4 | 2 | true | true | false | false | false | false | low |
36,714,559 | How can i send an image from php to android, using volley and Json | <p>im trying to load an image that i need to load from a server,
I have 3 questions:</p>
<ol>
<li>I don't know how i can convert the images in bitmaps (this in the server side)</li>
<li>How to convert this bitmap in a image (this in the android side).</li>
<li>How can i send this bitmap with volley request.</li>
</ol... | im trying to load an image that i need to load from a server, I have 3 questions: I don't know how i can convert the images in bitmaps (this in the server side) How to convert this bitmap in a image (this in the android side). How can i send this bitmap with volley request. I am using volley to make the request. The se... | php|android|json|image|bitmap | 0 | 2016-04-19T09:41:47.063Z | 2,016 | 4 | 9 | 1 | 1,894 | 6 | 422 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
36,714,575 | Android Shared Element Transition supportFinishAfterTransition() transits to wrong item | <p>I would be so happy if anyone could help me. (I'm new to programming btw)</p>
<p><strong>Overview</strong></p>
<p>I have a RecyclerView with many items in it. On my MainActivity, I show the RecyclerView. When I click an item, the app moves to the DetailActivity to show more details about the particular item. </p>
... | I would be so happy if anyone could help me. (I'm new to programming btw) Overview I have a RecyclerView with many items in it. On my MainActivity, I show the RecyclerView. When I click an item, the app moves to the DetailActivity to show more details about the particular item. I want to use Shared Element Transition w... | android | 1 | 2016-04-19T09:42:14.543Z | 2,016 | 4 | 9 | 1 | 969 | 0 | 1,416 | 87 | 1 | 3 | true | true | false | false | false | false | low |
36,714,598 | onSaveInstanceState not working | <p>I am trying to save the type of map that the user selected through the menu so the type of map remains even if the device will be rotated or the activity will be suspended for a few moments. This is what I did but it doesn't seem to work. Please can you tell me what am I doing wrong?</p>
<pre><code> private int map... | I am trying to save the type of map that the user selected through the menu so the type of map remains even if the device will be rotated or the activity will be suspended for a few moments. This is what I did but it doesn't seem to work. Please can you tell me what am I doing wrong? [CODE] My main menu has more choice... | android|google-maps|savestate | -1 | 2016-04-19T09:43:06.660Z | 2,016 | 4 | 9 | 1 | 352 | 1 | 672 | 31 | 3 | 3 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.