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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,696,064 | Android: Style ActionMode on AppCompat-v7 with Toolbar | <p>I have made a ListView with selectable items but the ActionMode is not showing properly. (There is and a "compare" menu button on the right with white color)</p>
<p><img src="https://i.stack.imgur.com/AsBVT.jpg" alt="enter image description here"></p>
<p>I tried to style the actionMode with the following code but ... | I have made a ListView with selectable items but the ActionMode is not showing properly. (There is and a "compare" menu button on the right with white color) I tried to style the actionMode with the following code but nothing changes. Any ideas why might this happens? I found out that if I set the background color dire... | android|android-appcompat|android-actionbar-compat|android-toolbar|android-actionmode | 6 | 2015-02-24T12:40:33.833Z | 2,015 | 2 | 12 | 1 | 4,300 | 1 | 602 | 54 | 5 | 2 | true | false | true | false | false | false | medium |
28,696,077 | Error implementing LoaderManager | <p>I implement LoaderManager Like this -
public class MainActivity extends ListActivity implements LoaderManager.LoaderCallbacks</p>
<p>But Eclipse says -'LoaderManager cannot be resolved to a type'
What to do?</p> | I implement LoaderManager Like this - public class MainActivity extends ListActivity implements LoaderManager.LoaderCallbacks But Eclipse says -'LoaderManager cannot be resolved to a type' What to do? | android | -2 | 2015-02-24T12:41:06.720Z | 2,015 | 2 | 12 | 1 | 101 | 1 | 200 | 32 | 1 | 0 | false | false | false | false | false | true | negative |
28,696,153 | Design Issues in android development | <p>I am attaching one image to be designed.
I need to make one cricket ground with single image slice.
Slice need to be rotated in eight zone to complete ground.
I am rotating but by fixing position in left,top,right margin that is not working in all devices.</p>
<p>I want to generalize so that it works perfectly.</p> | I am attaching one image to be designed. I need to make one cricket ground with single image slice. Slice need to be rotated in eight zone to complete ground. I am rotating but by fixing position in left,top,right margin that is not working in all devices. I want to generalize so that it works perfectly. | android|eclipse | 0 | 2015-02-24T12:44:31.060Z | 2,015 | 2 | 12 | 1 | 36 | 0 | 305 | 36 | 2 | 0 | false | true | false | false | false | false | zero |
28,696,201 | using radiobutton group to open new activity in android studio | <p>I have a group of 4 radiobuttons to select which activity to open when a button is pressed, I have tried the code below for 2 of the radiobuttons, but it is not functioning as intended. I'm completely new to java so any help would be great, thanks!</p>
<pre><code>public class ModeSelect extends ActionBarActivity {
... | I have a group of 4 radiobuttons to select which activity to open when a button is pressed, I have tried the code below for 2 of the radiobuttons, but it is not functioning as intended. I'm completely new to java so any help would be great, thanks! [CODE] | java|android|android-activity|radio-button | 0 | 2015-02-24T12:47:08.283Z | 2,015 | 2 | 12 | 1 | 1,903 | 1 | 255 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
28,696,205 | Removing app from real device after testing | <p>I'm developing with AndroidStudio and I'm using my personal android phone for testing my apps. </p>
<p>How is the correct way of unisntall or remove the app after I run it on the real device?</p>
<p>Is there an option on AndroidStudio?</p>
<p>Or I just need to uninstall it just like regular apps from PlayStore?<... | I'm developing with AndroidStudio and I'm using my personal android phone for testing my apps. How is the correct way of unisntall or remove the app after I run it on the real device? Is there an option on AndroidStudio? Or I just need to uninstall it just like regular apps from PlayStore? Couldnt find an answer on the... | android | 0 | 2015-02-24T12:47:24.103Z | 2,015 | 2 | 12 | 1 | 88 | 2 | 333 | 43 | 1 | 0 | false | false | false | false | false | false | zero |
28,696,283 | how to manage the spaces between buttons in android | <p>i'm trying to make a dial pad in android with circle buttons.Just like in IOS 7.This is the link where you can see the dial pad in IOS 7.</p>
<pre><code>http://www.google.com.pk/search?q=ios7+dial+pad&biw=1277&bih=524&source=lnms&tbm=isch&sa=X&ei=623sVOfCC4zraOfhgYAK&ved=0CAYQ_AUoAQ#imgd... | i'm trying to make a dial pad in android with circle buttons.Just like in IOS 7.This is the link where you can see the dial pad in IOS 7. [CODE] The layout is complete but the problem i'm facing is different mobile screen size.when i run my app in other mobile the space between the buttons is extend or you can say that... | android|android-layout|android-xml|android-gui | 0 | 2015-02-24T12:50:33.737Z | 2,015 | 2 | 12 | 1 | 271 | 2 | 598 | 51 | 4 | 3 | true | false | false | false | false | false | zero |
28,696,336 | Show/Hide views based on softkeyboard | <p>I have a difficult situation. I need to hide certain views when softkeyboard is displayed and show it back when softkeyboard hides. </p>
<p>I have tried different approaches where I detect (by workaround) the visibility of the softkeyboard and show/hide views accordingly but the transactions are not smooth and the ... | I have a difficult situation. I need to hide certain views when softkeyboard is displayed and show it back when softkeyboard hides. I have tried different approaches where I detect (by workaround) the visibility of the softkeyboard and show/hide views accordingly but the transactions are not smooth and the whole layout... | android|android-layout | 2 | 2015-02-24T12:52:40.513Z | 2,015 | 2 | 12 | 1 | 130 | 3 | 509 | 37 | 2 | 0 | false | false | false | false | false | false | low |
28,696,350 | Passing list of strings to another activity and show them! Android | <p>I don't have a clue how to do it. I have tried with arrays but couldn't managed to get it to work. Even tried to get IDs from database and then pass it to next activity and then call it from database to get the text, but again couldn't managed to get it to work. I guesse arrays are my weak spot. Can somebody help me... | I don't have a clue how to do it. I have tried with arrays but couldn't managed to get it to work. Even tried to get IDs from database and then pass it to next activity and then call it from database to get the text, but again couldn't managed to get it to work. I guesse arrays are my weak spot. Can somebody help me? I... | android|arrays|string|listview | 0 | 2015-02-24T12:53:12.580Z | 2,015 | 2 | 12 | 1 | 48 | 2 | 532 | 66 | 4 | 2 | true | false | false | false | false | false | zero |
28,696,389 | Auto fill login dialog username using Facebook SDK | <p>Is it possible to auto fill the Username text field of the Facebook login dialog using the SDK (specifically, Facebook Unity SDK).</p>
<p>What I'm trying to do is to "remember" the last users user name to log in and then auto fill the username box with that users name when they start the app again to reduce the amo... | Is it possible to auto fill the Username text field of the Facebook login dialog using the SDK (specifically, Facebook Unity SDK). What I'm trying to do is to "remember" the last users user name to log in and then auto fill the username box with that users name when they start the app again to reduce the amount of data... | android|facebook|facebook-login|facebook-unity-sdk | 0 | 2015-02-24T12:54:59.960Z | 2,015 | 2 | 12 | 1 | 340 | 1 | 538 | 50 | 4 | 0 | false | false | false | false | false | false | zero |
28,696,400 | Ion can't be used if using GPRS connection | <p>I use Ion to get Json from server</p>
<pre><code>Ion.with(getActivity()).load(url).setLogging(getClass().getSimpleName(),Log.VERBOSE).asJsonObject().setCallback(this);
</code></pre>
<p>If i use <strong>wifi</strong> i can get JSON correctly. I can't get JSON, if i switch to GPRS (HSDPA). The error message is unabl... | I use Ion to get Json from server [CODE] If i use wifi i can get JSON correctly. I can't get JSON, if i switch to GPRS (HSDPA). The error message is unable to parse Json. WIFI and HSDPA use different internet service provider. The logcat shows there is internal server error. But, what make me confuse is, the request ne... | android|android-ion | 0 | 2015-02-24T12:55:27.587Z | 2,015 | 2 | 12 | 1 | 142 | 0 | 437 | 42 | 2 | 2 | true | true | false | false | false | false | zero |
28,696,413 | Is there a Windows (Phone) equivalent of the Android selector? | <p>Android xml has a nice thing for button (and other things) states which are selectors.</p>
<p>Here is an example of the Android Documentation:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"
android:constantSize=["true" | "fals... | Android xml has a nice thing for button (and other things) states which are selectors. Here is an example of the Android Documentation: [CODE] Is there something in XAML or C# we can use to obtain the same effect on Windows (Phone) apps. (Or Universal Apps for that matter). Nowadays I use the Listeners GotFocus, LostFo... | c#|android|xaml|windows-phone|win-universal-app | 1 | 2015-02-24T12:55:53.777Z | 2,015 | 2 | 12 | 1 | 158 | 1 | 424 | 62 | 5 | 1 | true | false | false | false | false | false | low |
28,696,477 | Fragment containing tabhost and viewpager doesn't overlap the ListFragment | <pre><code>MyListFragment.java this extends ListFragment and onListItemClick() I need to migrate to another two Fragments which should be displayed over this ListFragment.
</code></pre>
<p>I don't know how to solve this error I am stuck over for 3 days help me out. I don't get any sort of error which can be logged and... | [CODE] I don't know how to solve this error I am stuck over for 3 days help me out. I don't get any sort of error which can be logged and displayed, It has become impossible. [CODE] I don't get any error but my Fragment oppofragment doesnt get displayed where as when I try to dispaly the contactfragment it gets display... | android|android-fragments|android-tabhost|android-listfragment | 0 | 2015-02-24T12:58:31.733Z | 2,015 | 2 | 12 | 1 | 220 | 1 | 323 | 74 | 4 | 2 | true | false | false | false | false | false | zero |
28,696,493 | Android app name on device | <p>I thought that</p>
<pre><code>android:label="@string/app_name"
</code></pre>
<p>in <code><application></code> was needed to have the appname displayed on the device below the icon.
But all I get is blanks below the icon.
What am I missing?</p> | I thought that [CODE] in <application> was needed to have the appname displayed on the device below the icon. But all I get is blanks below the icon. What am I missing? | android | 0 | 2015-02-24T12:59:41.993Z | 2,015 | 2 | 12 | 1 | 269 | 2 | 168 | 26 | 1 | 1 | true | false | false | false | false | false | zero |
28,696,615 | Shared elements and content transitions in Fragments | <p>I have the following problem:</p>
<p>I'm trying to transition from <code>Fragment</code> A to <code>Fragment</code> B. There is a shared element between these fragments in the form of a <code>Button</code> and some other <code>View's</code> (see layout).</p>
<pre><code><RelativeLayout xmlns:android="http://sche... | I have the following problem: I'm trying to transition from Fragment A to Fragment B. There is a shared element between these fragments in the form of a Button and some other View's (see layout). [CODE] What I'm trying to do is to let all the content in Fragment except for the shared element , transition (slide to the ... | android|android-transitions | 14 | 2015-02-24T13:05:59.593Z | 2,015 | 2 | 13 | 1 | 2,191 | 1 | 1,291 | 52 | 2 | 3 | true | false | false | false | true | false | medium |
28,696,641 | Android dynamic imageview not loading completely | <p>I am adding multiple views to my linearlayout dynamically using async task. In the first run images are not loading completely, its loading only 60- 80 % only.
images are fetching through web service and adding dynamically to view. It will load completely only after i go back and come to the page or after taking an... | I am adding multiple views to my linearlayout dynamically using async task. In the first run images are not loading completely, its loading only 60- 80 % only. images are fetching through web service and adding dynamically to view. It will load completely only after i go back and come to the page or after taking anothe... | android|view | 1 | 2015-02-24T13:07:15.030Z | 2,015 | 2 | 13 | 1 | 66 | 1 | 433 | 48 | 2 | 0 | false | false | false | false | false | false | low |
28,696,697 | Android periodically get location and post to server using Service | <p>I use a service class that implements LocationListener, to get the location at periodic intervals, and post to server at only when there is considerable change in the latlon(min 100 meters). Because, continuously updating server drains battery quickly. I start this service from onCreate() of myActivity, and don't ca... | I use a service class that implements LocationListener, to get the location at periodic intervals, and post to server at only when there is considerable change in the latlon(min 100 meters). Because, continuously updating server drains battery quickly. I start this service from onCreate() of myActivity, and don't call ... | android|android-service|alarmmanager|locationlistener | 3 | 2015-02-24T13:09:51.177Z | 2,015 | 2 | 13 | 1 | 1,167 | 1 | 516 | 66 | 4 | 0 | false | false | false | false | false | false | low |
28,696,719 | maps not getting displayed | <p>i tried all possible solution by using debug/custom keystore.but nothing worked.
here is my xml file
my android manifest file:</p>
<pre><code> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission andro... | i tried all possible solution by using debug/custom keystore.but nothing worked. here is my xml file my android manifest file: [CODE] main.xml <fragment android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@+id/relativetop" android:name="com.google.android... | java|android|google-maps-android-api-2 | 0 | 2015-02-24T13:11:03.130Z | 2,015 | 2 | 13 | 1 | 33 | 1 | 408 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
28,696,755 | How to inflate layout from extended activity? | <p>I have extended <code>BaseActivity</code> from <code>ActionBarActivity</code>, in which I set the activity's content. There's a <code>FrameLayout</code> in the layout file I use. </p>
<p>When I extend <code>BaseActivity</code> to use in e.g. <code>MainActivity</code>, I'd like <code>MainActivity</code> to inflate t... | I have extended BaseActivity from ActionBarActivity , in which I set the activity's content. There's a FrameLayout in the layout file I use. When I extend BaseActivity to use in e.g. MainActivity , I'd like MainActivity to inflate the FrameLayout with a custom layout file. I couldn't come up with a solution. I always g... | java|android|android-activity | 0 | 2015-02-24T13:12:46.060Z | 2,015 | 2 | 13 | 1 | 543 | 2 | 438 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
28,696,833 | Android block change TextView value every 100ms | <p>I have a TextView <code>minutesValue</code></p>
<p>and listener for this :</p>
<pre><code> minutesView.addTextChangedListener(new TextWatcher() {
public String oldMinutesText;
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
... | I have a TextView minutesValue and listener for this : [CODE] I have a logic when i set a value to TextView every 1-10ms. setMinutes 0 setMinutes 0 setMinutes 0 setMinutes 20 // here i pass new value setMinutes 0 // pass new value again in 10ms setMinutes 0 So i take a next effect - textview will not repaint, but logic... | android|textview | 0 | 2015-02-24T13:16:27.510Z | 2,015 | 2 | 13 | 1 | 63 | 1 | 642 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
28,696,899 | Add custom headers with Volley library | <p>I start using Volley for my application and I want to add custom headers for each request as a security identifier.
I'm using a <code>JsonObjectRequest</code> and overriding the <code>getHeaders()</code>.</p>
<pre><code>JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET,
... | I start using Volley for my application and I want to add custom headers for each request as a security identifier. I'm using a JsonObjectRequest and overriding the getHeaders() . [CODE] But I get this error: [CODE] The AuthFailureError is thrown. I also try to use StringRequest but same error. If someone is in the sam... | android|android-volley | 4 | 2015-02-24T13:19:36.030Z | 2,015 | 2 | 13 | 1 | 14,453 | 2 | 367 | 38 | 2 | 2 | true | false | true | true | false | false | low |
28,696,964 | OkHttp how to log request body | <p>I'm using an interceptor, and I would like to log the body of a request I'm making but I can't see any way of doing this. </p>
<p>Is it possible ?</p>
<pre><code>public class LoggingInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request re... | I'm using an interceptor, and I would like to log the body of a request I'm making but I can't see any way of doing this. Is it possible ? [CODE] and the result : [CODE] | android|okhttp | 92 | 2015-02-24T13:23:01.317Z | 2,015 | 2 | 13 | 1 | 73,262 | 8 | 169 | 30 | 2 | 2 | true | false | true | true | true | false | high |
28,697,029 | Extracting text from a div with Jsoup | <p>With this code, the application should extract the text of the site div and display it on the screen , but that this did not occur and not [ and presented no error in Logcat , what am I doing wrong ?</p>
<pre><code> package com.androidbegin.jsouptutorial;
import java.io.IOException;
import java.io.InputStream;
... | With this code, the application should extract the text of the site div and display it on the screen , but that this did not occur and not [ and presented no error in Logcat , what am I doing wrong ? [CODE] This is the structure of the site you need to analyze : [CODE] | java|android|jsoup | 0 | 2015-02-24T13:26:20.533Z | 2,015 | 2 | 13 | 1 | 835 | 1 | 269 | 37 | 3 | 2 | true | false | false | false | false | false | zero |
28,697,054 | GCM messages not receiving in some devices sent by server to google? | <p>We have implemented GCM to show notifications in android application but only some messages not receiving in devices sent by server to google? Server is sending messages without collapse_key so every message should reach in device without collapsed. Please suggest me to proceed further.</p>
<p>Thanks</p>
<p>Receiv... | We have implemented GCM to show notifications in android application but only some messages not receiving in devices sent by server to google? Server is sending messages without collapse_key so every message should reach in device without collapsed. Please suggest me to proceed further. Thanks Receiver code is below: [... | android|https|google-cloud-messaging | -1 | 2015-02-24T13:27:24.980Z | 2,015 | 2 | 13 | 1 | 385 | 1 | 385 | 68 | 3 | 3 | true | false | false | false | false | true | negative |
28,697,086 | Android: How to update Skobbler map style | <p>I am working with Skobbler SDK 2.3 and I am wondering how to update the map styles in SKMaps.zip. </p>
<p>The problem: </p>
<p>I modified the contained "daystyle", but I noticed that this only takes effect after deleting the app data. This is really not what I want. It looks like <code>SKPrepareMapTextureThread(... | I am working with Skobbler SDK 2.3 and I am wondering how to update the map styles in SKMaps.zip. The problem: I modified the contained "daystyle", but I noticed that this only takes effect after deleting the app data. This is really not what I want. It looks like SKPrepareMapTextureThread(android.content.Context conte... | android|skmaps | 1 | 2015-02-24T13:29:00.253Z | 2,015 | 2 | 13 | 1 | 391 | 1 | 616 | 41 | 2 | 0 | false | false | false | false | false | false | low |
28,697,145 | How to capitalize first letter of edit text in android | <p>I tried following things still not working:</p>
<pre><code> android:inputType="textCapSentences"
android:capitalize="sentences"
</code></pre> | I tried following things still not working: [CODE] | android | -1 | 2015-02-24T13:31:37.450Z | 2,015 | 2 | 13 | 1 | 1,744 | 2 | 50 | 54 | 1 | 1 | true | false | false | false | false | true | negative |
28,697,157 | Import from Eclipse to Android Studio not working | <p>I have taken the following steps to migrate to Android Studio but right now I don't know what is wrong.</p>
<ol>
<li>In Eclipse I exported the gradle file. I did this because importing in Android Studio is not an option since it create a copy of the project and my project is under git.</li>
<li>In Android Studio, I... | I have taken the following steps to migrate to Android Studio but right now I don't know what is wrong. In Eclipse I exported the gradle file. I did this because importing in Android Studio is not an option since it create a copy of the project and my project is under git. In Android Studio, I did "Open an existing And... | java|android|eclipse|android-studio|gradle | 3 | 2015-02-24T13:32:21.193Z | 2,015 | 2 | 13 | 1 | 3,939 | 1 | 1,468 | 49 | 5 | 2 | true | false | true | false | false | false | low |
28,697,222 | Cannot Resolve Symbol "OnClickListener" | <p>I am getting the error <em>Cannot Resolve Symbol "OnClickListener"</em> and <em>"Cannot Resolve Symbol "V""</em>
I am starting to get into Java so I am not very good at this and not so familiar with the language</p>
<p>My code:</p>
<pre><code>package com.emiliogaines.counter.counter;
import android.app.Activity;
... | I am getting the error Cannot Resolve Symbol "OnClickListener" and "Cannot Resolve Symbol "V"" I am starting to get into Java so I am not very good at this and not so familiar with the language My code: [CODE] | java|android | -3 | 2015-02-24T13:35:42.063Z | 2,015 | 2 | 13 | 1 | 6,968 | 2 | 209 | 39 | 2 | 1 | true | false | true | false | false | true | negative |
28,697,260 | NullPointerException for OnClickListener android Java | <p>I feel bad for asking about this but for 2 hours now I can't find any way to solve this:
**The Problem: ** I have set up a canvas area(where i plot a drawable figure) and a button below the canvas area.
In my AnimatedView class I want find the button and give it an onClickListener, but it returns a NullPointerExcept... | I feel bad for asking about this but for 2 hours now I can't find any way to solve this: **The Problem: ** I have set up a canvas area(where i plot a drawable figure) and a button below the canvas area. In my AnimatedView class I want find the button and give it an onClickListener, but it returns a NullPointerException... | java|android|canvas | 0 | 2015-02-24T13:37:32.723Z | 2,015 | 2 | 13 | 1 | 113 | 1 | 813 | 53 | 3 | 4 | true | false | false | false | false | false | zero |
28,697,352 | Android - App crashes on Pre-Lollipop devices | <p>My app crashes on some of the pre-lollipop devices. I recently implemented recyclerView. Not sure if it has to do anything with that. This is what i get in the logcat. </p>
<pre><code>I/DEBUG ( 272): pid: 18489, tid: 18913, name: DataRequestDisp >>> com.mypackage <<<
W/ActivityManager(... | My app crashes on some of the pre-lollipop devices. I recently implemented recyclerView. Not sure if it has to do anything with that. This is what i get in the logcat. [CODE] Edit Here is a more detailed logcat [CODE] | android|android-5.0-lollipop|android-support-library|fatal-error|android-recyclerview | 1 | 2015-02-24T13:41:18.877Z | 2,015 | 2 | 13 | 1 | 882 | 0 | 217 | 45 | 5 | 2 | true | true | false | false | false | false | low |
28,697,374 | Handwritten text dictionary | <p>I don't know if I am asking the right question even: Is there an Apple/Android app that allow non-native English speakers to draw a word and look up its meaning at the same time? I high value any suggestions/responses to my question. Thanks</p> | I don't know if I am asking the right question even: Is there an Apple/Android app that allow non-native English speakers to draw a word and look up its meaning at the same time? I high value any suggestions/responses to my question. Thanks | android|ios | -1 | 2015-02-24T13:42:04.230Z | 2,015 | 2 | 13 | 1 | 39 | 1 | 240 | 27 | 2 | 0 | false | false | false | false | false | true | negative |
28,697,379 | what are the usage of callStaticObjectMethod callStaticMethod | <p>The qt documentation is poor in QAndroidJniObject object. Could you possibly tell me what the difference between <code>callStaticObjectMethod</code> and <code>callStaticMethod</code> is and when should I use them?
If you have any working example, It would be appreciated if address them in you answers. (like Q notifi... | The qt documentation is poor in QAndroidJniObject object. Could you possibly tell me what the difference between callStaticObjectMethod and callStaticMethod is and when should I use them? If you have any working example, It would be appreciated if address them in you answers. (like Q notifier) Thank you | qt|qtandroidextras|qandroidjniobject | 2 | 2015-02-24T13:42:25.237Z | 2,015 | 2 | 13 | 1 | 1,164 | 1 | 304 | 61 | 3 | 0 | false | false | false | false | false | false | low |
28,697,425 | Finding issues when loading data to shopping cart adapter | <p>I was following this tutorial to achieve my shopping cart in my android application. <a href="http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html" rel="nofollow">http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html</a></p>
<p>when i run the application cart shows null. when I add ... | I was following this tutorial to achieve my shopping cart in my android application. http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html when i run the application cart shows null. when I add items to the cart i can see that there are items in the cart by debugging the shopping cart activity. mCartLis... | android|adapter|expandablelistview|shopping-cart | 0 | 2015-02-24T13:44:35.217Z | 2,015 | 2 | 13 | 1 | 397 | 0 | 802 | 57 | 4 | 3 | true | true | false | false | false | false | zero |
28,697,442 | Android AudioManager not working on Samsung 4.0.4 | <p>Currently calling AudioManager to change the volume on my app - works on nexus, hudl, and samsung galaxy s5 - However, when I run the following code on the Samsung Galaxy 10"inch running android 4.0.4 the volume does not change unless the actual hard key for the volume is pressed in.</p>
<pre><code> myAudio... | Currently calling AudioManager to change the volume on my app - works on nexus, hudl, and samsung galaxy s5 - However, when I run the following code on the Samsung Galaxy 10"inch running android 4.0.4 the volume does not change unless the actual hard key for the volume is pressed in. [CODE] Any ideas why it does not wo... | android|volume | 1 | 2015-02-24T13:45:23.107Z | 2,015 | 2 | 13 | 1 | 1,751 | 3 | 323 | 49 | 2 | 1 | true | false | false | false | false | false | low |
28,697,453 | Android webview loadurl "/" character falls | <p>I'm trying to load an url with webview. My url is <a href="http://my-hit.com/ahmet-kaya/2" rel="nofollow">http://my-hit.com/ahmet-kaya/2</a> . It is not loading because url changing to <a href="http://my-hit.com/ahmet-kaya2" rel="nofollow">http://my-hit.com/ahmet-kaya2</a> while loading. I have controlled the url in... | I'm trying to load an url with webview. My url is http://my-hit.com/ahmet-kaya/2 . It is not loading because url changing to http://my-hit.com/ahmet-kaya2 while loading. I have controlled the url in on pagefinished function ; the "/" character falls. I tried %2F instead of "/" but did not work. Please help me. myurl = ... | java|android|webview|urlencode|url-encoding | 0 | 2015-02-24T13:45:59.423Z | 2,015 | 2 | 13 | 1 | 385 | 1 | 356 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
28,697,550 | voice not clear in UDP audio chat | <p>I Successfully developed a UDP Java program in PC that will send audio/voice from <strong>mic at PC to UDP Server at Android</strong>. I can able to hear the voice but it is not <strong>audible</strong> or some what like a childish voice.</p>
<p>I think the problem is with the size of the byte array that I use.</p... | I Successfully developed a UDP Java program in PC that will send audio/voice from mic at PC to UDP Server at Android . I can able to hear the voice but it is not audible or some what like a childish voice. I think the problem is with the size of the byte array that I use. I can get the voice at the value of byte array ... | java|android|audio|bytearray|datagram | 1 | 2015-02-24T13:50:45.363Z | 2,015 | 2 | 13 | 1 | 829 | 0 | 537 | 33 | 5 | 2 | true | true | false | false | false | false | low |
28,697,562 | Search through RecyclerView using Searchview | <p>I want to search through <code>RecyclerView</code>, I have <code>List<BaseOfCards></code> (BaseOfCards is my getter&setter class)
My <strong>RecyclerViewAdapter</strong> :</p>
<pre><code>public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdapter.MyViewHolder> {
private Lay... | I want to search through RecyclerView , I have List<BaseOfCards> (BaseOfCards is my getter&setter class) My RecyclerViewAdapter : [CODE] I add SearchView to my menu and initialize it in MainActivity : [CODE] What do I need to do next? Make my RecyclerViewAdapter implement Filterable or what? Or just make class filter i... | android|searchview|android-recyclerview | 9 | 2015-02-24T13:51:28.543Z | 2,015 | 2 | 13 | 1 | 13,238 | 5 | 384 | 44 | 3 | 2 | true | false | true | true | false | false | medium |
28,697,570 | android app crashes on reboot java.net.UnknownHostException: Unable to resolve host | <p>when i restart my device it crashes my app, it is hard to debug and what i search i said it say to add internet permission which i had in my manifest i can't figure it out what to do, can anyone please guide me.</p>
<pre><code>02-24 17:37:05.750: I/System.out(5201): onErrorResponse:com.android.volley.NoConnectionEr... | when i restart my device it crashes my app, it is hard to debug and what i search i said it say to add internet permission which i had in my manifest i can't figure it out what to do, can anyone please guide me. [CODE] | java|android|connection|httpconnection | 0 | 2015-02-24T13:51:47.103Z | 2,015 | 2 | 13 | 1 | 1,467 | 1 | 218 | 83 | 4 | 1 | true | false | false | false | false | false | zero |
28,697,589 | Android studio - can't create a new project | <p>I installed Android Studio for the first time. When I try to create a new project from welcome screen, it does nothing. So I open Workspace and click on File -> New project, still nothing. I have latest Java version installed on my computer.</p>
<p>Here is the log file of Android Studio:</p>
<pre><code>2015-02-25 ... | I installed Android Studio for the first time. When I try to create a new project from welcome screen, it does nothing. So I open Workspace and click on File -> New project, still nothing. I have latest Java version installed on my computer. Here is the log file of Android Studio: [CODE] EDIT: i reseted my compter to f... | android|android-studio | 2 | 2015-02-24T13:52:21.283Z | 2,015 | 2 | 13 | 1 | 6,059 | 7 | 366 | 43 | 2 | 1 | true | false | true | false | false | false | low |
28,697,654 | android:syncable=true for a ContentProvider? | <p>While trying to understand Android's <code>SyncAdapter</code>/<code>ContentProvider</code> framework, one thing still eludes me. I don't understand why a ContentProvider needs <code>android:syncable="true"</code> to be defined in the manifest.</p>
<p>Why does a <code>ContentProvider</code> need to know if it will b... | While trying to understand Android's SyncAdapter / ContentProvider framework, one thing still eludes me. I don't understand why a ContentProvider needs android:syncable="true" to be defined in the manifest. Why does a ContentProvider need to know if it will be used from within a SyncAdapter ? The Google docs say: "The ... | android | 12 | 2015-02-24T13:55:24.757Z | 2,015 | 2 | 13 | 1 | 795 | 1 | 708 | 44 | 1 | 0 | false | false | false | false | true | false | medium |
28,697,738 | DateUtils.getRelativeTimeSpanString forcefully in other language in android | <p>I am trying implement DateUtils.getRelativeTimeSpanString in android but i want to show data in italian language even if default language of phone is set to the English
I want to show data i.e "1 ora fa" instead of "1 minute ago"</p>
<p>I am using following code for this </p>
<pre><code>DateUtils. getRelativeT... | I am trying implement DateUtils.getRelativeTimeSpanString in android but i want to show data in italian language even if default language of phone is set to the English I want to show data i.e "1 ora fa" instead of "1 minute ago" I am using following code for this [CODE] | android | 5 | 2015-02-24T13:59:42.810Z | 2,015 | 2 | 13 | 1 | 1,999 | 2 | 271 | 75 | 1 | 1 | true | false | false | false | false | false | low |
28,697,786 | Android: webview in software layer mode doesn't work with google maps | <p>Android viewview component if set as below:</p>
<pre><code>myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
</code></pre>
<p>doesn't show google maps correctly. The result look really bad as picture following:</p>
<p><img src="https://i.stack.imgur.com/8Jn89.png" alt="enter image description here"></p>
<p>on... | Android viewview component if set as below: [CODE] doesn't show google maps correctly. The result look really bad as picture following: on the contrary set layer as LAYER_TYPE_NONE (default) the google maps is showed correctly as you can see: My problem here is that I need to get a screenshot of the current webview sho... | android|google-maps|webview | 0 | 2015-02-24T14:01:47.653Z | 2,015 | 2 | 14 | 1 | 441 | 1 | 869 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
28,697,805 | Connecting Android with Raspberry PI | <p>The requirement is to use android phone APP to write the data on the Raspberry PI device. </p>
<p>Connection between PI and android will be done using the USB cable. </p>
<p>Data can be written in the form of a file on the filesystem of PI or can be transmitted as a String to some process running on the PI. Later ... | The requirement is to use android phone APP to write the data on the Raspberry PI device. Connection between PI and android will be done using the USB cable. Data can be written in the form of a file on the filesystem of PI or can be transmitted as a String to some process running on the PI. Later is preferable. Has so... | android|usb|raspberry-pi | 1 | 2015-02-24T14:02:35.583Z | 2,015 | 2 | 14 | 1 | 317 | 1 | 378 | 36 | 3 | 0 | false | false | false | false | false | false | low |
28,697,832 | Android - FATAL EXCEPTION: main - Unable to start activity ComponentInfo NullPointerException | <p>I am a android newbie and using asynctask and java i am trying to create an instant messaging system. But this is what i am getting.</p>
<p>I have been stuck for weeks in this. Can anyone trace out where i am going wrong and why that error is showing ?</p>
<p><strong>IndividualActivity.java</strong></p>
<pre><cod... | I am a android newbie and using asynctask and java i am trying to create an instant messaging system. But this is what i am getting. I have been stuck for weeks in this. Can anyone trace out where i am going wrong and why that error is showing ? IndividualActivity.java [CODE] openMsg.java [CODE] Individual.xml [CODE] L... | java|android|nullpointerexception|android-arrayadapter|logcat | 0 | 2015-02-24T14:03:51.270Z | 2,015 | 2 | 14 | 1 | 1,506 | 1 | 332 | 93 | 5 | 4 | true | false | false | false | false | false | zero |
28,697,849 | How to customize custom drawable defined in XML at runtime? | <p>I made a custom, multi-layered drawable to act as the background for a button. Sometimes, I want part of this drawable layer to be blue. Sometimes I want it to be green. Point is, it's a variable, and I want it to be definable in the associated custom view XML.</p>
<p>Is this possible? How do I write a drawable in ... | I made a custom, multi-layered drawable to act as the background for a button. Sometimes, I want part of this drawable layer to be blue. Sometimes I want it to be green. Point is, it's a variable, and I want it to be definable in the associated custom view XML. Is this possible? How do I write a drawable in XML whose v... | android|android-layout|android-drawable|android-attributes | 3 | 2015-02-24T14:04:39.703Z | 2,015 | 2 | 14 | 1 | 1,155 | 1 | 609 | 59 | 4 | 1 | true | false | false | false | false | false | low |
28,697,931 | Android how to show pop up on clicking CheckBoxPreference | <p>I have a PreferenceScreen in which i have a checkbox with the following code:</p>
<pre><code><CheckBoxPreference
android:defaultValue="false"
android:key="the_key"
android:summary="Random text here."
android:title="My Title"
/>
</code></pre>
<p>I want a pop up message ... | I have a PreferenceScreen in which i have a checkbox with the following code: [CODE] I want a pop up message to be displayed on click of this checkbox that will have a set button and a cancel. If "set" will be pressed then the checkbox will be checked if previously unchecked and the opposite. How can i do that? Here is... | android|android-preferences|checkboxpreference | 0 | 2015-02-24T14:08:16.333Z | 2,015 | 2 | 14 | 1 | 591 | 1 | 428 | 57 | 3 | 2 | true | false | false | false | false | false | zero |
28,697,975 | Exclude package from external JAR in Android Studio during Gradle build process | <p>Lets say I have an Android Studio project and JAR x.jar which I include in my build.gradle:</p>
<pre><code>compile files('libs/x.jar')
</code></pre>
<p>How can I tell Gradle to not include the package xyz in the x.jar? Is there something like:</p>
<pre><code>compile files('libs/x.jar'){
exclude: "xyz"
}
</cod... | Lets say I have an Android Studio project and JAR x.jar which I include in my build.gradle: [CODE] How can I tell Gradle to not include the package xyz in the x.jar? Is there something like: [CODE] Or is this not possible for a jar which I can't build myself (and exclude the sources while building the jar)? | android|android-studio|gradle|jar | 3 | 2015-02-24T14:09:59.997Z | 2,015 | 2 | 14 | 1 | 1,572 | 1 | 308 | 79 | 4 | 2 | true | false | false | false | false | false | low |
28,698,079 | Logging to println is not allowed in android programming right? why? | <p>Hoping my interpretation is relevant, I am not sure whether android programming supports creating custom exceptions and using the following or whether this would be against the code styleguides and why do you think so.</p>
<p>"System.out.println() (or printf() for native code) should never be used. System.out and S... | Hoping my interpretation is relevant, I am not sure whether android programming supports creating custom exceptions and using the following or whether this would be against the code styleguides and why do you think so. "System.out.println() (or printf() for native code) should never be used. System.out and System.err g... | java|android | 0 | 2015-02-24T14:14:13.243Z | 2,015 | 2 | 14 | 1 | 42 | 2 | 536 | 68 | 2 | 0 | false | false | false | false | false | false | zero |
28,698,163 | Android system intern Content Providers and their query()-method | <p>As far as I know, a ContentProvider has to extend the abstract class ContentProvider and implement a few basic methods, including the query()-method (<a href="http://developer.android.com/reference/android/content/ContentProvider.html" rel="nofollow noreferrer">Content Provider, Android Official</a>).
I found this q... | As far as I know, a ContentProvider has to extend the abstract class ContentProvider and implement a few basic methods, including the query()-method ( Content Provider, Android Official ). I found this question Android Content provider list on stackoverflow and one of the answers presents the following site as a list o... | java|android|android-contentprovider | 1 | 2015-02-24T14:18:06.013Z | 2,015 | 2 | 14 | 1 | 73 | 0 | 641 | 64 | 3 | 0 | false | true | false | false | false | false | low |
28,698,170 | How do I access SMS messages stored on Android API level 15? | <p>In my application I would like to be able to access the users stored SMS messages so I can insert the text from some of them into my application. How do I go about doing this? A Google search has not been very fruitful.</p> | In my application I would like to be able to access the users stored SMS messages so I can insert the text from some of them into my application. How do I go about doing this? A Google search has not been very fruitful. | android|sms | 1 | 2015-02-24T14:18:15.693Z | 2,015 | 2 | 14 | 1 | 125 | 0 | 219 | 60 | 2 | 0 | false | true | false | false | false | false | low |
28,698,199 | How to get random access to a file on SD-Card by means of API presented for Lollipop? | <p>My application uses Java class <a href="http://developer.android.com/reference/java/io/RandomAccessFile.html" rel="noreferrer">RandomAccessFile</a> to read/write bytes to a file on SD card <strong>randomly</strong> by means of realization of <a href="http://docs.oracle.com/javase/7/docs/api/java/nio/channels/Seekabl... | My application uses Java class RandomAccessFile to read/write bytes to a file on SD card randomly by means of realization of SeekableByteChannel interface. Now I need rewrite it for Android 5.0 with new Lollipop API. I have found the only way to read: [CODE] and write: [CODE] from/to a file in new API. I would like to ... | android-5.0-lollipop|android-sdcard|randomaccessfile|filechannel|documentfile | 11 | 2015-02-24T14:19:59.227Z | 2,015 | 2 | 14 | 1 | 2,301 | 1 | 536 | 85 | 5 | 3 | true | false | false | false | true | false | medium |
28,698,278 | How to start a notification in IntentService | <p>I'm try to send a notification when a user enters or exits a specific geofence.
I already can log when a user enters or exits the geofence. But no notification is showed up when this happened. Is there anything i'm missing? I implemented a theme in my manifestfile.</p>
<p>I also updated my manifest like :</p>
<pre... | I'm try to send a notification when a user enters or exits a specific geofence. I already can log when a user enters or exits the geofence. But no notification is showed up when this happened. Is there anything i'm missing? I implemented a theme in my manifestfile. I also updated my manifest like : [CODE] Here is my Ge... | android|intentservice|geofencing|android-geofence | 4 | 2015-02-24T14:24:03.733Z | 2,015 | 2 | 14 | 1 | 11,908 | 1 | 435 | 44 | 4 | 2 | true | false | true | true | false | false | low |
28,698,280 | WebView - Want to open in app not in browser | <p>I have a problem. I created some app, which should open my website, but when I run the app on my phone, its ask me in which browser I want to open it(Google Chrome...). But I want that website is open in app, not in browser... I'm working with Android Studio 1.1.0... Here is my code in MainActivity.java:</p>
<pre><... | I have a problem. I created some app, which should open my website, but when I run the app on my phone, its ask me in which browser I want to open it(Google Chrome...). But I want that website is open in app, not in browser... I'm working with Android Studio 1.1.0... Here is my code in MainActivity.java: [CODE] P.S. I ... | android|browser|webview | 0 | 2015-02-24T14:24:04.850Z | 2,015 | 2 | 14 | 1 | 2,689 | 1 | 354 | 44 | 3 | 1 | true | false | true | false | false | false | zero |
28,698,310 | export of sqlite database in assets folder | <p>I have a sqlite database in my assets folder. I want to export that file. So I do this:</p>
<pre><code>StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);
//
File direct = new File(Environment.getExternalStorageDire... | I have a sqlite database in my assets folder. I want to export that file. So I do this: [CODE] to get the path of my currentDB, I first copy the database in my project using this method in my DBOpenHelper and by calling it in export method as you can see above. [CODE] but when I run it, I get Filenotfound exception. I ... | android|database|sqlite | 0 | 2015-02-24T14:25:26.673Z | 2,015 | 2 | 14 | 1 | 267 | 0 | 441 | 42 | 3 | 3 | true | true | false | false | false | false | zero |
28,698,333 | How to prevent AlertDialog from closing android | <p>How to prevent AlertDialog box from closing down when a button is pressed. E.g. Currently when I press "Got it" button the dialog box closes but I don't want it to close, I want it to keep showing up. Basically, I have a button there but I don't want it to close the AlertDialog when pressed.</p>
<pre><code>AlertDia... | How to prevent AlertDialog box from closing down when a button is pressed. E.g. Currently when I press "Got it" button the dialog box closes but I don't want it to close, I want it to keep showing up. Basically, I have a button there but I don't want it to close the AlertDialog when pressed. [CODE] | android|android-alertdialog|builder | 1 | 2015-02-24T14:26:18.503Z | 2,015 | 2 | 14 | 1 | 197 | 0 | 299 | 47 | 3 | 1 | true | true | false | false | false | false | low |
28,698,349 | Not getting second activity even after Commiting shared preferences instance in Another activity | <p>In MainActivity i tested whether App is started for 1st time or not.
If yes then start Activity OneTime else SecondActivity.</p>
<pre><code> public static final String MyPreferences = "MyPrefs";
public static final String Country_Name = "countryKey";
SharedPreferences sharedPreferences;
@Override
protected voi... | In MainActivity i tested whether App is started for 1st time or not. If yes then start Activity OneTime else SecondActivity. [CODE] In OneTime activity I have a simple form with like enter CountryName and then I changed My_Pref instance like below. [CODE] But Even after this When app starts again it goes to OneTime act... | android|sharedpreferences | 0 | 2015-02-24T14:26:40.987Z | 2,015 | 2 | 14 | 1 | 56 | 1 | 467 | 96 | 2 | 2 | true | false | false | false | false | false | zero |
28,698,390 | Toolbar overflow menu items not highlighed properly | <p>I have a problem that frustrates me a lot. I can't get to the end of it. The menu items in the overflow menu in the Toolbar of my Android app are not highlighted properly. That is, only the background outside of the text changes color when the button is pressed, while the background behind the text does not. Here's ... | I have a problem that frustrates me a lot. I can't get to the end of it. The menu items in the overflow menu in the Toolbar of my Android app are not highlighted properly. That is, only the background outside of the text changes color when the button is pressed, while the background behind the text does not. Here's a s... | android|menu|overflow|toolbar|android-appcompat | 1 | 2015-02-24T14:28:18.643Z | 2,015 | 2 | 14 | 1 | 134 | 0 | 537 | 51 | 5 | 2 | true | true | false | false | false | false | low |
28,698,529 | Strange behavior of android application lifecycle | <p>Today I was trying to simulate low memory condition for an Android application in eclipse. But I have found a strange behavior. Let me describe the scenario.</p>
<blockquote>
<p>Start an activity and call another activity by pressing a button from first activity.
Now from Eclipse->DDMS->Devices click on "Stop p... | Today I was trying to simulate low memory condition for an Android application in eclipse. But I have found a strange behavior. Let me describe the scenario. Start an activity and call another activity by pressing a button from first activity. Now from Eclipse->DDMS->Devices click on "Stop process". What I've seen that... | android|android-activity|android-lifecycle | 0 | 2015-02-24T14:35:55.347Z | 2,015 | 2 | 14 | 1 | 58 | 1 | 729 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
28,698,547 | android - setOnItemClickListener is not working | <p>I try using setOnItemClickListener on my GridView with some Buttons but it doesn't work.
This is my CustomGrid adapter:
</p>
<pre><code>package com.example.omar.soundboard;
/**
* Created by Omar on 10/02/2015.
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import ... | I try using setOnItemClickListener on my GridView with some Buttons but it doesn't work. This is my CustomGrid adapter: [CODE] This is the grid_single.xml: [CODE] This is the activity code: [CODE] This is the activity_main.xml: [CODE] I'm testing it on Android 2.3.3, the buttons are displayed but when I press on one of... | java|android|xml|onitemclicklistener | 0 | 2015-02-24T14:36:33.817Z | 2,015 | 2 | 14 | 1 | 59 | 0 | 402 | 47 | 4 | 4 | true | true | false | false | false | false | zero |
28,698,562 | AChartEngine Legend Icon Size | <p>I've looked for an answer throughout stackoverflow, through achartengine's XYMultipleSeriesRenderer documentation and I think it's time to ask this question. </p>
<p>The icons in my legend are tiny. And there is no function to make them larger. I tried setting the legend height, fitting the legend, setting differen... | I've looked for an answer throughout stackoverflow, through achartengine's XYMultipleSeriesRenderer documentation and I think it's time to ask this question. The icons in my legend are tiny. And there is no function to make them larger. I tried setting the legend height, fitting the legend, setting different text sizes... | android|achartengine | 0 | 2015-02-24T14:37:00.237Z | 2,015 | 2 | 14 | 1 | 224 | 1 | 523 | 29 | 2 | 0 | false | false | false | false | false | false | zero |
28,698,585 | Launching FragmentActivity From Fragment | <p>I'm having problems getting the below code to Work.
When I hit the Image button it crashes the app.
Can some one please point to where I am going wrong with the below code?</p>
<pre><code>public class training extends Fragment {
ImageButton run;
public training()
{
}
@Overri... | I'm having problems getting the below code to Work. When I hit the Image button it crashes the app. Can some one please point to where I am going wrong with the below code? [CODE] All I have in the Class Being Called is [CODE] Getting the Following Run Time Errors [CODE] | android|android-fragments | 0 | 2015-02-24T14:38:21.293Z | 2,015 | 2 | 14 | 1 | 490 | 1 | 271 | 40 | 2 | 3 | true | false | false | false | false | false | zero |
28,698,712 | actionBar icon of SliderDrawer [Smartface Platform] | <p>I added the sliderdrawer object. It show the Smartface icon in the action bar. I can't change this icon. Do you have a documentation about this object. </p> | I added the sliderdrawer object. It show the Smartface icon in the action bar. I can't change this icon. Do you have a documentation about this object. | android-actionbar|cross-platform|smartface.io | 0 | 2015-02-24T14:43:37.440Z | 2,015 | 2 | 14 | 1 | 103 | 2 | 151 | 51 | 3 | 0 | false | false | false | false | false | false | zero |
28,698,713 | Android Intent Activity Callback | <p>I'm developing an Android module that basically consists of a custom View third parties can just drop into any of their activities.
This module includes a configuration activity (based on PreferenceActivity).</p>
<p>Given that you can't start an activity from a View, the module calls 'openConfig(Intent intent)' on ... | I'm developing an Android module that basically consists of a custom View third parties can just drop into any of their activities. This module includes a configuration activity (based on PreferenceActivity). Given that you can't start an activity from a View, the module calls 'openConfig(Intent intent)' on the activit... | android|android-intent|android-activity|android-fragments | 0 | 2015-02-24T14:43:41.587Z | 2,015 | 2 | 14 | 1 | 5,697 | 1 | 1,782 | 32 | 4 | 1 | true | false | true | false | false | false | zero |
28,698,714 | React component communication with Native Mobile (iOS or Android) | <p>I understand that this might not be the best design approach. I am forced to conform to an existing architecture. </p>
<p>Given the following set of React components. How would one accomplish the following senerio.</p>
<p>ReactComponentInstance <-Communication-> Native iOS or Android </p>
<p>Overview:</p>
<ol... | I understand that this might not be the best design approach. I am forced to conform to an existing architecture. Given the following set of React components. How would one accomplish the following senerio. ReactComponentInstance <-Communication-> Native iOS or Android Overview: A General React component which is respo... | javascript|android|ios|web-applications|reactjs | 2 | 2015-02-24T14:43:43.040Z | 2,015 | 2 | 14 | 1 | 1,731 | 1 | 813 | 65 | 5 | 1 | true | false | false | false | false | false | low |
28,698,816 | Android Scroll View: How to load about 2500 guitar chords (i.e. "Em7") into scroll view | <p>The app requires a scrollable list of chords (i.e. "Em7", "C#", etc.) and I'm not sure the best way to get them into the ScrollView. I can generate a list easily in code (there are about 2500 items...), so it boils down to whether I need all the overhead of a 'Large Text' widget, or can I just have clickable text i... | The app requires a scrollable list of chords (i.e. "Em7", "C#", etc.) and I'm not sure the best way to get them into the ScrollView. I can generate a list easily in code (there are about 2500 items...), so it boils down to whether I need all the overhead of a 'Large Text' widget, or can I just have clickable text in th... | android | 0 | 2015-02-24T14:47:30.770Z | 2,015 | 2 | 14 | 1 | 96 | 2 | 479 | 87 | 1 | 1 | true | false | false | false | false | false | zero |
28,698,994 | Using FMod in Android for pitch/tempo/mix/trim | <p>I want to be able to do some Pitch and Tempo Shifting, mix and trim sounds and apply effects.
I tried <a href="https://github.com/guardianproject/android-ffmpeg-java" rel="nofollow">ffmpeg</a> but unfortunately, it has some huge delay on processing the audio file (like 40secs for just pitch+tempo on a 36secs file).<... | I want to be able to do some Pitch and Tempo Shifting, mix and trim sounds and apply effects. I tried ffmpeg but unfortunately, it has some huge delay on processing the audio file (like 40secs for just pitch+tempo on a 36secs file). So I searched the web for a library that could do all these features and I found FMod c... | android|audio|fmod | 3 | 2015-02-24T14:55:38.387Z | 2,015 | 2 | 14 | 1 | 531 | 2 | 474 | 46 | 3 | 0 | false | false | false | false | false | false | low |
28,699,023 | Incoming call in Android with Qpython | <p>Im trying to get incomingcall number with qpython on android 4.4.3</p>
<p>Already try this:</p>
<pre><code>import androidhelper
w=1
while (w == 1):
droid = androidhelper.Android()
droid.startTrackingPhoneState()
phonest = droid.readPhoneState()
number = phonest[2] # If i try to use ['incomingNumber... | Im trying to get incomingcall number with qpython on android 4.4.3 Already try this: [CODE] I Always get NullPointer Exception I read this: python function call syntax ... result = foo() ['abc'] But is not working at all because: This is not working: [CODE] And when i try this: [CODE] Error because need to be i... | android|python|call|qpython | 0 | 2015-02-24T14:56:47.837Z | 2,015 | 2 | 14 | 1 | 1,246 | 2 | 350 | 37 | 4 | 3 | true | false | false | false | false | false | zero |
28,699,070 | Double Values are not passing from one activity to another | <p>I am trying to pass 3 calculated values from Activity 1 to activity 2. Every time I see the result as 0.0 in Activity 2. Please help.</p>
<h2>Activity 1:</h2>
<pre><code>submit = (Button)findViewById(R.id.submit);
try {
submit.setOnClickListener(new Button.OnClickListener() {
@Override
... | I am trying to pass 3 calculated values from Activity 1 to activity 2. Every time I see the result as 0.0 in Activity 2. Please help. Activity 1: [CODE] Activity 2: [CODE] Stack trace: [CODE] | java|android|android-activity|android-studio | 0 | 2015-02-24T14:58:48.470Z | 2,015 | 2 | 14 | 1 | 597 | 2 | 191 | 58 | 4 | 3 | true | false | false | false | false | false | zero |
28,699,088 | Set ActionView for MenuItem to be shown in menu list | <p>I'm using:</p>
<pre><code> compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:support-v4:21.0.3'
</code></pre>
<p>Is it possible to make working next combination:</p>
<pre><code> <item
android:id="@+id/user"
app:actionLayout="@layout/user_info_menu_layout"
andr... | I'm using: [CODE] Is it possible to make working next combination: [CODE] I'm trying to get for free similar menu for Twitter application. Note: The problem is showAsAction="never" and actionLayout . As soon as I change never to always I see custom view in toolbar. Note 2: Calling setActionView(R.layout.user_info_menu_... | android|android-actionbar|android-toolbar | 1 | 2015-02-24T14:59:19.890Z | 2,015 | 2 | 14 | 1 | 546 | 0 | 345 | 52 | 3 | 2 | true | true | false | false | false | false | low |
28,699,117 | How to display text from EditText to ListView? | <p>I want to display in the listview what I have type in the EditText, so everytime I'm going to input something in the EditText, it will automatically add in the array adn display it using a listview.
Need a help. Thanks.</p> | I want to display in the listview what I have type in the EditText, so everytime I'm going to input something in the EditText, it will automatically add in the array adn display it using a listview. Need a help. Thanks. | android | 2 | 2015-02-24T15:00:22.110Z | 2,015 | 2 | 15 | 1 | 2,046 | 2 | 219 | 46 | 1 | 0 | false | false | false | false | false | false | low |
28,699,127 | Socket creation in VpnService freezes thread | <p>I'm trying to implement no root firewall for android. I've gone through all related questions on SO, but haven't find an answer:</p>
<p>Here I am configuring my vpn.</p>
<pre><code>private void configure() {
// If the old interface has exactly the same parameters, use it!
if (mInterface != null) {
... | I'm trying to implement no root firewall for android. I've gone through all related questions on SO, but haven't find an answer: Here I am configuring my vpn. [CODE] And then I am trying to send data to destination address [CODE] But thread is freezing on constructor of Socket and then rasinig IOException like this: [C... | java|android|sockets|vpn|firewall | 2 | 2015-02-24T15:00:58.220Z | 2,015 | 2 | 15 | 1 | 159 | 1 | 324 | 44 | 5 | 3 | true | false | false | false | false | false | low |
28,699,139 | Pass Values From onItemClick) Between Activities | <p>Please see the following code:</p>
<p>Activity A:</p>
<pre><code> private void clickableListView() {
ListView lv = (ListView) findViewById(R.id.listViewArtists);
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(Adap... | Please see the following code: Activity A: [CODE] Activity B: [CODE] DatabaseHelper: [CODE] My Question: I have asked this before but maybe I was not clear enough, here goes my second try: Activity A has "tvName" variable from getText().toString() This getText().toString() comes from user click from Activity A Activity... | android | 0 | 2015-02-24T15:01:40.853Z | 2,015 | 2 | 15 | 1 | 351 | 2 | 853 | 48 | 1 | 3 | true | false | false | false | false | false | zero |
28,699,177 | gstreamer on Android: exception when unrefing pipeline? | <p>I have a very strange problem in my App. The plan is to use gstreamer to play a videostream and display it on a SurfaceView. The pipeline uses <code>glimagesink</code> to display the video.</p>
<p>When my activity terminates it calls <code>release_pipeline</code> (set pipeline state to GST_STATE_NULL, unref it, set... | I have a very strange problem in my App. The plan is to use gstreamer to play a videostream and display it on a SurfaceView. The pipeline uses glimagesink to display the video. When my activity terminates it calls release_pipeline (set pipeline state to GST_STATE_NULL, unref it, set my reference to NULL). The unrefing ... | android|multithreading|opengl-es|gstreamer | 0 | 2015-02-24T15:03:16.917Z | 2,015 | 2 | 15 | 1 | 533 | 1 | 1,338 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
28,699,242 | onCreateView() in fragment not called and showing black screen | <p>I'm creating and placing a Fragment like this:</p>
<pre><code>FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
Fragment fragment = Fragment.instantiate(getApplicationContext(), item.getFragmentClass().getName());
ft.replace(R.id.content_frame, fragment, selectedNavItem);
ft.commit();
</code... | I'm creating and placing a Fragment like this: [CODE] Until I migrated from Eclipse to Android Studio everything was OK. But after migration my splashscreen (which is an activity with fragment too) is running but when I switch to mainactivity with calling the fragment like above - it sometimes works and sometimes not -... | android|android-fragments | -1 | 2015-02-24T15:06:51.983Z | 2,015 | 2 | 15 | 1 | 297 | 1 | 604 | 62 | 2 | 2 | true | false | false | false | false | true | negative |
28,699,322 | How to run tasks after closing app with onStop()? | <p>I am currently experimenting with Android I was wondering how i can make postDelayed run after I hit the home button?</p>
<p>Using handler I am able to make the postDelayed run every minute so that a integer is increased by one, but I want the integer to keep increasing even after I leave the app by pressing the ho... | I am currently experimenting with Android I was wondering how i can make postDelayed run after I hit the home button? Using handler I am able to make the postDelayed run every minute so that a integer is increased by one, but I want the integer to keep increasing even after I leave the app by pressing the home button. ... | java|android|class | 0 | 2015-02-24T15:10:06.590Z | 2,015 | 2 | 15 | 1 | 236 | 1 | 352 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
28,699,323 | How to start the same activity using startActivityForResult twice | <p>So I am trying to implement calling the same activity twice, I understand there will be better ways to do this but right now I just want 2 separate data recordings. When I try to run this code, the Diastolic BP gets read in first which is unintentional. Can someone explain why this is happening please. Thank you.</p... | So I am trying to implement calling the same activity twice, I understand there will be better ways to do this but right now I just want 2 separate data recordings. When I try to run this code, the Diastolic BP gets read in first which is unintentional. Can someone explain why this is happening please. Thank you. [CODE... | android|start-activity | 0 | 2015-02-24T15:10:09.660Z | 2,015 | 2 | 15 | 1 | 2,200 | 2 | 332 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
28,699,465 | MediaStore.Audio.Playlists.Members.moveItem sometimes not working | <p>I faced a problem I can't handle by myself, I have checked literally every single line of code, but it's still not working.</p>
<p>I have draggable listView, which represents a playlist (ordinary MediaStore.Audio.Playlist) and drop listener for changing order of songs. </p>
<pre><code>listView.setDropListener(new ... | I faced a problem I can't handle by myself, I have checked literally every single line of code, but it's still not working. I have draggable listView, which represents a playlist (ordinary MediaStore.Audio.Playlist) and drop listener for changing order of songs. [CODE] Also I have contentObserver, which handles cursor ... | android|mediastore|contentobserver | 1 | 2015-02-24T15:16:07.967Z | 2,015 | 2 | 15 | 1 | 477 | 2 | 620 | 65 | 3 | 4 | true | false | false | false | false | false | low |
28,699,473 | How to get the get(...) index manually | <p>I have the following problem. I think it's, at least, interesting. And I would like to find a solution too :)</p>
<p>I have an internal array of users that, for some reasons, is storing the images of each user in a <code>singleton class</code>. This singleton class is storing correctly each <code>ArrayList</code> o... | I have the following problem. I think it's, at least, interesting. And I would like to find a solution too :) I have an internal array of users that, for some reasons, is storing the images of each user in a singleton class . This singleton class is storing correctly each ArrayList of images for each user. When I go to... | java|android|singleton | 0 | 2015-02-24T15:16:36.357Z | 2,015 | 2 | 15 | 1 | 53 | 1 | 1,582 | 38 | 3 | 6 | true | false | false | false | false | false | zero |
28,699,484 | How to achieve this layout in Android? | <p>How can I get this layout in <code>Android</code> using <code>RelativeLayout</code>? No matter what I try, the top 2 buttons don't show up as expected. Below I have provided a screenshot of what I want, what I attempted and the output of my attempt. Please can anyone help me out? Thanks.</p>
<p><img src="https://i.... | How can I get this layout in Android using RelativeLayout ? No matter what I try, the top 2 buttons don't show up as expected. Below I have provided a screenshot of what I want, what I attempted and the output of my attempt. Please can anyone help me out? Thanks. [CODE] Updated: Any help is much appreciated. | android|android-layout|android-button|android-relativelayout | 2 | 2015-02-24T15:17:24.177Z | 2,015 | 2 | 15 | 1 | 159 | 5 | 309 | 38 | 4 | 1 | true | false | false | false | false | false | low |
28,699,534 | Exclude modules while building OpenCV | <p>Is it possible to build OpenCV, including only the object detection module and excluding everything else ?</p> | Is it possible to build OpenCV, including only the object detection module and excluding everything else ? | android|opencv | 0 | 2015-02-24T15:19:09.250Z | 2,015 | 2 | 15 | 1 | 371 | 1 | 106 | 37 | 2 | 0 | false | false | false | false | false | false | zero |
28,699,574 | Delphi open PDF from ios/Android local storage | <p>I tried to open a PDF file on mobile device from local storage.</p>
<p>I have put the file to:</p>
<p>StartUp\Documents\ for iOS</p>
<p>assets\internal\ for Android</p>
<p>with this code:</p>
<pre><code>filename := TPath.Combine(TPath.GetDocumentsPath, 'file.pdf');
WebBrowser1.Navigate('file://' + filename);
</... | I tried to open a PDF file on mobile device from local storage. I have put the file to: StartUp\Documents\ for iOS assets\internal\ for Android with this code: [CODE] on iOS works fine ... open the pdf correctly on Android ... nothing .. no error .. no pdf ... If I try to open a html file .. works fine. Any suggestions... | android|ios|delphi|pdf | 0 | 2015-02-24T15:20:46.700Z | 2,015 | 2 | 15 | 1 | 12,088 | 2 | 332 | 46 | 4 | 1 | true | false | true | true | false | false | zero |
28,699,668 | Updating Seekbar after changing Edittext | <p>So I've got a seekbar and an edittext. My aim is to type in a number in the edittext, and in the same time the seekbar should jump to the related position. This should also work vise versa. </p>
<p>I've already got the code for them seperately. But something is missing. Because when I put in both and start then i c... | So I've got a seekbar and an edittext. My aim is to type in a number in the edittext, and in the same time the seekbar should jump to the related position. This should also work vise versa. I've already got the code for them seperately. But something is missing. Because when I put in both and start then i can slide the... | java|android|seekbar | 1 | 2015-02-24T15:24:34.463Z | 2,015 | 2 | 15 | 1 | 1,174 | 4 | 750 | 40 | 3 | 2 | true | false | false | false | false | false | low |
28,699,669 | Get data from XML in String - Android | <p>I'm using SOAP service to get ticket. I'm sending user and pass, and I'm getting xml in String. For this I'm using ksoap2.</p>
<pre><code>@Override
protected String doInBackground(String... params) {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty(USER, params[0]);
requ... | I'm using SOAP service to get ticket. I'm sending user and pass, and I'm getting xml in String. For this I'm using ksoap2. [CODE] My XML String looks like this: [CODE] So I need to get the error number, and the ticket number. | java|android|xml|ksoap2 | 0 | 2015-02-24T15:24:36.597Z | 2,015 | 2 | 15 | 1 | 1,233 | 2 | 225 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
28,699,753 | An error occurred while connecting to camera in android | <p>During integration of zxing library in android app every thing works fine but when i try to call camera repeatedly facing this problem with camera
here is my logcat</p>
<pre><code> 02-24 20:49:34.775: W/CameraBase(15622): An error occurred while connecting to camera: 0
02-24 20:49:34.785: W/CaptureActivity(15622... | During integration of zxing library in android app every thing works fine but when i try to call camera repeatedly facing this problem with camera here is my logcat [CODE] Here is code for integrating zxing library please check it [CODE] | android-camera|zxing | 1 | 2015-02-24T15:28:37.533Z | 2,015 | 2 | 15 | 1 | 2,650 | 2 | 237 | 55 | 2 | 2 | true | false | true | false | false | false | low |
28,699,759 | gluLookAt vectors from gyroscope angles | <p>Hi I'm trying to rotate the openGL camera using my phone's gyroscope. I am able to get the three angles (X,Y,Z), but I can't find a way to convert them to the direction vectors required by gluLookAt.
The camera is placed at (0,0,0) and should make the same rotations as the phone itself.</p> | Hi I'm trying to rotate the openGL camera using my phone's gyroscope. I am able to get the three angles (X,Y,Z), but I can't find a way to convert them to the direction vectors required by gluLookAt. The camera is placed at (0,0,0) and should make the same rotations as the phone itself. | android|geometry|opengl-es-2.0|gyroscope | 0 | 2015-02-24T15:28:46.057Z | 2,015 | 2 | 15 | 1 | 250 | 1 | 287 | 39 | 4 | 0 | false | false | false | false | false | false | zero |
28,699,774 | Get onActivityResult when returning from startActivityForResult in Adapter | <p>I am trying to return some data when a user clicks back from the Activity. </p>
<p>I am calling startActivityForResult from the adapter, but when I actually press back from the Activity, onActivityResult never seems to be called</p>
<p><em>Code is trimmed down for example</em></p>
<p><strong>Fragment1</strong></p... | I am trying to return some data when a user clicks back from the Activity. I am calling startActivityForResult from the adapter, but when I actually press back from the Activity, onActivityResult never seems to be called Code is trimmed down for example Fragment1 [CODE] Adapter [CODE] Activity [CODE] | java|android | 5 | 2015-02-24T15:29:30.410Z | 2,015 | 2 | 15 | 1 | 3,627 | 2 | 301 | 74 | 2 | 3 | true | false | true | false | false | false | low |
28,699,804 | Android - Facebook Custom Story image not displayed | <p>I got a custom story set up on my Facebook Developer for my app and I want to share a story with Android Facebook SDK. With the debug version of the app everything works fine, but when i sign it with my release key the preview just show me the website title ande the Facebook app image instead of the "object" title a... | I got a custom story set up on my Facebook Developer for my app and I want to share a story with Android Facebook SDK. With the debug version of the app everything works fine, but when i sign it with my release key the preview just show me the website title ande the Facebook app image instead of the "object" title and ... | android|facebook|facebook-graph-api | 0 | 2015-02-24T15:30:54.940Z | 2,015 | 2 | 15 | 1 | 114 | 1 | 909 | 51 | 3 | 3 | true | false | false | false | false | false | zero |
28,699,823 | Android spinner, setting error on specific item | <p>How do I set an error when a specific item is selected on my spinner. Let's say my spinner has 0, 1, 2, 3 in it and I want it to error only when 0 is chosen and prompt the user to select something else. Is it possible, if so does it require a huge workaround? </p> | How do I set an error when a specific item is selected on my spinner. Let's say my spinner has 0, 1, 2, 3 in it and I want it to error only when 0 is chosen and prompt the user to select something else. Is it possible, if so does it require a huge workaround? | android|android-spinner | 0 | 2015-02-24T15:31:47.997Z | 2,015 | 2 | 15 | 1 | 49 | 1 | 259 | 47 | 2 | 0 | false | false | false | false | false | false | zero |
28,699,829 | Two LinearLayouts at same position | <p>I want to add two linear layouts at same position with width same as parent. When I press Button1 linearLayout1 should appear and on Button2 LinearLayout2 should appear. How to do this in android?</p> | I want to add two linear layouts at same position with width same as parent. When I press Button1 linearLayout1 should appear and on Button2 LinearLayout2 should appear. How to do this in android? | android | 1 | 2015-02-24T15:32:12.583Z | 2,015 | 2 | 15 | 1 | 907 | 4 | 196 | 34 | 1 | 0 | false | false | false | false | false | false | low |
28,699,900 | Android Studio: Importing Eclipse project from SVN along with Library projects | <p>I am able to import the main project along with two other library projects from SVN. But while in the process if I select,</p>
<ol>
<li>"Create project from existing sources" it creates the project and after doing some modifications in Project settings it works. But I could not find the Gradle file and it gives err... | I am able to import the main project along with two other library projects from SVN. But while in the process if I select, "Create project from existing sources" it creates the project and after doing some modifications in Project settings it works. But I could not find the Gradle file and it gives error "The project '... | android|eclipse|svn|android-studio|android-gradle-plugin | 2 | 2015-02-24T15:35:37.847Z | 2,015 | 2 | 15 | 1 | 425 | 0 | 941 | 78 | 5 | 0 | false | true | false | false | false | false | low |
28,699,934 | Is there any way to change the orientation of the layout shown in the second screen when using cwac-presentation library? | <p>I have an app that uses the cwac-presentation library. When starting the service and displaying the layout on the second display, I want it to be landscape oriented but keep the layout on my device on portrait, but I cannot find a way to these different orientations. If I request an orientation change, it happens on... | I have an app that uses the cwac-presentation library. When starting the service and displaying the layout on the second display, I want it to be landscape oriented but keep the layout on my device on portrait, but I cannot find a way to these different orientations. If I request an orientation change, it happens on bo... | android|orientation|commonsware-cwac | 0 | 2015-02-24T15:37:37.647Z | 2,015 | 2 | 15 | 1 | 102 | 0 | 388 | 121 | 3 | 0 | false | true | false | false | false | false | zero |
28,700,074 | How do I deploy a Dynamic Web Application made with Eclipse? | <p>Good Afternoon, </p>
<p>I have followed these 2 tutorials on how to make a chat app and I've successfully got them to work. </p>
<p><a href="http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-1/" rel="nofollow">http://www.androidhive.info/2014/10/android-building-group-chat-app-... | Good Afternoon, I have followed these 2 tutorials on how to make a chat app and I've successfully got them to work. http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-1/ http://www.androidhive.info/2014/10/android-building-group-chat-app-using-sockets-part-2/ I have my project runnin... | android|eclipse | 0 | 2015-02-24T15:43:43.693Z | 2,015 | 2 | 15 | 1 | 789 | 0 | 1,713 | 60 | 2 | 1 | true | true | false | false | false | false | zero |
28,700,093 | Partition Size fails to be set from Android Emulator Plugin | <p>I'm trying to copy a HOSTS file over to an avd created using the android-emulator-plugin in jenkins. I've specified the partition-size to be 128, which works just fine when running from the command line, but when i copy the hosts file to /system/etc/hosts it always returns an out of memory error during the push. ... | I'm trying to copy a HOSTS file over to an avd created using the android-emulator-plugin in jenkins. I've specified the partition-size to be 128, which works just fine when running from the command line, but when i copy the hosts file to /system/etc/hosts it always returns an out of memory error during the push. Output... | android|jenkins|android-emulator|android-emulator-plugin | 2 | 2015-02-24T15:44:23.453Z | 2,015 | 2 | 15 | 1 | 352 | 1 | 395 | 59 | 4 | 1 | true | false | false | false | false | false | low |
28,700,174 | Android getWidth() return 0 in View's onDraw | <p>Here is my code:</p>
<pre><code> if (myView == null) {
myView = new View(mContext) {
@Override
protected void onDraw(final Canvas canvas) {
super.onDraw(canvas);
final float width = (float)getWidth();
......
}
};
... | Here is my code: [CODE] The width in my code is always 0 although the size of the mContext is not zero. Can anybody advise what could be the possible reason I got 0 for width? Thanks | android | 4 | 2015-02-24T15:47:38.920Z | 2,015 | 2 | 15 | 1 | 1,877 | 2 | 182 | 44 | 1 | 1 | true | false | false | false | false | false | low |
28,700,213 | How to recognize if the device is processing tasks too slow | <p>Is there a way to programmatically detect when the device is struggling to keep up with all the tasks, more specifically with UI tasks such as animations and updating UI elements.</p>
<p>The point of it would be to programmatically stop certain animations if the device can't handle them all.</p> | Is there a way to programmatically detect when the device is struggling to keep up with all the tasks, more specifically with UI tasks such as animations and updating UI elements. The point of it would be to programmatically stop certain animations if the device can't handle them all. | android | 1 | 2015-02-24T15:49:30.310Z | 2,015 | 2 | 15 | 1 | 17 | 0 | 285 | 59 | 1 | 0 | false | true | false | false | false | false | low |
28,700,239 | Why my app crash when i try to take a preview from camera with SurfaceView? | <p>Why my app crash when i try to take a preview from camera with SurfaceView on android?
When I build Android Studio hasn't errors.</p>
<p>This is the code:</p>
<pre><code>public class MainActivity extends ActionBarActivity implements SurfaceHolder.Callback
{
private Camera camera;
static private SurfaceVie... | Why my app crash when i try to take a preview from camera with SurfaceView on android? When I build Android Studio hasn't errors. This is the code: [CODE] Somebody can help me? I will wait your answer. | android | 0 | 2015-02-24T15:50:27.210Z | 2,015 | 2 | 15 | 1 | 71 | 0 | 201 | 75 | 1 | 1 | true | true | false | false | false | false | zero |
28,700,243 | Migrating eclipse project from github to android studio | <p>I am in the process of migrating my current project from eclipse to studio which is present on github.</p>
<p>My project makes use of google play services lib and an another library (calendar lib to be precise)</p>
<p>I tried many ways of migrating to studio following the tutorials on the net but I am not able to ... | I am in the process of migrating my current project from eclipse to studio which is present on github. My project makes use of google play services lib and an another library (calendar lib to be precise) I tried many ways of migrating to studio following the tutorials on the net but I am not able to achieve it. I am ge... | android|android-studio|google-play-services|migrating|code-migration | 0 | 2015-02-24T15:50:30.593Z | 2,015 | 2 | 15 | 1 | 118 | 1 | 593 | 55 | 5 | 0 | false | false | false | false | false | false | zero |
28,700,298 | Parse nested JSON with variable length | <p>Here is my JSON.Tell me a way to parse this using JSON.org.I'm able to parse till photpath.How to proceed further and I want to check "Hascomment" field and then proceed to "comments" array.How to do this?</p>
<pre><code>{
"success":1,
"complaints":[
{
"complaintID":"1",
"userName":"Ganesh ",
"Title":"Check HelloML... | Here is my JSON.Tell me a way to parse this using JSON.org.I'm able to parse till photpath.How to proceed further and I want to check "Hascomment" field and then proceed to "comments" array.How to do this? [CODE] | android|json | 0 | 2015-02-24T15:52:42.690Z | 2,015 | 2 | 15 | 1 | 173 | 1 | 212 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
28,700,340 | NoClassDefFoundError when adding Universal Tween Engine via gradle in Android Studio | <p>I've been doing a little game development experimentation with Kilobolt's flappy bird clone tutorial in Android Studio. I was able to pretty easily setup the project with a Libgdx project generator (<a href="http://www.todroid.com/android-gdx-game-creation-part-i-setting-up-up-android-studio-for-creating-games/" rel... | I've been doing a little game development experimentation with Kilobolt's flappy bird clone tutorial in Android Studio. I was able to pretty easily setup the project with a Libgdx project generator ( http://www.todroid.com/android-gdx-game-creation-part-i-setting-up-up-android-studio-for-creating-games/ ), but at one p... | android-studio|libgdx | 2 | 2015-02-24T15:54:28.977Z | 2,015 | 2 | 15 | 1 | 176 | 0 | 898 | 84 | 2 | 0 | false | true | false | false | false | false | low |
28,700,379 | Manifest and setup issues getting Robolectric working with Android Studio 1.1.0 | <p>I am trying to get Robolectric tests up and working in our current project, and not having a lot of luck. My preference would be to get these to run within Android Studio 1.1.0+. This is my project structure:</p>
<p><img src="https://i.stack.imgur.com/r1MxO.png" alt="enter image description here"></p>
<p>and her... | I am trying to get Robolectric tests up and working in our current project, and not having a lot of luck. My preference would be to get these to run within Android Studio 1.1.0+. This is my project structure: and here is my test: [CODE] No matter what I do to try and get the framework to find the test by changing the p... | android|testing|robolectric|robolectric-gradle-plugin | 6 | 2015-02-24T15:55:56.543Z | 2,015 | 2 | 15 | 1 | 7,530 | 6 | 885 | 79 | 4 | 4 | true | false | true | false | false | false | medium |
28,700,391 | Using cache in ExoPlayer | <p>I'm looking for any example of implementing cache in ExoPlayer. </p>
<p>ExoPlayer has in its library different classes concerning cache and Google explain in this <a href="https://www.youtube.com/watch?v=6VjF638VObA">video</a> that we can implement it with the CacheDataSource class, but Google doesn't provide any d... | I'm looking for any example of implementing cache in ExoPlayer. ExoPlayer has in its library different classes concerning cache and Google explain in this video that we can implement it with the CacheDataSource class, but Google doesn't provide any demo on it. Unfortunately this seems pretty complicated to use, so I'm ... | android|caching|media|exoplayer | 62 | 2015-02-24T15:56:15.367Z | 2,015 | 2 | 15 | 1 | 47,861 | 10 | 436 | 24 | 4 | 0 | false | false | true | true | true | false | high |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.