id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,894,377 | Accessing property of casted object returning unexpected results on Android | <p>I have a snippet of code that casts a TFmxObject to a TForm and accesses it's Height and Width properties that works fine. AControl is a standard TControl, and the Parent property is a TfmxObject. edited: I am first checking with the IS keyword that the parent is in fact a TForm.</p>
<pre><code>LPar:=TControl.Creat... | I have a snippet of code that casts a TFmxObject to a TForm and accesses it's Height and Width properties that works fine. AControl is a standard TControl, and the Parent property is a TfmxObject. edited: I am first checking with the IS keyword that the parent is in fact a TForm. [CODE] On Windows, this code returns th... | android|delphi|firemonkey|delphi-10-seattle | 1 | 2016-04-27T15:32:17.443Z | 2,016 | 4 | 15 | 2 | 75 | 1 | 1,038 | 75 | 4 | 2 | true | false | false | false | false | false | low |
36,894,384 | Android move background continuously with animation | <p>What I want to do is move the background horizontally and have it repeat infinitely.</p>
<p>I tried using an <code>ImageSwitcher</code> with animation to give this effect, but couldn't get it to work right. This is the code I have so farL</p>
<pre><code>public class MainActivity extends AppCompatActivity implement... | What I want to do is move the background horizontally and have it repeat infinitely. I tried using an ImageSwitcher with animation to give this effect, but couldn't get it to work right. This is the code I have so farL [CODE] | java|android|android-animation | 25 | 2016-04-27T15:32:30.380Z | 2,016 | 4 | 15 | 2 | 34,943 | 2 | 225 | 51 | 3 | 1 | true | false | true | true | true | false | high |
36,894,481 | Xamarin Android Azure Mobile App .NET authentication with Azure Active Directory | <p>I am trying to get the Authentication to work for the Xamarin Field Engineer Mobile App. I have the Xamarin working with my Azure SQL db without authentication. Although I have followed the setup of Custom Azure Active Directory correctly and can access it via fiddler, the code I am using doesn't complete the access... | I am trying to get the Authentication to work for the Xamarin Field Engineer Mobile App. I have the Xamarin working with my Azure SQL db without authentication. Although I have followed the setup of Custom Azure Active Directory correctly and can access it via fiddler, the code I am using doesn't complete the access to... | .net|authentication|xamarin.android|azure-active-directory|azure-mobile-services | 1 | 2016-04-27T15:36:52.067Z | 2,016 | 4 | 15 | 2 | 207 | 1 | 587 | 80 | 5 | 1 | true | false | false | false | false | false | low |
36,894,498 | Integer - ArrayList - | <p>I am facing problem in retrieving and putting integers in an <code>ArrayList</code>. Logcat shows nothing</p>
<pre><code>public void GetRecipes(String meal_cat_selected, ArrayList<String> User_Main_Ing) {
SQLiteDatabase db = this.getReadableDatabase();
User_Main_Ingredients = User_Main_Ing;
... | I am facing problem in retrieving and putting integers in an ArrayList . Logcat shows nothing [CODE] | java|android|sqlite | -1 | 2016-04-27T15:37:39.837Z | 2,016 | 4 | 15 | 2 | 61 | 1 | 100 | 21 | 3 | 1 | true | false | false | false | false | true | negative |
36,894,588 | How to find specific desktop's ip address on network? | <p>I'm coding an app which consist of two pieces. Desktop and android. There is one desktop and several android devices. (don't know the count.) I want to communicate android devices between desktop with TCP. However, android devices doesn't know desktop's lan ip address. </p>
<p>I thouht 2 ways:</p>
<p>1-Desktop app... | I'm coding an app which consist of two pieces. Desktop and android. There is one desktop and several android devices. (don't know the count.) I want to communicate android devices between desktop with TCP. However, android devices doesn't know desktop's lan ip address. I thouht 2 ways: 1-Desktop app changes the local i... | java|android|sockets|networking | 0 | 2016-04-27T15:41:10.563Z | 2,016 | 4 | 15 | 2 | 92 | 2 | 1,112 | 53 | 4 | 0 | false | false | false | false | false | false | zero |
36,894,642 | NFC tag changed its available technologies (IsoDep, NfcA and Ndef to only IsoDep and NfcA) | <p>I'm working on an Android application to interface between a mobile phone and a specific chip that supports NFC, which is called the NF4 chip and is manufactured by EM Microelectronic. Here is a link to the datasheet of this chip: <a href="http://www.emmicroelectronic.com/sites/default/files/public/products/datashee... | I'm working on an Android application to interface between a mobile phone and a specific chip that supports NFC, which is called the NF4 chip and is manufactured by EM Microelectronic. Here is a link to the datasheet of this chip: http://www.emmicroelectronic.com/sites/default/files/public/products/datasheets/nf4-fs.pd... | android|tags|nfc | 5 | 2016-04-27T15:43:08.397Z | 2,016 | 4 | 15 | 2 | 1,159 | 0 | 2,006 | 90 | 3 | 0 | false | true | false | false | false | false | low |
36,894,763 | Pass parameters to volley with the PUT method | <p>I'm using this simple code :</p>
<pre><code>JsonObjectRequest req = new JsonObjectRequest(Request.Method.PUT, url, null, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
delegate.postNotificationSucced();
}
}, new Response.ErrorListener() {
... | I'm using this simple code : [CODE] When I use the Request.Method.GET or POST instead of PUT , the getParams() method is called but not with the PUT method. My problem is that my API requires a PUT method. How can I pass my parameters using the PUT method. Edit : With the PUT method the getHeaders() method is called, s... | java|android|android-volley|put | 2 | 2016-04-27T15:48:39.240Z | 2,016 | 4 | 15 | 2 | 1,495 | 1 | 1,183 | 45 | 4 | 1 | true | false | false | false | false | false | low |
36,894,898 | Can't generate apk: zipalign.exe finished with non-zero exit value 1 | <p>I try to generate apk for an app. </p>
<p>Here is the <strong>error</strong> i got:</p>
<pre><code>Information:Gradle tasks [:MyApp:assembleRelease]
Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location 'C:\Users\MyUser\AppData\Local\Android\sdk\add-ons\addon-google_apis-google-19-1' (... | I try to generate apk for an app. Here is the error i got: [CODE] I dont't get it whats the cause ? | android|apk | -2 | 2016-04-27T15:54:36.110Z | 2,016 | 4 | 15 | 2 | 279 | 2 | 99 | 68 | 2 | 1 | true | false | false | false | false | true | negative |
36,894,970 | Invisible toolbar above my toolbar view | <p>The image below says it all. </p>
<p><a href="https://i.stack.imgur.com/bRano.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRano.png" alt="enter image description here"></a></p>
<p>The them I use for this Activity is : </p>
<pre><code> <style name="FormActivityTheme" parent="Theme.AppC... | The image below says it all. The them I use for this Activity is : [CODE] and I'm adding the Toolbar like that in my code : [CODE] The xml code is : [CODE] What am I doing wrong ? Where does the "invisible" toolbar abode my toolbar comes from ? Thank you! | android|android-toolbar | 1 | 2016-04-27T15:57:56.867Z | 2,016 | 4 | 15 | 2 | 65 | 0 | 255 | 39 | 2 | 3 | true | true | false | false | false | false | low |
36,894,990 | buttons on different locations | <p>Hello community i started working with android and android studio.
I a am new to all this, but i am trying.</p>
<p>So here is the problem,
I have 6 buttons of the same size (70x70dp)
I want this 6 buttons to be each time generated on different locations of the screen but not on the same.</p>
<p>I ve made it alread... | Hello community i started working with android and android studio. I a am new to all this, but i am trying. So here is the problem, I have 6 buttons of the same size (70x70dp) I want this 6 buttons to be each time generated on different locations of the screen but not on the same. I ve made it already but most of the t... | java|android|button|while-loop | 0 | 2016-04-27T15:58:42.530Z | 2,016 | 4 | 15 | 2 | 40 | 1 | 621 | 30 | 4 | 1 | true | false | false | false | false | false | zero |
36,895,066 | Webview not showed (only Android 6) | <p>i'm using a Webview in my App to show a website with Javascript. I am using this code:</p>
<pre><code>WebView webview = (WebView) findViewById(R.id.webView);
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setLoadWithOverviewMode(true);
webview.getSettings().setUseWideViewPort(true);
webview... | i'm using a Webview in my App to show a website with Javascript. I am using this code: [CODE] But unfortunately the Webview is not displayed on smarphones with Android 6. (other Android versions are working fine) On Android 6 here is my LogCat: http://pastebin.com/fh1Aqp0x One error I do not understand is: BindingManag... | java|android|webview | 4 | 2016-04-27T16:01:26.250Z | 2,016 | 4 | 16 | 2 | 4,257 | 4 | 429 | 35 | 3 | 1 | true | false | true | false | false | false | low |
36,895,088 | Arduino + Android USB alarm | <p>I'm trying to make an alarm for my Arduino uno 3.<br>
I wrote an application for Android and Arduino.</p>
<p>Arduino code</p>
<pre><code>const int przycisk = 2;
int buttonState = 0;
int wtes = 0;
void setup() {
Serial.begin(9600);
pinMode(przycisk, INPUT);
}
void loop() {
buttonState = digi... | I'm trying to make an alarm for my Arduino uno 3. I wrote an application for Android and Arduino. Arduino code [CODE] Android java [CODE] When I press the button, Arduino sends "TAK" to the smartphone and then Android sends an SMS. It's sending the SMS when I push the button, but not always. Why so? | java|android|arduino|usb | 1 | 2016-04-27T16:02:13.077Z | 2,016 | 4 | 16 | 2 | 108 | 0 | 300 | 27 | 4 | 2 | true | true | false | false | false | false | low |
36,895,176 | Android: How to get rid of EditText with null value using loop | <p>First of all, here is my code:</p>
<pre><code>startRandomizing.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
ArrayList<String> values = new ArrayList<>();
int idList[] = new int[]{R.id.textBox1,R.id.textBox2,R.id.textBox3,
... | First of all, here is my code: [CODE] What I want to do is get rid of all the null values so that the length (myItems.length) of the array will depend on the value inside the text boxes 1 - 6. (E.x - I have a string "Hello" in textBox1 and "World" in textBox2, and the rest empty. My desired output for myItems.length sh... | android|arrays|list|loops|android-edittext | 0 | 2016-04-27T16:05:37.780Z | 2,016 | 4 | 16 | 2 | 42 | 1 | 455 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
36,895,261 | Building BoringSSL and Conscrypt and bundling with Android apk | <p>Im sure I saw an official guide on this on the <a href="https://conscrypt.org/" rel="nofollow">conscrypt</a> project site but I cannot find this at all now. </p>
<p>Im wondering to the possibility of building BoringSSL locally and making it available via a bundled JCE <code>Provider</code> i.e. <code>Conscrypt</cod... | Im sure I saw an official guide on this on the conscrypt project site but I cannot find this at all now. Im wondering to the possibility of building BoringSSL locally and making it available via a bundled JCE Provider i.e. Conscrypt . I can see the BoringSSL project has build instructions but cant see anything about bu... | android|security|openssl|boringssl | 4 | 2016-04-27T16:09:21.783Z | 2,016 | 4 | 16 | 2 | 657 | 0 | 1,019 | 62 | 4 | 0 | false | true | false | false | false | false | low |
36,895,342 | TimePicker In android showing error | <pre><code>DialogFragment timeFragment = new TimePickerFragment();
timeFragment.show(getFragmentManager(), "timePicker");
</code></pre>
<p>I have try my time picker in my fragment like this. But in timeFragment.show()
have error displaying "cannot resolve method 'show(android.support.v4.app.FragmentManger.java.lang.s... | [CODE] I have try my time picker in my fragment like this. But in timeFragment.show() have error displaying "cannot resolve method 'show(android.support.v4.app.FragmentManger.java.lang.string)'. Here my TimePickerFragment(); [CODE] | android | 0 | 2016-04-27T16:12:59.210Z | 2,016 | 4 | 16 | 2 | 564 | 2 | 231 | 35 | 1 | 2 | true | false | false | false | false | false | zero |
36,895,433 | Recording audio in background service | <p>I am trying to record a few seconds of audio once the activity is sent to the background using the <code>moveTaskToBack(true);</code> method. I created a Service where the record starts and also set the time I want the audio to be recorded. The problem comes once it minimizes. It stops recording after 2 seconds more... | I am trying to record a few seconds of audio once the activity is sent to the background using the moveTaskToBack(true); method. I created a Service where the record starts and also set the time I want the audio to be recorded. The problem comes once it minimizes. It stops recording after 2 seconds more or less, and I ... | android|audio | 3 | 2016-04-27T16:17:15.027Z | 2,016 | 4 | 16 | 2 | 5,540 | 1 | 553 | 37 | 2 | 2 | true | false | true | false | false | false | low |
36,895,482 | Google Maps v2 - Get the object related to a marker | <p>I'm developing an app that dinamically add markers to a google map. Every marker is generated from and is related to a custom Map object through an <strong>SparseArray</strong>. This is the method that I'm using to relate the markers with the Map objects, add the markers to the map and set the MarkerCliclListener:</... | I'm developing an app that dinamically add markers to a google map. Every marker is generated from and is related to a custom Map object through an SparseArray . This is the method that I'm using to relate the markers with the Map objects, add the markers to the map and set the MarkerCliclListener: [CODE] The problem i... | android|google-maps | 0 | 2016-04-27T16:19:05.367Z | 2,016 | 4 | 16 | 2 | 495 | 1 | 608 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
36,895,483 | Java/Libgdx/Kryonet Networking iusse, sending packets causes Lag [Video attached] | <p>im currently developing a little duengon crawler. I thought lan multiplayer would be a great idea. So i started to implement that using kryonet ^^. But theres one problem. If my client hosts a server,connects to that and sends movement update packets it lags like hell O.o and i dont know why ... normally all should ... | im currently developing a little duengon crawler. I thought lan multiplayer would be a great idea. So i started to implement that using kryonet ^^. But theres one problem. If my client hosts a server,connects to that and sends movement update packets it lags like hell O.o and i dont know why ... normally all should wor... | java|android|networking|libgdx|multiplayer | 0 | 2016-04-27T16:19:10.803Z | 2,016 | 4 | 16 | 2 | 234 | 0 | 913 | 81 | 5 | 4 | true | true | false | false | false | false | zero |
36,895,688 | Pass json to JAVA / ANDROID | <p>Hi i have this api response</p>
<pre><code>{
"errors": {
"last_name": [
"required"
],
"first_name": [
"required"
],
"password": [
"required"
],
"username": [
"required"
],
"email": [
"required"
]
}
}
</code></pre>
<p>I want to pass to a Java C... | Hi i have this api response [CODE] I want to pass to a Java Collection. something like that Map < String, ArrayList > errors; but when iterate [CODE] got this [CODE] is there any way to avoid "[" and "]" maybe another type of collection(Map), or something instead of ArrayList (Map < String, ArrayList > errors;) im usin... | java|android|json|arraylist | 0 | 2016-04-27T16:29:36.177Z | 2,016 | 4 | 16 | 2 | 54 | 1 | 337 | 27 | 4 | 3 | true | false | false | false | false | false | zero |
36,895,793 | Text encryption/decryption methods Java | <p>I am working on Android project where I have to use both encryption and decryption methods. scenario as below:</p>
<ol>
<li>User type password in SignupActivity</li>
<li>user's password is encrypted</li>
<li>in Login Activity password is retrieved from data base and decrypt method is called </li>
</ol>
<p>my probl... | I am working on Android project where I have to use both encryption and decryption methods. scenario as below: User type password in SignupActivity user's password is encrypted in Login Activity password is retrieved from data base and decrypt method is called my problem is in step 3 it always return null from decrypti... | android|encryption|des | 0 | 2016-04-27T16:36:41.127Z | 2,016 | 4 | 16 | 2 | 504 | 1 | 415 | 39 | 3 | 3 | true | false | false | false | false | false | zero |
36,895,797 | How to apply random questions with Linear Congruent Generator? | <p>Previously I was using mysql order by rand () limit 15 to generate random questions with 15 questions selected and the results are successful. But what if I want to randomize the questions with Linear Congruent Generator method (LCG).</p>
<p>The heart of an LCG is the following formula:</p>
<pre><code>X(i+1) = (a ... | Previously I was using mysql order by rand () limit 15 to generate random questions with 15 questions selected and the results are successful. But what if I want to randomize the questions with Linear Congruent Generator method (LCG). The heart of an LCG is the following formula: [CODE] How do I apply? so as to generat... | php|android|mysql|json|random | 1 | 2016-04-27T16:37:00.043Z | 2,016 | 4 | 16 | 2 | 172 | 0 | 422 | 62 | 5 | 2 | true | true | false | false | false | false | low |
36,895,800 | Glide sometimes takes the whole Layout | <p>Glide's behavior is unpredectable sometimes, while using the app sometimes the ImageView looks like this:
<a href="https://i.stack.imgur.com/dsDbY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dsDbY.jpg" alt="screenshot"></a></p>
<p>Just going back (to the parent activity) and come back, withou... | Glide's behavior is unpredectable sometimes, while using the app sometimes the ImageView looks like this: Just going back (to the parent activity) and come back, without restarting the app, to the same movie result, it appears fixed (supposed appearance) like this: I don't why I have this behavior, here the xml code fo... | android|imageview|android-glide|scaletype | 0 | 2016-04-27T16:37:08.323Z | 2,016 | 4 | 16 | 2 | 238 | 1 | 406 | 38 | 4 | 2 | true | false | false | false | false | false | zero |
36,895,809 | how to use a ViewPager with more than one array of image? | <p>I have a listView and I need when the user click on the some item it shows 5 images and when he click on another item it shows 5 different images with the ViewPager.. I don't know how to change the image array that will change with each item of the listView? any ideas to do that?</p>
<p>My code :</p>
<pre><code>pu... | I have a listView and I need when the user click on the some item it shows 5 images and when he click on another item it shows 5 different images with the ViewPager.. I don't know how to change the image array that will change with each item of the listView? any ideas to do that? My code : [CODE] Here ViewPager it show... | android|android-viewpager | 0 | 2016-04-27T16:37:31.137Z | 2,016 | 4 | 16 | 2 | 843 | 3 | 341 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
36,895,946 | Android Pro-guard duplicate zip entry in .aar file | <p>In my project, i included two .aar libraries and both aar libraries have a commmon .jar file in their libs folder.
When i try to obfuscate my code using pro-guard</p>
<pre><code>>Error:Execution failed for task ':CpcCaenSample:transformClassesAndResourcesWithProguardForRelease'.
java.io.IOException: Can't writ... | In my project, i included two .aar libraries and both aar libraries have a commmon .jar file in their libs folder. When i try to obfuscate my code using pro-guard [CODE] My proguard file is [CODE] I am using android studio 1.5.1. Kindly share solution. | android|android-proguard | 0 | 2016-04-27T16:45:17.247Z | 2,016 | 4 | 16 | 2 | 568 | 1 | 252 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
36,895,988 | Android,Java,socket, determine remote host disconnect | <p>I'm trying to code a TCP client in android java. Most works fine. But i have one issue. If the socket is connected and the remeote host shuts down or the network goes down or something else, the socket.getinputstream keeps blocking.</p>
<p>I don't know if the socket is still connected. I code in objective-c too and... | I'm trying to code a TCP client in android java. Most works fine. But i have one issue. If the socket is connected and the remeote host shuts down or the network goes down or something else, the socket.getinputstream keeps blocking. I don't know if the socket is still connected. I code in objective-c too and in objecti... | java|android|sockets|block | 0 | 2016-04-27T16:46:57.650Z | 2,016 | 4 | 16 | 2 | 1,237 | 1 | 603 | 53 | 4 | 1 | true | false | false | false | false | false | zero |
36,896,082 | Android CoordinatorLayout + TabLayout + ViewPager Toolbar not hidding on scroll | <p>I'm having a problem hidding the Toolbar when I scroll. I have two layouts that I'll show here. I have the appBar and ViewPager wrapped inside a LinearLayout so the ViewPager fits entirely in the screen. I want to implement the Google Material Design Guidelines and hide the Toolbar when I scroll the ViewPager (it co... | I'm having a problem hidding the Toolbar when I scroll. I have two layouts that I'll show here. I have the appBar and ViewPager wrapped inside a LinearLayout so the ViewPager fits entirely in the screen. I want to implement the Google Material Design Guidelines and hide the Toolbar when I scroll the ViewPager (it conta... | android-viewpager|android-coordinatorlayout | 1 | 2016-04-27T16:51:54.627Z | 2,016 | 4 | 16 | 2 | 270 | 0 | 642 | 79 | 2 | 2 | true | true | false | false | false | false | low |
36,896,141 | How to add markers to current location on Google Maps v2? | <p>I am making a location based reminder app and want to know how to add markers to the current location.</p>
<p>I am using the following code:</p>
<pre><code> public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
mMap.setMapType(googleMap.MAP_TYPE_NORMAL);
LatLng sydney = new LatLng(-34, 151);
... | I am making a location based reminder app and want to know how to add markers to the current location. I am using the following code: [CODE] Is there any method to zoom the map view and/or add markers to the current location? | android|google-maps | 0 | 2016-04-27T16:54:51.377Z | 2,016 | 4 | 16 | 2 | 2,280 | 4 | 225 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
36,896,218 | how to compress image same as Whatsapp | <p>I am working on an app.</p>
<p>In which I need to compress image same as Whatsapp does in their app.</p>
<p>I have tried with many solutions such as:</p>
<p><a href="https://stackoverflow.com/questions/26928597/image-compression-like-whatsapp-and-other-messengers-on-android">Image compression like Whatsapp and ot... | I am working on an app. In which I need to compress image same as Whatsapp does in their app. I have tried with many solutions such as: Image compression like Whatsapp and other messengers on Android http://voidcanvas.com/whatsapp-like-image-compression-in-android/ https://gist.github.com/akshay1188/4749253 https://www... | android|image-compression | 1 | 2016-04-27T16:58:02.033Z | 2,016 | 4 | 16 | 2 | 9,513 | 1 | 683 | 38 | 2 | 0 | false | false | true | false | false | false | low |
36,896,313 | Get and redirect URL from result of scan QR code | <p>I'm a new android.
I have a simple application for scan QR code. But it only show result.</p>
<p><a href="http://i.stack.imgur.com/trpbm.jpg" rel="nofollow">My picture</a></p>
<p>I want it get url from this result and redirect to it</p>
<p>This is my code.</p>
<p>MainActivity.java</p>
<pre><code>package app.num... | I'm a new android. I have a simple application for scan QR code. But it only show result. My picture I want it get url from this result and redirect to it This is my code. MainActivity.java [CODE] AndroidManifest.xml [CODE] Please help me. Thank all | android | 1 | 2016-04-27T17:02:22.043Z | 2,016 | 4 | 17 | 2 | 540 | 0 | 249 | 48 | 1 | 2 | true | true | false | false | false | false | low |
36,896,319 | Android WebView cause application to crash with Fatal Signal SIGSEGV 11 | <p>I have a view that is having a webview which is loading a chart from the server. The chart displays differently for different data. </p>
<p>So I have a list which displays different analysis types and when you click on the analysis item it will take to the chartview which is the fragment with webview.</p>
<p>Now w... | I have a view that is having a webview which is loading a chart from the server. The chart displays differently for different data. So I have a list which displays different analysis types and when you click on the analysis item it will take to the chartview which is the fragment with webview. Now while switching back ... | android|android-webview | 0 | 2016-04-27T17:02:31.940Z | 2,016 | 4 | 17 | 2 | 1,478 | 1 | 453 | 71 | 2 | 1 | true | false | false | false | false | false | zero |
36,896,320 | How do I implement a button to call a method in a separate class in Android Studio | <p>I'm working on an Android experiment that's supposed to randomly generate color pallets. The user customizes how many cells the pallet has, and then pressed the dice button to randomize the colors of each pallet to generate a visually pleasant color pallet.</p>
<p>For now, I'm only attempting to implement a button ... | I'm working on an Android experiment that's supposed to randomly generate color pallets. The user customizes how many cells the pallet has, and then pressed the dice button to randomize the colors of each pallet to generate a visually pleasant color pallet. For now, I'm only attempting to implement a button that's supp... | java|android|android-studio|graphics | 0 | 2016-04-27T17:02:33.033Z | 2,016 | 4 | 17 | 2 | 65 | 3 | 1,400 | 82 | 4 | 3 | true | false | false | false | false | false | zero |
36,896,392 | Jack: Method 'void <clinit>()' not found in type | <p>I've enabled Jack in Android Studio 2.1, with build tools version 24 rc3. I started using lambda but when I try to build Gradle throws this error:</p>
<pre><code>Execution failed for task ':app:compileDebugJavaWithJack'.
> java.io.IOException: com.android.jack.api.v01.CompilationException: Method 'void <clini... | I've enabled Jack in Android Studio 2.1, with build tools version 24 rc3. I started using lambda but when I try to build Gradle throws this error: [CODE] Here: [CODE] I tried cleaning and restarting. I don't understand why is the error thrown nor I could find it on Google. Full stack: [CODE] | android | 2 | 2016-04-27T17:05:58.403Z | 2,016 | 4 | 17 | 2 | 556 | 1 | 292 | 48 | 1 | 3 | true | false | false | false | false | false | low |
36,896,517 | How to populate list view in android with connection to sql server | <p>Hi guys i have tried some codes but none work i was hoping if someone could help me. Bellow i will put my code</p>
<p>AndroidManisfest:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.andre.marques.moldartsqlserver">
&l... | Hi guys i have tried some codes but none work i was hoping if someone could help me. Bellow i will put my code AndroidManisfest: [CODE] activity_ordemfabrico.xml: [CODE] ofselect.xml: [CODE] ConnectionClass: [CODE] OrdemFabricoActivity: [CODE] This is my code the result that i get with this code it is when i go to this... | java|android|sql-server | 0 | 2016-04-27T17:11:42.817Z | 2,016 | 4 | 17 | 2 | 2,136 | 1 | 508 | 66 | 3 | 5 | true | false | false | false | false | false | zero |
36,896,538 | How to properly add property to build.gradle to access from java? | <p>I am trying to add a property to <code>build.gradle</code> (so that I can access it from MyActivity.java). </p>
<p>As per <a href="https://stackoverflow.com/questions/17197636/is-it-possible-to-declare-a-variable-in-gradle-usable-in-java">SO question</a> this is what I have done:</p>
<pre><code>// ...
buildTypes{ ... | I am trying to add a property to build.gradle (so that I can access it from MyActivity.java). As per SO question this is what I have done: [CODE] When I do this, a 'Sync Now' option appears, which I select. But when I select it, BuildConfig.java is automatically opened, and with a warning: Files under the build folder ... | android|android-studio|android-gradle-plugin|build.gradle | 1 | 2016-04-27T17:13:06.387Z | 2,016 | 4 | 17 | 2 | 738 | 1 | 863 | 65 | 4 | 2 | true | false | false | false | false | false | low |
36,896,739 | Method does not override method from its superclass | <p>Can anyone tell me, why this error is displayed (or even have a better solution)?<br>
I'm new to Java (and Android) development, so I realy don't know my fault
My Code:</p>
<pre><code>import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.... | Can anyone tell me, why this error is displayed (or even have a better solution)? I'm new to Java (and Android) development, so I realy don't know my fault My Code: [CODE] | java|android|overriding|superclass | 2 | 2016-04-27T17:23:01.157Z | 2,016 | 4 | 17 | 2 | 14,278 | 2 | 171 | 51 | 4 | 1 | true | false | true | true | false | false | low |
36,896,834 | Registering User PHP with Android Studio | <p>Hi i have this application which allows users to register to a php local host database. 1 error which i get is </p>
<p>'java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference'</p>
<p>I don't know what it means, can anyone help sort my problem.</p... | Hi i have this application which allows users to register to a php local host database. 1 error which i get is 'java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference' I don't know what it means, can anyone help sort my problem. my code which crashes ... | java|php|android | 1 | 2016-04-27T17:27:41.657Z | 2,016 | 4 | 17 | 2 | 180 | 1 | 426 | 40 | 3 | 2 | true | false | false | false | false | false | low |
36,896,894 | Viewpager shows entire next slide over Fragment when bringing a slide with a VideoView | <p><strong>Hi Stackoverflow.</strong> </p>
<p>I've been trying to handle this issue for two days now. </p>
<p>We have a <em>UnswipableViewPager</em>, which is a custom implementation of <em>ViewPager</em> to intercept touch events and stop 'em (and nothing else), and right by it's right side we have a <em>FrameLayout... | Hi Stackoverflow. I've been trying to handle this issue for two days now. We have a UnswipableViewPager , which is a custom implementation of ViewPager to intercept touch events and stop 'em (and nothing else), and right by it's right side we have a FrameLayout that we want to replace (through a FragmentTransaction ) w... | android|android-layout|android-fragments|android-viewpager | 1 | 2016-04-27T17:30:48.160Z | 2,016 | 4 | 17 | 2 | 86 | 0 | 1,503 | 86 | 4 | 4 | true | true | false | false | false | false | low |
36,896,916 | Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location | <p>Today I wanted to generate an APK from my app but i got the following error:</p>
<p><strong>Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location</strong></p>
<p>Full error report:</p>
<pre><code>Information:Gradle tasks [:MyApp:assembleRelease]
Observed package id 'add-ons;addon-... | Today I wanted to generate an APK from my app but i got the following error: Observed package id 'add-ons;addon-google_apis-google-19' in inconsistent location Full error report: [CODE] I only get this error if i want to build an APK, I can run my app in debug mode. I have searched the interwebz bout didnt found any so... | android|apk | 12 | 2016-04-27T17:31:46.867Z | 2,016 | 4 | 17 | 2 | 8,139 | 1 | 564 | 82 | 2 | 1 | true | false | true | false | true | false | medium |
36,896,938 | Android camera - when to call autofocus() and cancelAutoFocus()? | <p>In my Android app, I am using FOCUS_MODE_AUTO for the camera. This is the only focus mode that is working reliably for me. Here is how I call autofocus() initially.</p>
<pre><code>@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
this._camera.setPreviewDisplay(holder... | In my Android app, I am using FOCUS_MODE_AUTO for the camera. This is the only focus mode that is working reliably for me. Here is how I call autofocus() initially. [CODE] Once auto-focussed, there are two cases when the focus needs to be reevaluated - when I move the device and when I move the content. At present, I a... | android | 0 | 2016-04-27T17:32:37.957Z | 2,016 | 4 | 17 | 2 | 443 | 1 | 929 | 64 | 1 | 1 | true | false | false | false | false | false | zero |
36,897,226 | Position index always returns 0 in getView and the program breaks | <p>I am implementing a <code>ListView</code> and when entering <code>getView()</code> I'm always getting position 0.</p>
<p>This is my Activity code: </p>
<pre><code>public class CompaniesActivity extends AppCompatActivity {
ListView listViewCompanies;
int categoryId;
CompanyLoader companyLoader;
Lis... | I am implementing a ListView and when entering getView() I'm always getting position 0. This is my Activity code: [CODE] And the next code is my Adapter [CODE] And here is my Layout: [CODE] What can be the problem? | android|listview | 0 | 2016-04-27T17:47:34.540Z | 2,016 | 4 | 17 | 2 | 1,047 | 1 | 214 | 65 | 2 | 3 | true | false | false | false | false | false | zero |
36,897,321 | Multithreaded HTTP Request Queue System Approach | <p>I've read alot of different recommendations on how to use locks - but the behavior of my current code in both IOS and Android does not behave correctly.</p>
<p>What I'm trying to do is build a queue system with a HTTP Request. If a Request fails, it should be the first request to be retried. Both send and add to qu... | I've read alot of different recommendations on how to use locks - but the behavior of my current code in both IOS and Android does not behave correctly. What I'm trying to do is build a queue system with a HTTP Request. If a Request fails, it should be the first request to be retried. Both send and add to queue is in t... | android|ios|multithreading|locking|httprequest | 0 | 2016-04-27T17:51:59.130Z | 2,016 | 4 | 17 | 2 | 144 | 1 | 1,458 | 48 | 5 | 2 | true | false | false | false | false | false | zero |
36,897,343 | How to calculate the size of libraries that is added as a dependency in the Android project | <p>I am working in a project where I am using multiple libaries like google play service, retrofit, gson, glide, twitter and facebook sdk. So what I want to know the exact size of each library occupies in my application. Kindly please help me whether is there any possible ways to analyse the size in Android studio. Any... | I am working in a project where I am using multiple libaries like google play service, retrofit, gson, glide, twitter and facebook sdk. So what I want to know the exact size of each library occupies in my application. Kindly please help me whether is there any possible ways to analyse the size in Android studio. Any to... | android|dependencies|android-library|android-build|memory-size | 8 | 2016-04-27T17:53:11.840Z | 2,016 | 4 | 17 | 2 | 6,472 | 2 | 842 | 91 | 5 | 1 | true | false | true | false | false | false | medium |
36,897,352 | CheckedTextView with ListView | <p>I have a listview which items are CheckedTextViews with checkboxes. However, whenever I check one and scroll the listview and they hide, when I return back to them by rescrolling up they are not checked anymore! I read on internet that listviews, when are scrolled, somehow the hidden items are recycled (returned to ... | I have a listview which items are CheckedTextViews with checkboxes. However, whenever I check one and scroll the listview and they hide, when I return back to them by rescrolling up they are not checked anymore! I read on internet that listviews, when are scrolled, somehow the hidden items are recycled (returned to the... | android|listview|checkbox|listviewitem|checkedtextview | 0 | 2016-04-27T17:53:31.147Z | 2,016 | 4 | 17 | 2 | 1,350 | 2 | 714 | 29 | 5 | 2 | true | false | false | false | false | false | zero |
36,897,386 | Retrieve Java object by ID from Firebase | <p>I am writing an Android app and I am trying to retrieve an object of the class <code>User.java</code> by ID from its Firebase pertinent table. I would like to know how to get it from Java side, as long as I tried the examples stated in <a href="https://www.firebase.com/docs/android/guide/retrieving-data.html" rel="n... | I am writing an Android app and I am trying to retrieve an object of the class User.java by ID from its Firebase pertinent table. I would like to know how to get it from Java side, as long as I tried the examples stated in Firebase Official docs but none of them is working for me. Taking this SO question as example, I ... | java|android|firebase|firebase-realtime-database | 3 | 2016-04-27T17:55:20.937Z | 2,016 | 4 | 17 | 2 | 3,248 | 1 | 944 | 40 | 4 | 3 | true | false | true | false | false | false | low |
36,897,442 | Remove " " from search results | <p>I have a stocks function in my application where users can search for stocks and see their prices. For some reason it displays " " around the stock name and the sock abbreviation (as shown in the image). I want to remove the quotation marks, but can't quite find what to change in the code.</p>
<p><a href="http://i.... | I have a stocks function in my application where users can search for stocks and see their prices. For some reason it displays " " around the stock name and the sock abbreviation (as shown in the image). I want to remove the quotation marks, but can't quite find what to change in the code. Stock Portfolio screenshot [C... | java|android | 2 | 2016-04-27T17:57:48.257Z | 2,016 | 4 | 17 | 2 | 60 | 1 | 326 | 30 | 2 | 1 | true | false | false | false | false | false | low |
36,897,540 | Android widget setOnClickPendingIntent conflicts with startService | <p>I'm working on a Android widget that displays weather data. The widget has an "update-button" which updates the data when clicked, by starting an IntentService that fetches data from the web and updates the widget. This work just fine, but I would like the widget to also update the data directly when the widget is c... | I'm working on a Android widget that displays weather data. The widget has an "update-button" which updates the data when clicked, by starting an IntentService that fetches data from the web and updates the widget. This work just fine, but I would like the widget to also update the data directly when the widget is crea... | android|widget | 2 | 2016-04-27T18:02:40.063Z | 2,016 | 4 | 18 | 2 | 234 | 0 | 1,158 | 66 | 2 | 3 | true | true | false | false | false | false | low |
36,897,652 | using asynctask to send email | <p>The issue: When this code is run without AsyncTask, there is an error, when run in an AsyncTask, nothing seems to happen (as in no email is sent)</p>
<p>strange thing is, when i run the same code through eclipse, the email is sent. I tested on bluestacks2 and droid4x emulators.</p>
<p>the code:</p>
<pre><code> ... | The issue: When this code is run without AsyncTask, there is an error, when run in an AsyncTask, nothing seems to happen (as in no email is sent) strange thing is, when i run the same code through eclipse, the email is sent. I tested on bluestacks2 and droid4x emulators. the code: [CODE] | java|android-asynctask|jakarta-mail | 0 | 2016-04-27T18:08:16.530Z | 2,016 | 4 | 18 | 2 | 219 | 0 | 288 | 29 | 3 | 1 | true | true | false | false | false | false | zero |
36,897,687 | Programmatically tint a Support Vector | <p>Android Studio version 2.1, gradle version 2.1.0, please correct me if you spot any misinterpretations :)</p>
<p>I am confused about support vectors in the support library 23.3.0. Specifically what I would like to do is tint an image button programmatically, whose src is defined is a vector drawable. From what I c... | Android Studio version 2.1, gradle version 2.1.0, please correct me if you spot any misinterpretations :) I am confused about support vectors in the support library 23.3.0. Specifically what I would like to do is tint an image button programmatically, whose src is defined is a vector drawable. From what I can tell this... | android|android-appcompat|android-vectordrawable | 21 | 2016-04-27T18:10:02.060Z | 2,016 | 4 | 18 | 2 | 9,434 | 3 | 2,752 | 38 | 3 | 6 | true | false | true | false | true | false | high |
36,897,730 | Gradle build fails. Trying to add sign to application using gradle.properties | <p>I am trying to create 'property' and assign file name "gradle.properties to the same for signing my android application. For some reason it cannot find the file. It is present in the 'C:\Users\'username'\Reader_Mobile_App\ \Reader_Mobile_App\app' directory. The error says 'Could not find property "gradle.properties"... | I am trying to create 'property' and assign file name "gradle.properties to the same for signing my android application. For some reason it cannot find the file. It is present in the 'C:\Users\'username'\Reader_Mobile_App\ \Reader_Mobile_App\app' directory. The error says 'Could not find property "gradle.properties" on... | android|android-studio|build.gradle | 0 | 2016-04-27T18:11:54.380Z | 2,016 | 4 | 18 | 2 | 741 | 1 | 422 | 77 | 3 | 1 | true | false | false | false | false | false | zero |
36,897,783 | Action after Camera crash the app | <p>After a Picture has captured, I want to change the fragment, but the app only crash. The Importand Part of the Code is at the very end. Thanks for any Hint or Solution. Because I'm new in Java(android) development, I don't know, where my fault is.</p>
<p>Here is my Code:</p>
<pre><code>import android.content.Conte... | After a Picture has captured, I want to change the fragment, but the app only crash. The Importand Part of the Code is at the very end. Thanks for any Hint or Solution. Because I'm new in Java(android) development, I don't know, where my fault is. Here is my Code: [CODE] The Crash Report: [CODE] noVIP Fragment: [CODE] ... | java|android|camera | 0 | 2016-04-27T18:15:02.677Z | 2,016 | 4 | 18 | 2 | 95 | 1 | 409 | 33 | 3 | 3 | true | false | false | false | false | false | zero |
36,897,820 | Fetch large result from Facebook Graph API paging in android | <p>I am trying to fetch the friendlists field from FB graph API in my android app. As it has a large number of result I am getting a paging in the end of the result.</p>
<pre><code>"friendlists": {
"data": [
....data
],
"paging": {
"next": <next page URL>
}
}
</code></pre>
<p>How d... | I am trying to fetch the friendlists field from FB graph API in my android app. As it has a large number of result I am getting a paging in the end of the result. [CODE] How do I access the next set of result in my app. Following is the code to fetch the first set of result. [CODE] | android|facebook-graph-api | 1 | 2016-04-27T18:16:56.583Z | 2,016 | 4 | 18 | 2 | 56 | 0 | 282 | 60 | 2 | 2 | true | true | false | false | false | false | low |
36,898,230 | What is the essential part of code to make draggable function to work well using Jquery UI? | <p>I was trying to create draggable function from jquery ui but its not working. I think its have something wrong with my jquery coding. Can you guys check it out for me?</p>
<pre><code>todo.init = function (options) {
options = options || {};
options = $.extend({}, defaults, options);
$.each(data, funct... | I was trying to create draggable function from jquery ui but its not working. I think its have something wrong with my jquery coding. Can you guys check it out for me? [CODE] This is a Todo Application, like on the pic provided. I want the notes on Pending to be draggable to In Progress . JsFiddle link note: the code s... | javascript|android|jquery|jquery-ui | 0 | 2016-04-27T18:38:41.757Z | 2,016 | 4 | 18 | 2 | 88 | 1 | 413 | 91 | 4 | 1 | true | false | false | false | false | false | zero |
36,898,286 | Skobbler Maps Custom Route calculation in Android | <p>We started working on Skobbler maps and downloaded demo project AndroidOpenSourceDemoGradle with API key we generated in Skobbler account and started working on our own values of latitude and longitude.
We tried to calculate custom route using the method <code>launchRouteCalculation()</code> by passing starting pos... | We started working on Skobbler maps and downloaded demo project AndroidOpenSourceDemoGradle with API key we generated in Skobbler account and started working on our own values of latitude and longitude. We tried to calculate custom route using the method launchRouteCalculation() by passing starting position and ending ... | android|skmaps|skobbler-maps | 2 | 2016-04-27T18:41:54.200Z | 2,016 | 4 | 18 | 2 | 249 | 1 | 879 | 49 | 3 | 2 | true | false | false | false | false | false | low |
36,898,331 | How do I properly use notifyDataSetChanged in my code? | <p>I am populating a ListView with a custom SimpleCursorAdapter.</p>
<p>I have a delete function that deletes a person from the database that is backing the ListView.</p>
<p>I cannot figure out where to put <code>notifyDataSetChanged()</code> so that my list refreshes to show the person has been removed.</p>
<p>I am... | I am populating a ListView with a custom SimpleCursorAdapter. I have a delete function that deletes a person from the database that is backing the ListView. I cannot figure out where to put notifyDataSetChanged() so that my list refreshes to show the person has been removed. I am using a SwipeRefreshLayout that will sh... | android|simplecursoradapter|notifydatasetchanged | 0 | 2016-04-27T18:44:27.040Z | 2,016 | 4 | 18 | 2 | 665 | 2 | 562 | 54 | 3 | 2 | true | false | false | false | false | false | zero |
36,898,365 | Navigation bar becomes transparent when keyboard opened | <p>Here is how it looks.
<a href="https://i.stack.imgur.com/nnXTT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nnXTT.png" alt="transparent navigation bar"></a></p>
<p>And here are details.
I have activity without background. But it's not an issue. Neither setting background drawable or colour in ... | Here is how it looks. And here are details. I have activity without background. But it's not an issue. Neither setting background drawable or colour in theme or code fixed an issue. Activity has soft input mode adjustPan|stateAlwaysHidden I also set those flags for activity's decor view in code [CODE] I tried explicitl... | android|android-softkeyboard|landscape|navigationbar|android-immersive | 4 | 2016-04-27T18:46:13.850Z | 2,016 | 4 | 18 | 2 | 1,568 | 2 | 506 | 55 | 5 | 2 | true | false | false | false | false | false | low |
36,898,538 | Android camera image preview is not correct | <p>I am trying to write a class that shows the preview of the camera surface in android. I have tried the following code. But the preview is not showing up. I tried changing the parameters but no luck. I have gone through the logcat. Nothing is shown, no error or warning. Only a black screen is shown. The app doesnot c... | I am trying to write a class that shows the preview of the camera surface in android. I have tried the following code. But the preview is not showing up. I tried changing the parameters but no luck. I have gone through the logcat. Nothing is shown, no error or warning. Only a black screen is shown. The app doesnot cras... | android | 1 | 2016-04-27T18:54:55.177Z | 2,016 | 4 | 18 | 2 | 42 | 1 | 329 | 43 | 1 | 1 | true | false | false | false | false | false | low |
36,898,795 | Toolbar in Settings page built with PreferenceFragment | <p>I built a Settings activity/screen for my app using <a href="http://developer.android.com/guide/topics/ui/settings.html" rel="nofollow">this</a> guide. Example code is bellow.
What am I missing to be able to add a Toolbar to this new activity with a back arrow in it's left side?</p>
<p><strong>AndroidManifest.xml</... | I built a Settings activity/screen for my app using this guide. Example code is bellow. What am I missing to be able to add a Toolbar to this new activity with a back arrow in it's left side? AndroidManifest.xml [CODE] preferences.xml [CODE] SettingsFragment.java [CODE] SettingsActivity.java [CODE] | android|user-interface|settings|android-preferences | 1 | 2016-04-27T19:07:50.307Z | 2,016 | 4 | 19 | 2 | 4,774 | 1 | 299 | 54 | 4 | 4 | true | false | true | false | false | false | low |
36,898,832 | ActivityNotFoundException, error starting an activity | <p>This is my social fragment activity and it contains buttons view. when i click on it i want to switch from one activity to other but when i lauch it on phone and click on button it says "unfortunately app stopped" what should i do to switch from one fragment to other fragment.
here is my social frag code:
<a href="h... | This is my social fragment activity and it contains buttons view. when i click on it i want to switch from one activity to other but when i lauch it on phone and click on button it says "unfortunately app stopped" what should i do to switch from one fragment to other fragment. here is my social frag code: SocialFrag an... | android|xml|android-fragments|fragment|buttonclick | -8 | 2016-04-27T19:09:40.217Z | 2,016 | 4 | 19 | 2 | 1,580 | 6 | 620 | 53 | 5 | 2 | true | false | false | false | false | true | negative |
36,898,882 | Android In-App Billing, missing purchases | <p>I am using Google's In-App Billing for my Android app.</p>
<p>I used the IabHelper class from Google's how to, as their billing seems extremely complicated.</p>
<p>My issue is I want to know if the purchase is successful or not. I think I'm following the process correctly, but in my logs I see a lot of users that ... | I am using Google's In-App Billing for my Android app. I used the IabHelper class from Google's how to, as their billing seems extremely complicated. My issue is I want to know if the purchase is successful or not. I think I'm following the process correctly, but in my logs I see a lot of users that get the upgrade, bu... | android|in-app-billing|in-app | 10 | 2016-04-27T19:12:39.467Z | 2,016 | 4 | 19 | 2 | 978 | 3 | 935 | 41 | 3 | 1 | true | false | false | false | true | false | medium |
36,898,885 | Setting Adapter in recyclerview | <p>I am trying to use recyclerview and setting up adapter but I am getting error :-</p>
<p>No adapter attached; skipping layout
So please help me how to solve this problem</p>
<pre><code>public class FragmentTwo extends Fragment {
private AppAdapter mAppAdapter;
private ArrayList<Model> mModel;
@Bind(R.id.recyc... | I am trying to use recyclerview and setting up adapter but I am getting error :- No adapter attached; skipping layout So please help me how to solve this problem [CODE] Here is my Recyclerview Adapter class:- [CODE] Thanks in advance | android|android-fragments|android-recyclerview | 6 | 2016-04-27T19:12:47.080Z | 2,016 | 4 | 19 | 2 | 17,915 | 5 | 233 | 31 | 3 | 2 | true | false | true | true | false | false | medium |
36,898,971 | Retrofit, top level json object changes name | <p>I am using Retrofit to make an api call. The top level object is named depending on the query parameters of the request. For example, a request like this:</p>
<p><code>api.somewebsite.com/1.0/mix_info?mix_id=69</code></p>
<p>returns a response like this:</p>
<pre><code>{"69":{
"mix_id":"69",
"mix_title":"... | I am using Retrofit to make an api call. The top level object is named depending on the query parameters of the request. For example, a request like this: api.somewebsite.com/1.0/mix_info?mix_id=69 returns a response like this: [CODE] Heres a screenie as well that kinda shows the format: http://prnt.sc/axltcd Basically... | android|json|gson|retrofit|retrofit2 | 3 | 2016-04-27T19:17:03.010Z | 2,016 | 4 | 19 | 2 | 1,069 | 1 | 907 | 44 | 5 | 2 | true | false | false | false | false | false | low |
36,899,034 | Orientation restarts my app | <p>Im new to programing, I have a naviagation drawer with fragments. When i rotate my device it "restarts the app" or calls the Home fragment. Im not sure how to fix this im gessing it is related to the super.onCreate (savedInstance) but havent found how to implement it. I also tryed with the onConfigurationChanged met... | Im new to programing, I have a naviagation drawer with fragments. When i rotate my device it "restarts the app" or calls the Home fragment. Im not sure how to fix this im gessing it is related to the super.onCreate (savedInstance) but havent found how to implement it. I also tryed with the onConfigurationChanged method... | android|android-fragments|orientation|screen-rotation|savestate | 0 | 2016-04-27T19:19:57.750Z | 2,016 | 4 | 19 | 2 | 59 | 1 | 503 | 27 | 5 | 1 | true | false | false | false | false | false | zero |
36,899,111 | In Dagger2, what is the purpose of the @Singleton annotation? | <p>Say we have a class <code>Counter</code>:</p>
<pre><code>public class Counter {
private int count;
public Counter() {
count = 0;
}
public int getCount() {
return count;
}
public void count() {
count++;
}
}
</code></pre>
<p>And an <code>ApplicationModule</code>... | Say we have a class Counter : [CODE] And an ApplicationModule that provides the counter: [CODE] By adding the @Singleton annotation to the provideCounter() method, are you specifying that only one Counter object will be provided? In the event that we provide two Counter objects: [CODE] Would the @Singleton annotation b... | android|singleton|dagger-2 | 2 | 2016-04-27T19:24:07.563Z | 2,016 | 4 | 19 | 2 | 652 | 1 | 330 | 61 | 3 | 3 | true | false | false | false | false | false | low |
36,899,187 | Device specific bug with CompassOverlay? | <p>I'm currently developing an app using OSMdroid 5.1 on a Samsung Galaxy Tab E.
My problem here is I can't get the compass to show up at all. I searched hours on the internet and in OSMdroid source code but I couldn't figure it out.
I decided to test it on my personal phone (Samsung Galaxy S4) and turns out it appears... | I'm currently developing an app using OSMdroid 5.1 on a Samsung Galaxy Tab E. My problem here is I can't get the compass to show up at all. I searched hours on the internet and in OSMdroid source code but I couldn't figure it out. I decided to test it on my personal phone (Samsung Galaxy S4) and turns out it appears an... | android|overlay|samsung-mobile|osmdroid | 0 | 2016-04-27T19:28:33.377Z | 2,016 | 4 | 19 | 2 | 60 | 1 | 626 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,899,248 | How to prompt the user to choose default navigation application | <p>I have an app which let the user click on the address to start the navigation from his current position. For now it open <a href="https://play.google.com/store/apps/details?id=com.waze&referrer=utm_source%3Dgmm%26utm_campaign%3Dgmm_android" rel="nofollow">Waze</a>. But now I want to let user to choose between ma... | I have an app which let the user click on the address to start the navigation from his current position. For now it open Waze . But now I want to let user to choose between maps, waze and other navigation app installed and make one default. I tried using : [CODE] It let me choose but it not start the navigation, just a... | android|google-maps|android-intent | 4 | 2016-04-27T19:31:29.810Z | 2,016 | 4 | 19 | 2 | 2,260 | 1 | 578 | 63 | 3 | 2 | true | false | false | false | false | false | low |
36,899,337 | Android encoded stream (H264/AAC) audio does not play in Flash Player | <p>I'm working on adding a live broadcasting feature to an Android app. I do so through RTMP and make use of the <a href="https://github.com/dailymotion/dailymotion-sdk-android/tree/dev/sdk/src/main/java" rel="nofollow noreferrer">DailyMotion Android SDK</a>, which in turn makes use of <a href="https://github.com/Kickf... | I'm working on adding a live broadcasting feature to an Android app. I do so through RTMP and make use of the DailyMotion Android SDK , which in turn makes use of Kickflip . Everything works perfect, except for the playback of the audio on the website (which makes use of Flash). The audio does work in VLC, so it seems ... | android|flash|android-mediacodec|aac | 3 | 2016-04-27T19:35:37.813Z | 2,016 | 4 | 19 | 2 | 252 | 0 | 1,500 | 69 | 4 | 3 | true | true | false | false | false | false | low |
36,899,480 | How to set up this row in XML? | <p>I am trying to display a <code>RecyclerView</code> inside a <code>DialogFragment</code> and I can't get the row-item XML to work right. </p>
<p>I am trying to display something like this:</p>
<pre><code>TEXTVIEW1 EDITTEXT TEXTVIEW2
</code></pre>
<p>where <code>TEXTVIEW1</code> takes up 1/2th of the width, <code>E... | I am trying to display a RecyclerView inside a DialogFragment and I can't get the row-item XML to work right. I am trying to display something like this: [CODE] where TEXTVIEW1 takes up 1/2th of the width, EDITTEXT takes up 1/4th of the width by default, and TEXTVIEW2 takes up 1/4th of the width (the rest of it). I stu... | android|xml|layout|android-edittext|android-recyclerview | 0 | 2016-04-27T19:44:09.733Z | 2,016 | 4 | 19 | 2 | 67 | 2 | 759 | 30 | 5 | 3 | true | false | false | false | false | false | zero |
36,899,603 | android apk not reading xml file (apk build from unity editor) | <p>i am developing a multi-language game using unity engine, i have xml files written for each language but android apk doesn't seem to read the xml files where as the PC platform build works fine with all the languages.</p>
<p>Here is my code:</p>
<pre><code>void Awake()
{
languagePath = Application.dataPath + "... | i am developing a multi-language game using unity engine, i have xml files written for each language but android apk doesn't seem to read the xml files where as the PC platform build works fine with all the languages. Here is my code: [CODE] | c#|android|xml|internationalization|unity3d | 0 | 2016-04-27T19:51:08.323Z | 2,016 | 4 | 19 | 2 | 558 | 1 | 241 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
36,899,942 | Using a BindingAdapter with a string-array from the resources | <p>I have an <em>almost</em> simple idea: I want to generate an Adapter for a spinner with the data binding API and an BindingAdapter. Here is the XML I want to use:</p>
<pre><code><Spinner
android:id="@+id/country"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:value="... | I have an almost simple idea: I want to generate an Adapter for a spinner with the data binding API and an BindingAdapter. Here is the XML I want to use: [CODE] Address here is a simple class which has a field called country which is a String and will contain a ISO-3166-2 String. To keep it simple the values will be "D... | android|arrays|android-resources|android-databinding | 13 | 2016-04-27T20:10:39.857Z | 2,016 | 4 | 20 | 2 | 6,800 | 2 | 1,040 | 61 | 4 | 3 | true | false | true | false | true | false | medium |
36,900,008 | when calling a plugin method from phonegap app, data returned from native android function is always out of scope (undefined) | <p>I cannot figure out how to get a value back from a cordova plugin back to the app's javascript scope. I can send values to the plugin just fine. I'm using phonegap build. Here's the code:</p>
<p><strong>the plugin's javascript:</strong></p>
<pre><code> var exec = require('cordova/exec');
module.exports = {
getSo... | I cannot figure out how to get a value back from a cordova plugin back to the app's javascript scope. I can send values to the plugin just fine. I'm using phonegap build. Here's the code: the plugin's javascript: [CODE] the plugin's java: [CODE] The app's javascript: This works great: [CODE] But here, app_variable is a... | javascript|android|cordova|scope|phonegap-build | 0 | 2016-04-27T20:14:38.080Z | 2,016 | 4 | 20 | 2 | 1,064 | 1 | 622 | 125 | 5 | 5 | true | false | false | false | false | false | zero |
36,900,109 | Want to implement nav drawer and a base layout and my activity has a different layout | <p>I apologize in advance for being very vague about the question. I will provide as much detail as I can but since the code is for a company, I can only disclose so much. </p>
<p>I have a navigation drawer which is a base layout for all activities that I am using. I also want to use a third party library as a base la... | I apologize in advance for being very vague about the question. I will provide as much detail as I can but since the code is for a company, I can only disclose so much. I have a navigation drawer which is a base layout for all activities that I am using. I also want to use a third party library as a base layout INSIDE ... | android|android-layout|layout|navigation-drawer | 0 | 2016-04-27T20:21:28.897Z | 2,016 | 4 | 20 | 2 | 58 | 0 | 814 | 85 | 4 | 2 | true | true | false | false | false | false | zero |
36,900,336 | Tabhost creating trouble in getChildlView method of ExpandableList | <p>I have put tabs insilde a expandablelistview adapter and due to its getCHildView method tabs are generating multiple times in on parent click. How to resolve this .</p>
<p>This is an example of what I need to implement. </p>
<p><a href="http://i.stack.imgur.com/rvPZe.png" rel="nofollow">http://i.stack.imgur.com/rv... | I have put tabs insilde a expandablelistview adapter and due to its getCHildView method tabs are generating multiple times in on parent click. How to resolve this . This is an example of what I need to implement. http://i.stack.imgur.com/rvPZe.png In left side image there is list of expandable view to be shown to user.... | android|listview | 0 | 2016-04-27T20:34:27.523Z | 2,016 | 4 | 20 | 2 | 61 | 1 | 636 | 66 | 2 | 5 | true | false | false | false | false | false | zero |
36,900,437 | What parameter should I pass check.gatherLinksForText()? | <p>While I was searching for how to fire my own activity for links in html parsed with Jsoup, I stumbled upon <a href="http://www.orangeapple.org/post/14809024490/android-custom-hyperlinked-textview" rel="nofollow noreferrer">LinkEnabledTextView</a>
In the demo, it was implemented for strings but in my case, I am fetch... | While I was searching for how to fire my own activity for links in html parsed with Jsoup, I stumbled upon LinkEnabledTextView In the demo, it was implemented for strings but in my case, I am fetching the text from the web and displaying it in a TextView. In the accepted answer in this question , it was applied to list... | android|textview|jsoup | 1 | 2016-04-27T20:40:18.457Z | 2,016 | 4 | 20 | 2 | 50 | 0 | 716 | 56 | 3 | 1 | true | true | false | false | false | false | low |
36,900,448 | Json access field name "*" to Java class | <p>Similar question in <a href="https://stackoverflow.com/questions/7610191/json-access-field-named-asterisk">javascript</a>: </p>
<p>I was trying to handle wikipedia api with Retrofit (moshi converter) in my android app. But I can't write java class Text with "*" as a String.</p>
<p>Wikipedia json request <a href="h... | Similar question in javascript : I was trying to handle wikipedia api with Retrofit (moshi converter) in my android app. But I can't write java class Text with "*" as a String. Wikipedia json request example . Edit: if it helps. Everything works except String _; since it's not "*". [CODE] , [CODE] , [CODE] | java|android|json|wikipedia-api|retrofit2 | 1 | 2016-04-27T20:40:50.707Z | 2,016 | 4 | 20 | 2 | 239 | 1 | 307 | 40 | 5 | 3 | true | false | false | false | false | false | low |
36,900,480 | NotificationListenerService and Doze mode and App Standby | <p>I have an app that listens for phone notifications and sends a message to an Android Wear watch via the <code>MessageApi</code>. Everything works good except for some devices with Android 6, especially Huawei Mate 8 (looks like all Huawei Android 6's do this).</p>
<p>Huawei has its own implementation of freezing ap... | I have an app that listens for phone notifications and sends a message to an Android Wear watch via the MessageApi . Everything works good except for some devices with Android 6, especially Huawei Mate 8 (looks like all Huawei Android 6's do this). Huawei has its own implementation of freezing apps' background processi... | android|android-notifications|wear-os|android-doze|android-appstandby | 9 | 2016-04-27T20:42:40.363Z | 2,016 | 4 | 20 | 2 | 1,767 | 2 | 2,245 | 57 | 5 | 0 | false | false | false | false | false | false | medium |
36,900,493 | ArrayList duplicates the values instead of adding new | <p>My problem is kina weird. I'm making a app for finding different rooms in a school. I want to save the five most recent searches in an ArrayList and display them accordingly.</p>
<p>What keeps happening is that my ArrayList is supposed to add the latest search made to the ArrayList. But what it keeps on doing is to... | My problem is kina weird. I'm making a app for finding different rooms in a school. I want to save the five most recent searches in an ArrayList and display them accordingly. What keeps happening is that my ArrayList is supposed to add the latest search made to the ArrayList. But what it keeps on doing is to add the la... | java|android|arraylist | 0 | 2016-04-27T20:43:36.573Z | 2,016 | 4 | 20 | 2 | 68 | 0 | 853 | 53 | 3 | 2 | true | true | false | false | false | false | zero |
36,900,589 | Remember me half working - Android | <p>I can't figure out why if I hit the check box "Remember Me", the app will remember only the Name and not the Last Name. I probably forgot something, but I can't actually find what.</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentVie... | I can't figure out why if I hit the check box "Remember Me", the app will remember only the Name and not the Last Name. I probably forgot something, but I can't actually find what. [CODE] the rest of the code is not needed for this problem. | android | 0 | 2016-04-27T20:48:40.167Z | 2,016 | 4 | 20 | 2 | 43 | 1 | 240 | 34 | 1 | 1 | true | false | false | false | false | false | zero |
36,900,671 | App crashing after i rotate device and click the menu | <p>I have a navigation drawer with fragments and my app is crashing after I rotate the device and click on the menu.
My code on main activity is:</p>
<pre><code>public class MainActivity extends FragmentActivity {
private DrawerLayout mDrawerLayout;
ImageView home;
Fragment fragment = null;
TextView ... | I have a navigation drawer with fragments and my app is crashing after I rotate the device and click on the menu. My code on main activity is: [CODE] My code continues like this logcat error (line: 140) its on the next piece of code: [CODE] My logcat: [CODE] Thanks | android|navigation-drawer|onclicklistener|screen-rotation | 0 | 2016-04-27T20:53:11.447Z | 2,016 | 4 | 20 | 2 | 234 | 3 | 265 | 53 | 4 | 3 | true | false | false | false | false | false | zero |
36,900,780 | Android Bluetooth LE API onScanResult ScanRecord bytes meaning | <p>I am developing an app which scans for beacons in range and displays beacons' data to the user. I am using Android Bluetooth LE API. In <code>onScanResult()</code> method I get <code>ScanResult</code> object which I then parse to raw bytes. This is a sample of what I get from one of my beacons:</p>
<pre><code>02:01... | I am developing an app which scans for beacons in range and displays beacons' data to the user. I am using Android Bluetooth LE API. In onScanResult() method I get ScanResult object which I then parse to raw bytes. This is a sample of what I get from one of my beacons: [CODE] I had no problems with finding out what the... | android|bluetooth-lowenergy|ibeacon|android-bluetooth|ibeacon-android | 0 | 2016-04-27T20:59:32.007Z | 2,016 | 4 | 20 | 2 | 886 | 1 | 559 | 62 | 5 | 3 | true | false | false | false | false | false | zero |
36,900,790 | Identify Previously Registered Users (Android/Java) | <p>I was wondering if anyone could point me in the right direction with this. I have an SQL Lite database set up that allows the user to add their account details. It also allows to edit the account details when returning to the application.</p>
<p>I really want the application to identify whether the user has previou... | I was wondering if anyone could point me in the right direction with this. I have an SQL Lite database set up that allows the user to add their account details. It also allows to edit the account details when returning to the application. I really want the application to identify whether the user has previously added a... | java|android|sqlite | 0 | 2016-04-27T21:00:06.467Z | 2,016 | 4 | 21 | 2 | 31 | 0 | 601 | 51 | 3 | 2 | true | true | false | false | false | false | zero |
36,900,808 | Subsampling Scale Image View's method onImageLoaded() isn't being called | <p>I'm using this library(<a href="https://github.com/davemorrissey/subsampling-scale-image-view" rel="nofollow">https://github.com/davemorrissey/subsampling-scale-image-view</a>) to display a huge image in my App.
I need to know when the image is loaded, so i'm using this interface(<a href="https://github.com/davemor... | I'm using this library( https://github.com/davemorrissey/subsampling-scale-image-view ) to display a huge image in my App. I need to know when the image is loaded, so i'm using this interface( https://github.com/davemorrissey/subsampling-scale-image-view/wiki/09.-Events ), but this methods aren't being called by the sy... | android|image | 1 | 2016-04-27T21:01:11.987Z | 2,016 | 4 | 21 | 2 | 897 | 1 | 383 | 72 | 2 | 2 | true | false | false | false | false | false | low |
36,900,815 | Share button not working on app | <p>I am trying to put a share button in my action bar, and it crashes whenever I try to launch the app.</p>
<p>My error is below:</p>
<pre><code>java.lang.UnsupportedOperationException: This is not supported, use MenuItemCompat.getActionProvider()
... | I am trying to put a share button in my action bar, and it crashes whenever I try to launch the app. My error is below: [CODE] Here is my main.xml [CODE] And here is the main activity with everything, including imports so I can diagnose my probel: [CODE] | android | 0 | 2016-04-27T21:01:35.190Z | 2,016 | 4 | 21 | 2 | 1,564 | 1 | 254 | 31 | 1 | 3 | true | false | false | false | false | false | zero |
36,900,859 | Nested startActivityForResult() not returning to previous Activity(s) | <p>I know this is similar to another post, but that was never really answered.</p>
<p>It's using Activity and not Fragments, and isn't using ActivityGroup
or Tabs.</p>
<p>My MainActivity calls LocationActivity with startActivityForResult
which later calls DialogActivity with startActivityForResult,
but when DialogAct... | I know this is similar to another post, but that was never really answered. It's using Activity and not Fragments, and isn't using ActivityGroup or Tabs. My MainActivity calls LocationActivity with startActivityForResult which later calls DialogActivity with startActivityForResult, but when DialogActivity exits and use... | android | 0 | 2016-04-27T21:04:27.610Z | 2,016 | 4 | 21 | 2 | 737 | 1 | 830 | 69 | 1 | 1 | true | false | false | false | false | false | zero |
36,900,908 | Why is my ImageView with alpha invisible when placed over opaque ImageView? | <p>In my Android app I would put one image with a certain transparency over a background with maximum opacity. To try this, I have tried to create a relative layout, with a background image view (to create the background, with full opacity, alpha = 1), and over this one an other image view, with low opacity value (alph... | In my Android app I would put one image with a certain transparency over a background with maximum opacity. To try this, I have tried to create a relative layout, with a background image view (to create the background, with full opacity, alpha = 1), and over this one an other image view, with low opacity value (alpha).... | android|android-imageview|transparency|opacity | 2 | 2016-04-27T21:07:17.547Z | 2,016 | 4 | 21 | 2 | 175 | 2 | 679 | 75 | 4 | 1 | true | false | false | false | false | false | low |
36,900,923 | NoClassDefFoundError error with Retrofit 2 | <p>I get this runtime error sometimes after compiling and opening the app.
Here's what I have in the gradle file:</p>
<pre><code>compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'com.squar... | I get this runtime error sometimes after compiling and opening the app. Here's what I have in the gradle file: [CODE] and here's the logcat trace (actual error is only in the very last lines) [CODE] [Edit] Here's the offending code: [CODE] | android|retrofit2 | 0 | 2016-04-27T21:08:22.313Z | 2,016 | 4 | 21 | 2 | 1,089 | 1 | 239 | 42 | 2 | 3 | true | false | false | false | false | false | zero |
36,901,088 | App crashes when picking video from gallery | <p>I am having trouble trying to select videos on Android. I am using the code below to launch the activity.</p>
<pre><code>var intent = new Intent();
intent.SetType("video/*");
intent.SetAction(Intent.ActionGetContent);
this.StartActivityForResult(Intent.CreateChooser(intent, "Sele... | I am having trouble trying to select videos on Android. I am using the code below to launch the activity. [CODE] Then in the OnActivityResult callback I use the following code to get the URI of the data. [CODE] The app crashes soon after the gallery is opened. I'm using Sony Xperia ion with Android version 4.0.3 to deb... | c#|android|android-intent|video|crash | 1 | 2016-04-27T21:18:33.603Z | 2,016 | 4 | 21 | 2 | 392 | 1 | 662 | 43 | 5 | 3 | true | false | false | false | false | false | low |
36,901,226 | Save base64 image to Mobile Services SQL or Blob Storage? | <p>So here's the deal, i have an Ionic App and i'm using Azure Mobile Services with JavaScript backend and i need to save images to the cloud.
I have a SQL database (auto-created when i created the Mobile Services) with just one table that'll get some user informations about places and one of these informations is a pi... | So here's the deal, i have an Ionic App and i'm using Azure Mobile Services with JavaScript backend and i need to save images to the cloud. I have a SQL database (auto-created when i created the Mobile Services) with just one table that'll get some user informations about places and one of these informations is a pictu... | android|azure|ionic-framework|azure-sql-database|azure-mobile-services | 0 | 2016-04-27T21:26:46.080Z | 2,016 | 4 | 21 | 2 | 624 | 1 | 967 | 57 | 5 | 0 | false | false | false | false | false | false | zero |
36,901,272 | Android: map view doesn't work | <p>in my Android App I have add a map activity whit the Android Studio procedure (add-> new activity -> Google -> Map). I have followed this example: <a href="https://developers.google.com/maps/documentation/android-api/start#step_2_install_the_google_play_services_sdk" rel="nofollow noreferrer">https://developers.goog... | in my Android App I have add a map activity whit the Android Studio procedure (add-> new activity -> Google -> Map). I have followed this example: https://developers.google.com/maps/documentation/android-api/start#step_2_install_the_google_play_services_sdk . But if I open the map activity, it's strange, I see only a m... | android|google-maps | 1 | 2016-04-27T21:29:54.223Z | 2,016 | 4 | 21 | 2 | 2,279 | 2 | 1,140 | 30 | 2 | 3 | true | false | false | false | false | false | low |
36,901,307 | Navigation Icon not working by clicking | <p>I have a simple <strong>android.support.v7.widget.Toolbar</strong> and all I am trying to do is to open a <strong>NavigationDrawer</strong> by <strong>pressing the "hamburger" icon in the top left corner</strong>. The "hamburger" button is visible, and when I start to pull from the left I see the animation on the bu... | I have a simple android.support.v7.widget.Toolbar and all I am trying to do is to open a NavigationDrawer by pressing the "hamburger" icon in the top left corner . The "hamburger" button is visible, and when I start to pull from the left I see the animation on the button but pressing the button does not open/close the ... | android|android-navigation|navigation-drawer|android-navigationview|android-drawer | -1 | 2016-04-27T21:32:14.233Z | 2,016 | 4 | 21 | 2 | 1,463 | 1 | 455 | 39 | 5 | 2 | true | false | false | false | false | true | negative |
36,901,424 | Styled centered checkbox not checkable when using TalkBack or VoiceOver | <p>I develop a mobile web app and I am testing it for accessibility. I have come across some checkboxes that can't be checked when using TalkBack on Android (with "Explore by Touch" enabled) or VoiceOver on iOS.</p>
<p>The issue is that we "hide" the actual checkbox and the user sees and interacts with a styled label ... | I develop a mobile web app and I am testing it for accessibility. I have come across some checkboxes that can't be checked when using TalkBack on Android (with "Explore by Touch" enabled) or VoiceOver on iOS. The issue is that we "hide" the actual checkbox and the user sees and interacts with a styled label that looks ... | android|html|ios|css|accessibility | 5 | 2016-04-27T21:40:30.560Z | 2,016 | 4 | 21 | 2 | 1,675 | 2 | 931 | 71 | 5 | 3 | true | false | false | false | false | false | low |
36,901,530 | Trying to get data from a CustomDialog using a Listener not working | <p>I'm trying to get data (Object) from a CustomDialog I created. I want to learn how to use listeners as a learning curve within the CustomDialog to send the Object to the Activity calling the Dialog. I tried following a few tutorials but don't seem to be getting it right. I got an error </p>
<blockquote>
<p>androi... | I'm trying to get data (Object) from a CustomDialog I created. I want to learn how to use listeners as a learning curve within the CustomDialog to send the Object to the Activity calling the Dialog. I tried following a few tutorials but don't seem to be getting it right. I got an error android.view.WindowManager$BadTok... | java|android|interface|dialog|listener | 0 | 2016-04-27T21:48:21.347Z | 2,016 | 4 | 21 | 2 | 26 | 1 | 686 | 67 | 5 | 2 | true | false | false | false | false | false | zero |
36,901,545 | How to consume REST api with Android | <p>I am trying to create a mobile client using android to consume a local REST API
I have created rest server on eclipse and it is running without problems
but i am trying to create my client on android studio and it is running also but when i click on the button nothing is happening.</p>
<pre><code>public class MainA... | I am trying to create a mobile client using android to consume a local REST API I have created rest server on eclipse and it is running without problems but i am trying to create my client on android studio and it is running also but when i click on the button nothing is happening. [CODE] | android|rest | 0 | 2016-04-27T21:49:29.487Z | 2,016 | 4 | 21 | 2 | 2,624 | 1 | 289 | 36 | 2 | 1 | true | false | true | false | false | false | zero |
36,901,567 | Have two image buttons on the same activity | <p>What I want is to open my app and click the image button and that brings me to another activity with a different image button. However when I run it, the two images appear on both activities at the same time. Anyone have any clues?</p>
<pre><code>ImageButton imagebtn2 = (ImageButton) findViewById(R.id.imagebtn2);
... | What I want is to open my app and click the image button and that brings me to another activity with a different image button. However when I run it, the two images appear on both activities at the same time. Anyone have any clues? [CODE] This is my code, the MainActivity is the same code just different names. Below is... | android|android-activity | 0 | 2016-04-27T21:50:36.343Z | 2,016 | 4 | 21 | 2 | 631 | 1 | 384 | 43 | 2 | 4 | true | false | false | false | false | false | zero |
36,901,790 | Android FrameLayout position VideoView element by left top width and height | <p>I need to position VideoView element:</p>
<p>Left: 626dip
Top: 86dip
Width: 575dip
Height: 326dip</p>
<p>So when apk start it is in upper right corner...when i press OK button on remote controll it needs VideoView to be in FullScreen (Left: 0, Top: 0, Width: 100%x, Height: 100%y)</p>
<p>How can i make this in x... | I need to position VideoView element: Left: 626dip Top: 86dip Width: 575dip Height: 326dip So when apk start it is in upper right corner...when i press OK button on remote controll it needs VideoView to be in FullScreen (Left: 0, Top: 0, Width: 100%x, Height: 100%y) How can i make this in xml file? I im using: [CODE] S... | android|android-linearlayout | 0 | 2016-04-27T22:07:38.630Z | 2,016 | 4 | 22 | 2 | 159 | 1 | 559 | 75 | 2 | 2 | true | false | false | false | false | false | zero |
36,901,794 | Android Kiosk Mode - Preventing users from "unauthorized" unpinning the application | <p>I am pretty new to android and I am currently developing an Android App that should run in KioskMode, so that a normal user can't exit the application or do anything outside of it.<br>
What I already did:</p>
<ul>
<li>I set my app as a device owner</li>
<li>I "screen pin" the app in the onCreate()-method in the Mai... | I am pretty new to android and I am currently developing an Android App that should run in KioskMode, so that a normal user can't exit the application or do anything outside of it. What I already did: I set my app as a device owner I "screen pin" the app in the onCreate()-method in the MainActivity as a device owner I ... | android|android-5.0-lollipop|kiosk|device-owner|android-screen-pinning | 7 | 2016-04-27T22:07:52.167Z | 2,016 | 4 | 22 | 2 | 3,327 | 3 | 1,188 | 83 | 5 | 2 | true | false | true | false | false | false | medium |
36,901,889 | Android Studio- Why is this image button closing my app? | <p>Theres a image button that should bring my to a different activity but it closes my app. Any one have any ideas as to why?</p>
<pre><code>ImageButton imagebtn2 = (ImageButton) findViewById(R.id.imagebtn2);
imagebtn2.setOnClickListener(new View.OnClickListener() {
@Override
public vo... | Theres a image button that should bring my to a different activity but it closes my app. Any one have any ideas as to why? [CODE] This is my code, the MainActivity is the same code just different names. Below is my manifest. [CODE] This is my xml. [CODE] And the second image buttons xml | java|android|xml|android-studio|jsoup | -1 | 2016-04-27T22:14:55.880Z | 2,016 | 4 | 22 | 2 | 82 | 1 | 287 | 56 | 5 | 3 | true | false | false | false | false | true | negative |
36,901,893 | AutocompleteTextView is not updated dynamically | <p>I am getting data (<code>List</code>) from an API and I am trying to update my <code>AutcompleteTextView</code> with this data. </p>
<p>This is how I currently do :<br>
I have a <code>TextWatcher</code> which calls a the method to get the data in <code>afterTextChanged</code>, so every time the user stops typing ... | I am getting data ( List ) from an API and I am trying to update my AutcompleteTextView with this data. This is how I currently do : I have a TextWatcher which calls a the method to get the data in afterTextChanged , so every time the user stops typing the method is called, and the adapter is notified with ``notifyData... | android|autocompletetextview | 0 | 2016-04-27T22:15:08.437Z | 2,016 | 4 | 22 | 2 | 1,201 | 1 | 984 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
36,902,003 | Filling a view that has `wrap_content` as height | <p>So I'm using a <code>RecyclerView</code>, with some cards. I want to get an overlay on the card when it's clicked, which should cover all contents, but not change the size of the view. Hardcoding the size of the card is not possible, since the contents have different dimensions.</p>
<pre><code><RelativeLayout
... | So I'm using a RecyclerView , with some cards. I want to get an overlay on the card when it's clicked, which should cover all contents, but not change the size of the view. Hardcoding the size of the card is not possible, since the contents have different dimensions. [CODE] The example above is pretty much what I'm try... | android|xml | 1 | 2016-04-27T22:23:52.210Z | 2,016 | 4 | 22 | 2 | 42 | 1 | 667 | 48 | 2 | 1 | true | false | false | false | false | false | low |
36,902,062 | Competing onTouchEvent handlers? | <p>I understand Views can decide to handle MotionEvent themselves by returning true in <code>onTouchEvent</code> when being passed a <code>ACTION_DOWN</code> event. If they return <code>true</code>, then they will receive all the subsequent <code>MOVE/UP/CANCEL</code> events. This is working fine. </p>
<p>What I would... | I understand Views can decide to handle MotionEvent themselves by returning true in onTouchEvent when being passed a ACTION_DOWN event. If they return true , then they will receive all the subsequent MOVE/UP/CANCEL events. This is working fine. What I would like to do is defer this decision to the ACTION_MOVE event. I ... | android|android-view|android-touch-event | 0 | 2016-04-27T22:28:48.497Z | 2,016 | 4 | 22 | 2 | 31 | 1 | 674 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
36,902,066 | ngCordova cdvfile URLs and ng-src not rendering image | <p>I've been struggling with this for days now. I have an Ionic 1.3.0 application using ngCordova#0.1.26-alpha</p>
<p>I am using $cordovaFile.writeFile() to store images in cordova.file.applicationStorageDirectory. I've tried every storage location with the same result. The file is good, I can view it in a file manage... | I've been struggling with this for days now. I have an Ionic 1.3.0 application using ngCordova#0.1.26-alpha I am using $cordovaFile.writeFile() to store images in cordova.file.applicationStorageDirectory. I've tried every storage location with the same result. The file is good, I can view it in a file manager app. I wo... | android|angularjs|cordova|ionic-framework | 0 | 2016-04-27T22:28:58.137Z | 2,016 | 4 | 22 | 2 | 1,776 | 2 | 1,964 | 53 | 4 | 3 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.