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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,022,677 | FATAL EXCEPTION: main com.firebase.client.FirebaseException: Failed to bounce to type | <p>im building an app which retrieves data from firebase. to display the data im using a recyclerview and im getting an error while i move to the activity witch fetch data from fire base.</p>
<pre><code> E/AndroidRuntime: FATAL EXCEPTION: main
com.firebase.client.Fireba... | im building an app which retrieves data from firebase. to display the data im using a recyclerview and im getting an error while i move to the activity witch fetch data from fire base. [CODE] The classes used are SharePost.java [CODE] whe class where i use the firebase retrieval coding [CODE] It would be nice someone c... | java|android|firebase|android-recyclerview | 0 | 2016-05-04T08:45:16.113Z | 2,016 | 5 | 8 | 2 | 482 | 2 | 379 | 85 | 4 | 3 | true | false | false | false | false | false | zero |
37,022,694 | Loading message not hiding in Recyclerview android | <p>I am using <a href="https://gist.github.com/ssinss/e06f12ef66c51252563e" rel="nofollow noreferrer">endless <code>Recyclerview</code></a> which is loading data from <code>Parse.com</code> database.The problem I am facing is that it is displaying two loading images like shown in below screen.I want to display one item... | I am using endless Recyclerview which is loading data from Parse.com database.The problem I am facing is that it is displaying two loading images like shown in below screen.I want to display one item at time and then on scrolling show the icon then load the next item. Code for EndlessScroll is - [CODE] I have started w... | java|android|android-recyclerview | 3 | 2016-05-04T08:45:47.287Z | 2,016 | 5 | 8 | 2 | 169 | 0 | 456 | 50 | 3 | 1 | true | true | false | false | false | false | low |
37,022,757 | Enabling log in PJSIP for Android forces close the app | <p>I'm building a SIP Softphone using PJSIP for android based on SWIG example.</p>
<p>I enable log as described in the sample: </p>
<pre><code>LogConfig log_cfg = epConfig.getLogConfig();
SipLogWriter logWriter = new SipLogWriter();
log_cfg.setWriter(logWriter);
log_cfg.setDecor(log_cfg.getDecor() & ~(pj_log_deco... | I'm building a SIP Softphone using PJSIP for android based on SWIG example. I enable log as described in the sample: [CODE] where my SipLogWriter class is: [CODE] Pjsip lib halts every now and then with this backtraces: [CODE] I suspected that it's trying to write logs from the wrong thread, but I have no clue on how t... | android|sip|voip|pjsip | 2 | 2016-05-04T08:48:56.423Z | 2,016 | 5 | 8 | 2 | 615 | 2 | 406 | 54 | 4 | 3 | true | false | false | false | false | false | low |
37,022,824 | How to use post method in volley library in android? | <p>Explanation:
Here, i am tried to insert user data into MySQL database table through my android application using volley library.I almost done everything but my code not working.</p>
<p>Here is my Registration.java activity</p>
<pre><code>public class Registration extends AppCompatActivity implements Vi... | Explanation: Here, i am tried to insert user data into MySQL database table through my android application using volley library.I almost done everything but my code not working. Here is my Registration.java activity [CODE] In above class i have registeruser() method which execute after click on sign up button. I search... | android|android-volley | 0 | 2016-05-04T08:52:02.800Z | 2,016 | 5 | 8 | 2 | 556 | 3 | 700 | 52 | 2 | 3 | true | false | false | false | false | false | zero |
37,022,830 | Rotation of an .obj model using glRotatef | <p>I try to rotate a .obj 3d model around its own axis using <em>glRotatef</em>. But it's not working as I wish.</p>
<p><strong>Code</strong></p>
<pre><code>public void onDrawFrame(GL10 gl) {
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glEnable(GL10.GL_LIGHTING);
gl.gl... | I try to rotate a .obj 3d model around its own axis using glRotatef . But it's not working as I wish. Code [CODE] Problem The first rotation yrot works pretty good : no matter the position of the model, it always rotates around its own z (well, I ask to rotate around y so it's not perfect. But at least it uses one of i... | android-studio|opengl-es|rotateanimation | 1 | 2016-05-04T08:52:14.470Z | 2,016 | 5 | 8 | 2 | 168 | 2 | 811 | 41 | 3 | 1 | true | false | false | false | false | false | low |
37,022,868 | Android - Facebook SDK - how to tell if user changed password or removed app from app settings on Facebook | <p>I was testing our app using test cases from Facebook's developers site.</p>
<p><a href="https://developers.facebook.com/docs/facebook-login/testing-your-login-flow" rel="nofollow">https://developers.facebook.com/docs/facebook-login/testing-your-login-flow</a></p>
<p>Our app failed two following test cases:</p>
<b... | I was testing our app using test cases from Facebook's developers site. https://developers.facebook.com/docs/facebook-login/testing-your-login-flow Our app failed two following test cases: Someone removes your app from Facebook via app settings and revisits your app. Your app should detect this and prompt the person to... | android|facebook|xamarin|xamarin.android|android-facebook | 2 | 2016-05-04T08:53:47Z | -1 | -1 | -1 | -1 | 506 | 1 | 1,387 | 106 | 5 | 0 | false | false | false | false | false | false | low |
37,022,903 | Is possible to load a canvas that is redrawing in an InfoWindow in android? | <p>I have a probem. I want to draw a thermometer in an Infowindow with temperatures loaded from json. This thermometer has to load the max and min temperatures dinamically. If I do it in a separated proyect it works fine, but when I try to load in the infowindow the canvas don't work. I leave some images.</p>
<p>Separ... | I have a probem. I want to draw a thermometer in an Infowindow with temperatures loaded from json. This thermometer has to load the max and min temperatures dinamically. If I do it in a separated proyect it works fine, but when I try to load in the infowindow the canvas don't work. I leave some images. Separated proyec... | android|android-canvas|infowindow | 1 | 2016-05-04T08:55:15.020Z | 2,016 | 5 | 8 | 2 | 41 | 0 | 478 | 75 | 3 | 3 | true | true | false | false | false | false | low |
37,022,907 | ProgressBar setting custom drawable is filling the progressbar | <p>I am setting a custom progressbarDrawable to my horizontal progressBar but it seems that its filling the full progressbar so its always set to 100%. </p>
<p>Here is my drawable:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">... | I am setting a custom progressbarDrawable to my horizontal progressBar but it seems that its filling the full progressbar so its always set to 100%. Here is my drawable: [CODE] here is the style i apply to the view: [CODE] and here is the defining of the view in xml: [CODE] | android|android-xml|android-drawable|android-progressbar | 2 | 2016-05-04T08:55:20.723Z | 2,016 | 5 | 8 | 2 | 2,064 | 1 | 274 | 62 | 4 | 3 | true | false | false | false | false | false | low |
37,023,072 | Text doesn't start at the top in android project layout | <p>I have a Textview in my layout, and I added 4 buttons on the bottom of the page. There is a scrollview added to this, because it is too much to fit in one page. Now after I added the buttons, the text is in the same spot, but starts at the 2nd line. The first line is on top of the screen, not visible. This means tha... | I have a Textview in my layout, and I added 4 buttons on the bottom of the page. There is a scrollview added to this, because it is too much to fit in one page. Now after I added the buttons, the text is in the same spot, but starts at the 2nd line. The first line is on top of the screen, not visible. This means that t... | android|layout|textview | 1 | 2016-05-04T09:01:40.610Z | 2,016 | 5 | 9 | 2 | 52 | 3 | 776 | 55 | 3 | 2 | true | false | false | false | false | false | low |
37,023,102 | API working fine on Postman but not returning anything on android app | <p>I am making an app for a Wordpress website using the WP REST API V2. I am able to retrieve the category data using the API, but when I try to retrieve posts or media, nothing happens.</p>
<pre><code> private void sendJsonRequest(){
Log.i("Warlock","Entered sendJsonRequest");
JsonArrayRequest jsonArrayReques... | I am making an app for a Wordpress website using the WP REST API V2. I am able to retrieve the category data using the API, but when I try to retrieve posts or media, nothing happens. [CODE] Here is the log output: [CODE] | android|wordpress|api|android-volley | 2 | 2016-05-04T09:03:08.210Z | 2,016 | 5 | 9 | 2 | 1,382 | 0 | 221 | 69 | 4 | 2 | true | true | false | false | false | false | low |
37,023,130 | How to avoid XMLHttpRequest credentials (NTLM) from being cached in phonegap/cordova? | <p>I've been wondering where (in Android/ iOS) the cookie received from an XMLHttpRequest gets stored...</p>
<p><strong>The situation:</strong></p>
<p>I perform an XHR-request to authenticate. For some reason this starts a kind of a session and all other requests I perform do not need credentials anymore. This situat... | I've been wondering where (in Android/ iOS) the cookie received from an XMLHttpRequest gets stored... The situation: I perform an XHR-request to authenticate. For some reason this starts a kind of a session and all other requests I perform do not need credentials anymore. This situation is wanted, but there is a sectio... | android|ios|cordova|caching|xmlhttprequest | 2 | 2016-05-04T09:04:21.410Z | 2,016 | 5 | 9 | 2 | 513 | 2 | 1,463 | 85 | 5 | 1 | true | false | false | false | false | false | low |
37,023,222 | Dialog Overlay in Persistent Bottom Sheet | <p>Is it possible to add overlay on a persistent bottom sheet as found in modal bottom sheet dialog ? I implemented a bottomsheet that has a framelayout in it and does some fragment transaction.</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bott... | Is it possible to add overlay on a persistent bottom sheet as found in modal bottom sheet dialog ? I implemented a bottomsheet that has a framelayout in it and does some fragment transaction. [CODE] When it is expanded and back button is pressed, fragment is removed from the stack. But when i used a modal dialog, the d... | android|bottom-sheet | 5 | 2016-05-04T09:09:05.143Z | 2,016 | 5 | 9 | 2 | 1,258 | 0 | 494 | 41 | 2 | 2 | true | true | false | false | false | false | low |
37,023,280 | How to remove highlighter EditText when clicking off | <p>I have many EditText and when I click a button off I cancel focus from all but I get the result that it becomes highlighted the first EditText , and I can not take away this highlighter . I want to reset all the initial condition EditExt</p>
<pre><code> private void buttonClick(){
mTxtFld2.setCursorVisible(fa... | I have many EditText and when I click a button off I cancel focus from all but I get the result that it becomes highlighted the first EditText , and I can not take away this highlighter . I want to reset all the initial condition EditExt [CODE] In xml [CODE] | android|android-edittext | 0 | 2016-05-04T09:11:09.603Z | 2,016 | 5 | 9 | 2 | 219 | 1 | 258 | 52 | 2 | 2 | true | false | false | false | false | false | zero |
37,023,370 | CrossMedia.Current.TakePhotoAsync not working for Samsung S6 | <p>In my Xamarin Forms app I use the Media Plugin to take photos. The code I use works fine on a Moto G 3rd Gen however when I run the same code on a Samsung S6 the file returned is always null and the camera isn't started.</p>
<p>I have upgraded to the the pre release of the plugin (2.4.0), but I still get the same r... | In my Xamarin Forms app I use the Media Plugin to take photos. The code I use works fine on a Moto G 3rd Gen however when I run the same code on a Samsung S6 the file returned is always null and the camera isn't started. I have upgraded to the the pre release of the plugin (2.4.0), but I still get the same result. This... | android|xamarin.forms | 2 | 2016-05-04T09:14:19.943Z | 2,016 | 5 | 9 | 2 | 2,190 | 1 | 466 | 60 | 2 | 1 | true | false | false | false | false | false | low |
37,023,436 | How to set the value of TextView in application? | <p>Hi i want make a timer counter and i want the timer still counting and pause or stop when i click a button but now i can run the timer in app but i cannot set textView on fragment with the value of the timer </p>
<p>How can i set the text in text view ? so it will become a timer ?</p>
<p>here my code : </p>
<pre>... | Hi i want make a timer counter and i want the timer still counting and pause or stop when i click a button but now i can run the timer in app but i cannot set textView on fragment with the value of the timer How can i set the text in text view ? so it will become a timer ? here my code : [CODE] Here the app code : [COD... | android|timer | 0 | 2016-05-04T09:17:34.357Z | 2,016 | 5 | 9 | 2 | 63 | 1 | 322 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
37,023,442 | Enabling Chrome Custom Tabs for Facebook login using Android SDK | <p>I am using Facebook SDK version 4.11.0 in my app.</p>
<p>As per the steps outlined on the <a href="https://developers.facebook.com/docs/facebook-login/android">Official docs page</a>, I have added following things inside manifest file to enable Chrome Custom Tabs. </p>
<pre><code><activity
andr... | I am using Facebook SDK version 4.11.0 in my app. As per the steps outlined on the Official docs page , I have added following things inside manifest file to enable Chrome Custom Tabs. [CODE] fb_login_protocol_scheme is added to strings.xml with value 'fb+app_id' Authentication process is working fine without any issue... | android|facebook|facebook-android-sdk|facebook-sdk-4.0|chrome-custom-tabs | 14 | 2016-05-04T09:17:43.607Z | 2,016 | 5 | 9 | 2 | 12,912 | 1 | 552 | 64 | 5 | 1 | true | false | true | true | true | false | medium |
37,023,461 | How can I modify the code to upload multiple files using NanoHTTPD in Android? | <p>I'm a beginner of NanoHTTPD, I learned the documents <a href="https://stackoverflow.com/questions/23579848/nanohttpd-save-uploaded-files">NanoHttpd save uploaded files</a> and <a href="https://github.com/romsahel/simplewebserver" rel="nofollow noreferrer">https://github.com/romsahel/simplewebserver</a></p>
<p>The f... | I'm a beginner of NanoHTTPD, I learned the documents NanoHttpd save uploaded files and https://github.com/romsahel/simplewebserver The following code can upload a single file to android mobile phone via WiFi. Now I hope to upload multiple files to android mobile phone, how can I modify the following code to do that? Th... | android|nanohttpd | 2 | 2016-05-04T09:18:55.133Z | 2,016 | 5 | 9 | 2 | 848 | 1 | 332 | 78 | 2 | 1 | true | false | false | false | false | false | low |
37,023,535 | Hide toolbar in activity by scrolling a recyclerview inside the Fragment? | <p><strong>My Activity XML is</strong> </p>
<pre><code><android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="match_... | My Activity XML is [CODE] My Fragment XML is : [CODE] My fragment uses tabs and nested fragments inside the ViewPager and my activity uses navigation drawer so i can't move the tabs to activity as the tabs are only needed for this specific fragment . And other fragments just need a toolbar . At the same time all the fr... | android|material-design|android-toolbar|android-coordinatorlayout|android-appbarlayout | 7 | 2016-05-04T09:22:06.560Z | 2,016 | 5 | 9 | 2 | 4,157 | 3 | 689 | 73 | 5 | 2 | true | false | true | false | false | false | medium |
37,023,572 | Google Map: Shown the "pinned location" before it loads the current location correctly | <p>I want to use Google Map to show my current location as shown in figure 2. However, as it takes time for Google Map to load my current location, the map first shows the location I set in the code "LatLng mPosition = new LatLng(34.6767, 33.04455);". I have tried to replace it with "LatLng mPosition;" but the same iss... | I want to use Google Map to show my current location as shown in figure 2. However, as it takes time for Google Map to load my current location, the map first shows the location I set in the code "LatLng mPosition = new LatLng(34.6767, 33.04455);". I have tried to replace it with "LatLng mPosition;" but the same issue ... | android|google-maps | 0 | 2016-05-04T09:23:43.987Z | 2,016 | 5 | 9 | 2 | 53 | 1 | 370 | 86 | 2 | 1 | true | false | false | false | false | false | zero |
37,023,588 | toolbar.inflateMenu() doesn't work in the second call? | <p><strong>Background :</strong> I need to <code>Customize</code> my <code>ToolBar</code> by <code>Fragment</code> so I use <code>setCustomToolBarForFragment</code> method to achieve that (the problem is occurred inside Fragment B with <code>Fragment</code> A -> <code>Fragment</code> B)</p>
<p><strong>Problem :</stron... | Background : I need to Customize my ToolBar by Fragment so I use setCustomToolBarForFragment method to achieve that (the problem is occurred inside Fragment B with Fragment A -> Fragment B) Problem : The first time Fragment B is created setCustomToolBarForFragment work as expected but in the second time it doesn't. Fra... | android|android-fragments|android-toolbar | 2 | 2016-05-04T09:24:15.050Z | 2,016 | 5 | 9 | 2 | 370 | 2 | 493 | 54 | 3 | 1 | true | false | false | false | false | false | low |
37,023,667 | Xml Beans 2.6 exception with Excel creation on Android | <p>I'm trying to create <code>.xlsx</code> documents with the Apache POI 3.14 library.</p>
<p>This is my Gradle config:</p>
<pre><code>(...)
defaultConfig {
applicationId "com.example.app"
minSdkVersion 14
targetSdkVersion 19
multiDexEnabled true
}
... | I'm trying to create .xlsx documents with the Apache POI 3.14 library. This is my Gradle config: [CODE] With the original xmlbeans library xmlbeans-2.6.0.jar I get this exception when I try to run APP [CODE] I've tried to remove the duplicated class with this method [CODE] When I try to run the app with this recompiled... | java|android|excel|apache-poi | 1 | 2016-05-04T09:27:28.387Z | 2,016 | 5 | 9 | 2 | 1,362 | 1 | 501 | 54 | 4 | 6 | true | false | false | false | false | false | low |
37,023,687 | How do I set a group parameter of Vector Drawable programmatically? | <p>I have a vector drawable that I want to rotate depending on some input in my app. </p>
<p>I have a vector_drawable.xml</p>
<pre><code><vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportWidth="100"
android:viewportHeight... | I have a vector drawable that I want to rotate depending on some input in my app. I have a vector_drawable.xml [CODE] In my code, I create a ValueAnimator [CODE] With animatorUpdateListener being defined as follows: [CODE] In my onDraw method I then call [CODE] How would I be able, instead of rotating the canvas, to ch... | java|android|xml|animation|android-vectordrawable | 3 | 2016-05-04T09:28:08.327Z | 2,016 | 5 | 9 | 2 | 1,755 | 1 | 424 | 67 | 5 | 4 | true | false | false | false | false | false | low |
37,023,854 | Best way to start one activity or another basing on a variable | <p>I want to develop an application that, at the beginning, checks a variable's value and, basing on this value, starts the activity A or the activity B, something like this:</p>
<pre><code>protectec void onCreate(...){
boolean b = checkVariable();
if(b){
startActivityA();
} else {
startAc... | I want to develop an application that, at the beginning, checks a variable's value and, basing on this value, starts the activity A or the activity B, something like this: [CODE] What I'm doing This is the method I have currently implemented: [CODE] This is an activity that must be shown the first time the application ... | android | 1 | 2016-05-04T09:35:21.507Z | 2,016 | 5 | 9 | 2 | 57 | 1 | 649 | 62 | 1 | 2 | true | false | false | false | false | false | low |
37,023,992 | Impossible : No layout manager attached; Skipping layout | <p>I'm completely lost with this bug, I understand it, but I don't know what's wrong.
For the code : </p>
<pre><code>// In the OnCreate of my activity
historyRecyclerView = (RecyclerView)findViewById(R.id.recycler_suggestions);
SearchBarHistoryAdapter searchBarHistoryAdapter = new SearchBarHistoryAdapter();
sear... | I'm completely lost with this bug, I understand it, but I don't know what's wrong. For the code : [CODE] The SearchDisplayManager just contains a list of adapters. The adapter : [CODE] Here is the crazy part, when I update the list in setHistoryList , I know the recycler view has the right adapter and it is not null ..... | android | 16 | 2016-05-04T09:41:28.250Z | 2,016 | 5 | 9 | 2 | 27,595 | 4 | 516 | 56 | 1 | 2 | true | false | true | true | true | false | medium |
37,023,997 | moving the text of an edit text through an intent to another activity is throwing an exception | <p>I am trying to implement a search functionality in my android app, i want to take what the user writes in the search edit text from activity discover and open a new activity called activity search ,in which the results can be shown , post object is a class of my implementation , in which i get data from backend
eve... | I am trying to implement a search functionality in my android app, i want to take what the user writes in the search edit text from activity discover and open a new activity called activity search ,in which the results can be shown , post object is a class of my implementation , in which i get data from backend every t... | android|android-intent|android-edittext | 1 | 2016-05-04T09:41:43.323Z | 2,016 | 5 | 9 | 2 | 68 | 2 | 533 | 94 | 3 | 1 | true | false | false | false | false | false | low |
37,024,020 | AltBeacon for monitoring very smal regions and being notified too early | <p>We are using AltBeacon for detecting regions in the background. For an important use case of the project we absolutely need to have a lot of very small regions (basically one beacon with minimum transmitting power is the whole region) and very close to each other.
With this beacon setup, we get notified at each regi... | We are using AltBeacon for detecting regions in the background. For an important use case of the project we absolutely need to have a lot of very small regions (basically one beacon with minimum transmitting power is the whole region) and very close to each other. With this beacon setup, we get notified at each region ... | android|altbeacon|beacon | 1 | 2016-05-04T09:42:36.007Z | 2,016 | 5 | 9 | 2 | 100 | 2 | 1,197 | 71 | 3 | 0 | false | false | false | false | false | false | low |
37,024,045 | Android GridView first item background is not working | <p>I want to set custom background of gridview but when grid load, first item of grid background is not load and remaining all item load properly.
Below is my code so please help.</p>
<pre><code> public class PicassoExample extends Activity {
private GridView gvFirst;
private ArrayList<MyModel> array... | I want to set custom background of gridview but when grid load, first item of grid background is not load and remaining all item load properly. Below is my code so please help. [CODE] Here is my Adapter class. [CODE] here is xml for adapter. [CODE] actually I have used Picasso library to load photo from internet. I hav... | android|android-gridview | 0 | 2016-05-04T09:43:44.663Z | 2,016 | 5 | 9 | 2 | 741 | 3 | 519 | 53 | 2 | 3 | true | false | false | false | false | false | zero |
37,024,049 | unable to upload with cordova filetransfer plugin on android device | <p>The file chooser loads when i click on the button <strong>My Picture</strong> but nothing happens after i had chosen a file and clicked on <strong>Upload</strong> button. I want to be able to upload file onto server. I also want camera to appear in the list of the file chooser. I am using handlebars templates combin... | The file chooser loads when i click on the button My Picture but nothing happens after i had chosen a file and clicked on Upload button. I want to be able to upload file onto server. I also want camera to appear in the list of the file chooser. I am using handlebars templates combined with ratchet. Here is my code: htm... | javascript|android|jquery|cordova | 0 | 2016-05-04T09:44:06.447Z | 2,016 | 5 | 9 | 2 | 210 | 0 | 355 | 67 | 4 | 2 | true | true | false | false | false | false | zero |
37,024,096 | Drawable has unresolved theme attributes exception on EditText click | <p>My app throws exception when I click on EditText(I don't what's the cause: EditText or opeden keyboard). I saw it coulde be caused by using Resources.getDrawable() but i don't do that. Can anyone help?</p>
<p>Here's the log:</p>
<pre><code>W/Resources: Drawable android:drawable/text_cursor_material has unresolved ... | My app throws exception when I click on EditText(I don't what's the cause: EditText or opeden keyboard). I saw it coulde be caused by using Resources.getDrawable() but i don't do that. Can anyone help? Here's the log: [CODE] UPD [CODE] UPD 2 I've just created a sample project and the error still appears. I have an aciv... | android|exception|android-studio|android-edittext | 2 | 2016-05-04T09:45:54.463Z | 2,016 | 5 | 9 | 2 | 1,575 | 0 | 577 | 68 | 4 | 4 | true | true | false | false | false | false | low |
37,024,123 | Android DrawerLayout,CoordinatorLayout and AppBarLayout white space under AppBarLayout | <p>I have the bellow XML layout, everything working as expected but the problem that there is a white space between the AppBarLayout and Recyclerview.
What i'm doing wrong or what i'm missing .</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://... | I have the bellow XML layout, everything working as expected but the problem that there is a white space between the AppBarLayout and Recyclerview. What i'm doing wrong or what i'm missing . [CODE] Thanks in advance . | android|xml|material-design | 0 | 2016-05-04T09:47:04.550Z | 2,016 | 5 | 9 | 2 | 801 | 2 | 217 | 86 | 3 | 1 | true | false | false | false | false | false | zero |
37,024,263 | Getting error in Android Studio 2.1 with java 8 | <p>Currently I am using <code>java 8</code> with latest <code>android studio 2.1</code></p>
<p>Here is my <code>build.gradle</code> file </p>
<pre><code>android {
compileSdkVersion 22
buildToolsVersion "24rc3"
defaultConfig {
applicationId "com.name"
minSdkVersion 10
targetSdkVers... | Currently I am using java 8 with latest android studio 2.1 Here is my build.gradle file [CODE] I am getting the below compile time error that I have no clue Error:com.android.jack.frontend.FrontendCompilationException: Failed to compile at com.android.jack.Jack.buildSession(Jack.java:892) at com.android.jack.Jack.run(J... | java|android|android-studio|gradle|java-8 | 21 | 2016-05-04T09:53:10.997Z | 2,016 | 5 | 9 | 2 | 14,307 | 5 | 832 | 47 | 5 | 1 | true | false | true | true | true | false | high |
37,024,453 | Using Java itextPdf pdf file is not being printed in android | <p>I am writing a mobil application which contains Dynamic Report part. I'm making it with Java ItextPdf Library but when I sent it to printer printer don't accept my file and giving a notification "File Type is not supported by this device." But When I send normal pdf file which is created by pc it is printing.</p>
<... | I am writing a mobil application which contains Dynamic Report part. I'm making it with Java ItextPdf Library but when I sent it to printer printer don't accept my file and giving a notification "File Type is not supported by this device." But When I send normal pdf file which is created by pc it is printing. Printing ... | java|android|printing|itext|inputstream | 0 | 2016-05-04T10:01:22.587Z | 2,016 | 5 | 10 | 2 | 424 | 0 | 377 | 60 | 5 | 3 | true | true | false | false | false | false | zero |
37,024,569 | Increase an integer using a button in Android Studio | <p>I'm trying to create a Customer Survey app in Android studio. This would have 2 buttons and store the data on a database Ive came up with the following code. </p>
<p>I get an error saying it cannot resolve OnClickListener</p>
<pre><code>package com.example.a2618436.customersatsifaction;
import android.app.Activ... | I'm trying to create a Customer Survey app in Android studio. This would have 2 buttons and store the data on a database Ive came up with the following code. I get an error saying it cannot resolve OnClickListener [CODE] | android | -5 | 2016-05-04T10:05:51.033Z | 2,016 | 5 | 10 | 2 | 294 | 1 | 220 | 52 | 1 | 1 | true | false | false | false | false | true | negative |
37,024,617 | Handling counter in textview | <p>How to handle + and - on textview I tried this way but minus is not working.Whenever I get incremented quantity minus button didnt work on it</p>
<pre><code> public class HomeFragment extends Fragment {
Button btnShirtPlus,btnShirtMinus;
TextView text_quantity;
Integer incrementValue;
String count... | How to handle + and - on textview I tried this way but minus is not working.Whenever I get incremented quantity minus button didnt work on it [CODE] The Following image show what happen after plus is clicked | android | 1 | 2016-05-04T10:08:08.347Z | 2,016 | 5 | 10 | 2 | 84 | 1 | 207 | 28 | 1 | 1 | true | false | false | false | false | false | low |
37,024,666 | Getting Verify Error for SqlCipher in android with iText lib | <p>While Installing app in mobile i am getting this error with the library iTextpdf</p>
<p>Without this iTextpdf library app runs fine
but After using this iTextpdf lib it give below error</p>
<pre><code> 10605-10605/com.packagename.appname E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.packagename.appname... | While Installing app in mobile i am getting this error with the library iTextpdf Without this iTextpdf library app runs fine but After using this iTextpdf lib it give below error [CODE] This is My Gradle : [CODE] Please Let me know if any solution found.... | java|android|itext | 0 | 2016-05-04T10:10:14.653Z | 2,016 | 5 | 10 | 2 | 62 | 0 | 257 | 60 | 3 | 2 | true | true | false | false | false | false | zero |
37,024,677 | Notification doesnt work | <p>I've created a notification and it's just doesnt show up.
My code in the main activity: `boolean alarm = (PendingIntent.getBroadcast(this, 0, new Intent("ALARM"), PendingIntent.FLAG_NO_CREATE) == null);</p>
<pre><code> if(alarm){
Intent itAlarm = new Intent("ALARM");
PendingIntent pendingIntent =... | I've created a notification and it's just doesnt show up. My code in the main activity: `boolean alarm = (PendingIntent.getBroadcast(this, 0, new Intent("ALARM"), PendingIntent.FLAG_NO_CREATE) == null); [CODE] my code in the Broadcast Reciver: [CODE] } | java|android|notifications|push | 0 | 2016-05-04T10:10:41.607Z | 2,016 | 5 | 10 | 2 | 49 | 1 | 252 | 24 | 4 | 2 | true | false | false | false | false | false | zero |
37,024,686 | onDestroy never called | <p>I have updated the latest Android Studio and created a new Blank Project. I added the following code to the MainActivity.java file, but onDestroy() is never called. Is there any way to get destroy event?</p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(... | I have updated the latest Android Studio and created a new Blank Project. I added the following code to the MainActivity.java file, but onDestroy() is never called. Is there any way to get destroy event? [CODE] AndroidManifest.xml [CODE] | android|ondestroy | 0 | 2016-05-04T10:11:07.423Z | 2,016 | 5 | 10 | 2 | 637 | 2 | 237 | 22 | 2 | 2 | true | false | false | false | false | false | zero |
37,024,695 | RecyclerView inside a LinearLayout along with several other views | <p>I have a recyclerView inside my LinearLayout.</p>
<pre><code><ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_p... | I have a recyclerView inside my LinearLayout. [CODE] The problem is that when I inflate this recyclerView, the complete activity is not scrolling (Only the part of recycler view does). Moreover I have specify height of recyclerView otherwise I am not able to see it. So my two problems are: How to give this RecyclerView... | android|android-layout|android-recyclerview | 2 | 2016-05-04T10:11:35.090Z | 2,016 | 5 | 10 | 2 | 4,749 | 1 | 642 | 65 | 3 | 1 | true | false | true | false | false | false | low |
37,024,708 | Error in executing Camera.takePicture() when device is parallel to horizontal plane in android using accelarometer | <p>I'm making an Android app in which I'm using Camera and Accelerometer of my device. I want to auto capture image when my device is parallel to horizontal plane i.e X-Y-Z coordinates equal to 0-0-9.</p>
<p>But My app gets crashed and gives following error on this line.</p>
<pre><code>camera.takePicture(shutterCallb... | I'm making an Android app in which I'm using Camera and Accelerometer of my device. I want to auto capture image when my device is parallel to horizontal plane i.e X-Y-Z coordinates equal to 0-0-9. But My app gets crashed and gives following error on this line. [CODE] I have added my code and error log both. Java Code:... | android|android-camera|accelerometer | 1 | 2016-05-04T10:12:07.863Z | 2,016 | 5 | 10 | 2 | 136 | 0 | 419 | 114 | 3 | 3 | true | true | false | false | false | false | low |
37,024,711 | Android: BitmapFactory issue | <p>Good Day
I'm trying to display captured image in gridview as well save it in Sqlite Database..in the logcat appear this </p>
<blockquote>
<p>E/BitmapFactory: Unable to decode stream:
java.lang.NullPointerException W/System.err:
java.lang.NullPointerException W/System.err: at
.CameraFragment.previewCapture... | Good Day I'm trying to display captured image in gridview as well save it in Sqlite Database..in the logcat appear this E/BitmapFactory: Unable to decode stream: java.lang.NullPointerException W/System.err: java.lang.NullPointerException W/System.err: at .CameraFragment.previewCapturedImage(CameraFragment.java:259 W/Sy... | java|android|sqlite|gridview | 1 | 2016-05-04T10:12:29.637Z | 2,016 | 5 | 10 | 2 | 114 | 2 | 484 | 28 | 4 | 2 | true | false | false | false | false | false | low |
37,024,779 | Cannot get Point Cloud using callback onXyzIjAvailable | <p>I know that there're some threads about this issue on stackoverflow but none of them has answers(Google where are you?).</p>
<p>When I test the Augmented Reality sample app from the samples google has published
everything works great. I'm getting pose and cloud points.</p>
<p>But when I'm copying the same code, g... | I know that there're some threads about this issue on stackoverflow but none of them has answers(Google where are you?). When I test the Augmented Reality sample app from the samples google has published everything works great. I'm getting pose and cloud points. But when I'm copying the same code, gradle configuration ... | android|google-project-tango | 1 | 2016-05-04T10:15:35.870Z | 2,016 | 5 | 10 | 2 | 119 | 1 | 709 | 54 | 2 | 4 | true | false | false | false | false | false | low |
37,024,886 | YouTube Android Player API INTERNAL_ERROR for multiple videos | <p>Using the <a href="https://developers.google.com/youtube/android/player/sample-applications">YouTube Android Player API sample code</a> (version 1.2.2), if I change any of the video IDs over to one I have uploaded (e.g. "QVikru_w2hQ" or "u1n6E81rm80"), the thumbnail loads in the player, but on clicking play, the pla... | Using the YouTube Android Player API sample code (version 1.2.2), if I change any of the video IDs over to one I have uploaded (e.g. "QVikru_w2hQ" or "u1n6E81rm80"), the thumbnail loads in the player, but on clicking play, the player goes to the onError function with YouTubePlayer.ErrorReason.INTERNAL_ERROR. A message ... | android|youtube|android-youtube-api | 7 | 2016-05-04T10:20:20.673Z | 2,016 | 5 | 10 | 2 | 1,859 | 2 | 792 | 61 | 3 | 0 | false | false | false | false | false | false | medium |
37,024,908 | Navigation Drawer doesn't work onBackPressed in different Activities | <p>I am using common navigation drawer for different activities where I am extending BaseActivity , although it works fine but i am unable to open the drawer if I pressed back button to go to the previous activity.</p>
<p>This is my code:</p>
<pre><code>public class BaseActivity extends ActionBarActivity {
public... | I am using common navigation drawer for different activities where I am extending BaseActivity , although it works fine but i am unable to open the drawer if I pressed back button to go to the previous activity. This is my code: [CODE] | android|navigation-drawer | 1 | 2016-05-04T10:21:28.930Z | 2,016 | 5 | 10 | 2 | 922 | 3 | 235 | 68 | 2 | 1 | true | false | false | false | false | false | low |
37,024,967 | How to handle pagination with Retrofit 2 and RxJava | <p>I know how to handle Retrofit responses but I have a problem with handling pagination from a REST API with rx java.</p>
<p><strong>Background</strong></p>
<p>The rest api that I'm using gives me the following response with the link to the next page in the headers:</p>
<pre><code>HTTP 200 OK
Allow: GET, HEAD, OPTI... | I know how to handle Retrofit responses but I have a problem with handling pagination from a REST API with rx java. Background The rest api that I'm using gives me the following response with the link to the next page in the headers: [CODE] Right know I managed to get the pagination request to page 2 with the following... | android|pagination|retrofit|rx-java|retrofit2 | 4 | 2016-05-04T10:23:39.243Z | 2,016 | 5 | 10 | 2 | 2,904 | 1 | 592 | 51 | 5 | 2 | true | false | true | false | false | false | low |
37,025,064 | Align dynamically created textview and edit text in android | <p>I have a relative layout and 'n' number of textviews and edittext . I want the alignment as</p>
<pre><code> TextView EditText
Button
TextView EditText
Button
TextView EditText
Button
TextView EditText
Button
..........
</code></pre>
<p>I have tried using layout par... | I have a relative layout and 'n' number of textviews and edittext . I want the alignment as [CODE] I have tried using layout params but I am getting weird results. Here is my code, [CODE] For Edit Text.. [CODE] I have applied layout_params like this but it didn't help. Any help would be great!! Thanks | android|alignment|layoutparams | -1 | 2016-05-04T10:27:32.120Z | 2,016 | 5 | 10 | 2 | 1,416 | 4 | 302 | 59 | 3 | 3 | true | false | false | false | false | true | negative |
37,025,073 | Cannot interact with fragments when drawer layout is open | <p>I have built an application using the <a href="https://i.stack.imgur.com/IM4YS.jpg" rel="nofollow noreferrer">Android Design Support Library</a>.
My app has a DrawerLayout with a NavigationView which works just as I would expect it to.</p>
<p>I am now trying to add some tablet support to my app and I want it to wor... | I have built an application using the Android Design Support Library . My app has a DrawerLayout with a NavigationView which works just as I would expect it to. I am now trying to add some tablet support to my app and I want it to work so that when the app is in landscape mode the Drawer Layout is always open. At the m... | android|android-fragments|drawerlayout|androiddesignsupport|navigationview | 0 | 2016-05-04T10:27:54.157Z | 2,016 | 5 | 10 | 2 | 30 | 0 | 873 | 57 | 5 | 1 | true | true | false | false | false | false | zero |
37,025,090 | Recyclerview not loading the images | <p>i'm trying to get images from url using volley but its not working
at the time of loading data app is crashing ... but when i remove the imageloader
evertything is loading correctly like text data ...
i am new in android and coding so not able to figure out the problem .. </p>
<p>here is my adapter class </p>
<pr... | i'm trying to get images from url using volley but its not working at the time of loading data app is crashing ... but when i remove the imageloader evertything is loading correctly like text data ... i am new in android and coding so not able to figure out the problem .. here is my adapter class [CODE] } and the JSON ... | android|json|android-volley|android-recyclerview | 0 | 2016-05-04T10:28:21.190Z | 2,016 | 5 | 10 | 2 | 241 | 1 | 370 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
37,025,312 | how can i create run app even user close it android | <p>want create app cordova and ionic for android to alaram in some times like 2:50 and i want program run even close the program
i use katzer/cordova-plugin-background-mode plugin , but when i close program , it be close and dont still run in background this is code</p>
<pre><code> // Run when the device is ready
... | want create app cordova and ionic for android to alaram in some times like 2:50 and i want program run even close the program i use katzer/cordova-plugin-background-mode plugin , but when i close program , it be close and dont still run in background this is code [CODE] how can i make app still run even user close the ... | android|cordova|hybrid | 0 | 2016-05-04T10:37:14.467Z | 2,016 | 5 | 10 | 2 | 434 | 1 | 373 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
37,025,342 | How to set onClickListener on ExpandibleListAdapter | <p>I want to display an ExpandableListAdapter in my android activity.
So I have build this code in main_activity:</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
try{
super.onCreate(savedInstanceState);
setContentView(R.layout.results_activity);
expListView = (Expan... | I want to display an ExpandableListAdapter in my android activity. So I have build this code in main_activity: [CODE] Now if I try to run my application, I can see all group but if I try to click on one items, never method is called, then I can't see the child row. EDIT This is the ExpandableListAdapter [CODE] | android|expandablelistview | 0 | 2016-05-04T10:38:31.557Z | 2,016 | 5 | 10 | 2 | 38 | 2 | 311 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
37,025,367 | how to really exit an activity which contain fragment? | <p>I have3 Activities.<br>
The first one A contains a Fragment A1 which contains a Spinner.<br>
When I click the Spinner i ll go to Activity B, which contains a Button.
When I click the Button will go to Activity C.</p>
<p>I ovverrode the Activity C's OnBackPressed</p>
<pre><code>(
Super OnBackPressed()
Intent i = ne... | I have3 Activities. The first one A contains a Fragment A1 which contains a Spinner. When I click the Spinner i ll go to Activity B, which contains a Button. When I click the Button will go to Activity C. I ovverrode the Activity C's OnBackPressed [CODE] I overrode the Activity B's OnBackPressed [CODE] I overrode the A... | android|android-fragments|exit|onbackpressed | 2 | 2016-05-04T10:39:29.660Z | 2,016 | 5 | 10 | 2 | 4,745 | 3 | 671 | 54 | 4 | 3 | true | false | true | false | false | false | low |
37,025,371 | How to set selected country isd code in spinner | <ul>
<li>I don't know how to set the selected country isd code in
spinner.Below I have posted the code what I have been tried so far:</li>
</ul>
<p><strong>MainActivity.java:</strong></p>
<pre><code>public class MainActivity extends Activity implements OnItemSelectedListener {
ArrayList<String> arrCode;
Arra... | I don't know how to set the selected country isd code in spinner.Below I have posted the code what I have been tried so far: MainActivity.java: [CODE] My issue is : I can't set the isd code in same spinner.If I have to set isd code in textview means it will be easy.But I have to set it in the spinner Edit: spinner list... | android|android-spinner | 0 | 2016-05-04T10:39:52.960Z | 2,016 | 5 | 10 | 2 | 267 | 1 | 413 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
37,025,401 | next activity is not starting on button click from a fragment activity class | <p>I am calling an <code>Activity</code> on a button click but its not opening I have set <code>onClickListener</code> on button and calling from <code>Intent</code> also set it in android manifest but still its not working. Please look into this<br>
HERE is my <strong>PDFRenderFragment</strong> class</p>
<p><strong>E... | I am calling an Activity on a button click but its not opening I have set onClickListener on button and calling from Intent also set it in android manifest but still its not working. Please look into this HERE is my PDFRenderFragment class Edited Code PDFRenderFragment.java package com.blogspot.hongthaiit.pdfrender; [C... | android|android-fragments|onclicklistener | 0 | 2016-05-04T10:41:07.380Z | 2,016 | 5 | 10 | 2 | 837 | 5 | 468 | 76 | 3 | 3 | true | false | false | false | false | false | zero |
37,025,427 | Android, random from external json | <p>I am working on an android app. I want the app to select randomly a name from json.
Here is the json : </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>{
"user": [
{
"id": "001",
"name": "Raj Amal",
"email"... | I am working on an android app. I want the app to select randomly a name from json. Here is the json : [CODE] And here is my android code : [CODE] I would that when I presse the button a random name shows and loops. Please help Thank you | android|json|random | 0 | 2016-05-04T10:42:15.940Z | 2,016 | 5 | 10 | 2 | 955 | 3 | 237 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
37,025,473 | Call Function from android service | <p>Hi Hello to everyone i am developing one app where i am using service to upload multipal images to server for uploading multipal images even if app is closed from background.
But i want to call one function but i am unable to call that function please help me.</p>
<p>UploadPhotos.java</p>
<pre><code>publ... | Hi Hello to everyone i am developing one app where i am using service to upload multipal images to server for uploading multipal images even if app is closed from background. But i want to call one function but i am unable to call that function please help me. UploadPhotos.java [CODE] SelectedAdapter_Test.java [CODE] a... | android | 0 | 2016-05-04T10:43:53.087Z | 2,016 | 5 | 10 | 2 | 45 | 0 | 692 | 34 | 1 | 3 | true | true | false | false | false | false | zero |
37,025,554 | What would be image dimensions to show every device? | <p>my xml file.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent"
android:baselineAligned="false"
android:backg... | my xml file. [CODE] second imageView doesn't shows image,"three_content_com" dimensions are 401 X 6114 and perhaps it is very big?! what size would be image dimensions to show every device perfectly.please someone give me advice.thank you | android | 0 | 2016-05-04T10:48:18.870Z | 2,016 | 5 | 10 | 2 | 21 | 1 | 238 | 52 | 1 | 1 | true | false | false | false | false | false | zero |
37,025,582 | Get integer value from edittext And Access value on Button | <p>I want to get int Value from Edittext and then access that value On Button. But When I Access On Button It Show Error Remove "Final" modifier of "val". When I remove it then on button listener <code>mViewPager.setCurrentItem(val);</code> Show error That <code>Change modifier of 'val'to Final</code>.
Here Is my Code<... | I want to get int Value from Edittext and then access that value On Button. But When I Access On Button It Show Error Remove "Final" modifier of "val". When I remove it then on button listener mViewPager.setCurrentItem(val); Show error That Change modifier of 'val'to Final . Here Is my Code [CODE] Full Code: [CODE] | java|android|android-edittext|integer | -4 | 2016-05-04T10:49:51.057Z | 2,016 | 5 | 10 | 2 | 117 | 4 | 316 | 58 | 4 | 2 | true | false | false | false | false | true | negative |
37,025,628 | Show Preference Category if preference selected true | <pre><code><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Actions">
<SwitchPreference
android:key="Call"
android:title="Call"
android:defaultValue="false" />
... | [CODE] How can I only show the preferencecategory call, if the above swithpreference call is selected true. Same for others ( email, message, alert ) . Thank you for help. | android|preference | 0 | 2016-05-04T10:51:45.780Z | 2,016 | 5 | 10 | 2 | 151 | 0 | 171 | 52 | 2 | 1 | true | true | false | false | false | false | zero |
37,025,789 | my scrollview does not show the last item (Button) | <p>i am new to android and i have this xml page and when i am running the app , the last item is not showing.i have tried changing the last item to an edittext but the problem remains the same.This xml page is inflated in a fragment.Can someone help.</p>
<pre><code><ScrollView xmlns:android="http://schemas.android.... | i am new to android and i have this xml page and when i am running the app , the last item is not showing.i have tried changing the last item to an edittext but the problem remains the same.This xml page is inflated in a fragment.Can someone help. [CODE] | java|android|xml | 0 | 2016-05-04T10:57:43.703Z | 2,016 | 5 | 10 | 2 | 628 | 5 | 254 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
37,025,866 | ProductFlavours with only change in resources | <p>I have an application which is completely developed.
Now I have to create same application with minimal changes only in <code>mipmap</code>
folders and <code>strings.xml</code></p>
<p>I have created Product Flavours in build.gradle as </p>
<pre><code> apply plugin: 'com.android.application'
apply plugin: 's... | I have an application which is completely developed. Now I have to create same application with minimal changes only in mipmap folders and strings.xml I have created Product Flavours in build.gradle as [CODE] and modified my folder structure as [CODE] and then I'm getting 2 errors [CODE] EDIT: Changed folder structure ... | android|android-gradle-plugin|build.gradle|android-productflavors | 0 | 2016-05-04T11:00:36.080Z | 2,016 | 5 | 11 | 2 | 221 | 1 | 355 | 45 | 4 | 4 | true | false | false | false | false | false | zero |
37,025,867 | Name of picture uploaded with file phonegap plugin "image%A3456" | <p>I use a FileTransfert plugin phonegap to upload picture from phone to server. The code work right but the name of picture upload is </p>
<blockquote>
<p>image%A4444</p>
</blockquote>
<p>But I want to save the picture with the same name does it have on phone to display then.</p>
<p>What shall i modify the code ?... | I use a FileTransfert plugin phonegap to upload picture from phone to server. The code work right but the name of picture upload is image%A4444 But I want to save the picture with the same name does it have on phone to display then. What shall i modify the code ? Thanks Function js: [CODE] Upload.php [CODE] | android|cordova|file-transfer | 0 | 2016-05-04T11:00:36.827Z | 2,016 | 5 | 11 | 2 | 568 | 2 | 308 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
37,025,899 | How to convert activity into fragment? | <p>I want to convert Game activity into Game fragment . Can any one help me in this?<br>
This is game activity:</p>
<pre><code>public class Game extends BaseGameActivity implements IOnSceneTouchListener, Observer{
private static int CAMERA_HEIGHT = 480;
private static int CAMERA_WIDTH = 800;
private Camera... | I want to convert Game activity into Game fragment . Can any one help me in this? This is game activity: [CODE] | android | 0 | 2016-05-04T11:01:41.330Z | 2,016 | 5 | 11 | 2 | 3,555 | 1 | 111 | 38 | 1 | 1 | true | false | true | false | false | false | zero |
37,025,909 | Android code to Disconnect Bluetooth | <p>I am a newbie to Android. I have created a Bluetooth module which turns Bluetooth ON/OFF (separate button), Scan nearby devices (used a separate button) and Show Paired Devices (separate button). Now if we click on scan, it will show a list of devices including a small pair button and connect button beside each list... | I am a newbie to Android. I have created a Bluetooth module which turns Bluetooth ON/OFF (separate button), Scan nearby devices (used a separate button) and Show Paired Devices (separate button). Now if we click on scan, it will show a list of devices including a small pair button and connect button beside each listed ... | java|android|bluetooth | 1 | 2016-05-04T11:02:13.437Z | 2,016 | 5 | 11 | 2 | 2,144 | 0 | 681 | 36 | 3 | 1 | true | true | false | false | false | false | low |
37,025,930 | Multi selection in spinner | <p>I created a 2 spinners and I need to enable users to select multiple things from each of them. I manage to add checkbox via android.R.layout.simple_list_item_multiple_choice. Now i manage to get everything that I wanted but problem is how can I enable user to select multiple things there are already check boxes but ... | I created a 2 spinners and I need to enable users to select multiple things from each of them. I manage to add checkbox via android.R.layout.simple_list_item_multiple_choice. Now i manage to get everything that I wanted but problem is how can I enable user to select multiple things there are already check boxes but whe... | java|android|android-layout|android-studio|android-spinner | 1 | 2016-05-04T11:03:04.390Z | 2,016 | 5 | 11 | 2 | 6,505 | 1 | 669 | 26 | 5 | 1 | true | false | true | false | false | false | low |
37,026,114 | Unable to override toString() for ArrayAdapter in Android Studio | <p>I am trying to override toString method of my class Match, to use with ArrayAdapter. But the ArrayAdapter seems to have been ignoring the override and is still using the toString method of object class. Here is the code used in the Match class:</p>
<pre><code>@Override
public String toString(){
return getTeamA+" ... | I am trying to override toString method of my class Match, to use with ArrayAdapter. But the ArrayAdapter seems to have been ignoring the override and is still using the toString method of object class. Here is the code used in the Match class: [CODE] But the ArrayAdapter is returning a long twisted string which is a J... | java|android|listview|google-app-engine|android-arrayadapter | 0 | 2016-05-04T11:10:21.643Z | 2,016 | 5 | 11 | 2 | 638 | 0 | 1,263 | 64 | 5 | 2 | true | true | false | false | false | false | zero |
37,026,174 | Gradle read environment specific values from properties.xml | <p>I am trying to manage version number for each environment differently from gradle using productFlavors. I have the following in my properties.xml file</p>
<pre><code><resources>
<integer name="version.code">100</integer>
<string name="version.name">1.0.1</string>
</resources... | I am trying to manage version number for each environment differently from gradle using productFlavors. I have the following in my properties.xml file [CODE] and I wrote the following in my build.gradle file. I expected it to act like switch-case however the following gradle sync error showed me the opposite. [CODE] ..... | android|android-gradle-plugin|build.gradle | 0 | 2016-05-04T11:13:12.040Z | 2,016 | 5 | 11 | 2 | 132 | 0 | 496 | 59 | 3 | 2 | true | true | false | false | false | false | zero |
37,026,185 | Android Studio - Signed APK for release crashes | <p>I am creating a signed APK for the next update of my app. But when i transfer this APK file to my devices and install it, it crashes on opening the app.</p>
<p>Here is my project level gradle file</p>
<pre><code>buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.andr... | I am creating a signed APK for the next update of my app. But when i transfer this APK file to my devices and install it, it crashes on opening the app. Here is my project level gradle file [CODE] And here is my module gradle file code: [CODE] And i have added below lines in my proguard file to avoid the warning/error ... | android-studio|crash|apk|release | 1 | 2016-05-04T11:13:41.057Z | 2,016 | 5 | 11 | 2 | 2,522 | 1 | 597 | 47 | 4 | 3 | true | false | false | false | false | false | low |
37,026,191 | Why does the listVIew go behind EditText? | <p>Hey People I have the problem that when the listview grows, it goes behind the editText... I do not want it to go behind the view.. I want it to stay over the editText.. could you help me ? I appreciate your Help. </p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:... | Hey People I have the problem that when the listview grows, it goes behind the editText... I do not want it to go behind the view.. I want it to stay over the editText.. could you help me ? I appreciate your Help. [CODE] | android|listview|android-edittext|android-linearlayout | 0 | 2016-05-04T11:13:49.460Z | 2,016 | 5 | 11 | 2 | 122 | 4 | 220 | 41 | 4 | 1 | true | false | false | false | false | false | zero |
37,026,238 | Recyclerview not loading images | <p>i'm trying to get images from url using volley but its not working
at the time of loading data app is crashing ... but when i remove the imageloader
evertything is loading correctly like text data ... </p>
<p>here is my adapter class </p>
<pre><code>public class RecyclerViewDataAdapter extends RecyclerView.Adapte... | i'm trying to get images from url using volley but its not working at the time of loading data app is crashing ... but when i remove the imageloader evertything is loading correctly like text data ... here is my adapter class [CODE] } and the JSON part [CODE] } here is error that is showing [CODE] | android|imageview|android-recyclerview|android-volley | 0 | 2016-05-04T11:15:54.493Z | 2,016 | 5 | 11 | 2 | 832 | 2 | 298 | 31 | 4 | 3 | true | false | false | false | false | false | zero |
37,026,322 | Failed to Sync Gradle, could not find com.android.support:support-annotations:23.3.0 | <p>Installing Butter Knife dependencies generates this error</p>
<pre><code>Error:Could not find com.android.support:support-annotations:23.3.0.
Required by:
Butter:app:unspecified
Butter:app:unspecified > com.jakewharton:butterknife:8.0.1
Butter:app:unspecified > com.jakewharton:butterknife-compiler... | Installing Butter Knife dependencies generates this error [CODE] I have installed support library but it still I get this error. Here is how Gradle dependencies look like [CODE] I have also added plugin apply plugin: 'com.neenbedankt.android-apt' and repositories [CODE] | android|gradle|butterknife | 4 | 2016-05-04T11:19:26.103Z | 2,016 | 5 | 11 | 2 | 8,626 | 4 | 270 | 84 | 3 | 3 | true | false | true | false | false | false | low |
37,026,451 | App incompatible for device Samsung SM-G350E 4.4.2 | <p>I have simply these permission in my manifest file <code><uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<us... | I have simply these permission in my manifest file <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permiss... | android | 0 | 2016-05-04T11:25:12.403Z | 2,016 | 5 | 11 | 2 | 47 | 1 | 921 | 50 | 1 | 0 | false | false | false | false | false | false | zero |
37,026,462 | How to start activity from multiple items in GridView | <p>This is my MainActivity class</p>
<pre><code>public class MainActivity extends AppCompatActivity {
GridView gridView;
Context context;
ArrayList prgmName;
public static String [] prgmNameList={"GFU","FAB","DRAW","ANIM","ABC","DEF","PHH","XSE","HGY"};
public static int [] prgmImages={R.drawable.... | This is my MainActivity class [CODE] And my Adapter class as follows : I want to start multiple activities from adapter class but it's not working [CODE] | android | 1 | 2016-05-04T11:25:48.423Z | 2,016 | 5 | 11 | 2 | 98 | 1 | 153 | 53 | 1 | 2 | true | false | false | false | false | false | low |
37,026,553 | filter cursor rows with a searchView give me CursorIndexOutOfBoundsException: After last row | <p>I want to filter cursor rows with a SearchView.
It gives me <code>CursorIndexOutOfBoundsException</code> after last row.
This is the getView method from my adapter extending <code>SimpleCursorAdapter</code></p>
<pre><code> @Override
public View getView(final int pos, View inView, ViewGroup parent) {
Vi... | I want to filter cursor rows with a SearchView. It gives me CursorIndexOutOfBoundsException after last row. This is the getView method from my adapter extending SimpleCursorAdapter [CODE] | android|cursor|searchview|android-cursoradapter | 0 | 2016-05-04T11:29:59.547Z | 2,016 | 5 | 11 | 2 | 74 | 0 | 187 | 92 | 4 | 1 | true | true | false | false | false | false | zero |
37,026,591 | how can i run cordova app even user close the app | <p>want create app cordova and ionic for android to alaram in some times like 2:50 and I want program run even close the program I use katzer/cordova-plugin-background-mode plugin, but when I close program, it be close and don't still run in background this is code Example I used:</p>
<pre><code>document.addEventListe... | want create app cordova and ionic for android to alaram in some times like 2:50 and I want program run even close the program I use katzer/cordova-plugin-background-mode plugin, but when I close program, it be close and don't still run in background this is code Example I used: [CODE] how can I make app still run even ... | android|cordova | 0 | 2016-05-04T11:32:14.403Z | 2,016 | 5 | 11 | 2 | 4,221 | 2 | 388 | 49 | 2 | 1 | true | false | true | false | false | false | zero |
37,026,668 | GCM Broadcast Receiver differentiate between different requests | <p>I have a standard GCM Broadcast receiver. When I make a request to the server, I send my registration ID and username and a title. When I want to send a message from the server back to the phone, how do I make sure its to that specific title again? So far all examples I've seen seem to rely on 1 request.</p>
<p>In ... | I have a standard GCM Broadcast receiver. When I make a request to the server, I send my registration ID and username and a title. When I want to send a message from the server back to the phone, how do I make sure its to that specific title again? So far all examples I've seen seem to rely on 1 request. In case I didn... | java|android|google-cloud-messaging | -2 | 2016-05-04T11:35:58.397Z | 2,016 | 5 | 11 | 2 | 63 | 1 | 774 | 63 | 3 | 2 | true | false | false | false | false | true | negative |
37,026,684 | Error building cordova android project with uppercase letters in package name | <p>I have a Cordova app several years old, which has capital letters in its package name. </p>
<p>It was working well before, with older versions of Cordova and building in Eclipse.</p>
<p>Now I cannot build it with Cordova 6.1.1 and gradle. It gives errors. </p>
<p>I have detected that it doesn't create the folder ... | I have a Cordova app several years old, which has capital letters in its package name. It was working well before, with older versions of Cordova and building in Eclipse. Now I cannot build it with Cordova 6.1.1 and gradle. It gives errors. I have detected that it doesn't create the folder structure and files for the a... | java|android|cordova|gradle | 0 | 2016-05-04T11:36:40.030Z | 2,016 | 5 | 11 | 2 | 467 | 1 | 1,450 | 77 | 4 | 2 | true | false | false | false | false | false | zero |
37,026,878 | Xamarin c# - Apps aren't starting | <p>I installed Xamarin on VS to make android apps with c#. Everything is good configured (I think so).
<a href="http://i.stack.imgur.com/Lb4uy.png" rel="nofollow">configuration of my sample</a></p>
<p>After creating a new project and selecting to run sample app on my avd (5.0 API21). AVD starts but my app doesn't appe... | I installed Xamarin on VS to make android apps with c#. Everything is good configured (I think so). configuration of my sample After creating a new project and selecting to run sample app on my avd (5.0 API21). AVD starts but my app doesn't appear. Also when i copy signed file to my Android phone (5.0.1 API21) it says ... | c#|android|xamarin | 1 | 2016-05-04T11:46:19.527Z | 2,016 | 5 | 11 | 2 | 72 | 1 | 407 | 33 | 3 | 2 | true | false | false | false | false | false | low |
37,026,927 | Security Exception accessing Content Provider in another application | <p>I'm trying to create a content provider usable only by the applications that are signed by the same certificate.
I've declared the content provider like this</p>
<pre><code><provider
android:name=".MyProvider"
android:authorities="com.example.provider"
android:permission="com.example.permissions.USER... | I'm trying to create a content provider usable only by the applications that are signed by the same certificate. I've declared the content provider like this [CODE] I have declared the permissions with signature protection level. All good but when I try to access the provider from the other application like this: [CODE... | android|android-contentprovider | 0 | 2016-05-04T11:48:11.570Z | 2,016 | 5 | 11 | 2 | 588 | 2 | 454 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
37,026,975 | Android 4.4.2, colorAccent is not working for radiobuttons in dialog | <p>I can't understand where is my mistake.
There is my style</p>
<pre><code> <style name="MyAlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorPrimary">@color/colorPrimaryDark</item>... | I can't understand where is my mistake. There is my style [CODE] Dialog's text and button's text are colored, but radiobuttons in my dialog are still black. Why does accennColor work for buttons's text and does not work for radiobutton ? this is code for dialog create [CODE] | android|colors|dialog | 2 | 2016-05-04T11:50:17.093Z | 2,016 | 5 | 11 | 2 | 269 | 0 | 275 | 68 | 3 | 2 | true | true | false | false | false | false | low |
37,026,994 | Android WebView crashes trying to play .mp4 video via <video> tag | <p>We have Android Studio 2.0 installed. Using android studio 2.0 we have created new application. Inside that application we added WebView. We try to open our webpage inside webview. Our webpage contains following video tag:</p>
<pre><code><video id="my_video" width="100%" height="100%" autoplay loop controls>
... | We have Android Studio 2.0 installed. Using android studio 2.0 we have created new application. Inside that application we added WebView. We try to open our webpage inside webview. Our webpage contains following video tag: [CODE] If we run our application on emulator, load webpage in webview and start video via mouse c... | android|html|video|webview|android-studio-2.0 | 0 | 2016-05-04T11:50:55.443Z | 2,016 | 5 | 11 | 2 | 881 | 1 | 781 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
37,027,416 | Video's suddenly stopped playing from Youtube API | <p>We've been using the Youtube API in our Android Application for about 3 months now, we removed alot of old video's the last couple of days and updated our MYSQL server where the video ID's are stored.</p>
<p>We made 60 video's add dynamically (using the MYSQL) in our main screen, and i've added about 6 video's 'har... | We've been using the Youtube API in our Android Application for about 3 months now, we removed alot of old video's the last couple of days and updated our MYSQL server where the video ID's are stored. We made 60 video's add dynamically (using the MYSQL) in our main screen, and i've added about 6 video's 'hardcoded', so... | android|video|youtube|youtube-api | 3 | 2016-05-04T12:10:31.340Z | 2,016 | 5 | 12 | 2 | 3,137 | 4 | 1,175 | 49 | 4 | 0 | false | false | true | false | false | false | low |
37,027,528 | Local webservice can not connect to android emulator | <p>i use vs2015 , webapi web service and xamarin.Android</p>
<p>i create a solution with 2 projects</p>
<p>1- project is web Api
2- is xamarin.android project</p>
<p>in Web API project i have a Url (<a href="http://localhost:27635/api/books/1/details" rel="nofollow">http://localhost:27635/api/books/1/details</a>)
an... | i use vs2015 , webapi web service and xamarin.Android i create a solution with 2 projects 1- project is web Api 2- is xamarin.android project in Web API project i have a Url ( http://localhost:27635/api/books/1/details ) and this return details of book like this [CODE] and in xamarin project: I used this code for consu... | c#|android|web-services|asp.net-web-api|xamarin.android | 0 | 2016-05-04T12:14:59.997Z | 2,016 | 5 | 12 | 2 | 287 | 0 | 625 | 52 | 5 | 3 | true | true | false | false | false | false | zero |
37,027,555 | How to create a persistant Dialogue Box in android app | <p>I am using this code, to create a dialogue box in my android app.
The popup dialogue box is created successfully but the problem is that if i touch anywhere on the screen, the dialogue box disappears. I want the Dialogue box to remain persistent on the screen, even if the user touches any other part of the screen. T... | I am using this code, to create a dialogue box in my android app. The popup dialogue box is created successfully but the problem is that if i touch anywhere on the screen, the dialogue box disappears. I want the Dialogue box to remain persistent on the screen, even if the user touches any other part of the screen. The ... | android|dialog | 0 | 2016-05-04T12:16:22.330Z | 2,016 | 5 | 12 | 2 | 756 | 1 | 535 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
37,027,567 | validate a datetime picker | <p>hey guys i have text views and when a user clicks on each text view a date-picker shows up.I have eight text views on the same page and they are ordered in their chronological order.The challenge now is that i want the first date time picker to show the date starting from today going onward and the next date-time pi... | hey guys i have text views and when a user clicks on each text view a date-picker shows up.I have eight text views on the same page and they are ordered in their chronological order.The challenge now is that i want the first date time picker to show the date starting from today going onward and the next date-time picke... | java|android|datetime | 0 | 2016-05-04T12:16:59.037Z | 2,016 | 5 | 12 | 2 | 51 | 1 | 543 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
37,027,735 | How to handle TextView OnClick listener on Ripple effect layout | <p>I have a cardview which having child ripple layout . Under ripple layout , I have layouts and textviews . <strong>In my class ,I added onclick listener on ripple layout . But I want to have onclick event on textview which is inside ripple effect .</strong></p>
<p><strong>What Happening right now</strong> : <em>Cli... | I have a cardview which having child ripple layout . Under ripple layout , I have layouts and textviews . In my class ,I added onclick listener on ripple layout . But I want to have onclick event on textview which is inside ripple effect . What Happening right now : Clicking the layout starts ripple onclick code and Te... | android|android-layout|android-recyclerview|android-cardview|android-framelayout | 1 | 2016-05-04T12:23:34.703Z | 2,016 | 5 | 12 | 2 | 495 | 0 | 596 | 63 | 5 | 3 | true | true | false | false | false | false | low |
37,027,771 | Filtering CardView with RecyclerView, not updating cards, always showing first cards | <p>I'm using a Cardview to populate my recyclerview. </p>
<p>I'm filtering with an EditText field, this works fine I know from debugging. </p>
<p>The problem is, when I call <code>adapter.notifyDataSetChanged();</code> the top cards stay. (depending on how many cards got through the filter)</p>
<p>My 4 strings i'm f... | I'm using a Cardview to populate my recyclerview. I'm filtering with an EditText field, this works fine I know from debugging. The problem is, when I call adapter.notifyDataSetChanged(); the top cards stay. (depending on how many cards got through the filter) My 4 strings i'm filtering on are [CODE] On the image you ca... | android|android-recyclerview|android-cardview | 0 | 2016-05-04T12:24:50.180Z | 2,016 | 5 | 12 | 2 | 1,372 | 1 | 871 | 84 | 3 | 3 | true | false | false | false | false | false | zero |
37,027,785 | Align a child Left in Parent ( relative layout) but to the half of the visible screen | <p>I have many child in a relative layout and I want them some of them to <code>Align Left</code> and some of them <code>align right</code> <strong>But</strong> align left should take half of the screen and align right should take remaining half. How could I do that?</p>
<p>Size of the child is not the same I want som... | I have many child in a relative layout and I want them some of them to Align Left and some of them align right But align left should take half of the screen and align right should take remaining half. How could I do that? Size of the child is not the same I want something like this: I have successfully align child to l... | android|android-layout|alignment | 2 | 2016-05-04T12:25:22.340Z | 2,016 | 5 | 12 | 2 | 282 | 0 | 639 | 85 | 3 | 1 | true | true | false | false | false | false | low |
37,027,833 | Facebook SDK Login callback is never called android | <p>I am using the following code snippet in my Android app to allow users to login into my app using Facebook:</p>
<pre><code>public class FacebookLoginActivity extends AppCompatActivity {
private CallbackManager callbackManager;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedI... | I am using the following code snippet in my Android app to allow users to login into my app using Facebook: [CODE] } However, it's not working because the defined Callback methods are never called, I am shown the facebook loader and I am reaching onActivityResult but the callbacks are never called, does anyone know wha... | android|facebook|facebook-sdk-4.x | 2 | 2016-05-04T12:26:53.713Z | 2,016 | 5 | 12 | 2 | 193 | 2 | 362 | 51 | 3 | 1 | true | false | false | false | false | false | low |
37,027,834 | Android WebView, show pdf file via Google Viewer with passing cookies | <p>I'm using this code to get pdf-file from Internet and show it in WebView. The problem is that I need to pass cookies to get access to that file, and I should use Google Viewer to show that file in WebView.</p>
<p>So, it looks like Google Viewer can't handle my cookies.
Is it possible to show file via Google Viewer ... | I'm using this code to get pdf-file from Internet and show it in WebView. The problem is that I need to pass cookies to get access to that file, and I should use Google Viewer to show that file in WebView. So, it looks like Google Viewer can't handle my cookies. Is it possible to show file via Google Viewer and auth co... | android|pdf|cookies|webview | 2 | 2016-05-04T12:26:55.533Z | 2,016 | 5 | 12 | 2 | 1,230 | 2 | 629 | 69 | 4 | 2 | true | false | false | false | false | false | low |
37,027,857 | Creating a button to start audio record, then when you want to stop the audio record you push the same button | <p>Hi all was hoping to get some help on a request for a noob! </p>
<p>I want to create a button (text="start recording") to start audio recording for android on Android Studio. However, when the user pushes the button to start the audio recording, I want the text on the button to change to "stop audio recording". So ... | Hi all was hoping to get some help on a request for a noob! I want to create a button (text="start recording") to start audio recording for android on Android Studio. However, when the user pushes the button to start the audio recording, I want the text on the button to change to "stop audio recording". So when the use... | android|audio-recording | -3 | 2016-05-04T12:28:20.033Z | 2,016 | 5 | 12 | 2 | 1,464 | 1 | 1,760 | 109 | 2 | 0 | false | false | false | false | false | true | negative |
37,027,860 | How to fix: java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory | <p>I have an project which includes a libraryproject.
My main project has the following dependencies: </p>
<pre><code>dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':foundationclasses')
compile 'com.android.support:multidex:'
testCompile 'junit:junit:4.12'
compile... | I have an project which includes a libraryproject. My main project has the following dependencies: [CODE] My library project`s dependencies: [CODE] gradlew app:dependencies gives the following result: [CODE] Error log: [CODE] I have tried everything but i cant get rid of this error, any advice would be greatly apprecia... | android|slf4j|noclassdeffounderror | 2 | 2016-05-04T12:28:29.450Z | 2,016 | 5 | 12 | 2 | 2,494 | 2 | 324 | 67 | 3 | 4 | true | false | false | false | false | false | low |
37,028,003 | File length always gives 0 while uploading file in android | <p>In the following code file.length() always gives 0. I am taking file from uploader in my Android App. I have set all file permissions and internet permission as well but still unable to get the length of the file so can not able to convert into Base64 and pass it to my webserive which decodes it using Base64_decode... | In the following code file.length() always gives 0. I am taking file from uploader in my Android App. I have set all file permissions and internet permission as well but still unable to get the length of the file so can not able to convert into Base64 and pass it to my webserive which decodes it using Base64_decode and... | java|android|file | 1 | 2016-05-04T12:34:13.850Z | 2,016 | 5 | 12 | 2 | 477 | 0 | 353 | 58 | 3 | 1 | true | true | false | false | false | false | low |
37,028,005 | Android Studio Cannot launch AVD in emulator. /opt/sdk/tools/emulator: Syntax error: word unexpected (expecting ")") | <p>Not be able to launch <code>emulator</code> in <code>Android Studio</code>.</p>
<p>I have updated my <code>SDK</code> some days ago. </p>
<p>Here is my current <code>SDK</code> details.</p>
<p><a href="https://i.stack.imgur.com/BWCxW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BWCxW.jpg" al... | Not be able to launch emulator in Android Studio . I have updated my SDK some days ago. Here is my current SDK details. My current system is Ubuntu 12.04 LTS with 32 Bit . I am having Android Studio v1.3.2 . My problem is when I try to launch any AVD from Android Studio I get following error. I am not able to find out ... | android|android-studio|android-emulator|avd | 3 | 2016-05-04T12:34:16.057Z | 2,016 | 5 | 12 | 2 | 5,609 | 2 | 658 | 116 | 4 | 0 | false | false | true | false | false | false | low |
37,028,133 | Calculating ExpandableListView height at the initial lifecycle | <p>I had a problem that stems from the fact that Android has certain difficulty with nested scrolling elements.</p>
<p>I have a ScrollView that hosts a horizontal RecyclerView and an ExpandableListView just beneath it.
The issue I encountered was that the ScrollView didn't scroll. </p>
<p>I fixed it by :
1. setting... | I had a problem that stems from the fact that Android has certain difficulty with nested scrolling elements. I have a ScrollView that hosts a horizontal RecyclerView and an ExpandableListView just beneath it. The issue I encountered was that the ScrollView didn't scroll. I fixed it by : 1. setting fixed height to the R... | android|listview|scrollview | 1 | 2016-05-04T12:39:50.637Z | 2,016 | 5 | 12 | 2 | 863 | 1 | 775 | 62 | 3 | 1 | true | false | false | false | false | false | low |
37,028,177 | How to refresh gallery after deleting list of images in android? | <p>I want to know how to refresh the gallery after deleting list of images.I am using the following method for deleting and refreshing.</p>
<pre><code> public static void deleteFile(Context context,String path) {
File file = new File(path);
String abspath = file.getAbsolutePath();
File f = ... | I want to know how to refresh the gallery after deleting list of images.I am using the following method for deleting and refreshing. [CODE] but it take more time for deleting and refreshing around 8000 images. which is the better way to delete and refresh. | android|image|gallery|delete-file | 0 | 2016-05-04T12:41:39.843Z | 2,016 | 5 | 12 | 2 | 1,383 | 0 | 256 | 64 | 4 | 1 | true | true | false | false | false | false | zero |
37,028,237 | How can I change action bar title with different style in different activities? | <p>I am trying to change my 2 fragments action bar's with different titles. However, I am getting variable 'fragment' might not have been initialized error in these lines:</p>
<p>ProfileFragment fragment = (ProfileFragment) fragment.get(0);</p>
<p>StartingTestFragment fragment2 = (StartingTestFragment) fragment2.get(... | I am trying to change my 2 fragments action bar's with different titles. However, I am getting variable 'fragment' might not have been initialized error in these lines: ProfileFragment fragment = (ProfileFragment) fragment.get(0); StartingTestFragment fragment2 = (StartingTestFragment) fragment2.get(0); in CombineFragm... | android|android-fragments|fragment|android-fragmentactivity | 1 | 2016-05-04T12:44:17.737Z | 2,016 | 5 | 12 | 2 | 357 | 0 | 471 | 79 | 4 | 3 | true | true | false | false | false | false | low |
37,028,248 | Null pointer exception in volley singleton | <p>I've copied the volleySingleton code from developer.android.com and tried to get an image from a URL in a recycler view, but at the time of loading data app crashes.
I've tried some fixes but they haven't worked</p>
<p>Here is the volleySingleton class copied from developer.android.com </p>
<pre><code>public cla... | I've copied the volleySingleton code from developer.android.com and tried to get an image from a URL in a recycler view, but at the time of loading data app crashes. I've tried some fixes but they haven't worked Here is the volleySingleton class copied from developer.android.com [CODE] Here is the logcat report java.la... | android|android-recyclerview|android-volley | 0 | 2016-05-04T12:44:50.693Z | 2,016 | 5 | 12 | 2 | 265 | 0 | 4,265 | 42 | 3 | 2 | true | true | false | false | false | false | zero |
37,028,279 | How to sync iOS in-App Purchase to user account on other platforms | <p>My team is working on a digital music app where users can buy music from local artists on their smartphone. We are targeting Android and iOS platforms to start with. We have the following payment mechanisms on our Android app (among others):</p>
<ol>
<li>PayTM wallet</li>
<li>Credit card </li>
<li>Netbanking</li>
<... | My team is working on a digital music app where users can buy music from local artists on their smartphone. We are targeting Android and iOS platforms to start with. We have the following payment mechanisms on our Android app (among others): PayTM wallet Credit card Netbanking Our Android app passed the review and is l... | android|ios|in-app-purchase|cross-platform|payment-gateway | 1 | 2016-05-04T12:46:23.060Z | 2,016 | 5 | 12 | 2 | 1,143 | 1 | 1,598 | 66 | 5 | 0 | false | false | false | false | false | false | low |
37,028,342 | Can't update app in store because of target api23 (no downgrade possible) | <p><strong>long story short:</strong></p>
<ul>
<li>I have an app in the store, uploaded with target(!) api23</li>
<li>Now I have to use the metaio SDK (Augmented reality) to implement a feature</li>
<li>this SDK is not maintained anymore (company got bought & closed by apple)</li>
<li>metaio SDK crashes when using... | long story short: I have an app in the store, uploaded with target(!) api23 Now I have to use the metaio SDK (Augmented reality) to implement a feature this SDK is not maintained anymore (company got bought & closed by apple) metaio SDK crashes when using a target api23 ...because of text relocations in the ffmpeg lib,... | android|ffmpeg|google-play|metaio|android-api-levels | 4 | 2016-05-04T12:49:23.310Z | 2,016 | 5 | 12 | 2 | 999 | 2 | 1,118 | 73 | 5 | 0 | false | false | false | false | false | false | low |
37,028,443 | Handling onMessageReceived function for push notifications: NativeScript | <p>I'm developing an android app with NativeScript which includes push notifications functionality.
Whenever push message is coming I have to save the message details.For implementing this functionality I used onMessageReceived function.</p>
<pre><code>App.js file:::::
var application=require("application");
var appl... | I'm developing an android app with NativeScript which includes push notifications functionality. Whenever push message is coming I have to save the message details.For implementing this functionality I used onMessageReceived function. [CODE] notifications.js [CODE] permissions in app->App_Resources->Android->AndroidMan... | android|push-notification|google-cloud-messaging|nativescript | 2 | 2016-05-04T12:53:59.590Z | 2,016 | 5 | 12 | 2 | 1,206 | 1 | 1,445 | 72 | 4 | 3 | true | false | false | false | false | false | low |
37,028,542 | How to avoid keyboard from moving my layout | <p>Every time I get in the Activity, the keyboard layout moves. I want the fields to remain below the keyboard, and you use the scroll.
I think that may be something with the actionbar.</p>
<p>See hera a print <a href="http://i.stack.imgur.com/sm9xG.png" rel="nofollow">screen</a></p>
<p>I used <code>android:windowSo... | Every time I get in the Activity, the keyboard layout moves. I want the fields to remain below the keyboard, and you use the scroll. I think that may be something with the actionbar. See hera a print screen I used android:windowSoftInputMode="adjustPan|adjustResize" with no success. [CODE] | android|android-layout|android-linearlayout|android-input-method | 0 | 2016-05-04T12:58:36.920Z | 2,016 | 5 | 12 | 2 | 118 | 2 | 290 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.