id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,094,526 | Android: download arrow doesn't appear | <p>i'm trying to develop an app that shows video and you can download it on your mobile
the app is working perfectly, but my problem is that the download arrow doesn't appear in notification bar.</p>
<p>I'm using download manager class.</p>
<p>Here's my method:</p>
<pre><code>public void downloadFileFromUrl(String u... | i'm trying to develop an app that shows video and you can download it on your mobile the app is working perfectly, but my problem is that the download arrow doesn't appear in notification bar. I'm using download manager class. Here's my method: [CODE] Can someone help me? | android|notifications | 0 | 2016-05-07T22:55:43.320Z | 2,016 | 5 | 22 | 5 | 1,030 | 1 | 272 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
37,094,584 | Travis CI Build Fails for android-20 and android-22 | <p>I want to test my code from android-15 to android-23, but unfortunately build fails for android-20 and android-22.</p>
<blockquote>
<p>Error: Invalid --tag default for the selected target.</p>
<p>The command "echo no | android create avd --force -n test -t
$ANDROID_TARGET --abi $ANDROID_ABI" failed and exi... | I want to test my code from android-15 to android-23, but unfortunately build fails for android-20 and android-22. Error: Invalid --tag default for the selected target. The command "echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI" failed and exited with 1 during . travis file : [CODE]... | android|travis-ci|android-5.1.1-lollipop | 0 | 2016-05-07T23:05:11.027Z | 2,016 | 5 | 23 | 5 | 477 | 1 | 346 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
37,094,631 | Get the pushed ID for specific value in firebase android | <p>I want to retrive the id that generated by firebase when I pushed value to it like next </p>
<p><a href="https://i.stack.imgur.com/C63F3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/C63F3.png" alt="Firebase"></a></p>
<p>I want to retrieve "-KGdKiPSODz7JXzlgl9J" this id for that email
I tried by getKe... | I want to retrive the id that generated by firebase when I pushed value to it like next I want to retrieve "-KGdKiPSODz7JXzlgl9J" this id for that email I tried by getKey() but it return "users" and when user get value it return the whole object from the id to profile picture and that won't make me get it as User objec... | android|firebase|firebase-realtime-database | 40 | 2016-05-07T23:16:17.637Z | 2,016 | 5 | 23 | 5 | 112,618 | 14 | 355 | 56 | 3 | 1 | true | false | true | true | true | false | high |
37,094,656 | SQLite onUpgrade() frustration | <p>I'm working with a prepopulated database. Using SQLite Manager in Mozilla, right now I have a dummy database and just wanted to test out the onUpgrade method, so I altered a string in one of the columns, exported it as a new database and as you'll see in my code, tried to open the newly updated version. Also importa... | I'm working with a prepopulated database. Using SQLite Manager in Mozilla, right now I have a dummy database and just wanted to test out the onUpgrade method, so I altered a string in one of the columns, exported it as a new database and as you'll see in my code, tried to open the newly updated version. Also important ... | java|android|sqlite|android-sqlite|sqliteopenhelper | 0 | 2016-05-07T23:19:53.673Z | 2,016 | 5 | 23 | 5 | 123 | 1 | 606 | 30 | 5 | 3 | true | false | false | false | false | false | zero |
37,094,662 | java.lang.IncompatibleClassChangeError SectionsPagerAdapter issue with import from eclipse | <p>I have imported my code from eclipse to android studio 2.0 but when I am trying to access an specific function with <strong>SectionsPagerAdapter</strong> doesnt work.</p>
<p>this is the exception:</p>
<pre><code>05-07 19:45:34.113 12102-12102/com.xxx.xactivity E/AndroidRuntime: FATAL EXCEPTION: main
... | I have imported my code from eclipse to android studio 2.0 but when I am trying to access an specific function with SectionsPagerAdapter doesnt work. this is the exception: [CODE] this is my import code on registreractivity class: [CODE] | android|eclipse|android-studio-2.0 | 0 | 2016-05-07T23:20:19.097Z | 2,016 | 5 | 23 | 5 | 498 | 1 | 237 | 90 | 3 | 2 | true | false | false | false | false | false | zero |
37,094,722 | Sending SMS puts long unwanted header in front of message | <p>I'm sending an SMS programmatically using the default SMS app. I use the following code which works, but leaves a long, unwanted initial header at the start of the SMS message:</p>
<blockquote>
<p>"android.widget.EditText(98b023VFED..CL. ......ID
0,356-611,534#7f0c00db app:id/..." [Main sms message follows h... | I'm sending an SMS programmatically using the default SMS app. I use the following code which works, but leaves a long, unwanted initial header at the start of the SMS message: "android.widget.EditText(98b023VFED..CL. ......ID 0,356-611,534#7f0c00db app:id/..." [Main sms message follows here.] This header appears to be... | android|sms | 0 | 2016-05-07T23:33:13.857Z | 2,016 | 5 | 23 | 5 | 85 | 0 | 529 | 57 | 2 | 1 | true | true | false | false | false | false | zero |
37,094,842 | Android App OutOfMemory Error | <p>I am writing an Android app that requires large amounts of memory, and is experiencing issues with running out of memory. The app has two activities. The main activity uses a series of buttons that use event handlers to load different images in to ImageViews in the second activity. When the user presses the Android ... | I am writing an Android app that requires large amounts of memory, and is experiencing issues with running out of memory. The app has two activities. The main activity uses a series of buttons that use event handlers to load different images in to ImageViews in the second activity. When the user presses the Android bac... | android|out-of-memory | 0 | 2016-05-07T23:55:01.770Z | 2,016 | 5 | 23 | 5 | 70 | 2 | 1,262 | 29 | 2 | 1 | true | false | false | false | false | false | zero |
37,095,095 | Retrofit with GSON : response.body() return object with null fields | <p>I'm trying to read the following JSON using Retrofit with GSON Library , The problem I have is the list of post returned is null I don't know how to fix this error I checked the naming of classes and everything is correct.</p>
<p>JSON I want to read :</p>
<pre><code>{
"_embedded" : {
"posts" : [ {
"pos... | I'm trying to read the following JSON using Retrofit with GSON Library , The problem I have is the list of post returned is null I don't know how to fix this error I checked the naming of classes and everything is correct. JSON I want to read : [CODE] This is the interface I use : [CODE] The answer I get : Response{pro... | android|gson|retrofit|retrofit2 | 2 | 2016-05-08T00:46:27.133Z | 2,016 | 5 | 0 | 6 | 894 | 1 | 457 | 67 | 4 | 3 | true | false | false | false | false | false | low |
37,095,114 | Viewpager with listview inside | <p>i want to create a viewpager with one layout that contains a listview but i'm always getting this error:</p>
<blockquote>
<p>java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.myapp/com.example.myapp.Join_activity}:
java.lang.NullPointerException: Attempt to invoke virtual method '... | i want to create a viewpager with one layout that contains a listview but i'm always getting this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapp/com.example.myapp.Join_activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.s... | java|android|listview|android-fragments|android-viewpager | 1 | 2016-05-08T00:48:54.987Z | 2,016 | 5 | 0 | 6 | 8,395 | 2 | 705 | 30 | 5 | 4 | true | false | true | false | false | false | low |
37,095,220 | show NavigationView on another activity | <p>I created another basic activity and use intent to call it on main activity. I've set the Hierarchical parent to main activity. How do I show the navigationview again instead of going back to its main activity when the back button is pressed ? Need help.</p>
<p>MainActivity XML code:</p>
<pre><code><android.sup... | I created another basic activity and use intent to call it on main activity. I've set the Hierarchical parent to main activity. How do I show the navigationview again instead of going back to its main activity when the back button is pressed ? Need help. MainActivity XML code: [CODE] My XML code on the second activity ... | java|android | 0 | 2016-05-08T01:08:48.050Z | 2,016 | 5 | 1 | 6 | 367 | 1 | 326 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
37,095,294 | Why is the foreground on my ImageView not centered correctly on the background? | <p>I am currently in the process of creating a music app and have run into a problem with drawing a music stave in the activities. This is what the activities look like without the staves: </p>
<p><a href="https://i.stack.imgur.com/PHQvDl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PHQvDl.png" a... | I am currently in the process of creating a music app and have run into a problem with drawing a music stave in the activities. This is what the activities look like without the staves: Here is the code for one of the activites: [CODE] I made a drawable of a music stave that I am trying to put on top of each image view... | java|xml|android-studio | 0 | 2016-05-08T01:21:15.673Z | 2,016 | 5 | 1 | 6 | 626 | 1 | 741 | 79 | 3 | 2 | true | false | false | false | false | false | zero |
37,095,304 | Gradle Build Fails Due to "Error:Execution failed for task ':app:mergeDebugResources'. > Crunching Cruncher photo.png failed" | <p>I have just recently gotten into android app development.</p>
<p>When I try to run my app on a virtual machine the gradle build fails with the message: "<strong>Error:Execution failed for task ':app:mergeDebugResources'.> Crunching Cruncher citruslogocolor.png failed, see logs</strong>" </p>
<p>(citruslogocolor.p... | I have just recently gotten into android app development. When I try to run my app on a virtual machine the gradle build fails with the message: " Error:Execution failed for task ':app:mergeDebugResources'.> Crunching Cruncher citruslogocolor.png failed, see logs " (citruslogocolor.png is an image file I use on the hom... | java|android|xml|android-layout|drawable | 1 | 2016-05-08T01:23:42.293Z | 2,016 | 5 | 1 | 6 | 381 | 1 | 805 | 125 | 5 | 2 | true | false | false | false | false | false | low |
37,095,422 | Ion tabs rendering differently on desktop versus mobile | <p>I've recently styled my <code>ion-tabs</code>.</p>
<p>They seem to be rendering correctly on desktop but not on mobile.</p>
<p>What am I doing wrong?</p>
<p><strong>On desktop:</strong></p>
<p><a href="https://i.stack.imgur.com/xTSTR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xTSTR.png" a... | I've recently styled my ion-tabs . They seem to be rendering correctly on desktop but not on mobile. What am I doing wrong? On desktop: ion-tabs views correctly. On mobile: ion-tabs goes white. What do I need to do to get both looking the same. I have been looking at this , and apparently I need to make a custom theme,... | android|css|ionic-framework|sass | 0 | 2016-05-08T01:53:04.007Z | 2,016 | 5 | 1 | 6 | 85 | 1 | 419 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
37,095,554 | Mapbox Source Build Doesn't Run or Debug | <p>I've been working for a long long... time attempting to build the most basic project on Android with Mapbox that I can, but so far no luck. </p>
<p>There 2 restrictions on how I build it.</p>
<p>1) Build from source</p>
<p>2) App must be debuggable into C++/C source</p>
<p>I have used the following instructions:... | I've been working for a long long... time attempting to build the most basic project on Android with Mapbox that I can, but so far no luck. There 2 restrictions on how I build it. 1) Build from source 2) App must be debuggable into C++/C source I have used the following instructions: https://github.com/mapbox/mapbox-gl... | android|c++|debugging|sample|mapbox-gl | -1 | 2016-05-08T02:17:52.980Z | 2,016 | 5 | 2 | 6 | 504 | 1 | 2,821 | 40 | 5 | 3 | true | false | false | false | false | true | negative |
37,095,801 | Error:Could not list contents of 'apppath\gms\measurement\R$style.class' | <p>Why is this error preventing me from building the app?
I don;t even understand where is the problem!
my app user google+ login, GCM and google maps and every thing were working perfectly before this error</p>
<pre><code>Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-... | Why is this error preventing me from building the app? I don;t even understand where is the problem! my app user google+ login, GCM and google maps and every thing were working perfectly before this error [CODE] | android|google-maps|google-cloud-messaging|google-signin | 0 | 2016-05-08T03:08:46.467Z | 2,016 | 5 | 3 | 6 | 181 | 1 | 211 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
37,095,937 | Retain values in EditTexts of a fragment while returning | <p>I have an activity where I have put 5 fragments for signup process. First fragment has two edit texts and a textview. Edit texts are for first and last name and text view takes me to next fragment2. Whenn I come back from frag2 to frag 1, those firstname and lastname values disappears. I have tried storing values in... | I have an activity where I have put 5 fragments for signup process. First fragment has two edit texts and a textview. Edit texts are for first and last name and text view takes me to next fragment2. Whenn I come back from frag2 to frag 1, those firstname and lastname values disappears. I have tried storing values in on... | android|android-fragments | 0 | 2016-05-08T03:31:38.910Z | 2,016 | 5 | 3 | 6 | 739 | 2 | 445 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
37,095,944 | Injecting OkHttpClient using Dagger2 | <p>I'd like to be able to inject a new <code>OkHttpClient</code> using Dagger2 but am having a hard time. Most of the tutorials and instructions are written for applications and I'm building an aar (android library).</p>
<p>here's my Component:</p>
<pre><code>@Singleton
@Component(modules = {NetworkModule.class})
pub... | I'd like to be able to inject a new OkHttpClient using Dagger2 but am having a hard time. Most of the tutorials and instructions are written for applications and I'm building an aar (android library). here's my Component: [CODE] here's my module: [CODE] At an entry point of my library I build the component like so: [CO... | android|android-library|dagger-2|aar | 1 | 2016-05-08T03:33:17.570Z | 2,016 | 5 | 3 | 6 | 1,292 | 1 | 439 | 36 | 4 | 3 | true | false | false | false | false | false | low |
37,095,993 | How do I save the state of a Webview Fragment? | <p>I have a Webview Fragment but all the fragments are only in <strong>one activity</strong>. None of the questions asked satisfy my needs because they all involve more than one activity. If I have two <strong>fragments</strong> that both have Webviews, how can I save the state of one Webview, while I look at another.<... | I have a Webview Fragment but all the fragments are only in one activity . None of the questions asked satisfy my needs because they all involve more than one activity. If I have two fragments that both have Webviews, how can I save the state of one Webview, while I look at another. [CODE] } | android|android-fragments|webview|android-spinner | 0 | 2016-05-08T03:42:26.543Z | 2,016 | 5 | 3 | 6 | 236 | 1 | 292 | 46 | 4 | 1 | true | false | false | false | false | false | zero |
37,095,998 | OnClickListener of button in recyclerview acting on wrong view | <p>I have a set of cardviews within a recyclerview. Each cardview contains a button. When the button is clicked, it is supposed to unhide a child of the cardview. However, it insists on unhiding the child with the same ID in the next cardview. I have no idea what's causing this or even what to search for. I'm also pret... | I have a set of cardviews within a recyclerview. Each cardview contains a button. When the button is clicked, it is supposed to unhide a child of the cardview. However, it insists on unhiding the child with the same ID in the next cardview. I have no idea what's causing this or even what to search for. I'm also pretty ... | android | 2 | 2016-05-08T03:43:33.960Z | 2,016 | 5 | 3 | 6 | 128 | 1 | 662 | 62 | 1 | 1 | true | false | false | false | false | false | low |
37,096,033 | Retrieve user entered data in fragment from views | <p>I am moving from frag1 to frag2, in frag1 I have 2 edit texts for first name and last name. I am also validating before going to frag2. But regardless of entering data in edit text it shows me "" value for both the edit texts. Here is the code...</p>
<pre><code> public View onCreateView(LayoutInflater inflater, ... | I am moving from frag1 to frag2, in frag1 I have 2 edit texts for first name and last name. I am also validating before going to frag2. But regardless of entering data in edit text it shows me "" value for both the edit texts. Here is the code... [CODE] | android|android-fragments | 0 | 2016-05-08T03:49:53.347Z | 2,016 | 5 | 3 | 6 | 19 | 2 | 253 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
37,096,058 | Error while Launching activity - Android Studio 2.1 | <p>I'm completely new to android studio, and after hours of trying to figure out how to run an emulator on an AMD CPU, when I finally run (a completely base project btw) it says:</p>
<blockquote>
<p>Unexpected error while executing: am start -n "payne.jackson.test/payne.jackson.test.Main" -a android.intent.action.MA... | I'm completely new to android studio, and after hours of trying to figure out how to run an emulator on an AMD CPU, when I finally run (a completely base project btw) it says: Unexpected error while executing: am start -n "payne.jackson.test/payne.jackson.test.Main" -a android.intent.action.MAIN -c android.intent.categ... | java|android | 1 | 2016-05-08T03:54:44.213Z | 2,016 | 5 | 3 | 6 | 512 | 0 | 1,191 | 51 | 2 | 0 | false | true | false | false | false | false | low |
37,096,097 | Multiple Activities, launching and passing data | <p>I am attempting to create a list of users in an android app. The list is on the MainActivity, with a button which redirects to AddMember. AddMember will take input for one member. I am trying to pass the information back to MainActivity, however it fails before I even get to the AddMemberActivity, when testing. It s... | I am attempting to create a list of users in an android app. The list is on the MainActivity, with a button which redirects to AddMember. AddMember will take input for one member. I am trying to pass the information back to MainActivity, however it fails before I even get to the AddMemberActivity, when testing. It stop... | android|android-activity | 0 | 2016-05-08T04:02:28.577Z | 2,016 | 5 | 4 | 6 | 39 | 1 | 729 | 47 | 2 | 2 | true | false | false | false | false | false | zero |
37,096,148 | TypeAhead not working on Android WebView | <pre><code><input type="text" class="form-control" typeahead-on-select="setDeliveryArea($item)" ng-model="scope.da" placeholder="Set Delivery Location" onfocus="this.placeholder=''" onblur="this.placeholder='Set Delivery Location'" typeahead="a as a.AreaName for a in scope.deliveryAreas | filter:$viewValue | limitTo... | [CODE] Above is the code that I am using to set a textbox to display the list of Autocomplete from the database. While it is working perfectly fine on all browsers on desktop. Its even working on Mobile View on chrome. However, when the same link/page is opened and control is accessed in an Android WebView, it is not w... | android|angularjs|webview|typeahead | 1 | 2016-05-08T04:14:48.550Z | 2,016 | 5 | 4 | 6 | 210 | 0 | 679 | 40 | 4 | 2 | true | true | false | false | false | false | low |
37,096,249 | Execution failed for task ':app:dexDebug' android error | <p>I know this question has been asked previously but still I am not getting the answer for it. The code was working properly but when I tried to integrate it with firebase I started getting this error.</p>
<p>Error:Execution failed for task ':app:dexDebug'.</p>
<blockquote>
<p>com.android.ide.common.process.Proces... | I know this question has been asked previously but still I am not getting the answer for it. The code was working properly but when I tried to integrate it with firebase I started getting this error. Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle.process.int... | java|android|gradle | 0 | 2016-05-08T04:36:21.050Z | 2,016 | 5 | 4 | 6 | 30 | 2 | 542 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
37,096,300 | Save developer specific local settings in Android project | <p>I'm trying to store some developer specific settings locally (out of Git) in my project. For example, we have to work with different server configurations (dev, stage, live etc.). For now, the configurations are hardcoded in our Java code and each time one developer changes one configuration, he needs to undo it bef... | I'm trying to store some developer specific settings locally (out of Git) in my project. For example, we have to work with different server configurations (dev, stage, live etc.). For now, the configurations are hardcoded in our Java code and each time one developer changes one configuration, he needs to undo it before... | android|git | 0 | 2016-05-08T04:46:21.810Z | 2,016 | 5 | 4 | 6 | 106 | 1 | 1,162 | 57 | 2 | 0 | false | false | false | false | false | false | zero |
37,096,313 | Android WebView offline message for if no internet connetion | <p>I am developing an android apps using WebView. I want to show custom message if device has no internet connection. I am new. I did this code but not show custom message as I write on HTML format. Please help me step bye step. I am using android studio 2.1 Thanks advance</p>
<p><div class="snippet" data-lang="js" da... | I am developing an android apps using WebView. I want to show custom message if device has no internet connection. I am new. I did this code but not show custom message as I write on HTML format. Please help me step bye step. I am using android studio 2.1 Thanks advance [CODE] | javascript|android|webview | -1 | 2016-05-08T04:48:26.937Z | 2,016 | 5 | 4 | 6 | 737 | 1 | 277 | 60 | 3 | 1 | true | false | false | false | false | true | negative |
37,096,392 | How to implement zoom and pan using two fingers (both) in this code? | <p>This code loads a picture and puts it in a imageView , then you can draw rectangles on the image, using the canvas.
imageView there are two , one for loading an image , the other to draw rectangles on this . I need to zoom and pan (using two fingers for both) in the image and drawing at the same time , can anyone he... | This code loads a picture and puts it in a imageView , then you can draw rectangles on the image, using the canvas. imageView there are two , one for loading an image , the other to draw rectangles on this . I need to zoom and pan (using two fingers for both) in the image and drawing at the same time , can anyone help ... | android|android-canvas|zooming|pinchzoom|touchimageview | 3 | 2016-05-08T05:02:42.367Z | 2,016 | 5 | 5 | 6 | 837 | 0 | 331 | 68 | 5 | 1 | true | true | false | false | false | false | low |
37,096,479 | Using Retrofit and RxJava, how do I deserialize JSON when it doesn't map directly to a model object? | <p>The API I'm working with returns objects (and their containing objects) in a "flat" format and I'm having trouble getting this to work elegantly with Retrofit and RxJava.</p>
<p>Consider this JSON response for an <code>/employees/{id}</code> endpoint:</p>
<pre><code>{
"id": "123",
"id_to_name": {
"... | The API I'm working with returns objects (and their containing objects) in a "flat" format and I'm having trouble getting this to work elegantly with Retrofit and RxJava. Consider this JSON response for an /employees/{id} endpoint: [CODE] Using Retrofit and RxJava, how do I deserialize this to a Employee object with fi... | android|gson|retrofit|rx-java|rx-android | 2 | 2016-05-08T05:17:07.827Z | 2,016 | 5 | 5 | 6 | 3,065 | 1 | 939 | 100 | 5 | 1 | true | false | true | false | false | false | low |
37,096,547 | How to get data from Edit Text in a RecyclerView? | <p>I have recyclerview with edit text. Each row has a edit text. I am entering values in the edit text manually and after i enter values, I want to get those values in each and every row. I want to get those values to the main activity. There may be 10 to 20 rows in the recyclerview. I want to get all values in those e... | I have recyclerview with edit text. Each row has a edit text. I am entering values in the edit text manually and after i enter values, I want to get those values in each and every row. I want to get those values to the main activity. There may be 10 to 20 rows in the recyclerview. I want to get all values in those edit... | android|android-edittext|android-recyclerview | 13 | 2016-05-08T05:27:37.583Z | 2,016 | 5 | 5 | 6 | 36,230 | 3 | 417 | 49 | 3 | 2 | true | false | true | true | true | false | medium |
37,096,607 | Integration RxJava , Retrofit 2 and Gson in Android | <p>I begin learning mvp in android. but stuck in this problem for one day. Please help me.
I want to send username , password to login api. Server will respone json, and I will use gson to parse to Userinfo object.</p>
<p>This is my class RibotService</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div... | I begin learning mvp in android. but stuck in this problem for one day. Please help me. I want to send username , password to login api. Server will respone json, and I will use gson to parse to Userinfo object. This is my class RibotService [CODE] This is my retrofit settings [CODE] this is method in DataManager class... | android|gson|rx-java|mvp|retrofit2 | 0 | 2016-05-08T05:38:39.983Z | 2,016 | 5 | 5 | 6 | 460 | 0 | 496 | 51 | 5 | 4 | true | true | false | false | false | false | zero |
37,096,675 | Android Facebook invites not working properly | <p>I am using <strong>Simple Facebook</strong>.
Unfortunately I <strong>can't send invites with SimpleFacebook</strong> so I am using <strong>AppInviteDialog</strong> to invite friends.</p>
<pre><code> public void openDialogInvite(final Activity activity) {
String AppURl = "my FB url..."; //Generated from //fb de... | I am using Simple Facebook . Unfortunately I can't send invites with SimpleFacebook so I am using AppInviteDialog to invite friends. [CODE] The dialog open Facebook invite screens: The invite progress bar look like everything is ok But , i get no response in the dialog callback. i thought the problem was my AppLink bec... | android|facebook-android-sdk|android-simple-facebook|facebook-invite-friends | 0 | 2016-05-08T05:49:22.970Z | 2,016 | 5 | 5 | 6 | 535 | 2 | 606 | 45 | 4 | 2 | true | false | false | false | false | false | zero |
37,096,740 | Collecting touch events outside of android app | <p>I'm currently working on an app that requires collecting of sensory data, system information, etc, including touch events. I specifically only need to collect information from ACTION_DOWN. </p>
<p>I can easily implement this within the app's activity/view, but I'm having issues collecting outside of the app itself.... | I'm currently working on an app that requires collecting of sensory data, system information, etc, including touch events. I specifically only need to collect information from ACTION_DOWN. I can easily implement this within the app's activity/view, but I'm having issues collecting outside of the app itself. I've found ... | android|touch | 1 | 2016-05-08T05:58:47.477Z | 2,016 | 5 | 5 | 6 | 94 | 0 | 1,061 | 46 | 2 | 0 | false | true | false | false | false | false | low |
37,096,802 | Android CardView with ListView inside - onTouchListener on CardView not working | <p>I have a cardview with a listview inside. I will need the click item in list view too and I want to be able to move the entire cardview using the ontouchlistener too. I have set a onTouchListener on the cardview but it doesn't work.</p>
<p>Code:</p>
<p>Put this in build.gradle:</p>
<pre><code>compile 'com.android... | I have a cardview with a listview inside. I will need the click item in list view too and I want to be able to move the entire cardview using the ontouchlistener too. I have set a onTouchListener on the cardview but it doesn't work. Code: Put this in build.gradle: [CODE] MainActivity: [CODE] The TOuchedddd never prints... | android|listview|ontouchlistener|android-cardview | 2 | 2016-05-08T06:05:25.813Z | 2,016 | 5 | 6 | 6 | 2,735 | 1 | 631 | 79 | 4 | 3 | true | false | true | false | false | false | low |
37,096,826 | HighCharts JSONArray without quotes | <p>I'm trying to make a line chart in HighCharts, however I'm having some problem binding JSON data to the chart. I need to remove the quotes from the JSON output to pass it into HighChart. The data is being passed from a Java method to the JavaScript file. Is there anyway to remove the double quotes ( "" ) from the ar... | I'm trying to make a line chart in HighCharts, however I'm having some problem binding JSON data to the chart. I need to remove the quotes from the JSON output to pass it into HighChart. The data is being passed from a Java method to the JavaScript file. Is there anyway to remove the double quotes ( "" ) from the array... | javascript|java|android|json|highcharts | 2 | 2016-05-08T06:09:18.513Z | 2,016 | 5 | 6 | 6 | 306 | 1 | 981 | 35 | 5 | 6 | true | false | false | false | false | false | low |
37,096,982 | Navigation Drawer animation is lagging while closing | <p>I going to implement navigation drawer for one of my project. I am able to implement the same. However there is some lag in navigation drawer. Please Suggest.<a href="http://i.stack.imgur.com/J33TC.png" rel="nofollow">here is the image</a></p>
<p>Below is my code</p>
<p>Home_activity.xml</p>
<p>
</p>
<pre><code>... | I going to implement navigation drawer for one of my project. I am able to implement the same. However there is some lag in navigation drawer. Please Suggest. here is the image Below is my code Home_activity.xml [CODE] Home.java [CODE] NavigationFragment.java [CODE] | android|navigation | 1 | 2016-05-08T06:35:15Z | -1 | -1 | -1 | -1 | 1,265 | 2 | 266 | 52 | 2 | 3 | true | false | false | false | false | false | low |
37,097,026 | Could not find support-annotations.jar | <p>I'm trying to follow the instructions on android testing step 7
<a href="https://codelabs.developers.google.com/codelabs/android-testing/#6" rel="nofollow">https://codelabs.developers.google.com/codelabs/android-testing/#6</a></p>
<p>cloned the repo: <code>git clone https://github.com/googlecodelabs/android-testing... | I'm trying to follow the instructions on android testing step 7 https://codelabs.developers.google.com/codelabs/android-testing/#6 cloned the repo: git clone https://github.com/googlecodelabs/android-testing.git -b step-7 Even though I remove every reference to support-annotations, gradle gives the same error and stops... | android|gradle|android-espresso | 0 | 2016-05-08T06:42:46.337Z | 2,016 | 5 | 6 | 6 | 2,306 | 2 | 354 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
37,097,034 | UNEXPECTED TOP-LEVEL EXCEPTION: dex index by using play-services lib | <p>I want to use google map in my application ,this is my gradle code :</p>
<pre><code> compile 'com.android.support:appcompat-v7:23.0.0'
compile files('libs/commons-net-3.3.jar')
compile files('libs/Parse-1.4.3.jar')
compile files('libs/universal-image-loader-1.8.4-with-sources.jar')
compile files('libs/org.apache... | I want to use google map in my application ,this is my gradle code : [CODE] the problem is after adding com.google.android.gms:play-services:7.8.0 , I could not run my application anymore and I get this errors : [CODE] Could you help me ? What is the problem ? It's been 5 hours that I could not sovle this thanks | android|android-build | 0 | 2016-05-08T06:44:54.183Z | 2,016 | 5 | 6 | 6 | 95 | 1 | 313 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
37,097,182 | how to fix Copy other pages data below mainActivity data in Android | <p>I want develop Android application for one website, i fetch website posts from <code>JSON</code> and show in <code>RecyclerView</code>. I show <strong>title</strong>, <strong>image</strong>, <strong>description</strong> and <strong>category</strong> in <code>MainActivity</code> and i want when click on <strong>Categ... | I want develop Android application for one website, i fetch website posts from JSON and show in RecyclerView . I show title , image , description and category in MainActivity and i want when click on Category go to categoryActivity and show this category posts! I write below codes, but when go to the categoryActivity a... | android|android-asynctask|android-json | 0 | 2016-05-08T07:05:13.957Z | 2,016 | 5 | 7 | 6 | 32 | 1 | 968 | 67 | 3 | 4 | true | false | false | false | false | false | zero |
37,097,215 | how to create gridview in viewpager | <p>i want to make image detail gallery with gridview, i have slidingTablayout with 2num, and i dont know how to place gridview in viepager on 2 fragment that i have</p>
<p>here is my code</p>
<p>History_proyek.java</p>
<pre><code>public class History_proyek extends AppCompatActivity {
TabLayout tabLayout;
ViewPage... | i want to make image detail gallery with gridview, i have slidingTablayout with 2num, and i dont know how to place gridview in viepager on 2 fragment that i have here is my code History_proyek.java [CODE] Fragment1.java [CODE] Fragment2.java [CODE] layout_history.xml [CODE] frag_history1.xml [CODE] frag_history2.xml [C... | android|android-fragments|gridview|android-viewpager | 2 | 2016-05-08T07:10:01.723Z | 2,016 | 5 | 7 | 6 | 1,220 | 0 | 324 | 35 | 4 | 6 | true | true | false | false | false | false | low |
37,097,222 | Runtime permissions not working form second time | <p>I was able to build application with run time permission. At splash screen 1st time it shows the splash screen from second time the app struck at the splash screen. This is my code. I followed this link.</p>
<p><a href="https://developer.android.com/training/permissions/requesting.html" rel="nofollow noreferrer">ht... | I was able to build application with run time permission. At splash screen 1st time it shows the splash screen from second time the app struck at the splash screen. This is my code. I followed this link. https://developer.android.com/training/permissions/requesting.html i have made it. but only 1 time it runs perfectly... | android|android-permissions | 3 | 2016-05-08T07:10:47.963Z | 2,016 | 5 | 7 | 6 | 1,001 | 1 | 372 | 48 | 2 | 1 | true | false | false | false | false | false | low |
37,097,304 | how to parse JSON response from server and use it in comparison | <p>I want to parse JSON response from server but I m unable to do it. please help me</p>
<p>server response for connection success is </p>
<pre><code>Database connection success....{"server_response":[{"code":"reg_true","0":"message=>Registration Success...Thank you....."}]}
</code></pre>
<p>I want to parse it a... | I want to parse JSON response from server but I m unable to do it. please help me server response for connection success is [CODE] I want to parse it and use server_response and code values in comparing so I can execute IF statement When I debug my code. It shows that json = Database connection success....{"server_resp... | java|android|json|parsing|server-response | 2 | 2016-05-08T07:21:02.557Z | 2,016 | 5 | 7 | 6 | 789 | 1 | 480 | 63 | 5 | 2 | true | false | false | false | false | false | low |
37,097,482 | How to keep FloatingActionButton and EditText above keyboard at the same time? | <p>I'm currently struggling with my layout and am stuck. I have two EditTexts, the second one can be multi line and I want my layout to adjust when new lines are added and the keyboard is shown. And I also want my FAB to stay above the keyboard all the time. Essentially I want to have the same behavior as in Google Kee... | I'm currently struggling with my layout and am stuck. I have two EditTexts, the second one can be multi line and I want my layout to adjust when new lines are added and the keyboard is shown. And I also want my FAB to stay above the keyboard all the time. Essentially I want to have the same behavior as in Google Keep w... | android|android-layout|floating-action-button | 1 | 2016-05-08T07:47:00.583Z | 2,016 | 5 | 7 | 6 | 3,651 | 1 | 771 | 78 | 3 | 4 | true | false | true | false | false | false | low |
37,097,662 | Android Spinner - How to position dropdown arrow as close to text as possible when options have different length? | <p>The options in my spinner has different length and currently the dropdown arrow is positioned far to the right based on the longest option, as shown in the screenshot below.</p>
<p><a href="https://i.stack.imgur.com/kt0ajm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kt0ajm.png" alt="enter image descri... | The options in my spinner has different length and currently the dropdown arrow is positioned far to the right based on the longest option, as shown in the screenshot below. Is it possible to move the dropdown arrow so that it is dynamically positioned based on currently selected option? Especially when the first optio... | android|android-spinner | 15 | 2016-05-08T08:12:20.517Z | 2,016 | 5 | 8 | 6 | 9,827 | 2 | 498 | 113 | 2 | 0 | false | false | true | false | true | false | medium |
37,097,774 | Xamarin Android Display a stream from the camera | <p>I'm new in Xamarin and I try to implement my camera stream into a xaml layout.
This example of Xamarin will set the complete textureview as layout so I'm not able to add some extra features like buttons etc.</p>
<p><a href="https://developer.xamarin.com/recipes/android/other_ux/textureview/display_a_stream_from_the... | I'm new in Xamarin and I try to implement my camera stream into a xaml layout. This example of Xamarin will set the complete textureview as layout so I'm not able to add some extra features like buttons etc. https://developer.xamarin.com/recipes/android/other_ux/textureview/display_a_stream_from_the_camera/ [CODE] For ... | android|xaml|xamarin|android-camera|textureview | 2 | 2016-05-08T08:25:51.577Z | 2,016 | 5 | 8 | 6 | 2,993 | 1 | 459 | 48 | 5 | 2 | true | false | true | false | false | false | low |
37,097,872 | PDO query returns no result when querying the mysql database | <p>Im developing an Android app which uses mysql database to store information. When I have the following function in my php code:</p>
<pre><code>/*
* Get User details
*
*/
public function getUserDetailsEse($email)
{
$stmt = $this->conn->prepare("
SELECT u.title
, u.name
, u.surname
, s.reg... | Im developing an Android app which uses mysql database to store information. When I have the following function in my php code: [CODE] In which I want to fetch those details from the mysql database,then display them in my sqlite database to be used inside the app. I then call the function using: [CODE] When i run the q... | php|android|mysql|sqlite|pdo | 1 | 2016-05-08T08:38:05.313Z | 2,016 | 5 | 8 | 6 | 57 | 1 | 482 | 60 | 5 | 2 | true | false | false | false | false | false | low |
37,097,881 | TextView is not scrolling smoothly | <p>I tried using scrollView with the textView but it is not working smoothly. In the code, the textView i want to scroll is "writeCodeTV"</p>
<p><strong>activity_program.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"... | I tried using scrollView with the textView but it is not working smoothly. In the code, the textView i want to scroll is "writeCodeTV" activity_program.xml [CODE] Also used setMovementMethod for the TextView ProgramActivity.java [CODE] What am I possibly doing wrong? | android|scroll|textview|scrollview | 0 | 2016-05-08T08:39:00.740Z | 2,016 | 5 | 8 | 6 | 698 | 1 | 267 | 34 | 4 | 2 | true | false | false | false | false | false | zero |
37,097,890 | Customizing tablayout | <p>I have a tablayout in my app that looks like this:</p>
<p><a href="https://i.stack.imgur.com/xBsoB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xBsoB.png" alt="enter image description here"></a></p>
<p>I want to make it look something like this:</p>
<p><a href="https://i.stack.imgur.com/v7rY... | I have a tablayout in my app that looks like this: I want to make it look something like this: I want the middle icon to be a bit bigger and half outside the tablayout container. I have my tablayout setup with a viewpager with the icons set in the following way: [CODE] Is it possible to do this? | android|android-tablayout | 0 | 2016-05-08T08:39:59.300Z | 2,016 | 5 | 8 | 6 | 127 | 0 | 296 | 21 | 2 | 1 | true | true | false | false | false | false | zero |
37,098,089 | Android - emulator-x86.exe has stopped working | <p><strong>My problem :</strong> I am using a less speed internet so when i reinstalled my windows 8.I Copied the sdk and .android folder to avoid installing updates.I installed the fresh android studio and linked the sdk and .android folder using environment variables.</p>
<p>When i tried to run my android app it sho... | My problem : I am using a less speed internet so when i reinstalled my windows 8.I Copied the sdk and .android folder to avoid installing updates.I installed the fresh android studio and linked the sdk and .android folder using environment variables. When i tried to run my android app it shows the error "emulator-x86.e... | android|android-emulator | 0 | 2016-05-08T09:03:37.227Z | 2,016 | 5 | 9 | 6 | 3,220 | 1 | 1,121 | 46 | 2 | 0 | false | false | true | false | false | false | zero |
37,098,101 | Display Dialog only on App Upgrade | <p>I want to verify a scenario where-in the app is upgraded to latest version and then perform an action. Consider the version of the app is 2.4 on the user's phone. He/She upgrades to the latest version (2.5) from Play Store. I will check if it is the first run after upgrade and show a dialog. (I'm using the solution ... | I want to verify a scenario where-in the app is upgraded to latest version and then perform an action. Consider the version of the app is 2.4 on the user's phone. He/She upgrades to the latest version (2.5) from Play Store. I will check if it is the first run after upgrade and show a dialog. (I'm using the solution giv... | android | 1 | 2016-05-08T09:05:36.020Z | 2,016 | 5 | 9 | 6 | 513 | 2 | 938 | 34 | 1 | 0 | false | false | false | false | false | false | low |
37,098,140 | Android nested linear layout for custom design | <p>I want to add two linear layouts after one layouts to an activity programatically each of same width. the problem is i am not able to set the weights of these layouts programatically. I could do this within xml, but I want to do this in program. here is what i want: </p>
<p><a href="https://i.stack.imgur.com/OA3oK.... | I want to add two linear layouts after one layouts to an activity programatically each of same width. the problem is i am not able to set the weights of these layouts programatically. I could do this within xml, but I want to do this in program. here is what i want: first button contains full width of screen but after ... | android|nested | 0 | 2016-05-08T09:10:32.317Z | 2,016 | 5 | 9 | 6 | 1,479 | 2 | 516 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
37,098,143 | how to properly handle recycler view in a fragments lifecycle? | <p>Hi I have a tab layout which inflates a bunch of fragments through a viewpager each fragment instantiates a bunch of views everything works fine but there is one problem if i swipe through a few fragments and then swipe back the fragments go through there lifecycle of being detached and attached and setting up its v... | Hi I have a tab layout which inflates a bunch of fragments through a viewpager each fragment instantiates a bunch of views everything works fine but there is one problem if i swipe through a few fragments and then swipe back the fragments go through there lifecycle of being detached and attached and setting up its view... | android|android-fragments|android-recyclerview|android-lifecycle | 0 | 2016-05-08T09:10:42.643Z | 2,016 | 5 | 9 | 6 | 2,582 | 3 | 1,043 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
37,098,197 | Unable to start activity ComponentInfo... java.lang.NullPointerException | <p>My application was running perfect then suddenly error appear and i dont know what to do.. i apply different solution but nothing help.. i am making view pager with fragment and when i add button in my fragment then this error come after this i remove the button but error is not going..</p>
<p>slider_activity class... | My application was running perfect then suddenly error appear and i dont know what to do.. i apply different solution but nothing help.. i am making view pager with fragment and when i add button in my fragment then this error come after this i remove the button but error is not going.. slider_activity class [CODE] sli... | android | 1 | 2016-05-08T09:17:04.773Z | 2,016 | 5 | 9 | 6 | 5,011 | 1 | 356 | 72 | 1 | 3 | true | false | true | false | false | false | low |
37,098,334 | Setting autoWebview: ' true' at protractor config.js file causing machine logout, ubuntu 16.04 | <p>Setting autoWebview: ' true' at protractor config file causing system logout, ubuntu 16.4</p>
<p>This is my config file:</p>
<pre><code>exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['demo.js'],
capabilities: {
platformName : 'android',
platformVersion : '... | Setting autoWebview: ' true' at protractor config file causing system logout, ubuntu 16.4 This is my config file: [CODE] If I am not setting autoWebview: ' true', then I am getting below issue: [CODE] And below is spec.js file content: [CODE] Please, somebody help me out. | android|protractor|appium | 6 | 2016-05-08T09:33:36.857Z | 2,016 | 5 | 9 | 6 | 527 | 2 | 272 | 94 | 3 | 3 | true | false | false | false | false | false | medium |
37,098,347 | how to use gson 2.0 on - onResponse from Retrofit 2.0 | <p>i'm doing an http call using the new retrofit 2.0,
and getting a callback,
i want to use gson 2.0 library to parse that json obj and to be able to do </p>
<pre><code>jsonData.sector[2].sectorOne
</code></pre>
<p>this is my callback: </p>
<pre><code>retrofitApi.Factory.getInstance().getCallData().enqueue(new Call... | i'm doing an http call using the new retrofit 2.0, and getting a callback, i want to use gson 2.0 library to parse that json obj and to be able to do [CODE] this is my callback: [CODE] this is how my callback will look like [CODE] i'm using : [CODE] i looked everywhere on how to do this, but i couldn't find a simple so... | android|json|gson|retrofit | -1 | 2016-05-08T09:34:36.753Z | 2,016 | 5 | 9 | 6 | 1,248 | 1 | 388 | 53 | 4 | 4 | true | false | false | false | false | true | negative |
37,098,368 | Convert multidimensional java array list to string, store and restore | <p>I am building a program that randomly generates multidimensional list arrays of the type :</p>
<p><code>ArrayList(ArrayList(ArrayList(String)));</code></p>
<p>My challenge is to find a way to save and restore these array lists once they have been (randomly) generated. I believe one solution is to convert them to a... | I am building a program that randomly generates multidimensional list arrays of the type : ArrayList(ArrayList(ArrayList(String))); My challenge is to find a way to save and restore these array lists once they have been (randomly) generated. I believe one solution is to convert them to a string and restore the array fr... | java|android|arrays | 0 | 2016-05-08T09:36:54.377Z | 2,016 | 5 | 9 | 6 | 201 | 2 | 469 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
37,098,424 | Method called after release while destroying service in Android | <p>I am working on small app and need to blink flash light on incoming call. I have written a broadcast receiver through which I call a service for blinking the flash. However when the phone state changes, i call the stopService code through the receiver.
It's giving me error when destroying the service.</p>
<pre><co... | I am working on small app and need to blink flash light on incoming call. I have written a broadcast receiver through which I call a service for blinking the flash. However when the phone state changes, i call the stopService code through the receiver. It's giving me error when destroying the service. [CODE] Here is my... | android|android-camera|android-service | 1 | 2016-05-08T09:44:52.710Z | 2,016 | 5 | 9 | 6 | 75 | 0 | 360 | 63 | 3 | 2 | true | true | false | false | false | false | low |
37,098,433 | Retrieving the wrong selected radiobutton in a multi-fragmented viewpager | <p>I'm a long time lurker trying to learn Android coding (with Android Studio). So far I have solved all my issues just by googling them. But now I am really desperate, so I hope someone can help me. </p>
<p><strong>I am trying to code a quiz</strong>:
I use a ViewPager to create a number of fragments (here 5). The fi... | I'm a long time lurker trying to learn Android coding (with Android Studio). So far I have solved all my issues just by googling them. But now I am really desperate, so I hope someone can help me. I am trying to code a quiz : I use a ViewPager to create a number of fragments (here 5). The first fragment (StartView.java... | java|android|android-fragments|android-viewpager | 1 | 2016-05-08T09:45:26.827Z | 2,016 | 5 | 9 | 6 | 878 | 1 | 2,338 | 73 | 4 | 3 | true | false | false | false | false | false | low |
37,098,453 | ValueError: unconverted data remains: +00:00 | <p>i'm trying to build an API using eve.
All is good when i test my api using 'POSTMAN', but when i use android application i have this log at PyCharm.
i'm using Volley as HTTP library.
thank you for help</p>
<pre><code>127.0.0.1 - - [08/May/2016 10:37:29] "GET /accounts HTTP/1.1" 500 -
Traceback (most recent call la... | i'm trying to build an API using eve. All is good when i test my api using 'POSTMAN', but when i use android application i have this log at PyCharm. i'm using Volley as HTTP library. thank you for help [CODE] | android|python|eve | 2 | 2016-05-08T09:47:07.787Z | 2,016 | 5 | 9 | 6 | 4,420 | 1 | 208 | 44 | 3 | 1 | true | false | true | false | false | false | low |
37,098,465 | Android Bouncing Ball using Canvas | <p>This is what i currently have in my MainActivity.java.</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MyBall ball = new MyBall(this);
setContentView(ball);
}
}
</code... | This is what i currently have in my MainActivity.java. [CODE] and this is my canvas class [CODE] I want the move from the upper left, to the middle right, middle left, to the lower right and then cycle back. I am also having problems when i change the orientation to landscape because the width of the canvas changes and... | android|bitmap|android-canvas|drawable | 1 | 2016-05-08T09:47:45.767Z | 2,016 | 5 | 9 | 6 | 4,995 | 2 | 515 | 34 | 4 | 3 | true | false | true | false | false | false | low |
37,098,519 | When not collapsed some part of the the toolbar is visible over the ImageView of CollapsingToolbarLayout | <p>The CollapsingToolbarView works perfectly fine, but there is this unwanted strip on the ImageView of the collapsing toolbar.</p>
<p>As you can see below there is a red strip (possibly toolbar) after the status bar. How do I get rid of it?</p>
<p><a href="https://i.stack.imgur.com/81ufKm.png" rel="nofollow noreferr... | The CollapsingToolbarView works perfectly fine, but there is this unwanted strip on the ImageView of the collapsing toolbar. As you can see below there is a red strip (possibly toolbar) after the status bar. How do I get rid of it? Below is the relevant xml file: fragment_movie.xml [CODE] The theme for the parent activ... | android|xml|android-layout|android-coordinatorlayout|android-collapsingtoolbarlayout | 1 | 2016-05-08T09:54:38.700Z | 2,016 | 5 | 9 | 6 | 1,660 | 2 | 380 | 104 | 5 | 1 | true | false | false | false | false | false | low |
37,098,548 | Testing Accessibility on Emulated Device (Marshmallow) | <p>I want to test the accessibility of my app in emulator (particularly <code>Talkback</code>) but it seems that the option is missing in emulator. Here is the screen shot from the emulator in accessibility settings:</p>
<p><a href="https://i.stack.imgur.com/dYhODm.png" rel="noreferrer"><img src="https://i.stack.imgur.... | I want to test the accessibility of my app in emulator (particularly Talkback ) but it seems that the option is missing in emulator. Here is the screen shot from the emulator in accessibility settings: There are two options "ClockBack" and "QueryBack" which I couldn't find on my phone with the same ... | android|android-emulator|android-6.0-marshmallow|talkback | 48 | 2016-05-08T09:58:00.177Z | 2,016 | 5 | 9 | 6 | 33,443 | 6 | 714 | 54 | 4 | 0 | false | false | true | true | true | false | high |
37,098,557 | C++ WinSock Bluetooth Connection - AT Command - Error Received | <p>This is a continuation of this Question: <a href="https://stackoverflow.com/questions/37020491/programming-for-bluetooth-in-winsock-a-solution-needed">https://stackoverflow.com/questions/37020491/programming-for-bluetooth-in-winsock-a-solution-needed</a></p>
<p>I am not strong in C++!</p>
<p>The Lib/Header files c... | This is a continuation of this Question: https://stackoverflow.com/questions/37020491/programming-for-bluetooth-in-winsock-a-solution-needed I am not strong in C++! The Lib/Header files can be found here C:\Program Files (x86)\Windows Kits\8.1\Include\um which is part of the Windows SDK Kit here: Windows Software Devel... | android|c++|windows|bluetooth | 2 | 2016-05-08T09:59:14.327Z | 2,016 | 5 | 9 | 6 | 1,587 | 1 | 818 | 62 | 4 | 2 | true | false | false | false | false | false | low |
37,098,658 | Problems With ScrollView Activity With Android Studio | <p>I am new to the Android world, and in this forum, and recently I am learning Java, and Android Studio and I have a problem that afflicts me for quite a while</p>
<p>I created two Activity, one with a simple button and another with ScrollView.
the first activity has a button that creates a new Intent and clicking th... | I am new to the Android world, and in this forum, and recently I am learning Java, and Android Studio and I have a problem that afflicts me for quite a while I created two Activity, one with a simple button and another with ScrollView. the first activity has a button that creates a new Intent and clicking through start... | java|android|android-studio | -1 | 2016-05-08T10:14:04.013Z | 2,016 | 5 | 10 | 6 | 299 | 3 | 555 | 53 | 3 | 1 | true | false | false | false | false | true | negative |
37,098,680 | Unable to restore RecyclerView's position/state | <p>Whenever I move from <code>DetailsActivity</code> to <code>MainActivity</code> the RecyclerView is reset and list is always shown from the top position.</p>
<p>Full source code can be seen <a href="https://github.com/sudhirkhanger/PopularMovies" rel="nofollow noreferrer">here</a>. The code is still largely a work i... | Whenever I move from DetailsActivity to MainActivity the RecyclerView is reset and list is always shown from the top position. Full source code can be seen here . The code is still largely a work in progress. [CODE] MainActivity is as follows. [CODE] I have tried setting saving up RecyclerView's state like shown in thi... | android|android-fragments|android-activity|android-recyclerview | 1 | 2016-05-08T10:17:19.770Z | 2,016 | 5 | 10 | 6 | 261 | 2 | 600 | 47 | 4 | 2 | true | false | false | false | false | false | low |
37,098,783 | App slow ONLY on Samsung Galaxy S7 Edge with OutOfMemoryException | <p>I'm debuggin my app on several device, including an Oppo Find 7a (Android 6.0.1, Snapdragon 801 and 2GB of RAM), a Samsung Galaxy S5 mini(Android 5.1, Exynos something and 1.5GB of RAM), an old Samsung tablet (Android IV.IV.I, Hamster on a wheel, 3 candy) as well as a just bought Samsung Galaxy S7 Edge (Android 6.0.... | I'm debuggin my app on several device, including an Oppo Find 7a (Android 6.0.1, Snapdragon 801 and 2GB of RAM), a Samsung Galaxy S5 mini(Android 5.1, Exynos something and 1.5GB of RAM), an old Samsung tablet (Android IV.IV.I, Hamster on a wheel, 3 candy) as well as a just bought Samsung Galaxy S7 Edge (Android 6.0.1, ... | java|android|performance | 2 | 2016-05-08T10:28:26.403Z | 2,016 | 5 | 10 | 6 | 729 | 1 | 1,211 | 65 | 3 | 0 | false | false | false | false | false | false | low |
37,098,802 | Fill fields in webview programmatically | <p>I was trying to insert values into fields in a webpage loaded inside a webview .</p>
<p><strong><em>The exact thing i was doing was this -</em></strong></p>
<pre><code>String date = "5/8/1994";
webview.loadUrl("javascript:var uselessvar_a =document.getElementById('dpStudentdob_dateInput').value='" + date + "';");
... | I was trying to insert values into fields in a webpage loaded inside a webview . The exact thing i was doing was this - [CODE] Problem So this is suppose to insert the value into the field into the given id. and it gives me the exact result , it insert into the field. but when the submit button is pressed the error is ... | javascript|java|android|webview | 0 | 2016-05-08T10:30:23.013Z | 2,016 | 5 | 10 | 6 | 714 | 1 | 758 | 39 | 4 | 2 | true | false | false | false | false | false | zero |
37,098,834 | How to get access to edit public class CompactCalendarView.java file ? (Android CompactCalendarView library) | <p>So here is the situation. I'm using Android Studio and making calendar app with CompactCalendarView library (<a href="https://github.com/SundeepK/CompactCalendarView" rel="nofollow">https://github.com/SundeepK/CompactCalendarView</a>), I added <code>compile 'com.github.sundeepk:compact-calendar-view:1.8.3'</code> to... | So here is the situation. I'm using Android Studio and making calendar app with CompactCalendarView library ( https://github.com/SundeepK/CompactCalendarView ), I added compile 'com.github.sundeepk:compact-calendar-view:1.8.3' to my dependencies and everything works fine. But my problem is that I want to add my code to... | android|view|calendar | 0 | 2016-05-08T10:34:22.253Z | 2,016 | 5 | 10 | 6 | 1,035 | 1 | 875 | 108 | 3 | 1 | true | false | false | false | false | false | zero |
37,098,857 | No Connection to GooglePlayServices from AVD | <p>I am currently trying to access the GooglePlayServices from an API 23 AVD. However, every time I attempt to connect, the AVD responds that there is no internet connection.</p>
<p>I have asked for permission in my Android Manifest, and I believe have made a valid GoogleApiClient, so currently I am not quite sure wha... | I am currently trying to access the GooglePlayServices from an API 23 AVD. However, every time I attempt to connect, the AVD responds that there is no internet connection. I have asked for permission in my Android Manifest, and I believe have made a valid GoogleApiClient, so currently I am not quite sure what the probl... | android|google-play-services | 0 | 2016-05-08T10:36:21.600Z | 2,016 | 5 | 10 | 6 | 119 | 0 | 417 | 44 | 2 | 2 | true | true | false | false | false | false | zero |
37,098,897 | AppCompatActivity crashing with embedded YouTube videos | <p>For some reason, AppCompatActivity refuses to let me embed Youtube videos even though I am using the SupportFragment activity. The app crashes every time an activity contains a Youtube fragment. How can I fix this?</p>
<pre><code>public class Insane1x1 extends AppCompatActivity implements YouTubePlayer.OnInitialize... | For some reason, AppCompatActivity refuses to let me embed Youtube videos even though I am using the SupportFragment activity. The app crashes every time an activity contains a Youtube fragment. How can I fix this? [CODE] And here's the xml file: [CODE] Is it the YouTubePlayer that is crashing the app, when it is cuing... | android|youtube | 2 | 2016-05-08T10:41:06.547Z | 2,016 | 5 | 10 | 6 | 890 | 1 | 370 | 55 | 2 | 2 | true | false | false | false | false | false | low |
37,098,956 | YouTubeAndroidPlayerAPI can't play some videos | <p>-- Update 09/05/2016 17:10 --
The problem seems related to the date of publication of the video... In the last week of April I posted many videos on YouTube, those published up to 19:00 of April 27 work properly, while those charged by 21:15 on the same day have the issue discussed, as if between 19 and 21 of April ... | -- Update 09/05/2016 17:10 -- The problem seems related to the date of publication of the video... In the last week of April I posted many videos on YouTube, those published up to 19:00 of April 27 work properly, while those charged by 21:15 on the same day have the issue discussed, as if between 19 and 21 of April 27 ... | android|video|youtube|youtube-data-api|android-youtube-api | 11 | 2016-05-08T10:48:25.643Z | 2,016 | 5 | 10 | 6 | 2,766 | 1 | 1,877 | 46 | 5 | 5 | true | false | true | false | true | false | medium |
37,098,997 | Out of memory with jack | <p>I'm testing the new compilation chain to start using lambdas.</p>
<p>My <code>build.gradle</code> file contains:</p>
<pre><code>android {
...
compileSdkVersion 23
buildToolsVersion "24 rc3"
dexOptions {
jumboMode true
}
defaultConfig {
applicationId "my.app.id"
min... | I'm testing the new compilation chain to start using lambdas. My build.gradle file contains: [CODE] I'm using Android Studio 2.1.1. When I build the app the compilation takes ages and then ends with an Out of memory error: Execution failed for task ':app:compileAppNameJavaWithJack'. java.lang.RuntimeException: java.lan... | android|out-of-memory|jack-compiler | 3 | 2016-05-08T10:54:47.893Z | 2,016 | 5 | 10 | 6 | 1,260 | 2 | 749 | 23 | 3 | 2 | true | false | false | false | false | false | low |
37,099,196 | Using Volley to Parse an array from PHP into Android | <p>I am unable to find any resources about parsing an array into my android application from PHP. I am using Volley to handle the connection.</p>
<p>At the moment I have an array in the PHP script on the web server containing connections to a database which puts the data from MySQL query into the array.</p>
<pre><cod... | I am unable to find any resources about parsing an array into my android application from PHP. I am using Volley to handle the connection. At the moment I have an array in the PHP script on the web server containing connections to a database which puts the data from MySQL query into the array. [CODE] I am able to conne... | java|android|arrays|android-volley | 0 | 2016-05-08T11:16:25.123Z | 2,016 | 5 | 11 | 6 | 679 | 1 | 797 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
37,099,232 | NoClassDefError com.liferay.mobile.screens.base.interactor.JSONObjectCallback in Liferay Screens Android | <p>I am using Liferay Screens in my Android Mobile app, together with Liferay Android Mobile SDK.
I have put a LoginScreenlet into my activity. It shows correctly, but when I click the Login button, I get this error:</p>
<pre><code>05-08 10:58:37.681 9296-9296/com.mimacom.lrhc E/AndroidRuntime: FATAL EXCEPTION: main
... | I am using Liferay Screens in my Android Mobile app, together with Liferay Android Mobile SDK. I have put a LoginScreenlet into my activity. It shows correctly, but when I click the Login button, I get this error: [CODE] I am trying this on Genymotion emulator, Android 4.1.1 (Level 16). My app's gradle file: [CODE] I h... | android|gradle|dependencies|liferay | 0 | 2016-05-08T11:20:06.100Z | 2,016 | 5 | 11 | 6 | 72 | 1 | 594 | 104 | 4 | 2 | true | false | false | false | false | false | zero |
37,099,239 | Android studio - ArrayList into ListView conflict | <p>I did not understand the Error i am getting;</p>
<p><a href="https://i.stack.imgur.com/9i6fO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9i6fO.png" alt="enter image description here"></a></p>
<p>my elements declared as following;</p>
<pre><code>ListView listViewLocations;
private ArrayAdapt... | I did not understand the Error i am getting; my elements declared as following; [CODE] and inside onCreate; [CODE] then the method displayed in the picture. In my Stacktrace i made sure to log the final ArrayList by commenting the code and adding the log.i statement in order to confirm the retrieval of Data, and it is ... | java|android|listview|arraylist | 0 | 2016-05-08T11:21:08.097Z | 2,016 | 5 | 11 | 6 | 193 | 1 | 675 | 49 | 4 | 5 | true | false | false | false | false | false | zero |
37,099,344 | Can't Get the selected value of spinner from my custom listview adapter in xamarin. C# | <p>Xamarin Help .</p>
<p>Can't Get selected value for spinner in my custom listview adapter.</p>
<p>MyListViewAdapter.cs</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Android.App;
using Android.Content;
using Android.OS;
usin... | Xamarin Help . Can't Get selected value for spinner in my custom listview adapter. MyListViewAdapter.cs [CODE] Main Activity.cs [CODE] I get the default value at position 0 but not the value which i have selected. when i place a breakpoint in mylistviewadapter i get the selected value position every time i select a new... | c#|android|xamarin|xamarin.android | 1 | 2016-05-08T11:34:35.303Z | 2,016 | 5 | 11 | 6 | 1,509 | 1 | 387 | 86 | 4 | 2 | true | false | false | false | false | false | low |
37,099,401 | Android WebView crash on Back press twice | <p>I have a WebView, which crashes if I double press the Back button when the view can go Back. What happens, is that on first Back press, it causes the page to go back (which causes the loading of the previous page (Page A). Then the second onKeyDown event comes and kills the WebView (as expected). The problem is that... | I have a WebView, which crashes if I double press the Back button when the view can go Back. What happens, is that on first Back press, it causes the page to go back (which causes the loading of the previous page (Page A). Then the second onKeyDown event comes and kills the WebView (as expected). The problem is that af... | android|webview | 0 | 2016-05-08T11:39:50.143Z | 2,016 | 5 | 11 | 6 | 569 | 2 | 579 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
37,099,436 | JSONException: Not a primitive array in parsing JSONArray | <p>JSON I'm dealing with:</p>
<pre><code>[
{
"score":2.860397,
"show": {
"id": 82,
"url": "http://www.tvmaze.com/shows/82/game-of-thrones",
"name": "Game of Thrones",
"type": "Scripted",
"language": "English",
"genres": [
"Drama", "Adventure", "Fantasy"
],
... | JSON I'm dealing with: [CODE] My code: [CODE] I've seen there are many questions like that but most of them deal with JSONObject not JSONArray and I didn't find solution that would work for me. I'm still getting error mentioned in title. Any help? UPDATE: Tried everything except gson so far and still doesn't work. Stac... | android|json | 2 | 2016-05-08T11:43:19.973Z | 2,016 | 5 | 11 | 6 | 8,287 | 4 | 530 | 57 | 2 | 4 | true | false | true | false | false | false | low |
37,099,493 | Android games leaderboard broken while testing | <p>I have successfully integrated the Google Games API in my app, and now I can see my leaderboard and achievements as described <a href="https://developers.google.com/games/services/android/leaderboards#before_you_begin" rel="nofollow noreferrer">here</a> and <a href="https://developers.google.com/games/services/andro... | I have successfully integrated the Google Games API in my app, and now I can see my leaderboard and achievements as described here and here respectively. However, when trying to submit a score using this code: [CODE] for some reason the leaderboard stops appearing. Actually it starts loading, and then directly disappea... | android|testing|google-play-games|leaderboard | 2 | 2016-05-08T11:50:44.033Z | 2,016 | 5 | 11 | 6 | 1,322 | 1 | 973 | 46 | 4 | 1 | true | false | false | false | false | false | low |
37,099,522 | Why is CursorLoader onLoaderReset() called after device rotation? | <p>I have a main Activity A that uses a CursorLoader to query a DB. This I create in the activity onCreate() method:</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
getSupportLoaderManager().initLoader(LOADER_MEASUREMENTS, null, A.this);
}
</code>... | I have a main Activity A that uses a CursorLoader to query a DB. This I create in the activity onCreate() method: [CODE] Activity A also implements the 3 callbacks for the CursorLoader: [CODE] When I rotate the device, I see the correct lifecycle methods run: [CODE] Then I open a sub-Activity B and rotate my device. Wh... | android|reset|loader | 11 | 2016-05-08T11:53:45.963Z | 2,016 | 5 | 11 | 6 | 1,632 | 3 | 547 | 65 | 3 | 4 | true | false | false | false | true | false | medium |
37,099,546 | setMyLocationEnabled is not working ( not localising me) | <p>Am wroking with google map v2 on android and i set setMyLocationEnabled(true)</p>
<p>but there is no action or anything , it doesn't locate.</p>
<p>here is a part of my code , how can i fix it please :</p>
<pre><code>public class Location extends Activity {
private GoogleMap mMap;
GoogleApiClient mGoogleA... | Am wroking with google map v2 on android and i set setMyLocationEnabled(true) but there is no action or anything , it doesn't locate. here is a part of my code , how can i fix it please : [CODE] | android|google-maps|localization|android-maps-v2 | 1 | 2016-05-08T11:56:02.200Z | 2,016 | 5 | 11 | 6 | 2,067 | 0 | 194 | 56 | 4 | 1 | true | true | false | false | false | false | low |
37,099,592 | E/SQLiteLog: (1) near "-": syntax error when insert data in android app | <p>I'm getting this error in my app when I try to write to database E/SQLiteLog: (1) near "-": syntax error
please can you help me...
Here is my code for SQLite databse. I am attaching the complete code for database class here</p>
<pre><code>import android.content.ContentValues;
import android.content.Context;
import ... | I'm getting this error in my app when I try to write to database E/SQLiteLog: (1) near "-": syntax error please can you help me... Here is my code for SQLite databse. I am attaching the complete code for database class here [CODE] | java|android|sqlite|android-sqlite | -1 | 2016-05-08T12:00:22.790Z | 2,016 | 5 | 12 | 6 | 689 | 1 | 230 | 71 | 4 | 1 | true | false | false | false | false | true | negative |
37,099,619 | Arraylist not working properly | <p>I have this code in Android Studio:</p>
<pre><code> for (ArrayList<Bitmap> arr : imgs) {
for (Bitmap img : arr) {
if (img != null) {
arrayList.add(img.getHeight());
}
else {
ar... | I have this code in Android Studio: [CODE] With imgs declared and filled earlier and heights declared as an [CODE] What I get is: [CODE] And so on. Every time it doesn't add the value to the array but it replaces all the values in it with the new one. What's wrong? | java|android|arraylist | 0 | 2016-05-08T12:03:11.003Z | 2,016 | 5 | 12 | 6 | 407 | 1 | 265 | 30 | 3 | 3 | true | false | false | false | false | false | zero |
37,099,653 | Android camera fails taking a picture every second | <p>Let me start by saying that if image shooting interval is anything more than 1 second it works. For example taking a picture every 2 seconds works perfectly fine. But taking a picture every second <strong>sometimes</strong> throws <code>java.lang.RuntimeException: takePicture failed</code>. What could be causing thi... | Let me start by saying that if image shooting interval is anything more than 1 second it works. For example taking a picture every 2 seconds works perfectly fine. But taking a picture every second sometimes throws java.lang.RuntimeException: takePicture failed . What could be causing this kind of a behaviour? Here is t... | java|android|android-camera|android-service | 1 | 2016-05-08T12:07:12.837Z | 2,016 | 5 | 12 | 6 | 921 | 1 | 363 | 50 | 4 | 1 | true | false | false | false | false | false | low |
37,099,706 | Android toolbar casting shadow on notification bar | <p>I am developing a simple app and have adjusted the toolbar, so the navigation drawer doesn't blend over the toolbar, but opens behind it. The problem now is, that the toolbar casts a shadow on the notification bar.</p>
<p>How do I remove this shadow?</p>
<p><a href="https://i.stack.imgur.com/6BjxN.png" rel="nofoll... | I am developing a simple app and have adjusted the toolbar, so the navigation drawer doesn't blend over the toolbar, but opens behind it. The problem now is, that the toolbar casts a shadow on the notification bar. How do I remove this shadow? Here is my layout: [CODE] | android | 1 | 2016-05-08T12:12:59.500Z | 2,016 | 5 | 12 | 6 | 177 | 2 | 269 | 50 | 1 | 1 | true | false | false | false | false | false | low |
37,099,732 | Android Phonegap app - Bringing activity to front | <p>I am in the process of teaching myself how to work with Phonegap notifications on Android. Whilst displaying a notification appears to be a fairly straightforward process</p>
<pre><code>public void triggerTestNotification(String tag, int id,Context ctxt)
{
Intent notificationIntent = new Intent(context, PallAct... | I am in the process of teaching myself how to work with Phonegap notifications on Android. Whilst displaying a notification appears to be a fairly straightforward process [CODE] what I have found rather more difficult is the following The user launches the app The user goes away and starts doing something else - the ap... | android|push-notification|phonegap-plugins|background-foreground | 4 | 2016-05-08T12:15:45.690Z | 2,016 | 5 | 12 | 6 | 179 | 1 | 700 | 49 | 4 | 2 | true | false | false | false | false | false | low |
37,099,771 | Android Studio 2.1 won't run my App | <p>I've just updated my Android Studio version to the new 2.1.
The problem is <strong>after</strong> I've launched my AVD, and I try to <strong>run</strong> my App, it <strong>crashes</strong> giving me a list of <strong>errors</strong>:</p>
<p>1st:</p>
<pre><code>Error:Error converting bytecode to dex:
Cause: java.l... | I've just updated my Android Studio version to the new 2.1. The problem is after I've launched my AVD, and I try to run my App, it crashes giving me a list of errors : 1st: [CODE] 2nd: [CODE] 3rd: [CODE] EDIT: Going to the right-top corner all the way through " Gradel " panel > :app > Tasks > build > double clicking on... | java|android | 0 | 2016-05-08T12:20:16.363Z | 2,016 | 5 | 12 | 6 | 2,492 | 1 | 343 | 35 | 2 | 3 | true | false | false | false | false | false | zero |
37,099,883 | FlowingDrawer Sample does not run | <p>I tried to run the sample of this library :
<a href="https://github.com/mxn21/FlowingDrawer" rel="nofollow">https://github.com/mxn21/FlowingDrawer</a></p>
<p>it works fine with this outdated build.gradle : </p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVe... | I tried to run the sample of this library : https://github.com/mxn21/FlowingDrawer it works fine with this outdated build.gradle : [CODE] but it fails with this updated build.gradle [CODE] FATAL EXCEPTION: main Process: com.mt.stackoverflow, PID: 31453 java.lang.RuntimeException: Unable to start activity ComponentInfo{... | java|android|gradle|build|navigation-drawer | 4 | 2016-05-08T12:34:25.367Z | 2,016 | 5 | 12 | 6 | 331 | 1 | 2,882 | 33 | 5 | 2 | true | false | false | false | false | false | low |
37,099,913 | Having trouble in Session management | <p>i m working on an application and i want to make user login only when he/she logouts his previous session but i m unable to do it. whenever i close my program and re-open it. it directs to Homepage again even if i had'nt logout. plz</p>
<pre><code> package in.co.medimap.www.medimap;
import android.app.Activity;
i... | i m working on an application and i want to make user login only when he/she logouts his previous session but i m unable to do it. whenever i close my program and re-open it. it directs to Homepage again even if i had'nt logout. plz [CODE] this is my homeactivity where after logging user goes and i want that if i hadn'... | java|android|session|sharedpreferences|session-management | 0 | 2016-05-08T12:37:31.163Z | 2,016 | 5 | 12 | 6 | 47 | 1 | 389 | 36 | 5 | 2 | true | false | false | false | false | false | zero |
37,099,978 | "nativescript-google-maps-sdk" PlugIn shows blank screen | <p>I have installed <a href="https://github.com/dapriett/nativescript-google-maps-sdk" rel="nofollow">nativescript-google-maps-sdk</a> plugin in my <a href="https://www.nativescript.org/" rel="nofollow">NativeScript 2.0</a> project.</p>
<p>I generated and activated an <strong>Android API key</strong> at the <strong>Go... | I have installed nativescript-google-maps-sdk plugin in my NativeScript 2.0 project. I generated and activated an Android API key at the Google Developer Console . As described in the documentation of the plugin I added the string resource value nativescript_google_maps_api_key with the API key, but it does not work. I... | android|google-maps|nativescript | 0 | 2016-05-08T12:45:04.617Z | 2,016 | 5 | 12 | 6 | 1,519 | 4 | 733 | 56 | 3 | 2 | true | false | false | false | false | false | zero |
37,100,011 | setOnItemClickListener() not working on ListView (select always first row) | <p>I have created a custom ListView by extending LinearLayout for every row (Contact) and i need to select the item, but the method "setOnItemClickListener()" not working. I have just put a onItemSelectedListener under and now the method "setOnItemClickListener" select always the first item though i select other row</p... | I have created a custom ListView by extending LinearLayout for every row (Contact) and i need to select the item, but the method "setOnItemClickListener()" not working. I have just put a onItemSelectedListener under and now the method "setOnItemClickListener" select always the first item though i select other row MainA... | android|listview | 0 | 2016-05-08T12:48:33.950Z | 2,016 | 5 | 12 | 6 | 713 | 3 | 384 | 74 | 2 | 3 | true | false | false | false | false | false | zero |
37,100,027 | Dagger 2: Update provided object in scope | <p>Sample scheme:</p>
<p><a href="https://i.stack.imgur.com/bth5M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bth5M.png" alt="enter image description here"></a></p>
<p>It based on <a href="https://github.com/sockeqwe/mosby/tree/master/sample-mail/src/main/java/com/hannesdorfmann/mosby/sample/ma... | Sample scheme: It based on Mosby examples . I want to share Project object between ProjectFragment and ProjectHistoryFragment with @PerProject scope. ProjectModule: [CODE] ProjectModule and ProjectComponent will be created by ProjectFragment and shared to every Project-dependent fragment . Nice. But there is a problem.... | android|dagger-2|mosby | 2 | 2016-05-08T12:50:33.490Z | 2,016 | 5 | 12 | 6 | 1,925 | 1 | 609 | 41 | 3 | 1 | true | false | false | false | false | false | low |
37,100,084 | LinearLayout selector doesn't cover the whole View's children | <p>The following is my XML code, I need to make a selector for the LinearLayout, but when I tap on the child TextView it doesn't show the selector backgroud as tapping other areas of the LinearLayout!</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com... | The following is my XML code, I need to make a selector for the LinearLayout, but when I tap on the child TextView it doesn't show the selector backgroud as tapping other areas of the LinearLayout! [CODE] | android|android-linearlayout | 0 | 2016-05-08T12:56:58.090Z | 2,016 | 5 | 12 | 6 | 185 | 2 | 204 | 61 | 2 | 1 | true | false | false | false | false | false | zero |
37,100,243 | Android onBackPressed wrong transition | <p>On my KitKat emulator, I'm trying to simulate <code>onBackPressed()</code> when I click a button from a custom alert dialog but when I click the button, the wrong transition animation is shown. How can this problem be fixed so that when I click 'OK' the page I was on zooms out rather than the previous page zooming i... | On my KitKat emulator, I'm trying to simulate onBackPressed() when I click a button from a custom alert dialog but when I click the button, the wrong transition animation is shown. How can this problem be fixed so that when I click 'OK' the page I was on zooms out rather than the previous page zooming in? [CODE] manife... | java|android|android-activity|android-alertdialog | 0 | 2016-05-08T13:13:35.627Z | 2,016 | 5 | 13 | 6 | 220 | 1 | 333 | 38 | 4 | 2 | true | false | false | false | false | false | zero |
37,100,269 | Can't download file with UTF-8 characters in its name in Java | <p>I'm in dire need for help.
In my android application, I'm having problem with downloading files from server contaning UTF-8 charaters in its name. With regular characters it works (english alphabet). Server receives UTF-8 characters as "?". </p>
<p>Example:</p>
<p>File named as "Preview-icon.png" works, but file n... | I'm in dire need for help. In my android application, I'm having problem with downloading files from server contaning UTF-8 charaters in its name. With regular characters it works (english alphabet). Server receives UTF-8 characters as "?". Example: File named as "Preview-icon.png" works, but file named "Preview-iconČ.... | java|android|android-studio|utf-8|cloud | 0 | 2016-05-08T13:17:09.140Z | 2,016 | 5 | 13 | 6 | 381 | 2 | 827 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
37,100,284 | Android HTTP POST AUTHENTICATION | <p>please read through the code,bear with me.There is a web page mentioned inside the code where I want to do authorization with post. have done this</p>
<p><code>httpClient=new DefaultHttpClient();</code></p>
<pre><code> httpPost=new HttpPost("http://52.77.???.???/???????/??");
//UN and PW va... | please read through the code,bear with me.There is a web page mentioned inside the code where I want to do authorization with post. have done this httpClient=new DefaultHttpClient(); [CODE] } //but everytime connection failed,means no reponse.I have tried with all code.What am I missing? | android|android-studio|http-post | 0 | 2016-05-08T13:19:17.550Z | 2,016 | 5 | 13 | 6 | 88 | 0 | 288 | 32 | 3 | 1 | true | true | false | false | false | false | zero |
37,100,289 | view.findViewById returns null,which lead to the " Target must not be null" error by using Picasso | <p>I'm using picasso to load pics from web to my app's drawer menu.
But now I got a problem which I've been trapped in for whole day
here is my xml:</p>
<pre><code></FrameLayout>`<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="... | I'm using picasso to load pics from web to my app's drawer menu. But now I got a problem which I've been trapped in for whole day here is my xml: [CODE] Here is my Java file: [CODE] Now when I run this project , the console reports the error" Caused by: java.lang.IllegalArgumentException: Target must not be null." I de... | android|picasso | 0 | 2016-05-08T13:19:38.973Z | 2,016 | 5 | 13 | 6 | 1,076 | 2 | 448 | 98 | 2 | 2 | true | false | false | false | false | false | zero |
37,100,336 | How do I place a ScrollView in the code below? | <p>Below is my XML code. Where do I place a scrollview attribute on the whole screen because some of my view does not show when I switch to landscape view.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http:... | Below is my XML code. Where do I place a scrollview attribute on the whole screen because some of my view does not show when I switch to landscape view. [CODE] Below is the normal view Land scape view What I want to achieve is to have a scrollview on the whole view so I can scroll down to see all views on landscape. Pl... | android | 0 | 2016-05-08T13:25:43.790Z | 2,016 | 5 | 13 | 6 | 61 | 1 | 735 | 46 | 1 | 4 | true | false | false | false | false | false | zero |
37,100,341 | Shared Item Transition not working in fragment on back | <p>I'm working on an Android app with the <a href="https://www.toptal.com/android/android-fragment-navigation-pattern" rel="noreferrer">Fragment Navigation Pattern</a> (one Activity with many Fragments). I've managed to implement <em>Shared Item Transitions</em> by following <a href="https://medium.com/@bherbst/fragmen... | I'm working on an Android app with the Fragment Navigation Pattern (one Activity with many Fragments). I've managed to implement Shared Item Transitions by following this guide but they only work going forward, not on hitting back. My Fragment (called UserFragment ) is composed of a ViewPager with 3 more fragments with... | android|android-fragments|transitions | 11 | 2016-05-08T13:25:52.893Z | 2,016 | 5 | 13 | 6 | 1,021 | 1 | 1,173 | 54 | 3 | 2 | true | false | false | false | true | false | medium |
37,100,355 | Sending JSON Post with Body using Android Volley | <p>I am trying to send a JSON Post request using Android Volley library but I dont seem to get the body of the json right and I get undefined body parameters on my web server. I need the json's parameters body to be a single object "name=someVal&comment=someOtherVal". name and comment are the keys and someVal and s... | I am trying to send a JSON Post request using Android Volley library but I dont seem to get the body of the json right and I get undefined body parameters on my web server. I need the json's parameters body to be a single object "name=someVal&comment=someOtherVal". name and comment are the keys and someVal and someOthe... | android|json|post|android-volley | 4 | 2016-05-08T13:27:36.407Z | 2,016 | 5 | 13 | 6 | 12,296 | 4 | 405 | 48 | 4 | 2 | true | false | true | true | false | false | low |
37,100,405 | SMS icon not align to left_of switch in Android | <p><a href="https://i.stack.imgur.com/AGqfT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AGqfT.png" alt="enter image description here"></a></p>
<p>This is the code I'm using a linearlayout and Relative inside this. I don't want to use margin_left because it is constant I want to adjust the sms bu... | This is the code I'm using a linearlayout and Relative inside this. I don't want to use margin_left because it is constant I want to adjust the sms button just left of switch shown. I tried leftof but there is exception in XML file the only option I got is to use margin from left, that is fixed. [CODE] | android | 0 | 2016-05-08T13:33:29.740Z | 2,016 | 5 | 13 | 6 | 60 | 1 | 303 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.