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,001,663 | Group Recyclerview Items that getting from a Json | <p>I am getting a Json output from the server. </p>
<p>This is my Json look like</p>
<pre><code>{
"feed": [
{
"order_no": "70000004",
"quotation_no": "abc004a"
},
{
"order_no": "70000003",
"quotation_no": "abc003a"
},
{
"order_no": "70000001",
"quotation_no": ... | I am getting a Json output from the server. This is my Json look like [CODE] I know how to populate this in a recyclerview. But what I want is grouping this json using order_no and populate. For example there are two 70000001 . So i only need to show one 70000001 order no. This is my custom row .xml file. [CODE] After ... | android|json|android-recyclerview | 0 | 2016-05-03T10:27:40.107Z | 2,016 | 5 | 10 | 1 | 233 | 1 | 555 | 49 | 3 | 3 | true | false | false | false | false | false | zero |
37,001,761 | First image appearing small in size and on top left corner in a viewpager when rotate the device | <p>Hi in my application i am using the Viewpager with PagerAdapter. it contains n number of images. but when i rotate the device when viewpager is on first image then the image shift to top left corner and appears very small. please have a look in the attached image. </p>
<p><a href="https://i.stack.imgur.com/g2htH.pn... | Hi in my application i am using the Viewpager with PagerAdapter. it contains n number of images. but when i rotate the device when viewpager is on first image then the image shift to top left corner and appears very small. please have a look in the attached image. code which i am using [CODE] //PagerAdapter onInstantia... | android|android-viewpager|imageview | 0 | 2016-05-03T10:31:34.670Z | 2,016 | 5 | 10 | 1 | 88 | 0 | 340 | 96 | 3 | 2 | true | true | false | false | false | false | zero |
37,001,825 | How to create3d Text in android | <p>I have been trying to create 3d text like this photo </p>
<p>For the purpose i wrote the following code. Its almost 3d when we see it from front but if rotate it at x axis there is a point it disappears at 90 degree.
There are few apps on store too for 3d texts.
I am first converting text to bitmap then applying o... | I have been trying to create 3d text like this photo For the purpose i wrote the following code. Its almost 3d when we see it from front but if rotate it at x axis there is a point it disappears at 90 degree. There are few apps on store too for 3d texts. I am first converting text to bitmap then applying overlays to gi... | android|animation|text|3d|rotation | 0 | 2016-05-03T10:34:52.850Z | 2,016 | 5 | 10 | 1 | 963 | 1 | 340 | 31 | 5 | 1 | true | false | false | false | false | false | zero |
37,001,857 | selection of radio button in Radio Group in Recycler view in android? | <p>i have Recycler view with radio group and its 4 radio buttons. but when i scroll down the list the middle of item is acting like first one . means if i have 10 items, if select first item button then the 6 button also got selecting with user selection. </p>
<p>what to do for issue in recycler view. Any Suggestions... | i have Recycler view with radio group and its 4 radio buttons. but when i scroll down the list the middle of item is acting like first one . means if i have 10 items, if select first item button then the 6 button also got selecting with user selection. what to do for issue in recycler view. Any Suggestions will be appr... | android|radio-button|radio-group|android-recyclerview | 2 | 2016-05-03T10:36:36.803Z | 2,016 | 5 | 10 | 1 | 7,900 | 2 | 379 | 69 | 4 | 2 | true | false | true | false | false | false | low |
37,001,905 | Changing background of two TextView alternativly | <p>I have two TextViews placed side by side horizontally and they are in a rectangle shape with rounded corners. </p>
<p><strong>I would like:</strong></p>
<ol>
<li>to change the background which is by default <em>none</em> to <em>white</em> when
pressed or clicked and back to <em>default</em> when the second TextVie... | I have two TextViews placed side by side horizontally and they are in a rectangle shape with rounded corners. I would like: to change the background which is by default none to white when pressed or clicked and back to default when the second TextView is clicked or pressed, the padding which is between the shape and th... | android|android-layout | 0 | 2016-05-03T10:39:55.657Z | 2,016 | 5 | 10 | 1 | 185 | 2 | 527 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
37,001,915 | How to get a JSON array response from GCM | <p>Can anyone help me to get a response as a JSON array from GCM?</p>
<p>Here is the incorrect response I am getting. Can anyone help me with it?</p>
<p>I am creating a cab booking app. I want to collect all driver data including locations and push it through GCM so I can get real-time locations of every driver.</p>
... | Can anyone help me to get a response as a JSON array from GCM? Here is the incorrect response I am getting. Can anyone help me with it? I am creating a cab booking app. I want to collect all driver data including locations and push it through GCM so I can get real-time locations of every driver. Here is my error. [CODE... | php|android | 0 | 2016-05-03T10:40:28.833Z | 2,016 | 5 | 10 | 1 | 235 | 2 | 397 | 41 | 2 | 3 | true | false | false | false | false | false | zero |
37,001,929 | Android-JSP org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject | <p>Hello I'm very new to android developing.
I'm having a trouble with connecting Android with MySQL database using JSP.
I've read tons of documents but I don't know how to solve this problem.
I'm not sure but I think the problem is related to null pointer problem.
But I don't know where it is.....</p>
<p>This is my ... | Hello I'm very new to android developing. I'm having a trouble with connecting Android with MySQL database using JSP. I've read tons of documents but I don't know how to solve this problem. I'm not sure but I think the problem is related to null pointer problem. But I don't know where it is..... This is my java code. M... | java|android|mysql|json|jsp | 0 | 2016-05-03T10:40:56.757Z | 2,016 | 5 | 10 | 1 | 492 | 1 | 405 | 110 | 5 | 3 | true | false | false | false | false | false | zero |
37,001,930 | Deserializing a class object using Simple library in android | <p>So, I try to serialize an object and write it as XML in a file, and that works perfectly. So when I try to read that XML file and deserialize it to a class object I get a null reference exception.</p>
<p>I was working by this example <a href="http://www.rhyous.com/2011/10/23/android-and-xml-serialization-with-simpl... | So, I try to serialize an object and write it as XML in a file, and that works perfectly. So when I try to read that XML file and deserialize it to a class object I get a null reference exception. I was working by this example http://www.rhyous.com/2011/10/23/android-and-xml-serialization-with-simple/ and it works, but... | java|android|xml|serialization | 0 | 2016-05-03T10:40:58.610Z | 2,016 | 5 | 10 | 1 | 749 | 1 | 554 | 60 | 4 | 3 | true | false | false | false | false | false | zero |
37,002,057 | Why I am not getting passed values at another Activity? | <p>I am sending values using <code>intent.putExtras</code> but I am getting null values on the next activity. Here is my code for intent</p>
<pre><code>if (id == R.id.save_times) {
Intent intent = new Intent(AlertTimerSelector.this, Dashboard.class);
intent.putExtra(AppHelper.LOW_LEVEL, dialogHelper.ge... | I am sending values using intent.putExtras but I am getting null values on the next activity. Here is my code for intent [CODE] And this is my next Activity code where i am retrieving these values in onNewIntent [CODE] please help me out with this.Thanx onNewIntent is not getting called.I don't know why? | java|android|android-intent|null | 1 | 2016-05-03T10:46:59.893Z | 2,016 | 5 | 10 | 1 | 462 | 5 | 305 | 55 | 4 | 2 | true | false | false | false | false | false | low |
37,002,066 | Pass data From Activity, to Fragment with Activity, then back once option is selected | <p>Im try to get data from an activity that someone has selected. Here is more understanding of what im doing.</p>
<p>I have an activity called PromptsActivity which lists all the Options that a user can choose from. ie. "I want a red shirt instead of a white one".</p>
<p>So in PromptsActivity I do a network call tha... | Im try to get data from an activity that someone has selected. Here is more understanding of what im doing. I have an activity called PromptsActivity which lists all the Options that a user can choose from. ie. "I want a red shirt instead of a white one". So in PromptsActivity I do a network call that gives me the Prom... | java|android|android-fragments | 0 | 2016-05-03T10:47:25.047Z | 2,016 | 5 | 10 | 1 | 60 | 2 | 1,401 | 85 | 3 | 4 | true | false | false | false | false | false | zero |
37,002,313 | How to Redirect to Another Activity From BackgroundWorker? | <p>I have created a php page and a login page for verification but after login success it just pops up a login success message. I want my app to redirect to another activity after successfull login.how do i do it via backgroundworker</p>
<pre><code>package com.project.v_app;
import java.io.BufferedReader;
import java... | I have created a php page and a login page for verification but after login success it just pops up a login success message. I want my app to redirect to another activity after successfull login.how do i do it via backgroundworker [CODE] | php|android|redirect|android-activity | 0 | 2016-05-03T11:02:07.463Z | 2,016 | 5 | 11 | 1 | 942 | 3 | 237 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
37,002,320 | unable to pick files like pdf,doc,ppt in MARSHAMALLOW file chooser | <p>I am uploading files like pdf,ppt,doc etc to server using from my android app but in marshmallow when file chooser opens and i browse my Sdcard or internal storage there are two problmes :<br>
1. it shows all files like images,videos and documents etc which i cannot pick but i used intent type as application/pdf; ... | I am uploading files like pdf,ppt,doc etc to server using from my android app but in marshmallow when file chooser opens and i browse my Sdcard or internal storage there are two problmes : 1. it shows all files like images,videos and documents etc which i cannot pick but i used intent type as application/pdf; appkicati... | android|pdf|android-intent|android-6.0-marshmallow | 0 | 2016-05-03T11:02:29.270Z | 2,016 | 5 | 11 | 1 | 3,610 | 1 | 1,046 | 66 | 4 | 2 | true | false | true | false | false | false | zero |
37,002,372 | How to receive List of object in android from Server using signalR | <p>My android code is:</p>
<pre><code>mHubProxy.on( "PushContentsToClient", new SubscriptionHandler1<ChatMessageResponsePOCO[]>() {
@Override
public void run(final ChatMessageResponsePOCO[] msgs) {
MainActivity.this.runOnUiThread(new Runnable() {
... | My android code is: [CODE] And My Class: [CODE] Server side code is: Clients.Client(connectionToken).PushContentsToClient(chatMessageResponseListDTO); Server side Entity : [CODE] Its work fine for String but getting no response for List<ChatMessageResponsePOCO> . Please help. | android|asp.net|asp.net-mvc|signalr | 2 | 2016-05-03T11:05:02.197Z | 2,016 | 5 | 11 | 1 | 286 | 1 | 276 | 66 | 4 | 3 | true | false | false | false | false | false | low |
37,002,481 | Simple Android client for consuming REST webservice using Retrofit - why am I getting 'Failed to connect to server' error | <p>I wrote a little Restful webservice in PHP (code given at the end of question) and it is in my local XAMPP server. When I access it in the browser using <code>http://localhost/Test8/?name=Java</code> as URL, I get the following data as expected.</p>
<pre><code>{"status":200,"status_message":"Book found","data":999}... | I wrote a little Restful webservice in PHP (code given at the end of question) and it is in my local XAMPP server. When I access it in the browser using http://localhost/Test8/?name=Java as URL, I get the following data as expected. [CODE] This means the webservice works correctly. Then I went ahead to write an Android... | android|web-services|rest|retrofit | 0 | 2016-05-03T11:09:32.180Z | 2,016 | 5 | 11 | 1 | 977 | 2 | 707 | 121 | 4 | 7 | true | false | false | false | false | false | zero |
37,002,580 | Android - Suspending all threads took: * ms | <p>I'm having these warnings in my logcat even after a while that i left the application. (Didn't kill though, just pressed back to leave it.)</p>
<pre><code>05-03 13:43:42.955 13047-13053/package W/art: Suspending all threads took: 7.873ms
05-03 13:44:32.458 13047-13053/package W/art: Suspending all threads took: 13.... | I'm having these warnings in my logcat even after a while that i left the application. (Didn't kill though, just pressed back to leave it.) [CODE] Those numbers are serious and a lot. I saw some questions about this issue, and none of them was similar to mine and i cannot accept that "ignore it unless you don't have OO... | android|multithreading|threadpoolexecutor|android-runtime | 10 | 2016-05-03T11:13:55.003Z | 2,016 | 5 | 11 | 1 | 9,031 | 2 | 825 | 43 | 4 | 1 | true | false | true | false | true | false | medium |
37,002,677 | Precise control over Androids VectorDrawable animations | <p><strong>UPDATE:</strong> Solution found! Scroll down for my accepted answer!</p>
<p>I want to animate multiple elements of one image and link the animation to ViewPagers position (so multiple elements are morphing or flying in/out depending on the current page being dragged). </p>
<p>So, is there a way to precisel... | UPDATE: Solution found! Scroll down for my accepted answer! I want to animate multiple elements of one image and link the animation to ViewPagers position (so multiple elements are morphing or flying in/out depending on the current page being dragged). So, is there a way to precisely control the current frame of the an... | android|android-viewpager|android-animation|vector-graphics|android-vectordrawable | 22 | 2016-05-03T11:18:44.340Z | 2,016 | 5 | 11 | 1 | 7,592 | 3 | 706 | 55 | 5 | 3 | true | false | true | false | true | false | high |
37,002,704 | How to add onTouchListener and more bottom containers for drag and drop app | <p>I followed this tutorial to make an drag and drop app: <a href="http://www.101apps.co.za/index.php/download/4-tutorials/38-drag-and-drop-tutorial.html" rel="nofollow">http://www.101apps.co.za/index.php/download/4-tutorials/38-drag-and-drop-tutorial.html</a></p>
<p>I want help with this:</p>
<ol>
<li><p>How to chan... | I followed this tutorial to make an drag and drop app: http://www.101apps.co.za/index.php/download/4-tutorials/38-drag-and-drop-tutorial.html I want help with this: How to change draglistener so it listens to which image is placed in the different containers and accept/reject the right/wrong image? Do I have to create ... | android|android-studio|drag-and-drop | 0 | 2016-05-03T11:20:22.400Z | 2,016 | 5 | 11 | 1 | 40 | 0 | 531 | 75 | 3 | 1 | true | true | false | false | false | false | zero |
37,002,731 | Error while running uiautomatorviewer in ubuntu 15.10 | <p>When I run the uiautomatorviewer, I get the following error:
<strong>/android-sdk-linux/tools$</strong> </p>
<pre><code>uiautomatorviewerException in thread "main" java.lang.NoSuchMethodError: com.ibm.icu.util.ULocale.getExtensionKeys()Ljava/util/Set;
at com.ibm.icu.util.ULocale$Builder.setLocale(ULocale.java:4... | When I run the uiautomatorviewer, I get the following error: /android-sdk-linux/tools$ [CODE] could anybody help me out? thanks for your time. | java|android|android-uiautomator|uiautomatorviewer | 2 | 2016-05-03T11:21:42.033Z | 2,016 | 5 | 11 | 1 | 472 | 1 | 142 | 53 | 4 | 1 | true | false | false | false | false | false | low |
37,002,850 | Android Fragment is scrolled after rotation | <p>I faced with a wiered issue during the development of android app. This is my application in portrait mode:</p>
<p><a href="https://i.stack.imgur.com/ZzNZZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZzNZZ.png" alt="enter image description here"></a></p>
<p>But when I change the rotation the... | I faced with a wiered issue during the development of android app. This is my application in portrait mode: But when I change the rotation the main converter surface is scrolled out of the screen. This is the same screen after rotation: This is the link to my project repo . Any help is much appreciated. fragment_main: ... | android|fragment|android-orientation | 0 | 2016-05-03T11:26:42.837Z | 2,016 | 5 | 11 | 1 | 137 | 0 | 366 | 43 | 3 | 2 | true | true | false | false | false | false | zero |
37,002,942 | Nexus6 Can't play this video | <p>I am following this [example][1] in order to understand how I can work with Android video camera.</p>
<p>The code for my activity is just a Button and a VideoView.
After tap on the button I record a video and then, after stop the recording, the video recorded is visible on the VideoView.
The code works perfectly o... | I am following this [example][1] in order to understand how I can work with Android video camera. The code for my activity is just a Button and a VideoView. After tap on the button I record a video and then, after stop the recording, the video recorded is visible on the VideoView. The code works perfectly on a Galaxy S... | android|android-camera|android-videoview|android-camera-intent | 0 | 2016-05-03T11:31:11.730Z | 2,016 | 5 | 11 | 1 | 344 | 1 | 555 | 28 | 4 | 2 | true | false | false | false | false | false | zero |
37,003,105 | how to set data into dialog-fragment from mapActivity | <p>i m fetching lat-lang data on longclick event on my map. the problem is when i pass data in my dialog-fragment's edittext, its getting null,</p>
<p>here is my code of long-click event</p>
<pre><code>public class MapsActivity extends FragmentActivity implements OnMapReadyCallback,
GoogleMap.OnMapClickListen... | i m fetching lat-lang data on longclick event on my map. the problem is when i pass data in my dialog-fragment's edittext, its getting null, here is my code of long-click event [CODE] and i m going back using using onbackpress in my button click like this. [CODE] here is my workflow, first i open my dialog-fragment on ... | android|android-fragments|google-maps-api-2 | 1 | 2016-05-03T11:38:28.633Z | 2,016 | 5 | 11 | 1 | 475 | 2 | 835 | 53 | 3 | 3 | true | false | false | false | false | false | low |
37,003,185 | Small lag after tapping the button | <p>This is my game - <a href="https://jsfiddle.net/vhzgLcqq/" rel="nofollow">my game</a></p>
<p><strong>The problem:</strong></p>
<p>When I'm inspecting the game in Google Chrome Developer Tools and clicking(tapping) the canvas (or buttons), it occurs small lag and then the car goes left or right. How can I resolve t... | This is my game - my game The problem: When I'm inspecting the game in Google Chrome Developer Tools and clicking(tapping) the canvas (or buttons), it occurs small lag and then the car goes left or right. How can I resolve this problem? (I want to make the game for mobile devices) I tried: [CODE] And I'm using touchsta... | javascript|android|html|touchstart | 0 | 2016-05-03T11:42:27.930Z | 2,016 | 5 | 11 | 1 | 57 | 1 | 437 | 34 | 4 | 2 | true | false | false | false | false | false | zero |
37,003,233 | Google App Engine - cannot resolve method 'execute()', but project compiles | <p>I'm writing an Android client that works with a Google App Engine backend. The client compiles and runs just fine, but the <code>execute()</code> method is yet unidentified.</p>
<p>My AsyncTask's <code>doInBackground(...)</code>:</p>
<pre><code>@Override
protected String doInBackground(Pair<Context, String>.... | I'm writing an Android client that works with a Google App Engine backend. The client compiles and runs just fine, but the execute() method is yet unidentified. My AsyncTask's doInBackground(...) : [CODE] sayHi: [CODE] As I mentioned, the code does run, and for example, when removing the String.valueOf() method - the b... | java|android|google-app-engine | 0 | 2016-05-03T11:44:49.253Z | 2,016 | 5 | 11 | 1 | 88 | 0 | 463 | 75 | 3 | 2 | true | true | false | false | false | false | zero |
37,003,372 | Android Studio debugging does unusual things | <p>I have written this simple method in my activity in Android Studio:</p>
<p><a href="https://i.stack.imgur.com/S0IW4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S0IW4.png" alt="Image"></a></p>
<p>I did not work correctly. I tried the debugging mode to figure out the error. As it is shown, the... | I have written this simple method in my activity in Android Studio: I did not work correctly. I tried the debugging mode to figure out the error. As it is shown, there is no variable 'b' in Variables table, Watches table and even on my mouse over. The next surprising thing is that when I do Step Over, not only it does ... | java|android|debugging|android-studio | 0 | 2016-05-03T11:51:13.617Z | 2,016 | 5 | 11 | 1 | 38 | 0 | 727 | 44 | 4 | 0 | false | true | false | false | false | false | zero |
37,003,462 | How To manage imageviews and textview with theirs alignments? | <p><strong>How To manage imageviews and textview with theirs alignments ?</strong></p>
<blockquote>
<p>here is code i have tried.. i have used toolbar to achieve this but failed to achieve , can anyone tell me how to accomplish this ?</p>
</blockquote>
<pre><code><android.support.v7.widget.Toolbar
androi... | How To manage imageviews and textview with theirs alignments ? here is code i have tried.. i have used toolbar to achieve this but failed to achieve , can anyone tell me how to accomplish this ? [CODE] out put i want | android|layout | 1 | 2016-05-03T11:55:19.307Z | 2,016 | 5 | 11 | 1 | 83 | 4 | 216 | 61 | 2 | 1 | true | false | false | false | false | false | low |
37,003,556 | Android SDK keep NFC on | <p>I am using the NFC capability of an android phone to induce a small amount of current in a coil to charge up a capacitor. currently i am using the NFC-V application in the app store (<a href="http://www2.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-m24lr012.html" rel="nofollow">sou... | I am using the NFC capability of an android phone to induce a small amount of current in a coil to charge up a capacitor. currently i am using the NFC-V application in the app store ( source code available here ) to achieve this. What I found is the phone can charge up the capacitor easily when i constantly remove the ... | android|nfc | 0 | 2016-05-03T11:59:47.440Z | 2,016 | 5 | 11 | 1 | 31 | 0 | 855 | 23 | 2 | 0 | false | true | false | false | false | false | zero |
37,003,567 | how to save listview selected item's color while scrolling? | <p>The image's color was changed whenever i long pressed on items from the custom listview which contains image. But after scrolling, the other listview item's image color was changed. so what can i do for preserve the position of the selected item. here is my adapter</p>
<pre><code>public class SubCategories_adapter ... | The image's color was changed whenever i long pressed on items from the custom listview which contains image. But after scrolling, the other listview item's image color was changed. so what can i do for preserve the position of the selected item. here is my adapter [CODE] /* fragment */ [CODE] | android|listview | 0 | 2016-05-03T12:00:20.460Z | 2,016 | 5 | 12 | 1 | 46 | 0 | 294 | 59 | 2 | 2 | true | true | false | false | false | false | zero |
37,003,571 | cannot check state of boolean in timer | <p>i'm using a wifi function that uses <code>wifiManager.reconnect();</code>
this returns me a Boolean state, that i want to monitor and call a callback function once it will be true,
but when i do the timer it says that the variable will need to be final, and that will stop the whole purpose of why i'm doing this, </p... | i'm using a wifi function that uses wifiManager.reconnect(); this returns me a Boolean state, that i want to monitor and call a callback function once it will be true, but when i do the timer it says that the variable will need to be final, and that will stop the whole purpose of why i'm doing this, what am i doing wro... | android|android-studio | 0 | 2016-05-03T12:00:25.537Z | 2,016 | 5 | 12 | 1 | 57 | 2 | 391 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
37,003,618 | How to show webView and hide other elements in Android | <p>I am very new to Android development, going through some tutorials I developed Android code using Eclipse. Here, I am trying to load a WebView with some URL after clicking a button, and then I want to hide the button.</p>
<p>I am using Linear Layout. For this, I used the following code to get this working but it is... | I am very new to Android development, going through some tutorials I developed Android code using Eclipse. Here, I am trying to load a WebView with some URL after clicking a button, and then I want to hide the button. I am using Linear Layout. For this, I used the following code to get this working but it is not loadin... | android|webview | 2 | 2016-05-03T12:02:48.600Z | 2,016 | 5 | 12 | 1 | 2,955 | 6 | 586 | 54 | 2 | 3 | true | false | true | false | false | false | low |
37,003,669 | how can login by php sql in android? | <p>I want to login by php in android<br>
I have this code but it doesnt work<br>
I dont know what is the reason<br>
Any help to fix thes code??</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>package com.ust.au... | I want to login by php in android I have this code but it doesnt work I dont know what is the reason Any help to fix thes code?? [CODE] | android | -1 | 2016-05-03T12:05:08.227Z | 2,016 | 5 | 12 | 1 | 55 | 1 | 135 | 36 | 1 | 1 | true | false | false | false | false | true | negative |
37,003,676 | Build Android APK in Redhat using Gradle in Offline mode | <p>I am using Gradle 2.13 and trying to build android apk in readhat and system does not have internet access.
I am trying to build android apk offline. But it is throwing some exception and not able to figure out what went wrong.</p>
<p>Main build.gradle</p>
<pre><code>buildscript {
repositories {
jcente... | I am using Gradle 2.13 and trying to build android apk in readhat and system does not have internet access. I am trying to build android apk offline. But it is throwing some exception and not able to figure out what went wrong. Main build.gradle [CODE] Error: [CODE] Version : [CODE] Gradle 2.13 Is there any tutorial av... | android|linux|gradle|android-gradle-plugin|offline | 0 | 2016-05-03T12:05:25.367Z | 2,016 | 5 | 12 | 1 | 386 | 1 | 403 | 56 | 5 | 3 | true | false | false | false | false | false | zero |
37,003,761 | Detect faces in portrait mode using OpenCV | <p>I have the problem of using OpenCV 2.4.11 in portrait and make the recognition of faces. I used the following <a href="https://stackoverflow.com/questions/23380553/how-to-use-opencv-face-detection-in-portrait-using-byte-data-from-onpreviewfra">code</a> but does not work, the screen goes black and the log shows these... | I have the problem of using OpenCV 2.4.11 in portrait and make the recognition of faces. I used the following code but does not work, the screen goes black and the log shows these errors ... how can I fix it and use the camera more OpenCV in portrait recognize faces? E/cv::error(): OpenCV Error: Assertion failed (src.d... | android|opencv|camera | 1 | 2016-05-03T12:09:47.623Z | 2,016 | 5 | 12 | 1 | 1,008 | 1 | 1,088 | 42 | 3 | 0 | false | false | false | false | false | false | low |
37,003,808 | Libgdx sliding pause menu | <p>So in my Gameplay screen user has posibillity to click on menu button and then that menu button will pause the game and show the menu.</p>
<p>I tried to impelement menu as a new stage, but that just opens a new screen, sets the graphics of the menu like I want to and leaves the rest of the screen black.</p>
<p>Her... | So in my Gameplay screen user has posibillity to click on menu button and then that menu button will pause the game and show the menu. I tried to impelement menu as a new stage, but that just opens a new screen, sets the graphics of the menu like I want to and leaves the rest of the screen black. Here's the image so yo... | java|android|libgdx | 4 | 2016-05-03T12:12:07.027Z | 2,016 | 5 | 12 | 1 | 986 | 1 | 810 | 25 | 3 | 2 | true | false | false | false | false | false | low |
37,003,877 | Get Region,State,PostCode separately from Contact address android | <p>I am facing a problem here fetching the address from device contacts. The Contacts app varies with different android devices. For example, as far as i saw the contact app in lenovo has separated fields to enter street,region,postalcode,etc., but the contacts app in my nexus7 and moto x only has a single field as add... | I am facing a problem here fetching the address from device contacts. The Contacts app varies with different android devices. For example, as far as i saw the contact app in lenovo has separated fields to enter street,region,postalcode,etc., but the contacts app in my nexus7 and moto x only has a single field as addres... | android|performance|android-contentprovider|android-contacts|android-contentresolver | 5 | 2016-05-03T12:15:13.527Z | 2,016 | 5 | 12 | 1 | 447 | 0 | 640 | 65 | 5 | 1 | true | true | false | false | false | false | low |
37,003,911 | Instant location in AsyncTask with LocationListener and HttpUrlConnection post data | <p>It has been a while I'm getting to solve out this problem.</p>
<p>I have an AsyncTask which is getting every 20s the network location of the user and post the data to a remote server.</p>
<p>I have requested permissions as shown belong</p>
<pre><code><uses-permission android:name="android.permission.ACCESS_FIN... | It has been a while I'm getting to solve out this problem. I have an AsyncTask which is getting every 20s the network location of the user and post the data to a remote server. I have requested permissions as shown belong [CODE] Here is the OnCreate() of the MainActivitiy and the rest of the code [CODE] And I get the l... | android|android-asynctask|httpurlconnection|locationlistener | 0 | 2016-05-03T12:17:18.193Z | 2,016 | 5 | 12 | 1 | 133 | 1 | 851 | 83 | 4 | 4 | true | false | false | false | false | false | zero |
37,003,997 | How do I make a GridLayout where elements fill the grid equally? | <p>I'm trying to set up a layout that's divided into four equal quadrants. With a bit of research, it looked like a <code>GridLayout</code> would be what I need, so I tried the following:</p>
<pre><code> <GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
... | I'm trying to set up a layout that's divided into four equal quadrants. With a bit of research, it looked like a GridLayout would be what I need, so I tried the following: [CODE] @drawable/frame_border is defined as follows, drawing a simple white border around an element so I can see its exact bounds: [CODE] When I de... | android|xml|layout | 1 | 2016-05-03T12:20:55.030Z | 2,016 | 5 | 12 | 1 | 3,462 | 1 | 749 | 64 | 3 | 4 | true | false | true | false | false | false | low |
37,004,068 | android camera orientation SurfaceView | <p>I have made a customize video recorder using surfaceview everything is going fine just the problem is whenever i change the switch to landscape mode my recorder still captures the video is portrait mode rather than this i want that whenever while recording is going on if i switches the mode it should automatically ... | I have made a customize video recorder using surfaceview everything is going fine just the problem is whenever i change the switch to landscape mode my recorder still captures the video is portrait mode rather than this i want that whenever while recording is going on if i switches the mode it should automatically swit... | android|camera|orientation | 0 | 2016-05-03T12:24:27.907Z | 2,016 | 5 | 12 | 1 | 1,076 | 2 | 546 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
37,004,160 | After running application first time json parsed listview showing empty | <p>I am working on an application related with news, I have successfully parsed a <code>json</code> response and displayed the data in <code>listview</code>.</p>
<p>But the <code>listview</code> is not loading data at first time and remains empty.</p>
<p>On second time it displayed parsed data in <code>listview</code... | I am working on an application related with news, I have successfully parsed a json response and displayed the data in listview . But the listview is not loading data at first time and remains empty. On second time it displayed parsed data in listview . What might be the problem ? Below is my code [CODE] | java|android|json|listview|android-studio | 0 | 2016-05-03T12:28:55.850Z | 2,016 | 5 | 12 | 1 | 86 | 3 | 305 | 71 | 5 | 1 | true | false | false | false | false | false | zero |
37,004,218 | How can I prevent Android Activity from entering portrait mode breifly when I have specified landscape? | <p>I have set my default activity to landscape in the manifest file.I have also tried setting landscape orientation using
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);</p>
<p>But still the activity runs in portrait mode for few seconds and then automatically converts to landscape.</p>
<p>I want... | I have set my default activity to landscape in the manifest file.I have also tried setting landscape orientation using setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); But still the activity runs in portrait mode for few seconds and then automatically converts to landscape. I want to directly load it... | android | 1 | 2016-05-03T12:31:12.447Z | 2,016 | 5 | 12 | 1 | 177 | 4 | 561 | 103 | 1 | 1 | true | false | false | false | false | false | low |
37,004,247 | Android getting data from facebook json | <pre><code>{Response: responseCode: 200, graphObject: {"id":"108303252910226","first_name":"Chris","last_name":"Jack","email":"adaptech123@gmail.com","gender":"male","birthday":"08\/08\/1984","hometown":{"id":"106377336067638","name":"Bangalore, India"}}, error: null}
</code></pre>
<p>I'm getting this response from f... | [CODE] I'm getting this response from facebook. how to get the first name I have tired [CODE] | android|json|facebook|facebook-graph-api-v2.0 | -2 | 2016-05-03T12:32:06.410Z | 2,016 | 5 | 12 | 1 | 809 | 2 | 93 | 39 | 4 | 2 | true | false | false | false | false | true | negative |
37,004,267 | FileObserver onEvent method not called saving videos | <p>I'm using MediaRecorder to create videos in my Camera app; in the "prepare method" I set the output file with <code>recorder.setOutputFile(getOutputMediaFile(MEDIA_TYPE_VIDEO).toString());</code> while the getOutputMediaFile method is the following </p>
<pre><code>private void observeVideo(String mediaFilePath){
... | I'm using MediaRecorder to create videos in my Camera app; in the "prepare method" I set the output file with recorder.setOutputFile(getOutputMediaFile(MEDIA_TYPE_VIDEO).toString()); while the getOutputMediaFile method is the following [CODE] The problem is that onEvent isn't called. I checked if the path (of the video... | android|video|save|mediarecorder|fileobserver | 0 | 2016-05-03T12:32:48.187Z | 2,016 | 5 | 12 | 1 | 708 | 1 | 452 | 52 | 5 | 1 | true | false | false | false | false | false | zero |
37,004,389 | AbstractXMPPConnection: Connection closed with error: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) | <p>I am establishing connection with openfire using smack api at client side. able to generate successful connection and can chat.but after chatting some time I am getting the following exception.</p>
<pre><code>AbstractXMPPConnection: Connection closed with error
java.net.SocketException: recvfrom failed: ECONNRESET ... | I am establishing connection with openfire using smack api at client side. able to generate successful connection and can chat.but after chatting some time I am getting the following exception. [CODE] Gone through couple answers to the related posts but did not find the actual reason for this exception in my scenario. ... | java|android|openfire|smack | 4 | 2016-05-03T12:38:09.387Z | 2,016 | 5 | 12 | 1 | 1,008 | 0 | 560 | 134 | 4 | 2 | true | true | false | false | false | false | low |
37,004,455 | Unfortunately, Project1 has stopped. Android error while inserting to MongoDB | <p>I am trying to insert data into MongoDB from my Android application. For this I have written this code (given below) but this code pops-up an error when I click save button (for inserting data into MongoDB). </p>
<p><strong>Error:</strong> <code>Unfortunately, Project1 has stopped.</code></p>
<p>So what is the pro... | I am trying to insert data into MongoDB from my Android application. For this I have written this code (given below) but this code pops-up an error when I click save button (for inserting data into MongoDB). Error: Unfortunately, Project1 has stopped. So what is the problem in this code and how can I solve that problem... | android|mongodb|android-studio | 0 | 2016-05-03T12:41:22.423Z | 2,016 | 5 | 12 | 1 | 87 | 0 | 449 | 77 | 3 | 4 | true | true | false | false | false | false | zero |
37,004,470 | RecyclerView inside ScrollView - ScrollView doesn't work | <p>I'm using the latest support design (<code>compile 'com.android.support:design:+'</code>) which from 23.2 should have fixed the issue with RecyclerView inside ScrollView.
<strong>The RecyclerView and the ExpandableListView scrolling both work perfectly.</strong>
But when the ExpandableListView is too long and I wan... | I'm using the latest support design ( compile 'com.android.support:design:+' ) which from 23.2 should have fixed the issue with RecyclerView inside ScrollView. The RecyclerView and the ExpandableListView scrolling both work perfectly. But when the ExpandableListView is too long and I want to be able to scroll the layou... | android|scrollview | 0 | 2016-05-03T12:41:48.343Z | 2,016 | 5 | 12 | 1 | 614 | 2 | 424 | 56 | 2 | 2 | true | false | false | false | false | false | zero |
37,004,624 | How to get firebase ref from known child value | <p>Maybe a confusing title, but I'll try to explain as best as I can.
When creating a certain fragment, I want to load the value of a "scriptURL" child in firebase into a TextView field.
As the fragment is created the value of a "sibling" of the "scriptURL" child is carried into the fragment by args.</p>
<p>My firebas... | Maybe a confusing title, but I'll try to explain as best as I can. When creating a certain fragment, I want to load the value of a "scriptURL" child in firebase into a TextView field. As the fragment is created the value of a "sibling" of the "scriptURL" child is carried into the fragment by args. My firebase structure... | android|firebase | 0 | 2016-05-03T12:48:08.417Z | 2,016 | 5 | 12 | 1 | 587 | 1 | 820 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
37,004,683 | ArrayIndexOutOfBoundsException when I use the sharePref.putString | <p>When I use <code>mEditor.putString</code> in the background service, it occur this:</p>
<p>Thread Name: 'pool-2-thread-1'</p>
<p>Back traces starts:</p>
<pre><code>java.lang.ArrayIndexOutOfBoundsException: src.length=1 srcPos=0 dst.length=0 dstPos=881 length=1
at java.lang.System.arraycopy(Native Method)
at java.... | When I use mEditor.putString in the background service, it occur this: Thread Name: 'pool-2-thread-1' Back traces starts: [CODE] Back traces ends. [CODE] | java|android | 0 | 2016-05-03T12:51:02.423Z | 2,016 | 5 | 12 | 1 | 56 | 0 | 153 | 65 | 2 | 2 | true | true | false | false | false | false | zero |
37,004,718 | How to debug Null Pointer Exception raised by Butterknife in an Android app? | <p>I am having another newbie problem. As you can see in my error message. At my MainActivity.java, line 125 is presenting a Null Pointer Exception:</p>
<pre><code> 05-03 22:19:17.559 22615-22615/com.example.andrewjakevillegas.stormy E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.andrewjakevillegas.st... | I am having another newbie problem. As you can see in my error message. At my MainActivity.java, line 125 is presenting a Null Pointer Exception: [CODE] Here is my MainActivity.java [CODE] This particular line of code is giving me the headache.This is line 125 from my error log. [CODE] I have checked my layout. I got t... | java|android|nullpointerexception | 2 | 2016-05-03T12:52:09.317Z | 2,016 | 5 | 12 | 1 | 2,711 | 4 | 707 | 76 | 3 | 6 | true | false | true | false | false | false | low |
37,004,791 | Accessing an app database through ADB multiple times without closing the connection? | <p>I am using ADB to access an app database like this:</p>
<pre><code>public static int runCommandInt(String arg1) {
try {
ProcessBuilder proc = new ProcessBuilder(adbLocation, "shell", "sqlite3",
"/data/data/com.package/databases/Database.db", arg1);
Process p = proc.start(... | I am using ADB to access an app database like this: [CODE] The problem with this, however, is that every time I try to run a command, it opens and closes adb (and therefore the database connection as well - which is extremely inefficient), is there a way to get the same adb window and execute more commands there? It ha... | java|android|sqlite|adb | 0 | 2016-05-03T12:55:19.760Z | 2,016 | 5 | 12 | 1 | 60 | 2 | 441 | 84 | 4 | 1 | true | false | false | false | false | false | zero |
37,004,813 | Android SSLClient with .crt file | <p>I have an Python SSL server and client but I need an Android SSL client for my app. This is my Python client test with <code>server.crt.it</code> works now:</p>
<pre><code>import socket, ssl, pprint
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ssl_sock = ssl.wrap_socket(s,ca_certs="server.crt",cert_reqs=ss... | I have an Python SSL server and client but I need an Android SSL client for my app. This is my Python client test with server.crt.it works now: [CODE] My java client code without crt : [CODE] How can I convert my SSL Python client to Android SSL client with .crt ? my key crt csr : [CODE] in this link there are pem jks ... | android|python|sockets|ssl | 2 | 2016-05-03T12:56:35.173Z | 2,016 | 5 | 12 | 1 | 108 | 0 | 412 | 32 | 4 | 3 | true | true | false | false | false | false | low |
37,005,054 | checkbox selected clicked become yellow in fragment | <p>i have a problem with checkbox in listview with fragment.</p>
<p>Why when i click on checkbox this is yellow?i can't see check symbol; while in activity it is ok....I show you screenshot.</p>
<p>I hope that you can help me!</p>
<p>Thanks</p>
<p><a href="http://i.stack.imgur.com/CJb0x.png" rel="nofollow">enter im... | i have a problem with checkbox in listview with fragment. Why when i click on checkbox this is yellow?i can't see check symbol; while in activity it is ok....I show you screenshot. I hope that you can help me! Thanks enter image description here CODE XML: [CODE] ADAPTER CODE: [CODE] | android|listview|android-fragments|android-studio|android-checkbox | 0 | 2016-05-03T13:07:49.500Z | 2,016 | 5 | 13 | 1 | 153 | 1 | 283 | 51 | 5 | 2 | true | false | false | false | false | false | zero |
37,005,150 | Navigation drawer: How to know the current selected item? | <p>There is a left drawer and a fragment that changes when an item in the navigation drawer is selected. The problem is that, if the "Item A" is already selected, and the user select it again, the fragment is changed for the same fragment. </p>
<p>To prevent this behavior, I need to know which item is already selected... | There is a left drawer and a fragment that changes when an item in the navigation drawer is selected. The problem is that, if the "Item A" is already selected, and the user select it again, the fragment is changed for the same fragment. To prevent this behavior, I need to know which item is already selected. I was usin... | android|material-design|android-support-library | 3 | 2016-05-03T13:12:18.443Z | 2,016 | 5 | 13 | 1 | 3,074 | 2 | 487 | 57 | 3 | 1 | true | false | true | false | false | false | low |
37,005,210 | How to get available countries and Currencies? | <p>I try to get a list of all available countries and currencies at the same time.
I want the country names to be on spinner and when user chooses the country it's return the currency symbol.
My method works but i think it's very bad practice because it's take like 3-2 sec to load the data.
I did it like this:</p>
<pr... | I try to get a list of all available countries and currencies at the same time. I want the country names to be on spinner and when user chooses the country it's return the currency symbol. My method works but i think it's very bad practice because it's take like 3-2 sec to load the data. I did it like this: [CODE] Curr... | android|locale|currency | 0 | 2016-05-03T13:15:10.703Z | 2,016 | 5 | 13 | 1 | 1,629 | 1 | 442 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
37,005,274 | Issues in Camera Intent and image passing | <p>I have an activity in which i open camera in surface view and capture a image.The captured is shown on the next activity of the image view.but result activity shows a white screen data not passing into result activity Please tell me the code how i pass image to next activity?</p>
<pre><code> public class MainActivi... | I have an activity in which i open camera in surface view and capture a image.The captured is shown on the next activity of the image view.but result activity shows a white screen data not passing into result activity Please tell me the code how i pass image to next activity? [CODE] Result Activity [CODE] | java|android|android-camera-intent | 0 | 2016-05-03T13:17:16.330Z | 2,016 | 5 | 13 | 1 | 64 | 1 | 306 | 41 | 3 | 2 | true | false | false | false | false | false | zero |
37,005,417 | Pull up to refresh in android RecyclerView | <p>I have used the SwipeRefreshLayout of v4 support library according to the following way:</p>
<pre><code> swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@Override
public void onRefresh() {
refreshItems();
}
});
void refreshItems() {
... | I have used the SwipeRefreshLayout of v4 support library according to the following way: [CODE] In this strategy, if I pull down the screen when first list item is visible then onRefresh() method is called. This is called pull down to refresh. But I want the reverse effect. That is if I pull up the screen when last lis... | android|android-recyclerview|swiperefreshlayout | 3 | 2016-05-03T13:23:01.080Z | 2,016 | 5 | 13 | 1 | 12,270 | 6 | 456 | 42 | 3 | 1 | true | false | true | true | false | false | low |
37,005,563 | trying to show mqtt message as toast | <p>Hi I am trying to get the message from mqtt broker as a toast, but I keep getting an error for the Toast (red underline in the code), could someone please let me know how to amend this?</p>
<p>here is the code</p>
<pre><code> import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import andro... | Hi I am trying to get the message from mqtt broker as a toast, but I keep getting an error for the Toast (red underline in the code), could someone please let me know how to amend this? here is the code [CODE] | android|mqtt|paho | 0 | 2016-05-03T13:28:48.623Z | 2,016 | 5 | 13 | 1 | 482 | 3 | 209 | 36 | 3 | 1 | true | false | false | false | false | false | zero |
37,005,569 | Retrofit call does executed but not trigger onResponse or onFailure | <p>My call is executed but does not trigger the onResponse or onFailure method
The Json object that is returned has an image inside</p>
<p>This is the code in my interactor class</p>
<pre><code> private ExamApi initiateRetrofit() {
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
... | My call is executed but does not trigger the onResponse or onFailure method The Json object that is returned has an image inside This is the code in my interactor class [CODE] this is my examApi [CODE] | android|retrofit2 | 2 | 2016-05-03T13:29:01.573Z | 2,016 | 5 | 13 | 1 | 1,323 | 1 | 201 | 67 | 2 | 2 | true | false | false | false | false | false | low |
37,005,612 | Toast does not appears when thread completes its execution | <p>I have a <code>AsyncTask<Task, Void, Boolean></code> thread in my Android application. And I want to show message through <code>Toast.makeText()</code> when this thread completes its execution. For this I have added <code>Toask.makeText()</code> inside <code>if</code> as well as inside <code>else</code> of <co... | I have a AsyncTask<Task, Void, Boolean> thread in my Android application. And I want to show message through Toast.makeText() when this thread completes its execution. For this I have added Toask.makeText() inside if as well as inside else of doInBackground method. The thread is completing its execution succesfully but... | android|multithreading|android-studio | 0 | 2016-05-03T13:30:27.850Z | 2,016 | 5 | 13 | 1 | 49 | 4 | 399 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
37,005,641 | Difficulties with Android Alarm Manager, Boot Complete | <p>I encountered an issue where my scheduled tasks stopped working once a device was rebooted. I was informed this was normal behavior for Alarm Manager, and that I should use the BOOT_COMPLETED action. Unfortunately, it is still not working. Here is what I have</p>
<p>The main/launcher activity</p>
<pre><code>public... | I encountered an issue where my scheduled tasks stopped working once a device was rebooted. I was informed this was normal behavior for Alarm Manager, and that I should use the BOOT_COMPLETED action. Unfortunately, it is still not working. Here is what I have The main/launcher activity [CODE] bootReceiver [CODE] and my... | android|timer|alarmmanager | 2 | 2016-05-03T13:31:24.923Z | 2,016 | 5 | 13 | 1 | 357 | 1 | 426 | 54 | 3 | 3 | true | false | false | false | false | false | low |
37,005,655 | how to post json data to the restful API in header to get json response android | <p>I want to make connection to the api and post the string data to the api to get the json result but i dont know howit is done here is my code , can anyone tell me how to put json data in this url connection and pass it </p>
<pre><code> package practise.c.practise;
import android.os.Handler;
import andro... | I want to make connection to the api and post the string data to the api to get the json result but i dont know howit is done here is my code , can anyone tell me how to put json data in this url connection and pass it [CODE] | android|json | 0 | 2016-05-03T13:31:41.447Z | 2,016 | 5 | 13 | 1 | 1,522 | 2 | 225 | 79 | 2 | 1 | true | false | false | false | false | false | zero |
37,005,688 | Adding a Textview to a Relative Layout in Android Studio | <p>I have a relative layout in my XML file and it contains a button. Now I want that when I press this button, it creates 2 TextViews. Any help please because I am new to Android Studio? I have tried creating the onClickListener for the button but I am having problems in order to get an object of the current relative ... | I have a relative layout in my XML file and it contains a button. Now I want that when I press this button, it creates 2 TextViews. Any help please because I am new to Android Studio? I have tried creating the onClickListener for the button but I am having problems in order to get an object of the current relative layo... | android|android-studio|textview|android-button | -1 | 2016-05-03T13:32:45.350Z | 2,016 | 5 | 13 | 1 | 1,418 | 2 | 396 | 56 | 4 | 2 | true | false | false | false | false | true | negative |
37,005,729 | Gradle build Issue: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) | <p>I have been working on my codebase for quite some time now, without facing any issues. Everything was working fine up until a few hours back.
All of a sudden, the build process keeps crashing. I even tried reverting back to several previous commits but every time I try to build my project, it keeps crashing. I beli... | I have been working on my codebase for quite some time now, without facing any issues. Everything was working fine up until a few hours back. All of a sudden, the build process keeps crashing. I even tried reverting back to several previous commits but every time I try to build my project, it keeps crashing. I believe ... | android|android-studio|android-gradle-plugin|build.gradle | 0 | 2016-05-03T13:34:34.410Z | 2,016 | 5 | 13 | 1 | 602 | 1 | 782 | 114 | 4 | 2 | true | false | false | false | false | false | zero |
37,005,776 | How can I fix the "No certificates found - The app Chrome has requested a certificate" Android / Google Chrome issue | <h1>The issue</h1>
<p>Some of our website users are encountering an issue when accessing secure areas of our website, on Android devices, in Google Chrome.</p>
<p>It looks like this;</p>
<p><a href="https://i.stack.imgur.com/JBFkd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/JBFkd.jpg" alt="No certificates... | The issue Some of our website users are encountering an issue when accessing secure areas of our website, on Android devices, in Google Chrome. It looks like this; I've been able to replicate the issue on the following devices using Browserstack's physical device testing; Samsung Galaxy S6, Samsung Galaxy S5, Samsung G... | android|google-chrome|ssl|iis|https | 31 | 2016-05-03T13:35:57.233Z | 2,016 | 5 | 13 | 1 | 58,438 | 2 | 3,524 | 116 | 5 | 0 | false | false | true | true | true | false | high |
37,005,804 | Retry connection according to condition Retrofit | <p>I have an awkward problem that I'm really confused on the least worse way to solve it.</p>
<p>The problem is, I have 2 activities, one displaying a list and a "New" button. When I click this new button the user goes to the creation screen, upload a photo, input some info and send. Once this process succeeds, the us... | I have an awkward problem that I'm really confused on the least worse way to solve it. The problem is, I have 2 activities, one displaying a list and a "New" button. When I click this new button the user goes to the creation screen, upload a photo, input some info and send. Once this process succeeds, the user is moved... | android|retrofit | 0 | 2016-05-03T13:37:05.540Z | 2,016 | 5 | 13 | 1 | 61 | 0 | 754 | 48 | 2 | 1 | true | true | false | false | false | false | zero |
37,005,872 | Switching between difference tab and listview | <p>My App in android contain more than 7 activity first activity is splash screen, then start Main activity 2 other activity contain tab ,when i try to call tab activity from Main activity 2 by button the App is crashed,i change tab activity to list activity when i try to call list activity its same error again.
Plea... | My App in android contain more than 7 activity first activity is splash screen, then start Main activity 2 other activity contain tab ,when i try to call tab activity from Main activity 2 by button the App is crashed,i change tab activity to list activity when i try to call list activity its same error again. Please Ca... | android|listview|tabs | 0 | 2016-05-03T13:39:37.723Z | 2,016 | 5 | 13 | 1 | 40 | 2 | 537 | 45 | 3 | 5 | true | false | false | false | false | false | zero |
37,005,902 | Interaction between the recyclerview | <p>there are two recyclerview and two adapters. Both recyclerview contain text fields and buttons. I have below pressing in one recyclerview item jumped to another recyclerview and vice versa. How to do it?</p>
<p>First adapter:</p>
<pre><code>public class RVAdapterStart extends RecyclerView.Adapter<RVAdapterStart... | there are two recyclerview and two adapters. Both recyclerview contain text fields and buttons. I have below pressing in one recyclerview item jumped to another recyclerview and vice versa. How to do it? First adapter: [CODE] Second adapter: [CODE] | java|android|android-recyclerview | 0 | 2016-05-03T13:40:43.100Z | 2,016 | 5 | 13 | 1 | 203 | 0 | 248 | 36 | 3 | 2 | true | true | false | false | false | false | zero |
37,006,031 | android gradle error:Unable to find module with Gradle path ':libs' (needed by module 'app'.) | <p>I am trying to import this <a href="https://github.com/google/physical-web/tree/master/android" rel="nofollow">physical web android project</a> into my android studio, but getting this error : </p>
<p><code>Error:Unable to find module with Gradle path ':libs' (needed by module 'app'.)</code></p>
<p>I haven't chang... | I am trying to import this physical web android project into my android studio, but getting this error : Error:Unable to find module with Gradle path ':libs' (needed by module 'app'.) I haven't changed anything in the project. Please help. UPDATE : If I run ./gradelw ---stacktrace installDebug , I am getting this error... | android|gradle | 2 | 2016-05-03T13:46:25.267Z | 2,016 | 5 | 13 | 1 | 3,283 | 1 | 428 | 93 | 2 | 1 | true | false | true | false | false | false | low |
37,006,073 | How to change TextView text fragment from the activity | <p>I repeated the answer of <a href="https://stackoverflow.com/questions/16295101/how-to-change-fragments-textviews-text-from-activity">this</a> question , fail.
I need to change the textView(text) that is in cardView which is located in the fragment. This is <a href="http://pastebin.com/rzHqykGZ" rel="nofollow norefe... | I repeated the answer of this question , fail. I need to change the textView(text) that is in cardView which is located in the fragment. This is code of Fragment, i want change text in method updateTextView , but i have crash. Here's the code that I call the method with Activity [CODE] Crash looks like: java.lang.NullP... | android|android-fragments|textview | 0 | 2016-05-03T13:48:09.510Z | 2,016 | 5 | 13 | 1 | 239 | 0 | 637 | 54 | 3 | 3 | true | true | false | false | false | false | zero |
37,006,077 | checkbox..setOnCheckedChangeListener() doesn't work in fragment | <p>the method .<code>setOnCheckedChangeListener(MyFragmentList.this)</code> is underline in red by <code>IDE</code>...i don't understand what parameter i must pass to method <code>setOnCheckedChangeListener</code> in <code>Fragment</code>.
Thanks.</p>
<p>ADAPTER CODE:</p>
<pre><code>public class PlanetAdapter extends... | the method . setOnCheckedChangeListener(MyFragmentList.this) is underline in red by IDE ...i don't understand what parameter i must pass to method setOnCheckedChangeListener in Fragment . Thanks. ADAPTER CODE: [CODE] ACTIVITY: [CODE] FRAGMENT: [CODE] Edit: I get the following error when i use the solution by @Nathanael | android|listview|android-fragments|android-studio | 1 | 2016-05-03T13:48:15.550Z | 2,016 | 5 | 13 | 1 | 2,990 | 3 | 320 | 63 | 4 | 3 | true | false | true | false | false | false | low |
37,006,098 | KryoNet RMI Code works on PC but not on Android | <p>I've written some code to utilize the RMI feature of KryoNet. I've followed the examples and it all worked great on my computer.</p>
<p>However when running the same code from within an Android application I get "com.esotericsoftware.kryonet.rmi.TimeoutException". Here's the full stacktrace:</p>
<pre><code>com.eso... | I've written some code to utilize the RMI feature of KryoNet. I've followed the examples and it all worked great on my computer. However when running the same code from within an Android application I get "com.esotericsoftware.kryonet.rmi.TimeoutException". Here's the full stacktrace: [CODE] What might be causing this?... | java|android|networking|kryonet | 1 | 2016-05-03T13:49:15.077Z | 2,016 | 5 | 13 | 1 | 79 | 0 | 652 | 47 | 4 | 2 | true | true | false | false | false | false | low |
37,006,115 | Android RecyclerView with GridLayoutManager make item span multiple rows | <p>I have a collection of photos, and I'm using a <code>RecyclerView</code> to display them. I want to have the first element in my <code>RecyclerView</code> span 2 columns AND 2 rows:
<a href="https://i.stack.imgur.com/MrC0k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MrC0k.png" alt="enter image descript... | I have a collection of photos, and I'm using a RecyclerView to display them. I want to have the first element in my RecyclerView span 2 columns AND 2 rows: I know I can span 2 columns with setSpanSizeLookup : [CODE] but how can I also make the first item span 2 rows as well? I have tried setting the first item's height... | android|android-recyclerview | 52 | 2016-05-03T13:49:46.410Z | 2,016 | 5 | 13 | 1 | 24,681 | 3 | 516 | 72 | 2 | 2 | true | false | true | true | true | false | high |
37,006,210 | How can add EventListener on my Adapter? | <p>I have an Android Activity that have a RecycleView. I want to add an event listener, so I have build this code:</p>
<pre><code>public class ResultActivity extends AppCompatActivity {
private List<Result> lista;
private RecyclerView recyclerView;
private ResultsAdapter pAdapter;
@Override
... | I have an Android Activity that have a RecycleView. I want to add an event listener, so I have build this code: [CODE] This is my custom adapter: [CODE] Now if I try to start my application and I try to click on one or more item, the method OnClick, does not start. How can I fixed it? | android | 0 | 2016-05-03T13:54:02.080Z | 2,016 | 5 | 13 | 1 | 573 | 2 | 285 | 40 | 1 | 2 | true | false | false | false | false | false | zero |
37,006,294 | Crashing I suspect with onLocationChanged don't know what the bug is | <p>Help! This is my first app outside of a simple Udacity course, please be kind.</p>
<p>I want the gps accurately once. The user of my app won't need gps refreshes. Nevertheless I believe I need a onLocationChanged listener to get an accurate gps read.</p>
<p>It crashes. In MainActivity it can hit the second Toa... | Help! This is my first app outside of a simple Udacity course, please be kind. I want the gps accurately once. The user of my app won't need gps refreshes. Nevertheless I believe I need a onLocationChanged listener to get an accurate gps read. It crashes. In MainActivity it can hit the second Toast after calling MyLoca... | android|gps | 0 | 2016-05-03T13:57:16.287Z | 2,016 | 5 | 13 | 1 | 232 | 1 | 810 | 68 | 2 | 4 | true | false | false | false | false | false | zero |
37,006,317 | create report in excel by using old data of other sheet | <p>i have data in sheet1 as show below</p>
<pre><code> A B C D E F G
1 C.NO DATE STATION AGENT NARRATION CASH DUE
2 100 01/04/16 KKR ABC 7145 $1100 $500
3 101 01/04/16 BHL ... | i have data in sheet1 as show below [CODE] now i want report in sheet2 as below [CODE] in this abc,xyz & bcd are agent who are debtore kkr,bhl & rtm are source of income cash which collect by this transection coloumn "f" is blank please give me VBA CODE sheet for this problem | android|excel | 0 | 2016-05-03T13:58:13.133Z | 2,016 | 5 | 13 | 1 | 89 | 1 | 276 | 55 | 2 | 2 | true | false | false | false | false | false | zero |
37,006,354 | where can I put my EditTexts so they stop giving me a nullpointer exception error? | <p>I don't have any errors in my project but when I run it, it closes straight away, giving a nullpointer exception error with these lines :</p>
<pre><code>EditText nameofcontact = (EditText) findViewById(R.id.edittextname);
EditText numberofcontact = (EditText) findViewById(R.id.edittextname);
</code></pre>
<p>I thi... | I don't have any errors in my project but when I run it, it closes straight away, giving a nullpointer exception error with these lines : [CODE] I think I get why this error is happening – the Edittexts are being mentioned before they even exist, but when I put them in the onCreate my code still doesn't work. (It gives... | android|nullpointerexception|android-edittext | -1 | 2016-05-03T14:00:01.327Z | 2,016 | 5 | 14 | 1 | 38 | 5 | 541 | 82 | 3 | 2 | true | false | false | false | false | true | negative |
37,006,408 | Finish app from any activity | <p>I want to kill my app from a exit button on my navigation drawer. the drawer has a <em>exit button</em> that is suppose to just kill the whole app (all activity) and gets the user out of the app .</p>
<p>When i am using <code>finish()</code> in the first activity its working but when i go into the app and call <cod... | I want to kill my app from a exit button on my navigation drawer. the drawer has a exit button that is suppose to just kill the whole app (all activity) and gets the user out of the app . When i am using finish() in the first activity its working but when i go into the app and call finish() the activity gets killed and... | android|android-activity | 0 | 2016-05-03T14:02:11.947Z | 2,016 | 5 | 14 | 1 | 2,642 | 5 | 964 | 28 | 2 | 0 | false | false | true | false | false | false | zero |
37,006,571 | Take photo with button simulate programmatically like the selfie stick via bluetooth | <p>So i have a bluetooth device, i listen to button press on the device and i try to take a photo when the button is pressed. The issue is i didn't find any solution to do this.</p>
<pre><code>} else if (destination.equals(APPLICATION_ACTION_DESTINATION_OPEN_CAMERA)) {
Intent intent1 = new Intent("android.intent.a... | So i have a bluetooth device, i listen to button press on the device and i try to take a photo when the button is pressed. The issue is i didn't find any solution to do this. [CODE] The only way i found to do this is using: [CODE] The problems is i need to register INJECT_EVENTS permission which is only granted to Syst... | android|android-intent|android-camera|android-bluetooth|android-event | 3 | 2016-05-03T14:09:45.760Z | 2,016 | 5 | 14 | 1 | 2,508 | 1 | 356 | 84 | 5 | 2 | true | false | false | false | false | false | low |
37,006,580 | Retrofit calls being made multiple times when debounce with a subject | <p>I followed this link <em><a href="https://stackoverflow.com/questions/33269954/how-to-debounce-a-retrofit-reactive-request-in-java">How to debounce a retrofit reactive request in java?</a></em> to debounce a retrofit reactive request.
Below is my piece of code</p>
<pre><code>//i declare the subject globally
Publish... | I followed this link How to debounce a retrofit reactive request in java? to debounce a retrofit reactive request. Below is my piece of code [CODE] This is what is happening. Every time updateMarkers() method is called, retrofit creates a new call.clone() and the number of times it calls my back end increases by 1 ever... | android|retrofit|rx-java | 2 | 2016-05-03T14:10:10.223Z | 2,016 | 5 | 14 | 1 | 4,155 | 1 | 502 | 69 | 3 | 1 | true | false | true | false | false | false | low |
37,006,643 | Change color of AppCompatSeekBar | <p>Im trying to change the color of a AppCompatSeekBar on a android project im working on.</p>
<p>This is the code im using for it</p>
<pre><code><android.support.v7.widget.AppCompatSeekBar
android:id="@+id/seekbar"
android:progressTint="@android:color/white"
android:layout_widt... | Im trying to change the color of a AppCompatSeekBar on a android project im working on. This is the code im using for it [CODE] and it looks like this what i want is to change the color of the right part of seekbar ( after the baloon) to something like blue. Right now i can only change the "filled" portion of the bar t... | android|android-seekbar | 3 | 2016-05-03T14:13:05.643Z | 2,016 | 5 | 14 | 1 | 6,892 | 3 | 328 | 32 | 2 | 1 | true | false | true | false | false | false | low |
37,006,690 | FragmentPagerAdapter getItem() displaying position 1 instead of 0 | <p>I've has a look at majority of the answers here and can't find something that works for me. </p>
<p>I have a fragment called ActiveThreads I want it to be that whenever the user clicks on an item on this page it loads a pagerActivity which uses a FragmentPagerActivity where the user can scroll.</p>
<p>The issue I'... | I've has a look at majority of the answers here and can't find something that works for me. I have a fragment called ActiveThreads I want it to be that whenever the user clicks on an item on this page it loads a pagerActivity which uses a FragmentPagerActivity where the user can scroll. The issue I'm having is that whe... | android|fragmentpageradapter | 1 | 2016-05-03T14:15:32.343Z | 2,016 | 5 | 14 | 1 | 858 | 1 | 974 | 65 | 2 | 4 | true | false | false | false | false | false | low |
37,006,748 | MediaPlayer broken in android 6 | <p>In our player we are using media player feature to render into a SurfaceTexture that is used in jni opengl layer to render dynamic textures.</p>
<p>Everything run OK in android 4&5, but not in android 6 (with the same code). </p>
<p>The workflow is very easy.</p>
<p>First thing is load movie from url</p>
<pr... | In our player we are using media player feature to render into a SurfaceTexture that is used in jni opengl layer to render dynamic textures. Everything run OK in android 4&5, but not in android 6 (with the same code). The workflow is very easy. First thing is load movie from url [CODE] After register a mediaplayer list... | android|opengl-es|android-mediaplayer|openframeworks | 0 | 2016-05-03T14:18:49.957Z | 2,016 | 5 | 14 | 1 | 184 | 0 | 778 | 31 | 4 | 3 | true | true | false | false | false | false | zero |
37,006,954 | Art: Verification of X took Y ms | <p>I've got a warning in my logcat:</p>
<pre><code>W/art: Verification of void com.myapp.LoginFragment$override.lambda$logIn$5(com.myapp.LoginFragment, java.lang.Throwable) took 217.578ms
</code></pre>
<p>Here's the code:</p>
<pre><code>subscription = viewModel.logIn()
.observeOn(AndroidSchedulers.mainTh... | I've got a warning in my logcat: [CODE] Here's the code: [CODE] 220ms is quite a lot (and I feel like I'm noticing a lag on startup of that Fragment). I'm using RxJava and retrolambda, but this is not the only spot where this message pops up so I don't think it's directly related. How can I influence the verification t... | android|performance|android-runtime | 28 | 2016-05-03T14:27:50.623Z | 2,016 | 5 | 14 | 1 | 6,386 | 2 | 524 | 32 | 3 | 3 | true | false | true | false | true | false | high |
37,007,289 | Android app crash without a useful stack trace | <p>Through out the testing before the release the app worked well. We tested it on a couple of devices and didn't see any problems. Once the app was uploaded to the Play Store one of our users started complaining about the app crashing at one of the tabs. It's not consistent though, the crash rate is about 90%.</p>
<p... | Through out the testing before the release the app worked well. We tested it on a couple of devices and didn't see any problems. Once the app was uploaded to the Play Store one of our users started complaining about the app crashing at one of the tabs. It's not consistent though, the crash rate is about 90%. Most of th... | android|android-logcat | 6 | 2016-05-03T14:44:07.093Z | 2,016 | 5 | 14 | 1 | 10,346 | 2 | 1,571 | 46 | 2 | 2 | true | false | true | false | false | false | medium |
37,007,443 | WebView vs TextView for displaying html content | <p>I have a number of html pages as Strings in my android app. So you might visualize it as <code>List<String> myWebPages</code> where each webpage is an html page equipped with css and javascript and html body. What is the best way to display these web pages to user? Should I use WebView or should I use a TextVi... | I have a number of html pages as Strings in my android app. So you might visualize it as List<String> myWebPages where each webpage is an html page equipped with css and javascript and html body. What is the best way to display these web pages to user? Should I use WebView or should I use a TextView? Notice that I don'... | javascript|android|css|webview|textview | 0 | 2016-05-03T14:50:43.987Z | 2,016 | 5 | 14 | 1 | 1,371 | 1 | 719 | 47 | 5 | 2 | true | false | false | false | false | false | zero |
37,007,461 | Why does the base parameter give an error in the layout inflator? | <p>I am creating a custom <code>BaseAdapter</code> class,</p>
<pre><code>public class CustomAdapter extends BaseAdapter {
Context c;
ArrayList<String> items;
CustomAdapter(Context c,ArrayList<String> items)
{
this.c=c;
this.items=items;
}
@Override
public in... | I am creating a custom BaseAdapter class, [CODE] I get this error, [CODE] It is because I am passing a true in this code, [CODE] My Question is why is there an error when we pass true here ? Doesn't BaseAdapter accept it ? | android|baseadapter|layout-inflater | 0 | 2016-05-03T14:52:02.840Z | 2,016 | 5 | 14 | 1 | 34 | 1 | 222 | 65 | 3 | 3 | true | false | false | false | false | false | zero |
37,007,480 | Two TextViews on the same dialog | <p>I have two textviews, both they are getting text from the same dialog. The following approach works. </p>
<p>But as you see, I am doing the same thing for both textviews, the only difference is their resource id. Is there a better way to handle? </p>
<pre><code>public override View OnCreateView(LayoutInflater ... | I have two textviews, both they are getting text from the same dialog. The following approach works. But as you see, I am doing the same thing for both textviews, the only difference is their resource id. Is there a better way to handle? [CODE] | android|xamarin|mvvmcross | -1 | 2016-05-03T14:53:01.167Z | 2,016 | 5 | 14 | 1 | 64 | 1 | 244 | 32 | 3 | 1 | true | false | false | false | false | true | negative |
37,007,486 | Android Service doesn't Stop running | <p>I create a service and put it in the foreground with a notification. In the service I have a timer that just prints "SERVICE STILL RUNNING" to let me know the service is still alive. When I close the app, the OnDestroy() of the service is called but the timmer keeps printing "SERVICE STILL RUNNING" why is that? I p... | I create a service and put it in the foreground with a notification. In the service I have a timer that just prints "SERVICE STILL RUNNING" to let me know the service is still alive. When I close the app, the OnDestroy() of the service is called but the timmer keeps printing "SERVICE STILL RUNNING" why is that? I put t... | android|android-activity|android-service | 1 | 2016-05-03T14:53:24.677Z | 2,016 | 5 | 14 | 1 | 3,279 | 2 | 857 | 36 | 3 | 2 | true | false | true | false | false | false | low |
37,007,585 | RecyclerView onItemClick() imitation, is it good practice? | <p>I saw some different ways of implementing onItemClickListener for RecyclerView. My favourite is to use interface callback: </p>
<p>Interface: </p>
<pre><code>public interface OnClickListener {
void onCardClick(View v);
void onFavouriteButtonClick(View v);
void onRemoveClick(View v);
//Other cl... | I saw some different ways of implementing onItemClickListener for RecyclerView. My favourite is to use interface callback: Interface: [CODE] In adapter: [CODE] In main activity/fragment [CODE] So, I have some questions: is it good way of handling things? will performance be slow if number of items will grow? any reason... | android|android-recyclerview | 0 | 2016-05-03T14:57:43.040Z | 2,016 | 5 | 14 | 1 | 68 | 1 | 356 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
37,007,605 | Android issue with Skobbler SDK for offline geocoding | <p>I implemented Skobbler SDK in my app to navigate offline maps. I have an issue while trying to get coordinates from an address when user is offline. Even if I have installed the package relative to the city in which I am trying to navigate, when I start multi-step search it returns empty results without the possibil... | I implemented Skobbler SDK in my app to navigate offline maps. I have an issue while trying to get coordinates from an address when user is offline. Even if I have installed the package relative to the city in which I am trying to navigate, when I start multi-step search it returns empty results without the possibility... | android|offline|skmaps|skobbler-maps | 1 | 2016-05-03T14:58:23.757Z | 2,016 | 5 | 14 | 1 | 195 | 0 | 978 | 53 | 4 | 1 | true | true | false | false | false | false | low |
37,007,643 | No such table (Android SQLite) | <p>I've been having a problem with my SQLite DB for quite some time now. Every so often something goes wrong and I get this error:</p>
<pre><code>java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:299)
at java.util.concurrent.FutureTask.finishCom... | I've been having a problem with my SQLite DB for quite some time now. Every so often something goes wrong and I get this error: [CODE] When this happen I need to clear the entire DB, set version number one higher and remove all pictures from the server and the device (because they're kind of linked to the info in the D... | java|android|sqlite|android-asynctask | -1 | 2016-05-03T15:00:06.493Z | 2,016 | 5 | 15 | 1 | 96 | 1 | 643 | 30 | 4 | 3 | true | false | false | false | false | true | negative |
37,007,789 | TextView upside down in Android when set support RTL and Device in Hebrew Language | <p>I have some issue with textview in my application
when I set in Manifest Support:rtl true and when I install the application in device with hebrew language in interface my textview is upside down
I have some screenshot for this
first screen shot <a href="https://i.stack.imgur.com/BVR00.jpg" rel="nofollow noreferre... | I have some issue with textview in my application when I set in Manifest Support:rtl true and when I install the application in device with hebrew language in interface my textview is upside down I have some screenshot for this first screen shot if you can look the title "lubcnet" which marked in red textview is upside... | android|hebrew | 0 | 2016-05-03T15:06:19.400Z | 2,016 | 5 | 15 | 1 | 208 | 1 | 409 | 82 | 2 | 1 | true | false | false | false | false | false | zero |
37,007,793 | Sharing text from app to Email app in android | <p>I have the following code which used to send text from my app to Email:</p>
<pre><code>Intent mail = new Intent(Intent.ACTION_VIEW);
mail.setClassName("com.google.android.gm","com.google.android.gm.ComposeActivityGmail");
mail.putExtra(Intent.EXTRA_EMAIL, new String[] { });
... | I have the following code which used to send text from my app to Email: [CODE] It works , but as you see, it uses Gmail app, how do I make it use Email application instead of Gmail? I mean this app: and what about sharing to Facebook ? I found that Facebook does not support sharing using intent anymore, and I have to u... | android|email|android-intent|share | 0 | 2016-05-03T15:06:34.763Z | 2,016 | 5 | 15 | 1 | 3,459 | 3 | 423 | 45 | 4 | 1 | true | false | true | false | false | false | zero |
37,007,799 | Parse.com : Not able to receive notification | <p>My code is as below</p>
<p>AndroidManifest.xml</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.aaa"
android:versionCode="2027"
android:versionName="5.1... | My code is as below AndroidManifest.xml [CODE] My Application Class: [CODE] I am using parse SDK version 1.13.0. Testing on Android 6.0.1 (Sony Xperia Z2). I try to send push message from the Parse Dashboard. I do not receive the notification sent. I noticed that DeviceType and pushType, in the Installation table, is s... | android|parse-platform|push-notification | 0 | 2016-05-03T15:06:48.227Z | 2,016 | 5 | 15 | 1 | 43 | 0 | 338 | 44 | 3 | 2 | true | true | false | false | false | false | zero |
37,007,888 | Firebase data gets overwritten | <p>Every time my location changes i want it to add an waypoint to the same root id, but every time it just overwrites the waypoint inside the root.
Have changed .setValue to .updateChildren but still no luck.</p>
<pre><code>Firebase mainRef = null;
private void saveToFirebase() {
while (isFirstTime) {
// ... | Every time my location changes i want it to add an waypoint to the same root id, but every time it just overwrites the waypoint inside the root. Have changed .setValue to .updateChildren but still no luck. [CODE] | android|firebase|firebase-realtime-database | 0 | 2016-05-03T15:10:59.763Z | 2,016 | 5 | 15 | 1 | 330 | 1 | 212 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
37,007,908 | physical web android client build error : com.android.dx.cf.iface.ParseException | <p>I am trying to build sample physical web android client from <a href="https://github.com/google/physical-web" rel="nofollow">here</a>. After importing into android studio, I am facing this error : </p>
<pre><code>Unknown source file : UNEXPECTED TOP-LEVEL EXCEPTION:
Unknown source file : com.android.dx.cf.iface.Par... | I am trying to build sample physical web android client from here . After importing into android studio, I am facing this error : [CODE] I haven't changed anything in the code, so don't know why this error. Please help. If I change the jdk version from 1.8 to 1.7, the error changes to : [CODE] Update : Here are all my ... | android|android-gradle-plugin | 0 | 2016-05-03T15:11:39.510Z | 2,016 | 5 | 15 | 1 | 208 | 1 | 411 | 80 | 2 | 5 | true | false | false | false | false | false | zero |
37,008,000 | My layout don't have the same theme | <p>i have a pretty weird bug on my app, some all of my layout doesn't have the same theme, and i don't know why ! Here some image !</p>
<p><a href="https://i.stack.imgur.com/w3B1z.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w3B1z.jpg" alt="Here my notification bar is invisible"></a></p>
<p><a h... | i have a pretty weird bug on my app, some all of my layout doesn't have the same theme, and i don't know why ! Here some image ! I want this one ! But i can't figure why i have this problem ! Here is my manifest : [CODE] Can someone explain me why plz :( ? | android | 0 | 2016-05-03T15:15:44.070Z | 2,016 | 5 | 15 | 1 | 53 | 1 | 256 | 35 | 1 | 1 | true | false | false | false | false | false | zero |
37,008,007 | how to implement two objects in a single ViewHolder? | <p>I have got two lists, cart and promos. I want both to be displayed in a single viewholder. Is there any way I can do it? this is how I did, but it is not working.</p>
<pre><code> public class CartAdapter extends BaseAdapter {
ArrayList<Cart> list1;
Context context;
public CartAdapter(Context ... | I have got two lists, cart and promos. I want both to be displayed in a single viewholder. Is there any way I can do it? this is how I did, but it is not working. [CODE] I searched but all answers I got was about using two layouts, and using only one data list. Please help me. | android|android-viewholder | 1 | 2016-05-03T15:16:06.790Z | 2,016 | 5 | 15 | 1 | 44 | 0 | 277 | 52 | 2 | 1 | true | true | false | false | false | false | low |
37,008,037 | Get SW & NE corners of Google Static Maps API | <p>I'm having a problem with getting the bounds of my Google Static Map in my Unity application. I've tried multiple answers found here on stackoverflow.</p>
<p><a href="https://stackoverflow.com/questions/12688092/google-maps-static-api-get-sw-and-ne-by-center-coordinate">.NET related question</a></p>
<p><a href="ht... | I'm having a problem with getting the bounds of my Google Static Map in my Unity application. I've tried multiple answers found here on stackoverflow. .NET related question Javascript related question The map I'm trying to calculate the corners for is this one. First I tried translating marcelo his code from javascript... | javascript|c#|android|google-maps|google-static-maps | 2 | 2016-05-03T15:17:40.107Z | 2,016 | 5 | 15 | 1 | 1,263 | 1 | 1,861 | 45 | 5 | 4 | true | false | false | false | false | false | low |
37,008,063 | create adapter for two elements in a same row | <p>I'm trying to create an adapter for a listview, which contains two elements in a same row. </p>
<p>The LayoutFile got two linear LinearLayouts <a href="http://i.stack.imgur.com/IqzKD.jpg" rel="nofollow">Layout Image</a> with two images and name</p>
<p>The adapter only fill the first LinearLayout data, and don't sh... | I'm trying to create an adapter for a listview, which contains two elements in a same row. The LayoutFile got two linear LinearLayouts Layout Image with two images and name The adapter only fill the first LinearLayout data, and don't show the second LinearLayout. Someone could help me? Thanks in advance ! XML File: [CO... | android|listview|xamarin|android-linearlayout|adapter | 0 | 2016-05-03T15:18:43.520Z | 2,016 | 5 | 15 | 1 | 86 | 1 | 408 | 45 | 5 | 2 | true | false | false | false | false | false | zero |
37,008,149 | ParseUser class "User" is not being updated . How to update "User" class? | <p>I have the default ParseUser class "User". The problem is that when I am trying to insert data into a new column in that class "updatePOST" using querying but it does not update.</p>
<p>That column shows "undefined". Plus I want that column "updatePOST" to hold only the latest string. I have also tried giving manua... | I have the default ParseUser class "User". The problem is that when I am trying to insert data into a new column in that class "updatePOST" using querying but it does not update. That column shows "undefined". Plus I want that column "updatePOST" to hold only the latest string. I have also tried giving manually the obj... | java|android|parse-platform | 0 | 2016-05-03T15:22:14.213Z | 2,016 | 5 | 15 | 1 | 346 | 1 | 608 | 73 | 3 | 1 | true | false | false | false | false | false | zero |
37,008,196 | xamarin custom ListView does nothing when one item is selected | <pre><code>public class ListViewFaixaAdapter : BaseAdapter<Model> {
LayoutInflater _inflater;
List<Model> _faixas;
public ListViewFaixaAdapter(LayoutInflater inflater) : base(){
_faixas = new List<Model>();
for(int i = 0; i < 15; i++) {
Model faixa = new Mod... | [CODE] After showing a ListView , when I clicked one item, many events are fired by only one item. I did not find a full example showing an implementation of a custom ListView on xamarin . | listview|xamarin|xamarin.android|listviewitem | 0 | 2016-05-03T15:24:28.010Z | 2,016 | 5 | 15 | 1 | 90 | 1 | 188 | 62 | 4 | 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.