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,595,028 | How can I wait until my retrofit download is successful before invoking other code? | <p>In my oncreate</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
eventList = new ArrayList<Event>();
loadEvents();
init();
}
public void init() {
recyclerView = (RecyclerView) fin... | In my oncreate [CODE] Is there a way to wait until my loadEvents() code returns successful and loads the data before calling init()? Right now I believe my init() code is called before my loadEvents() finishes loading. I want to wait until my loadEvents() is successful and loads all the data before continuing my progra... | android|rest|retrofit | 1 | 2015-02-18T22:17:44.977Z | 2,015 | 2 | 22 | 2 | 2,234 | 2 | 413 | 83 | 3 | 3 | true | false | false | false | false | false | low |
28,595,069 | spinner in a FragmentTabHost crashes my app android-eclipse | <p>I'm new developing apps for android and I have found some problems adding spinners.</p>
<p>My app have a main menu where after to click on a button a new activity appears which is a FragmentTabHost and it has two tabs.</p>
<p>each tab has its xlm file and its java file, the java file looks as follow</p>
<pre><cod... | I'm new developing apps for android and I have found some problems adding spinners. My app have a main menu where after to click on a button a new activity appears which is a FragmentTabHost and it has two tabs. each tab has its xlm file and its java file, the java file looks as follow [CODE] But, when i try to add the... | android|eclipse|crash|spinner | 0 | 2015-02-18T22:20:05.543Z | 2,015 | 2 | 22 | 2 | 119 | 0 | 868 | 59 | 4 | 2 | true | true | false | false | false | false | zero |
28,595,163 | Get data from phpmyadmin using another machine | <p>I am building an android app with the following code:</p>
<pre><code>try{
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://10.0.2.2/tut.php");
HttpResponse response = httpClient.execute(httpPost);
HttpEntity entity = response.g... | I am building an android app with the following code: [CODE] This apps works fine in my computer. I want everyone download this app can use it and read the data from phpmyadmin. can any one teach my how to do this? (I want the data in phpmyadmin can be read from public user.) And do I need to change the code? [CODE] | android|eclipse|phpmyadmin | 0 | 2015-02-18T22:25:59.937Z | 2,015 | 2 | 22 | 2 | 391 | 1 | 317 | 46 | 3 | 2 | true | false | false | false | false | false | zero |
28,595,320 | Show notification only if previous one has been canceled | <p>I'm creating a very simple application for myself. Basically, it gives me a certain notification exactly every 2 hours.</p>
<p>The problem is when I don't "check" the notification for 2 hours and the next notification is supposed to come around. It sends a notification even though another notification already exist... | I'm creating a very simple application for myself. Basically, it gives me a certain notification exactly every 2 hours. The problem is when I don't "check" the notification for 2 hours and the next notification is supposed to come around. It sends a notification even though another notification already exists. I'm simp... | android|notifications | 2 | 2015-02-18T22:34:57.130Z | 2,015 | 2 | 22 | 2 | 1,241 | 1 | 475 | 56 | 2 | 0 | false | false | false | false | false | false | low |
28,595,325 | Positioning Widgets in a Specific Arrangment | <p>I'm quite new with Android programming in general, but I would like to know if there is a way to arrange my widgets in a particular way. Basically, I'm looking for the iOS equivalent of constraints, which will allow me to place to widgets centered horizontally and a specified distance from the bottom:</p>
<pre><cod... | I'm quite new with Android programming in general, but I would like to know if there is a way to arrange my widgets in a particular way. Basically, I'm looking for the iOS equivalent of constraints, which will allow me to place to widgets centered horizontally and a specified distance from the bottom: [CODE] | android|layout|positioning | 1 | 2015-02-18T22:35:12.517Z | 2,015 | 2 | 22 | 2 | 293 | 1 | 309 | 44 | 3 | 1 | true | false | false | false | false | false | low |
28,595,366 | Android Programming Prefrences Activity using Fragments | <p>Im trying to create a preferences fragment. However i keep getting an error. Any help would extremely be appreciated! If you have any good links for preferences please comment them! Thank you so much!! </p>
<pre><code> package com.example.rifatrashid.mycalc;
import android.app.Activity;
import android.app.Fragm... | Im trying to create a preferences fragment. However i keep getting an error. Any help would extremely be appreciated! If you have any good links for preferences please comment them! Thank you so much!! [CODE] | java|android|android-layout|android-fragments | -2 | 2015-02-18T22:38:52.260Z | 2,015 | 2 | 22 | 2 | 120 | 1 | 208 | 55 | 4 | 1 | true | false | false | false | false | true | negative |
28,595,431 | Tracking Parse notification consumption | <p>Recently we switched our push notification system over to Parse.com, but I'm having ridiculous trouble integrating our client on several ends.</p>
<p>These are the two requirements, yet it seems impossible to implement them together:</p>
<ol>
<li>There are several different types of notifications (different sounds... | Recently we switched our push notification system over to Parse.com, but I'm having ridiculous trouble integrating our client on several ends. These are the two requirements, yet it seems impossible to implement them together: There are several different types of notifications (different sounds based on type, or icons,... | java|android|parse-platform | 1 | 2015-02-18T22:45:44.370Z | 2,015 | 2 | 22 | 2 | 105 | 0 | 2,236 | 39 | 3 | 1 | true | true | false | false | false | false | low |
28,595,455 | Programmatically loading images in Android | <p>I would like to load images from my Drawable Resource folders without explicitly typing the identifiers for them. For example : Loading the images in drawable-mdpi using a 'for' loop and using the integer as an argument for the Bitmap Decoder. Which seems to work in theory, but my concern is: is the integer 0x7F0200... | I would like to load images from my Drawable Resource folders without explicitly typing the identifiers for them. For example : Loading the images in drawable-mdpi using a 'for' loop and using the integer as an argument for the Bitmap Decoder. Which seems to work in theory, but my concern is: is the integer 0x7F020000 ... | android|image|loading|device | 1 | 2015-02-18T22:48:04.600Z | 2,015 | 2 | 22 | 2 | 79 | 1 | 563 | 42 | 4 | 0 | false | false | false | false | false | false | low |
28,595,458 | Recycler View Crash onkeyboard closing | <p>I build a recyclerview like so:</p>
<pre><code>recyclerView = (RecyclerView) view.findViewById(R.id.recyclerview);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
currentResults = new ArrayList<Stuff>();
stuffAdapter = new StuffAdapter(currentResults, getActivity());
recyclerView.setAd... | I build a recyclerview like so: [CODE] then when the user searches for things and results are returned, they're added to the adapter in the normal way [CODE] this is all very standard. the results are obtained via a searchview widget in an appcompat toolbar and a retrofit callback. the problem is that there is one part... | android|android-recyclerview | 3 | 2015-02-18T22:48:19.763Z | 2,015 | 2 | 22 | 2 | 318 | 1 | 541 | 38 | 2 | 3 | true | false | false | false | false | false | low |
28,595,466 | Android - Add a custom view to a component in a xml layout | <p>I have an abstract class extended from the class View, and 4 subclasses to perform a series of vectorial drawings. Then I have a layout with four Buttons and a View to show the drawings. Depending on which button is clicked, different figures should be drawn in that View. The problem is that when I click one button,... | I have an abstract class extended from the class View, and 4 subclasses to perform a series of vectorial drawings. Then I have a layout with four Buttons and a View to show the drawings. Depending on which button is clicked, different figures should be drawn in that View. The problem is that when I click one button, th... | android|xml|view | 0 | 2015-02-18T22:49:00.067Z | 2,015 | 2 | 22 | 2 | 1,240 | 2 | 497 | 58 | 3 | 3 | true | false | false | false | false | false | zero |
28,595,468 | Exception when trying to add a BeaconParser to AltBeacon lib | <p>I have been trying to modify the <a href="https://github.com/AltBeacon/android-beacon-library-reference" rel="nofollow noreferrer">reference app</a> from AltBeacon in order to detect iBeacons.</p>
<p>In RangingActivity, I replaced</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
su... | I have been trying to modify the reference app from AltBeacon in order to detect iBeacons. In RangingActivity, I replaced [CODE] with [CODE] In order to apply the modifications to detect an iBeacon which I found here . However this throws as lbp is a java.util.Collections$UnmodifiableRandomAccessList. I am new to Java ... | java|android|bluetooth|ibeacon|altbeacon | 3 | 2015-02-18T22:49:05.980Z | 2,015 | 2 | 22 | 2 | 498 | 1 | 574 | 60 | 5 | 2 | true | false | false | false | false | false | low |
28,595,474 | Unable to start android emulator from an external storage device(External SSD)! | <p>I installed the android sdk on an external SSD. When I tried to start the SDKManager.exe, I see a command line window open for a second and close. But the sdk manager wouldn't start. Am I missing anything? Can we run android from an external storage device?</p>
<p>Thanks.</p> | I installed the android sdk on an external SSD. When I tried to start the SDKManager.exe, I see a command line window open for a second and close. But the sdk manager wouldn't start. Am I missing anything? Can we run android from an external storage device? Thanks. | android|android-emulator | 0 | 2015-02-18T22:49:37.913Z | 2,015 | 2 | 22 | 2 | 80 | 1 | 265 | 79 | 2 | 0 | false | false | false | false | false | false | zero |
28,595,547 | Android Does my app have a memory leak? | <p>I was looking at the memory usage in android studio and noticed that every time I launch my app, the memory increases by a few MB. I've never got a OutOfMemory exception crash report from any of my supported devices. I'm not familiar with a lot of the tools included in the android sdk so I'm not sure if this signifi... | I was looking at the memory usage in android studio and noticed that every time I launch my app, the memory increases by a few MB. I've never got a OutOfMemory exception crash report from any of my supported devices. I'm not familiar with a lot of the tools included in the android sdk so I'm not sure if this signifies ... | android|memory-management|android-studio | 2 | 2015-02-18T22:55:08.793Z | 2,015 | 2 | 22 | 2 | 2,170 | 1 | 595 | 39 | 3 | 0 | false | false | false | false | false | false | low |
28,595,576 | why my SensorManager.getRotationMatrix always return false? | <p>I try so many times by using "switch" or "for" syntax to changing the codes, but it always appears nothing, 90% I would think it is because SensorManager.getRotationMatrix return false, but why? how can I fix it? I have tried to do the other solutions that in Stack but none of them works..I am using Android Studio a... | I try so many times by using "switch" or "for" syntax to changing the codes, but it always appears nothing, 90% I would think it is because SensorManager.getRotationMatrix return false, but why? how can I fix it? I have tried to do the other solutions that in Stack but none of them works..I am using Android Studio and ... | java|android|sensors | 0 | 2015-02-18T22:57:30.720Z | 2,015 | 2 | 22 | 2 | 611 | 0 | 464 | 59 | 3 | 2 | true | true | false | false | false | false | zero |
28,595,583 | android quiz moving between questions | <p>So I'm currently making a quiz app in Android and am nearing the end. I'm able to shuffle the questions and each one's respective questions. Because of the randomness each time the activity is selected, I'm not sure of a clear way to go about moving between questions.</p>
<p>The only way I can think of at the mom... | So I'm currently making a quiz app in Android and am nearing the end. I'm able to shuffle the questions and each one's respective questions. Because of the randomness each time the activity is selected, I'm not sure of a clear way to go about moving between questions. The only way I can think of at the moment (and it s... | java|android|android-viewpager|fragment | 0 | 2015-02-18T22:58:09.627Z | 2,015 | 2 | 22 | 2 | 566 | 1 | 1,057 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
28,595,601 | Segfault when accessing char[] | <p>I've got a function</p>
<pre><code>int foo() {
...
char* real_path_buffer = (char*)malloc(sizeof(char)*PATH_MAX);
realpath("a/certain/path/that/doesnt/exist", real_path_buffer);
...
}
</code></pre>
<p>That makes a call to <code>realpath</code> in Android bionic</p>
<pre><code>char* realpath(const ... | I've got a function [CODE] That makes a call to realpath in Android bionic [CODE] And when passing a certain non-existent path to realpath from a production like scenario, I get a segfault upon accessing path2 in any way (it happens when I simply try to print it as well as memcpy to it). I have verified that the progra... | android|c|segmentation-fault|realpath|bionic | 0 | 2015-02-18T22:59:31.133Z | 2,015 | 2 | 22 | 2 | 395 | 1 | 666 | 30 | 5 | 2 | true | false | false | false | false | false | zero |
28,595,618 | Formatting new TableRow (Programmatically) | <p>in XML I've definded a TableLayout with a TableRow (the headline of the table).
Every other row will be added programmatically. The problem: I can't get the new rows to line up with the one of the XML</p>
<ol>
<li>3 TextView Array, 1 TableRow Array</li>
<li>Loop to fill these arrays with TextViews and TableRows</li... | in XML I've definded a TableLayout with a TableRow (the headline of the table). Every other row will be added programmatically. The problem: I can't get the new rows to line up with the one of the XML 3 TextView Array, 1 TableRow Array Loop to fill these arrays with TextViews and TableRows All are given to the setTable... | android|format|row|android-tablelayout | 0 | 2015-02-18T23:00:43.963Z | 2,015 | 2 | 23 | 2 | 777 | 1 | 617 | 42 | 4 | 3 | true | false | false | false | false | false | zero |
28,595,754 | Good to have a static reference to foreground activity? | <p>Is it good practice to have a static reference to foreground activity? eg: </p>
<pre><code>public static Activity currentActivity = null;
</code></pre>
<p>This question is straight forward but I could not find much information on that. I am doing Xamarin Android - writing android apps in C#, so I get lots of task... | Is it good practice to have a static reference to foreground activity? eg: [CODE] This question is straight forward but I could not find much information on that. I am doing Xamarin Android - writing android apps in C#, so I get lots of tasks (background thread), and I wanna make a dialog but I do not have reference to... | c#|android|xamarin|android-alertdialog|android-lifecycle | 1 | 2015-02-18T23:10:37.847Z | 2,015 | 2 | 23 | 2 | 166 | 1 | 919 | 55 | 5 | 1 | true | false | false | false | false | false | low |
28,595,761 | Nav Drawer Menu Android - Group of items listview | <p>I'm trying to do a navigator drawer menu in android and until now I did it:
<img src="https://i.stack.imgur.com/Wvi1R.jpg" alt="enter image description here"></p>
<p>But I want like a group of items like this edited image on paint:
<img src="https://i.stack.imgur.com/kT78u.jpg" alt="enter image description here"></... | I'm trying to do a navigator drawer menu in android and until now I did it: But I want like a group of items like this edited image on paint: How can I do it? How can divide some items? Thanks! Edit: navigation_drawer_base_layout.xml [CODE] BaseActivity.java [CODE] | android|android-listview|navigation-drawer | 1 | 2015-02-18T23:11:03.500Z | 2,015 | 2 | 23 | 2 | 1,330 | 1 | 265 | 49 | 3 | 2 | true | false | false | false | false | false | low |
28,595,864 | Cordova/Phonegapp - How to use Local Storage Plugin | <p>I'm using cordova for the first time to develop apps for android.
i have installed cordova local storage plugin.</p>
<p>But i don't know how to use it(what java-script code is to be used).
What i'm making is a To-do list app,so i need to store the strings or whatever the user inputs.</p>
<p>can anyone please post a ... | I'm using cordova for the first time to develop apps for android. i have installed cordova local storage plugin. But i don't know how to use it(what java-script code is to be used). What i'm making is a To-do list app,so i need to store the strings or whatever the user inputs. can anyone please post a short example dem... | javascript|android|cordova|phonegap-build|cordova-plugins | 1 | 2015-02-18T23:17:45.770Z | 2,015 | 2 | 23 | 2 | 3,907 | 1 | 359 | 51 | 5 | 0 | false | false | true | false | false | false | low |
28,595,909 | My emulator won't display a Google map | <p>I've been looking for an entire week and I can't seem to find any solution so here I am subscribed :)</p>
<p>I'm trying to display a simple map to start with but when I launch my application there is only a blank activity (well a bit darker than white) with Google written on the bottom-left.</p>
<p>My emulator run... | I've been looking for an entire week and I can't seem to find any solution so here I am subscribed :) I'm trying to display a simple map to start with but when I launch my application there is only a blank activity (well a bit darker than white) with Google written on the bottom-left. My emulator runs perfectly well Go... | javascript|android|google-maps | 0 | 2015-02-18T23:21:54.540Z | 2,015 | 2 | 23 | 2 | 137 | 1 | 581 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
28,595,911 | Android Calculation error | <p>I am trying to create a Cab Application for a class I am in and in the MainActivity.java I have added this. The problem I am having is when I get to the line "final TextView result=(TextView)findViewById(R.id.txtResult);" This is a intro to Android app development class and why Java was not a requirement is beyond... | I am trying to create a Cab Application for a class I am in and in the MainActivity.java I have added this. The problem I am having is when I get to the line "final TextView result=(TextView)findViewById(R.id.txtResult);" This is a intro to Android app development class and why Java was not a requirement is beyond me, ... | java|android | 0 | 2015-02-18T23:22:03.010Z | 2,015 | 2 | 23 | 2 | 99 | 1 | 612 | 25 | 2 | 1 | true | false | false | false | false | false | zero |
28,595,945 | How do I make the ListView clickable and show some text once it gets clicked? | <p>I am practicing ListView and I have placed a few List Items on an activity. Right now I have 3 items of list (in three rows). I want that once a user click one of the row (let's say it's my first row for now) s/he should be able to see some details text about it. That text will be displayed somewhere at at the botto... | I am practicing ListView and I have placed a few List Items on an activity. Right now I have 3 items of list (in three rows). I want that once a user click one of the row (let's say it's my first row for now) s/he should be able to see some details text about it. That text will be displayed somewhere at at the bottom o... | android|android-layout|android-activity|android-listview|android-adapter | 1 | 2015-02-18T23:25:03.887Z | 2,015 | 2 | 23 | 2 | 3,265 | 4 | 468 | 77 | 5 | 2 | true | false | true | false | false | false | low |
28,595,960 | How to get the line number in an Activity in eclipse | <p>How can i get the line number in the left hand side of the Activty in eclipse. Anyone please help.</p> | How can i get the line number in the left hand side of the Activty in eclipse. Anyone please help. | java|android|eclipse | 2 | 2015-02-18T23:26:22.450Z | 2,015 | 2 | 23 | 2 | 144 | 1 | 98 | 52 | 3 | 0 | false | false | false | false | false | false | low |
28,596,101 | My GoogleMap application will not run and but no errors in logcat | <p>I try to create a basic Google map when I run this code it won't run in my phone. ...also I can't see running process error in my logcat and I changed my extends class <code>SupportFragmentActivity</code>, <code>MapFragmentActivity</code> and <code>Activity</code> all are no use it won't work?</p>
<p><strong>MainAc... | I try to create a basic Google map when I run this code it won't run in my phone. ...also I can't see running process error in my logcat and I changed my extends class SupportFragmentActivity , MapFragmentActivity and Activity all are no use it won't work? MainAcitivity [CODE] Manifest file [CODE] Main Xml file [CODE] | java|android|google-maps | 0 | 2015-02-18T23:39:03.610Z | 2,015 | 2 | 23 | 2 | 59 | 2 | 319 | 65 | 3 | 3 | true | false | false | false | false | false | zero |
28,596,121 | Android- taking a picture for temporary use with the camera intent | <p>I am taking a picture with the built-in camera intent, and my app just needs the image to create one bitmap. Is it possible to avoid the image saving to the gallery without creating my own custom camera? Here is my current code to take the picture.</p>
<pre><code>public void open() {
Intent intent = new Intent(... | I am taking a picture with the built-in camera intent, and my app just needs the image to create one bitmap. Is it possible to avoid the image saving to the gallery without creating my own custom camera? Here is my current code to take the picture. [CODE] | android|android-intent|camera | 0 | 2015-02-18T23:41:08.277Z | 2,015 | 2 | 23 | 2 | 1,909 | 1 | 255 | 66 | 3 | 1 | true | false | false | false | false | false | zero |
28,596,129 | OpenGL ES 3: glGenerateMipmap geometric constraints | <p>I'm working on a mobile OpenGL application for android, using OpenGL ES3.x for the graphics.</p>
<p>I would like to use the <code>glGenerateMipmap</code> function, yet I feel ill at ease because I remember that, at least with prior versions of OpenGL, there where some geometric constraints on the size of the textur... | I'm working on a mobile OpenGL application for android, using OpenGL ES3.x for the graphics. I would like to use the glGenerateMipmap function, yet I feel ill at ease because I remember that, at least with prior versions of OpenGL, there where some geometric constraints on the size of the texture (square, n-pot texture... | android|opengl-es|opengl-es-3.0 | 1 | 2015-02-18T23:42:00.030Z | 2,015 | 2 | 23 | 2 | 403 | 1 | 983 | 51 | 3 | 0 | false | false | false | false | false | false | low |
28,596,152 | Parse Android getUsername() "ParseObject has no data for this key" | <p>I am making a social app for Android and I'm using Parse to deal with the server-side stuff.</p>
<p>I am making a list of posts and I have to get the username of the post's author. I have a pointer the the _User class in my Post class and I get the author of a given post. However, when I try to get that user's user... | I am making a social app for Android and I'm using Parse to deal with the server-side stuff. I am making a list of posts and I have to get the username of the post's author. I have a pointer the the _User class in my Post class and I get the author of a given post. However, when I try to get that user's username, somet... | android|parse-platform | 2 | 2015-02-18T23:43:39.977Z | 2,015 | 2 | 23 | 2 | 3,794 | 3 | 622 | 66 | 2 | 4 | true | false | true | false | false | false | low |
28,596,184 | Java - Parsing json object (end of input at character 0 of ...) | <p>I am trying to simply get and parse some json to then be added into a spinner. I simply require the name, section to go into the first spinner then as the user selects that would list the subjects within that Json Object.</p>
<p>However I keep getting an error with pasrsing the json to the object 'unexpected JSON e... | I am trying to simply get and parse some json to then be added into a spinner. I simply require the name, section to go into the first spinner then as the user selects that would list the subjects within that Json Object. However I keep getting an error with pasrsing the json to the object 'unexpected JSON exception or... | java|android|get|json | 0 | 2015-02-18T23:46:18.767Z | 2,015 | 2 | 23 | 2 | 2,461 | 2 | 407 | 63 | 4 | 1 | true | false | false | false | false | false | zero |
28,596,321 | push-button in Android Wear smartwatch | <p>Is there in SDK Android Wear a Class representing a push-button (the push button on the side of the watch)</p>
<p><img src="https://i.stack.imgur.com/4XiBt.jpg" alt="the push button on the side of the watch"></p>
<p>If it's possible, can I assign a comportment and a method to this push-button, the push-button can ... | Is there in SDK Android Wear a Class representing a push-button (the push button on the side of the watch) If it's possible, can I assign a comportment and a method to this push-button, the push-button can be pressed, or clicked, by the user to perform an action. I found this http://developer.android.com/reference/andr... | java|android|wear-os|sony-smartwatch | 0 | 2015-02-18T23:59:18.953Z | 2,015 | 2 | 23 | 2 | 821 | 1 | 413 | 38 | 4 | 0 | false | false | false | false | false | false | zero |
28,596,391 | How can I swap the SQLite file in OrmLite? | <p>I have an android application that relies on a sqlite database, and use OrmLite to access my DB.</p>
<p>Instead of OrmLite creating the tables I rely on downloading the database from a central server as the user will often want to "sync" things. Currently I don't have the fancy sync code written so the app replaces... | I have an android application that relies on a sqlite database, and use OrmLite to access my DB. Instead of OrmLite creating the tables I rely on downloading the database from a central server as the user will often want to "sync" things. Currently I don't have the fancy sync code written so the app replaces the db. Th... | android|android-sqlite|ormlite | 1 | 2015-02-19T00:06:53.907Z | 2,015 | 2 | 0 | 3 | 289 | 0 | 1,595 | 42 | 3 | 0 | false | true | false | false | false | false | low |
28,596,488 | ACRA seems to be reporting crashes from Handled exceptions | <p>We have been using ACRA to report crashes in our app, however it seems sometimes it reports crashes where we have already handled exceptions in code. Is this a feature of ACRA, and if so, can we set it to ignore handled exceptions? Thanks.</p> | We have been using ACRA to report crashes in our app, however it seems sometimes it reports crashes where we have already handled exceptions in code. Is this a feature of ACRA, and if so, can we set it to ignore handled exceptions? Thanks. | java|android|debugging|acra | 0 | 2015-02-19T00:15:11.253Z | 2,015 | 2 | 0 | 3 | 41 | 1 | 239 | 58 | 4 | 0 | false | false | false | false | false | false | zero |
28,596,503 | Android - Google Analytics v4 hits generated but not sent | <p>I'm currently running into what seems to be a common issue though I think the reason I'm seeing it stems from something else. </p>
<pre><code>02-18 12:00:13.854 3654-3672/com.mobileanalytics_test V/GAV4﹕ Thread[GAThread,5,main]: connecting to Analytics service
02-18 12:00:13.867 3654-3672/com.mobileanalytics_... | I'm currently running into what seems to be a common issue though I think the reason I'm seeing it stems from something else. [CODE] The part here that concerns me is that I don't ever see my dispatch fire despite it being configured to do so every 30 seconds in my global_tracker.xml file. Below is all relevant code, I... | java|android|google-analytics|android-studio|google-analytics-firebase | 3 | 2015-02-19T00:16:27.440Z | 2,015 | 2 | 0 | 3 | 2,560 | 1 | 844 | 57 | 5 | 5 | true | false | false | false | false | false | low |
28,596,558 | Multiplayer Android Game-doubts about database online | <p>I developed a stupid game in eclipse (not using any particular library such as libgdx, only with "normal code").
I have some doubts about the multiplayer and databases online. In my game I haven't developed yet a database. So i thought I should have create a database online with mysql and connect to my android app. ... | I developed a stupid game in eclipse (not using any particular library such as libgdx, only with "normal code"). I have some doubts about the multiplayer and databases online. In my game I haven't developed yet a database. So i thought I should have create a database online with mysql and connect to my android app. If ... | php|android|mysql|database|multiplayer | 0 | 2015-02-19T00:21:16.310Z | 2,015 | 2 | 0 | 3 | 289 | 0 | 1,264 | 53 | 5 | 0 | false | true | false | false | false | false | zero |
28,596,571 | Expandable Listview parent and children wrapped in a single layout individually. | <p>I am trying to have each individual parent and its children appear as if they are a single CardView. I have it working fine with and lolipop (LP) but anything not running below LP the cards are separated. Is it possible to add a root layout to wrap both the parent and its children individually? I have posted two ph... | I am trying to have each individual parent and its children appear as if they are a single CardView. I have it working fine with and lolipop (LP) but anything not running below LP the cards are separated. Is it possible to add a root layout to wrap both the parent and its children individually? I have posted two photos... | android|expandablelistview | 1 | 2015-02-19T00:22:26.180Z | 2,015 | 2 | 0 | 3 | 359 | 1 | 524 | 80 | 2 | 0 | false | false | false | false | false | false | low |
28,596,591 | How do you call the items in ListView? | <p>How do you call the ListView items - objects? or elements? or items? what is the right name for it?</p> | How do you call the ListView items - objects? or elements? or items? what is the right name for it? | android | 0 | 2015-02-19T00:24:36.197Z | 2,015 | 2 | 0 | 3 | 53 | 2 | 99 | 38 | 1 | 0 | false | false | false | false | false | false | zero |
28,596,613 | Using Reserved names with realm.io / Android | <p>Imagine there's an API that returns something like this:</p>
<pre><code> "names":{
"short":"xxx",
"medium":null,
"long":"xxxxxx"
},
</code></pre>
<p>(just an example)</p>
<p>Then imagine that you have a model to represent the above that looks like this:</p>
<pre><... | Imagine there's an API that returns something like this: [CODE] (just an example) Then imagine that you have a model to represent the above that looks like this: [CODE] There's a problem, since both short and long are reserved keywords in Java. Other ORMs present an annotation (usually @Key("othername") ) to deal with ... | java|android|realm | 3 | 2015-02-19T00:26:46Z | -1 | -1 | -1 | -1 | 213 | 1 | 379 | 44 | 3 | 2 | true | false | false | false | false | false | low |
28,596,680 | How to add Navigation Drawer to existing Android app with custom view pager | <p>Hi I have an existing application that uses custom view page extending <code>android.support.v4.view.ViewPager</code>. Inside I have tabs navigation.</p>
<p>Now I need to add Navigation drawer to all activities. What's the best way to achieve that? Thank you.</p> | Hi I have an existing application that uses custom view page extending android.support.v4.view.ViewPager . Inside I have tabs navigation. Now I need to add Navigation drawer to all activities. What's the best way to achieve that? Thank you. | android|android-viewpager|navigation-drawer | -1 | 2015-02-19T00:32:50.217Z | 2,015 | 2 | 0 | 3 | 2,302 | 1 | 240 | 75 | 3 | 0 | false | false | false | false | false | true | negative |
28,596,753 | 64 Bit Android compiling but has problems at runtime | <p>I have an Android App with a big C++ library which runs smoothly when compiled for </p>
<pre><code>APP_ABI := armeabi-v7a //32 bit
</code></pre>
<p>but has issues when compiled with </p>
<pre><code>APP_ABI := arm64-v8a //64 bit
</code></pre>
<p>All JNI jint variables have been converted to jlong variables acc... | I have an Android App with a big C++ library which runs smoothly when compiled for [CODE] but has issues when compiled with [CODE] All JNI jint variables have been converted to jlong variables according to the NDK docs. My problem is that for some reason I can not compare variables of any data type other than int when ... | c++|android-ndk|64-bit | 0 | 2015-02-19T00:39:24.163Z | 2,015 | 2 | 0 | 3 | 1,609 | 1 | 903 | 52 | 3 | 5 | true | false | false | false | false | false | zero |
28,596,815 | Handler freezes UI when processing while loop inside a runnable task [android] | <p>I want to repeat - - -... so on.
The recording (for seconds) stops when its energy reaches at some threshold value and playbacked. After playback, new recording begins. So I have to monitor the energy using buffers and begin new recording after playback time computation. My pseudocode (most simplified form) look... | I want to repeat - - -... so on. The recording (for seconds) stops when its energy reaches at some threshold value and playbacked. After playback, new recording begins. So I have to monitor the energy using buffers and begin new recording after playback time computation. My pseudocode (most simplified form) looks like ... | java|android|handler | 3 | 2015-02-19T00:46:07.177Z | 2,015 | 2 | 0 | 3 | 3,181 | 2 | 767 | 78 | 3 | 3 | true | false | true | false | false | false | low |
28,596,819 | LibGDX: A screen with 20 Rectangles that can be scrolled | <p>I need to create a menu with 20 vertical Rectangles in LibGdx.</p>
<p>The height of the rectangles is the entire height of the device.</p>
<p>The width of the rectangles is a set 20.0f</p>
<p>I have: <code>private Stage stage;</code> to which I intend to add on to my Rectangles.</p>
<p>The class is called LevelS... | I need to create a menu with 20 vertical Rectangles in LibGdx. The height of the rectangles is the entire height of the device. The width of the rectangles is a set 20.0f I have: private Stage stage; to which I intend to add on to my Rectangles. The class is called LevelSelectScreen and implements Screen. This is what ... | android|libgdx | 3 | 2015-02-19T00:46:27.513Z | 2,015 | 2 | 0 | 3 | 148 | 1 | 503 | 56 | 2 | 1 | true | false | false | false | false | false | low |
28,596,982 | uploading a file with DataOutputStream doesn't display real progress | <p>I am uploading a file from android to my webserver using the DataOutputStream with the following code:</p>
<pre><code>public class SnapshotUploadTask extends AsyncTask<Object, Integer, Void> {
private final File file;
private final ProgressDialog progressDialog;
private final Activity activity;
... | I am uploading a file from android to my webserver using the DataOutputStream with the following code: [CODE] Now what happens is that i update my progressDialog as soon as i have written a certain amount of bytes into the OutputStream which leads to the progressDialog reaching 100% before the data is actually received... | java|android|http|stream|dataoutputstream | 1 | 2015-02-19T01:03:35.320Z | 2,015 | 2 | 1 | 3 | 1,452 | 1 | 556 | 68 | 5 | 1 | true | false | false | false | false | false | low |
28,597,075 | Align imageView and textView (and overflow text with border) | <p>I had saw many ways to align a textview with an imageview, but I didn´t find how to make when the text is bigger than the image, and when you want that text occupy all the parent layout. My layout is this:</p>
<pre><code><RelativeLayout
android:id="@+id/accordion_toogle"
android:layout_width="match_paren... | I had saw many ways to align a textview with an imageview, but I didn´t find how to make when the text is bigger than the image, and when you want that text occupy all the parent layout. My layout is this: [CODE] In this case, assuming that the image occupy the half of the RelativeLayout, the accordion_msg continues to... | android|android-layout|textview|imageview|alignment | 0 | 2015-02-19T01:14:05.857Z | 2,015 | 2 | 1 | 3 | 406 | 1 | 1,287 | 60 | 5 | 5 | true | false | false | false | false | false | zero |
28,597,101 | android ndk: How to access third part shared library | <p>I have a third part shared library (.so) with some classes (C++). I would like to use this library in my Android App. I am planning to write a piece of code in C++ too, for access third part shared library. The code that access third part shared library will be put in a shared library to (mySHaredLibrary.so). My dou... | I have a third part shared library (.so) with some classes (C++). I would like to use this library in my Android App. I am planning to write a piece of code in C++ too, for access third part shared library. The code that access third part shared library will be put in a shared library to (mySHaredLibrary.so). My doubt ... | android-ndk | 0 | 2015-02-19T01:16:52.210Z | 2,015 | 2 | 1 | 3 | 459 | 1 | 562 | 52 | 1 | 0 | false | false | false | false | false | false | zero |
28,597,176 | libGDX ObjectOutputStream write fails with FileNotFoundException | <p>I want to save my settings in my Libgdx game with an <code>ObjectOutputStream</code>. This works on the desktop.
But when I run the android application it crashes because:</p>
<blockquote>
<p>02-19 12:36:33.500: W/System.err(20329): java.io.FileNotFoundException: /save.data: open failed: ENOENT (No such file or ... | I want to save my settings in my Libgdx game with an ObjectOutputStream . This works on the desktop. But when I run the android application it crashes because: 02-19 12:36:33.500: W/System.err(20329): java.io.FileNotFoundException: /save.data: open failed: ENOENT (No such file or directory) How i can save it to the and... | java|android|libgdx | 1 | 2015-02-19T01:24:40.343Z | 2,015 | 2 | 1 | 3 | 407 | 1 | 564 | 64 | 3 | 1 | true | false | false | false | false | false | low |
28,597,224 | Android/XML Aligning imageViews above EditTexts | <p>I'm just trying to align an imageView above an edittext. The edit texts are aligned to be at the bottom of the activity. I put the two pairs inside A relative layout and just tried aligning the image to be above, but that doesn't work.
<a href="https://i.imgur.com/PnLZSwK.png" rel="nofollow noreferrer">http://i.imgu... | I'm just trying to align an imageView above an edittext. The edit texts are aligned to be at the bottom of the activity. I put the two pairs inside A relative layout and just tried aligning the image to be above, but that doesn't work. http://i.imgur.com/PnLZSwK.png [CODE] | xml|android-layout | 0 | 2015-02-19T01:29:24.110Z | 2,015 | 2 | 1 | 3 | 560 | 2 | 273 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
28,597,333 | Android Spinners - The initially selected item in the Spinner remains under the text of the next selected Items | <p>I am having an issue with a code where I need to get information from a spinner. It is a very simple assignment, but every time I change the text property of a view whether it be the spinner I am using or a text view the text of what used to be there remains underneath the new text. Also the spinner.getSelectedItem(... | I am having an issue with a code where I need to get information from a spinner. It is a very simple assignment, but every time I change the text property of a view whether it be the spinner I am using or a text view the text of what used to be there remains underneath the new text. Also the spinner.getSelectedItem() r... | android|android-fragments|textview|spinner|android-spinner | 0 | 2015-02-19T01:41:18.693Z | 2,015 | 2 | 1 | 3 | 280 | 0 | 583 | 111 | 5 | 2 | true | true | false | false | false | false | zero |
28,597,388 | Android bluetooth spp reads and writes too slow | <p>I am trying to make an android app that acts a wireless mouse for my computer. I decided to make it for Bluetooth and Wifi (the user chooses.) Wifi works incredibly but bluetooth lags a lot. All I am sending is a bunch of 2 byte arrays so I do not understand why it works so slowly. Here is my send and recieve code (... | I am trying to make an android app that acts a wireless mouse for my computer. I decided to make it for Bluetooth and Wifi (the user chooses.) Wifi works incredibly but bluetooth lags a lot. All I am sending is a bunch of 2 byte arrays so I do not understand why it works so slowly. Here is my send and recieve code (Sen... | android|bluetooth|lag|bufferedinputstream|bluecove | 1 | 2015-02-19T01:47:57.187Z | 2,015 | 2 | 1 | 3 | 923 | 1 | 379 | 47 | 5 | 2 | true | false | false | false | false | false | low |
28,597,482 | is the /data/local/tmp folder exposed for all non rooted android devices? | <p>I was able to run busybox binary on multiple non rooted android devices by copying the binary to /data/local/tmp folder using adb, although a few of the binaries did not work due to permission issues (due to SELinux). I do not have write permissions to any other folders in the device, but i was able to write to, and... | I was able to run busybox binary on multiple non rooted android devices by copying the binary to /data/local/tmp folder using adb, although a few of the binaries did not work due to permission issues (due to SELinux). I do not have write permissions to any other folders in the device, but i was able to write to, and ch... | android|adb | 3 | 2015-02-19T02:01:18.163Z | 2,015 | 2 | 2 | 3 | 3,229 | 1 | 626 | 73 | 2 | 0 | false | false | true | false | false | false | low |
28,597,483 | isScreenOn() returning true when screen is off | <p>I am trying to detect if the screen is off. Tried with <code>BroadcastReceiver</code> but didn't work as expected.</p>
<p>So i tried with Power manager <code>isScreenOn()</code> in <code>onPause()</code> and it works great.
But i noticed that when i press the power button to lock the screen and then immediately pre... | I am trying to detect if the screen is off. Tried with BroadcastReceiver but didn't work as expected. So i tried with Power manager isScreenOn() in onPause() and it works great. But i noticed that when i press the power button to lock the screen and then immediately press it again to unlock it, isScreenOn() returns tru... | android|android-screen | 0 | 2015-02-19T02:01:29.190Z | 2,015 | 2 | 2 | 3 | 3,156 | 2 | 399 | 46 | 2 | 1 | true | false | true | false | false | false | zero |
28,597,511 | Triying to play an Audio from the sdcard | <p>I write this because I have a problem when I choose an audio from the sdCard and I try to play it with MediaPlayer.</p>
<p>Here is part of my code:</p>
<pre><code>Intent intent = new Intent();
intent.setType("audio/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent... | I write this because I have a problem when I choose an audio from the sdCard and I try to play it with MediaPlayer. Here is part of my code: [CODE] And my AndroidMusica Class Constructor: [CODE] Log: [CODE] I would really appreciate your help =) | android|onactivityresult | 0 | 2015-02-19T02:05:19.390Z | 2,015 | 2 | 2 | 3 | 50 | 1 | 245 | 40 | 2 | 3 | true | false | false | false | false | false | zero |
28,597,514 | asynctask not completeing onUpdate Android Widget | <p>Morning Everyone,
Trying to get an onclick event on a widget to work, problem is that a background asynctask isn't completed before the onUpdate function which sets the pending intent. I have a little bit of familiarity with android but definitely still in the learning stage. The testing I did in an actual activit... | Morning Everyone, Trying to get an onclick event on a widget to work, problem is that a background asynctask isn't completed before the onUpdate function which sets the pending intent. I have a little bit of familiarity with android but definitely still in the learning stage. The testing I did in an actual activity wor... | android|android-asynctask|android-widget | 0 | 2015-02-19T02:05:36.680Z | 2,015 | 2 | 2 | 3 | 259 | 2 | 1,348 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
28,597,545 | UML creator for Java / Android in Eclipse? | <p>I need an free UML creator that can automatically create an UML for an Android Project. the most I could find does not really work with classes I used in my project like services, fragments and so on.. is there any tool that can do it?</p> | I need an free UML creator that can automatically create an UML for an Android Project. the most I could find does not really work with classes I used in my project like services, fragments and so on.. is there any tool that can do it? | java|android|uml | 1 | 2015-02-19T02:09:23.193Z | 2,015 | 2 | 2 | 3 | 51 | 0 | 235 | 42 | 3 | 0 | false | true | false | false | false | false | low |
28,597,676 | How to get a File from a URI? | <p>I select an image from the image gallery in my app. In the onActivityResult it returns an Intent object and I execute the getData() method on it. I get the image URI back. I am now trying to convert that in to a File so I can send it to AWS S3.
This is what I have been trying but it just returns null: </p>
<pre><co... | I select an image from the image gallery in my app. In the onActivityResult it returns an Intent object and I execute the getData() method on it. I get the image URI back. I am now trying to convert that in to a File so I can send it to AWS S3. This is what I have been trying but it just returns null: [CODE] I also try... | android|image|file|uri | 0 | 2015-02-19T02:22:40.590Z | 2,015 | 2 | 2 | 3 | 144 | 1 | 379 | 29 | 4 | 2 | true | false | false | false | false | false | zero |
28,597,688 | Detect the top of a ScrollView | <p><strong>How can I detect the TOP of a ScrollView?</strong> I have implemented code to detect the bottom, but I cannot seem to figure out the calculation that determines when the top has been reached.</p>
<pre><code> @Override
protected void onScrollChanged(int l, int t, int oldl, int oldt) {
int sta... | How can I detect the TOP of a ScrollView? I have implemented code to detect the bottom, but I cannot seem to figure out the calculation that determines when the top has been reached. [CODE] | android|scrollview|android-scrollview | 4 | 2015-02-19T02:24:02.737Z | 2,015 | 2 | 2 | 3 | 4,255 | 1 | 189 | 30 | 3 | 1 | true | false | true | false | false | false | low |
28,597,730 | Passing Events Back to the Dialog's Host when host is a RecyclerView.ViewHolder | <p>I have a list of cards with a button on each one. When clicked it opens a dialog and allows the user to select an integer value. When the dialogue is closed I want the value to be passed back to the card so some text can be updated.</p>
<p>This is the extension of the <code>RecyclerView.ViewHolder</code> <code>OnCl... | I have a list of cards with a button on each one. When clicked it opens a dialog and allows the user to select an integer value. When the dialogue is closed I want the value to be passed back to the card so some text can be updated. This is the extension of the RecyclerView.ViewHolder OnClick event for the button: [COD... | java|android|dialog | 3 | 2015-02-19T02:30:15.790Z | 2,015 | 2 | 2 | 3 | 324 | 0 | 953 | 79 | 3 | 4 | true | true | false | false | false | false | low |
28,597,777 | Android Button width design | <p>I am new to Android. I am designing a app and caught with this.
I have 3 buttons one below the other.. All buttons should be of equal width.. Text content can change dynamically.. Based on the highest width of text in any button, other buttons must take the same width.</p>
<p>Can someone tell me hw to achieve ... | I am new to Android. I am designing a app and caught with this. I have 3 buttons one below the other.. All buttons should be of equal width.. Text content can change dynamically.. Based on the highest width of text in any button, other buttons must take the same width. Can someone tell me hw to achieve this. Thanks in ... | android|android-layout|button | 0 | 2015-02-19T02:36:10.913Z | 2,015 | 2 | 2 | 3 | 165 | 2 | 328 | 27 | 3 | 0 | false | false | false | false | false | false | zero |
28,597,828 | Cordova/Phonegap best and most efficient way to store a lot of data? | <p>I am working on a cordova/phonegap android and ios application. I am using the latest versions of cordova and jquery mobile. I am currently using sqlite3 to store data. Basically I need to know the best way and also the most efficient way to store hundreds of values. The way it is, I need to store roughly 100 city n... | I am working on a cordova/phonegap android and ios application. I am using the latest versions of cordova and jquery mobile. I am currently using sqlite3 to store data. Basically I need to know the best way and also the most efficient way to store hundreds of values. The way it is, I need to store roughly 100 city name... | android|jquery|sqlite|cordova | 0 | 2015-02-19T02:43:55.787Z | 2,015 | 2 | 2 | 3 | 139 | 1 | 620 | 68 | 4 | 0 | false | false | false | false | false | false | zero |
28,597,856 | Error with Android .getDrawable() | <p>I'm trying to grab a reference to a given imageView's set drawable image and then print out a toast when that imageView is clicked on. However, the toast is printing out the following message:
"android.graphics.drawable.BitmapDrawable@6ed7c4"</p>
<p>I'd like the readout to register as "black_knight", which is the ... | I'm trying to grab a reference to a given imageView's set drawable image and then print out a toast when that imageView is clicked on. However, the toast is printing out the following message: "android.graphics.drawable.BitmapDrawable@6ed7c4" I'd like the readout to register as "black_knight", which is the name of the ... | java|android|xml | 0 | 2015-02-19T02:46:54.157Z | 2,015 | 2 | 2 | 3 | 430 | 2 | 436 | 33 | 3 | 2 | true | false | false | false | false | false | zero |
28,597,939 | How do i predefine a flag in sharedPreferences? | <p>I want to define a flag in android sharedPreferences to check whether a service is running or not, but it can't be at runtime, so is it possible to do it somehow in xml? also, is there anyway that i can check whether a service is running or not?</p> | I want to define a flag in android sharedPreferences to check whether a service is running or not, but it can't be at runtime, so is it possible to do it somehow in xml? also, is there anyway that i can check whether a service is running or not? | android|sharedpreferences | 0 | 2015-02-19T02:59:20.943Z | 2,015 | 2 | 2 | 3 | 101 | 1 | 245 | 47 | 2 | 0 | false | false | false | false | false | false | zero |
28,597,960 | How to trim Characters in Android? | <p>I am getting http response as an array from php in android. The response i sent is a ULR. When i get it, it comes as:</p>
<pre><code>["http:\/\/karan.development.com\/Image_android\/upload_image_14552.jpg"]
</code></pre>
<p>I tried to remove the charachters as:</p>
<pre><code>String trim;
trim = beforeTrim.repla... | I am getting http response as an array from php in android. The response i sent is a ULR. When i get it, it comes as: [CODE] I tried to remove the charachters as: [CODE] here, "beforeTrim" is a string where the url is stored. But unfortunately it dosen't works. Please anyone help | java|android|eclipse|string | 2 | 2015-02-19T03:01:04.193Z | 2,015 | 2 | 3 | 3 | 2,273 | 2 | 280 | 34 | 4 | 2 | true | false | false | false | false | false | low |
28,598,048 | Get django OAuth2 Toolkit access token from android client | <p>Please, can you help me how can i Get django OAuth2 Toolkit access token from android client like we do it with curl ? I tried many ways in vain for several days. For other information I use retrofit as android http library.</p> | Please, can you help me how can i Get django OAuth2 Toolkit access token from android client like we do it with curl ? I tried many ways in vain for several days. For other information I use retrofit as android http library. | android|django|oauth-2.0|retrofit|oauth2-toolkit | 0 | 2015-02-19T03:13:01.233Z | 2,015 | 2 | 3 | 3 | 891 | 1 | 224 | 58 | 5 | 0 | false | false | false | false | false | false | zero |
28,598,083 | I can not refer to the SharedPreferences from my module | <p>I created a module in my project. This module has a name "Connector". Now I create in MainActivity</p>
<pre><code> private SharedPreferences sPref;
private SharedPreferences.Editor editor;
sPref = getPreferences(MODE_PRIVATE);
</code></pre>
<p>and fill data.</p>
<pre><code>editor.putString("sessionId",... | I created a module in my project. This module has a name "Connector". Now I create in MainActivity [CODE] and fill data. [CODE] Now I need to take the data from the SharedPreferences in my module "Connector". the problem is that the module "Connector" connects to the application [CODE] and classes that are in it, do no... | android|sharedpreferences | 4 | 2015-02-19T03:19:57.930Z | 2,015 | 2 | 3 | 3 | 1,191 | 3 | 395 | 55 | 2 | 4 | true | false | false | false | false | false | low |
28,598,085 | Cannot resolve symbol in multiple places | <p>I've started learning android development in android studio and was doing this <a href="http://www.techrepublic.com/blog/software-engineer/a-quick-tutorial-on-coding-androids-accelerometer/" rel="nofollow">tutorial</a>. I followed the steps and copied the code but when I got to the end I had the errors</p>
<p>"Cann... | I've started learning android development in android studio and was doing this tutorial . I followed the steps and copied the code but when I got to the end I had the errors "Cannot resolve symbol 'main'", "Cannot resolve symbol 'horizontal'" and "Cannot resolve symbol 'vertical'" in my main.java file. I will add the c... | android | 0 | 2015-02-19T03:20:21.810Z | 2,015 | 2 | 3 | 3 | 894 | 2 | 412 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
28,598,105 | Android - android.content.res.Resources$NotFoundException: Resource ID #0x0 | <p>I'm trying to write an Android app that would browse the files on a phone. When I run the app on the emulator, I get the following errors:</p>
<pre><code>02-18 22:14:17.839: E/AndroidRuntime(896): FATAL EXCEPTION: main
02-18 22:14:17.839: E/AndroidRuntime(896): android.content.res.Resources$NotFoundException: R... | I'm trying to write an Android app that would browse the files on a phone. When I run the app on the emulator, I get the following errors: [CODE] Here's the java code for FileArrayAdapter.java: [CODE] UPDATE Here's the Item.java code: [CODE] | android|exception|resources|android-arrayadapter | 13 | 2015-02-19T03:23:09.830Z | 2,015 | 2 | 3 | 3 | 36,753 | 3 | 241 | 75 | 4 | 3 | true | false | true | true | true | false | medium |
28,598,124 | How to send request post method in svc(soap) service in android? | <p>I don't know how to send request in post method in soap service.Please someone help me to resolve this.</p>
<p>Here is my code so far.</p>
<pre><code>//Code
String NAMESPACE = "http://tempuri.org/";
String METHOD_NAME = "Login";
String SOAP_ACTION = "http://tempuri.org/Login";
String URL = "http://hostname/AllServ... | I don't know how to send request in post method in soap service.Please someone help me to resolve this. Here is my code so far. [CODE] Basic Header Authentication: Every method call from the API requires basic header authentication User Name: Password: Method Type: POST Return type is json format. | android|soap | 0 | 2015-02-19T03:25:01.827Z | 2,015 | 2 | 3 | 3 | 306 | 1 | 298 | 64 | 2 | 1 | true | false | false | false | false | false | zero |
28,598,210 | Setting the theme for an android app dynamically with setTheme() | <p>I have an activity that extends ActionBarActivity (extended to be able to display the actionbar in my listFragment). I am attempting to set the theme using setTheme() like this within the OnCreate() method of my activity:</p>
<pre><code>setTheme(R.style.AppTheme);
setContentView(R.layout.holder);
</code></pre>
<p>... | I have an activity that extends ActionBarActivity (extended to be able to display the actionbar in my listFragment). I am attempting to set the theme using setTheme() like this within the OnCreate() method of my activity: [CODE] However, I get this error message: [CODE] When in fact the style I am using as an argument ... | android|android-fragments | 0 | 2015-02-19T03:38:05.130Z | 2,015 | 2 | 3 | 3 | 774 | 2 | 419 | 64 | 2 | 3 | true | false | false | false | false | false | zero |
28,598,219 | Customized CheckBox not switching button images on being checked / unchecked (Android) | <p>So I've been trying to customize the way my CheckBox looks, and have diligently followed the methods posted on SO and other sites. I wrote a drawable XML and placed it in the drawables folder. This is the code that went in it.<br>
This is my customchecker.xml placed in the drawables folder.</p>
<pre><code><?xml ... | So I've been trying to customize the way my CheckBox looks, and have diligently followed the methods posted on SO and other sites. I wrote a drawable XML and placed it in the drawables folder. This is the code that went in it. This is my customchecker.xml placed in the drawables folder. [CODE] This is my layout XML fil... | android|checkbox|customization | 1 | 2015-02-19T03:39:11.240Z | 2,015 | 2 | 3 | 3 | 1,511 | 2 | 923 | 86 | 3 | 3 | true | false | false | false | false | false | low |
28,598,333 | Setting the properties for ScrollView in LinearLayout - Android | <p>How do I set the properties for the following ScrollView's present in both LinearLayout so that they are scrollable. I'm programmatically adding views to both LinearLayouts.
</p>
<pre><code> <ScrollView >
<LinearLayout
android:id="@+id/linearLeft"
android:layout_wi... | How do I set the properties for the following ScrollView's present in both LinearLayout so that they are scrollable. I'm programmatically adding views to both LinearLayouts. [CODE] | android|android-layout|scrollview|android-scrollview | 1 | 2015-02-19T03:53:42.323Z | 2,015 | 2 | 3 | 3 | 610 | 1 | 180 | 63 | 4 | 1 | true | false | false | false | false | false | low |
28,598,389 | Android - changing textSize of TextView attached to ViewHolder in RecyclerView.Adapter | <p>I use GridLayoutManager in RecyclerView for three different situation (1 column, 2 columns, 3 columns), but I also need change textSize of TextView attached to ViewHolder in RecyclerView.Adapter.</p>
<p>Activity code:</p>
<pre><code>mLayoutManager = new GridLayoutManager(this, numberOfColumns);
mRecyclerView = (R... | I use GridLayoutManager in RecyclerView for three different situation (1 column, 2 columns, 3 columns), but I also need change textSize of TextView attached to ViewHolder in RecyclerView.Adapter. Activity code: [CODE] Adapter: [CODE] ... [CODE] When i try: [CODE] Compiler return null reference. Any idea please? | android|adapter|textview|layout-manager|android-recyclerview | 2 | 2015-02-19T03:59:40.253Z | 2,015 | 2 | 3 | 3 | 3,779 | 2 | 312 | 86 | 5 | 4 | true | false | true | false | false | false | low |
28,598,392 | MonoTouch Exception not getting caught on device | <p>I am working on an app which was previously developed without using Storyboards, i.e. all the views were created in code. So as per <a href="https://stackoverflow.com/questions/22126929/mvvmcross-support-for-xamarin-ios-storyboards">this</a> link, I am trying to pass a custom <code>MvxTouchViewsContainer</code> to <... | I am working on an app which was previously developed without using Storyboards, i.e. all the views were created in code. So as per this link, I am trying to pass a custom MvxTouchViewsContainer to MvxTouchSetup.CreateTouchViewsContainer . [CODE] Basically I try to find a storyboard if present, else I fallback to loadi... | ios|xamarin.ios|xamarin|xamarin.android|mvvmcross | 1 | 2015-02-19T04:00:17.230Z | 2,015 | 2 | 4 | 3 | 295 | 1 | 716 | 48 | 5 | 1 | true | false | false | false | false | false | low |
28,598,481 | Android Multiple events not firing | <p>I have OnTouchListener and OnItemClickListener attached to ListView and for some reason OnTouchListener is getting fired but it stops OnItemClickListener from firing ? Any suggesstion on how to go about this ?</p> | I have OnTouchListener and OnItemClickListener attached to ListView and for some reason OnTouchListener is getting fired but it stops OnItemClickListener from firing ? Any suggesstion on how to go about this ? | android | 0 | 2015-02-19T04:11:33.793Z | 2,015 | 2 | 4 | 3 | 35 | 1 | 209 | 34 | 1 | 0 | false | false | false | false | false | false | zero |
28,598,503 | Get count result from mysql select and parse to TextView | <p>Sorry for the question, seems to be easy... I think that something wrong on json parse or php response (i do not know yet).</p>
<p>I spent the day searching here on the site and some tutorials. Already evolved enough, but still missing a little.</p>
<p>The problem is: I am trying to get a result from a SELECT COUN... | Sorry for the question, seems to be easy... I think that something wrong on json parse or php response (i do not know yet). I spent the day searching here on the site and some tutorials. Already evolved enough, but still missing a little. The problem is: I am trying to get a result from a SELECT COUNT... and when I see... | java|php|android|mysql|json | 0 | 2015-02-19T04:14:48.290Z | 2,015 | 2 | 4 | 3 | 1,288 | 3 | 461 | 56 | 5 | 2 | true | false | false | false | false | false | zero |
28,598,600 | What's wrong with Android-Studio imports | <p>Apparently Google no longer supports the Eclipse Android IDE, and I've been having some odd problems with imports in Android studio. When I pasted a code snipped with <code>ContextMenu menu</code>, it wouldn't import it, even with alt+enter it would not show the appropriate <code>android.view.ContextMenu</code>.</p>... | Apparently Google no longer supports the Eclipse Android IDE, and I've been having some odd problems with imports in Android studio. When I pasted a code snipped with ContextMenu menu , it wouldn't import it, even with alt+enter it would not show the appropriate android.view.ContextMenu . Now I pasted an example with L... | java|android|android-studio|constants | 0 | 2015-02-19T04:28:09.380Z | 2,015 | 2 | 4 | 3 | 153 | 1 | 670 | 40 | 4 | 0 | false | false | false | false | false | false | zero |
28,598,605 | How can I process multiple push notifications in Android, before doing action | <p>In my chat app I send push notifications for new messages. Normally when app receives push it will send request to server to fetch info for new messages. My problem rise when user is offline for long time, and lot of pushes accumulated for that user. Then when he comes back online he receives all pushes at once.
S... | In my chat app I send push notifications for new messages. Normally when app receives push it will send request to server to fetch info for new messages. My problem rise when user is offline for long time, and lot of pushes accumulated for that user. Then when he comes back online he receives all pushes at once. So whe... | android|push-notification|google-cloud-messaging | 1 | 2015-02-19T04:28:40.270Z | 2,015 | 2 | 4 | 3 | 541 | 1 | 659 | 77 | 3 | 1 | true | false | false | false | false | false | low |
28,598,675 | android.database.sqlite.SQLiteException:table abc has no column named xyz | <p>I am getting following error while trying to insert records in SQLite database- </p>
<blockquote>
<p>android.database.sqlite.SQLiteException: table jolly has no column named noOfShares (code 1): , while compiling: INSERT INTO jolly(noOfShares,id,noOfMustGos,noOfSeen,caption,noOfBeenTheres,location) VALUES (?,... | I am getting following error while trying to insert records in SQLite database- android.database.sqlite.SQLiteException: table jolly has no column named noOfShares (code 1): , while compiling: INSERT INTO jolly(noOfShares,id,noOfMustGos,noOfSeen,caption,noOfBeenTheres,location) VALUES (?,?,?,?,?,?,?) I failed to unders... | android|database|sqlite | -1 | 2015-02-19T04:36:45.583Z | 2,015 | 2 | 4 | 3 | 1,765 | 2 | 640 | 73 | 3 | 2 | true | false | false | false | false | true | negative |
28,598,728 | progress bar is smaller than its drawable causing the image to truncate | <p>I am using custom progress bar with 2 images. One for background and one for the actual progress. Here is my xml for the progress bar</p>
<pre><code> <ProgressBar
android:id="@+id/pbGold"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="wrap_content"
a... | I am using custom progress bar with 2 images. One for background and one for the actual progress. Here is my xml for the progress bar [CODE] And here is my gold_progressbar [CODE] The problem is that the progress bar on the screen is smaller than it should be. I am using wrap content so I was expecting it to have the s... | android|android-layout|progress-bar | 2 | 2015-02-19T04:44:07.127Z | 2,015 | 2 | 4 | 3 | 531 | 0 | 642 | 71 | 3 | 2 | true | true | false | false | false | false | low |
28,598,762 | Error in ArrayAdapter - layout inflator thows error | <p>Am getting the following warning in Eclipse:</p>
<pre><code>"Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling"
</code></pre>
<p>The code which i had used is:</p>
<pre><code>class myadapter ex... | Am getting the following warning in Eclipse: [CODE] The code which i had used is: [CODE] Am getting warning in the line : View row = inflator.inflate(R.layout.single_row, parent, false); And it causes my android application to Force Close... What can i do it now?? Any Suggestions??? | android|android-arrayadapter|layout-inflater | 1 | 2015-02-19T04:47:25.090Z | 2,015 | 2 | 4 | 3 | 954 | 5 | 283 | 51 | 3 | 2 | true | false | false | false | false | false | low |
28,598,770 | Android EditText convert string to integer error | <p>My application forced closed when I try to convert the editText String to integer and I don't know why. I think i'm converting it right.
What supposed to be the problem? Thanks in advance.</p>
<pre><code>edX = (EditText) findViewById (R.id.dh);
path.setOnClickListener(new OnClickListener(){
@Override
... | My application forced closed when I try to convert the editText String to integer and I don't know why. I think i'm converting it right. What supposed to be the problem? Thanks in advance. [CODE] | android | 1 | 2015-02-19T04:48:37.147Z | 2,015 | 2 | 4 | 3 | 114 | 3 | 195 | 48 | 1 | 1 | true | false | false | false | false | false | low |
28,598,793 | How to remove html tags from listview? | <p>I am using json parsing and I am getting response from server and in my response it contains some html tags,and it displays in my listview..I am using imageview and textview in my listview..how to remove html tags?</p>
<p>response </p>
<pre><code>[
{
"title_tag":"business",
"description":"<p>\r\n\t&l... | I am using json parsing and I am getting response from server and in my response it contains some html tags,and it displays in my listview..I am using imageview and textview in my listview..how to remove html tags? response [CODE] Myadapter [CODE] } | android|html|json|listview | -1 | 2015-02-19T04:50:16.807Z | 2,015 | 2 | 4 | 3 | 1,366 | 3 | 249 | 38 | 4 | 2 | true | false | false | false | false | true | negative |
28,598,860 | Rectangles will not draw when I call the .invalidate method? | <p>I am trying to draw rectangles on the screen which I will later add code to make them move across the screen as the objective of the game I am making is to tilt a ball through gaps in the rectangles to keep them from pushing the ball off the screen. Here is some code from the game activity:</p>
<pre><code>public cl... | I am trying to draw rectangles on the screen which I will later add code to make them move across the screen as the objective of the game I am making is to tilt a ball through gaps in the rectangles to keep them from pushing the ball off the screen. Here is some code from the game activity: [CODE] And here is the Recta... | java|android | 1 | 2015-02-19T04:56:59.483Z | 2,015 | 2 | 4 | 3 | 82 | 0 | 557 | 60 | 2 | 2 | true | true | false | false | false | false | low |
28,598,861 | How to add the layout dynamically | <p>I want to add the layout dynamically. Actually in my app i am making comment section. The view for comment i have made in the LinearLayout and inside that i have added the ImageView(UserPics), Edittext and Post button.</p>
<p>XML for comments is like this:</p>
<pre><code><LinearLayout
android:id="@+id/commm... | I want to add the layout dynamically. Actually in my app i am making comment section. The view for comment i have made in the LinearLayout and inside that i have added the ImageView(UserPics), Edittext and Post button. XML for comments is like this: [CODE] Now, since multiple user can add the comments . I want as soon ... | android|android-layout | -3 | 2015-02-19T04:57:10.113Z | 2,015 | 2 | 4 | 3 | 86 | 2 | 428 | 33 | 2 | 1 | true | false | false | false | false | true | negative |
28,598,905 | How can I get status of other Apps downloads in my Download Manager App? | <p>I am trying to develop an app which can show the downloading status of all files.</p>
<p>e.g. someone start download an apk from Google play, i want to show the status of this file in my app.</p> | I am trying to develop an app which can show the downloading status of all files. e.g. someone start download an apk from Google play, i want to show the status of this file in my app. | android|android-download-manager | 0 | 2015-02-19T05:00:08.933Z | 2,015 | 2 | 5 | 3 | 193 | 1 | 184 | 72 | 2 | 0 | false | false | false | false | false | false | zero |
28,598,969 | How to fetch data from SQLite and store it to List column and convert to .pdf automatically | <p>I am very novice programmer in Android. My query is to fetch data from SQLite and then reflect all data in to list column . now when i click on button, that all data must be converted in .pdf format with good tabularised format... Millions of thank in advance..</p>
<pre><code>public class Details_List extends Activ... | I am very novice programmer in Android. My query is to fetch data from SQLite and then reflect all data in to list column . now when i click on button, that all data must be converted in .pdf format with good tabularised format... Millions of thank in advance.. [CODE] | android|android-intent|android-activity|android-fragments | -2 | 2015-02-19T05:06:39.120Z | 2,015 | 2 | 5 | 3 | 621 | 1 | 268 | 91 | 4 | 1 | true | false | false | false | false | true | negative |
28,599,077 | Dynamically hide/show markers when indoor maps floor changed in android | <p>I am creating one google indoor map application as a part of my project. As of now i just try to create some working prototype before main application gets starts. As of now i am using one college location where i can find indoor maps available.</p>
<p>My main goal is show markers with windowInfo on different floor... | I am creating one google indoor map application as a part of my project. As of now i just try to create some working prototype before main application gets starts. As of now i am using one college location where i can find indoor maps available. My main goal is show markers with windowInfo on different floors locations... | android|google-maps|google-maps-markers|google-maps-android-api-2|google-indoor-maps | 1 | 2015-02-19T05:16:00.333Z | 2,015 | 2 | 5 | 3 | 1,330 | 2 | 1,206 | 71 | 5 | 0 | false | false | false | false | false | false | low |
28,599,081 | How to show progress dialog even touch the screen in Android | <p>I am using progress dialog to retrieve Flickr photos, my requirement is to 1)Display progress dialog even I touch the screen and also
2)If I click back button the asyn task should cancel and go back to previous page</p>
<p>second requirement here i tried, it is coming but i am not getting first requirement. cou... | I am using progress dialog to retrieve Flickr photos, my requirement is to 1)Display progress dialog even I touch the screen and also 2)If I click back button the asyn task should cancel and go back to previous page second requirement here i tried, it is coming but i am not getting first requirement. could you please h... | android|progressdialog | 0 | 2015-02-19T05:16:17.487Z | 2,015 | 2 | 5 | 3 | 869 | 2 | 536 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
28,599,158 | Bluetooth enabling disrupts broadcastreceiver | <p>My app is designed to append all scanned Bluetooth devices to a <code>textview</code>. This works great if the phones Bluetooth is on. However, if my app checks to see if the phones Bluetooth is off and turns it on if it is off, then start my the discovery process my <code>broadcastreciever</code> does not pick up... | My app is designed to append all scanned Bluetooth devices to a textview . This works great if the phones Bluetooth is on. However, if my app checks to see if the phones Bluetooth is off and turns it on if it is off, then start my the discovery process my broadcastreciever does not pick up an event and so my textview d... | java|android|bluetooth | 0 | 2015-02-19T05:25:21.217Z | 2,015 | 2 | 5 | 3 | 58 | 2 | 434 | 45 | 3 | 3 | true | false | false | false | false | false | zero |
28,599,226 | Run Backgroung thread , when activity is created | <p>I am new to Android Programming. I am making an App which requires "OnlineMode" as well as "OfflineMode". I researched a lot about the topic and first step is to check for internet connectivity continously. Just like big apps like "WhatsApp" "Hike" etc use. Now I tried to create a thread which will run in background... | I am new to Android Programming. I am making an App which requires "OnlineMode" as well as "OfflineMode". I researched a lot about the topic and first step is to check for internet connectivity continously. Just like big apps like "WhatsApp" "Hike" etc use. Now I tried to create a thread which will run in background , ... | java|android|multithreading | -1 | 2015-02-19T05:30:42.477Z | 2,015 | 2 | 5 | 3 | 212 | 1 | 894 | 48 | 3 | 5 | true | false | false | false | false | true | negative |
28,599,230 | How to register to GCM and Post to our Server at single attempt? | <p>I am successful in registering to GCM server and posting registration id to our server but it is taking two attempts to complete the whole cycle. I need to do all these in single attempt. I am adding my code below please correct me if I am wrong.
First attempt: It will register to gcm server.
Second attempt : It wil... | I am successful in registering to GCM server and posting registration id to our server but it is taking two attempts to complete the whole cycle. I need to do all these in single attempt. I am adding my code below please correct me if I am wrong. First attempt: It will register to gcm server. Second attempt : It will r... | android|google-cloud-messaging | -1 | 2015-02-19T05:30:48.657Z | 2,015 | 2 | 5 | 3 | 91 | 1 | 348 | 64 | 2 | 1 | true | false | false | false | false | true | negative |
28,599,269 | Track multiple users locations real time (among all logged in users)? | <p><img src="https://i.stack.imgur.com/g5UH7.png" alt="Search Fragment"></p>
<p>Refer to the image. I am trying to build a POC where upon search the users current location is included in the search results (not all users but only the users returned in the search. All these users are are already logged in my app and i ... | Refer to the image. I am trying to build a POC where upon search the users current location is included in the search results (not all users but only the users returned in the search. All these users are are already logged in my app and i know their user id already. I tried running a service so i can get users location... | android|mobile|location-services | 0 | 2015-02-19T05:33:52.147Z | 2,015 | 2 | 5 | 3 | 671 | 1 | 1,221 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
28,599,299 | Realm gets NullPointerException when I try to delete in Android | <p>I have an Android app that shows a routes in a map, I receive the data from my own web services in JSON like this:</p>
<p>The "available" fields indicates if this routes is still active (true) or no (false). My code is the following:</p>
<p>If the route is active is necessary create or uptade (if just exists)</p>
... | I have an Android app that shows a routes in a map, I receive the data from my own web services in JSON like this: The "available" fields indicates if this routes is still active (true) or no (false). My code is the following: If the route is active is necessary create or uptade (if just exists) [CODE] And works perfec... | android|realm | -1 | 2015-02-19T05:36:30.093Z | 2,015 | 2 | 5 | 3 | 881 | 1 | 757 | 63 | 2 | 4 | true | false | false | false | false | true | negative |
28,599,307 | UnsupportedOperationException: Can't convert to color: type=0x1 | <p>I am running my application in nexus 7 with api 21.When app opens from background
it force close with following exception</p>
<pre><code>java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
at android.content.res.TypedArray.getColor(TypedArray.java:404)
</code></pre>
<p>Log cat </p>
... | I am running my application in nexus 7 with api 21.When app opens from background it force close with following exception [CODE] Log cat [CODE] I am using the theme AppTheme for the application. [CODE] Color values is [CODE] I can't find the reason for this.Any help? | android|android-styles | 1 | 2015-02-19T05:37:15.090Z | 2,015 | 2 | 5 | 3 | 6,295 | 1 | 267 | 63 | 2 | 4 | true | false | true | false | false | false | low |
28,599,329 | Link module from external project in Android Studio | <p>I'm migrating all my project from Eclipse to Android Studio (1.0.2, just download it yesterday) but having issue with external module.</p>
<p>In Eclipse, I have workspace like this</p>
<p><img src="https://i.stack.imgur.com/xOfya.jpg" alt="enter image description here"></p>
<p>All the activities, fragments, model... | I'm migrating all my project from Eclipse to Android Studio (1.0.2, just download it yesterday) but having issue with external module. In Eclipse, I have workspace like this All the activities, fragments, models and classes are in 'Core' project. The Core project required some libraries to work (Such as Google Play Ser... | android|android-studio|android-gradle-plugin | 19 | 2015-02-19T05:39:04.783Z | 2,015 | 2 | 5 | 3 | 2,555 | 1 | 1,807 | 51 | 3 | 3 | true | false | false | false | true | false | medium |
28,599,349 | Integer Array to String Array | <p>want to change integer array to string array for viewing images in gridview.Arrayadapter only supports string arrays for animation in android `</p>
<pre><code>int[] resource={R.drawable.chinanight,R.drawable.huhu,R.drawable.jkjkj,R.drawable.kkk};
String aa=Arrays.toString(resource);
String[] ay=aa.split(aa);
GridV... | want to change integer array to string array for viewing images in gridview.Arrayadapter only supports string arrays for animation in android ` [CODE] Pls Help | android|arrays|gridview | 1 | 2015-02-19T05:41:32.300Z | 2,015 | 2 | 5 | 3 | 471 | 1 | 159 | 29 | 3 | 1 | true | false | false | false | false | false | low |
28,599,377 | How to run Volley in fragment(Navigation Drawer)? | <p>I want to call volley by clicking new item in navigation drawer.<br>
How to run Volley from Fragment?
I can run volley easily in activities but it is showing error in "this". i.e.</p>
<pre><code>// Instantiate the RequestQueue.
RequestQueue queue = Volley.newRequestQueue(this);
</code></pre>
<p>in above code
How t... | I want to call volley by clicking new item in navigation drawer. How to run Volley from Fragment? I can run volley easily in activities but it is showing error in "this". i.e. [CODE] in above code How to run volley in Fragment? in Navigation Drawer? I am doing this: [CODE] please give me idea. | android|android-fragments|connection|android-volley|navigation-drawer | 4 | 2015-02-19T05:43:29.970Z | 2,015 | 2 | 5 | 3 | 16,878 | 2 | 294 | 49 | 5 | 2 | true | false | true | true | false | false | low |
28,599,452 | Need help in Android View Pager | <p>Okay, i'm creating a simple view pager where you can swipe between different fragments. i have used PagerAdapter to be able to swipe between these fragment. </p>
<p>Now how do i get rid of these black highlight thing that appears when i try to swipe to an empty position. (See in picture)</p>
<p><img src="https://i... | Okay, i'm creating a simple view pager where you can swipe between different fragments. i have used PagerAdapter to be able to swipe between these fragment. Now how do i get rid of these black highlight thing that appears when i try to swipe to an empty position. (See in picture) Any codes that i need to put in the vie... | android|android-viewpager | -1 | 2015-02-19T05:49:28.207Z | 2,015 | 2 | 5 | 3 | 131 | 1 | 409 | 31 | 2 | 1 | true | false | false | false | false | true | negative |
28,599,455 | Vibrate until the button is pressed and stops vibrating when the button is unpressed (or the finger is taken off) | <p>I am planing to programe a button in such a way that when button is pressed vibration start and keeps on vibrating untill the finger is up or button is unpressed.</p>
<p>I am using on Touch Listener for this purpose.</p>
<p>My code is as follows:</p>
<pre><code>package com.example.vibrator;
import android.app.Ac... | I am planing to programe a button in such a way that when button is pressed vibration start and keeps on vibrating untill the finger is up or button is unpressed. I am using on Touch Listener for this purpose. My code is as follows: [CODE] The problem in this code is that it keeps on vibrating and when the finger is up... | java|android|vibration | 2 | 2015-02-19T05:49:39.597Z | 2,015 | 2 | 5 | 3 | 2,554 | 1 | 405 | 113 | 3 | 1 | true | false | false | false | false | false | low |
28,599,487 | Retrieve the location of files and pick one to play audio | <p>I am interested in playing a sound file (extension either .wav or .mp3) in a directory using "AudioTrack". Only thing I want to know is the file name and its path. What is the best option for such problem?</p>
<p>I put several .wav files in res/raw folder, named
wav1.wav, wav2.wav, wav3.wav, wav4.wav</p>
<p>I need... | I am interested in playing a sound file (extension either .wav or .mp3) in a directory using "AudioTrack". Only thing I want to know is the file name and its path. What is the best option for such problem? I put several .wav files in res/raw folder, named wav1.wav, wav2.wav, wav3.wav, wav4.wav I need a function looks l... | java|android|audio|file-io | 0 | 2015-02-19T05:52:33.543Z | 2,015 | 2 | 5 | 3 | 278 | 0 | 495 | 57 | 4 | 2 | true | true | false | false | false | false | zero |
28,599,547 | How to handle Display rotation in android | <p>I need to handle display rotation in android and I know about handling <code>Activity.onConfigurationChange</code> with <code>android:configChanges</code> flags in manifest, but it does not work for me.<br>
Unfortunately, onConfigurationChange is handled only when I change device orientation from portrait to landsca... | I need to handle display rotation in android and I know about handling Activity.onConfigurationChange with android:configChanges flags in manifest, but it does not work for me. Unfortunately, onConfigurationChange is handled only when I change device orientation from portrait to landscape and vice versa, but it is not ... | android|android-orientation | 1 | 2015-02-19T05:58:41.237Z | 2,015 | 2 | 5 | 3 | 123 | 1 | 545 | 41 | 2 | 0 | false | false | false | false | false | false | low |
28,599,549 | Decryption of pdf file in android | <p>I need to encrypt and decrypt the PDF file which is in external storage and did encryption using AES algorithm.</p>
<p>Now i need to decrypt the file which as encrypted,tried to decrypt and get byte then convert to string to show in textview but it showing data in encrypted form in textview...</p>
<p><strong>Code ... | I need to encrypt and decrypt the PDF file which is in external storage and did encryption using AES algorithm. Now i need to decrypt the file which as encrypted,tried to decrypt and get byte then convert to string to show in textview but it showing data in encrypted form in textview... Code is here which i tried: [COD... | android|pdf|encryption | 1 | 2015-02-19T05:58:43.680Z | 2,015 | 2 | 5 | 3 | 1,748 | 1 | 429 | 33 | 3 | 1 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.