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,043,792 | ExpandableListView GroupView with an EditText Expanded not working | <p>I tried to keep edit text in group view of expandable listview.If i keep edit text Expanded and collapse not working for the groupview.</p>
<p>I tried with other views like text view and check boxes group view working fine .</p>
<p>May you know what was the reason for expand and collapse not working with edittext... | I tried to keep edit text in group view of expandable listview.If i keep edit text Expanded and collapse not working for the groupview. I tried with other views like text view and check boxes group view working fine . May you know what was the reason for expand and collapse not working with edittext. Sample wroking gro... | android|xml|android-layout|listview|expandablelistview | 0 | 2016-05-05T06:24:12.200Z | 2,016 | 5 | 6 | 3 | 478 | 1 | 485 | 66 | 5 | 3 | true | false | false | false | false | false | zero |
37,043,812 | Navigation drawer changes in rotation | <p>I have two fragments MainFragment and First_Fragment. First fragment contains a video view but whenever I try to rotate, nav drawer always goes back to its main fragment. How could I save or restore my fragment state ? so it would stop going back to its main fragment.</p>
<p>Here's my code for the MainActivity</p>
... | I have two fragments MainFragment and First_Fragment. First fragment contains a video view but whenever I try to rotate, nav drawer always goes back to its main fragment. How could I save or restore my fragment state ? so it would stop going back to its main fragment. Here's my code for the MainActivity [CODE] | java|android | 1 | 2016-05-05T06:24:53.453Z | 2,016 | 5 | 6 | 3 | 3,575 | 4 | 311 | 37 | 2 | 1 | true | false | true | false | false | false | low |
37,043,824 | how can i align switch in navigation drawer menu? | <p><a href="http://i.stack.imgur.com/hiQdt.png" rel="nofollow">Sample Navigation Drawer Required</a></p>
<p>This is my navigation drawer layout</p>
<p>I cannot align this switch </p>
<p><a href="http://i.stack.imgur.com/dMnzQ.png" rel="nofollow">Sample Navigation Drawer Achieved</a></p>
<p>like this </p>
<p>this i... | Sample Navigation Drawer Required This is my navigation drawer layout I cannot align this switch Sample Navigation Drawer Achieved like this this is my xml code toggle.xml [CODE] drawer.xml [CODE] what's wrong? | android|xml | 1 | 2016-05-05T06:25:38.193Z | 2,016 | 5 | 6 | 3 | 1,418 | 2 | 210 | 49 | 2 | 2 | true | false | false | false | false | false | low |
37,043,939 | Gradle Coverage with Cobertura and Sonar | <p>I am trying to configure our Android Gradle build to publish code coverage results (generated by Cobertura) to Sonar.</p>
<p>We have a modular project structure where each module is built as an apk-lib or apk. The project is structured like so:</p>
<pre><code>build.gradle (top-level gradle build script)
settings.... | I am trying to configure our Android Gradle build to publish code coverage results (generated by Cobertura) to Sonar. We have a modular project structure where each module is built as an apk-lib or apk. The project is structured like so: [CODE] I have had some luck generating the coverage using Cobertura. I can see the... | android|gradle|sonarqube|cobertura|sonarqube-scan | 2 | 2016-05-05T06:33:35.257Z | 2,016 | 5 | 6 | 3 | 1,854 | 0 | 925 | 40 | 5 | 3 | true | true | false | false | false | false | low |
37,043,978 | App Crash when stop recording second time | <p>working in recording when i am record first time this working fine but second time is starting recording and when stop then recording then it crash nad give <strong>java.lang.IllegalStateException</strong> </p>
<p>i dont underswtand why</p>
<p><strong>my code is</strong></p>
<pre><code> public void onCreate(Bundl... | working in recording when i am record first time this working fine but second time is starting recording and when stop then recording then it crash nad give java.lang.IllegalStateException i dont underswtand why my code is [CODE] My Logcate [CODE] help me please | android | 1 | 2016-05-05T06:35:31.010Z | 2,016 | 5 | 6 | 3 | 583 | 2 | 262 | 41 | 1 | 2 | true | false | false | false | false | false | low |
37,044,032 | Card Slide Library cannot find symbol variable/class android studio | <pre><code>Error:(25, 31) error: package android.support.v4.util does not exist
Error:(26, 31) error: package android.support.v4.view does not exist
Error:(27, 31) error: package android.support.v4.view does not exist
Error:(2189, 17) error: cannot find symbol class SparseArrayCompat
Error:(692, 48) error: cannot find ... | [CODE] While importing the project to android studio,it shows the error that it didn't find some items from library ,what could be the issue? I am waiting for the reply ,please let me know if you find any possible solution to this problem ,I would be very thankful to you [CODE] | android | 2 | 2016-05-05T06:39:00.140Z | 2,016 | 5 | 6 | 3 | 824 | 1 | 278 | 67 | 1 | 2 | true | false | false | false | false | false | low |
37,044,097 | Camera app gets closed in android marshmallow | <p>I have created an app in which the user can take pics using their default camera.It works fine in older versions that is till lollipop but when i try to run the app in marshmallow the app gets closed.
So i have added some codes to give permission for the camera app by the user but even it is not working.</p>
<pre>... | I have created an app in which the user can take pics using their default camera.It works fine in older versions that is till lollipop but when i try to run the app in marshmallow the app gets closed. So i have added some codes to give permission for the camera app by the user but even it is not working. [CODE] I have ... | android|camera|android-6.0-marshmallow | 1 | 2016-05-05T06:42:26.293Z | 2,016 | 5 | 6 | 3 | 263 | 0 | 484 | 45 | 3 | 2 | true | true | false | false | false | false | low |
37,044,098 | cordova6.1.1(Android platform 5.1.1) gallery image is not uploading correctly | <p>uploading gallery image working properly in cordova(3.6.3) version . After upgrading cordova6.1.1(Android platform 5.1.1) gallery image is not uploading correctly. I am able to select the image from the gallery but selected image is not visible in the UI. Captured camera image is getting updated in the UI. Image sel... | uploading gallery image working properly in cordova(3.6.3) version . After upgrading cordova6.1.1(Android platform 5.1.1) gallery image is not uploading correctly. I am able to select the image from the gallery but selected image is not visible in the UI. Captured camera image is getting updated in the UI. Image select... | android|cordova | 1 | 2016-05-05T06:42:31.157Z | 2,016 | 5 | 6 | 3 | 119 | 1 | 958 | 77 | 2 | 2 | true | false | false | false | false | false | low |
37,044,103 | Getting the Response code 401 message in twitter api request | <p>The below code is getting response code 401.please help anyone to get search tweets from twitter api.I am using http urlconnection instead of httprequest.I need to get response tweets using jsonobject</p>
<pre><code>HttpURLConnection urlConnection=null;
protected void onCreate(Bundle savedInstanceState) {
... | The below code is getting response code 401.please help anyone to get search tweets from twitter api.I am using http urlconnection instead of httprequest.I need to get response tweets using jsonobject [CODE] | android|twitter | 1 | 2016-05-05T06:42:41.777Z | 2,016 | 5 | 6 | 3 | 107 | 1 | 207 | 60 | 2 | 1 | true | false | false | false | false | false | low |
37,044,218 | java.io.FileNotFoundException: app/libs/perfectjpattern-core-1.0.0.jar (No such file or directory) | <p>Error:Execution failed for task ':app:compileDebugJavaWithJavac'.</p>
<blockquote>
<p>java.io.FileNotFoundException: /app/libs/perfectjpattern-core-1.0.0.jar (No such file or directory)</p>
</blockquote>
<p>I know that I need to install JAR. I do not understand how it came to this situation without making a chan... | Error:Execution failed for task ':app:compileDebugJavaWithJavac'. java.io.FileNotFoundException: /app/libs/perfectjpattern-core-1.0.0.jar (No such file or directory) I know that I need to install JAR. I do not understand how it came to this situation without making a change. It could have been because of the new Androi... | java|android|gradle|filenotfoundexception|perfectjpattern | -1 | 2016-05-05T06:49:19.747Z | 2,016 | 5 | 6 | 3 | 1,053 | 1 | 369 | 98 | 5 | 1 | true | false | false | false | false | true | negative |
37,044,243 | Change the visibility of a View while repeating data | <p>I am populating OrderHistory by retrieving data from Server in my app. Here I need to populate listitem depends on OrderId. If OrderId repeats I need to hide the LinearLayout which is marked in green in screenshot. Otherwise the Layout has to be usual view.Please help me.</p>
<p><a href="https://i.stack.imgur.com/r... | I am populating OrderHistory by retrieving data from Server in my app. Here I need to populate listitem depends on OrderId. If OrderId repeats I need to hide the LinearLayout which is marked in green in screenshot. Otherwise the Layout has to be usual view.Please help me. MyAdapter Class: [CODE] UPDATE: [CODE] | android|android-recyclerview|visibility|listitem | 0 | 2016-05-05T06:50:26.950Z | 2,016 | 5 | 6 | 3 | 866 | 3 | 311 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
37,044,376 | Calling button.performClick() automatically just after activity is fully loaded? | <p>I start an activity from a background service which unlocks the phone and starts an activity. What I want to achieve is to go to home screen just after the activity is loaded. I created a button on the activity that I go to just after unlocking and on its OnClick method I used:</p>
<pre><code>moveTaskToBack(true);
... | I start an activity from a background service which unlocks the phone and starts an activity. What I want to achieve is to go to home screen just after the activity is loaded. I created a button on the activity that I go to just after unlocking and on its OnClick method I used: [CODE] Now, I need to call buttonName.per... | android|android-activity | 0 | 2016-05-05T06:57:57.847Z | 2,016 | 5 | 6 | 3 | 960 | 2 | 503 | 80 | 2 | 3 | true | false | false | false | false | false | zero |
37,044,393 | Inserting a Date in SQLite and then compare for a specific interval | <p>I have on table which contains a Date column as "Time DATE" now I am using content Values to insert data into it.
Content Values takes input as <code>cv.put(String Key,String Value)</code> now how do I insert a <strong>Date</strong> Data in it and after insertion when i insert next time it should check for interval ... | I have on table which contains a Date column as "Time DATE" now I am using content Values to insert data into it. Content Values takes input as cv.put(String Key,String Value) now how do I insert a Date Data in it and after insertion when i insert next time it should check for interval like 5 min before and after and i... | android|sqlite | 0 | 2016-05-05T06:58:54.833Z | 2,016 | 5 | 6 | 3 | 137 | 2 | 668 | 67 | 2 | 1 | true | false | false | false | false | false | zero |
37,044,443 | SimpleDateFormat is behaving strange in Android | <p>Following is the code that I have used to get the 00 hour of the current day (in long format).</p>
<p>I am running the below code in android.</p>
<p>The method returns the value properly most of the time. But once in a while it returns the value of <strong>System.currentTimeMillis()</strong>.</p>
<pre><code>impor... | Following is the code that I have used to get the 00 hour of the current day (in long format). I am running the below code in android. The method returns the value properly most of the time. But once in a while it returns the value of System.currentTimeMillis() . [CODE] Why is it returning the System.currentTimeMillis(... | java|android|date|simpledateformat | 1 | 2016-05-05T07:01:48.473Z | 2,016 | 5 | 7 | 3 | 119 | 1 | 556 | 47 | 4 | 1 | true | false | false | false | false | false | low |
37,044,532 | Why does overshoot_interpolator not work? | <p><strong>RESOLVED</strong>
If I write animation xml like below, overshoot_interpolator does not work.</p>
<pre><code><set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true"
android:fillBefore="true">
<translate
android:interpolator="@android:anim/overshoot_inte... | RESOLVED If I write animation xml like below, overshoot_interpolator does not work. [CODE] If I put android:interpolator="@android:anim/overshoot_interpolator" into set, it will work.But the problem is that other animation will also has this interpolator. [CODE] | android|animation | 4 | 2016-05-05T07:06:23.660Z | 2,016 | 5 | 7 | 3 | 1,238 | 1 | 262 | 41 | 2 | 2 | true | false | false | false | false | false | low |
37,044,546 | dalvikvm: Could not find class | <p>I'm getting the following error and crash when running an avd with API 17-20. I don't get this error with API 23. I am using Android Studio 2.0.</p>
<pre><code>05-06 02:31:48.252 1544-1544/com.xxx.android E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.xxx.android.Splas... | I'm getting the following error and crash when running an avd with API 17-20. I don't get this error with API 23. I am using Android Studio 2.0. [CODE] Here is the questionable code: [CODE] AndroidManifest.xml: [CODE] Any ideas? | android|noclassdeffounderror | 2 | 2016-05-05T07:07:08.410Z | 2,016 | 5 | 7 | 3 | 1,830 | 1 | 228 | 30 | 2 | 3 | true | false | false | false | false | false | low |
37,044,562 | Error while adding Check boxes to Navigation Drawer ListView | <p>I'm trying to add a customized navigation drawer to my android application. What i need is to add a list view containing icon, name and a check box.</p>
<p>Currently, i was able to add an icon and name.</p>
<p>This is my <code>onCreateView</code> in <code>NavigationDrawerFragment.java</code></p>
<pre><code> pu... | I'm trying to add a customized navigation drawer to my android application. What i need is to add a list view containing icon, name and a check box. Currently, i was able to add an icon and name. This is my onCreateView in NavigationDrawerFragment.java [CODE] But, I couldn't add check box to my navigation drawer. So, I... | java|android | 0 | 2016-05-05T07:08:16.257Z | 2,016 | 5 | 7 | 3 | 174 | 1 | 553 | 60 | 2 | 2 | true | false | false | false | false | false | zero |
37,044,721 | How to use Jackson with nested Generics? | <p>I use Retrofit and Jackson.There is a POJO like this:</p>
<pre><code>public class QuotationHttpResult<T> {
private int code;
private Result result;
public T getData(){
return result == null ? null : result.getData();
}
public int getCode() {
return code;
}
public... | I use Retrofit and Jackson.There is a POJO like this: [CODE] The filed data is what I need,sometimes is a POJO,sometimes is a List. When it is a list,jackson just convert data to a LinkedHashMap even though I use the TypeReference: The Json String is : [CODE] the convert code: [CODE] MyClass is simple: [CODE] I see thi... | java|android|json|jackson | 5 | 2016-05-05T07:17:45.723Z | 2,016 | 5 | 7 | 3 | 2,433 | 2 | 461 | 40 | 4 | 4 | true | false | false | false | false | false | low |
37,044,734 | Some device dont's receive push notification | <p>I implemented GCM push notification with play services 8.4 and sending via php with high priority.
In my Android 4.3 I receive the message, even if after a few minutes while a J5 Samsung with Android 5.1 can take several hours and sometimes is not even received.
I followed the google implementation guidelines for th... | I implemented GCM push notification with play services 8.4 and sending via php with high priority. In my Android 4.3 I receive the message, even if after a few minutes while a J5 Samsung with Android 5.1 can take several hours and sometimes is not even received. I followed the google implementation guidelines for the g... | android|google-cloud-messaging | 1 | 2016-05-05T07:18:39.363Z | 2,016 | 5 | 7 | 3 | 759 | 0 | 1,050 | 44 | 2 | 2 | true | true | false | false | false | false | low |
37,044,744 | java.lang.NullPointerException getting Text value from added Fragment in View Pager | <p>Hi I'm new with android fragment. I want to get the value from fragment added from ViewPager. But I don't know how the right way to do this? It gives me error java.lang.NullPointerException, I have tried to see references, but I can not find example for how to do this in the proper way. Thank you</p>
<pre><code>pri... | Hi I'm new with android fragment. I want to get the value from fragment added from ViewPager. But I don't know how the right way to do this? It gives me error java.lang.NullPointerException, I have tried to see references, but I can not find example for how to do this in the proper way. Thank you [CODE] And then after ... | java|android|android-fragments | 0 | 2016-05-05T07:19:22.350Z | 2,016 | 5 | 7 | 3 | 28 | 0 | 384 | 83 | 3 | 3 | true | true | false | false | false | false | zero |
37,044,750 | Displaying activity(theme dialog) show above the Dialer in lockscreen? | <p>Need to show the Activity (Theme dialog) over the dialer with some information populated in activity like true caller. In unlocked phone, it is working well.</p>
<p>But in locked phone, it didnt work as expected. Did some googling and found few flags needs to be added to make dialog appear in lock screen.</p>
<h1>... | Need to show the Activity (Theme dialog) over the dialer with some information populated in activity like true caller. In unlocked phone, it is working well. But in locked phone, it didnt work as expected. Did some googling and found few flags needs to be added to make dialog appear in lock screen. CallActivity.java [C... | android|android-activity | 4 | 2016-05-05T07:19:42.227Z | 2,016 | 5 | 7 | 3 | 594 | 1 | 635 | 70 | 2 | 2 | true | false | false | false | false | false | low |
37,044,876 | How to get account reference while using paypal future payment? | <p>Hello I want to add more than one paypal accounts in my android application and user have to select from saved account at time of payment. For this I am using Future payment option of paypal</p>
<pre><code>@Override
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
if (resultCode == ... | Hello I want to add more than one paypal accounts in my android application and user have to select from saved account at time of payment. For this I am using Future payment option of paypal [CODE] in this way I am getting auth code but i also need some account reference to give account selection option to users. How c... | android|paypal | 2 | 2016-05-05T07:27:17.953Z | 2,016 | 5 | 7 | 3 | 38 | 0 | 413 | 63 | 2 | 1 | true | true | false | false | false | false | low |
37,044,891 | How to pass ArrayList<string> into BasicNameValuePair | <p>I am facing a problem with BasicNameValuePair. I want to pass a ArrayList into BasicNameValuePair. Through NameValuePair, I want to Post this arrayList to Php file. But I am getting a error. Please help me out. Thank you.</p>
<p>Here is my Android Code:</p>
<pre><code> protected String doInBackground(String...... | I am facing a problem with BasicNameValuePair. I want to pass a ArrayList into BasicNameValuePair. Through NameValuePair, I want to Post this arrayList to Php file. But I am getting a error. Please help me out. Thank you. Here is my Android Code: [CODE] | java|android|arraylist|basicnamevaluepair | 0 | 2016-05-05T07:27:59.210Z | 2,016 | 5 | 7 | 3 | 2,118 | 1 | 253 | 53 | 4 | 1 | true | false | false | false | false | false | zero |
37,044,930 | How to achieve scheduling of a very frequent task on Android? | <p>I'd like to send via the UDP protocol one single datagram at a fixed rate, every 30ms or so. I managed to do that with ease using three classes, <code>Timer</code>, <code>ScheduledThreadPoolExecutor</code> and <code>Handler</code>. </p>
<p>All three approaches had the same issue, everything works well, then suddend... | I'd like to send via the UDP protocol one single datagram at a fixed rate, every 30ms or so. I managed to do that with ease using three classes, Timer , ScheduledThreadPoolExecutor and Handler . All three approaches had the same issue, everything works well, then suddendly a sender thread freezes for a few seconds, the... | java|android | 0 | 2016-05-05T07:30:06.827Z | 2,016 | 5 | 7 | 3 | 52 | 0 | 1,135 | 61 | 2 | 0 | false | true | false | false | false | false | zero |
37,044,954 | compilation faild - Execution failed for task ':app:mergeReleaseResources - Duplicate resources | <p>i am getting this error while trying to run my app in android studio.
all the "duplicate" resources exist in different layout folders(each for different size).</p>
<pre><code>Error:Execution failed for task ':app:mergeReleaseResources'.
> [layout-ldrtl-hdpi-v17/coachmark_dashboard2] C:\Users\USER\Mobile-Android\... | i am getting this error while trying to run my app in android studio. all the "duplicate" resources exist in different layout folders(each for different size). [CODE] | android|android-studio|gradle | 0 | 2016-05-05T07:31:07.160Z | 2,016 | 5 | 7 | 3 | 1,024 | 1 | 166 | 95 | 3 | 1 | true | false | false | false | false | false | zero |
37,044,964 | java.lang.RuntimeException: stop failed. when use MediaRecord#stop | <p>here is my <a href="https://gist.github.com/618198030c2ad459ad85f8961d59b6b1" rel="nofollow">full code</a>, here is <a href="https://github.com/roroco/adr-try/tree/MediaRecorder#stop-faield" rel="nofollow">my project</a>, when i use MediaRecorder#stop in #onCreate, it raise</p>
<pre><code>java.lang.RuntimeException... | here is my full code , here is my project , when i use MediaRecorder#stop in #onCreate, it raise [CODE] so how to fix it? | java|android | 1 | 2016-05-05T07:31:39.873Z | 2,016 | 5 | 7 | 3 | 1,471 | 2 | 121 | 66 | 2 | 1 | true | false | false | false | false | false | low |
37,044,966 | Near "SELECT": syntax error (code 1) | <p>I am faced with problem: </p>
<pre><code>Caused by: android.database.sqlite.SQLiteException: near "SELECT": syntax error (code 1): , while compiling: SELECT tags FROM appDb_table_project WHERE SELECT DISTINCT tags
</code></pre>
<p>I have:</p>
<pre><code>public static final String DB_NAME = "appDbProject";
public ... | I am faced with problem: [CODE] I have: [CODE] I'm trying to use SELECT DISTINCT statement for my data in field "tags" and put it into String[], but I did not get. [CODE] I tried different options, but forever I get this error in this line and inside of my method "getTags": [CODE] What am I doing wrong? upd: Code that ... | android|sqlite|android-database | -3 | 2016-05-05T07:31:41.890Z | 2,016 | 5 | 7 | 3 | 948 | 2 | 361 | 36 | 3 | 4 | true | false | false | false | false | true | negative |
37,044,969 | Cordova 5.1.1 "There was a network error" message in onReceivedError method when I call network url from Cordova Android webview | <p>I am using Cordova 5.1.1. I want to call network URL from CordovaWebview in android. My Android OS version is 4.4.2. Here is my code from Android Side.</p>
<p><strong><em>Android</em></strong></p>
<p><strong>content_main.xml file:-</strong></p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android... | I am using Cordova 5.1.1. I want to call network URL from CordovaWebview in android. My Android OS version is 4.4.2. Here is my code from Android Side. Android content_main.xml file:- [CODE] Here is my java file where i have initialized WebView and call a network url. MainActivity.java:- [CODE] Here is my config file w... | cordova|cordova-plugins|content-security-policy|android-security|cordovawebview | 2 | 2016-05-05T07:31:48.013Z | 2,016 | 5 | 7 | 3 | 2,001 | 1 | 857 | 128 | 5 | 4 | true | false | false | false | false | false | low |
37,045,052 | How to open fragment class through intent in another activity? | <p>My SlidingScreenActivity code is,</p>
<pre><code>private class SlideMenuClickListener implements
ListView.OnItemClickListener {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
// display view for selected nav drawer i... | My SlidingScreenActivity code is, [CODE] Another Activity button listener, [CODE] How can i open MyWallet fragment that i have already declared in case 2: in SlidingScreenActivity.class ,when click on button in another activity through Intent? could anyone help me? Thanks in advance... | android|android-intent|fragment|slidingdrawer | 1 | 2016-05-05T07:36:50.203Z | 2,016 | 5 | 7 | 3 | 4,855 | 1 | 286 | 62 | 4 | 2 | true | false | true | false | false | false | low |
37,045,200 | How to set textView.setText before Activity Launch | <p>In my App, when Options <strong>Menu -> About -> Here</strong> is pressed, I'm showing info with <code>DialogActivity</code>.</p>
<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
TextView textview = OptionSelDialog.optionsTextView; //(static assigned and p... | In my App, when Options Menu -> About -> Here is pressed, I'm showing info with DialogActivity . [CODE] Here OptionSelDialog is separate Activity , not yet called from anywhere. I tried: Calling startActivity of OptionSelDialog from MainActivity.OnCreate Intilizing textview in OptionSelDialog construtor (I know this is... | android|android-activity|launch | 1 | 2016-05-05T07:44:07.373Z | 2,016 | 5 | 7 | 3 | 599 | 1 | 468 | 50 | 3 | 1 | true | false | false | false | false | false | low |
37,045,206 | Cannot see selected text android AppcompactSpinner | <p>I have put an app compact spinner in my application. I am unable to see the selected text(I think this is because the colour of the selected text becomes white, i.e same as the background colour). I am able to see the text in the dropdown.</p>
<p><strong>support-design - 23.3.0</strong></p>
<p><strong>minSdkVersio... | I have put an app compact spinner in my application. I am unable to see the selected text(I think this is because the colour of the selected text becomes white, i.e same as the background colour). I am able to see the text in the dropdown. support-design - 23.3.0 minSdkVersion: 15 targetSdkVersion 23 My Spinner code [C... | android|spinner|android-spinner|android-appcompat | 1 | 2016-05-05T07:44:34.837Z | 2,016 | 5 | 7 | 3 | 1,015 | 2 | 369 | 50 | 4 | 1 | true | false | false | false | false | false | low |
37,045,238 | Refer Custom Class to MainActivity.java | <p>Apologize for this question. it might be bogus. but I need help as I m searching for the answer from back two days. I cant find any solution.
How to connect any individual class to MainActivity.java
Here. For instance. I have custom java class (strnum1.java) containing onclick to return number to textview. I want to... | Apologize for this question. it might be bogus. but I need help as I m searching for the answer from back two days. I cant find any solution. How to connect any individual class to MainActivity.java Here. For instance. I have custom java class (strnum1.java) containing onclick to return number to textview. I want to re... | android|class|main-activity | 0 | 2016-05-05T07:47:14.283Z | 2,016 | 5 | 7 | 3 | 73 | 1 | 459 | 39 | 3 | 1 | true | false | false | false | false | false | zero |
37,045,280 | Realm Observable not finishing when using rx-java amb() or switchIfEmpty() | <p>When using Realm Observable by calling <code>asObservable()</code> on the query, with <code>amb()</code> or <code>switchIfEmpty()</code> cause the realm's observable to not finish its sequence. A work around to this can be done by using <code>Observable.just()</code> instead of Realms <code>asObservable()</code>.</p... | When using Realm Observable by calling asObservable() on the query, with amb() or switchIfEmpty() cause the realm's observable to not finish its sequence. A work around to this can be done by using Observable.just() instead of Realms asObservable() . I cant figure out if this is caused by my code or a bug in rx-java or... | android|realm|rx-java|rx-android | 0 | 2016-05-05T07:49:46.067Z | 2,016 | 5 | 7 | 3 | 249 | 1 | 334 | 74 | 4 | 1 | true | false | false | false | false | false | zero |
37,045,287 | Symmetric vs. Asymmetric encryption for encrypting images on Android | <p>I am trying to create an Android app that encrypts data on-the-fly and write it to storage. Already implemented the app with no encryption, checked 100+ examples/posts of encryption on stackoverflow but couldn't decide which method to use.</p>
<p>At first thought of of using AES and did some googling to find how se... | I am trying to create an Android app that encrypts data on-the-fly and write it to storage. Already implemented the app with no encryption, checked 100+ examples/posts of encryption on stackoverflow but couldn't decide which method to use. At first thought of of using AES and did some googling to find how secure it is.... | android|encryption | 4 | 2016-05-05T07:50:11.943Z | 2,016 | 5 | 7 | 3 | 886 | 1 | 1,521 | 68 | 2 | 0 | false | false | false | false | false | false | low |
37,045,311 | how pass parameters between two fragments onClick Button | <p>i have the follow problem: when i click on button, i want pass parameter from MyListFragment to FragmentTwo; but the code that i have doesn't work...i don't know why...I hope that you can help me!
Thanks</p>
<pre><code>public class ScrollableTabsActivity extends AppCompatActivity {
private Toolbar toolbar;
... | i have the follow problem: when i click on button, i want pass parameter from MyListFragment to FragmentTwo; but the code that i have doesn't work...i don't know why...I hope that you can help me! Thanks [CODE] MY FRAGMENT LIST: [CODE] FRAGMENT TWO: [CODE] LOGCAT: [CODE] | android|android-fragments|android-studio|android-viewpager | 1 | 2016-05-05T07:51:18.130Z | 2,016 | 5 | 7 | 3 | 1,334 | 2 | 271 | 56 | 4 | 4 | true | false | false | false | false | false | low |
37,045,350 | ActionBarDrawerToggle with AppCompatActivity and Toolbar Back button with Fragments | <p>I am using the ActionBarDrawerToggle with NavigationView. My content is displayed using fragments.</p>
<p>I am following <a href="https://stackoverflow.com/questions/26582075/cannot-catch-toolbar-home-button-click-event">this stackoverflow question</a> to get the back button press to work but control never flows to... | I am using the ActionBarDrawerToggle with NavigationView. My content is displayed using fragments. I am following this stackoverflow question to get the back button press to work but control never flows to onOptionsItemSelected . This is my MainActivity.class: [CODE] How can I capture the Back button <- click from Tool... | android|navigation-drawer|drawerlayout|actionbardrawertoggle|drawertoggle | 1 | 2016-05-05T07:54:17.277Z | 2,016 | 5 | 7 | 3 | 1,191 | 2 | 484 | 83 | 5 | 2 | true | false | false | false | false | false | low |
37,045,431 | how to play sound Over background music | <p>I have an application that has single activity and I know How to play a background music using the Media player. As I have only one activity so I think I really do not need to play this music in the service. so I have little confusion so this is what I want. </p>
<blockquote>
<p><strong>What I want :</strong></p... | I have an application that has single activity and I know How to play a background music using the Media player. As I have only one activity so I think I really do not need to play this music in the service. so I have little confusion so this is what I want. What I want : In my app I have a single activity and some but... | android|android-mediaplayer|android-music-player | 0 | 2016-05-05T07:59:12.803Z | 2,016 | 5 | 7 | 3 | 2,894 | 1 | 996 | 39 | 3 | 0 | false | false | true | false | false | false | zero |
37,045,453 | Sinch Call Recording Android | <p>Can anyone please inform me that How to record the call either placed with callUser or callConference method in Sinch Android? The documents say contact us for recording but I haven't got any concrete solution regarding this as tried to contact but no response.</p>
<p>Apart from that, I tried recording call using M... | Can anyone please inform me that How to record the call either placed with callUser or callConference method in Sinch Android? The documents say contact us for recording but I haven't got any concrete solution regarding this as tried to contact but no response. Apart from that, I tried recording call using MediaRecorde... | android|sinch|android-sinch-api | 5 | 2016-05-05T08:00:08.917Z | 2,016 | 5 | 8 | 3 | 1,403 | 1 | 674 | 28 | 3 | 1 | true | false | false | false | false | false | low |
37,045,486 | Continuously detect an NFC tag on Android | <p>From my reading and experimentation I have found that Android devices use some method to prevent duplicate reading of a tag (<a href="https://electronics.stackexchange.com/questions/154402/does-nfc-drain-power-if-tag-is-attached-constantly">as discussed here</a>). This is great for power conservation however limits ... | From my reading and experimentation I have found that Android devices use some method to prevent duplicate reading of a tag ( as discussed here ). This is great for power conservation however limits the possible application of this technology. For example the problem I face is, I have a passive tag where the content is... | android|tags|nfc|energy | 3 | 2016-05-05T08:02:31.403Z | 2,016 | 5 | 8 | 3 | 7,078 | 2 | 939 | 41 | 4 | 0 | false | false | true | false | false | false | low |
37,045,488 | Two spinner resets each other when selected (android) | <p>In my android app I have 2 spinners e.g. one for selecting fruit and another for selecting flower.</p>
<p>The requirement is like this when I select fruit then the flower must be reset and vise-versa. In short only one can be selected either fruit or flower.</p>
<p>Then I have API call after the selection...</p>
... | In my android app I have 2 spinners e.g. one for selecting fruit and another for selecting flower. The requirement is like this when I select fruit then the flower must be reset and vise-versa. In short only one can be selected either fruit or flower. Then I have API call after the selection... For reset I am using spi... | android|spinner | 0 | 2016-05-05T08:02:32.477Z | 2,016 | 5 | 8 | 3 | 224 | 1 | 575 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
37,045,498 | Saving data from a WebView | <p>I need to save data that I show on WebView.
I have achieved that with saving all of my URL requests that are made in WebViewClient and send them to backend service. Back end service later make requests for those files. </p>
<p>The problem is that WebViewClient is running its own cycle and responses are not visible... | I need to save data that I show on WebView. I have achieved that with saving all of my URL requests that are made in WebViewClient and send them to backend service. Back end service later make requests for those files. The problem is that WebViewClient is running its own cycle and responses are not visible which leads ... | android|webview | 9 | 2016-05-05T08:02:57.083Z | 2,016 | 5 | 8 | 3 | 4,331 | 4 | 680 | 26 | 2 | 1 | true | false | true | false | false | false | medium |
37,045,518 | Android CollapsingToolbar with viewPager and RecyclerView not working | <p>I have a collapsing toolbar with ViewPager inside it. ViewPager has 3 fragments, one of which has a RecyclerView inside it. ColllapsingToolbar works fine for the other two fragments but it doesn't work as expected in the fragment with RecyclerView.</p>
<p>I am using recyclerview version v7 23.2.1. My recylcerView h... | I have a collapsing toolbar with ViewPager inside it. ViewPager has 3 fragments, one of which has a RecyclerView inside it. ColllapsingToolbar works fine for the other two fragments but it doesn't work as expected in the fragment with RecyclerView. I am using recyclerview version v7 23.2.1. My recylcerView has custom i... | android|android-fragments|android-viewpager|android-recyclerview|android-collapsingtoolbarlayout | 2 | 2016-05-05T08:04:29.483Z | 2,016 | 5 | 8 | 3 | 383 | 1 | 508 | 69 | 5 | 2 | true | false | false | false | false | false | low |
37,045,529 | Cannot find symbol method execute(String)-Android Studio | <p>The word "execute" in the code is causing the error which is saying cannot find symbol method execute(String). Can anyone help in resolving the error pls? Thanks</p>
<pre><code>public void onClickGetWeather(View v) {
EditText editText = (EditText) findViewById(R.id.editTextCountry);
String location = editT... | The word "execute" in the code is causing the error which is saying cannot find symbol method execute(String). Can anyone help in resolving the error pls? Thanks [CODE] weather_fragment code: [CODE] | java|android|methods | 1 | 2016-05-05T08:05:18.523Z | 2,016 | 5 | 8 | 3 | 1,520 | 2 | 198 | 56 | 3 | 2 | true | false | false | false | false | false | low |
37,045,597 | i have API key but when i put it in my android studio to return me list its return me but nothing and i can sad that its return me json | <pre><code>public class GetPlaceSearchTask extends AsyncTask<String , Void ,String>
{
private Context context;
private ProgressDialog dialog;
public static final String SEND_RESULT_SEARCH_BROADCAST_FROM_TASK = "send_result_search";
private String API_LOCATION = "https://maps.googleapis.com/maps/api/place/n... | [CODE] | android | 0 | 2016-05-05T08:10:12.477Z | 2,016 | 5 | 8 | 3 | 24 | 0 | 6 | 135 | 1 | 1 | true | true | false | false | false | false | zero |
37,045,622 | layout_below and weightsum of LinearLayout Programmatically | <p>I am creating <code>LinearLayout</code> in <code>RelativeLayout</code> programmatically. What I am trying to do is to assign the <code>weigtsum</code> in <code>LinearLayout</code> and want to set the <code>layout_above</code> attribute as well. The problem is <code>weightSum</code> is available in <code>LinearLayout... | I am creating LinearLayout in RelativeLayout programmatically. What I am trying to do is to assign the weigtsum in LinearLayout and want to set the layout_above attribute as well. The problem is weightSum is available in LinearLayout.LayoutParams and layout_above is available in RelativeLayout.LayoutParams . Currently,... | android|android-layout|android-linearlayout|android-relativelayout | 5 | 2016-05-05T08:11:47.203Z | 2,016 | 5 | 8 | 3 | 3,896 | 1 | 510 | 59 | 4 | 2 | true | false | true | false | false | false | low |
37,045,756 | RenderScript blur overrides the original Bitmap | <p>I am trying to use <strong>RenderScript</strong> to create a blurred bitmap to set it as a background for a <em>LinearLayout</em> which contains an <em>ImageView</em>. I also want a clear original copy of the bitmap so that I can set it as an image in the <em>ImageView</em>.</p>
<p>Here's my code:</p>
<pre><code>I... | I am trying to use RenderScript to create a blurred bitmap to set it as a background for a LinearLayout which contains an ImageView . I also want a clear original copy of the bitmap so that I can set it as an image in the ImageView . Here's my code: [CODE] This is how I want the final result to be: But this is what I g... | java|android|bitmap|blur|renderscript | 2 | 2016-05-05T08:19:57.723Z | 2,016 | 5 | 8 | 3 | 404 | 1 | 440 | 47 | 5 | 1 | true | false | false | false | false | false | low |
37,045,771 | While sliding my finger over a button or object, the object acts as if it were getting pushed? | <p><a href="https://i.stack.imgur.com/yDBlX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yDBlX.jpg" alt="enter image description here"></a></p>
<p>I tried to explain my issue through image, what i am looking for.</p>
<p>I tried</p>
<pre><code>@Override
public boolean onTouchEvent(MotionEvent ev... | I tried to explain my issue through image, what i am looking for. I tried [CODE] I worked on ACTION_DOWN & ACTION_MOVE but didn't find what I am looking for | java|android | 1 | 2016-05-05T08:21:07.157Z | 2,016 | 5 | 8 | 3 | 20 | 0 | 156 | 94 | 2 | 1 | true | true | false | false | false | false | low |
37,045,787 | java.lang.NoClassDefFoundError retrofit2.Utils | <p>I'm using Retrofit to handle the Serverside Data from Mobile. After Implementing retrofit, I am Getting the below Exception.</p>
<p>What am I doing wrong?</p>
<blockquote>
<p>com.name.App_idea W/System.err: java.lang.NoClassDefFoundError:
retrofit2.Utils
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.jav... | I'm using Retrofit to handle the Serverside Data from Mobile. After Implementing retrofit, I am Getting the below Exception. What am I doing wrong? com.name.App_idea W/System.err: java.lang.NoClassDefFoundError: retrofit2.Utils at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:434) at com.name.App_idea.utils.Idea.onC... | android|retrofit|retrofit2 | 10 | 2016-05-05T08:21:34.337Z | 2,016 | 5 | 8 | 3 | 13,452 | 12 | 1,168 | 46 | 3 | 3 | true | false | true | true | true | false | medium |
37,045,875 | utf8_encode does not encode special characters ě/š/č/ř/ž/ý/á, etc | <p>I have the following problem which seems to have no solution and I am absolutely disgusted.</p>
<p>I have Android application where users can upload file to my server and then they can access them. So if user opens his account, this application uses function <code>scandir()</code> and on my server I use method <cod... | I have the following problem which seems to have no solution and I am absolutely disgusted. I have Android application where users can upload file to my server and then they can access them. So if user opens his account, this application uses function scandir() and on my server I use method json_encode() to send data t... | php|android|json|utf-8|encode | 2 | 2016-05-05T08:27:27.797Z | 2,016 | 5 | 8 | 3 | 3,091 | 1 | 1,047 | 65 | 5 | 0 | false | false | true | false | false | false | low |
37,045,939 | Different Way for making Gradle Faster | <p>I have been working on android from some time. Since starting i have searching ways of make the grade efficient and fast. i went through many post and i find many solution. which i am listing here.</p>
<ol>
<li><p>After building first time switch to offline mode.</p></li>
<li><p>make parallel exception check in gra... | I have been working on android from some time. Since starting i have searching ways of make the grade efficient and fast. i went through many post and i find many solution. which i am listing here. After building first time switch to offline mode. make parallel exception check in grade compiler option. use Dexoption to... | android|android-studio|gradle | -1 | 2016-05-05T08:31:15.853Z | 2,016 | 5 | 8 | 3 | 33 | 1 | 884 | 38 | 3 | 0 | false | false | false | false | false | true | negative |
37,045,960 | Android swipe refresh indexoutofbounds | <p>I have a custom adapter that holds channels. I use swipe refresh for refreshing list members. But when i pull down (refresh list) and immediately pull up to down on list i give IndexOutOfBoundsException. This is my adapter:</p>
<pre><code>public class KanalAdapter extends BaseAdapter implements Filterable {
Co... | I have a custom adapter that holds channels. I use swipe refresh for refreshing list members. But when i pull down (refresh list) and immediately pull up to down on list i give IndexOutOfBoundsException. This is my adapter: [CODE] This is error: [CODE] Edited part : [CODE] | android | 0 | 2016-05-05T08:32:31.493Z | 2,016 | 5 | 8 | 3 | 45 | 0 | 273 | 38 | 1 | 3 | true | true | false | false | false | false | zero |
37,046,055 | How to insert header row on Expandable List View | <p>I have an Android activity with one expandable list view. Then I have created my ExpandableListAdapter, so I can click on one items and I can see the child of this item. This is ok.
Now I want to insert a standard header (Title) for a list of child to every items. So I have build this code:</p>
<pre><code>public cl... | I have an Android activity with one expandable list view. Then I have created my ExpandableListAdapter, so I can click on one items and I can see the child of this item. This is ok. Now I want to insert a standard header (Title) for a list of child to every items. So I have build this code: [CODE] The my temporary solu... | android|expandablelistview | 3 | 2016-05-05T08:37:52.840Z | 2,016 | 5 | 8 | 3 | 1,650 | 2 | 740 | 48 | 2 | 1 | true | false | false | false | false | false | low |
37,046,111 | List view not showing complete Text | <p><a href="https://i.stack.imgur.com/M6x7i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M6x7i.png" alt="The original text is two lines more but it cut that part"></a>I am developing an SMS application in which i have to save a received SMS in my application. I use a custom list view to save the S... | I am developing an SMS application in which i have to save a received SMS in my application. I use a custom list view to save the SMS content, SMS sender and SMS date. This works completely fine when the incoming SMS is short i.e. 4 5 lines. But the problem is that if the SMS is long i.e. more than 5 6 lines then the l... | android|listview|textview|android-custom-view | 0 | 2016-05-05T08:41:35.530Z | 2,016 | 5 | 8 | 3 | 1,019 | 6 | 797 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
37,046,145 | Logic for SETTING/PASSING data from online XML to Image buttons in Table layout | <p>I made the seating arrangements layouts in XML Table Layout format and I <strong>want to set the XML data from URL to set in the layours below.</strong></p>
<hr>
<p><strong>I made the layout like below</strong></p>
<hr>
<p><a href="https://i.stack.imgur.com/VCibg.png" rel="nofollow noreferrer"><img src="https://... | I made the seating arrangements layouts in XML Table Layout format and I want to set the XML data from URL to set in the layours below. I made the layout like below Now need the logic and hint as to how to populate the data into each sets like below [CODE] I am using this link click here | java|android|xml-parsing|android-tablelayout|saxparser | 0 | 2016-05-05T08:43:28.077Z | 2,016 | 5 | 8 | 3 | 41 | 1 | 288 | 79 | 5 | 1 | true | false | false | false | false | false | zero |
37,046,227 | Android - Radio Button - button drawable not being displayed on Lollipop | <p>I'm writing an application for android 5 and above and in one screen I need to display a radio group with a couple of radio buttons, but the button drawable (xml drawable) is not showing on android 5 but is working as expected on android 6.</p>
<p>This is my activity layout:</p>
<pre><code><?xml version="1.0" e... | I'm writing an application for android 5 and above and in one screen I need to display a radio group with a couple of radio buttons, but the button drawable (xml drawable) is not showing on android 5 but is working as expected on android 6. This is my activity layout: [CODE] radio_button_selector.xml: [CODE] And radio_... | android|xml|android-layout|radio-button | 7 | 2016-05-05T08:47:40.983Z | 2,016 | 5 | 8 | 3 | 787 | 0 | 622 | 72 | 4 | 4 | true | true | false | false | false | false | medium |
37,046,246 | Reading from assets file in android | <p>I'm working on a Hangman game to teach myself Android development. I've done it all in Java already for PC and have that working well. I'm using Android Studio 2.1 and the monitor keeps on throwing loads of errors at me and I can't make out what I'm looking at!</p>
<p>The part I'm struggling with is getting it to... | I'm working on a Hangman game to teach myself Android development. I've done it all in Java already for PC and have that working well. I'm using Android Studio 2.1 and the monitor keeps on throwing loads of errors at me and I can't make out what I'm looking at! The part I'm struggling with is getting it to read from th... | java|android|assets | 0 | 2016-05-05T08:48:32.470Z | 2,016 | 5 | 8 | 3 | 394 | 1 | 507 | 35 | 3 | 3 | true | false | false | false | false | false | zero |
37,046,264 | StringRequest Null Pointer | <p>I already try many things to solve this problem but i cannot solved this problem
can anyone help me</p>
<pre><code> private void registerUser(final String name, final String email,
final String password,final String phonenumber,final String username) {
pDialog.setMessage(... | I already try many things to solve this problem but i cannot solved this problem can anyone help me [CODE] and this is my php file [CODE] ?> and my error is 05-05 15:39:56.414 6883-6883/? D/Register: registerUser: [ ] http://192.168.2.103/Bspark/addPengguna.php 0x85ca2559 NORMAL null 05-05 15:39:56.416 6883-6883/? E/An... | android|android-volley | -2 | 2016-05-05T08:49:23.293Z | 2,016 | 5 | 8 | 3 | 749 | 1 | 1,386 | 26 | 2 | 3 | true | false | false | false | false | true | negative |
37,046,305 | Touchlistener on activity switch from touch doesn't see the touch | <p>I'm new to Android and couldn't figure this out or find any solutions that work. </p>
<p>I have a first activity that I want and is successfully switching to a 2nd activity when the user presses the screen from MotionEvent.ACTION_DOWN, and I want the 2nd activity to immediately switch to a 3rd activity when the use... | I'm new to Android and couldn't figure this out or find any solutions that work. I have a first activity that I want and is successfully switching to a 2nd activity when the user presses the screen from MotionEvent.ACTION_DOWN, and I want the 2nd activity to immediately switch to a 3rd activity when the user lifts his ... | android|ontouchlistener | 0 | 2016-05-05T08:51:45.093Z | 2,016 | 5 | 8 | 3 | 70 | 1 | 501 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
37,046,332 | AOSP layout xml file preview in eclipse | <p>I imported the entire AOSP project into Eclipse by following the instructions at <a href="http://apienthusiast.blogspot.sg/2014/06/using-eclipse-to-browse-and-edit-aosp.html" rel="nofollow noreferrer">here</a>. I can build and run the project properly. But during my working, there are two problems still confuse me.<... | I imported the entire AOSP project into Eclipse by following the instructions at here . I can build and run the project properly. But during my working, there are two problems still confuse me. I can't preview the layout xml files at "/frameworks/core/res/res/layout/". When I open a xml layout file in the graphical lay... | android|android-source | 0 | 2016-05-05T08:53:32.990Z | 2,016 | 5 | 8 | 3 | 271 | 2 | 1,610 | 39 | 2 | 0 | false | false | false | false | false | false | zero |
37,046,416 | Programmatically setting icon to navigation drawer menu item using drawable resource is always black in Android | <p>I am developing an Android app. In my app I am using navigation drawer and navigation view. I am setting menu items for them programmatically. I set drawable image resource as icon to them programmatically. But when I set icon to them, icons are always black event my image resource beautiful color image.</p>
<p>Thi... | I am developing an Android app. In my app I am using navigation drawer and navigation view. I am setting menu items for them programmatically. I set drawable image resource as icon to them programmatically. But when I set icon to them, icons are always black event my image resource beautiful color image. This is how I ... | android|android-drawable|navigation-drawer|android-navigationview | 2 | 2016-05-05T08:57:58.307Z | 2,016 | 5 | 8 | 3 | 3,320 | 1 | 566 | 111 | 4 | 1 | true | false | true | false | false | false | low |
37,046,608 | Android app crashed on launch in release mode : java.lang.NoSuchFieldError: BUILD error | <p>I have an app which i am updating for new version. The app runs well in debug mode where when i create a signed APK and run it on my device, it crashes. I checked the logcat and following is the stack trace:</p>
<pre><code>java.lang.NoSuchFieldError: BUILD
E/AndroidRuntime(28433): at java.lang.Class.getDecla... | I have an app which i am updating for new version. The app runs well in debug mode where when i create a signed APK and run it on my device, it crashes. I checked the logcat and following is the stack trace: [CODE] In my MyApplication file looks like this: [CODE] ACRA.init(this) is line no. 42 in this. How to remove th... | android|crash|release|acra | 0 | 2016-05-05T09:07:18.503Z | 2,016 | 5 | 9 | 3 | 861 | 2 | 800 | 87 | 4 | 3 | true | false | false | false | false | false | zero |
37,046,612 | Android - Linking and object to a Class Variable | <p>I have an Object in the MainActivity used just there. I have a cuople of classes which could modify or use that object. My question is if I can link this object passing as a parameter to the constructor of the other classes. For example:</p>
<pre><code>public class MainActivity extends AppCompatActivity{
Player... | I have an Object in the MainActivity used just there. I have a cuople of classes which could modify or use that object. My question is if I can link this object passing as a parameter to the constructor of the other classes. For example: [CODE] And within the class [CODE] The real question is the if I do linkedPlayer =... | java|android | -1 | 2016-05-05T09:07:26.007Z | 2,016 | 5 | 9 | 3 | 42 | 1 | 519 | 48 | 2 | 2 | true | false | false | false | false | true | negative |
37,046,718 | 'socket.io error on connect: Error: xhr poll error' while importing zone.js when using Karma/Jasmine in Angular 2 with NativeScript 2.0 [1.7.1] | <p>I'm getting the below error while running my tests using Karma with Jasmine in my Angular2 with NativeScript project. The tests are being executed correctly, but, this error keeps repeating in the console. I observed the error is coming only after importing zone.js (imported it because it says zone is not defined wh... | I'm getting the below error while running my tests using Karma with Jasmine in my Angular2 with NativeScript project. The tests are being executed correctly, but, this error keeps repeating in the console. I observed the error is coming only after importing zone.js (imported it because it says zone is not defined while... | android|socket.io|angular|karma-jasmine|nativescript | 0 | 2016-05-05T09:13:01.577Z | 2,016 | 5 | 9 | 3 | 1,305 | 1 | 1,658 | 143 | 5 | 2 | true | false | false | false | false | false | zero |
37,046,810 | How to add shadow around circular imageview | <p>I want to add shadow around circular imageView.
Here is my code.
I want to make like this image
<a href="https://i.stack.imgur.com/aNLrT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aNLrT.png" alt="image"></a></p>
<p>This is my .xml file
check this image.
<a href="https://i.stack.imgur.com/qt7p3.jpg" ... | I want to add shadow around circular imageView. Here is my code. I want to make like this image This is my .xml file check this image. activity_main.xml [CODE] this is round_image.xml: [CODE] I try some code for shadow effect but it's not working. | android|xml | 38 | 2016-05-05T09:17:27.143Z | 2,016 | 5 | 9 | 3 | 67,883 | 7 | 247 | 43 | 2 | 2 | true | false | true | true | true | false | high |
37,046,861 | How to make a PATCH request with jSONObjectRequest in android volley? | <p>I want to make a PATCH request with json object request in android using volley library.
Its working in postman but when i call it in android, it gives me error 405,Anybody have any idea How to do it? Below is my code:</p>
<pre><code>requestQueue.add( new JsonObjectRequest(Request.Method.PATCH,url, jsonObject, new ... | I want to make a PATCH request with json object request in android using volley library. Its working in postman but when i call it in android, it gives me error 405,Anybody have any idea How to do it? Below is my code: [CODE] | java|android|android-fragments|android-volley|androidhttpclient | 1 | 2016-05-05T09:20:33.177Z | 2,016 | 5 | 9 | 3 | 1,131 | 1 | 225 | 69 | 5 | 1 | true | false | false | false | false | false | low |
37,046,863 | Calling an Activity from Fragment | <p>Apologies if this is a dumb question. I have searched for an answer to my problem and although I have found several mentions of this issue, none of the solutions proposed have solved my problem.
In my app, I am calling an Activity from a Fragment and I then want to return to that Fragment via a button click in the A... | Apologies if this is a dumb question. I have searched for an answer to my problem and although I have found several mentions of this issue, none of the solutions proposed have solved my problem. In my app, I am calling an Activity from a Fragment and I then want to return to that Fragment via a button click in the Acti... | android|android-fragments | 1 | 2016-05-05T09:20:35.680Z | 2,016 | 5 | 9 | 3 | 108 | 4 | 800 | 33 | 2 | 5 | true | false | false | false | false | false | low |
37,046,920 | SurefireSensor error sonarQube for gradle android | <p>I am trying latest version of sonar for gradle.Below is code snippet I have written </p>
<pre><code>app\build.gradle
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property "sonar.host.url", "http://localhost:9000"
property "sonar.jdbc.url","jdbc:mysql://localhost:3306/sonar?... | I am trying latest version of sonar for gradle.Below is code snippet I have written [CODE] main project build.gradle [CODE] But running sonarQube , giving below error. [CODE] Please help,how I can resolve this issue. | android|sonarqube|android-gradle-plugin|sonarqube-scan | 1 | 2016-05-05T09:24:05.997Z | 2,016 | 5 | 9 | 3 | 414 | 0 | 216 | 49 | 4 | 3 | true | true | false | false | false | false | low |
37,046,921 | Getting Error "java.lang.NoClassDefFoundError: com.android.tools.fd.runtime.AppInfo" | <p><strong>When i launch app it getting me this error</strong></p>
<pre><code>FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.android.tools.fd.runtime.AppInfo
at com.android.tools.fd.runtime.Bootstra... | When i launch app it getting me this error [CODE] | java|android|noclassdeffounderror | 4 | 2016-05-05T09:24:06.987Z | 2,016 | 5 | 9 | 3 | 4,821 | 2 | 49 | 84 | 3 | 1 | true | false | true | false | false | false | low |
37,046,933 | Requiring unknown module "ReactPerf" while integrating React Native with existing Android app | <p>I am trying to integrate the latest React Native build and I'm running into errors. Here is my project setup:</p>
<p>In the app's build.gradle, I import react-native 0.24.1:</p>
<pre><code>dependencies {
...
compile 'com.facebook.react:react-native:0.24.1'
}
</code></pre>
<p>The project's build.gradle points ... | I am trying to integrate the latest React Native build and I'm running into errors. Here is my project setup: In the app's build.gradle, I import react-native 0.24.1: [CODE] The project's build.gradle points to React Native which is in a Git submodule: [CODE] I have otherwise integrated as described in the docs here an... | android|react-native | 4 | 2016-05-05T09:24:40.730Z | 2,016 | 5 | 9 | 3 | 1,038 | 1 | 1,114 | 93 | 2 | 2 | true | false | false | false | false | false | low |
37,046,942 | Loading bitmap to a menu item in a loop with Picasso | <p>The code below is called in a loop. I've read <a href="https://stackoverflow.com/a/26918731/1120126">this SO answer</a> but, since I cannot <code>setTag</code> to a <code>MenuItem</code>, <code>Target</code> gets garbage collected. <code>onBitmapLoaded</code> is not called. How can I solve this issue.</p>
<p>The ot... | The code below is called in a loop. I've read this SO answer but, since I cannot setTag to a MenuItem , Target gets garbage collected. onBitmapLoaded is not called. How can I solve this issue. The other question is, at the first launch of the app it doesn't work. How does it work after I call this method again. [CODE] | android|picasso | 1 | 2016-05-05T09:25:13.117Z | 2,016 | 5 | 9 | 3 | 1,054 | 2 | 319 | 52 | 2 | 1 | true | false | false | false | false | false | low |
37,046,962 | android find distance of any ble device | <p>I have to calculate the distance of any ble device (not just beacon). I am using the BluetoothLeGatt sample app provided on the devloper android site this is the link <a href="http://developer.android.com/downloads/samples/BluetoothLeGatt.zip" rel="nofollow noreferrer">http://developer.android.com/downloads/samples/... | I have to calculate the distance of any ble device (not just beacon). I am using the BluetoothLeGatt sample app provided on the devloper android site this is the link http://developer.android.com/downloads/samples/BluetoothLeGatt.zip . I am printing the log in this method [CODE] this is my log [CODE] On searching I fou... | android|distance|bluetooth-lowenergy|rssi | 3 | 2016-05-05T09:26:17.623Z | 2,016 | 5 | 9 | 3 | 3,879 | 1 | 578 | 39 | 4 | 2 | true | false | true | false | false | false | low |
37,046,963 | Android: Service as Subclass how to start? | <p>In the MainActivity I created a Subclass for a Service. The Service is not starting, I'm pretty sure its because the manifest file. I tryed several ways but its not working. Do have any ideas?</p>
<p><strong>MainActivity</strong></p>
<pre><code>public class MainActivity extends AppCompatActivity {
private EditTex... | In the MainActivity I created a Subclass for a Service. The Service is not starting, I'm pretty sure its because the manifest file. I tryed several ways but its not working. Do have any ideas? MainActivity [CODE] Manifest [CODE] [CODE] | android|service | 1 | 2016-05-05T09:26:21.300Z | 2,016 | 5 | 9 | 3 | 393 | 2 | 235 | 42 | 2 | 3 | true | false | false | false | false | false | low |
37,046,967 | can not reslove Symbol 'HttpGet' | <p>Really cant find the problem..</p>
<p>Main Activity</p>
<pre><code>@Override
protected String doInBackground(Context... params) {
try {
//HttpGet get = new HttpGet( "http://services.groupkt.com/state/get/IND/all");
HttpGet get = new HttpGet("http://labour.gov.in... | Really cant find the problem.. Main Activity [CODE] Build.gradle file [CODE] | android | -1 | 2016-05-05T09:26:24.187Z | 2,016 | 5 | 9 | 3 | 51 | 1 | 76 | 32 | 1 | 2 | true | false | false | false | false | true | negative |
37,046,996 | How can I check if an android device has hardware acceleration capabilities? | <p>I am working on an Android app and it crashes on a certain x86 device (API 21)which is not happening after turning off hardware acceleration. After a bit of research I found that x86 android devices have hardware acceleration capabilities only in newer versions.</p>
<p>Is there any way to check programmatically in ... | I am working on an Android app and it crashes on a certain x86 device (API 21)which is not happening after turning off hardware acceleration. After a bit of research I found that x86 android devices have hardware acceleration capabilities only in newer versions. Is there any way to check programmatically in the android... | android|android-canvas|gpu|hardware-acceleration|android-x86 | 2 | 2016-05-05T09:27:29.113Z | 2,016 | 5 | 9 | 3 | 3,607 | 2 | 720 | 76 | 5 | 1 | true | false | true | false | false | false | low |
37,047,048 | Routing audio to bluetooth isnt working from BroadcastReceiver on ACTION_ACL_CONNECTED on Android | <p>I am trying to change audio route to bluetooth by 2 ways:</p>
<ol>
<li>From ui thread - works ok.</li>
<li>From BroadcastReceiver that listening to bluetooth connection changes - ACTION_ACL_CONNECTED and ACTION_ACL_DISCONNECTED - isnt work</li>
</ol>
<p>when bluetooth device is connected i am trying to set audio r... | I am trying to change audio route to bluetooth by 2 ways: From ui thread - works ok. From BroadcastReceiver that listening to bluetooth connection changes - ACTION_ACL_CONNECTED and ACTION_ACL_DISCONNECTED - isnt work when bluetooth device is connected i am trying to set audio route to bluetooth, but the audio route is... | android|bluetooth | 2 | 2016-05-05T09:29:44.140Z | 2,016 | 5 | 9 | 3 | 190 | 0 | 543 | 97 | 2 | 3 | true | true | false | false | false | false | low |
37,047,049 | There is an error in my app | <p>I'm making an app that will show multiple location on google map and I've read it through csv file. I have an error at OnCreate and displarArrayList method.</p>
<p>This is the error: </p>
<pre><code>Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a... | I'm making an app that will show multiple location on google map and I've read it through csv file. I have an error at OnCreate and displarArrayList method. This is the error: [CODE] This is onCreate [CODE] And this is where I read my csv file and inside the class CsvFile I got displayarrayItem method. [CODE] | java|android|csv | -3 | 2016-05-05T09:29:44.733Z | 2,016 | 5 | 9 | 3 | 67 | 3 | 310 | 27 | 3 | 3 | true | false | false | false | false | true | negative |
37,047,110 | List View to display contacts from txt file-Android Studio | <p>Hi i need to create a list view to display all the contacts which are stored in a text file. To add a contact the user must enter the details himself and so these will be saved in a text file. Now I need to create a list view to display these contacts in a list and also for every a contact a button would be shown. A... | Hi i need to create a list view to display all the contacts which are stored in a text file. To add a contact the user must enter the details himself and so these will be saved in a text file. Now I need to create a list view to display these contacts in a list and also for every a contact a button would be shown. As f... | java|android|listview|text-files | 1 | 2016-05-05T09:32:43.950Z | 2,016 | 5 | 9 | 3 | 494 | 1 | 390 | 58 | 4 | 1 | true | false | false | false | false | false | low |
37,047,148 | Unable to place a layout at the bottom after scroll view | <p>I am unable to place a layout at the bottom after a scroll view. Please help.
This is my code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout... | I am unable to place a layout at the bottom after a scroll view. Please help. This is my code: [CODE] | android|listview|user-interface|uiview|scrollview | 1 | 2016-05-05T09:34:32.660Z | 2,016 | 5 | 9 | 3 | 536 | 6 | 101 | 56 | 5 | 1 | true | false | false | false | false | false | low |
37,047,202 | Using Kotlogram library in android project | <p>I want to use <a href="https://github.com/badoualy/kotlogram" rel="nofollow" title="Kotlogram library">Kotlogram library</a> in my android project.</p>
<p>Im using java 7 (jdk1.7.0_79). but when I want to debug or run the project, this error is happened:</p>
<blockquote>
<blockquote>
<p>UNEXPECTED TOP-LEVEL... | I want to use Kotlogram library in my android project. Im using java 7 (jdk1.7.0_79). but when I want to debug or run the project, this error is happened: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes at com.android.dx.command.dexer.Main.processClass(Main.java:752) at com.android... | java|android|telegram | 1 | 2016-05-05T09:36:56.160Z | 2,016 | 5 | 9 | 3 | 608 | 1 | 2,254 | 42 | 3 | 2 | true | false | false | false | false | false | low |
37,047,260 | application integration with google drive | <p>I am working with android application integration with google drive.I want to upload .csv file of backup to google drive..But error found. my code is here..there is error after choose picture from gallery that : com.google.api.client.googleapis.extentions.android.gms.auth.GoogleAuthIOException</p>
<pre><code>MainAc... | I am working with android application integration with google drive.I want to upload .csv file of backup to google drive..But error found. my code is here..there is error after choose picture from gallery that : com.google.api.client.googleapis.extentions.android.gms.auth.GoogleAuthIOException [CODE] | android|google-drive-android-api | 0 | 2016-05-05T09:40:26.647Z | 2,016 | 5 | 9 | 3 | 75 | 0 | 301 | 41 | 2 | 1 | true | true | false | false | false | false | zero |
37,047,266 | Google map showing blank Screen Android | <p>I am using all permission but i am getting black screen of google map. The following code i am using for showing map in my activity. I have set all the permissions in manifest. I am using 23 Api level . Thanks</p>
<p>MainActivity :</p>
<pre><code>try {
// Loading map
initilizeMap();
// Cha... | I am using all permission but i am getting black screen of google map. The following code i am using for showing map in my activity. I have set all the permissions in manifest. I am using 23 Api level . Thanks MainActivity : [CODE] My App is not crashing but i am getting this error in the logcat : [CODE] I am using fol... | android|google-maps | 1 | 2016-05-05T09:40:57.643Z | 2,016 | 5 | 9 | 3 | 2,804 | 1 | 381 | 39 | 2 | 4 | true | false | true | false | false | false | low |
37,047,269 | How get location by COARSE location | <p>I'm trying to develo an app that get location by COARSE location. This app must run on Android 6 too than i've implemented permission request on run time, start the map but i can't get my current location... any tips? </p>
<p>This is my main activity:</p>
<pre><code>package com.luca.fontanelle;
import com.google.a... | I'm trying to develo an app that get location by COARSE location. This app must run on Android 6 too than i've implemented permission request on run time, start the map but i can't get my current location... any tips? This is my main activity: [CODE] Manifest.xml: [CODE] | android|location|android-6.0-marshmallow|currentlocation | 0 | 2016-05-05T09:41:06.137Z | 2,016 | 5 | 9 | 3 | 2,591 | 1 | 271 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
37,047,272 | simple notification don't appear when my phone in sleep mode | <p>i am implementing map place alarm, i successfully getting notification when i am about to reach my destination, but the problem is my phone is in sleep mode, i cant get notification, i don't know how to work with system, plz help me.</p>
<p>here is my code..</p>
<pre><code>public class AreWeThereIntentService exte... | i am implementing map place alarm, i successfully getting notification when i am about to reach my destination, but the problem is my phone is in sleep mode, i cant get notification, i don't know how to work with system, plz help me. here is my code.. [CODE] i found solution that i have to use wakelock but i dont know ... | android|android-notifications|android-wake-lock | 0 | 2016-05-05T09:41:20.637Z | 2,016 | 5 | 9 | 3 | 483 | 1 | 517 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
37,047,446 | How to associate a progress bar with a button in Xamarin with Visual studio? | <p>I'm new to the Xamarin world, so I'm in a real need of your help. In my very first application I want to associate a progress bar with a button. So that when I click the button the progress bar starts and when the progress ends the progress bar disappears. </p>
<p>Here is my C# code:</p>
<pre><code>translateButton... | I'm new to the Xamarin world, so I'm in a real need of your help. In my very first application I want to associate a progress bar with a button. So that when I click the button the progress bar starts and when the progress ends the progress bar disappears. Here is my C# code: [CODE] this code from this tutorial on Xama... | c#|android|xamarin | 0 | 2016-05-05T09:50:20.583Z | 2,016 | 5 | 9 | 3 | 1,396 | 1 | 332 | 76 | 3 | 1 | true | false | false | false | false | false | zero |
37,047,686 | Android connect to Azure SQL Database and select statement | <p>I am trying to connect an android mobile app to a database on Azure portal. I have my connection class below (obviously with the correct fields from Azure Connection)</p>
<pre><code>public class ConnectionClass {
String classs = "net.sourceforge.jtds.jdbc.Driver";
@SuppressLint("NewApi")
public Connection CONN() ... | I am trying to connect an android mobile app to a database on Azure portal. I have my connection class below (obviously with the correct fields from Azure Connection) [CODE] I am trying to read from a table on the database like below: [CODE] However it just runs to the exception z: Error retrieving data from table Can ... | android|mysql|sql|sql-server|azure | 2 | 2016-05-05T10:02:22.890Z | 2,016 | 5 | 10 | 3 | 271 | 0 | 484 | 58 | 5 | 2 | true | true | false | false | false | false | low |
37,047,735 | Android Material ListView Dividers | <p>I am trying to build a listview that follows google's guidelines.</p>
<p>Here are my requirements:</p>
<ol>
<li>Allow group headers</li>
<li>Allow full width dividers between groups</li>
<li>Allow partial dividers between items</li>
</ol>
<p>Here is an image showing the header and the divider between items.
Unfor... | I am trying to build a listview that follows google's guidelines. Here are my requirements: Allow group headers Allow full width dividers between groups Allow partial dividers between items Here is an image showing the header and the divider between items. Unfortunately it's not possible to view the full width divider ... | android|listview|material-design | 5 | 2016-05-05T10:04:56.533Z | 2,016 | 5 | 10 | 3 | 2,557 | 2 | 831 | 34 | 3 | 2 | true | false | false | false | false | false | low |
37,047,745 | How could I test a method is not being called for a non mock object? | <p>I have a test as below, where in the given condition, I want to ensure <code>mainPresenter.presenterFunction()</code> is not called.</p>
<pre><code>class MainPresenterTest {
val mainPresenter: MainPresenter
val mainView: MainView
val mainBridge: MainBridge
init {
mainView = mock(MainView::... | I have a test as below, where in the given condition, I want to ensure mainPresenter.presenterFunction() is not called. [CODE] However it error out stating [CODE] The error is on the line verify(mainPresenter, never()).presenterFunction() It is expected as mainPresenter is not a mock object. How could I test a method t... | android|unit-testing|mockito|kotlin | 3 | 2016-05-05T10:05:41.337Z | 2,016 | 5 | 10 | 3 | 1,660 | 1 | 597 | 68 | 4 | 2 | true | false | false | false | false | false | low |
37,047,815 | How to remove divider of tab view and fragment in android? | <p>I am working on an android project i am using tab view and i want to remove divider of tabs and fragment. what can i do?
this is the pic of my layout.
<a href="https://i.stack.imgur.com/Xr28q.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xr28q.jpg" alt="enter image description here"></a></p>
<p... | I am working on an android project i am using tab view and i want to remove divider of tabs and fragment. what can i do? this is the pic of my layout. [CODE] | android|android-layout|android-fragments|android-studio | 0 | 2016-05-05T10:08:43.557Z | 2,016 | 5 | 10 | 3 | 383 | 3 | 157 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
37,047,835 | Calling Android Intent from AsyncTask onPostExecute with context not working | <p>I know this question has been asked by many but I've tried most of the solutions and none seem to work for me.</p>
<p>I am a newbie in android studio and I need to make an application which has a login.</p>
<p>I have 2 activities which are MainActivity and Menu and 3 classes(MainActivity.java,PHPconnect.java, and ... | I know this question has been asked by many but I've tried most of the solutions and none seem to work for me. I am a newbie in android studio and I need to make an application which has a login. I have 2 activities which are MainActivity and Menu and 3 classes(MainActivity.java,PHPconnect.java, and Menu.java) In main ... | java|android|android-intent|android-asynctask | 1 | 2016-05-05T10:09:36.067Z | 2,016 | 5 | 10 | 3 | 884 | 2 | 828 | 76 | 4 | 5 | true | false | false | false | false | false | low |
37,047,916 | How to refresh List view content on SwipetoRefresh layout in android? | <p>I have a listview in which onCreate method I am executing URL which gives me list of app which I show in Listview .what I want when I use swipe to refresh I want to clear all list view Items and again execute that URL and fetch Response in Listview.How can I do that..</p>
<p>HERE IS MY CODE:-</p>
<pre><code>@Nulla... | I have a listview in which onCreate method I am executing URL which gives me list of app which I show in Listview .what I want when I use swipe to refresh I want to clear all list view Items and again execute that URL and fetch Response in Listview.How can I do that.. HERE IS MY CODE:- [CODE] | android | 0 | 2016-05-05T10:14:09.093Z | 2,016 | 5 | 10 | 3 | 94 | 2 | 293 | 69 | 1 | 1 | true | false | false | false | false | false | zero |
37,048,032 | How to set hint color for TextInputLayout after lost focus | <p>I am using this below xml code:</p>
<pre><code> <android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/TextLabel">
<android.support.v7.widget.Ap... | I am using this below xml code: [CODE] Scenario: Step 1: Edittext1 is blank- Hinttextcolor = Black. Step 2: Edittext1 value entered Hinttext = Orange. Step 3: Lostfocus from Edittext1 to Edittext2, Edittext1 hinttext=Orange. Used AppcompactEdittext and TextInputLayout. Please help me out. | android|android-edittext|textinputlayout | 2 | 2016-05-05T10:20:15.267Z | 2,016 | 5 | 10 | 3 | 2,398 | 4 | 289 | 58 | 3 | 1 | true | false | false | false | false | false | low |
37,048,106 | System.loadLibrary get stuck and never returns | <p>Our game stalls as it loads our main library under Android with API level 15 (or 14, haven't test previous versions). <strong>This does not occur on device with API level 16 and above.</strong></p>
<p>We are using the NDK so our Main.java includes the following lines at its end:</p>
<pre><code>static {
boolean... | Our game stalls as it loads our main library under Android with API level 15 (or 14, haven't test previous versions). This does not occur on device with API level 16 and above. We are using the NDK so our Main.java includes the following lines at its end: [CODE] The game stalls at launch with the following log: [CODE] ... | java|android|c++|android-ndk|shared-libraries | 1 | 2016-05-05T10:23:48.993Z | 2,016 | 5 | 10 | 3 | 1,079 | 1 | 1,099 | 46 | 5 | 2 | true | false | false | false | false | false | low |
37,048,123 | Loading plugin reference in app.js : NativeScript | <p>I'm developing a NativeScript app which involves push notifications.Whenever push notification came I need to store notification contents into database.</p>
<p>For that I have written some code in "onMessageReceived" function.This code is in the page in which GCM registration code is there.</p>
<p>If app is runnin... | I'm developing a NativeScript app which involves push notifications.Whenever push notification came I need to store notification contents into database. For that I have written some code in "onMessageReceived" function.This code is in the page in which GCM registration code is there. If app is running then every thing ... | android|push-notification|google-cloud-messaging|nativescript | 1 | 2016-05-05T10:24:32.750Z | 2,016 | 5 | 10 | 3 | 208 | 2 | 867 | 49 | 4 | 1 | true | false | false | false | false | false | low |
37,048,263 | ArrayAdapter<List<Object>> update on TimerTaskUpdate updating an object | <p>I am new to Android and I am trying to do this. I have an ArrayAdapter, a Fragment using this adapter and a class that runs a timer task every 15 mins to hit an api and update my cached superobject. This superobject contains a field list. Also, I am using a calendar to filter from this list and my fragment displays ... | I am new to Android and I am trying to do this. I have an ArrayAdapter, a Fragment using this adapter and a class that runs a timer task every 15 mins to hit an api and update my cached superobject. This superobject contains a field list. Also, I am using a calendar to filter from this list and my fragment displays the... | android|fragment|android-arrayadapter | 0 | 2016-05-05T10:32:08.560Z | 2,016 | 5 | 10 | 3 | 53 | 1 | 562 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
37,048,296 | How to use ViewPager + Fragment +ListView | <p><a href="https://i.stack.imgur.com/asnWR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/asnWR.png" alt=""></a>
<a href="https://i.stack.imgur.com/m7BEK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m7BEK.jpg" alt=""></a></p>
<p>here is my Code,the <code>Activity</code>is t... | here is my Code,the Activity is to show 7 tabs from Mon. to Sun.each tabs use the same fragment ,I wanna add a ListView to load the imformation,but I don't how to do Activity: [CODE] Here is fragment : [CODE] | android | 0 | 2016-05-05T10:33:29.247Z | 2,016 | 5 | 10 | 3 | 382 | 1 | 208 | 41 | 1 | 2 | true | false | false | false | false | false | zero |
37,048,386 | how to solve this error in action bar? | <p>i have a problem with action bar.
i am changing te color or action bar.
but there is an error .
i can't understand how to solve this.
this is the code of my java file.</p>
<p>LoginActivity.java</p>
<pre><code>public class LoginActivity extends Activity implements OnClickListener,AllInOneAsyncTask.ServiceResultList... | i have a problem with action bar. i am changing te color or action bar. but there is an error . i can't understand how to solve this. this is the code of my java file. LoginActivity.java [CODE] activity_login.xml [CODE] i get an exception. [CODE] | android|android-actionbar | 0 | 2016-05-05T10:37:37.967Z | 2,016 | 5 | 10 | 3 | 324 | 3 | 246 | 38 | 2 | 3 | true | false | false | false | false | false | zero |
37,048,415 | OnBackPressed for Fragment is not setting home fragment name (Default fragment) | <p>In app there are six fragment,just for example
6. AboutUs (6th fragment Name)
1. MainFragment (1st fragment Name)</p>
<p>whenever I back pressed from 6 fragment.I directly go to first fragment but the name in ActionBar contain 6th fragment name with MainFragment under action bar.I want to change it but not getting ... | In app there are six fragment,just for example 6. AboutUs (6th fragment Name) 1. MainFragment (1st fragment Name) whenever I back pressed from 6 fragment.I directly go to first fragment but the name in ActionBar contain 6th fragment name with MainFragment under action bar.I want to change it but not getting a way [CODE... | android|android-fragments | 1 | 2016-05-05T10:39:23.060Z | 2,016 | 5 | 10 | 3 | 94 | 2 | 421 | 79 | 2 | 1 | true | false | false | false | false | false | low |
37,048,425 | EditText focus issue | <p>I've got an issue with several EditText components which reside side-by-side (They are children of RelativeLayout). </p>
<pre><code> <EditText
android:id="@+id/num1"
android:layout_width="40dp"
android:layout_height="40dp"
android:max... | I've got an issue with several EditText components which reside side-by-side (They are children of RelativeLayout). [CODE] Also, following is the relevant code that tries to change focus from num1 component to num2 component, but actually what happens is that the focus goes from num1 to num3: [CODE] I've tried differen... | android|android-layout|android-edittext | 0 | 2016-05-05T10:40:03.797Z | 2,016 | 5 | 10 | 3 | 145 | 2 | 533 | 20 | 3 | 2 | true | false | false | false | false | false | zero |
37,048,445 | Viewpager: GestureDetector.SimpleOnGestureListener - MotionEvent e1 in onFling method is always null. [ScrollView inside the Fragment for ViewPager] | <p>I am getting MotionEvent e1 always null in onFling method.</p>
<p>My observation is that - When the fragment UI has scrollview, issue arrives. Whereas, if there is no ScrollView, everything works perfectly fine.</p>
<p>My adapter -</p>
<pre><code>public static class MyPagerAdapter extends FragmentStatePagerAdapt... | I am getting MotionEvent e1 always null in onFling method. My observation is that - When the fragment UI has scrollview, issue arrives. Whereas, if there is no ScrollView, everything works perfectly fine. My adapter - [CODE] Fragment XML - [CODE] I have added scrollview for TextView just for testing purpose. | android|android-viewpager | 0 | 2016-05-05T10:41:03.287Z | 2,016 | 5 | 10 | 3 | 1,375 | 1 | 309 | 148 | 2 | 2 | true | false | false | false | false | false | zero |
37,048,454 | bypass android usb host permission confirmation dialog for android 5.1 | <p>I want to use android in industry,</p>
<p>I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem.</p>
<p>The application has a service and it starts on boot,connect to the usb serial port and do the other things.</p>
<p>my problem is that the host device does not ... | I want to use android in industry, I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem. The application has a service and it starts on boot,connect to the usb serial port and do the other things. my problem is that the host device does not have any interaction with u... | android|permissions|usb|root|usbserial | 3 | 2016-05-05T10:41:25.900Z | 2,016 | 5 | 10 | 3 | 3,767 | 2 | 1,050 | 70 | 5 | 0 | false | false | true | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.