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,675,691 | Espresso, test launch of second activity | <p>I would like to know how to test the launch of an activity on the click of a button. I'm aware that this could possibly be made with this:
<code>onView(withText(R.string.button_next_activity)).perform(click());</code>, then <code>onView(withId(R.id.second_tv_welcome)).check(matches(withText(R.string.second_tv_welco... | I would like to know how to test the launch of an activity on the click of a button. I'm aware that this could possibly be made with this: onView(withText(R.string.button_next_activity)).perform(click()); , then onView(withId(R.id.second_tv_welcome)).check(matches(withText(R.string.second_tv_welcome))); where second_tv... | android|android-testing|android-espresso | 1 | 2015-02-23T14:11:28.273Z | 2,015 | 2 | 14 | 0 | 1,874 | 1 | 622 | 40 | 3 | 0 | false | false | false | false | false | false | low |
28,675,698 | Multiple developer names for a single Google Developer account | <p>Is it possible to have multiple developer names on a single Google Developer account? I want to have multiple apps with multiple teams without having to buy a new account for each.</p> | Is it possible to have multiple developer names on a single Google Developer account? I want to have multiple apps with multiple teams without having to buy a new account for each. | android|google-play | 3 | 2015-02-23T14:11:38.600Z | 2,015 | 2 | 14 | 0 | 847 | 1 | 180 | 62 | 2 | 0 | false | false | false | false | false | false | low |
28,675,773 | Android - BasicNetwork.performRequest: response code 501 | <p>I'm trying to use MoPub in my Unity game. I'm getting this annoying response code 501 when trying to request an ad. I'm using MoPub test id's (but same with the real ones). this is my logcat yelling at me:</p>
<p>E/Volley: BasicNetwork.performRequest: Unexpected response code 501 for <a href="http://ads.mopub.com/m... | I'm trying to use MoPub in my Unity game. I'm getting this annoying response code 501 when trying to request an ad. I'm using MoPub test id's (but same with the real ones). this is my logcat yelling at me: E/Volley: BasicNetwork.performRequest: Unexpected response code 501 for http://ads.mopub.com/m/ad?v=6&id=agltb3B1Y... | android|android-volley|mopub | 0 | 2015-02-23T14:14:55.527Z | 2,015 | 2 | 14 | 0 | 443 | 0 | 864 | 56 | 3 | 0 | false | true | false | false | false | false | zero |
28,675,794 | Can't start locationlistener service in Android | <p>I'm trying to implement locationlistener but when I try to start the service nothing happend.</p>
<p>This is what I implemented in the manifestfile:</p>
<pre><code> <service android:name="LocationService"
android:enabled="true"
android:exported="false"
android:label="LocationService"
... | I'm trying to implement locationlistener but when I try to start the service nothing happend. This is what I implemented in the manifestfile: [CODE] I implemented a class Locationservice with the following code: [CODE] And in my Activity class I want to start the service, [CODE] Nothing happend when I change from locat... | android|service|locationlistener | 0 | 2015-02-23T14:15:34.807Z | 2,015 | 2 | 14 | 0 | 686 | 1 | 354 | 47 | 3 | 3 | true | false | false | false | false | false | zero |
28,675,853 | Robotium wrong Activity | <p>When using <code>getCurrentActivity</code> or <code>assertCurrentActivity</code> it will always give me the wrong one. I have Activity A and switching to Activity B. But i always get Activity A as an answer.</p>
<p>Why is that?</p>
<p>im using robotium version 5.3.0 and testing on and Emulator with 5.0.0</p> | When using getCurrentActivity or assertCurrentActivity it will always give me the wrong one. I have Activity A and switching to Activity B. But i always get Activity A as an answer. Why is that? im using robotium version 5.3.0 and testing on and Emulator with 5.0.0 | android|testing|robotium | 1 | 2015-02-23T14:18:33.910Z | 2,015 | 2 | 14 | 0 | 120 | 1 | 265 | 23 | 3 | 0 | false | false | false | false | false | false | low |
28,675,861 | Creating and displaying a Pop-up window using the Android NDK? | <p>How can I create and display a pop-up window using the Android NDK (i.e the equivalent of the win32 MessageBox() ) ? I took a look at what I assumed to be the the documentation of the NDK but I couldn't find it.
Thank you.</p> | How can I create and display a pop-up window using the Android NDK (i.e the equivalent of the win32 MessageBox() ) ? I took a look at what I assumed to be the the documentation of the NDK but I couldn't find it. Thank you. | java|android|c|android-ndk|popup | 1 | 2015-02-23T14:18:49.760Z | 2,015 | 2 | 14 | 0 | 664 | 1 | 222 | 62 | 5 | 0 | false | false | false | false | false | false | low |
28,675,970 | Java FTPClient: Getting "Connection reset by peer" when calling getReply() | <p>I was recently trying to connect to a FTP server via a mobile application.
I'm able to connect to my server and check if it's connected (which it is).
Next thing is to login with a username and password following with a passive mode setup. Last thing I did was get the reply code from the server, but when my applicat... | I was recently trying to connect to a FTP server via a mobile application. I'm able to connect to my server and check if it's connected (which it is). Next thing is to login with a username and password following with a passive mode setup. Last thing I did was get the reply code from the server, but when my application... | java|android|ftp|ftp-client | 0 | 2015-02-23T14:25:06.027Z | 2,015 | 2 | 14 | 0 | 562 | 1 | 523 | 74 | 4 | 1 | true | false | false | false | false | false | zero |
28,676,019 | simple encryption in android | <p>I've taken reference of this article for <a href="http://www.developer.com/ws/android/encrypting-with-android-cryptography-api.html" rel="nofollow">Simple ENCRYPTION</a>, </p>
<p>I am taking some text in edittext and then taking key from user using custom dialog and then creating it as mentioned in article,encrypti... | I've taken reference of this article for Simple ENCRYPTION , I am taking some text in edittext and then taking key from user using custom dialog and then creating it as mentioned in article,encrypting original text,decrypting it and showing it to Textview on screen..but after running exception are shown in logcat as de... | java|android|encryption | 0 | 2015-02-23T14:27:39.987Z | 2,015 | 2 | 14 | 0 | 318 | 2 | 559 | 28 | 3 | 4 | true | false | false | false | false | false | zero |
28,676,059 | How to get my code working? | <p>I am trying to save canvas drawing to my android phone storage when clicked on a div.
I am using phoneGap build.I have tried using <a href="https://github.com/devgeeks/Canvas2ImagePlugin" rel="nofollow">Canvas2ImagePlugin</a> .
I modified the config.xml file and added this line of code</p>
<pre><code><gap:plugin... | I am trying to save canvas drawing to my android phone storage when clicked on a div. I am using phoneGap build.I have tried using Canvas2ImagePlugin . I modified the config.xml file and added this line of code [CODE] and add this to the JavaScript file [CODE] the canvas has an id of "canvas" and the div has an id of "... | javascript|android|android-canvas|phonegap-plugins|phonegap-build | 0 | 2015-02-23T14:29:38.923Z | 2,015 | 2 | 14 | 0 | 60 | 0 | 393 | 27 | 5 | 2 | true | true | false | false | false | false | zero |
28,676,167 | Webrtc Android to Android? | <p>Im a bit confused, Ive only seen examples from android to pc or vice versa. I need to make an android app that connects from two phones(android) for video chat. I was wondering, I know it might be a silly question, but can you do that with webrtc? Do you know any good tutorials that explains it or something similar?... | Im a bit confused, Ive only seen examples from android to pc or vice versa. I need to make an android app that connects from two phones(android) for video chat. I was wondering, I know it might be a silly question, but can you do that with webrtc? Do you know any good tutorials that explains it or something similar? Or... | android|webrtc|videochat | 5 | 2015-02-23T14:35:32.263Z | 2,015 | 2 | 14 | 0 | 1,738 | 2 | 707 | 26 | 3 | 0 | false | false | false | false | false | false | low |
28,676,196 | Integrate transit-java into an android studio project | <p><strong>What I have for now ?</strong> </p>
<ul>
<li><p>I have a android studio project</p></li>
<li><p>I don't have Maven and can't use it for now</p></li>
<li><p>I got transit-java from github to a gerrit so now I have it locally using SourceTree</p></li>
</ul>
<p><strong>What I want to do ?</strong></p>
<ul>
<... | What I have for now ? I have a android studio project I don't have Maven and can't use it for now I got transit-java from github to a gerrit so now I have it locally using SourceTree What I want to do ? Incorporate https://github.com/cognitect/transit-java/tree/v0.8.269 into my android studio project How can I do that ... | java|android|maven|android-gradle-plugin | 0 | 2015-02-23T14:37:20.923Z | 2,015 | 2 | 14 | 0 | 121 | 1 | 383 | 53 | 4 | 0 | false | false | false | false | false | false | zero |
28,676,237 | How to Change the Logo of an ActionBarDrawerToggle from android.support.v7? | <p>I am setting the toggle for a Navigation Drawer in the <code>MainActivity</code> <code>OnCreate</code> Method. The android training guide on the <a href="http://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow noreferrer">subject</a> has not been updated and still uses the v4 Con... | I am setting the toggle for a Navigation Drawer in the MainActivity OnCreate Method. The android training guide on the subject has not been updated and still uses the v4 Constrcutor where you can set the logo: [CODE] My code: [CODE] What I get: What I would like is The ic_drawer then the Logo then the title. | android | 0 | 2015-02-23T14:39:42.173Z | 2,015 | 2 | 14 | 0 | 256 | 1 | 309 | 75 | 1 | 2 | true | false | false | false | false | false | zero |
28,676,238 | Android - Socket Connected even though it cannot | <p>Firstly I know what your thinking, it's a strange question and it seems like it cannot be true but here me out on this one...</p>
<p>The project is a project which sends an array of bytes over a socket and also receives data from a socket. I am currently working on protection. I want to make sure that the user know... | Firstly I know what your thinking, it's a strange question and it seems like it cannot be true but here me out on this one... The project is a project which sends an array of bytes over a socket and also receives data from a socket. I am currently working on protection. I want to make sure that the user knows when the ... | android|sockets | 6 | 2015-02-23T14:39:47.750Z | 2,015 | 2 | 14 | 0 | 2,618 | 2 | 1,462 | 48 | 2 | 3 | true | false | true | false | false | false | medium |
28,676,262 | Xamarin build cross platform sdk for native developers | <p>I'm going to build a sdk target for android & ios developers.
I thought maybe instead of writing it for objective c and java i will use mono cross platform to my advance.</p>
<p>The only issue is that xamarin can generate apk and ipa.</p>
<p>Is it possible to make it generate static library for xcode developer... | I'm going to build a sdk target for android & ios developers. I thought maybe instead of writing it for objective c and java i will use mono cross platform to my advance. The only issue is that xamarin can generate apk and ipa. Is it possible to make it generate static library for xcode developers and jar file and andr... | android|ios|mono|xamarin.ios|xamarin | 0 | 2015-02-23T14:40:50.300Z | 2,015 | 2 | 14 | 0 | 127 | 2 | 348 | 54 | 5 | 0 | false | false | false | false | false | false | zero |
28,676,326 | Android gapless audio looping for files > 1mb | <p>I have lately been messing around with the Android audio api and it's starting to annoy me a lot. It basically tried to loop audio files.</p>
<p>I tried many approaches, went through all the possibilities (<code>SoundPool, MediaPlayer, AudioTrack</code>), but none of them could guarantee me a click-free looping (It... | I have lately been messing around with the Android audio api and it's starting to annoy me a lot. It basically tried to loop audio files. I tried many approaches, went through all the possibilities ( SoundPool, MediaPlayer, AudioTrack ), but none of them could guarantee me a click-free looping (It was sometimes good wi... | java|android|loops|audio|android-ndk | 1 | 2015-02-23T14:44:33.483Z | 2,015 | 2 | 14 | 0 | 199 | 0 | 777 | 45 | 5 | 0 | false | true | false | false | false | false | low |
28,676,330 | Inserting view to another view OnClick in Android | <p>I'm trying to make a main screen with a bunch of tiles (think Windows 8), and when clicked, a sub-menu will slide out underneath the clicked tile (Think iOS folders).</p>
<p>I know there's property animation that I can use for the slide-out effect, but I'm not sure how to actually insert the new view. It'll be an X... | I'm trying to make a main screen with a bunch of tiles (think Windows 8), and when clicked, a sub-menu will slide out underneath the clicked tile (Think iOS folders). I know there's property animation that I can use for the slide-out effect, but I'm not sure how to actually insert the new view. It'll be an XML-based Li... | java|android | -3 | 2015-02-23T14:44:40.680Z | 2,015 | 2 | 14 | 0 | 62 | 1 | 422 | 49 | 2 | 1 | true | false | false | false | false | true | negative |
28,676,393 | Several EditTexts focused in Listview once is clicked | <p>I have listview that holds a textview and editText as row entries. Once the list has been built a user can click on a specific editText and provide a value and scroll to another and do the same. This is being achieved as desired with no repeating of data in editText entries. However when I click on an edittext I fin... | I have listview that holds a textview and editText as row entries. Once the list has been built a user can click on a specific editText and provide a value and scroll to another and do the same. This is being achieved as desired with no repeating of data in editText entries. However when I click on an edittext I find o... | android|android-listview | 0 | 2015-02-23T14:48:24.053Z | 2,015 | 2 | 14 | 0 | 38 | 0 | 486 | 53 | 2 | 1 | true | true | false | false | false | false | zero |
28,676,427 | while populating the Listview i am getting duplicates value in listview in android | <p>I have custom Listview.in which data is populates from array ,but
I am getting duplicates value in listview while populating listview .please help ...</p>
<p>the below is my code</p>
<p>this is my Adapter class </p>
<pre><code> public class CustomUsersAdapter extends ArrayAdapter<User>
{
p... | I have custom Listview.in which data is populates from array ,but I am getting duplicates value in listview while populating listview .please help ... the below is my code this is my Adapter class [CODE] this my User.java [CODE] this is my MainActivity [CODE] | android|listview|duplicates|android-arrayadapter | 2 | 2015-02-23T14:50:59.443Z | 2,015 | 2 | 14 | 0 | 708 | 2 | 259 | 82 | 4 | 3 | true | false | false | false | false | false | low |
28,676,442 | How to change the picture ImageView continuously? | <p>I have a ImageView inside the app .
I have 2 photos of the file drawable.
I want to photo ImagView
Changeing every second.
Namely :
After a second</p>
<pre><code> imagview.setImageDrawable(getResources().getDrawable(R.drawable.photo1));
</code></pre>
<p>After seconds</p>
<pre><code> imagview.setImageDrawable... | I have a ImageView inside the app . I have 2 photos of the file drawable. I want to photo ImagView Changeing every second. Namely : After a second [CODE] After seconds [CODE] And this process will continue until the end How I do it ? | android|android-imageview | 3 | 2015-02-23T14:51:33.713Z | 2,015 | 2 | 14 | 0 | 1,723 | 1 | 233 | 49 | 2 | 2 | true | false | false | false | false | false | low |
28,676,446 | .click doesnt work on touch devices although it works on browser | <p>.click doesnt work on touch devices although it works on browser!</p>
<p>I am using a .click function that works fine on browsers, but when i try it on touchscreen devices, it won't work (the function isn't even called). The function should be called when i choose an select option. Is it possible that the problem i... | .click doesnt work on touch devices although it works on browser! I am using a .click function that works fine on browsers, but when i try it on touchscreen devices, it won't work (the function isn't even called). The function should be called when i choose an select option. Is it possible that the problem is that the ... | javascript|android|jquery|html|ios | 0 | 2015-02-23T14:51:42.380Z | 2,015 | 2 | 14 | 0 | 113 | 0 | 530 | 64 | 5 | 4 | true | true | false | false | false | false | zero |
28,676,453 | listview onclick listerner gives wrong row item | <p>I have an issue with the flow of my app.</p>
<p>I have one ListView in one of our fragments.
We have created one custom adapter to populate the data from a webservice with JSON. (which extends BaseAdapter)</p>
<p>It has other components like EditText and buttons when I set OnClick.</p>
<p>We have created OnClickL... | I have an issue with the flow of my app. I have one ListView in one of our fragments. We have created one custom adapter to populate the data from a webservice with JSON. (which extends BaseAdapter) It has other components like EditText and buttons when I set OnClick. We have created OnClickListerner() which works corr... | android|listview | 1 | 2015-02-23T14:51:56.747Z | 2,015 | 2 | 14 | 0 | 829 | 2 | 1,002 | 47 | 2 | 1 | true | false | false | false | false | false | low |
28,676,491 | How to dynamically set number of swipeable tabs in Action Bar with Fragments at runtime | <p>I am referring this <a href="http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/" rel="nofollow">link for swipeable tabs using fragments</a>. It worked for me, but what if I need to add the number of tabs dynamically and not pre assign the number of tabs? For instance, some of my logic giv... | I am referring this link for swipeable tabs using fragments . It worked for me, but what if I need to add the number of tabs dynamically and not pre assign the number of tabs? For instance, some of my logic gives me output at times 2 strings in anarray and at times 4 strings in an array. And according to the logic I ne... | android|android-fragments|android-actionbar|android-viewpager|android-tabs | 2 | 2015-02-23T14:53:22.717Z | 2,015 | 2 | 14 | 0 | 1,749 | 2 | 445 | 87 | 5 | 0 | false | false | false | false | false | false | low |
28,676,521 | Selector, in listview (swipe-listview) row, stays in state pressed after re-instanciating the adapter | <p>I have a listview and the row's layout has a child with the background set to the following selector :</p>
<pre><code><selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true">
<shape android:shape="rectangle">
<solid android:color="@co... | I have a listview and the row's layout has a child with the background set to the following selector : [CODE] And now this scenario happens: I instantiate the adapter and set it to the listview, with an underlying list, let's say model A (inside a ListFragment) I press on the first row (happens for other row also), and... | android|android-listview|android-selector | 2 | 2015-02-23T14:54:50.063Z | 2,015 | 2 | 14 | 0 | 861 | 3 | 1,239 | 101 | 3 | 4 | true | false | false | false | false | false | low |
28,676,611 | How to get actual path of file from sdcard with file name? | <p>I have a file in sdcard "firmware.PTI". And i am browsing this file from my app. Below is the code i am using.</p>
<pre><code> @Override
public void onClick(View v) {
int id = v.getId();
switch (id) {
case R.id.btn_browse_pti_file:
Intent mediaIntent = ... | I have a file in sdcard "firmware.PTI". And i am browsing this file from my app. Below is the code i am using. [CODE] If i am selecting any other file like JPEG or PNG, it is working fine and showing the correct path with file name. But, if i am selecting any .PTI file then it is getting crashed. How can i resolve this... | java|android | 0 | 2015-02-23T14:59:07.387Z | 2,015 | 2 | 14 | 0 | 59 | 1 | 329 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
28,676,621 | How to avoid pressing same listview item twice in SlidingDrawer? | <p>I have a <code>Sliding Drawer</code> in my app and have fragments like <code>HomeFragment</code>,<code>FriendFragment</code> etc.Now the <code>HomeFragment</code> has a <code>map</code>.So when i am in <code>HomeFragment</code> i.e it is pressed and then if i click on the same button again it crashes.I had below cod... | I have a Sliding Drawer in my app and have fragments like HomeFragment , FriendFragment etc.Now the HomeFragment has a map .So when i am in HomeFragment i.e it is pressed and then if i click on the same button again it crashes.I had below code in my onCreateView() [CODE] The errors in logcat is: [CODE] So i have a chec... | android|android-fragments|slidingdrawer | 0 | 2015-02-23T14:59:26.620Z | 2,015 | 2 | 14 | 0 | 403 | 1 | 952 | 64 | 3 | 7 | true | false | false | false | false | false | zero |
28,676,622 | How do I set an Intent extra persistent | <p>I have an Activity, that has been started with an Intent, containing some intent extra data. After reading this data, I want to put other data in the extra bundle and I want also to ensure that it will be saved persistent (i.e. for the next time my activity is recreated).</p>
<p>Right now I do something like this:<... | I have an Activity, that has been started with an Intent, containing some intent extra data. After reading this data, I want to put other data in the extra bundle and I want also to ensure that it will be saved persistent (i.e. for the next time my activity is recreated). Right now I do something like this: [CODE] This... | android|android-intent | 0 | 2015-02-23T14:59:28.650Z | 2,015 | 2 | 14 | 0 | 763 | 2 | 1,204 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
28,676,661 | Firebase transaction doesn't abort remotely if previously committed locally | <p>I'm building an Android app in which several users can access, modify and delete the same item and I'm using Firebase to sync all the devices.
In order to keep track of the updates the item has a timestamp.
I wrote a transaction so that when I try to delete the item it checks if the timestamp of my copy is older tha... | I'm building an Android app in which several users can access, modify and delete the same item and I'm using Firebase to sync all the devices. In order to keep track of the updates the item has a timestamp. I wrote a transaction so that when I try to delete the item it checks if the timestamp of my copy is older than t... | android|transactions|firebase|firebase-realtime-database | 4 | 2015-02-23T15:00:40.203Z | 2,015 | 2 | 15 | 0 | 791 | 2 | 1,104 | 75 | 4 | 1 | true | false | false | false | false | false | low |
28,676,706 | Android send file more then 1 MB via Intent to mail application | <p>I'm getting "Failed Binder Transaction Error" when I want to grab the text from TextView and put it like text in Intent
For small text it works, I'm getting text correctly and after I have it in my mail application. </p>
<p>Is there any way to put text whatever size it has from my TextView into Mail application?
... | I'm getting "Failed Binder Transaction Error" when I want to grab the text from TextView and put it like text in Intent For small text it works, I'm getting text correctly and after I have it in my mail application. Is there any way to put text whatever size it has from my TextView into Mail application? When and how w... | android|performance|email|android-intent|android-activity | 0 | 2015-02-23T15:02:29.717Z | 2,015 | 2 | 15 | 0 | 289 | 2 | 522 | 63 | 5 | 1 | true | false | false | false | false | false | zero |
28,676,751 | What are the implications of choosing a Navigation Drawer in Android? | <p>As far as I have seen when using a <code>Navigation Drawer (android.support.v4.widget.DrawerLayout)</code>, you have to use Fragments.</p>
<p>So All activities have to be transformed into fragments.</p>
<p>Furthermore all logic will now reside in the Activity of the <code>Navigation Drawer</code> so the size of th... | As far as I have seen when using a Navigation Drawer (android.support.v4.widget.DrawerLayout) , you have to use Fragments. So All activities have to be transformed into fragments. Furthermore all logic will now reside in the Activity of the Navigation Drawer so the size of the Activities file could be really large and ... | android|android-fragments|navigation-drawer | 1 | 2015-02-23T15:04:43.220Z | 2,015 | 2 | 15 | 0 | 79 | 4 | 434 | 69 | 3 | 0 | false | false | false | false | false | false | low |
28,676,820 | Checkbox not rendering properly | <p>I am having two checkboxes in my layout as follows</p>
<pre><code><LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:gravity="center"
android:orientation="horizontal"
android:padding="5dp" ... | I am having two checkboxes in my layout as follows [CODE] All devices render this properly: But in Samsung S2 with android 2.3 is displaying it like: Any ideas why can this be happening? The checkbox is supported by all android versions. EDIT: Here is the toggle_button.xml Here are the images inside button: | android|checkbox | 2 | 2015-02-23T15:08:13.647Z | 2,015 | 2 | 15 | 0 | 358 | 0 | 308 | 31 | 2 | 1 | true | true | false | false | false | false | low |
28,676,843 | Adding an input value onto an existing value in a different activity | <p>I'm looking to create a running total on my MainActivity.java, this will be done through adding integers calculated in ActivityAdd.java then sending them across onClick save to a TextView in the MainActivity.java. </p>
<p>It's currently not opening the app due to the stack flow error stating invalid int "". Any adv... | I'm looking to create a running total on my MainActivity.java, this will be done through adding integers calculated in ActivityAdd.java then sending them across onClick save to a TextView in the MainActivity.java. It's currently not opening the app due to the stack flow error stating invalid int "". Any advise on this?... | java|android|if-statement | 0 | 2015-02-23T15:09:22.810Z | 2,015 | 2 | 15 | 0 | 352 | 3 | 392 | 68 | 3 | 3 | true | false | false | false | false | false | zero |
28,676,880 | How do I remove delete button in listview for delphi firemonkey android platform? | <p>i am seeing delete button via multi touch tap on listview items in my application.</p>
<p>there is deletebuttontext property but there isn't delete button visible false option property for listview.</p>
<p>i don't want use this option in listview.</p>
<p>How do I remove delete button in listview for delphi firemo... | i am seeing delete button via multi touch tap on listview items in my application. there is deletebuttontext property but there isn't delete button visible false option property for listview. i don't want use this option in listview. How do I remove delete button in listview for delphi firemonkey android platform? Also... | android|delphi|listview|firemonkey|delphi-xe6 | 1 | 2015-02-23T15:10:50.177Z | 2,015 | 2 | 15 | 0 | 3,196 | 1 | 399 | 81 | 5 | 0 | false | false | true | false | false | false | low |
28,676,923 | How to move users from third-party app to play store listed app? | <p>I am planning to roll out the APK to a closed set of users (basically friends and family) to let them play around with the app and suggest improvements/changes etc. </p>
<p>Once done with debugging, I would like to list the app on Play Store, so that these closed set of users who already have the app installed can ... | I am planning to roll out the APK to a closed set of users (basically friends and family) to let them play around with the app and suggest improvements/changes etc. Once done with debugging, I would like to list the app on Play Store, so that these closed set of users who already have the app installed can just update ... | android|google-play|apk | 0 | 2015-02-23T15:13:30.230Z | 2,015 | 2 | 15 | 0 | 40 | 1 | 727 | 64 | 3 | 0 | false | false | false | false | false | false | zero |
28,676,945 | Building Sencha Touch app with Cordova - [You may not have the required environment or OS to build this project] error | <p>I am trying to build a sencha touch 2.4 application for Android using the sencha cmd "sencha app build native" and I am getting an error that I can't solve.</p>
<p>"You may not have the required environment or OS to build this project"</p>
<p>I am working on Win7, using sencha touch 2.4 and sencha cmd v5.1. I down... | I am trying to build a sencha touch 2.4 application for Android using the sencha cmd "sencha app build native" and I am getting an error that I can't solve. "You may not have the required environment or OS to build this project" I am working on Win7, using sencha touch 2.4 and sencha cmd v5.1. I downloaded the Android ... | android|cordova|sencha-touch-2|sencha-cmd | 0 | 2015-02-23T15:14:31.290Z | 2,015 | 2 | 15 | 0 | 1,059 | 1 | 455 | 118 | 4 | 1 | true | false | false | false | false | false | zero |
28,676,947 | Android 2 sqlite database tables in the same listview adapter | <p>I have made an android SQLite database with two tables, each of them are performing in separate activities. And I'm trying to put them in the same listview. </p>
<p>This is my activity where the listview is. </p>
<pre><code>public class MainActivity extends ActionBarActivity {
ListView lv;
SQLController d... | I have made an android SQLite database with two tables, each of them are performing in separate activities. And I'm trying to put them in the same listview. This is my activity where the listview is. [CODE] The problem is that it shows just the expenses. I think the problem is from the adapter, but I don't know how to ... | android|sqlite|listview|android-listview | 0 | 2015-02-23T15:14:36.617Z | 2,015 | 2 | 15 | 0 | 361 | 1 | 364 | 61 | 4 | 1 | true | false | false | false | false | false | zero |
28,677,090 | Android - Real time location sharing | <p>I want to develop a app, through which we can share our real time location with another users who are using same app. I have designed the GUI in which I have showed the friend list and share button in front of each friend. When we click on share button then our location will be shared with that friend's device. Does... | I want to develop a app, through which we can share our real time location with another users who are using same app. I have designed the GUI in which I have showed the friend list and share button in front of each friend. When we click on share button then our location will be shared with that friend's device. Does th... | java|android|mysql|google-maps-android-api-2|google-cloud-messaging | 0 | 2015-02-23T15:21:37.400Z | 2,015 | 2 | 15 | 0 | 2,654 | 1 | 450 | 36 | 5 | 0 | false | false | true | false | false | false | zero |
28,677,233 | Transfer a PCM file from a server to an app via node.js | <p>I need to transfer a PCM file from a server to my Android app.
I need to know:</p>
<p>a. How to transfer the file from the server side with node.js?</p>
<p>b. How to read the file from my Android app?</p>
<p>This is what I currently did, and when I try to play the file from the app, it's only a partial part of th... | I need to transfer a PCM file from a server to my Android app. I need to know: a. How to transfer the file from the server side with node.js? b. How to read the file from my Android app? This is what I currently did, and when I try to play the file from the app, it's only a partial part of the file: On the server side ... | android|node.js|pcm | 1 | 2015-02-23T15:29:10.600Z | 2,015 | 2 | 15 | 0 | 161 | 0 | 439 | 55 | 3 | 2 | true | true | false | false | false | false | low |
28,677,243 | Ambiguous column name, yet use "." to specify table | <p>When the following query is sent to my database:</p>
<pre><code>SELECT statemachines.statemachinename,
states.statename,
actionhandlers.actionhandler,
actions.value, actions.sourcename
FROM actions, actionhandlers, states, statemachines
INNER JOIN rules ON (actions.rule_id AND rules.rule_id)
INNER JOIN action... | When the following query is sent to my database: [CODE] The following error is returned: [CODE] I have no clue what to do, all my other queries work. | android|sql|sqlite|inner-join | 0 | 2015-02-23T15:29:37.303Z | 2,015 | 2 | 15 | 0 | 327 | 2 | 149 | 51 | 4 | 2 | true | false | false | false | false | false | zero |
28,677,292 | Android indoor directions with Google api | <p>I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to walking.</p>
<p>Is there currently any way to d... | I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to walking. Is there currently any way to do this? | android|maps|directions | 1 | 2015-02-23T15:31:35.597Z | 2,015 | 2 | 15 | 0 | 1,185 | 2 | 316 | 41 | 3 | 0 | false | false | false | false | false | false | low |
28,677,438 | Issue inputting data in elements inside dynamic list | <p>In the Android app I'm developing I'm loading a list of several items for the user to input some data; there's a checkbox and an EditText for each item, and the user can check the checkbox and type some notes regarding the item. This list is loaded dynamically from a local database, which in turn is populated from a... | In the Android app I'm developing I'm loading a list of several items for the user to input some data; there's a checkbox and an EditText for each item, and the user can check the checkbox and type some notes regarding the item. This list is loaded dynamically from a local database, which in turn is populated from a re... | android|android-listview | 0 | 2015-02-23T15:38:40.780Z | 2,015 | 2 | 15 | 0 | 25 | 1 | 1,168 | 52 | 2 | 5 | true | false | false | false | false | false | zero |
28,677,506 | Image swapping after a number of seconds | <p>I want to swap the image currently in my imageview after 5 seconds but the methods I have tried aren't working. Any help would be greatly appreciated.</p>
<p>This is my imageview</p>
<pre><code> <ImageView
android:id="@+id/message_sent_indicator"
android:layout_width="20dp"
... | I want to swap the image currently in my imageview after 5 seconds but the methods I have tried aren't working. Any help would be greatly appreciated. This is my imageview [CODE] What would be the simplest way for me to change this. [CODE] Here is my onCreate method [CODE] | android | 0 | 2015-02-23T15:42:18.700Z | 2,015 | 2 | 15 | 0 | 64 | 2 | 273 | 40 | 1 | 3 | true | false | false | false | false | false | zero |
28,677,550 | How to programmatically get the radius value of the corners of a view? | <p>I need to fetch some layout values from a view: position on screen, width, height and the value that defines the corners of this view.</p>
<p>The first parameters are pretty trivial to get using <code>View.getWidth()</code>, <code>View.getHeight()</code> and <code>View.getLocationOnScreen</code>.</p>
<p>But what a... | I need to fetch some layout values from a view: position on screen, width, height and the value that defines the corners of this view. The first parameters are pretty trivial to get using View.getWidth() , View.getHeight() and View.getLocationOnScreen . But what about the corners radius? How can I retrieve this informa... | android|android-layout|android-view|rounded-corners | 0 | 2015-02-23T15:44:42.923Z | 2,015 | 2 | 15 | 0 | 350 | 0 | 337 | 70 | 4 | 0 | false | true | false | false | false | false | zero |
28,677,563 | Authenticate user logged in with FB at my server using the Android Account Manager | <p>I have a question about authentication using the Android Account Manager. We have a backend and an Android app and the user should log into our backend using his Facebook account. Currently we show a webview for this purpose which does normal oAuth 2 but using the Android Account Manager is more secure and much easi... | I have a question about authentication using the Android Account Manager. We have a backend and an Android app and the user should log into our backend using his Facebook account. Currently we show a webview for this purpose which does normal oAuth 2 but using the Android Account Manager is more secure and much easier ... | android|facebook|authentication|oauth|accountmanager | 10 | 2015-02-23T15:45:27.737Z | 2,015 | 2 | 15 | 0 | 849 | 1 | 1,642 | 82 | 5 | 0 | false | false | false | false | true | false | medium |
28,677,612 | Android PushNotifications with PushPlugin on emulator | <p>I've been following <a href="https://github.com/hollyschinsky/PushNotificationSample" rel="nofollow">this sample</a> to get android pushNotifications (with GCM) working on an android emulator.
After <code>$cordovaPush.register(config)</code> I get Ok as response. But it never runs my callback [<code>$scope.$on('$cor... | I've been following this sample to get android pushNotifications (with GCM) working on an android emulator. After $cordovaPush.register(config) I get Ok as response. But it never runs my callback [ $scope.$on('$cordovaPush:notificationReceived' ]. And in consequence I never get my registration ID. I've created a google... | android|push-notification|ionic-framework|phonegap-pushplugin|ngcordova | 2 | 2015-02-23T15:47:44.667Z | 2,015 | 2 | 15 | 0 | 2,905 | 4 | 838 | 53 | 5 | 1 | true | false | true | false | false | false | low |
28,677,631 | Get location header from M-SEARCH Response | <p>I am trying to implement the <a href="http://www.dial-multiscreen.org/dial-protocol-specification" rel="nofollow">DIAL protocol</a> in Android using java.</p>
<p>Following the protocol implementation, I have to do an M-SEARCH request. For this I use the following code:</p>
<pre><code>private final static String DI... | I am trying to implement the DIAL protocol in Android using java. Following the protocol implementation, I have to do an M-SEARCH request. For this I use the following code: [CODE] And the actual method: [CODE] The problem I run into now, is that according to the specification: An SSDP/UPnP server receiving an M-SEARC... | java|android | 0 | 2015-02-23T15:49:02.660Z | 2,015 | 2 | 15 | 0 | 720 | 1 | 877 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
28,677,678 | Where does UiDevice dumpWindowHierarchy create file? | <p>I've been trying to obtain the layout of a screen (the logical content, including the resource_ids of the views in a screen) using UIAutomator but with no luck (so if anyone has the answer to this without using dumpWindowHierarchy I'd also appreciate).</p>
<p>I try running device.dumpWindowHierarchy(filename) in se... | I've been trying to obtain the layout of a screen (the logical content, including the resource_ids of the views in a screen) using UIAutomator but with no luck (so if anyone has the answer to this without using dumpWindowHierarchy I'd also appreciate). I try running device.dumpWindowHierarchy(filename) in several ways ... | android|dump|android-uiautomator|ui-testing | 1 | 2015-02-23T15:51:24.203Z | 2,015 | 2 | 15 | 0 | 2,296 | 1 | 771 | 52 | 4 | 9 | true | false | false | false | false | false | low |
28,677,709 | Azure - Send Google Push Notifications without Azure Mobile Services | <p>As the title says, is it possible to send push notifications to Google Play Store without the help of Azure Mobile Services?</p>
<p>Currently, I have an Azure VM and I have built my own custom implementations for sending messages to Google Play Store for push notifications. But I'm having trouble in getting the pus... | As the title says, is it possible to send push notifications to Google Play Store without the help of Azure Mobile Services? Currently, I have an Azure VM and I have built my own custom implementations for sending messages to Google Play Store for push notifications. But I'm having trouble in getting the push notificat... | android|azure|asp.net-web-api|push-notification | 0 | 2015-02-23T15:52:42.400Z | 2,015 | 2 | 15 | 0 | 96 | 1 | 647 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
28,677,730 | android.view.InflateException: Binary XML file line #7: Error inflating class <unknown> | <p>I have found a lot of questions related to this, but not still able to over come mine. So I need help to solve it.</p>
<p>I have ViewPager with 2 Fragments and I tried to add ImageView to the second fragment but application crashed with this error. By the way when I just add TextView or Button without ImageView app... | I have found a lot of questions related to this, but not still able to over come mine. So I need help to solve it. I have ViewPager with 2 Fragments and I tried to add ImageView to the second fragment but application crashed with this error. By the way when I just add TextView or Button without ImageView application, V... | android|xml|android-layout|android-activity|android-fragments | 0 | 2015-02-23T15:53:37.980Z | 2,015 | 2 | 15 | 0 | 3,494 | 1 | 451 | 87 | 5 | 3 | true | false | true | false | false | false | zero |
28,677,760 | Android Studio 1.1.0 Render Error | <p>I cannot seem to get the UI to render in Android Studio.
I've never encountered this issue before.</p>
<p>I've tried switching API targets & I've reinstalled Android Studio.</p>
<pre><code>Render error
ActiveTool: com.intellij.designer.designSurface.tools.SelectionTool@49803f68
SDK: Android 5.0.1 - API 21
java... | I cannot seem to get the UI to render in Android Studio. I've never encountered this issue before. I've tried switching API targets & I've reinstalled Android Studio. [CODE] | android-studio | 1 | 2015-02-23T15:55:03.280Z | 2,015 | 2 | 15 | 0 | 267 | 1 | 173 | 33 | 1 | 1 | true | false | false | false | false | false | low |
28,677,797 | Ebay API Filter not working | <p>I'm trying to get all the products listed by two companies by using the eBay api on my android phone. I do this by using the item filter but when I run this it will return product from all companies not from just from the companies I have stated. Why is this? Below is the http I send (MyAppIid is my actually Id and ... | I'm trying to get all the products listed by two companies by using the eBay api on my android phone. I do this by using the item filter but when I run this it will return product from all companies not from just from the companies I have stated. Why is this? Below is the http I send (MyAppIid is my actually Id and Sel... | android|web-services|ebay-api | 1 | 2015-02-23T15:56:32.030Z | 2,015 | 2 | 15 | 0 | 177 | 1 | 631 | 27 | 3 | 0 | false | false | false | false | false | false | low |
28,677,893 | Getting install referrer when installing from FB requests | <p>We are using the Facebook SDK for Unity (v6.2) for our game.
Our game is available on both Android, iOS and now Canvas.</p>
<p>We're sending different types of requests in the game to the player's FB friends. The behaviour (on mobile) is that if the game is not installed, the receiving user will be redirected to th... | We are using the Facebook SDK for Unity (v6.2) for our game. Our game is available on both Android, iOS and now Canvas. We're sending different types of requests in the game to the player's FB friends. The behaviour (on mobile) is that if the game is not installed, the receiving user will be redirected to the store and... | android|facebook|facebook-unity-sdk | 2 | 2015-02-23T16:01:27.973Z | 2,015 | 2 | 16 | 0 | 368 | 0 | 794 | 57 | 3 | 0 | false | true | false | false | false | false | low |
28,677,895 | How to build and sign an apk file? | <p>I want create an APK file and sign it using PHP. I read many posts here for this and all of them suggested to install SDK on server and use <code>exec</code> or <code>shell_exec</code> to build the project.</p>
<p>Well, that's pretty easy but how can I sign it using PHP? I use the <code>keytool</code> `command for ... | I want create an APK file and sign it using PHP. I read many posts here for this and all of them suggested to install SDK on server and use exec or shell_exec to build the project. Well, that's pretty easy but how can I sign it using PHP? I use the keytool `command for signing APK, but while signing it asks me for many... | php|android|bash|shell|sdk | 0 | 2015-02-23T16:01:32.977Z | 2,015 | 2 | 16 | 0 | 1,064 | 0 | 537 | 34 | 5 | 1 | true | true | false | false | false | false | zero |
28,677,991 | What stops me from using dependencies of dependencies in an Android app? | <p>I have a project that uses <a href="http://square.github.io/okhttp/" rel="nofollow">OkHttp</a>. OkHttp has <a href="https://github.com/square/okhttp/blob/e961166c4b11031b0b1fcb929e726170444e58fb/pom.xml#L47" rel="nofollow">as one of its dependencies</a> the <a href="https://github.com/google/guava" rel="nofollow">Gu... | I have a project that uses OkHttp . OkHttp has as one of its dependencies the Guava library. I want to use the Guava library in my app. When I include OkHttp in my build.gradle , Android Studio finds classes included in Guava and auto-imports them when I try to use them. My code compiles fine: [CODE] At runtime, the ap... | java|android|gradle | 2 | 2015-02-23T16:06:44.100Z | 2,015 | 2 | 16 | 0 | 132 | 0 | 919 | 72 | 3 | 3 | true | true | false | false | false | false | low |
28,678,111 | App that makes another app unavaible after x clicks for x period of time | <p>I want to make an app that can Hide, lock or some kind of block any other app.
Lets say you've download an App (A) that registres how many times you have clicked on another App (B).In App (A) you can set a limit on how many times you can click/use app (B), before it's blocked. When you have clicked x times on App (B... | I want to make an app that can Hide, lock or some kind of block any other app. Lets say you've download an App (A) that registres how many times you have clicked on another App (B).In App (A) you can set a limit on how many times you can click/use app (B), before it's blocked. When you have clicked x times on App (B), ... | android|iphone | 0 | 2015-02-23T16:13:37.573Z | 2,015 | 2 | 16 | 0 | 29 | 0 | 433 | 72 | 2 | 0 | false | true | false | false | false | false | zero |
28,678,151 | Android: Navigation-Drawer on all activities | <p>I want to add navigation drawer on all actvities of my Android project. This is the code of the MainActivity: </p>
<pre><code>public class MainActivity extends Activity {
private String[] drawerListViewItems;
private DrawerLayout drawerLayout;
private ListView drawerListView;
priva... | I want to add navigation drawer on all actvities of my Android project. This is the code of the MainActivity: [CODE] In this code I create the navigation drawer, I want the navigation drawer on all activities, so my Second Activity's code is this: [CODE] The navigation drawer is on the first activity but there isn't on... | java|android|android-activity|navigation-drawer | 5 | 2015-02-23T16:15:42.467Z | 2,015 | 2 | 16 | 0 | 24,509 | 3 | 364 | 44 | 4 | 2 | true | false | true | true | false | false | low |
28,678,167 | Android Navigation Drawer sometimes doesn't appear, but screen dims | <p>My navigation drawer sometimes does not appear, the toggle button turns into an arrow pointing left and the screen dims, but the fragments and layout don't appear.</p>
<p>I can't reliably replicate this issue and it happens rarely, randomly, and didn't see anything in my searches about it. So maybe this is a known ... | My navigation drawer sometimes does not appear, the toggle button turns into an arrow pointing left and the screen dims, but the fragments and layout don't appear. I can't reliably replicate this issue and it happens rarely, randomly, and didn't see anything in my searches about it. So maybe this is a known issue or ma... | android|navigation-drawer | 0 | 2015-02-23T16:16:14.917Z | 2,015 | 2 | 16 | 0 | 95 | 0 | 357 | 67 | 2 | 0 | false | true | false | false | false | false | zero |
28,678,213 | How to send email using terminal emulator android application | <p>I want to send email from terminal android application. Is there any command for this or any email functions?</p> | I want to send email from terminal android application. Is there any command for this or any email functions? | android|terminal|android-emulator|shellcode | 0 | 2015-02-23T16:18:16.653Z | 2,015 | 2 | 16 | 0 | 1,858 | 1 | 109 | 61 | 4 | 0 | false | false | false | false | false | false | zero |
28,678,253 | Send xml data from Android to PHP via post | <p>I'm trying to sync my new messages from the client to the php server. I want to send every message in a chat application as a xml element, with text, time and other attributes.
So I create an arraylist and then add it to my namevaluepairs to post. The android service looks like that :</p>
<pre><code>String s = "&l... | I'm trying to sync my new messages from the client to the php server. I want to send every message in a chat application as a xml element, with text, time and other attributes. So I create an arraylist and then add it to my namevaluepairs to post. The android service looks like that : [CODE] I'm keeping it very simple.... | php|android|xml | 0 | 2015-02-23T16:19:56.493Z | 2,015 | 2 | 16 | 0 | 130 | 0 | 627 | 42 | 3 | 3 | true | true | false | false | false | false | zero |
28,678,290 | Android SQLite Using two spinners as view filters | <p>MAIN QUESTION: </p>
<p>Wondering if there's any conflict with the two spinners when I try display the results with my LoadGrid. Like if one is overriding the other and ending up with an empty result because of it. If so how do I go about combining the two results from the spinners to get the desired view.</p>
<p>S... | MAIN QUESTION: Wondering if there's any conflict with the two spinners when I try display the results with my LoadGrid. Like if one is overriding the other and ending up with an empty result because of it. If so how do I go about combining the two results from the spinners to get the desired view. SOME DETAILS: I want ... | android|sqlite|gridview|filtering|android-spinner | 0 | 2015-02-23T16:21:42.903Z | 2,015 | 2 | 16 | 0 | 442 | 1 | 1,184 | 49 | 5 | 4 | true | false | false | false | false | false | zero |
28,678,330 | err cache miss when trying to view a website using web viewer | <p>i am trying to make an application whereby when an user opens the application, they will be directed to a mobile anime website and i encountered this problem. Help !</p>
<p><strong>For Main Activity</strong></p>
<pre><code>package com.example.ahliang125.kissanime;
import android.support.v7.app.ActionBarActivity;
i... | i am trying to make an application whereby when an user opens the application, they will be directed to a mobile anime website and i encountered this problem. Help ! For Main Activity [CODE] For Activity Main [CODE] For Android Manifest [CODE] | android|webview | 0 | 2015-02-23T16:23:33.903Z | 2,015 | 2 | 16 | 0 | 601 | 1 | 243 | 61 | 2 | 3 | true | false | false | false | false | false | zero |
28,678,389 | Android SQL: How to check existing users? | <p>I am making an android app, and atm I do not know if my database was created I have checked my Logcat and I dont see any indication if my registeration has been added but it displays the toast of "Successfully registered" </p>
<p>I checked DDMS File explorer, it does not display database but Ive read some may not s... | I am making an android app, and atm I do not know if my database was created I have checked my Logcat and I dont see any indication if my registeration has been added but it displays the toast of "Successfully registered" I checked DDMS File explorer, it does not display database but Ive read some may not show it but a... | java|android|sql | 0 | 2015-02-23T16:26:24.927Z | 2,015 | 2 | 16 | 0 | 1,000 | 3 | 395 | 41 | 3 | 0 | false | false | false | false | false | false | zero |
28,678,419 | How to make a video to auto play when visible in android | <p>I have multiple videos in a screen I am trying to auto play a video when visible .That is,all videos should be in pause state by default.It should play automatically only when I watch the video.If I scroll down the screen,next video should play automatically and all other videos should be in pause mode.</p>
<p>I ha... | I have multiple videos in a screen I am trying to auto play a video when visible .That is,all videos should be in pause state by default.It should play automatically only when I watch the video.If I scroll down the screen,next video should play automatically and all other videos should be in pause mode. I have googled ... | java|android|android-video-player | 0 | 2015-02-23T16:27:35.183Z | 2,015 | 2 | 16 | 0 | 858 | 0 | 529 | 56 | 3 | 0 | false | true | false | false | false | false | zero |
28,678,421 | how to change drop-down navigation text typeface and color? | <p>After a lot of search and no answer(or a simple answer),
I have a activity that have a action bar spinner on it(created by android studio simple wizard). there is a code snippet:</p>
<pre><code>actionBar.setListNavigationCallbacks(
new ArrayAdapter<String>(
actionBar.getThemed... | After a lot of search and no answer(or a simple answer), I have a activity that have a action bar spinner on it(created by android studio simple wizard). there is a code snippet: [CODE] considering that list items is string based how can I change typeface and textcolor? works I have done: 1-changed Arrayadapter and new... | android|android-actionbar | 0 | 2015-02-23T16:27:43.937Z | 2,015 | 2 | 16 | 0 | 167 | 1 | 501 | 59 | 2 | 1 | true | false | false | false | false | false | zero |
28,678,502 | Launching app from HomeScreen (shortcut) and from App drawer, is not the same | <p>I've encountered a weird behaviour. Maybe someone could clarify it.
When I download my app from GooglePlay, there are 2 icons that are added. One goes to the Home Screen as a shortcut and another goes to the App Drawer (the screen with all the different installed apps I got on my device).</p>
<p>Now here is the flo... | I've encountered a weird behaviour. Maybe someone could clarify it. When I download my app from GooglePlay, there are 2 icons that are added. One goes to the Home Screen as a shortcut and another goes to the App Drawer (the screen with all the different installed apps I got on my device). Now here is the flow of events... | android | 0 | 2015-02-23T16:31:11.300Z | 2,015 | 2 | 16 | 0 | 1,456 | 1 | 1,485 | 77 | 1 | 1 | true | false | false | false | false | false | zero |
28,678,532 | Connecting to external webservice fail to response on Android | <p>I'm trying to connect to a external webservice from an Android app, but currently it crashes on the XML response, please help me notice if the call structure is built incorrectly or any the response code is crashed. Here is my code:</p>
<pre><code>public class sri extends AsyncTask<String, String, String>
{
p... | I'm trying to connect to a external webservice from an Android app, but currently it crashes on the XML response, please help me notice if the call structure is built incorrectly or any the response code is crashed. Here is my code: [CODE] | android|web-services|thread-synchronization | 0 | 2015-02-23T16:32:47.380Z | 2,015 | 2 | 16 | 0 | 77 | 1 | 239 | 61 | 3 | 1 | true | false | false | false | false | false | zero |
28,678,555 | Layout Alignment Issue in android 5.0 | <p>I have a layout in which a button is aligned at the bottom of the RelativeLayout as in below code :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="250dp"
android:ba... | I have a layout in which a button is aligned at the bottom of the RelativeLayout as in below code : [CODE] I can see the button at the bottom of the layout as shown in the screenshot .It displays like this in pre Lollipop devices(below < 5.0 devices) : But in Lollipop the button at the bottom does not appear as shown i... | android|android-5.0-lollipop|android-relativelayout | 2 | 2015-02-23T16:34:08.947Z | 2,015 | 2 | 16 | 0 | 1,155 | 2 | 426 | 37 | 3 | 1 | true | false | false | false | false | false | low |
28,678,577 | Corona functions and variables | <p>im new to corona and im trying to pull data from mysql database and use that data in the app.</p>
<p>the data fetches correctly but i can access it outside the function.</p>
<p>The function to get the data:</p>
<pre><code>function loginCallback(event)
if ( event.isError ) then
print( "Network error!")
else
... | im new to corona and im trying to pull data from mysql database and use that data in the app. the data fetches correctly but i can access it outside the function. The function to get the data: [CODE] and then i want to access it here: [CODE] Thanks in advance. | android|ios|mysql|lua|coronasdk | 0 | 2015-02-23T16:35:25.523Z | 2,015 | 2 | 16 | 0 | 76 | 1 | 260 | 30 | 5 | 2 | true | false | false | false | false | false | zero |
28,678,592 | Android Studio Settings Activity doesn't work | <p>As far as I can understand from the documentation the settings activity which comes as a template with Android Studio should work. However, it doesn't seem to launch anything on my phone.</p>
<p>I understand that it's meant to work for both tablets and phones.
I'm running Android 5.0 and I have successfully used it... | As far as I can understand from the documentation the settings activity which comes as a template with Android Studio should work. However, it doesn't seem to launch anything on my phone. I understand that it's meant to work for both tablets and phones. I'm running Android 5.0 and I have successfully used it as a test ... | android|xml|user-interface | 0 | 2015-02-23T16:36:17.740Z | 2,015 | 2 | 16 | 0 | 524 | 1 | 884 | 45 | 3 | 0 | false | false | false | false | false | false | zero |
28,678,665 | How can I use AccessibilityService.getWindows() to obtain a traversable AccessibilityNodeInfo? | <p>I am writing an <code>AccessibilityService</code> for Android and, up to API level 20, I have been using the <code>AccessibilityEvent.getSource()</code> method to obtain a traversable <code>AccessibilityNodeInfo</code> when <code>onAccessibilityEvent(AccessibilityEvent event)</code> is triggered. Although the result... | I am writing an AccessibilityService for Android and, up to API level 20, I have been using the AccessibilityEvent.getSource() method to obtain a traversable AccessibilityNodeInfo when onAccessibilityEvent(AccessibilityEvent event) is triggered. Although the resulting AccessibilityNodeInfo does not always reflect the c... | java|android|accessibility|android-5.0-lollipop|accessibilityservice | 6 | 2015-02-23T16:39:56.363Z | 2,015 | 2 | 16 | 0 | 7,632 | 2 | 1,855 | 94 | 5 | 3 | true | false | true | false | false | false | medium |
28,678,678 | Communicate from background thread to main via Greenrobot Eventbus | <p>In my app I use SyncAdapter(AbstractThreadedSyncAdapter) for synchronisation with server. Basically in background service I insert data to sql table, then on finish I want to inform UI to update ListView with new data. For this matter I tried to use GreenRobot EventBus, but no success.</p>
<p>my Event</p>
<pre><c... | In my app I use SyncAdapter(AbstractThreadedSyncAdapter) for synchronisation with server. Basically in background service I insert data to sql table, then on finish I want to inform UI to update ListView with new data. For this matter I tried to use GreenRobot EventBus, but no success. my Event [CODE] After insert data... | android|android-syncadapter|greenrobot-eventbus | 0 | 2015-02-23T16:40:24.577Z | 2,015 | 2 | 16 | 0 | 251 | 1 | 446 | 66 | 3 | 3 | true | false | false | false | false | false | zero |
28,678,686 | Opencv in android studio does not work? | <p>I'm trying to add native code to my Android app. NDK worked fine with simple C++ code like "Hello from C++", but I need to use openCV, and I am stuck.</p>
<p>Project build output:</p>
<pre><code>:app:generateArmDebugSources UP-TO-DATE
:app:compileArmDebugJava UP-TO-DATE
:app:compileArmDebugNdk
D:/android-ndk-r10c/... | I'm trying to add native code to my Android app. NDK worked fine with simple C++ code like "Hello from C++", but I need to use openCV, and I am stuck. Project build output: [CODE] I noticed a similar question https://stackoverflow.com/a/22427267/4595220 but I still haven't found a solution. What I am doing wrong? build... | java|android|opencv|android-ndk|java-native-interface | 2 | 2015-02-23T16:40:49.980Z | 2,015 | 2 | 16 | 0 | 1,512 | 3 | 499 | 39 | 5 | 4 | true | false | false | false | false | false | low |
28,678,692 | Best way to build native app for mobile (iOS, Android, ...) using already AngularJS app | <p>I built an AngularJS application using few plugins such as angular ui-router, angular-translate... and bootstrap 3.</p>
<p>It works for web browser of desktop/laptop. Smartphone with built-in web browser works fine too but I think it's not good enough (battery issue...). So now I need to build native app for mobile... | I built an AngularJS application using few plugins such as angular ui-router, angular-translate... and bootstrap 3. It works for web browser of desktop/laptop. Smartphone with built-in web browser works fine too but I think it's not good enough (battery issue...). So now I need to build native app for mobile OS such as... | javascript|android|ios|angularjs|twitter-bootstrap | 0 | 2015-02-23T16:41:14.037Z | 2,015 | 2 | 16 | 0 | 419 | 2 | 594 | 87 | 5 | 0 | false | false | false | false | false | false | zero |
28,678,702 | Android take picture with low RAM device - Can setPictureSize() lower the memory usage? | <p>Following the documentation from developper.android.com </p>
<p>I wrote a short Activity to take picture from within the app. </p>
<p>I sometimes met this error : </p>
<pre><code>02-23 17:37:06.323: E/IMemory(5003): binder=0x3c010388 transaction failed fd=-2147483647, size=0, err=-2147483646 (Unknown error: 21474... | Following the documentation from developper.android.com I wrote a short Activity to take picture from within the app. I sometimes met this error : [CODE] can you help me understand it ? Does setting the picture size to the smallest value retrieved from the getPictureSizes() method requieres less memory at the capture t... | android|memory|android-camera | 1 | 2015-02-23T16:41:45.930Z | 2,015 | 2 | 16 | 0 | 560 | 1 | 604 | 87 | 3 | 2 | true | false | false | false | false | false | low |
28,678,754 | Android SQLite error when inserting into table | <p>I have 2 forms in seperate fragments that the user fills in and the data is saved to the SQLite database. I had no problem doing this with just one table, one form and one fragment but now I have added a second table(kindetails) into MyDBHelper class with another form and fragment class and that data is then saved t... | I have 2 forms in seperate fragments that the user fills in and the data is saved to the SQLite database. I had no problem doing this with just one table, one form and one fragment but now I have added a second table(kindetails) into MyDBHelper class with another form and fragment class and that data is then saved to t... | android|sqlite|android-fragments | 0 | 2015-02-23T16:43:52.917Z | 2,015 | 2 | 16 | 0 | 17 | 0 | 523 | 46 | 3 | 4 | true | true | false | false | false | false | zero |
28,678,788 | OnPreDraw() is getting called over and over. what could explain it? | <p>at least it is doing what I want it to do (centering my view at runtime) but why is it doing it over and over? my understanding is that it should be called when the view tree has something to draw, which should not be multiple times every second. here I am logging its calls</p>
<p><img src="https://i.stack.imgur.c... | at least it is doing what I want it to do (centering my view at runtime) but why is it doing it over and over? my understanding is that it should be called when the view tree has something to draw, which should not be multiple times every second. here I am logging its calls why does OnPreDraw() keeps getting called ove... | java|android|android-layout | 2 | 2015-02-23T16:45:33.623Z | 2,015 | 2 | 16 | 0 | 4,084 | 2 | 548 | 67 | 3 | 0 | false | false | true | false | false | false | low |
28,678,854 | Can't fetch all text when parse from google alerts | <p>I already made an Android RSS Feed App from <a href="https://www.google.com/alerts/" rel="nofollow noreferrer">Google Alerts Source</a>. After I compiled and running only showing about half article or can't fetch all text from one source but not crash.</p>
<p><img src="https://i.imgur.com/lV9iwiJ.jpg" alt="emulator... | I already made an Android RSS Feed App from Google Alerts Source . After I compiled and running only showing about half article or can't fetch all text from one source but not crash. From RssAtomParseHandler.java [CODE] From RssAtomReader.java [CODE] From activity_details.xml [CODE] How I can fix it so it will show ? | android|parsing|rss|atom-feed|google-alerts | 0 | 2015-02-23T16:48:35.853Z | 2,015 | 2 | 16 | 0 | 150 | 0 | 318 | 50 | 5 | 3 | true | true | false | false | false | false | zero |
28,678,890 | upload bitmap to server android using http post. need help in php script | <p>i am developing a android project
i need to upload a bitmap on the apache server using a php script
method i am using is as follows</p>
<pre><code>public void doFileUpload(Bitmap bitmapOrg) {
InputStream is;
ByteArrayOutputStream bao = new ByteArrayOutputStream();
bitmapOrg.compress(Bitma... | i am developing a android project i need to upload a bitmap on the apache server using a php script method i am using is as follows [CODE] and i donot know anything about php. i found this script for handling the file as follow. [CODE] connection is getting established but i cant see any file in the /var/www/html/ dire... | java|php|android|upload | 0 | 2015-02-23T16:50:01.757Z | 2,015 | 2 | 16 | 0 | 1,585 | 0 | 678 | 72 | 4 | 4 | true | true | false | false | false | false | zero |
28,678,948 | Android: Delete Notification only when touched not throuch "clear all" Button | <p>my App creates a few notifications and with the Help of PendingIntents it takes you to an special Activity. It all works pretty fine, the only problem i have is that i want the Notification to only be deleted when the user touches it, not when the user uses the "Clear all" Button ( X on top of the Notificationbar). ... | my App creates a few notifications and with the Help of PendingIntents it takes you to an special Activity. It all works pretty fine, the only problem i have is that i want the Notification to only be deleted when the user touches it, not when the user uses the "Clear all" Button ( X on top of the Notificationbar). At ... | java|android|notifications | 1 | 2015-02-23T16:52:51.863Z | 2,015 | 2 | 16 | 0 | 309 | 1 | 841 | 77 | 3 | 1 | true | false | false | false | false | false | low |
28,678,998 | How do I code the app to read data values from a file to the class object? | <p>I am stuck. I don't know how to read a data value from a file to class object. I have to do it for three references for the class Employee. This is what I have so far as of now:</p>
<pre><code>public void displayEmployees(View view)
{
EditText edt1;
TextView tv;
String urlfile; //For variable that store... | I am stuck. I don't know how to read a data value from a file to class object. I have to do it for three references for the class Employee. This is what I have so far as of now: [CODE] And, this is what the class looks like: [CODE] Lastly, the file that I am reading from look like this, for example: Joe Bob 00001 9000.... | java|android|class|url | 0 | 2015-02-23T16:54:58.123Z | 2,015 | 2 | 16 | 0 | 47 | 2 | 341 | 74 | 4 | 2 | true | false | false | false | false | false | zero |
28,679,108 | How to overlap a darker layout over current layout during content loading? | <p>i created an activity that include an AsyncTask to fetch some data from internet. I add a progressbar to the layout so users can't interact with edittext till up the data loading is completed.
During content loading i would make the current layout darker, so users understand that the layout it is not active during l... | i created an activity that include an AsyncTask to fetch some data from internet. I add a progressbar to the layout so users can't interact with edittext till up the data loading is completed. During content loading i would make the current layout darker, so users understand that the layout it is not active during load... | android|xml|layout|progress-bar|overlap | 0 | 2015-02-23T16:59:27.083Z | 2,015 | 2 | 16 | 0 | 248 | 2 | 458 | 74 | 5 | 1 | true | false | false | false | false | false | zero |
28,679,138 | Admob causes corona SDK app to crash after installing GameAnalytics on Android | <p>After "importing" the GameAnalytics plugin using (require "plugin.gameanalytics"), every time I try to launch a publicity via our Admob account (which worked perfectly until importing GameAnalytics), causes the app to crash, but only on Android, it does not give any error code or description, just closes the app wit... | After "importing" the GameAnalytics plugin using (require "plugin.gameanalytics"), every time I try to launch a publicity via our Admob account (which worked perfectly until importing GameAnalytics), causes the app to crash, but only on Android, it does not give any error code or description, just closes the app with a... | android|admob|coronasdk|gameanalytics | 0 | 2015-02-23T17:01:12.920Z | 2,015 | 2 | 17 | 0 | 166 | 1 | 639 | 78 | 4 | 0 | false | false | false | false | false | false | zero |
28,679,142 | Android Tv: get list of channels | <p>I've installed the androidtv-sample-inputs so I can fake some Tv inputs and have some channels and I wanted to get information about that channels, however, when I query to get that information I get an empty cursors.</p>
<p>What i've tried so far is:</p>
<pre><code>TvInputManager tv = (TvInputManager)getApplicati... | I've installed the androidtv-sample-inputs so I can fake some Tv inputs and have some channels and I wanted to get information about that channels, however, when I query to get that information I get an empty cursors. What i've tried so far is: [CODE] I have already added the uses-permission and I've checked that the t... | android|android-tv | 8 | 2015-02-23T17:01:21.567Z | 2,015 | 2 | 17 | 0 | 5,530 | 2 | 356 | 32 | 2 | 2 | true | false | true | false | false | false | medium |
28,679,150 | Creating Facebook story in Android, getting can't generate preview error | <p>I'm trying to create a Facebook story in my android app. Currently the app tries to open Facebook for a moment then stops and heads back to the app ui. My stack logs a Facebook error "can't generate preview".</p>
<p>Here's the relevant code:</p>
<pre><code>OpenGraphObject whiskeyCheckin = OpenGraphObject.Factory... | I'm trying to create a Facebook story in my android app. Currently the app tries to open Facebook for a moment then stops and heads back to the app ui. My stack logs a Facebook error "can't generate preview". Here's the relevant code: [CODE] For the story (as set in the FB dashboard) "whiskeynation" is the namespace, "... | android|facebook | 0 | 2015-02-23T17:01:39.680Z | 2,015 | 2 | 17 | 0 | 68 | 1 | 417 | 72 | 2 | 1 | true | false | false | false | false | false | zero |
28,679,247 | how to get the nearest geocoded locations first using GeoCoder in android? | <p>suppoose I have my current location which is changeable and I dont know the hard code value of the latitude and longitude. now I have a string from where I want to get the Address object from that string using getFromLocationName() method, I have used this code:</p>
<pre><code>address = coder.getFromLocationName(st... | suppoose I have my current location which is changeable and I dont know the hard code value of the latitude and longitude. now I have a string from where I want to get the Address object from that string using getFromLocationName() method, I have used this code: [CODE] but this returns list of address from allover the ... | android|gps | 0 | 2015-02-23T17:06:14.667Z | 2,015 | 2 | 17 | 0 | 87 | 1 | 569 | 74 | 2 | 2 | true | false | false | false | false | false | zero |
28,679,310 | Get absolute screen coordinates of a div inside a webview on Android | <p>I have a complex chart (jChartFx) created using javascript inside a webview on Android. I need to be able to export this chart to a png file. </p>
<p>I've tried using html2canvas but the chart is rendered using svg which is not supported, so my next try is to get the exact screen coordinates of the chart and then f... | I have a complex chart (jChartFx) created using javascript inside a webview on Android. I need to be able to export this chart to a png file. I've tried using html2canvas but the chart is rendered using svg which is not supported, so my next try is to get the exact screen coordinates of the chart and then from native c... | android|android-webview|jchartfx | 4 | 2015-02-23T17:09:23.140Z | 2,015 | 2 | 17 | 0 | 296 | 0 | 642 | 68 | 3 | 0 | false | true | false | false | false | false | low |
28,679,312 | Android - Is there a way to register my Activity and Service other than Manifest file | <p>Actually I want to know the other way if exist to register my Activity and Service similar to LocalBroadcast Reciever. </p> | Actually I want to know the other way if exist to register my Activity and Service similar to LocalBroadcast Reciever. | android|android-intent|android-activity|android-service|android-manifest | -1 | 2015-02-23T17:09:27.967Z | 2,015 | 2 | 17 | 0 | 153 | 1 | 118 | 85 | 5 | 0 | false | false | false | false | false | true | negative |
28,679,335 | SQLite CRUD Issue | <p>I am attempting to implement a somewhat simple SQLite database based off the vogella tutorial <a href="http://www.vogella.com/tutorials/AndroidSQLite/article.html" rel="nofollow">http://www.vogella.com/tutorials/AndroidSQLite/article.html</a>.</p>
<p>The database below is very simple and I have only 1 column COLUMN... | I am attempting to implement a somewhat simple SQLite database based off the vogella tutorial http://www.vogella.com/tutorials/AndroidSQLite/article.html . The database below is very simple and I have only 1 column COLUMN_TOPIC, which I set to TEXT PRIMARY KEY NOT NULL. The issue I am having is in regards to the CRUD o... | java|android|sqlite | 0 | 2015-02-23T17:10:54.973Z | 2,015 | 2 | 17 | 0 | 80 | 1 | 922 | 17 | 3 | 5 | true | false | false | false | false | false | zero |
28,679,346 | How do I uninstall and re-run an app on a device using Android Studio? | <p>I am new to Android Studio and I feel that I must be doing something wrong. When running MyApp on an actual device the process goes like this.</p>
<ul>
<li>Edit code.</li>
<li>Select the <code>Run</code> command in Android Studio. (Shift+F10)</li>
<li>Discover a Bug (on phone)</li>
<li>Navigate to Settings --> Appl... | I am new to Android Studio and I feel that I must be doing something wrong. When running MyApp on an actual device the process goes like this. Edit code. Select the Run command in Android Studio. (Shift+F10) Discover a Bug (on phone) Navigate to Settings --> Application --> MyApp (on phone) Force Stop (on phone) Uninst... | android|android-studio|ide | 21 | 2015-02-23T17:11:46.517Z | 2,015 | 2 | 17 | 0 | 26,267 | 4 | 734 | 70 | 3 | 0 | false | false | true | true | true | false | high |
28,679,434 | UriMatcher won't match | <p>I created URI as <code>content://com.freshfase.provider.MBoardGetDetailProvider/mboard_get_student_by_section_detail/a/b</code></p>
<p>by using:</p>
<pre><code>Uri uri1 = Uri.withAppendedPath(MBoardGetDetailProvider.GET_STUDENT_DETAIL_BY_SECTION_URI, "a");
Uri uri2 = Uri.withAppendedPath(uri1, "b");
</code></pre>
... | I created URI as content://com.freshfase.provider.MBoardGetDetailProvider/mboard_get_student_by_section_detail/a/b by using: [CODE] In my ContentProvider I use: [CODE] And while calling: [CODE] I expect the uriType value as 5 but it returns -1 . | android|uri|android-contentprovider | 1 | 2015-02-23T17:16:22.567Z | 2,015 | 2 | 17 | 0 | 53 | 0 | 245 | 22 | 3 | 3 | true | true | false | false | false | false | low |
28,679,450 | Simulating an apk file using java swing for using it in my desktop | <p>I have a list of apk files which i must have the facility to use it inside a java swing application. Like when i press a tab, it must simlaute the apk file1, another tab for 2. like wise.</p>
<p>In a better way, I need to virtualize the apk in java swing to use it as my desktop application for my comfort.</p>
<p>T... | I have a list of apk files which i must have the facility to use it inside a java swing application. Like when i press a tab, it must simlaute the apk file1, another tab for 2. like wise. In a better way, I need to virtualize the apk in java swing to use it as my desktop application for my comfort. Thanks in advance!!. | java|android|swing|simulation|ui-virtualization | 0 | 2015-02-23T17:17:16.720Z | 2,015 | 2 | 17 | 0 | 162 | 1 | 320 | 66 | 5 | 0 | false | false | false | false | false | false | zero |
28,679,458 | How can I store User answers and display them on a results page? | <p>So for I have already created everything I need to make the app work . All I want to know how to do gather all of the users answers and display How many the User got right out of 10, while showing the ones that were incorrect. How would I go about doing this? Please use beginner friendly code.</p>
<pre><code>public... | So for I have already created everything I need to make the app work . All I want to know how to do gather all of the users answers and display How many the User got right out of 10, while showing the ones that were incorrect. How would I go about doing this? Please use beginner friendly code. [CODE] and the Results1 c... | android|arrays|increment | 0 | 2015-02-23T17:17:38.727Z | 2,015 | 2 | 17 | 0 | 24 | 0 | 331 | 64 | 3 | 2 | true | true | false | false | false | false | zero |
28,679,561 | Can't send data to Google Cloud Messaging when I try to send data | <p>I'm trying to send data to GCM when a location is changed.
The following things works:</p>
<ul>
<li>My program notice when location is changed or when the timer is over. </li>
<li>I can register my device to GCM</li>
<li><p>I can send data to GCM when I hit a buttom. I use this code:</p>
<pre><code> public void s... | I'm trying to send data to GCM when a location is changed. The following things works: My program notice when location is changed or when the timer is over. I can register my device to GCM I can send data to GCM when I hit a buttom. I use this code: [CODE] But when I try to send data to GCM from my locationService clas... | android|service|background|google-cloud-messaging | 0 | 2015-02-23T17:23:05.797Z | 2,015 | 2 | 17 | 0 | 50 | 0 | 381 | 65 | 4 | 2 | true | true | false | false | false | false | zero |
28,679,635 | How to stretch Android ImageView to parent width? | <p>I know this question has been asked many times before, but all the answers aren't helping me or seem to contradict each other.</p>
<ul>
<li><a href="https://stackoverflow.com/questions/18342463/stretch-image-to-fit">This one</a> suggests I need to programmatically set the width of the ImageView.</li>
<li><a href="h... | I know this question has been asked many times before, but all the answers aren't helping me or seem to contradict each other. This one suggests I need to programmatically set the width of the ImageView. This one and this one suggest doing it by overriding the onMeasure() method on ImageView in a subclass. This one sug... | android | 0 | 2015-02-23T17:26:56.973Z | 2,015 | 2 | 17 | 0 | 602 | 1 | 645 | 49 | 1 | 2 | true | false | false | false | false | false | zero |
28,679,656 | Adding an openstreetmap in a viewpager | <p>I have some questions about the viewpager in android studio,</p>
<p>So i made a viewpager with 3 screens using a viewpager and a PagerAdapter class
public class MainActivity extends FragmentActivity {</p>
<pre><code>private MapView myOpenMapView;
private MapController myMapController;
ExpandableListAdapter listAda... | I have some questions about the viewpager in android studio, So i made a viewpager with 3 screens using a viewpager and a PagerAdapter class public class MainActivity extends FragmentActivity { [CODE] This works just fine, now in my project i want to implement an openstreetmap, i added this code [CODE] this code works ... | android|android-viewpager|openstreetmap|osmdroid | 1 | 2015-02-23T17:28:06.367Z | 2,015 | 2 | 17 | 0 | 231 | 1 | 534 | 38 | 4 | 2 | true | false | false | false | false | false | low |
28,679,688 | neo4j 401 status code from android app | <p>I am using a Graph Story neo4j server and I am using the REST API from my android app.</p>
<p>I using the URL like this <code>https://uName:pass@host:port</code>
This same url and the http parameters and headers I set work in chrome Rest Client but I get a 401 status error from neo4j when I use my android app.</p>
... | I am using a Graph Story neo4j server and I am using the REST API from my android app. I using the URL like this https://uName:pass@host:port This same url and the http parameters and headers I set work in chrome Rest Client but I get a 401 status error from neo4j when I use my android app. Calling this from my MainAct... | android|neo4j | 0 | 2015-02-23T17:29:52.813Z | 2,015 | 2 | 17 | 0 | 118 | 1 | 369 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
28,679,690 | How to manage files in Android Studio | <p>I'm working in Android Studio right now, but I'm a little new to the whole concept of programming. I know how to code in Matlab, and there you create functions and call them inside your code, so you have different files for every task. Here, there are classes and I don't really get it. I have code to generate random... | I'm working in Android Studio right now, but I'm a little new to the whole concept of programming. I know how to code in Matlab, and there you create functions and call them inside your code, so you have different files for every task. Here, there are classes and I don't really get it. I have code to generate random nu... | java|android|function|class | 0 | 2015-02-23T17:29:55.607Z | 2,015 | 2 | 17 | 0 | 212 | 1 | 673 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
28,679,723 | Android google maps getting rid of polyline | <p>I am building an android application that gets the users current position and find nearby attractions. When I select an attraction a route is drawn to it from the current position but when I do this a second time the first route stays there, I want it to disappear. Below is the code I use to draw the line. Each time... | I am building an android application that gets the users current position and find nearby attractions. When I select an attraction a route is drawn to it from the current position but when I do this a second time the first route stays there, I want it to disappear. Below is the code I use to draw the line. Each time a ... | android|google-maps-android-api-2|polyline | 1 | 2015-02-23T17:31:38.300Z | 2,015 | 2 | 17 | 0 | 394 | 1 | 478 | 43 | 3 | 1 | true | false | false | false | false | false | low |
28,679,774 | Get value from JSONArray | <p><code>JSONObject</code> <code>obj</code> looks like this: </p>
<p><code>{"data":"Text 1","data2":"Text 2","turnCounter":0,"data3":["0","1","2"]}</code></p>
<p>I have been able to retrieve <code>data</code>, <code>data2</code>, and <code>turnCounter</code> but I can't figure out how to get <code>data3</code>:</p>
... | JSONObject obj looks like this: {"data":"Text 1","data2":"Text 2","turnCounter":0,"data3":["0","1","2"]} I have been able to retrieve data , data2 , and turnCounter but I can't figure out how to get data3 : Here is my attempt [CODE] Can someone please tell me how I can get the value from the JsonArray data3 ? Please le... | android|parsing|json | 0 | 2015-02-23T17:34:28.383Z | 2,015 | 2 | 17 | 0 | 463 | 3 | 368 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
28,679,787 | Android Make Disappear or remove the blue dot on the map v2 | <p>I'm trying to replace the blue dot on the map of my app.
My intention is that instead of the usual blue dot, show an icon shaped plane.
I achieve this and it works perfectly as follows:</p>
<pre><code>//...
GoogleMap.OnMyLocationChangeListener myLocationChangeListener = new GoogleMap.OnMyLocationChangeListener() {
... | I'm trying to replace the blue dot on the map of my app. My intention is that instead of the usual blue dot, show an icon shaped plane. I achieve this and it works perfectly as follows: [CODE] As I said, this works fine, but now I see my icon and the blue dot: I have tried many ways to do it, but can not find any that ... | android|google-maps-markers|android-maps-v2 | 8 | 2015-02-23T17:35:08.980Z | 2,015 | 2 | 17 | 0 | 9,464 | 1 | 831 | 59 | 3 | 2 | true | false | true | false | false | false | medium |
28,679,810 | flipcard animation by using touch event | <p>I am trying to create a flip card animation using setOnTouchListener() on fragment. For this i am folowing Joerock's Xamarin tutorials.Below is my code.. When i am trying to run, front card is displaying, but when i am double tapping on fragment, it is not responding..Please help me where i went wrong..</p>
<pre><c... | I am trying to create a flip card animation using setOnTouchListener() on fragment. For this i am folowing Joerock's Xamarin tutorials.Below is my code.. When i am trying to run, front card is displaying, but when i am double tapping on fragment, it is not responding..Please help me where i went wrong.. [CODE] | android|android-fragments|gesture|flipview | 0 | 2015-02-23T17:36:31.890Z | 2,015 | 2 | 17 | 0 | 343 | 0 | 311 | 39 | 4 | 1 | true | true | 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.