id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,842,019 | TextView not wrapping to multiline | <p>I have a <code>TextView</code> inside a <code>LinearLayout</code> which displays only a part of its text without wrapping to a newline and cannot understand why. It doesn't even show the ellipsis somewhere.</p>
<p>The <code>TextView</code></p>
<pre><code> <TextView
android:layout_width="match_parent"... | I have a TextView inside a LinearLayout which displays only a part of its text without wrapping to a newline and cannot understand why. It doesn't even show the ellipsis somewhere. The TextView [CODE] i also tried layout_weight=0 along with layout_height=0 but still no luck. All the siblings inside the LinearLayout hav... | android|textview | 1 | 2016-04-25T13:28:42.450Z | 2,016 | 4 | 13 | 0 | 1,205 | 2 | 611 | 34 | 2 | 2 | true | false | false | false | false | false | low |
36,842,096 | Incorrect alarm raised by pocketsphinx in android | <p>I have implemented pocketsphinx in my my android application to recognize voice command and create some custom dictionary and words to recognize. Here is my implementation:</p>
<pre><code> private void setupRecognizer(File assetsDir) throws IOException {
recognizer = defaultSetup()
.setAcousticModel... | I have implemented pocketsphinx in my my android application to recognize voice command and create some custom dictionary and words to recognize. Here is my implementation: [CODE] For words list: [CODE] and grammar: [CODE] But i am getting wrong results,means if i am not speaking or make a sound(even on clapping) i am ... | pocketsphinx|pocketsphinx-android | 0 | 2016-04-25T13:31:52.100Z | 2,016 | 4 | 13 | 0 | 130 | 0 | 629 | 49 | 2 | 3 | true | true | false | false | false | false | zero |
36,842,099 | Check current time against specific times in Java and Android Studio | <p>I want to set a boolean value isBasePriceTime to false if the current time is equal to 6pm or after 6pm and is not between midnight and 6am the next day. However it keeps setting the isBasePriceTime to false if the current time of the day is for example 2pm.</p>
<pre><code>private boolean checkCurrentTimePriceType(... | I want to set a boolean value isBasePriceTime to false if the current time is equal to 6pm or after 6pm and is not between midnight and 6am the next day. However it keeps setting the isBasePriceTime to false if the current time of the day is for example 2pm. [CODE] | java|date|android-studio|time|boolean | 2 | 2016-04-25T13:31:55.300Z | 2,016 | 4 | 13 | 0 | 5,372 | 3 | 265 | 68 | 5 | 1 | true | false | true | false | false | false | low |
36,842,140 | request code==400,trying to login into webservice | <p>I'm trying to create login feature in my app.Try to login for vid.me service,here the API(lonk for reques what I need to use) <a href="https://docs.vid.me/#api-Auth-Create" rel="nofollow">https://docs.vid.me/#api-Auth-Create</a>
but when I did it,I create breakpoint to my app and have badrequest,code==400.
What I di... | I'm trying to create login feature in my app.Try to login for vid.me service,here the API(lonk for reques what I need to use) https://docs.vid.me/#api-Auth-Create but when I did it,I create breakpoint to my app and have badrequest,code==400. What I did wrong and what I need to do,to fix this? Code for debugger: [CODE] ... | android|retrofit|retrofit2 | 1 | 2016-04-25T13:33:27.847Z | 2,016 | 4 | 13 | 0 | 1,789 | 1 | 428 | 49 | 3 | 5 | true | false | false | false | false | false | low |
36,842,163 | How to edit dimension of customview in Android Studio? | <p>I want to give custom dimension to custom view but when i open the app, it show me the image in small dimension. In the customview i put a GIF image.</p>
<p>The <strong>CustomGifView.java</strong></p>
<pre><code>public class CustomGifView extends View {
private InputStream gifInputStream;
private Movie gifMovie;
... | I want to give custom dimension to custom view but when i open the app, it show me the image in small dimension. In the customview i put a GIF image. The CustomGifView.java [CODE] The caricamento.xml [CODE] As you can see at the end i give 300dp - 300dp but when i open the activity in the smartphone it show always smal... | java|android|image|view|gif | 0 | 2016-04-25T13:34:19.263Z | 2,016 | 4 | 13 | 0 | 70 | 0 | 370 | 54 | 5 | 2 | true | true | false | false | false | false | zero |
36,842,314 | Applying schedulers twice in an observable chain (using compose) | <p>I have multiple network calls in my app. I like to run a network request in the IO thread by using the compose operator with this transformer:</p>
<pre><code>public static <T> Transformer<T, T> runOnIoThread()
{
return tObservable -> tObservable.subscribeOn( Schedulers.io() )
.observeOn( ... | I have multiple network calls in my app. I like to run a network request in the IO thread by using the compose operator with this transformer: [CODE] This seems to work well as long as I only have single network calls. However if I chain them as in the following example I'm getting Android's NetworkInMainThreadExceptio... | java|android|rx-java | 5 | 2016-04-25T13:40:48.580Z | 2,016 | 4 | 13 | 0 | 1,871 | 1 | 1,016 | 64 | 3 | 2 | true | false | false | false | false | false | low |
36,842,420 | TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/message/BasicHeaderElementIterator.class | <p>I get this error :</p>
<p>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.</p>
<blockquote>
<p>com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/message/BasicHeaderElementIterator.class</p>
</blockquote>
<p>Here is my a... | I get this error : Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/http/message/BasicHeaderElementIterator.class Here is my app level build.gradle : [CODE] I tried checking all the ... | android|gradle|apache-httpcomponents | 4 | 2016-04-25T13:45:17.867Z | 2,016 | 4 | 13 | 0 | 509 | 0 | 459 | 121 | 3 | 1 | true | true | false | false | false | false | low |
36,842,570 | getLastKnownLocation always returning null. Please explain? | <p>Could you please explain why getLastKnownLocation always returns null?</p>
<p><strong>This is the onCreate method :</strong></p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
locationManager = (Loca... | Could you please explain why getLastKnownLocation always returns null? This is the onCreate method : [CODE] Logs show this : [CODE] I am testing the app on my device and have enabled Google location on the device. | android|google-maps-api-3|location | 0 | 2016-04-25T13:51:14.913Z | 2,016 | 4 | 13 | 0 | 2,498 | 2 | 213 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
36,842,651 | Get VideoID from path | <p>I need to get ID of video which is saved in folder named <strong>.videos</strong> so it is hidden. I have tried to query by this method.</p>
<pre><code>public static Uri getVideoContentUri(Context context, File videoFile) {
String filePath = videoFile.getAbsolutePath();
Cursor cursor = context.getContentRes... | I need to get ID of video which is saved in folder named .videos so it is hidden. I have tried to query by this method. [CODE] But all I got is 0 everytime. expected problem: Folder is hidden that is the reason I can not get the ID? | android|video|mediastore | 2 | 2016-04-25T13:54:14.087Z | 2,016 | 4 | 13 | 0 | 370 | 0 | 232 | 21 | 3 | 1 | true | true | false | false | false | false | low |
36,843,098 | SSLHandshakeException in API 17 (JELLY_BEAN) when using custom CA | <p>I need connect to my server API with <code>TLS_v1</code>, server certificate signed by CA that not include in older version of android so i use this <a href="http://developer.android.com/training/articles/security-ssl.html#UnknownCa" rel="nofollow noreferrer">Google's document</a> to implement custom <code>TrustMana... | I need connect to my server API with TLS_v1 , server certificate signed by CA that not include in older version of android so i use this Google's document to implement custom TrustManager . Everything work on API 18 and above, but throw SSLHandshakeException in JELLY_BEAN(API 17): [CODE] I have another server URL and c... | android|security|ssl|okhttp | 0 | 2016-04-25T14:12:21.540Z | 2,016 | 4 | 14 | 0 | 259 | 1 | 621 | 65 | 4 | 1 | true | false | false | false | false | false | zero |
36,843,322 | Making ItemDecoration move with Animation | <p>I implemented ItemDecoration into my RecyclerView along with an Animation that plays whenever the RV is loaded. However, I noticed that the decoration appears already at the bounds before the animation completes, and I want to have the decoration move in with the animation at the same time. How would I do this?</p>
... | I implemented ItemDecoration into my RecyclerView along with an Animation that plays whenever the RV is loaded. However, I noticed that the decoration appears already at the bounds before the animation completes, and I want to have the decoration move in with the animation at the same time. How would I do this? So far,... | android|android-recyclerview | 10 | 2016-04-25T14:22:10.240Z | 2,016 | 4 | 14 | 0 | 3,636 | 2 | 371 | 41 | 2 | 1 | true | false | true | false | true | false | medium |
36,843,408 | Xamarin android facebook auth NullReferenceException | <p>I am faced with problem when trying to authenticate my app via facebook. After entering a username and password in the facebook form, I caught a <code>NullReferenceException</code>.
I've noticed that it happens only when I compile with Android 6.0.</p>
<pre><code>[assembly: ExportRenderer(typeof(FirstPage), typeof... | I am faced with problem when trying to authenticate my app via facebook. After entering a username and password in the facebook form, I caught a NullReferenceException . I've noticed that it happens only when I compile with Android 6.0. [CODE] Exception appears on auth.Completed event Stack Trace: at Dating.Droid.Rende... | android|facebook|xamarin | 0 | 2016-04-25T14:25:35.217Z | 2,016 | 4 | 14 | 0 | 63 | 0 | 526 | 52 | 3 | 1 | true | true | false | false | false | false | zero |
36,843,611 | ripple effect on autocomplete drop down list | <p>I have an autocomplete textview with the following layout for the items (Textview)</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
... | I have an autocomplete textview with the following layout for the items (Textview) [CODE] When the dropdown list shows, the background is grey and when I click and hold on an item there is ripple effect showing. To have the ripple effect as default is great, but how can I set the background to white while keeping the r... | android|autocompletetextview | 0 | 2016-04-25T14:34:17.737Z | 2,016 | 4 | 14 | 0 | 839 | 2 | 333 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,843,612 | Android: Grid items are not aligned at first row's second item in SuperRecyclerView GridLayout | <p>I have GridLayout using SuperRecyclerView with sicky header it's working fine but it's not align in first row's second item like <a href="http://i.stack.imgur.com/p3DTp.png" rel="nofollow">this</a>, How can I solve my problem Please help me my code as below. </p>
<p>activity.xml</p>
<pre><code><?xml version="1.... | I have GridLayout using SuperRecyclerView with sicky header it's working fine but it's not align in first row's second item like this , How can I solve my problem Please help me my code as below. activity.xml [CODE] Home.java [CODE] | android|android-studio|android-recyclerview|sticky|gridlayoutmanager | 2 | 2016-04-25T14:34:18.607Z | 2,016 | 4 | 14 | 0 | 396 | 0 | 232 | 94 | 5 | 2 | true | true | false | false | false | false | low |
36,843,764 | Following code is working fine in iOS devices while crashing on Android devices. Can somebody help me? | <pre><code>typedef std::shared_ptr<object> RObject;
class RObjectbase : public std::enable_shared_from_this<RObjectbase>
{
public:
virtual ~RObjectbase () {}
};
class RObject: public RObjectbase
{
//some functions
};
class ABC
{
public:
String key;
RObject object;
};
ty... | [CODE] /*While debugging at the point of "return object" in function "getObject" I have 1 shared-ptr and 2 weak-ptr in ios while in android devices I got expired shared-ptr and 2 weak-ptr , which crashes my program. This code worked fine when I am creating object using make_shared(iter->object) but again this is not re... | android|native|shared-ptr|weak-ptr | 0 | 2016-04-25T14:40:06.803Z | 2,016 | 4 | 14 | 0 | 27 | 0 | 362 | 102 | 4 | 1 | true | true | false | false | false | false | zero |
36,843,785 | Android Stop Runnable created in new Thread | <p>In my <code>Android</code> <code>app</code> I start a <code>Runnable</code> (called <code>remoteUDPRunnable</code>) that establishes an <code>UDP Connection</code> with another device in a new <code>Thread</code>like this:</p>
<pre><code>new Thread(remoteUDPRunnable).start();
</code></pre>
<p>I some cases, I want ... | In my Android app I start a Runnable (called remoteUDPRunnable ) that establishes an UDP Connection with another device in a new Thread like this: [CODE] I some cases, I want to stop that Thread (and cancel the UDP connection ) but I don't know how I'have tried to keep the Thread instance in a variable and call myThrea... | java|android|multithreading|udp|runnable | 1 | 2016-04-25T14:41:16.553Z | 2,016 | 4 | 14 | 0 | 770 | 1 | 720 | 43 | 5 | 3 | true | false | false | false | false | false | low |
36,843,887 | How propagate Exceptions through Content Provider's openFile() method? (API 14) | <p>I am using</p>
<pre><code>public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
</code></pre>
<p>If I call it and the CP can't provide the file, the caller (client) will still get an empty file no matter what I do on the CP side. That is, an exception on the CP-side file provide... | I am using [CODE] If I call it and the CP can't provide the file, the caller (client) will still get an empty file no matter what I do on the CP side. That is, an exception on the CP-side file provider (I am on the network retrieving files) will never propagate through to the caller resulting in an Exception there. is ... | android|exception|android-contentprovider | 1 | 2016-04-25T14:45:03.340Z | 2,016 | 4 | 14 | 0 | 58 | 0 | 481 | 79 | 3 | 3 | true | true | false | false | false | false | low |
36,843,908 | Appcelerator Titanium: Set Android.SearchView.iconifiedByDefault to false does not work if it is in actionBar? | <p>When I create a searchView and set iconifiedByDefault: false, it automatically loads into the search bar (ie. prompts for text immediately instead of having to click on the magnifying glass first).</p>
<pre><code>search = Ti.UI.Android.createSearchView({
hintText: "Search",
iconifiedByDefault: false
});
$.... | When I create a searchView and set iconifiedByDefault: false, it automatically loads into the search bar (ie. prompts for text immediately instead of having to click on the magnifying glass first). [CODE] However, when I add the SearchView into the ActionBar with iconifiedByDefault:false, the keyboard comes out but I s... | android|appcelerator|searchview|appcelerator-titanium | 0 | 2016-04-25T14:45:44.250Z | 2,016 | 4 | 14 | 0 | 274 | 0 | 585 | 110 | 4 | 2 | true | true | false | false | false | false | zero |
36,843,913 | java.net.SocketException: recvfrom failed: EBADF (Bad file descriptor) Android | <p>I try to read json file from the URL in my Android Project. But strange situation happens. StringBuilder successfully gets first few characters but then I get java.net.SocketException: recvfrom failed: EBADF (Bad file descriptor)</p>
<p>Why I get this exception?</p>
<p>What is wrong with my code?)</p>
<p>JSON: <a... | I try to read json file from the URL in my Android Project. But strange situation happens. StringBuilder successfully gets first few characters but then I get java.net.SocketException: recvfrom failed: EBADF (Bad file descriptor) Why I get this exception? What is wrong with my code?) JSON: http://inlyfortesting.ucoz.ne... | java|android|json|url|socketexception | 1 | 2016-04-25T14:45:49.157Z | 2,016 | 4 | 14 | 0 | 9,818 | 1 | 356 | 78 | 5 | 1 | true | false | true | false | false | false | low |
36,843,943 | DatePicker on PreferenceFragmentCompat screen | <p>I was using an <a href="https://github.com/kolavar/android-support-v4-preferencefragment" rel="nofollow">unofficial</a> PreferenceFragment compatibility layer for Android 1.6 and up. But Google has released <a href="http://developer.android.com/intl/es/tools/support-library/features.html" rel="nofollow">v7 Preferenc... | I was using an unofficial PreferenceFragment compatibility layer for Android 1.6 and up. But Google has released v7 Preference Support Library . So my idea is to migrate project library. CURRENT IMPLEMENTATION: In the project I have created a custom setting to support dates . [CODE] And to support this preference I'm u... | android|android-layout|android-preferences|android-datepicker | -1 | 2016-04-25T14:47:26.267Z | 2,016 | 4 | 14 | 0 | 742 | 1 | 654 | 45 | 4 | 3 | true | false | false | false | false | true | negative |
36,843,946 | Custom ListView Items are not clickable | <p>I am working on an application which contains Custom ListView on its main activity. It was working fine but the day before yesterday, list view items are suddenly become non-clickable. I've searched a lot, but no answer solved my this issue. It is strange. Normal list view is working good, but custom isn't. What may... | I am working on an application which contains Custom ListView on its main activity. It was working fine but the day before yesterday, list view items are suddenly become non-clickable. I've searched a lot, but no answer solved my this issue. It is strange. Normal list view is working good, but custom isn't. What may be... | android|listview | 1 | 2016-04-25T14:47:34.443Z | 2,016 | 4 | 14 | 0 | 359 | 2 | 549 | 39 | 2 | 3 | true | false | false | false | false | false | low |
36,844,060 | android get contacts with at least 1 phone number | <p>I am trying to get all numbers that i have in my device with condition , that the contact contains at least 1 phone number. I made a try , but it doesn't work.</p>
<pre><code>selectionString = edtSearch.getText().toString() ;
String[] selectionArgs = { "%" + selectionString + "%", selectionString + "%", "%" + sele... | I am trying to get all numbers that i have in my device with condition , that the contact contains at least 1 phone number. I made a try , but it doesn't work. [CODE] Where is the mistake ? | android|android-cursorloader | 0 | 2016-04-25T14:52:14.583Z | 2,016 | 4 | 14 | 0 | 48 | 1 | 189 | 49 | 2 | 1 | true | false | false | false | false | false | zero |
36,844,073 | Android: Displaying player icon on map based on coords | <p>I have an image of map (fixed size) to be displayed as background and I want to display a player icon over it. I am getting player's current coords as android.graphic.Point.</p>
<p>I tried RelativeLayout with setting up margins, which kinda worked, but when the display is rotated, the icon is obviously moved elsewh... | I have an image of map (fixed size) to be displayed as background and I want to display a player icon over it. I am getting player's current coords as android.graphic.Point. I tried RelativeLayout with setting up margins, which kinda worked, but when the display is rotated, the icon is obviously moved elsewhere. Also I... | android|android-layout|android-graphics | 0 | 2016-04-25T14:52:43.797Z | 2,016 | 4 | 14 | 0 | 26 | 1 | 509 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
36,844,265 | Add OnClickListner to CardView and get data | <p>I wan to attach an OnClickListener to a CardView, so i can get the ID from the card</p>
<p>I have a RecyclerView that has a custom adapter for displaying the cards. This is how it's implemented.</p>
<p>I tried other examples in stackoverflow but it didn't work .</p>
<pre><code>public class CardAdapter extends Rec... | I wan to attach an OnClickListener to a CardView, so i can get the ID from the card I have a RecyclerView that has a custom adapter for displaying the cards. This is how it's implemented. I tried other examples in stackoverflow but it didn't work . [CODE] | android|android-recyclerview|android-cardview | 1 | 2016-04-25T15:01:07.307Z | 2,016 | 4 | 15 | 0 | 1,185 | 1 | 255 | 43 | 3 | 1 | true | false | false | false | false | false | low |
36,844,284 | intent method (onActivityResult) wipeout previous listview stored data | <p>I am trying to create a group of phone contacts in <code>CreateGroup.java</code> . So, for that purpose, I go to a new activity named <code>ContactsView.java</code> using an <code>Intent</code>. There I a get list of all contacts. When I click a contact from that list, it gets the name of that contact item and retur... | I am trying to create a group of phone contacts in CreateGroup.java . So, for that purpose, I go to a new activity named ContactsView.java using an Intent . There I a get list of all contacts. When I click a contact from that list, it gets the name of that contact item and returns it back to the previous activity named... | java|android|listview|android-intent | -1 | 2016-04-25T15:02:07.370Z | 2,016 | 4 | 15 | 0 | 67 | 1 | 727 | 70 | 4 | 3 | true | false | false | false | false | true | negative |
36,844,323 | When added JSONObject method, Limited Json in Android | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts. <br>
But i have strange problem! when added this line in my codes, <code>json</code> and <code>RecyclerView</code> has limited and show 5 post instance of 10 posts... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts. But i have strange problem! when added this line in my codes, json and RecyclerView has limited and show 5 post instance of 10 posts! code : [CODE] when added this line limited for 5 post, whe... | android|json | 0 | 2016-04-25T15:03:35.403Z | 2,016 | 4 | 15 | 0 | 78 | 3 | 515 | 53 | 2 | 2 | true | false | false | false | false | false | zero |
36,844,373 | android error dynamically loading libc++.so native library | <p>I am trying to build a proof-of-concept android application which uses <strong>OpenSSH</strong> code to establish a SSH session with a server. </p>
<p>For that I am using android sources to build the required libraries and then pull them up to an AndroidStudio native project where everything should be packed and in... | I am trying to build a proof-of-concept android application which uses OpenSSH code to establish a SSH session with a server. For that I am using android sources to build the required libraries and then pull them up to an AndroidStudio native project where everything should be packed and installed on the device. Howeve... | android|c++|java-native-interface|native | 9 | 2016-04-25T15:05:57.073Z | 2,016 | 4 | 15 | 0 | 3,902 | 0 | 2,085 | 58 | 4 | 7 | true | true | true | false | false | false | medium |
36,844,421 | Overflow menu icon color won't change for android < 21 | <p>I am trying to change overflow menu icon color of the toolbar, which is like this :-</p>
<pre><code><android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar_actionbar"
android:layout_width="... | I am trying to change overflow menu icon color of the toolbar, which is like this :- [CODE] The two custom themes :- [CODE] I can change title/menu icon color too. But the overflow icon color is always black.I even tried specifying custom icon that too didn't work. | android|android-xml|android-toolbar|android-styles | 0 | 2016-04-25T15:07:31.383Z | 2,016 | 4 | 15 | 0 | 702 | 3 | 265 | 54 | 4 | 2 | true | false | false | false | false | false | zero |
36,844,463 | How to cache a cloud image in either internal or external memory of an android device | <blockquote>
<p>Hello Android members, am having an android code that is working very well with android devices when an external memory is present. Practically an image from a URL is cached in an external device and displayed well on my app but my question is: Can anyone guide me on how to make the image saved in an ... | Hello Android members, am having an android code that is working very well with android devices when an external memory is present. Practically an image from a URL is cached in an external device and displayed well on my app but my question is: Can anyone guide me on how to make the image saved in an internal storage a... | android | 0 | 2016-04-25T15:09:25.110Z | 2,016 | 4 | 15 | 0 | 130 | 1 | 459 | 85 | 1 | 1 | true | false | false | false | false | false | zero |
36,844,465 | VK Android SDK - response.parsedModel is null | <p>I'm using the latest Android SDK for VK, and trying to get posts from my wall:</p>
<pre><code>VKParameters vkParameters = VKParameters.from(VKApiConst.USER_ID, SettingsManager.getInstance().getVkId());
VKRequest vkRequest = VKApi.wall().get(vkParameters);
vkRequest.executeWithListener(new VKRequest... | I'm using the latest Android SDK for VK, and trying to get posts from my wall: [CODE] I see the JSON and string in response, but parsedModel is null: Why and how to fix it? | android|vk|vk-sdk | 2 | 2016-04-25T15:09:25.830Z | 2,016 | 4 | 15 | 0 | 245 | 1 | 172 | 45 | 3 | 1 | true | false | false | false | false | false | low |
36,844,563 | Android webview doesn't finish rendering text | <p>I'm developing an application that requires somewhat complex html rendering (basically text and images, but the text may have some advanced features like custom font and path) and I'm using webviews to render the content.</p>
<p>The problem is that some of the pages doesn't render text in some devices.</p>
<p>I'm ... | I'm developing an application that requires somewhat complex html rendering (basically text and images, but the text may have some advanced features like custom font and path) and I'm using webviews to render the content. The problem is that some of the pages doesn't render text in some devices. I'm using all three cal... | android|text|webview|render | 1 | 2016-04-25T15:14:07.583Z | 2,016 | 4 | 15 | 0 | 641 | 2 | 1,157 | 45 | 4 | 1 | true | false | false | false | false | false | low |
36,844,572 | Android studio broke up my build.gradle file after add a Fragment | <p>Using Android Studio 2.0 over El Capitan like the next screenshot said:<br>
<a href="https://i.stack.imgur.com/E6vNJ.png"><img src="https://i.stack.imgur.com/E6vNJ.png" alt="Android Studio 2.0 on El Capitan"></a></p>
<p>I found a bug that I can't report:
After add a Fragment to my project, AS screw up my module bui... | Using Android Studio 2.0 over El Capitan like the next screenshot said: I found a bug that I can't report: After add a Fragment to my project, AS screw up my module build.gradle file. I mean, before add the fragment they file looks like this screenshot: but after add the Fragment AS screw it in this way: The way to rep... | android|android-studio|android-gradle-plugin|build.gradle|osx-elcapitan | 20 | 2016-04-25T15:14:26.277Z | 2,016 | 4 | 15 | 0 | 3,297 | 4 | 520 | 65 | 5 | 0 | false | false | true | false | true | false | medium |
36,844,683 | Gradle cache conflicting with original library? | <p>I am building a Nativescript plugin, for android. When I add the Azure-Mobile-SDK (<code>azure-mobile-android-3.1.0.jar</code>), I get the following error:</p>
<pre><code>:buildMetadata
Exception in thread "main" java.lang.IllegalArgumentException: Class com.microsoft.windowsazure.mobileservices.table.query.Functio... | I am building a Nativescript plugin, for android. When I add the Azure-Mobile-SDK ( azure-mobile-android-3.1.0.jar ), I get the following error: [CODE] It looks as though the cached version is conflicting with my original library and causing my build to fail - why is this happening and how can I stop it? If I delete th... | java|android|gradle|jar | 0 | 2016-04-25T15:19:16.897Z | 2,016 | 4 | 15 | 0 | 132 | 0 | 630 | 47 | 4 | 2 | true | true | false | false | false | false | zero |
36,844,764 | Binding .AAR Library in Xamarin.Android with javadoc doesn't adopt parameter names | <p>I've been trying to include the javadoc to a .aar library so I don't have to manually edit every method parameter name in the MetaData.xml file.
So far I've done everything suggested in <a href="https://forums.xamarin.com/discussion/11121/including-javadocs-in-a-binding-library" rel="nofollow">this</a> thread but I ... | I've been trying to include the javadoc to a .aar library so I don't have to manually edit every method parameter name in the MetaData.xml file. So far I've done everything suggested in this thread but I still can't get it to work. I generated the javadoc like so: javadoc -subpackages at -notree -noindex -nohelp -nonav... | android|visual-studio-2013|xamarin|xamarin.android|aar | 3 | 2016-04-25T15:22:51.217Z | 2,016 | 4 | 15 | 0 | 244 | 0 | 1,051 | 82 | 5 | 3 | true | true | false | false | false | false | low |
36,844,938 | android java.lang.UnsatisfiedLinkError | <p>Background: </p>
<p>I'm running Ubuntu 14.04 in a VirtualBox VM and I am trying to set up some dependencies in order to start playing around with the PhoneGap framework. Namely Java SE and Android SDK. First, I installed the Android SDK by following this tutorial: <a href="http://dasunhegoda.com/installrun-phonegap... | Background: I'm running Ubuntu 14.04 in a VirtualBox VM and I am trying to set up some dependencies in order to start playing around with the PhoneGap framework. Namely Java SE and Android SDK. First, I installed the Android SDK by following this tutorial: http://dasunhegoda.com/installrun-phonegap-ubuntu/797/ (at step... | java|android|ubuntu|sdk|unsatisfiedlinkerror | 0 | 2016-04-25T15:30:17.537Z | 2,016 | 4 | 15 | 0 | 1,579 | 3 | 921 | 38 | 5 | 3 | true | false | false | false | false | false | zero |
36,845,003 | Loading map tiles after zoom level 19 | <p>I am working with osmdroid and trying to display map tiles past the zoom level of 19. I have set the mapview max zoom to be 20, and told the tile source to use a max level of 20 as well. I can "zoom" to the level 20 (it just appears more pixelated as it doesn't seem that Mapnik actually provide them at that level) w... | I am working with osmdroid and trying to display map tiles past the zoom level of 19. I have set the mapview max zoom to be 20, and told the tile source to use a max level of 20 as well. I can "zoom" to the level 20 (it just appears more pixelated as it doesn't seem that Mapnik actually provide them at that level) whic... | android|osmdroid | 0 | 2016-04-25T15:33:22.107Z | 2,016 | 4 | 15 | 0 | 563 | 1 | 683 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
36,845,037 | Listview occur error when scrolling down | <p>When I am scrolling down to the bottom of the list it throws an error but if not scrolling everything works correctly, please help me. Here is my code:</p>
<p>customadapter.java</p>
<pre><code>public class CustomAdapter extends ArrayAdapter<String> {
Context c;
String[] players;
int[] images;
LayoutInflater... | When I am scrolling down to the bottom of the list it throws an error but if not scrolling everything works correctly, please help me. Here is my code: customadapter.java [CODE] MainActivity.java [CODE] } MainActivity.xml [CODE] rowmodel.xml [CODE] This is the error [CODE] | android|listview|scroll | 0 | 2016-04-25T15:34:59.637Z | 2,016 | 4 | 15 | 0 | 664 | 3 | 273 | 40 | 3 | 5 | true | false | false | false | false | false | zero |
36,845,169 | Android. Adding text over image with effect | <p>world! I am a student and I am developing an Android application about my country. I noticed a beautiful layout in an app.
<a href="https://i.stack.imgur.com/oaCJr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oaCJr.png" alt="A text is over image at the bottom with background gradient"></a></p>... | world! I am a student and I am developing an Android application about my country. I noticed a beautiful layout in an app. In this picture, textviews placed at the bottom of images with beautiful background(kind of gradient) I was wondering if you could help me to figure out how to do it or showing a direction. All I h... | android | 4 | 2016-04-25T15:41:03.660Z | 2,016 | 4 | 15 | 0 | 1,984 | 1 | 363 | 43 | 1 | 1 | true | false | false | false | false | false | low |
36,845,192 | Center DIV on Android & iPhone | <p>I need to get a DIV that I have to center both in 320/480 views on BOTH iPhones and Android phones.</p>
<p>Below are my tests.</p>
<p>It seems NOT to center on an Android Phone.</p>
<p><strong>Test Page</strong> -
<a href="http://mymsaa.org/publications/motivator/winter-spring16/" rel="nofollow">http://mymsaa.or... | I need to get a DIV that I have to center both in 320/480 views on BOTH iPhones and Android phones. Below are my tests. It seems NOT to center on an Android Phone. Test Page - http://mymsaa.org/publications/motivator/winter-spring16/ iPhone Example - http://mymsaa.org/example_2.png Android Phone Example - http://mymsaa... | android|html|css|iphone|center | 0 | 2016-04-25T15:42:06.737Z | 2,016 | 4 | 15 | 0 | 139 | 1 | 464 | 30 | 5 | 2 | true | false | false | false | false | false | zero |
36,845,216 | android Using binarySearch to get the index to be added to List | <p>Hi I have and android app that contruct list of object (topStories). When a new item <code>TopStory</code> is added to the list (<code>topstories</code>) (the list is initial an empty <code>ArrayList</code>). I want to determine the <code>index</code> that the new item should be add so that the List <code>topstories... | Hi I have and android app that contruct list of object (topStories). When a new item TopStory is added to the list ( topstories ) (the list is initial an empty ArrayList ). I want to determine the index that the new item should be add so that the List topstories remain in order of specific variable (TopStory.time). How... | android|arraylist|z-index|binary-search | 0 | 2016-04-25T15:43:00.330Z | 2,016 | 4 | 15 | 0 | 128 | 0 | 494 | 63 | 4 | 3 | true | true | false | false | false | false | zero |
36,845,228 | Getting an Android App working on Android 4+ | <p>I have built an Android app and it work on Android 5+ fine and also on Android 6. However on a Samsung tab 2 which runs Android 4.0.3, it will not run at all.</p>
<p>My SDK references Version 23 as the build but I do appear to have other previous versions installed too if you see a gif of my SDK installs.</p>
<p>W... | I have built an Android app and it work on Android 5+ fine and also on Android 6. However on a Samsung tab 2 which runs Android 4.0.3, it will not run at all. My SDK references Version 23 as the build but I do appear to have other previous versions installed too if you see a gif of my SDK installs. What do I need to ge... | android|android-studio|sdk|ionic-framework|android-sdk-manager | 0 | 2016-04-25T15:43:41.577Z | 2,016 | 4 | 15 | 0 | 19 | 1 | 735 | 44 | 5 | 0 | false | false | false | false | false | false | zero |
36,845,457 | onSaveInstanceState or SharedPreferences for multiple CheckBoxes? | <p>I have been trying for a few days now to correctly implement the <code>onSaveInstanceState()</code> method, but with no success up until now. </p>
<p>What am I doing wrong? My code does not return an error, but the state of the checkboxes is not saved?</p>
<p>Is it ok to implement the <code>onSaveInstanceState()</... | I have been trying for a few days now to correctly implement the onSaveInstanceState() method, but with no success up until now. What am I doing wrong? My code does not return an error, but the state of the checkboxes is not saved? Is it ok to implement the onSaveInstanceState() method? Would it be better if I used Sha... | android|checkbox|sharedpreferences|savestate | 2 | 2016-04-25T15:55:03.060Z | 2,016 | 4 | 15 | 0 | 432 | 3 | 572 | 65 | 4 | 3 | true | false | false | false | false | false | low |
36,845,462 | Getting the 3G signal strength in Android | <p>I'm currently detecting the technology my phone is connected to using, within a <code>onSignalStrengthsChanged(SignalStrength signalStrength)</code>, this code :</p>
<pre><code>int networkType = telephonyManager.getNetworkType();
switch (networkType) {
case TelephonyManager.NETWORK_TYPE_... | I'm currently detecting the technology my phone is connected to using, within a onSignalStrengthsChanged(SignalStrength signalStrength) , this code : [CODE] but once this verification is done, how do I manage to get the signal strength ? I need to get the value (DBM or RSSI) only when the phone is under a 3G network. T... | android|3g|signal-strength | 1 | 2016-04-25T15:55:11.497Z | 2,016 | 4 | 15 | 0 | 710 | 0 | 325 | 41 | 3 | 1 | true | true | false | false | false | false | low |
36,845,463 | Using view pager in recycler view row? | <p>In my app, I am using a fragment view pager in my recycler view rows. I am doing this to display the main content in the first fragment and then a fragment container a delete button as the second fragment. For some reason, when I launch my app, my view pager is only working in the first row. Does anyone know what co... | In my app, I am using a fragment view pager in my recycler view rows. I am doing this to display the main content in the first fragment and then a fragment container a delete button as the second fragment. For some reason, when I launch my app, my view pager is only working in the first row. Does anyone know what could... | android|view|fragment|pager | 0 | 2016-04-25T15:55:12.293Z | 2,016 | 4 | 15 | 0 | 740 | 1 | 611 | 38 | 4 | 1 | true | false | false | false | false | false | zero |
36,845,707 | Cannot process android post request to server and receive result back to android | <p>I have research on this about how to post a request and receive response from server concurrently which I finally got to some reasonable walk-through but it is not working. Please kindly help.</p>
<pre><code> button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) ... | I have research on this about how to post a request and receive response from server concurrently which I finally got to some reasonable walk-through but it is not working. Please kindly help. [CODE] //Send data [CODE] My php code [CODE] //My profile.xml [CODE] Please kindly help. Thanks. | java|php|android|httprequest|urlencode | 2 | 2016-04-25T16:08:05.137Z | 2,016 | 4 | 16 | 0 | 121 | 2 | 289 | 80 | 5 | 4 | true | false | false | false | false | false | low |
36,845,711 | MainActivity NoClassDefFoundError | <p>I seem to be having a similar problem to a myriad of the community; however, I don't seem to have the same symptoms (or at the very least, my Google-fu is not allowing me to find it).</p>
<p>Long story short: The app is giving me <code>java.lang.RuntimeException: Unable to instantiate activity</code>.</p>
<p>From ... | I seem to be having a similar problem to a myriad of the community; however, I don't seem to have the same symptoms (or at the very least, my Google-fu is not allowing me to find it). Long story short: The app is giving me java.lang.RuntimeException: Unable to instantiate activity . From what I understand this can only... | android|android-studio|android-activity|android-manifest | 2 | 2016-04-25T16:08:33.940Z | 2,016 | 4 | 16 | 0 | 73 | 1 | 872 | 33 | 4 | 1 | true | false | false | false | false | false | low |
36,845,843 | Resize Bitmap only if too large | <p>I would like to resize each photo taken with camera only if the photo is too large (e.g only of width > 2048px).</p>
<p>I've seen on the official doc</p>
<pre><code>public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,
int reqWidth, int reqHeight) {
// First decode with inJustDeco... | I would like to resize each photo taken with camera only if the photo is too large (e.g only of width > 2048px). I've seen on the official doc [CODE] and [CODE] but this code involve that I know the final size. What I want to do do is to reduce by 50% if it is really too large, or only 20% if the bitmap is not too larg... | android|android-bitmap | 0 | 2016-04-25T16:15:50.610Z | 2,016 | 4 | 16 | 0 | 1,082 | 2 | 734 | 31 | 2 | 3 | true | false | false | false | false | false | zero |
36,845,861 | React Native setState() & Animated on Android | <p>I'm working on 'toast' like component for my react-native app. And it works fine with the iOS emulator, but it doesn't update the state before the animation on my android device (Galaxy Note 2). Here is the renderer of my component: </p>
<pre><code> render() {
return (<Animated.View
... | I'm working on 'toast' like component for my react-native app. And it works fine with the iOS emulator, but it doesn't update the state before the animation on my android device (Galaxy Note 2). Here is the renderer of my component: [CODE] this.animatedValue is created like this on the constructor: [CODE] And I have a ... | javascript|android|animation|react-native|setstate | 1 | 2016-04-25T16:16:25.430Z | 2,016 | 4 | 16 | 0 | 1,554 | 1 | 2,476 | 45 | 5 | 2 | true | false | false | false | false | false | low |
36,845,983 | Component not updating after data changes in React Native | <p>Let me preface this by saying I'm new to React and React Native so I might be making some obvious mistakes.</p>
<p>I'm using a React Native module (<a href="https://github.com/rt2zz/react-native-contacts" rel="nofollow">https://github.com/rt2zz/react-native-contacts</a>) to access my phone's contact list then I'm t... | Let me preface this by saying I'm new to React and React Native so I might be making some obvious mistakes. I'm using a React Native module ( https://github.com/rt2zz/react-native-contacts ) to access my phone's contact list then I'm trying to display those contacts in a Listview. However, after running my app in an em... | android|reactjs|react-native | 3 | 2016-04-25T16:22:27.130Z | 2,016 | 4 | 16 | 0 | 3,676 | 1 | 666 | 57 | 3 | 1 | true | false | true | false | false | false | low |
36,846,002 | Parameter sent from android app by posting always be empty on backend server written in Go language | <p>I am trying to post a token by using SendUserIdTokenToBackend() method in an android app. </p>
<pre><code>private class SendUserIdTokenToBackend extends AsyncTask<String, Void, String> {
private Exception exception;
@Override
protected String doInBackground(String... idToken) {
Log.d(T... | I am trying to post a token by using SendUserIdTokenToBackend() method in an android app. [CODE] Log.d results are ok. I see token id printed correctly in the log. However on the server side, I can't get idToken parameter [CODE] fmt printed out " map[] and ",idToken is empty. I tried calling parseForm() before getting ... | android|http|google-app-engine|post|go | 0 | 2016-04-25T16:23:29.467Z | 2,016 | 4 | 16 | 0 | 46 | 1 | 409 | 99 | 5 | 2 | true | false | false | false | false | false | zero |
36,846,079 | Does it require to switch on the internet to get longitude and latitude in android studio | <p>My app is giving me the longitude and latitude of my location only when the net connection is there and when i switch it off it only shows me the last location without updating it.</p>
<pre><code>public Location getLocation() {
try {
locationManager = (LocationManager) mContext
... | My app is giving me the longitude and latitude of my location only when the net connection is there and when i switch it off it only shows me the last location without updating it. [CODE] | android | 1 | 2016-04-25T16:27:34.103Z | 2,016 | 4 | 16 | 0 | 382 | 1 | 187 | 89 | 1 | 1 | true | false | false | false | false | false | low |
36,846,081 | JUnit4 TextUtils.isEmpty() gives different result than String.isEmpty() | <p>I know it's weird, but this is what I have.</p>
<p><a href="https://i.stack.imgur.com/2a9zK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2a9zK.png" alt="enter image description here"></a></p>
<p>I'm writing a unit test to check my logic for an Android application. During the test execution, I... | I know it's weird, but this is what I have. I'm writing a unit test to check my logic for an Android application. During the test execution, I see that it fails on that line: if (!TextUtils.isEmpty(fromFile)) Before that if statement fromFile is equals to "" (empty string), but somehow it passes over it and breaks with... | java|android|string|junit|is-empty | 8 | 2016-04-25T16:27:42.447Z | 2,016 | 4 | 16 | 0 | 3,807 | 2 | 947 | 71 | 5 | 2 | true | false | true | false | false | false | medium |
36,846,104 | Error in sending request Google Cloud Messaging in PHP | <p>I am trying to use Google Clouding Messaging API to integrate with Android App. For backend, I am using Laravel 5.2. I generated 3 api keys in Google API. These are server API key, Android API key and browser API key. I am referencing on this <a href="http://www.androidhive.info/2012/10/android-push-notifications-us... | I am trying to use Google Clouding Messaging API to integrate with Android App. For backend, I am using Laravel 5.2. I generated 3 api keys in Google API. These are server API key, Android API key and browser API key. I am referencing on this tutorial . This is my push request from server to GCM server: [CODE] I called... | php|android|google-cloud-messaging | 0 | 2016-04-25T16:28:57.693Z | 2,016 | 4 | 16 | 0 | 175 | 1 | 859 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
36,846,331 | Error:Execution failed for task ':app:dexDebug'. | <p>I'm working on an android app using android studio for school and I'm trying to use Jersey client to connect the app with my web services. I'm getting the following error when I attempt to add the jars required for Jersey client and compile the project.</p>
<blockquote>
<p>Error:Execution failed for task ':app:d... | I'm working on an android app using android studio for school and I'm trying to use Jersey client to connect the app with my web services. I'm getting the following error when I attempt to add the jars required for Jersey client and compile the project. Error:Execution failed for task ':app:dexDebug'. com.android.ide.c... | java|android-studio|gradle|build.gradle|android-multidex | 0 | 2016-04-25T16:40:09.610Z | 2,016 | 4 | 16 | 0 | 38 | 1 | 1,079 | 48 | 5 | 2 | true | false | false | false | false | false | zero |
36,846,339 | RecyclerView not populating data in ViewPager tab | <p>I have implemented a basic setup of ViewPager, RecyclerView, and ContentProvider. I seem to be able to query data without any problem but I am not able to show the content using RecyclerView in the ViewPager tab.</p>
<p>Full code is available here - <a href="https://github.com/sudhirkhanger/PopularMovies" rel="nofo... | I have implemented a basic setup of ViewPager, RecyclerView, and ContentProvider. I seem to be able to query data without any problem but I am not able to show the content using RecyclerView in the ViewPager tab. Full code is available here - https://github.com/sudhirkhanger/PopularMovies [CODE] As you can see below th... | android|android-viewpager|android-recyclerview|android-contentprovider | 0 | 2016-04-25T16:40:27.110Z | 2,016 | 4 | 16 | 0 | 605 | 4 | 358 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
36,846,473 | ExpandableListView not showing all the headers and children | <p>Expandable view is not creating list of all the headers and the children, only one group header is showing with no children in it, just the down arrow.
On click it is just showing up arrow and nothing else.</p>
<pre><code>public class CategoryWise extends AppCompatActivity {
ExpandableListAdapter expandableListAda... | Expandable view is not creating list of all the headers and the children, only one group header is showing with no children in it, just the down arrow. On click it is just showing up arrow and nothing else. [CODE] this ExpandableListAdapter class is as follows [CODE] When I was unable to find the solution i tried this ... | java|android|expandablelistview | 0 | 2016-04-25T16:47:38.197Z | 2,016 | 4 | 16 | 0 | 578 | 0 | 354 | 59 | 3 | 3 | true | true | false | false | false | false | zero |
36,846,523 | RecyclerView itemView image drawable being changed when scrolling back to top | <p>I have a problem with my recyclerview. When I scroll down everything is ok but when I scroll back to top the drawable that I set to images is being changed.
Here's my Adapter code:</p>
<pre><code> @Override
public FeedsHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInfl... | I have a problem with my recyclerview. When I scroll down everything is ok but when I scroll back to top the drawable that I set to images is being changed. Here's my Adapter code: [CODE] And than I set the default image of the holder.like imageview in onBindViewHolder: [CODE] And I think this is the problem... But I d... | android|android-recyclerview|backendless | 0 | 2016-04-25T16:50:26.477Z | 2,016 | 4 | 16 | 0 | 1,092 | 1 | 565 | 77 | 3 | 3 | true | false | false | false | false | false | zero |
36,846,716 | Geofencing Intent Not Firing | <p>Hello everyone i am implementing geofencing feature in my android application to send toast notifications.The thing is when i am inside(where i am making fences) a fence that i have created then the intent is fired but when i try to fire the event again by reentering the location intent is not firing here is my code... | Hello everyone i am implementing geofencing feature in my android application to send toast notifications.The thing is when i am inside(where i am making fences) a fence that i have created then the intent is fired but when i try to fire the event again by reentering the location intent is not firing here is my code [C... | android|android-intent|xamarin.android|geofencing | 0 | 2016-04-25T17:00:30.550Z | 2,016 | 4 | 17 | 0 | 868 | 1 | 431 | 28 | 4 | 2 | true | false | false | false | false | false | zero |
36,846,958 | Most efficient method of creating a local notification system with Firebase | <p>I created a chat app using Firebase. I opted to use locally built notifications to notify users of messages. </p>
<p>Currently inside the onChildAdded() method (in the FirebaseArray class I forked) the system works like this: </p>
<pre><code>if (isUserInChatScreen == false) {
//build notification
}... | I created a chat app using Firebase. I opted to use locally built notifications to notify users of messages. Currently inside the onChildAdded() method (in the FirebaseArray class I forked) the system works like this: [CODE] The system works fine (prior to android severing the connection), but, because the user's accou... | android|notifications|firebase | 0 | 2016-04-25T17:13:30.387Z | 2,016 | 4 | 17 | 0 | 354 | 0 | 1,696 | 75 | 3 | 1 | true | true | false | false | false | false | zero |
36,847,035 | Align menu item at Navigation to the right side in android | <p>I made the navigation drawer at android app and make everything correctly to appear it from the right side but only I face one problem at the alignment of menu item to the right side but I couldn't , how I can do that?</p>
<p>The picture show navigation with menu items in the left side
<a href="https://i.stack.img... | I made the navigation drawer at android app and make everything correctly to appear it from the right side but only I face one problem at the alignment of menu item to the right side but I couldn't , how I can do that? The picture show navigation with menu items in the left side This is the main_activity layout code [C... | android|navigation-drawer|menuitem | 2 | 2016-04-25T17:17:49.143Z | 2,016 | 4 | 17 | 0 | 3,847 | 2 | 548 | 58 | 3 | 3 | true | false | true | false | false | false | low |
36,847,046 | New to Android programming: Program does not respond | <p>I am new to android programming, and i have started some small programs to learn. This program for drawing works until i draw many lines (i don't know how many but about 10-20) and that number depends on how fast am i drawing it (faster drawing less lines to get stuck). When i start debug and stop program when it st... | I am new to android programming, and i have started some small programs to learn. This program for drawing works until i draw many lines (i don't know how many but about 10-20) and that number depends on how fast am i drawing it (faster drawing less lines to get stuck). When i start debug and stop program when it stop ... | java|android | 0 | 2016-04-25T17:18:42.440Z | 2,016 | 4 | 17 | 0 | 349 | 2 | 783 | 52 | 2 | 6 | true | false | false | false | false | false | zero |
36,847,194 | Crash on adding a marker on google map | <p>I have this method:</p>
<pre><code> class getuser extends AsyncTask<String, String, String> {
protected String doInBackground(String... args) {
int success;
try {
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicName... | I have this method: [CODE] which gets some values from database and put it on google map marker. I'm having an error in this part: [CODE] I don't see anything wrong with it? the error I'm getting is: [CODE] can someone please help me solve this? thanks in advance. | android|google-maps|android-studio | 3 | 2016-04-25T17:27:07.287Z | 2,016 | 4 | 17 | 0 | 754 | 1 | 264 | 38 | 3 | 3 | true | false | false | false | false | false | low |
36,847,231 | Change image based on two spinners | <p>I have spent about 3 days searching for this answer and I finally decided to create the question myself.</p>
<p>Basically I have an activity with two spinners on it. One is the type of hair and the other is the color of the hair. You see where I am going with this. I want to be able for the picture (on a head) to c... | I have spent about 3 days searching for this answer and I finally decided to create the question myself. Basically I have an activity with two spinners on it. One is the type of hair and the other is the color of the hair. You see where I am going with this. I want to be able for the picture (on a head) to change depen... | java|android|image | 0 | 2016-04-25T17:29:01.097Z | 2,016 | 4 | 17 | 0 | 83 | 6 | 995 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
36,847,248 | Signing .apk causes app to freeze upon launch | <p>I'm extremely confused as to why this could be happening. If I run the app with my debug configuration, it runs fine. If I run the app with the production configuration, that too runs fine. I thought it could be proguard getting in the way of things, so I turned proguard on + off for both my debug and production con... | I'm extremely confused as to why this could be happening. If I run the app with my debug configuration, it runs fine. If I run the app with the production configuration, that too runs fine. I thought it could be proguard getting in the way of things, so I turned proguard on + off for both my debug and production config... | android|build|configuration|apk|signing | 3 | 2016-04-25T17:29:52.257Z | 2,016 | 4 | 17 | 0 | 241 | 0 | 1,135 | 45 | 5 | 0 | false | true | false | false | false | false | low |
36,847,321 | Why my service closes when I close the application? | <p>I'm doing a send an image to the server using the Volley class, as the process and a bit time consuming ressolvi do for a service in the background, then I start the service by sending some parameters by intent.</p>
<p><strong>Starting Service</strong></p>
<pre><code>startService(new Intent(MainActivity.this, Uplo... | I'm doing a send an image to the server using the Volley class, as the process and a bit time consuming ressolvi do for a service in the background, then I start the service by sending some parameters by intent. Starting Service [CODE] Service [CODE] And for debug: [CODE] Service is performed without error, the more th... | android|android-service | 0 | 2016-04-25T17:34:07.243Z | 2,016 | 4 | 17 | 0 | 47 | 0 | 1,099 | 51 | 2 | 4 | true | true | false | false | false | false | zero |
36,847,371 | build:gradle-experimental:0.4.0 include Wearable app | <p>I have a working app in Android Studio using classpath <strong>'com.android.tools.build:gradle-experimental:0.4.0' and gradle 2.8.</strong></p>
<p>As mentioned in google docs, to include your wearable app with your APK, you need to declare the wear app into the phone app gradle file as dependency something like thi... | I have a working app in Android Studio using classpath 'com.android.tools.build:gradle-experimental:0.4.0' and gradle 2.8. As mentioned in google docs, to include your wearable app with your APK, you need to declare the wear app into the phone app gradle file as dependency something like this: [CODE] But I get an error... | android|android-studio|wear-os|gradle-experimental | 0 | 2016-04-25T17:36:22.153Z | 2,016 | 4 | 17 | 0 | 132 | 1 | 650 | 52 | 4 | 3 | true | false | false | false | false | false | zero |
36,847,376 | how to draw 2 or more routes with googlemapsApi | <p>My app have already implemented the option to draw a route between user location to the point.</p>
<p>Now i need to adapt the code with 5 locations and draw on map between them </p>
<p>My code : </p>
<pre><code>public void getRoute(final LatLng origin, final LatLng destination) {
new Thread() {
publi... | My app have already implemented the option to draw a route between user location to the point. Now i need to adapt the code with 5 locations and draw on map between them My code : [CODE] Draw a route [CODE] Any suggestion how to adapt the code? This code works fine draw a route between user location and point location ... | android | 2 | 2016-04-25T17:36:52.957Z | 2,016 | 4 | 17 | 0 | 59 | 1 | 360 | 47 | 1 | 2 | true | false | false | false | false | false | low |
36,847,677 | NFC Android reading NDEF tag multiple times | <p>I have an app that can read a NDEF Tag, no big deal :-)</p>
<p>I want to read a NDEF tag multiple times and obviously to update the label accordingly. Imagine that my NDEF tag would contain the time (hh:mm:ss) and when I read it with my app, I want to see the time changing on my phone.
It kind of works if I keep on... | I have an app that can read a NDEF Tag, no big deal :-) I want to read a NDEF tag multiple times and obviously to update the label accordingly. Imagine that my NDEF tag would contain the time (hh:mm:ss) and when I read it with my app, I want to see the time changing on my phone. It kind of works if I keep on position m... | android|nfc|ndef | 0 | 2016-04-25T17:52:09.600Z | 2,016 | 4 | 17 | 0 | 2,156 | 1 | 1,798 | 43 | 3 | 3 | true | false | false | false | false | false | zero |
36,847,772 | How to use SDK-specified code blocks | <p>very new to Android programming. Despite of all my search I couldn't find how to write SDK specified code blocks in Android Studio.</p>
<p>For example, as far as I learnt so far there are different types of Notifications depending on the target SDK version.</p>
<p>I want to keep the minSDKversion as low as possibl... | very new to Android programming. Despite of all my search I couldn't find how to write SDK specified code blocks in Android Studio. For example, as far as I learnt so far there are different types of Notifications depending on the target SDK version. I want to keep the minSDKversion as low as possible (9 for my case) b... | android|android-studio-2.0 | 0 | 2016-04-25T17:56:36.097Z | 2,016 | 4 | 17 | 0 | 220 | 2 | 665 | 36 | 2 | 1 | true | false | false | false | false | false | zero |
36,847,812 | Image data sends to Database but file does not upload to server | <p>I am currently making an application on android where a user will be able to upload an Image with a title and description to a database and godaddy server. </p>
<p>When I test the code, the data is inserted in the database, however the Image does not appear or send to the specified file. </p>
<p>I have a number of... | I am currently making an application on android where a user will be able to upload an Image with a title and description to a database and godaddy server. When I test the code, the data is inserted in the database, however the Image does not appear or send to the specified file. I have a number of suspicions what the ... | php|android|file-upload|android-volley|multipartform-data | 0 | 2016-04-25T17:59:04.347Z | 2,016 | 4 | 17 | 0 | 319 | 1 | 792 | 63 | 5 | 2 | true | false | false | false | false | false | zero |
36,848,054 | Aggregate results from multiple HTTP requests to a single list | <p>I am parsing several Json links, and trying to add all output to one <code>List</code>. However the list always gets overwritten instead to only include the results from one of the links:</p>
<pre><code>public class GetShopifyJsonData extends GetRawData {
private String LOG_TAG = GetShopifyJsonData.class.getSim... | I am parsing several Json links, and trying to add all output to one List . However the list always gets overwritten instead to only include the results from one of the links: [CODE] And the call from MainActivity : [CODE] What do I need to change to get the products to add to each other in a single list? | java|android | 4 | 2016-04-25T18:11:24.500Z | 2,016 | 4 | 18 | 0 | 468 | 2 | 306 | 62 | 2 | 2 | true | false | false | false | false | false | low |
36,848,226 | Android Studio: Check if server socket is on/listening every X minutes | <p>I'm making an Android app that checks every X minutes if a TCP/IP Server Socket has been opened on my computer. If SO, it does a connection and reads the data off it, if not, it waits and try's connecting again in X min...</p>
<p><strong>The code below works once when I turn the Server on first and then the client ... | I'm making an Android app that checks every X minutes if a TCP/IP Server Socket has been opened on my computer. If SO, it does a connection and reads the data off it, if not, it waits and try's connecting again in X min... The code below works once when I turn the Server on first and then the client (manually) but I ca... | android|sockets|networking|tcp|ip | 0 | 2016-04-25T18:21:14.707Z | 2,016 | 4 | 18 | 0 | 923 | 1 | 922 | 70 | 5 | 1 | true | false | false | false | false | false | zero |
36,848,265 | startService() from a utill class and get result by overiding receiveResult | <p>1) I have an utill class which I call from an Activity by passing the activity context.</p>
<p>2) Using the context I call a Service ( startService() ) from the utill class</p>
<p>3) I try receiving the result (by over-riding onReceiveResult() ) back in the original activity.</p>
<p>Is this approach correct? onRe... | 1) I have an utill class which I call from an Activity by passing the activity context. 2) Using the context I call a Service ( startService() ) from the utill class 3) I try receiving the result (by over-riding onReceiveResult() ) back in the original activity. Is this approach correct? onReceiveResult() in the activi... | android | 0 | 2016-04-25T18:23:52.107Z | 2,016 | 4 | 18 | 0 | 453 | 1 | 476 | 75 | 1 | 3 | true | false | false | false | false | false | zero |
36,848,289 | Google Map Directions in android | <p>I'm trying to use Google Map Direction on my Project </p>
<p>referred here :<a href="http://www.akexorcist.com/2015/12/google-direction-library-for-android-en.html" rel="nofollow">http://www.akexorcist.com/2015/12/google-direction-library-for-android-en.html</a></p>
<p>but it gives me this Error -> The number of m... | I'm trying to use Google Map Direction on my Project referred here : http://www.akexorcist.com/2015/12/google-direction-library-for-android-en.html but it gives me this Error -> The number of method references in a .dex file cannot exceed 64K my code [CODE] | android | 2 | 2016-04-25T18:25:08.447Z | 2,016 | 4 | 18 | 0 | 112 | 1 | 257 | 32 | 1 | 1 | true | false | false | false | false | false | low |
36,848,356 | How to show the content of a LinearLayout? | <p>I am trying to answer this question by myself since this morning but I am becoming crazy. I'm sure it's a stupid problem but I can't find the solution.
Here is my code:</p>
<pre><code>VariablesManagement.area1_pictos=area1;
//area1 become null after some code
Log.d("Number", String.valueOf(area1.getChildCount())); ... | I am trying to answer this question by myself since this morning but I am becoming crazy. I'm sure it's a stupid problem but I can't find the solution. Here is my code: [CODE] The problem is I can't display the imageView contained in my LinearLayout. There is nothing which is print. And I don't understand because we ca... | android|imageview|android-linearlayout|display | 0 | 2016-04-25T18:28:38.993Z | 2,016 | 4 | 18 | 0 | 108 | 0 | 592 | 42 | 4 | 4 | true | true | false | false | false | false | zero |
36,848,484 | null pointer exception when trying to start new activity | <p>I am pretty new to java and android studio. I am trying to launch a new activity when the user is within a certain distance of a specified point on a map.</p>
<p>The following class determines the users distance from each point, when the user is within a certain distance (10m) I want a new activity to be launched w... | I am pretty new to java and android studio. I am trying to launch a new activity when the user is within a certain distance of a specified point on a map. The following class determines the users distance from each point, when the user is within a certain distance (10m) I want a new activity to be launched where the us... | java|android|android-studio|android-activity | 1 | 2016-04-25T18:35:54.473Z | 2,016 | 4 | 18 | 0 | 2,816 | 4 | 561 | 56 | 4 | 2 | true | false | true | false | false | false | low |
36,848,499 | Drop down menu for each custom ListView item in android | <p>I have a custom listview, where each item contains an imageview and a textview. I want the user to be able to click on each item, and select a new combination of imageview + textview from a dropdown menu. </p>
<p>Here is the activity code</p>
<pre><code>public class VisKvittering extends AppCompatActivity {
@Over... | I have a custom listview, where each item contains an imageview and a textview. I want the user to be able to click on each item, and select a new combination of imageview + textview from a dropdown menu. Here is the activity code [CODE] Here is the code for the CustomList adapter class [CODE] Here is the xml for the l... | android|listview|drop-down-menu | 0 | 2016-04-25T18:36:35.613Z | 2,016 | 4 | 18 | 0 | 398 | 1 | 336 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,848,830 | two button to open two new activity | <p>I am learning Android, I created two buttons in main activity and then from each button I want to open new activity, button 2 is working but button 1 doesn't works, my code:</p>
<pre><code>public class MainActivity extends Activity {
Button btn;
Button btn2;
@Override
protected void onCreate(Bundle... | I am learning Android, I created two buttons in main activity and then from each button I want to open new activity, button 2 is working but button 1 doesn't works, my code: [CODE] Xml code: [CODE] | android|button|android-intent | 1 | 2016-04-25T18:55:22.513Z | 2,016 | 4 | 18 | 0 | 973 | 4 | 197 | 35 | 3 | 2 | true | false | false | false | false | false | low |
36,849,208 | Android App - Transfer string data between two activities | <p>I'm building an Android App and I want to add updated content to an activity from a website.This is what I have so far. It is a word document from google and it only pulls it's page source but not the text inside of it. </p>
<pre><code>package com.example.it5.foothillers;
import android.app.Activity;
import androi... | I'm building an Android App and I want to add updated content to an activity from a website.This is what I have so far. It is a word document from google and it only pulls it's page source but not the text inside of it. [CODE] I want to transfer the string result. | java|android | 0 | 2016-04-25T19:14:47.317Z | 2,016 | 4 | 19 | 0 | 28 | 0 | 264 | 57 | 2 | 1 | true | true | false | false | false | false | zero |
36,849,221 | Got a java.lang.IllegalStateException: The specified child already has a parent | <p>I have added two <code>LinearLayouts</code> and on those layouts, I add dynamically <code>Checkboxes</code>. The final purpose is to store data in a database.</p>
<p>I am getting this error: </p>
<pre><code>java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.freedomkitchen.sonali.freedomkitchen/... | I have added two LinearLayouts and on those layouts, I add dynamically Checkboxes . The final purpose is to store data in a database. I am getting this error: [CODE] Can you help me to find the problem, please? Thanks. This is my code: [CODE] XML [CODE] | java|android|sqlite | -1 | 2016-04-25T19:15:48.800Z | 2,016 | 4 | 19 | 0 | 330 | 1 | 253 | 79 | 3 | 3 | true | false | false | false | false | true | negative |
36,849,249 | ScrollView not scrolling bottom completely | <blockquote>
<p>Before you mark it duplicate, let me tell you that I have searched for every answer but all in vain.</p>
</blockquote>
<p>I am using <code>Tabs</code> with <code>Actionbar</code>.</p>
<p>I have set <code>android:layout_height="match_parent"</code> of <code>ScrollView</code> as suggested in many solu... | Before you mark it duplicate, let me tell you that I have searched for every answer but all in vain. I am using Tabs with Actionbar . I have set android:layout_height="match_parent" of ScrollView as suggested in many solutions. I also have removed android:layout_gravity="center" from all layouts as suggested by: Androi... | android|android-scrollview | 0 | 2016-04-25T19:18:25.773Z | 2,016 | 4 | 19 | 0 | 3,623 | 2 | 491 | 42 | 2 | 2 | true | false | true | false | false | false | zero |
36,849,319 | Share file from external storage with other app | <p>My application stores it's file in <code>{external storage}/Documents/myappname/file.anyextension</code>. This is the kind of url I get when i use <code>File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DOCUMENTS), MYAPPNAME);</code></p>
<p>I'm trying to create an intent to open this... | My application stores it's file in {external storage}/Documents/myappname/file.anyextension . This is the kind of url I get when i use File(Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_DOCUMENTS), MYAPPNAME); I'm trying to create an intent to open this file in an other app like the gallery in ca... | android | 0 | 2016-04-25T19:22:45Z | -1 | -1 | -1 | -1 | 1,430 | 1 | 909 | 47 | 1 | 1 | true | false | false | false | false | false | zero |
36,849,368 | Save hash map Shared Preferences | <p>I'm triyng to save an HashMap into SharedPreferences but i get this error when i load the map:</p>
<p>java.lang.ClassCastException: org.json.JSONArray cannot be cast to java.util.List</p>
<p>I adapted the code i found online but i don't understand why i get this error.</p>
<p>Here is the code:</p>
<pre><code>pub... | I'm triyng to save an HashMap into SharedPreferences but i get this error when i load the map: java.lang.ClassCastException: org.json.JSONArray cannot be cast to java.util.List I adapted the code i found online but i don't understand why i get this error. Here is the code: [CODE] | java|android|json|dictionary|sharedpreferences | 0 | 2016-04-25T19:25:25.827Z | 2,016 | 4 | 19 | 0 | 239 | 1 | 280 | 32 | 5 | 1 | true | false | false | false | false | false | zero |
36,849,378 | List view element height | <p>I have the following issue. My list view elements consist of two buttons positioned in a row:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/item_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="5dp... | I have the following issue. My list view elements consist of two buttons positioned in a row: [CODE] So what happens im the app is that the second (right) button is got filled with the text (by user) which can be of 2, 3 and more lines, whereas text in the left button is always in single line. So, what I want is to mak... | android|listview|android-adapter | 0 | 2016-04-25T19:25:53.040Z | 2,016 | 4 | 19 | 0 | 67 | 1 | 1,036 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
36,849,390 | Convert JSON to Java class (call WebApi from Android app) | <p>Im working on my school project and im new in android programming but i have some programming experiance in c# and .net.</p>
<p>This is my code:</p>
<pre><code> public class ProizvodiAPI {
public class ProizvodiVM implements Serializable
{
public Integer proizvodID;
public String naziv;... | Im working on my school project and im new in android programming but i have some programming experiance in c# and .net. This is my code: [CODE] Program crashes here: [CODE] Is the problem with deserializing json, if it is, shoud i change the Java class and what to change ? Here is my C# class in Web Api: [CODE] And th... | java|c#|android|json | 0 | 2016-04-25T19:26:06.903Z | 2,016 | 4 | 19 | 0 | 126 | 1 | 349 | 57 | 4 | 3 | true | false | false | false | false | false | zero |
36,849,445 | SQLite, why cant android find the column? | <p>I'm reading a book.. and now I get the problem :
"(1) no such column: FAVORITE"</p>
<p>I tried so many things.. it always says : no such column..</p>
<p>I really dunno where the problem is.. cant find it. </p>
<ul>
<li>Could you guys take a look ?</li>
</ul>
<p>Thanks a lot.</p>
<pre><code>package com.hfed.star... | I'm reading a book.. and now I get the problem : "(1) no such column: FAVORITE" I tried so many things.. it always says : no such column.. I really dunno where the problem is.. cant find it. Could you guys take a look ? Thanks a lot. [CODE] The MainActivity.::::: [CODE] | android|sqlite | 0 | 2016-04-25T19:29:37.553Z | 2,016 | 4 | 19 | 0 | 34 | 0 | 270 | 41 | 2 | 2 | true | true | false | false | false | false | zero |
36,849,596 | Alert dialogue title and message are not shown | <p>i created alert dialogue but title and message are not shown here is my code for alert dialogue </p>
<pre><code>holder.add.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog.Builder builder;
if (Build.VERSION.SDK_INT >= Bui... | i created alert dialogue but title and message are not shown here is my code for alert dialogue [CODE] this is the screenshot of it | android|android-alertdialog | 3 | 2016-04-25T19:39:10.173Z | 2,016 | 4 | 19 | 0 | 3,119 | 3 | 131 | 46 | 2 | 1 | true | false | true | false | false | false | low |
36,849,617 | How to Display images from SD Card to ListView with the New Folder Picker API? | <p>I am trying to select a folder from SD Card and display the list of images inside this folder.</p>
<p>It was working fine until Android 5.0,
so I started updating it with the New SD Card Access API to pick the folder.</p>
<pre><code>public void FolderSelectionAlertDialog_Lollipop() {
Intent intent = new Inten... | I am trying to select a folder from SD Card and display the list of images inside this folder. It was working fine until Android 5.0, so I started updating it with the New SD Card Access API to pick the folder. [CODE] For some reasons, there is no image showing in the ListView. Here is the code: [CODE] Adapter: [CODE] ... | android|listview|android-sdcard|android-external-storage | 3 | 2016-04-25T19:40:15.027Z | 2,016 | 4 | 19 | 0 | 619 | 2 | 614 | 78 | 4 | 5 | true | false | false | false | false | false | low |
36,849,688 | How to pass texture through two shaders? | <p>All I need is to pass texture through fragment shader 1, get the result and pass it to fragment shader 2.</p>
<p>I know how to link vertex and fragment shader together into a program and get the shader object.</p>
<p>I don't know how to get the result of shader 1, switch the shaders (<code>GLES20.glUseProgram</cod... | All I need is to pass texture through fragment shader 1, get the result and pass it to fragment shader 2. I know how to link vertex and fragment shader together into a program and get the shader object. I don't know how to get the result of shader 1, switch the shaders ( GLES20.glUseProgram ?) and pass the result of sh... | android|opengl-es|shader|opengl-es-2.0 | 0 | 2016-04-25T19:44:15.590Z | 2,016 | 4 | 19 | 0 | 767 | 1 | 511 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,849,718 | NPE in onResponse method using Retrofit | <p>Im trying to get data from onResponse method through Retrofit library.But now I have that respone==0.I neew to get code of my request,to build logic in my app.For example if code==200,start new activity is something else build error message.
I'm trying to build right POST method to vid.me servise.That service have o... | Im trying to get data from onResponse method through Retrofit library.But now I have that respone==0.I neew to get code of my request,to build logic in my app.For example if code==200,start new activity is something else build error message. I'm trying to build right POST method to vid.me servise.That service have open... | android|retrofit|retrofit2 | 0 | 2016-04-25T19:46:23.447Z | 2,016 | 4 | 19 | 0 | 119 | 1 | 477 | 39 | 3 | 4 | true | false | false | false | false | false | zero |
36,849,741 | How to change map view on fragment? | <p>I'm developing an app by using mapbox api. At the map when the user clicks map item on menu a fragment is opening.Later user may want to change mapview style such as satellite,dark,emerald or just a street view. User is able to choose map style on action bar. I implemented my action bar on main activity. When the us... | I'm developing an app by using mapbox api. At the map when the user clicks map item on menu a fragment is opening.Later user may want to change mapview style such as satellite,dark,emerald or just a street view. User is able to choose map style on action bar. I implemented my action bar on main activity. When the user ... | android|mapbox | 4 | 2016-04-25T19:47:31.127Z | 2,016 | 4 | 19 | 0 | 1,154 | 1 | 576 | 35 | 2 | 1 | true | false | false | false | false | false | low |
36,849,760 | How to Download Audio from URL using android | <p>I'm new to android and for trainning i want to create an app that downloads audio from existing api.</p>
<p>i'm getting the link to downloading the file from the api, but i can't get it download properly</p>
<p>i've tried with download manager, in which, didn't even download it although it said it did.</p>
<p>her... | I'm new to android and for trainning i want to create an app that downloads audio from existing api. i'm getting the link to downloading the file from the api, but i can't get it download properly i've tried with download manager, in which, didn't even download it although it said it did. here's the main code: [CODE] m... | java|android|audio|android-download-manager | 1 | 2016-04-25T19:48:05.240Z | 2,016 | 4 | 19 | 0 | 1,441 | 0 | 1,211 | 44 | 4 | 3 | true | true | false | false | false | false | low |
36,849,989 | AsyncTask onPost Execute is running but doInBackground is not | <p>i have a problem. I am developing an android app, and in my activity i am using asyncTask. I am calling the task from my onCreate and updating my UI in onPostExecute. I have a listView and in the asyncTask i'm executing Http request to get info from server. But my problem is that sometimes while running the activity... | i have a problem. I am developing an android app, and in my activity i am using asyncTask. I am calling the task from my onCreate and updating my UI in onPostExecute. I have a listView and in the asyncTask i'm executing Http request to get info from server. But my problem is that sometimes while running the activity I ... | java|android|xml|debugging|android-asynctask | 0 | 2016-04-25T20:01:23.213Z | 2,016 | 4 | 20 | 0 | 46 | 1 | 566 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
36,849,996 | failed to connect to port 80 | <p>After clicking on login button "attempting to login" message is displayed only and no further activity is there in the app and also after clicking the button an exception is displayed in LOGCAT "java.net.ConnectException: failed to connect to /127.0.0.1 (port 80) after 15000ms: isConnected failed: ECONNREFUSED (Conn... | After clicking on login button "attempting to login" message is displayed only and no further activity is there in the app and also after clicking the button an exception is displayed in LOGCAT "java.net.ConnectException: failed to connect to /127.0.0.1 (port 80) after 15000ms: isConnected failed: ECONNREFUSED (Connect... | android|android-networking | 0 | 2016-04-25T20:01:48.283Z | 2,016 | 4 | 20 | 0 | 1,928 | 0 | 555 | 28 | 2 | 2 | true | true | false | false | false | false | zero |
36,850,007 | Android - Kill intent after some period of time | <p>I am new at Android and working on a speech to text app. I am using Google API. I want to allow users can only speak 2 seconds. After 2 seconds pop-up window should close. Can anyone give me some tips?</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
m... | I am new at Android and working on a speech to text app. I am using Google API. I want to allow users can only speak 2 seconds. After 2 seconds pop-up window should close. Can anyone give me some tips? [CODE] | android|android-intent|speech-recognition|speech-to-text | 0 | 2016-04-25T20:02:39.127Z | 2,016 | 4 | 20 | 0 | 136 | 2 | 208 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
36,850,038 | Android with Xamarin - How to run code when the user closes the App? | <p>I found some questions/answers on how to track when the app goes to the background, like this one:
<a href="https://stackoverflow.com/questions/5593115/run-code-when-android-app-is-closed-sent-to-background">Run code when Android app is closed/sent to background</a></p>
<p>But I need to run the code only if the use... | I found some questions/answers on how to track when the app goes to the background, like this one: Run code when Android app is closed/sent to background But I need to run the code only if the user actually closes the application. To exemplify: The user clicks on the Overview button; The Android opens the list of thumb... | c#|android|xamarin|mvvmcross | 0 | 2016-04-25T20:04:39.100Z | 2,016 | 4 | 20 | 0 | 1,394 | 2 | 770 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
36,850,105 | Firebase+RecyclerView: RecyclerView not displaying on application start | <p>I'm using the Android Studio provided class for a tabbed activity that uses Action Bar Tabs with ViewPager. Inside this activity, I'm trying to initialize a RecyclerView with data from a Firebase database. </p>
<p>Problem: On the app's first run, the RecyclerView is empty as shown below.</p>
<p><a href="https://i.... | I'm using the Android Studio provided class for a tabbed activity that uses Action Bar Tabs with ViewPager. Inside this activity, I'm trying to initialize a RecyclerView with data from a Firebase database. Problem: On the app's first run, the RecyclerView is empty as shown below. If I close and reopen the application f... | android-fragments|firebase|android-recyclerview|firebaseui | 3 | 2016-04-25T20:08:12.717Z | 2,016 | 4 | 20 | 0 | 5,135 | 4 | 1,505 | 71 | 4 | 3 | true | false | true | false | false | false | low |
36,850,109 | Samsung "App optimisation" feature kills background applications after 3 days | <p>We are currently developing an Android app that is a fitness-tracker application. It runs constantly in the background, and it works fine on most devices, but we've been having issues with the application dying completely on some Samsung devices. After some investigation, it seems like some Samsung devices has a com... | We are currently developing an Android app that is a fitness-tracker application. It runs constantly in the background, and it works fine on most devices, but we've been having issues with the application dying completely on some Samsung devices. After some investigation, it seems like some Samsung devices has a comple... | android|android-service|android-alarms|android-wake-lock|samsung-touchwiz | 37 | 2016-04-25T20:08:45.107Z | 2,016 | 4 | 20 | 0 | 6,406 | 7 | 1,664 | 77 | 5 | 0 | false | false | true | false | true | false | high |
36,850,395 | How to get rid of long scrolls on RecyclerView | <p>This question might seem common to you, But I didn't find any compelling answer, So I brig it up and hope you can help.</p>
<p>If we have a large number of items to show in a <code>RecyclerView</code>, And by large I mean really large like <strong>thousands</strong> (but not at the same time), Scrolling from first ... | This question might seem common to you, But I didn't find any compelling answer, So I brig it up and hope you can help. If we have a large number of items to show in a RecyclerView , And by large I mean really large like thousands (but not at the same time), Scrolling from first item to the other items will be a real p... | android|scroll|android-recyclerview | -1 | 2016-04-25T20:26:13.850Z | 2,016 | 4 | 20 | 0 | 28 | 1 | 866 | 46 | 3 | 0 | false | false | false | false | false | true | negative |
36,850,589 | How can I stop EditText from being padded on the left? | <p>My <code>EditText</code> widgets seem to be padded on the left side and they don't align with the text above them. Is that normal? Is there a way to make it flush? </p>
<p>EDIT: Since it wasn't clear, I am talking about "Hello world" and "Title" not being aligned on the left. It is like "Title" has extra padding. T... | My EditText widgets seem to be padded on the left side and they don't align with the text above them. Is that normal? Is there a way to make it flush? EDIT: Since it wasn't clear, I am talking about "Hello world" and "Title" not being aligned on the left. It is like "Title" has extra padding. The line under "Title" als... | android|android-support-library|android-design-library | 0 | 2016-04-25T20:36:41.893Z | 2,016 | 4 | 20 | 0 | 165 | 1 | 390 | 54 | 3 | 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.