id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,920,642 | ITelephony.aidl not working | <p>I don't understand how ITelephony.aidl needs to be defined or used.</p>
<p>For example, setting it as ITelephony.aidl under the following path:</p>
<p><a href="https://i.stack.imgur.com/Ak4JD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ak4JD.jpg" alt="enter image description here"></a></p>
... | I don't understand how ITelephony.aidl needs to be defined or used. For example, setting it as ITelephony.aidl under the following path: gives me an error in the following code: [CODE] The complaint is that cannot resolve symbol 'ITelephony' However, renaming the ITelephony.aidl to Itelephonyjava seems to resolve compi... | android|aidl | 0 | 2016-04-28T16:39:05.273Z | 2,016 | 4 | 16 | 3 | 530 | 1 | 420 | 27 | 2 | 1 | true | false | false | false | false | false | zero |
36,920,670 | Android: Why can't I programmaticaly pair to a bluetooth device, even with BLUETOOTH_PRIVILEGED and setPairingConfirmation | <p>I am currently trying to programmaticaly pair my Android device (4.4.2 KitKat) to a bluetooth dongle in a .NET project.</p>
<p>Normal pairing with user input (the pass key dialog) works, but I would like to bypass the user input.</p>
<p>After some reasearch ( <a href="https://stackoverflow.com/questions/19047995/p... | I am currently trying to programmaticaly pair my Android device (4.4.2 KitKat) to a bluetooth dongle in a .NET project. Normal pairing with user input (the pass key dialog) works, but I would like to bypass the user input. After some reasearch ( here and here ) I managed to come up with some code, but the dialog still ... | java|android|bluetooth|dialog|pairing | 1 | 2016-04-28T16:40:43.427Z | 2,016 | 4 | 16 | 3 | 1,329 | 1 | 590 | 122 | 5 | 3 | true | false | false | false | false | false | low |
36,920,697 | I want to send an email(javamail)with image attachment | <p>Im able to send email, just attachment part left..
First I'm taking picture and I want to send that picture as attachment.
please help </p>
<p>Here is my code </p>
<pre><code>import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import andro... | Im able to send email, just attachment part left.. First I'm taking picture and I want to send that picture as attachment. please help Here is my code [CODE] This is my code Please help me someone how to add attachment in this code | android|image|jakarta-mail|attachment | -1 | 2016-04-28T16:42:30.557Z | 2,016 | 4 | 16 | 3 | 1,379 | 1 | 231 | 54 | 4 | 1 | true | false | false | false | false | true | negative |
36,920,747 | java - Implement Facebook login using Android Studio and Facebook SDK | <p>I've tried to use the Facebook SDK to create a simple Facebook login inside my application.
Everything works fine, but the registerCallback function of LoginButton does not work properly.
This is my code:</p>
<pre><code> @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInsta... | I've tried to use the Facebook SDK to create a simple Facebook login inside my application. Everything works fine, but the registerCallback function of LoginButton does not work properly. This is my code: [CODE] This is inside my main activity. I then proceed to print the 'message' variable which is always empty becaus... | java|android|facebook|android-studio|authentication | 0 | 2016-04-28T16:44:59.427Z | 2,016 | 4 | 16 | 3 | 217 | 1 | 516 | 69 | 5 | 1 | true | false | false | false | false | false | zero |
36,920,879 | Android Studio 2.1 Cannot resolve symbol 'R' | <p>Android Studio 2.1,
Java V8 Update 91, Gradle 2.1.0 .</p>
<p>I know that this questions has been asked many times here, but none of the recommendation solutions works out. </p>
<p>In a sudden after compiling ready to run on Emulator, my IDE give an error at the R.id attribute. Every Java files suddenly give the ... | Android Studio 2.1, Java V8 Update 91, Gradle 2.1.0 . I know that this questions has been asked many times here, but none of the recommendation solutions works out. In a sudden after compiling ready to run on Emulator, my IDE give an error at the R.id attribute. Every Java files suddenly give the same error even I don'... | java|android|android-studio|r.java-file | 4 | 2016-04-28T16:51:18.017Z | 2,016 | 4 | 16 | 3 | 24,579 | 9 | 636 | 44 | 4 | 2 | true | false | true | true | false | false | low |
36,920,892 | Disable GotoHome behaviour provided by a mouse middle button click on Android | <p>In a business context (not commercial app), I need to avoid middle button click behaviour, that is to say displaying Home Screen</p>
<p>I spent hours browsing Stackoverflow pages, and the conclusion is often :</p>
<ul>
<li>it's not possible, regarding obvious security considerations</li>
</ul>
<p>My need is a bit... | In a business context (not commercial app), I need to avoid middle button click behaviour, that is to say displaying Home Screen I spent hours browsing Stackoverflow pages, and the conclusion is often : it's not possible, regarding obvious security considerations My need is a bit different : I use a connected mouse, I ... | android|android-homebutton | 3 | 2016-04-28T16:51:55.693Z | 2,016 | 4 | 16 | 3 | 2,674 | 2 | 1,129 | 77 | 2 | 0 | false | false | true | false | false | false | low |
36,921,177 | Parse Push not working on Parse Server Android | <p>I am a newbie on parse server and have been using it with my android app. But I am having trouble with implementing push notifications. I do not know how to get logs so any guidance will be much appreciated! The installation class does not contain any "GCMSenderId" or "deviceToken".</p>
<p>Here is how I set up pars... | I am a newbie on parse server and have been using it with my android app. But I am having trouble with implementing push notifications. I do not know how to get logs so any guidance will be much appreciated! The installation class does not contain any "GCMSenderId" or "deviceToken". Here is how I set up parse server to... | android|push-notification|google-cloud-messaging|parse-server | 2 | 2016-04-28T17:06:42.967Z | 2,016 | 4 | 17 | 3 | 355 | 1 | 1,148 | 46 | 4 | 0 | false | false | false | false | false | false | low |
36,921,348 | android.database.sqlite.SQLiteException: no such table : | <p>On running the application I am getting above error although i checked the sqlite file and it contains the watchlist table although the table has no entries .</p>
<p>DBAdapter.java</p>
<pre><code>package hp.vamazon;
import android.content.ContentValues;
import android.content.Context;
import android.database... | On running the application I am getting above error although i checked the sqlite file and it contains the watchlist table although the table has no entries . DBAdapter.java [CODE] Watchlist.java [CODE] at hp.vamazon.DBAdapter.getAllRows(DBAdapter.java:93) at hp.vamazon.Watchlist.populatListViewFromDB(Watchlist.java:37... | java|android|eclipse|sqlite | 0 | 2016-04-28T17:16:00.360Z | 2,016 | 4 | 17 | 3 | 2,009 | 4 | 321 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
36,921,496 | How to join png with alpha / transparency in a frame in realtime | <p>I'm working under the example of OpenCV android 2.4.11 which detects faces using the camera.
Instead of drawing a rectangle on the face found, I'm trying to put a mask (png image) on the face.
But to display the image on the face, the png image is coming with a black background where there was transparency.</p>
<p>... | I'm working under the example of OpenCV android 2.4.11 which detects faces using the camera. Instead of drawing a rectangle on the face found, I'm trying to put a mask (png image) on the face. But to display the image on the face, the png image is coming with a black background where there was transparency. FdActivity.... | android|python|opencv|camera | 16 | 2016-04-28T17:23:19.513Z | 2,016 | 4 | 17 | 3 | 7,821 | 1 | 331 | 64 | 4 | 1 | true | false | true | false | true | false | medium |
36,921,623 | Android navigation drawer toolbar is missing | <p>I have an launcher activity with navigaton drawer. When I add map into that launcher activity I dont see any toolbar so I can't control navigation drawer. Here how my activity looks now:
<a href="https://i.stack.imgur.com/hMFxr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hMFxr.png" alt="enter ... | I have an launcher activity with navigaton drawer. When I add map into that launcher activity I dont see any toolbar so I can't control navigation drawer. Here how my activity looks now: And here how it should look like (I need to have this toolbar) And the navigation drawer should overlap map like this So here's my co... | android|navigation-drawer|android-toolbar | 0 | 2016-04-28T17:29:08.993Z | 2,016 | 4 | 17 | 3 | 1,152 | 2 | 546 | 44 | 3 | 6 | true | false | false | false | false | false | zero |
36,921,690 | Create database on an android project | <p>I'm working on a project on android studio, and we need to create a database. I understand how databases work, but I can't understand how to create it. In my project, I got the class DataBaseHandler where I create the tables of a database.</p>
<pre><code>public class DatabaseHandler extends SQLiteOpenHelper {
//Da... | I'm working on a project on android studio, and we need to create a database. I understand how databases work, but I can't understand how to create it. In my project, I got the class DataBaseHandler where I create the tables of a database. [CODE] So, here the question,how do I create the database (and where? In an othe... | android|sqlite|android-studio | 0 | 2016-04-28T17:32:27.477Z | 2,016 | 4 | 17 | 3 | 76 | 1 | 667 | 37 | 3 | 2 | true | false | false | false | false | false | zero |
36,921,700 | ButterKnife first use error | <p>after my suffering from <code>findViewById</code> I decided to use <code>ButterKnife</code>
but nice bug told me that you will never ues ButterKnife
here is the error </p>
<blockquote>
<p>@InjectView-annotated class incorrectly in Android framework package. </p>
</blockquote>
<p>why? where is my mistake? is ... | after my suffering from findViewById I decided to use ButterKnife but nice bug told me that you will never ues ButterKnife here is the error @InjectView-annotated class incorrectly in Android framework package. why? where is my mistake? is gradle dependency wrong? I saw this post but it didn't help me gradle file (modu... | android|butterknife | 1 | 2016-04-28T17:32:56.867Z | 2,016 | 4 | 17 | 3 | 2,472 | 3 | 414 | 27 | 2 | 2 | true | false | false | false | false | false | low |
36,921,812 | Android volley stop or limit response.length() loop | <p>I have an android program use Volley StringRequest with dynamic ListView, but
i have a case that in android monitor after i got all my data it's still loop to next index. I just want to stop the loop when i already get all of my data.</p>
<p>MyActivity.java</p>
<pre><code>...@Override
public void o... | I have an android program use Volley StringRequest with dynamic ListView, but i have a case that in android monitor after i got all my data it's still loop to next index. I just want to stop the loop when i already get all of my data. MyActivity.java [CODE] ImageOne.jpg ImageTwo In this pictures, i had 2 index (index 0... | android|json|android-volley | 0 | 2016-04-28T17:39:05.667Z | 2,016 | 4 | 17 | 3 | 599 | 1 | 417 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
36,921,830 | google play service crash (gmaps) | <p>I'm using google maps in my android application and I recently got a crash from a Samsung Device running android 6.0. </p>
<p>This is the exception I am receiving:</p>
<pre><code>Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object referen... | I'm using google maps in my android application and I recently got a crash from a Samsung Device running android 6.0. This is the exception I am receiving: [CODE] Any idea what is causing this? My Code: [CODE] } [CODE] | android|google-maps|google-play-services | 1 | 2016-04-28T17:40:05.163Z | 2,016 | 4 | 17 | 3 | 158 | 0 | 218 | 33 | 3 | 3 | true | true | false | false | false | false | low |
36,921,855 | Android Activity Transition slide animation | <p>I wanna make a transition from Activity A to activity B via onClickListener on Button(btn). But I want to make a transition that looks like a Activity B window is pushing the Activity A window in a slide-like motion. <a href="https://i.stack.imgur.com/g226O.png" rel="nofollow noreferrer"><img src="https://i.stack.im... | I wanna make a transition from Activity A to activity B via onClickListener on Button(btn). But I want to make a transition that looks like a Activity B window is pushing the Activity A window in a slide-like motion. I tried making it with a this line of code, but I can't get it quite right. My Activity class code: [CO... | android|animation|android-animation|android-transitions | 1 | 2016-04-28T17:41:23.583Z | 2,016 | 4 | 17 | 3 | 1,355 | 1 | 366 | 43 | 4 | 3 | true | false | false | false | false | false | low |
36,921,944 | Java Bluetooth How To Run Process In Background | <p>I am attempting to receive data on a phone over Bluetooth, and I am using Android Studio to attempt this. The problem is, when I run a process that listens for incoming data, I believe that the program stops at the process and waits, not allowing the rest of the program to run. I believe this because I programmed To... | I am attempting to receive data on a phone over Bluetooth, and I am using Android Studio to attempt this. The problem is, when I run a process that listens for incoming data, I believe that the program stops at the process and waits, not allowing the rest of the program to run. I believe this because I programmed Toast... | java|android|bluetooth|data-transfer|java-threads | 0 | 2016-04-28T17:46:11.547Z | 2,016 | 4 | 17 | 3 | 97 | 1 | 697 | 47 | 5 | 1 | true | false | false | false | false | false | zero |
36,922,037 | Persist request result with RxJava, Retrofit2 and Realm (async) | <p>I'm trying to connect to an api, download some data and save them to my local Realm database. To connect to the api I use Retrofit2, returning an Observable object. I'm having problem doing it asynchronously, because Realm obviously tell me that I can't use the same realm object on different thread</p>
<p>Here is m... | I'm trying to connect to an api, download some data and save them to my local Realm database. To connect to the api I use Retrofit2, returning an Observable object. I'm having problem doing it asynchronously, because Realm obviously tell me that I can't use the same realm object on different thread Here is my code (not... | android|multithreading|realm|retrofit2 | 2 | 2016-04-28T17:50:59.197Z | 2,016 | 4 | 17 | 3 | 242 | 0 | 756 | 63 | 4 | 2 | true | true | false | false | false | false | low |
36,922,040 | How to change language for a whole android application? | <p>I want to write a application that can display either english or chinese. I have already prepared 2 string.xml which is value/strings.xml and value-zh-rHK/strings.xml. But I have no idea how to change the language via ListPreference of android.</p>
<p>xml/preferences.xml:</p>
<pre><code><?xml version="1.0" enco... | I want to write a application that can display either english or chinese. I have already prepared 2 string.xml which is value/strings.xml and value-zh-rHK/strings.xml. But I have no idea how to change the language via ListPreference of android. xml/preferences.xml: [CODE] [CODE] and the Preferences.java [CODE] The acti... | android|locale|preferences | 5 | 2016-04-28T17:51:13.427Z | 2,016 | 4 | 17 | 3 | 10,769 | 0 | 387 | 55 | 3 | 3 | true | true | true | false | false | false | low |
36,922,125 | Switch Images inside Fragment when Audio jack is connected or busy | <p>I am trying to detect if the headphone is plugged into Audio jack or not and based on that trying to change the image in the layout attached with a Fragment. </p>
<p>I was trying to learn about the Fragment life cycle on slidenerd video on youtube and honestly I couldn't understand a single word what he was trying ... | I am trying to detect if the headphone is plugged into Audio jack or not and based on that trying to change the image in the layout attached with a Fragment. I was trying to learn about the Fragment life cycle on slidenerd video on youtube and honestly I couldn't understand a single word what he was trying to explain. ... | android|android-fragments|audio | 2 | 2016-04-28T17:55:45.473Z | 2,016 | 4 | 17 | 3 | 59 | 1 | 1,058 | 66 | 3 | 1 | true | false | false | false | false | false | low |
36,922,289 | Osmosis ignoring data in generating .map | <p>I'm trying to convert an OSM file that it needed to be developed with private data to the format .map using <code>osmosis</code> with <code>mapforge-map-writer</code>, but the data for the survey point are being totally ignored in <code>.map</code> generation. I've investigated the code, but I can't understand what ... | I'm trying to convert an OSM file that it needed to be developed with private data to the format .map using osmosis with mapforge-map-writer , but the data for the survey point are being totally ignored in .map generation. I've investigated the code, but I can't understand what is happening. I've used the following com... | android|openstreetmap|mapsforge|osmosis | 0 | 2016-04-28T18:04:05.797Z | 2,016 | 4 | 18 | 3 | 114 | 1 | 770 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,922,587 | How do I get my icons binded in my Android Application? | <p>I have following (relevant) classes:</p>
<pre><code>public class Category {
private int icon;
private String name;
getters; setters;
}
</code></pre>
<p>and</p>
<pre><code>public class Location {
...
...
private Set<Category> categories;
...
}
</code></pre>
<p>and an ArrayAdapter w... | I have following (relevant) classes: [CODE] and [CODE] and an ArrayAdapter which plots my Location into an arraylist and displays them in a ListView, I have like 100 icons, I want to display them beside my List-Items, which are coded in JSON-Type, and it has an int icon. Now I wish to get an icon for each number in my ... | java|android|icons|android-arrayadapter | 0 | 2016-04-28T18:21:37.530Z | 2,016 | 4 | 18 | 3 | 60 | 0 | 1,023 | 55 | 4 | 3 | true | true | false | false | false | false | zero |
36,922,688 | Android: How i can share a link and open an activity when user click on this link | <p>I want to make users able to share their objects with others.<br>
I have an activity that can display the object information with an intent filter like this:</p>
<pre><code><intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEF... | I want to make users able to share their objects with others. I have an activity that can display the object information with an intent filter like this: [CODE] Code for sharing: [CODE] But when i click on this link i can not see my application on "Complete action using" dialog. | android|android-intent|intentfilter | 1 | 2016-04-28T18:26:59.070Z | 2,016 | 4 | 18 | 3 | 575 | 1 | 279 | 81 | 3 | 2 | true | false | false | false | false | false | low |
36,922,703 | Get value of dialog | <p>I have a class to custom dialog, I need to know what values was clicked on this class when dimiss and use it on my activity. How can I do it?.
This is the code:</p>
<pre><code>public class ViewDialog {
public void showDialog(final Activity activity, String msg, String idFriend){
final Dialog dialog = new Dialog... | I have a class to custom dialog, I need to know what values was clicked on this class when dimiss and use it on my activity. How can I do it?. This is the code: [CODE] } And call on activity: [CODE] | android | -1 | 2016-04-28T18:27:46.850Z | 2,016 | 4 | 18 | 3 | 85 | 1 | 198 | 19 | 1 | 2 | true | false | false | false | false | true | negative |
36,922,714 | Uri on Activity.onActivityResult(int requestCode, int resultCode, Intent data) | <p>I have some doubts on the reliability of content providers in Android.</p>
<p><h1>1 - Is it possible for different <code>Document</code>s having the same Uri?</h1>For instance. A user has 2 images in the device:</p>
<pre><code>content://com.android.providers.media.documents/document/image%AAAAA
</code></pre>
<p>a... | I have some doubts on the reliability of content providers in Android. 1 - Is it possible for different Document s having the same Uri? For instance. A user has 2 images in the device: [CODE] and [CODE] Supposing a scenario where AAAAA would point to a file, then the user erases that file. User then creates a new file ... | android|android-intent|media | 0 | 2016-04-28T18:28:33.470Z | 2,016 | 4 | 18 | 3 | 216 | 1 | 968 | 78 | 3 | 2 | true | false | false | false | false | false | zero |
36,922,800 | Issue/Bug when saving image from View Pager | <p>I am trying to create a gallery app with View Pager.All is working fine with image displaying correctly in View pager and swiping through images work fine.I have set a floating button to save image in my detail activity with a fragment.But when i click that button to save image then it saves the next image instead o... | I am trying to create a gallery app with View Pager.All is working fine with image displaying correctly in View pager and swiping through images work fine.I have set a floating button to save image in my detail activity with a fragment.But when i click that button to save image then it saves the next image instead of c... | android|android-fragments|android-viewpager | 1 | 2016-04-28T18:32:14.110Z | 2,016 | 4 | 18 | 3 | 228 | 2 | 1,106 | 43 | 3 | 5 | true | false | false | false | false | false | low |
36,922,877 | SetContentView results in a blank UI when called from elsewhere in the application | <p>Currently I am trying to abstract the base UI of an application such that it can be extended by child fragments, inheriting the main elements such as the elements of the navigation and settings menus. The children would then take the basic UI and create the rest of the UI, however currently unless you explicitly set... | Currently I am trying to abstract the base UI of an application such that it can be extended by child fragments, inheriting the main elements such as the elements of the navigation and settings menus. The children would then take the basic UI and create the rest of the UI, however currently unless you explicitly set th... | android | 0 | 2016-04-28T18:35:54.883Z | 2,016 | 4 | 18 | 3 | 196 | 1 | 574 | 82 | 1 | 2 | true | false | false | false | false | false | zero |
36,922,995 | Toggle Button yellow light/dash | <p>I made an App with several Toggle Buttons among other constrols. In certain circumstances some of those Toggle Buttons are set checked and unchecked not phisically by the user, but programmatically.</p>
<p>The tests in the Android Virtual Machine shows a normal behaviour of these controls, when I check and uncheck ... | I made an App with several Toggle Buttons among other constrols. In certain circumstances some of those Toggle Buttons are set checked and unchecked not phisically by the user, but programmatically. The tests in the Android Virtual Machine shows a normal behaviour of these controls, when I check and uncheck the Toggle ... | android|button|togglebutton | 1 | 2016-04-28T18:41:42.603Z | 2,016 | 4 | 18 | 3 | 100 | 0 | 3,001 | 31 | 3 | 2 | true | true | false | false | false | false | low |
36,923,026 | Android - Destroying Activity after Time Elapse | <p>I trying to code an activity (buildImage) so that is automatically "closes" after a specified time. I am using the CountDown timer class, but am having no success. It simply does nothing, no errors, or anything else. </p>
<p>What might the issue be (the Looper.prepare() line is there to prevent an error from being ... | I trying to code an activity (buildImage) so that is automatically "closes" after a specified time. I am using the CountDown timer class, but am having no success. It simply does nothing, no errors, or anything else. What might the issue be (the Looper.prepare() line is there to prevent an error from being thrown) Here... | android|multithreading|timer | 0 | 2016-04-28T18:43:29.133Z | 2,016 | 4 | 18 | 3 | 19 | 1 | 567 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
36,923,040 | Memory efficient way to manipulate images? | <p>I have some code that takes two images and merges the middle section of them together into one image. The code works, but uses quite a lot of memory, so it fails on some devices that don't have enough memory.</p>
<p>Is there some way to make this code more memory efficient?</p>
<h3>The code</h3>
<pre><code>privat... | I have some code that takes two images and merges the middle section of them together into one image. The code works, but uses quite a lot of memory, so it fails on some devices that don't have enough memory. Is there some way to make this code more memory efficient? The code [CODE] | java|android|android-canvas|android-image|android-bitmap | 1 | 2016-04-28T18:44:22.110Z | 2,016 | 4 | 18 | 3 | 99 | 2 | 283 | 42 | 5 | 1 | true | false | false | false | false | false | low |
36,923,046 | Application crashes when double tap on DatePicker | <p>i managed to get a custom DatePicker and add it to my project , the problem is , that when i tape Twice on a date , the application crashes ! </p>
<p>custom datePicker code : </p>
<pre><code>package com.example.logindesign;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Motio... | i managed to get a custom DatePicker and add it to my project , the problem is , that when i tape Twice on a date , the application crashes ! custom datePicker code : [CODE] and this is how i used that class in my main activity : [CODE] Logcat : [CODE] | android|eclipse|datepicker | 3 | 2016-04-28T18:44:37.270Z | 2,016 | 4 | 18 | 3 | 495 | 1 | 252 | 49 | 3 | 3 | true | false | false | false | false | false | low |
36,923,050 | Tab Slider Android Studio not working | <p>I set up a tab slider in my activity calling 3 separate fragments depending on the fragment selected. The problem is that when the first tab is selected, "Science" is shown - which was set on the onCreateView() method of the first fragment. However, WITHOUT clicking on the other tabs, "Technology" and "Sports" are ... | I set up a tab slider in my activity calling 3 separate fragments depending on the fragment selected. The problem is that when the first tab is selected, "Science" is shown - which was set on the onCreateView() method of the first fragment. However, WITHOUT clicking on the other tabs, "Technology" and "Sports" are then... | android|android-studio | 0 | 2016-04-28T18:44:51.787Z | 2,016 | 4 | 18 | 3 | 155 | 0 | 710 | 37 | 2 | 3 | true | true | false | false | false | false | zero |
36,923,092 | How can I get a HorizontalScrollView to scroll to the correct position after adding padding to its child? | <p>I have a LinearLayout (with horizontal orientation) inside a HorizontalScrollView. When the user clicks on an element of the LinearLayout, I want it to always scroll so that the selected element is flush with the left side of the ScrollView.</p>
<p>Right now, the following code in my OnClickListener usually accompl... | I have a LinearLayout (with horizontal orientation) inside a HorizontalScrollView. When the user clicks on an element of the LinearLayout, I want it to always scroll so that the selected element is flush with the left side of the ScrollView. Right now, the following code in my OnClickListener usually accomplishes what ... | android|android-layout|android-linearlayout|android-scrollview | 1 | 2016-04-28T18:47:22.753Z | 2,016 | 4 | 18 | 3 | 427 | 1 | 849 | 105 | 4 | 2 | true | false | false | false | false | false | low |
36,923,167 | What causes this weird app life-cycle? | <p>My Android app checks if a specific service is not running, in my Activity's onResume method. If it hasn't been started, then it goes into the background (via startService) and stays there for an action. Clicking on a button causes the service to go into the foreground and it works great. Now the problem:</p>
<p>Sc... | My Android app checks if a specific service is not running, in my Activity's onResume method. If it hasn't been started, then it goes into the background (via startService) and stays there for an action. Clicking on a button causes the service to go into the foreground and it works great. Now the problem: Scenario #1 :... | android | 0 | 2016-04-28T18:51:19.643Z | 2,016 | 4 | 18 | 3 | 31 | 0 | 1,237 | 38 | 1 | 0 | false | true | false | false | false | false | zero |
36,923,359 | how to use cloudsight api in android app for image recognition | <p>public class MainActivity extends AppCompatActivity {</p>
<pre><code>private static final String API_KEY = "b8fo0q33XyuCTm0qbr6XCg";
static final HttpTransport HTTP_TRANSPORT = new NetHttpTransport();
static final JsonFactory JSON_FACTORY = new JacksonFactory();
@Override
protected void onCreate(Bundle savedInsta... | public class MainActivity extends AppCompatActivity { [CODE] } i am new to this api. i have post and get files also i dont know how to use it. when i am running the app it says unfortunately stop. i have used cloudsight api but there no source for using it. Can u suggest some solution on how to use it or some other fre... | android|cloudsight | 0 | 2016-04-28T19:01:43.757Z | 2,016 | 4 | 19 | 3 | 690 | 2 | 348 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
36,923,382 | AES Decryption in Android Studio | <p>I am attempting to decrypt a string encrypted elsewhere using 128 bit AES password based encryption. While decrypting, it shows the following error in my logcat:</p>
<pre>
04-29 00:26:28.881 2379-2379/? W/System.err: javax.crypto.IllegalBlockSizeException: last block incomplete in decryption
04-29 00:26:28.881 2379... | I am attempting to decrypt a string encrypted elsewhere using 128 bit AES password based encryption. While decrypting, it shows the following error in my logcat: [CODE] My java code is included. [CODE] the code for encryption is here.... [CODE] i am trying to encrypt a string in one app and decrypt in another app by us... | java|android|encryption | 0 | 2016-04-28T19:03:11.720Z | 2,016 | 4 | 19 | 3 | 528 | 0 | 417 | 32 | 3 | 3 | true | true | false | false | false | false | zero |
36,923,507 | Keeping Seekbar values when replacing fragment | <p>I'm having a navigation drawer with 4 items (Home,settings,about,help). On a click on the item, the fragment corresponding to the item replace the other one.</p>
<p>Now, I have this settings fragment with 3 seekbar, if a user change the value of the seekbar and after he open the navigation drawer and click home and... | I'm having a navigation drawer with 4 items (Home,settings,about,help). On a click on the item, the fragment corresponding to the item replace the other one. Now, I have this settings fragment with 3 seekbar, if a user change the value of the seekbar and after he open the navigation drawer and click home and come back ... | android|android-fragments|android-inflate | 0 | 2016-04-28T19:10:09.847Z | 2,016 | 4 | 19 | 3 | 534 | 1 | 948 | 46 | 3 | 3 | true | false | false | false | false | false | zero |
36,923,549 | Cordova: firebase disconnected after login | <p>I'm using cordova/phonegap with angularjs+firebase, after creating the account firebase, it automatically disconnect</p>
<p>intelxdk.config.android.app.xml</p>
<pre><code><widget xmlns="http://www.w3.org/ns/widgets" xmlns:intelxdk="http://xdk.intel.com/ns/v1" id="com.intel.appx.xwalk16" version="0.3.1" android-... | I'm using cordova/phonegap with angularjs+firebase, after creating the account firebase, it automatically disconnect intelxdk.config.android.app.xml [CODE] Create function [CODE] The user was created in Firebase . | android|cordova|firebase|firebase-authentication | 0 | 2016-04-28T19:12:53.987Z | 2,016 | 4 | 19 | 3 | 195 | 0 | 213 | 42 | 4 | 2 | true | true | false | false | false | false | zero |
36,923,613 | TextView Clickable in MVVMCross | <p>I have floating button in the <code>FundamentalView.axml</code></p>
<pre><code><FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="22dp"
android:paddingRight="22dp"
android:layout_alignParentBottom="true"
android:layout_alignParentE... | I have floating button in the FundamentalView.axml [CODE] In the FundamentalView.cs , I have click event which triggers a fragment from the bottom of the view with having options (adding a new person and new calculations). [CODE] CardDialogView.axml [CODE] My question is how to make TextView clickable and know which te... | android|xamarin|mvvmcross | 0 | 2016-04-28T19:16:23.293Z | 2,016 | 4 | 19 | 3 | 782 | 1 | 403 | 31 | 3 | 5 | true | false | false | false | false | false | zero |
36,923,700 | Application crashed on setContentView android with no stack trace | <p>Application crashed when it executes the line <code>setContentView(R.layout.activity_main);</code> in my mobile <strong>samsung galaxy s4 android 5.0 custom</strong> it works fine. but i tried 3 other (android 4.0+) mobiles and bluestack it application crashed.</p>
<p>i can't track the bug where is wrong in my app.... | Application crashed when it executes the line setContentView(R.layout.activity_main); in my mobile samsung galaxy s4 android 5.0 custom it works fine. but i tried 3 other (android 4.0+) mobiles and bluestack it application crashed. i can't track the bug where is wrong in my app. there is no stack trace of exception, ap... | android|android-layout|android-manifest|build.gradle | 2 | 2016-04-28T19:21:46.803Z | 2,016 | 4 | 19 | 3 | 890 | 2 | 736 | 65 | 4 | 7 | true | false | false | false | false | false | low |
36,923,842 | NestedScrollView.OnScrollChangedListener not working | <p>I am writing an app which has NestedScrollView. I want to handle if the scroll has changed. I have searched on internet and found that i have to create custom ScrollView. Here is my code:</p>
<pre><code>public interface OnScrollChangedListener {
void onScrollChanged(MyScrollView nestedScrollView, int l, int t,... | I am writing an app which has NestedScrollView. I want to handle if the scroll has changed. I have searched on internet and found that i have to create custom ScrollView. Here is my code: [CODE] first off all i have created an interface to handle Scroll Changes then i created custom NestedScrollView [CODE] and then i u... | android|android-nestedscrollview|onscrollchanged | 5 | 2016-04-28T19:30:33.717Z | 2,016 | 4 | 19 | 3 | 848 | 0 | 689 | 52 | 3 | 5 | true | true | false | false | false | false | low |
36,923,872 | How do I go back to the top of the code? | <p>I have been learning C# and I am creating an app.</p>
<p>I have tried goto statements however the labels are "out of range" I want it to send me back to the original layout which I found out I need to go back to the top of the code.</p>
<pre><code> namespace TheAppOfJack
{
[Activ... | I have been learning C# and I am creating an app. I have tried goto statements however the labels are "out of range" I want it to send me back to the original layout which I found out I need to go back to the top of the code. [CODE] | c#|android|xamarin.android | 0 | 2016-04-28T19:32:05.560Z | 2,016 | 4 | 19 | 3 | 352 | 1 | 232 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
36,923,939 | Retrieve child data from Firebase | <p>I want to retrieve data from my firebase, but i get null at the child items (latitude and longitude).</p>
<p>I don't know how to access those child items. I guess its problem with the deserialize of jackson to java in my two classes (MyLatLng.class and Waypoints.class) </p>
<h2>-</h2>
<p><strong>JSON STRUCTURE</... | I want to retrieve data from my firebase, but i get null at the child items (latitude and longitude). I don't know how to access those child items. I guess its problem with the deserialize of jackson to java in my two classes (MyLatLng.class and Waypoints.class) - JSON STRUCTURE [CODE] Logcat with the error [CODE] PARE... | android|firebase|firebase-realtime-database | 0 | 2016-04-28T19:36:09.050Z | 2,016 | 4 | 19 | 3 | 758 | 1 | 413 | 33 | 3 | 5 | true | false | false | false | false | false | zero |
36,923,948 | RecyclerView steals focus when inside a NestedScrollView | <p>When I put a RecyclerView inside a nested scrollview, the screen always jumps to the top of the RecyclerView instead of the top of the page. Here is a simple example.</p>
<p>layout xml:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout xmlns:tools="http://schemas.android.com/tools"
xmlns:a... | When I put a RecyclerView inside a nested scrollview, the screen always jumps to the top of the RecyclerView instead of the top of the page. Here is a simple example. layout xml: [CODE] Activity with dummy adapter: [CODE] In this example I have a 350dp tall empty view over the recycleview because you need to have some ... | android|android-layout|android-recyclerview | 49 | 2016-04-28T19:36:31.713Z | 2,016 | 4 | 19 | 3 | 26,348 | 5 | 651 | 56 | 3 | 2 | true | false | true | true | true | false | high |
36,923,994 | Cannot get a reference to EditText using 'findViewById()' after 'setContentView()' | <p>In an activity where the user is supposed to enter his credentials, in the 'onCreate(...)' of activity, after setContentView(layout) I am doing this:</p>
<pre><code>nameView = (EditText) findViewById(R.id.profileNameTextBox);
</code></pre>
<p>Where nameView is an EditText. When I try to get the text from this vari... | In an activity where the user is supposed to enter his credentials, in the 'onCreate(...)' of activity, after setContentView(layout) I am doing this: [CODE] Where nameView is an EditText. When I try to get the text from this variable on a button click, my application crashes. The reason behind it is that nameView holds... | java|android | 0 | 2016-04-28T19:38:57.463Z | 2,016 | 4 | 19 | 3 | 643 | 2 | 1,030 | 82 | 2 | 4 | true | false | false | false | false | false | zero |
36,924,232 | VectorDrawableCompat draws icon with displacement | <p>Please, explain me how to fix it? I load vector drawable calling <code>VectorDrawableCompat.create(context.getResources(), resId, context.getTheme());</code>
<br>It works on all supported devices (starting from API 8) but draws all icon with displacement. Why? I cannot understand. Just for example, it's <code>Naviga... | Please, explain me how to fix it? I load vector drawable calling VectorDrawableCompat.create(context.getResources(), resId, context.getTheme()); It works on all supported devices (starting from API 8) but draws all icon with displacement. Why? I cannot understand. Just for example, it's NavigationView menu: Layout boun... | android|android-vectordrawable | 3 | 2016-04-28T19:51:06.030Z | 2,016 | 4 | 19 | 3 | 188 | 0 | 583 | 49 | 2 | 2 | true | true | false | false | false | false | low |
36,924,291 | Android bluetooth socket.connect(); IOException | <p>I'm trying to connect two devices via bluetooth. The pairing process is being done via android native stuff, which means I only would need to get the socket itself and call .connect() on this socket. </p>
<p>The goal is to create a bluetooth system to handle a master/worker relation (several worker sending data to ... | I'm trying to connect two devices via bluetooth. The pairing process is being done via android native stuff, which means I only would need to get the socket itself and call .connect() on this socket. The goal is to create a bluetooth system to handle a master/worker relation (several worker sending data to master). Tha... | java|android|sockets|bluetooth|connection | 2 | 2016-04-28T19:54:29.173Z | 2,016 | 4 | 19 | 3 | 1,268 | 0 | 664 | 47 | 5 | 4 | true | true | false | false | false | false | low |
36,924,342 | Android ChatActivity Bottom LinearLayout covers bottom of ScrollView scrollable area | <p>I'm making a chat Activity that has a send message box at the bottom. The send message box should always be visible and always be at the bottom of the screen. The Scrollview has a vertical LinearLayout that has views added to it inside of a loop. It works pretty much perfectly except when the there are enough views ... | I'm making a chat Activity that has a send message box at the bottom. The send message box should always be visible and always be at the bottom of the screen. The Scrollview has a vertical LinearLayout that has views added to it inside of a loop. It works pretty much perfectly except when the there are enough views in ... | android|android-layout | 0 | 2016-04-28T19:57:06.777Z | 2,016 | 4 | 19 | 3 | 47 | 2 | 752 | 84 | 2 | 1 | true | false | false | false | false | false | zero |
36,924,481 | "You need to use a Theme.AppCompat theme (or descendant) with the design library" error | <p>I'm getting "You need to use a Theme.AppCompat theme (or descendant) with the design library" error every time even if I'm obviously using an AppCompat Theme (a descendant one).</p>
<p><strong>dependencies:</strong></p>
<pre><code>compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:desig... | I'm getting "You need to use a Theme.AppCompat theme (or descendant) with the design library" error every time even if I'm obviously using an AppCompat Theme (a descendant one). dependencies: [CODE] layout: [CODE] theme: [CODE] manifest: [CODE] I'm inflating the layout inside a service : [CODE] | android|layout|styles|android-appcompat | 8 | 2016-04-28T20:04:08.193Z | 2,016 | 4 | 20 | 3 | 8,746 | 3 | 295 | 87 | 4 | 5 | true | false | true | false | false | false | medium |
36,924,534 | Show content of online server file on android app | <p>I am currently making an app where the user can access study material from a list view of different subjects. </p>
<p>In my database table where the subject names are fetched from also has a column which has a file path to a folder on my online server. Each subject has an individual folder on the server. </p>
<p>H... | I am currently making an app where the user can access study material from a list view of different subjects. In my database table where the subject names are fetched from also has a column which has a file path to a folder on my online server. Each subject has an individual folder on the server. How would I go about a... | java|android|json|listview|fileserver | 0 | 2016-04-28T20:07:58.650Z | 2,016 | 4 | 20 | 3 | 171 | 1 | 545 | 49 | 5 | 2 | true | false | false | false | false | false | zero |
36,924,656 | Control native component measurement and layout in React Native | <p>In React-Native, Can we increase height/width of a view such that it can layout outside of parents bound ?</p>
<blockquote>
<p>I want to make a view fullscreen that is several layers down a
hierarchy e.g. an item of a listview..</p>
</blockquote>
<p>For Android. especially..</p>
<p>I have tried setting layout... | In React-Native, Can we increase height/width of a view such that it can layout outside of parents bound ? I want to make a view fullscreen that is several layers down a hierarchy e.g. an item of a listview.. For Android. especially.. I have tried setting layout params but doesn't work, layout sizes can only be modifie... | android|video|reactjs|react-native|android-fullscreen | 2 | 2016-04-28T20:15:03.363Z | 2,016 | 4 | 20 | 3 | 776 | 1 | 761 | 63 | 5 | 0 | false | false | false | false | false | false | low |
36,924,724 | Android: two non-breakable Spans (draw two spans as one) | <p>I have a <code>TextView</code>, to which I'm setting <code>SpannableString</code> combining different <code>Span</code>s (<code>ImageSpan</code>, <code>CalligraphyTypefaceSpan</code>) showing icon-text pairs:</p>
<p><a href="https://i.stack.imgur.com/ovo0Q.png" rel="nofollow noreferrer"><img src="https://i.stack.im... | I have a TextView , to which I'm setting SpannableString combining different Span s ( ImageSpan , CalligraphyTypefaceSpan ) showing icon-text pairs: It works as I expect, but on the line break, the icon and the corresponding text are getting divided. I want it always to be displayed as one block. I was trying to add no... | android|spannablestring|spannable | 3 | 2016-04-28T20:20:18.533Z | 2,016 | 4 | 20 | 3 | 436 | 0 | 602 | 56 | 3 | 0 | false | true | false | false | false | false | low |
36,924,793 | How to check which image listview contains? | <p>I'm making a simple app with a custom listview and a database and I got stuck with checking which image a listview contains.</p>
<p><strong>Example of what I wanna do:</strong></p>
<p>If I want to update job1 then I click on job1 and it should open the dialog with the "under construction" selected.</p>
<p>job2 wi... | I'm making a simple app with a custom listview and a database and I got stuck with checking which image a listview contains. Example of what I wanna do: If I want to update job1 then I click on job1 and it should open the dialog with the "under construction" selected. job2 with done selected etc.. I wanna know how to m... | android|sqlite|listview | -1 | 2016-04-28T20:24:22.010Z | 2,016 | 4 | 20 | 3 | 68 | 2 | 706 | 43 | 3 | 2 | true | false | false | false | false | true | negative |
36,924,836 | Android-Like keyboard with HTML/CSS/JS | <p>Having problems about a Virtual Keyboard in my website (its Touchable) , and I wish to have an Android-Like keyboard behavior.</p>
<p>My major problem is ... <strong>screen focus</strong>. </p>
<p>I can display a simple keyboard (plugin or handmake) on the screen but I cannot achieve the focus effect over a contr... | Having problems about a Virtual Keyboard in my website (its Touchable) , and I wish to have an Android-Like keyboard behavior. My major problem is ... screen focus . I can display a simple keyboard (plugin or handmake) on the screen but I cannot achieve the focus effect over a control when I display it. All the plugins... | javascript|android|html|css|keyboard | 0 | 2016-04-28T20:26:18.053Z | 2,016 | 4 | 20 | 3 | 294 | 0 | 913 | 38 | 5 | 0 | false | true | false | false | false | false | zero |
36,924,893 | Why some strings are never translated on my android application? | <p>I have an Android aplication with the default values/strings.xml and also a custom strings file values-pt/strings.xml (for Portuguese). This is working perfectly for <strong>almost</strong> every string on my application.</p>
<p>Just to make it clear, see the example below:</p>
<p>at <strong>app/src/main/res/value... | I have an Android aplication with the default values/strings.xml and also a custom strings file values-pt/strings.xml (for Portuguese). This is working perfectly for almost every string on my application. Just to make it clear, see the example below: at app/src/main/res/values/strings.xml [CODE] at app/src/main/res/val... | android|android-studio|localization | 1 | 2016-04-28T20:29:19.460Z | 2,016 | 4 | 20 | 3 | 32 | 0 | 635 | 64 | 3 | 3 | true | true | false | false | false | false | low |
36,924,982 | ViewModel does not get called in MVVMCross | <p>In the <strong>FundamentalView.cs</strong>, I have click event which triggers a fragment from the bottom of the view with having options (adding a new person and new calculations).</p>
<pre><code> var addButton = view.FindViewById<ImageButton>(Resource.Id.addButton);
addButton.Click += OnAddButtonClick;
vo... | In the FundamentalView.cs , I have click event which triggers a fragment from the bottom of the view with having options (adding a new person and new calculations). [CODE] CardDialogView.axml [CODE] CardDialogView.cs [CODE] The following corresponding ViewModel does not get called? I wonder what I am missing? CardDialo... | android|xamarin|mvvmcross | 0 | 2016-04-28T20:35:36.930Z | 2,016 | 4 | 20 | 3 | 136 | 1 | 340 | 42 | 3 | 4 | true | false | false | false | false | false | zero |
36,925,132 | Eclipse won't generate .bc file after my SampleScript.rs is created | <p>I am working with some renderscripts, I created a samplescript.rs and I built the project but the .bc file is not being created. I can access the ScriptC_samplescript class, but I can't see the .bc file. What am I doing wrong?</p>
<p>Please help me I have been struggling with this issue for a week! I can't find any... | I am working with some renderscripts, I created a samplescript.rs and I built the project but the .bc file is not being created. I can access the ScriptC_samplescript class, but I can't see the .bc file. What am I doing wrong? Please help me I have been struggling with this issue for a week! I can't find any solutions ... | android|eclipse|build|project|renderscript | 0 | 2016-04-28T20:45:29.810Z | 2,016 | 4 | 20 | 3 | 150 | 0 | 453 | 67 | 5 | 1 | true | true | false | false | false | false | zero |
36,925,226 | Firebase data structure RecyclerView | <p>I want to display the module list in a RecyclerView. When the user clicks the module designation, I want it to show the list of objects from this module</p>
<p>I structured the base from a <a href="http://i.stack.imgur.com/H0yR5.png" rel="nofollow">Firebase Structure</a></p>
<p>The problem is that I can't the list... | I want to display the module list in a RecyclerView. When the user clicks the module designation, I want it to show the list of objects from this module I structured the base from a Firebase Structure The problem is that I can't the list of module designation [CODE] // ModulesViewHolder.class, mFirebase.child("MODULES"... | android|firebase|firebase-realtime-database | 1 | 2016-04-28T20:52:01.063Z | 2,016 | 4 | 20 | 3 | 135 | 0 | 359 | 36 | 3 | 2 | true | true | false | false | false | false | low |
36,925,422 | Flipping game logic help required | <p>i am working on a small game and i have written logic already, game shows 4 rows and 3 columns means total 12 cells or buttons.</p>
<p>they appear 2 seconds and i show all the icons on it and after that i disappear them, then user has to match the icons to complete the game.</p>
<p>I am using gridview for this pur... | i am working on a small game and i have written logic already, game shows 4 rows and 3 columns means total 12 cells or buttons. they appear 2 seconds and i show all the icons on it and after that i disappear them, then user has to match the icons to complete the game. I am using gridview for this purpose and code is gi... | java|android | 0 | 2016-04-28T21:03:16.823Z | 2,016 | 4 | 21 | 3 | 39 | 0 | 484 | 33 | 2 | 1 | true | true | false | false | false | false | zero |
36,925,765 | Butter Knife return null pointer | <p>I want to using Butter Knife in my project.I did everything according to the Butter Knife tutorial.
But when I set anything to the views (setText, setClickListener ...) I got null object reference exception.</p>
<p>This is my code:</p>
<pre><code>public class LoginActivity extends AppCompatActivity implements Logi... | I want to using Butter Knife in my project.I did everything according to the Butter Knife tutorial. But when I set anything to the views (setText, setClickListener ...) I got null object reference exception. This is my code: [CODE] activity_login.xml [CODE] And error log [CODE] What's wrong in my code ? Thanks | android|butterknife | 19 | 2016-04-28T21:28:24.880Z | 2,016 | 4 | 21 | 3 | 15,701 | 6 | 311 | 32 | 2 | 3 | true | false | true | true | true | false | medium |
36,925,776 | Android Studio not installing plugin's or importing settings | <p>I'm trying to install the Fabric plugin with Crashlytics for Android Studio 2.1. Every time I install it, after restarting, the plugin no longer exists. I've tried installing it directly from disk with the zip file, and separately using just the jar. I thought maybe it's my installation, so I did a clean wipe of And... | I'm trying to install the Fabric plugin with Crashlytics for Android Studio 2.1. Every time I install it, after restarting, the plugin no longer exists. I've tried installing it directly from disk with the zip file, and separately using just the jar. I thought maybe it's my installation, so I did a clean wipe of Androi... | crashlytics|crashlytics-android|android-studio-2.1 | 4 | 2016-04-28T21:28:59.213Z | 2,016 | 4 | 21 | 3 | 854 | 0 | 2,364 | 60 | 3 | 0 | false | true | false | false | false | false | low |
36,925,834 | How to draw a bitmap on a GradientDrawable? | <p>This is my non-working code:</p>
<pre><code> GradientDrawable sh = new GradientDrawable(); // create a gradient drawable.
Bitmap cbm = bmp.copy(Bitmap.Config.ARGB_8888, true); // do not use an immutable bitmap.
Canvas cv = new Canvas(cbm); //create a canvas using the mutable bitmap.
sh.set... | This is my non-working code: [CODE] Im sure i am doing something wrong but i dont know what i am doing wrong. I hope this is not yet another case where Java code converts a simple function call into a full blown event with messages to catch and stuff. Help? Basically what i need is a button that has the corners a littl... | android|canvas|bitmap | 2 | 2016-04-28T21:31:54.050Z | 2,016 | 4 | 21 | 3 | 896 | 1 | 475 | 43 | 3 | 1 | true | false | false | false | false | false | low |
36,925,859 | Login failed while adding the functionality of Google+ Login | <p>I have added the functionality of the Google+ login. But when I am clicking on the button of the login it is coming to the else condition block and hence login failed. i can't understand whats wrong I am doing the code? I am attaching the code of the login functionality</p>
<p><strong>MainActivity.java</strong></p>... | I have added the functionality of the Google+ login. But when I am clicking on the button of the login it is coming to the else condition block and hence login failed. i can't understand whats wrong I am doing the code? I am attaching the code of the login functionality MainActivity.java [CODE] CustomVolleyRequest.java... | android|google-play-services|android-volley|google-signin|android-googleapiclient | 0 | 2016-04-28T21:33:34.350Z | 2,016 | 4 | 21 | 3 | 190 | 0 | 351 | 60 | 5 | 3 | true | true | false | false | false | false | zero |
36,925,896 | Retrofit: java.net.ProtocolException: Unknown method 'PATCH' | <p>I'm trying to PATCH data with Retrofit to my server (rest API spring).</p>
<p>I'm using retrofit 1.9.0.</p>
<pre><code>D/Retrofit: ---> HTTP PATCH http://myserver/...
....
D/Retrofit: ---> END HTTP (220-byte body)
D/Retrofit: ---- ERROR http://myserver/...
D/Retrofit: java.net.ProtocolException: Unknown meth... | I'm trying to PATCH data with Retrofit to my server (rest API spring). I'm using retrofit 1.9.0. [CODE] I don't know how to solve that. Any thoughts ? | java|android|retrofit | 0 | 2016-04-28T21:35:31.577Z | 2,016 | 4 | 21 | 3 | 739 | 1 | 150 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
36,926,101 | Android custom menu icon not showing | <p>I am unable to use my custom icon instead of standard 3 dots menu icon. Here is what I have:</p>
<p>menu_editor.xml</p>
<pre><code><menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemes.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools... | I am unable to use my custom icon instead of standard 3 dots menu icon. Here is what I have: menu_editor.xml [CODE] EditorActivity.java [CODE] Despite this I am still getting 3 dots icon with "Delete" position in its list. Why isn't the ic_action_delete icon showing? It is in the Assets. I am using Nexus 5 API 19 emula... | android|menu|icons|menuitem | 1 | 2016-04-28T21:49:44.393Z | 2,016 | 4 | 21 | 3 | 125 | 1 | 324 | 36 | 4 | 2 | true | false | false | false | false | false | low |
36,926,329 | libgdx Anti-Aliasing, textures | <p>Im trying to draw simple (really high resolution: 3333x5829, around 3 times bigger than the desktop launchers width and height) texture to the entire screen. The problem is lines are so badly rendered in desktop launcher. Is there any solution to fix it for the desktop launcher? Here is the render function and the o... | Im trying to draw simple (really high resolution: 3333x5829, around 3 times bigger than the desktop launchers width and height) texture to the entire screen. The problem is lines are so badly rendered in desktop launcher. Is there any solution to fix it for the desktop launcher? Here is the render function and the outp... | android|libgdx | 1 | 2016-04-28T22:07:14.683Z | 2,016 | 4 | 22 | 3 | 354 | 0 | 459 | 30 | 2 | 1 | true | true | false | false | false | false | low |
36,926,330 | android button onClick not transitioning to new activity | <p>So I am very new to Android development and this may be a simple question where I am missing a simple thing. I have a class where I have a button and I am trying to click a button and transition to another activity. </p>
<pre><code>public class ContentProfile extends AppCompatActivity {
@Override
protecte... | So I am very new to Android development and this may be a simple question where I am missing a simple thing. I have a class where I have a button and I am trying to click a button and transition to another activity. [CODE] I am trying to open up the ContentSetting class. The XML for ContentProfile is: [CODE] And the Co... | android|onclick|buttonclick | 2 | 2016-04-28T22:07:16.720Z | 2,016 | 4 | 22 | 3 | 139 | 2 | 690 | 56 | 3 | 4 | true | false | false | false | false | false | low |
36,926,345 | Android: how do I fix method invocation error on viewflipper? | <p>I have a <code>UI</code> with multiple views that show sets of buttons to the user. I use a <code>viewflipper</code> to manage flipping back and forth between the button sets. Recently a new error message in Android Studio showed up: </p>
<blockquote>
<p>"Method invocation 'viewflipper.getDisplayedChild()' may... | I have a UI with multiple views that show sets of buttons to the user. I use a viewflipper to manage flipping back and forth between the button sets. Recently a new error message in Android Studio showed up: "Method invocation 'viewflipper.getDisplayedChild()' may produce 'java.lang.NullPointerException'..." The error ... | android|views|android-viewflipper | 3 | 2016-04-28T22:08:47.927Z | 2,016 | 4 | 22 | 3 | 162 | 0 | 649 | 61 | 3 | 2 | true | true | false | false | false | false | low |
36,926,368 | Error inflating Facebook Login Button. | <p>I am learning fragments and I am by using FB Login within a fragment. But I keep getting an exception Error inflating class com.facebook.login.widget.LoginButton</p>
<p>Error:
Caused by: android.view.InflateException: Binary XML file line #12: Binary XML file line #6: Binary XML file line #6: Error inflating class... | I am learning fragments and I am by using FB Login within a fragment. But I keep getting an exception Error inflating class com.facebook.login.widget.LoginButton Error: Caused by: android.view.InflateException: Binary XML file line #12: Binary XML file line #6: Binary XML file line #6: Error inflating class com.faceboo... | java|android|xml|facebook|android-fragments | 0 | 2016-04-28T22:11:07.600Z | 2,016 | 4 | 22 | 3 | 548 | 1 | 462 | 38 | 5 | 4 | true | false | false | false | false | false | zero |
36,926,385 | Android - Trying to call parent method from fragment | <p>I'm having trouble calling a parent function from a list adapter.
Essentially this is a button that will reload the list again, after performing some DB stuff.</p>
<p>My list adapter is as follows:</p>
<p><strong>LIST ADAPTER</strong></p>
<pre><code>public class LazyAdapterFragmentCheckInList extends BaseAdapter ... | I'm having trouble calling a parent function from a list adapter. Essentially this is a button that will reload the list again, after performing some DB stuff. My list adapter is as follows: LIST ADAPTER [CODE] //This is what want to call but getting error "not in enclosing class" [CODE] This list adapter is called fro... | android|listadapter | 3 | 2016-04-28T22:12:59.973Z | 2,016 | 4 | 22 | 3 | 68 | 1 | 486 | 52 | 2 | 3 | true | false | false | false | false | false | low |
36,926,560 | Android - passing array through onClick | <p>As part of my attempt to create a memory game, I have placed 12 image buttons on my layout with id names imageButton1...imageButton12. I wrote an algrorithm to create an array called cards[12] with random values to represent which card (card1..card6) is behind each imageButton, so for example if cards[5]=4 then the ... | As part of my attempt to create a memory game, I have placed 12 image buttons on my layout with id names imageButton1...imageButton12. I wrote an algrorithm to create an array called cards[12] with random values to represent which card (card1..card6) is behind each imageButton, so for example if cards[5]=4 then the car... | android | 0 | 2016-04-28T22:28:43.807Z | 2,016 | 4 | 22 | 3 | 189 | 2 | 936 | 39 | 1 | 2 | true | false | false | false | false | false | zero |
36,926,610 | Access EditText Preference dialog box | <p>I'm confused on where I should I place this code using sharedPreferences. I'm trying to find out how the dialog box gets created. I want to access the EditTextPreference dialog box and once the user inputs their name I want to save it to a file using this code below</p>
<pre><code>SharedPreferences mySharedPreferen... | I'm confused on where I should I place this code using sharedPreferences. I'm trying to find out how the dialog box gets created. I want to access the EditTextPreference dialog box and once the user inputs their name I want to save it to a file using this code below [CODE] Here is my main activity [CODE] Here is my Use... | android|dialog|sharedpreferences|edittextpreference | 0 | 2016-04-28T22:33:02.227Z | 2,016 | 4 | 22 | 3 | 1,793 | 1 | 478 | 37 | 4 | 6 | true | false | false | false | false | false | zero |
36,926,614 | Application crashes when i start navigation drawer | <p>The application works fine unless i start the navigation drawer activity. Its been three days and i am stuck with this issue. Below is the java code of activity :</p>
<pre><code> package com.example.danyal.p2android;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import and... | The application works fine unless i start the navigation drawer activity. Its been three days and i am stuck with this issue. Below is the java code of activity : [CODE] Navigation drawer Menu [CODE] activity_home_menu.xml [CODE] Application Manifest.xml [CODE] Logcat : [CODE] Anyone please check this :( | java|android|android-studio|navigation|navigation-drawer | 0 | 2016-04-28T22:33:16.180Z | 2,016 | 4 | 22 | 3 | 1,460 | 2 | 305 | 50 | 5 | 5 | true | false | false | false | false | false | zero |
36,926,735 | Android save state of buttons in grid | <p>I have 2 questions:</p>
<p>1st) How can i choose that specific button of the grid, because the way i implemented it always chooses the first button even if i click on another button.</p>
<p>2nd) After implemeting poiint "1" I would like to show the available products to the user that would be shown with a green ba... | I have 2 questions: 1st) How can i choose that specific button of the grid, because the way i implemented it always chooses the first button even if i click on another button. 2nd) After implemeting poiint "1" I would like to show the available products to the user that would be shown with a green background color. If ... | android|button|grid|savestate | 1 | 2016-04-28T22:45:58.617Z | 2,016 | 4 | 22 | 3 | 204 | 1 | 969 | 37 | 4 | 2 | true | false | false | false | false | false | low |
36,926,758 | Hide marker when my location get on it and show it again when i leave | <p>I put many markers in the map and already have my current location service provided so just want to hide the marker when my current location get on it and show it again when i leave , please be specific when you reply because I'm beginner "using Android Studio 1.5.1"</p>
<p>and this is my code which in MapsActivity... | I put many markers in the map and already have my current location service provided so just want to hide the marker when my current location get on it and show it again when i leave , please be specific when you reply because I'm beginner "using Android Studio 1.5.1" and this is my code which in MapsActivity.java [CODE... | android|google-maps|google-maps-android-api-2 | 0 | 2016-04-28T22:48:05.900Z | 2,016 | 4 | 22 | 3 | 355 | 2 | 321 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
36,926,823 | Escaping colon character in Android selinux | <p>I'm trying to create a custom selinux policy for my AOSP build wherein untrusted apps can write to <code>/sys/class/leds/led:flash_torch/brightness</code> thereby controlling the flashlight.</p>
<p>To do this, I edited the following files in <code>external/sepolicy</code></p>
<h2><strong>domain.te</strong></h2>
<... | I'm trying to create a custom selinux policy for my AOSP build wherein untrusted apps can write to /sys/class/leds/led:flash_torch/brightness thereby controlling the flashlight. To do this, I edited the following files in external/sepolicy domain.te [CODE] file.te [CODE] untrusted_app.te [CODE] Now, the final piece of ... | android|linux|android-source|selinux | 2 | 2016-04-28T22:54:41.103Z | 2,016 | 4 | 22 | 3 | 918 | 1 | 813 | 43 | 4 | 5 | true | false | false | false | false | false | low |
36,926,897 | Javascript setTimeout works on desktop, not on android? | <p>I have a function that plays an different audio file at random every n seconds (based on input from a web page) when the user hits start. As you would expect, it stops when they hit stop. </p>
<p>It works fantastic on my desktop (using chrome), but I've tried it on two different android devices (note 4 and note 8)... | I have a function that plays an different audio file at random every n seconds (based on input from a web page) when the user hits start. As you would expect, it stops when they hit stop. It works fantastic on my desktop (using chrome), but I've tried it on two different android devices (note 4 and note 8) in chrome bu... | javascript|android|google-chrome|settimeout | 2 | 2016-04-28T23:02:07.823Z | 2,016 | 4 | 23 | 3 | 1,100 | 1 | 879 | 55 | 4 | 1 | true | false | false | false | false | false | low |
36,927,016 | Expandable Search in Android | <p>Duplicate of this closed question: <a href="https://stackoverflow.com/questions/29149268/how-to-implement-search-bar-like-gmail-app-in-android">How to implement Search Bar like gmail app in android?</a></p>
<p>I've been trying to implement expandable search that is displayed and implemented in the current YouTube a... | Duplicate of this closed question: How to implement Search Bar like gmail app in android? I've been trying to implement expandable search that is displayed and implemented in the current YouTube and Photos Android application among others but I have been unable to figure it out. I only get something like this picture w... | android|android-search | 3 | 2016-04-28T23:15:07.777Z | 2,016 | 4 | 23 | 3 | 3,757 | 0 | 657 | 28 | 2 | 3 | true | true | true | false | false | false | low |
36,927,061 | Gradle could not find method buildToolsVersion() for arguments [23.0.2], but the Build Tools versions actually exists | <p>I'm getting a strange error when I try to build my Android app using gradle.</p>
<p>I get this error when I try to run <code>gradle build</code>:</p>
<pre><code>Could not find method buildToolsVersion() for arguments [23.0.2] on root project 'latest'.
</code></pre>
<p>However, I checked my android SDK folder to s... | I'm getting a strange error when I try to build my Android app using gradle. I get this error when I try to run gradle build : [CODE] However, I checked my android SDK folder to see if this version was actually missing or not. In other words, the results of issuing ls $ANDROID_HOME/build-tools/ is this: [CODE] As you c... | android|gradle|android-gradle-plugin | 13 | 2016-04-28T23:20:18.047Z | 2,016 | 4 | 23 | 3 | 6,467 | 2 | 459 | 117 | 3 | 4 | true | false | true | false | true | false | medium |
36,927,267 | Storing and Retrieving images from Azure Blob Storage + SQL | <p>i've asked this question other day:
<a href="https://stackoverflow.com/questions/36901226/save-base64-image-to-mobile-services-sql-or-blob-storage">Save base64 image to mobile services SQL or Blob Storage?</a></p>
<p>And i've decided to use Blob Storage to store the pictures of my application. Searching the web i'v... | i've asked this question other day: Save base64 image to mobile services SQL or Blob Storage? And i've decided to use Blob Storage to store the pictures of my application. Searching the web i've seen many tutorials on how to store the image, but not how to retrieve. Be cause of these tutorials i've so many questions, s... | android|azure|ionic-framework|azure-mobile-services|azure-blob-storage | 0 | 2016-04-28T23:45:14.443Z | 2,016 | 4 | 23 | 3 | 654 | 1 | 1,355 | 59 | 5 | 0 | false | false | false | false | false | false | zero |
36,927,299 | Converting byte array to bitmap gives bitmap=null in java | <p>I am trying to do something very simple that has ended up not so simple. I have a bitmap image and I have to convert it to bytes to send over a socket. The byte array sends over correctly ( I have checked), but when I convert back to a bitmap, I get bitmap=null results. I believe my error is in how I am converting m... | I am trying to do something very simple that has ended up not so simple. I have a bitmap image and I have to convert it to bytes to send over a socket. The byte array sends over correctly ( I have checked), but when I convert back to a bitmap, I get bitmap=null results. I believe my error is in how I am converting my o... | java|android|bitmap|bytearray | 1 | 2016-04-28T23:48:46.243Z | 2,016 | 4 | 23 | 3 | 2,855 | 1 | 671 | 57 | 4 | 1 | true | false | true | false | false | false | low |
36,927,317 | near "?": syntax error (code 1): , while compiling: UPDATE and DELETE | <pre><code>//deleting query
public void deleteFromQuestion(int questionId) {
SQLiteDatabase db = this.getWritableDatabase();
db.execSQL("delete from Questions where question_id =" + questionId);
}
//updating query
public void updateQuestion(String question, String answerOne, String answerTwo, String answerThr... | [CODE] and this is the code of update and delete [CODE] it is supposed to delete with the question id and update with it also these are buttons when click it , it will delete or update ...... this error, what's wrong with this code?? | android|sqlite | -3 | 2016-04-28T23:52:15.867Z | 2,016 | 4 | 23 | 3 | 678 | 1 | 233 | 69 | 2 | 2 | true | false | false | false | false | true | negative |
36,927,496 | Can't write any characteristic using ANDROID BLE api | <p>In my app I would like to write a few characteristics to a BLE device (iBeacon). The problem is that after I call <code>gatt.executeReliableWrite()</code> the beacon disconnects from my smartphone and <code>onConnectionStateChange</code> callback is called - <code>onReliableWriteCompleted</code> method is never call... | In my app I would like to write a few characteristics to a BLE device (iBeacon). The problem is that after I call gatt.executeReliableWrite() the beacon disconnects from my smartphone and onConnectionStateChange callback is called - onReliableWriteCompleted method is never called. Of course the characteristic is not wr... | android|bluetooth-lowenergy|ibeacon|android-bluetooth|ibeacon-android | 3 | 2016-04-29T00:14:13.850Z | 2,016 | 4 | 0 | 4 | 463 | 0 | 553 | 52 | 5 | 2 | true | true | false | false | false | false | low |
36,927,729 | How to send a condition to a method using lambda expression so that it is not yet evaluated? | <p>I am trying send a condition statement (that has not been evaluated yet) as an argument to a method. I understand that in <strong>java8</strong>, the <strong>lambda expression</strong> is the way to do it (effectively putting the condition inside a function, and sending the function).</p>
<pre><code>// simple metho... | I am trying send a condition statement (that has not been evaluated yet) as an argument to a method. I understand that in java8 , the lambda expression is the way to do it (effectively putting the condition inside a function, and sending the function). [CODE] [CODE] I have tried many variations of this setup. I get dif... | java|lambda|java-8|android-studio-2.0 | 4 | 2016-04-29T00:43:30.250Z | 2,016 | 4 | 0 | 4 | 1,000 | 1 | 346 | 92 | 4 | 2 | true | false | false | false | false | false | low |
36,927,806 | Cocos2d-x error while compiling LOCAL_SRC_FILES points to a missing file (and folder) Windows | <p>Good evening.</p>
<p>I'm stuck trying to compile a HelloWorld using the cocos2d-x.
I used the following commands:</p>
<ul>
<li><code>cocos compile -p android --android-studio</code></li>
<li><code>cocos compile -p android --android-studio</code></li>
<li><code>cocos compile -p android</code></li>
</ul>
<p>And I a... | Good evening. I'm stuck trying to compile a HelloWorld using the cocos2d-x. I used the following commands: cocos compile -p android --android-studio cocos compile -p android --android-studio cocos compile -p android And I always had the same answer [CODE] I found some pages here in StackOverFlow however none of them he... | android|android-ndk|cocos2d-android | 5 | 2016-04-29T00:52:22.587Z | 2,016 | 4 | 0 | 4 | 5,342 | 2 | 471 | 93 | 3 | 1 | true | false | true | false | false | false | low |
36,927,925 | camera.takepicture not working | <p>I am trying to secretly click photos of someone. I am getting front facing camera, and camera object. But, when I try to click takepicture, my app crashes.</p>
<pre><code>package com.example.xx.xx;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.hardware.Camera;
import android... | I am trying to secretly click photos of someone. I am getting front facing camera, and camera object. But, when I try to click takepicture, my app crashes. [CODE] Output I am getting here is: [CODE] | android|android-camera | 1 | 2016-04-29T01:06:11.063Z | 2,016 | 4 | 1 | 4 | 2,159 | 3 | 198 | 30 | 2 | 2 | true | false | false | false | false | false | low |
36,927,968 | i try to avoid saving empty records in data base with this code but it also save empty records | <pre><code>saveBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
questionStr = String.valueOf(questionET.getText());
answerOneStr = String.valueOf(ansOneET.getText());
answerTwoStr = String.valueOf(ansTwoET.getText());
... | [CODE] this is the save button code ...i tried to change null to empty "" but there is no changes | android | 3 | 2016-04-29T01:10:41.933Z | 2,016 | 4 | 1 | 4 | 53 | 3 | 97 | 94 | 1 | 1 | true | false | false | false | false | false | low |
36,928,027 | Xamarin Android Source - Build Error | <p>Xamarin have finally <a href="http://open.xamarin.com" rel="nofollow">open sourced</a> Android, iOS and Forms.</p>
<p>I have raised a <a href="http://forums.xamarin.com/discussion/65656/xamarin-android-source-build-error?new=1" rel="nofollow">forum issue</a> regarding 2 Error(s) that I'm receiving when executing th... | Xamarin have finally open sourced Android, iOS and Forms. I have raised a forum issue regarding 2 Error(s) that I'm receiving when executing the make command after make prepare successfully installs all of the dependencies. I'm aware that the Xamarin team is now using SO for support so I'm hoping that someone from the ... | android|xamarin|android-ndk|xamarin.android | 2 | 2016-04-29T01:19:08.167Z | 2,016 | 4 | 1 | 4 | 111 | 1 | 1,113 | 36 | 4 | 0 | false | false | false | false | false | false | low |
36,928,128 | Compiling Cocos2d-x project on both Linux and OSX | <p>I originally started developing a game on Linux and I successfully had it running on an Android device. I then switched to developing on a Mac, and now I am getting an error when compiling. It is likely caused by absolute file paths that were on my Linux machine.</p>
<p>Here are the errors: (slightly edited for cla... | I originally started developing a game on Linux and I successfully had it running on an Android device. I then switched to developing on a Mac, and now I am getting an error when compiling. It is likely caused by absolute file paths that were on my Linux machine. Here are the errors: (slightly edited for clarity) [CODE... | android|macos|cocos2d-x-3.0 | 0 | 2016-04-29T01:33:52.310Z | 2,016 | 4 | 1 | 4 | 207 | 1 | 802 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
36,928,239 | I don't know how to verify if the phone number already exist. I'm just a newbie and i don't know what to do now | <p>I an newbie to android studio and sq lite database, i am developing a login page for an application like the login in gmail. Here i am taking user phone number as primary key.when the user enter his phone number it will redirect to password screen if already exist. I don't know how to checked whether the phone numbe... | I an newbie to android studio and sq lite database, i am developing a login page for an application like the login in gmail. Here i am taking user phone number as primary key.when the user enter his phone number it will redirect to password screen if already exist. I don't know how to checked whether the phone number i... | java|android|android-sqlite | 0 | 2016-04-29T01:48:00.727Z | 2,016 | 4 | 1 | 4 | 689 | 3 | 430 | 111 | 3 | 3 | true | false | false | false | false | false | zero |
36,928,307 | android.os.TransactionTooLargeException "viewPager.setAdapter(adapter)" | <p>This error occurred when I opened an activity from a fragment. The new activity contain a <code>viewPager</code> and I think the error is caused by the new activity because when I block a section of code <code>(viewPager.setAdapter(adapter))</code>,the error disappears and I can see the new activity. So I think the ... | This error occurred when I opened an activity from a fragment. The new activity contain a viewPager and I think the error is caused by the new activity because when I block a section of code (viewPager.setAdapter(adapter)) ,the error disappears and I can see the new activity. So I think the intent is causing no problem... | android|android-fragments|android-intent | 1 | 2016-04-29T01:56:12.007Z | 2,016 | 4 | 1 | 4 | 1,231 | 3 | 447 | 71 | 3 | 4 | true | false | false | false | false | false | low |
36,928,320 | Marshmallow throws FileNotFoundException, but older version doesn't | <p>I have been testing my app all week long on my Galaxy Tab 4 without any issues, but when I wanted to test my app on my Galaxy S7, it throws a <code>FileNotFoundException</code>. At first I thought it had to do with the runtime permissions, but <code>INTERNET</code> isn't listed as dangerous, so that isn't the proble... | I have been testing my app all week long on my Galaxy Tab 4 without any issues, but when I wanted to test my app on my Galaxy S7, it throws a FileNotFoundException . At first I thought it had to do with the runtime permissions, but INTERNET isn't listed as dangerous, so that isn't the problem. I have a custom class cal... | php|android|android-asynctask|filenotfoundexception | 0 | 2016-04-29T01:58:09.573Z | 2,016 | 4 | 1 | 4 | 110 | 1 | 1,012 | 67 | 4 | 2 | true | false | false | false | false | false | zero |
36,928,421 | RecyclerView onSwiped is not working as planned | <p>While putting in a custom view from this <a href="https://stackoverflow.com/questions/30820806/adding-a-colored-background-with-text-icon-under-swiped-row-when-using-androids" title="here">here</a>, I noticed a few problems.</p>
<ul>
<li>As the item does not clear, when moved out of the screen, it leaves a gaping h... | While putting in a custom view from this here , I noticed a few problems. As the item does not clear, when moved out of the screen, it leaves a gaping hole in its stead. When swiped but not completely, the alarm icon is still visible on screen. Here is a screenshot of my woes: ItemTouchHelperCallback: [CODE] How would ... | android|android-recyclerview | 0 | 2016-04-29T02:11:31.270Z | 2,016 | 4 | 2 | 4 | 657 | 1 | 834 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
36,928,584 | Android java.lang.RuntimeException: native typeface cannot be made | <p>I am getting the following exception when trying to set a custom font to a button: <code>java.lang.RuntimeException: native typeface cannot be made</code>
I already looked at similar questions but none of their solutions worked.</p>
<p>My font is inside src/main and the file structure seems to be fine.</p>
<p>Her... | I am getting the following exception when trying to set a custom font to a button: java.lang.RuntimeException: native typeface cannot be made I already looked at similar questions but none of their solutions worked. My font is inside src/main and the file structure seems to be fine. Here is the file structure: And here... | android|android-fonts | 0 | 2016-04-29T02:31:26.540Z | 2,016 | 4 | 2 | 4 | 354 | 1 | 568 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
36,928,687 | How to Fix (Unable to start activity java.lang.NullPointerException ?) | <p>Everything was working fine till yesterday, and that out of nowhere appeared following problem. When Clicked ImageView , this image should be appear/display likely the detail of the image. But, in case when clicked ImageView the results is <strong>Unfortunately, App has stopped</strong>: </p>
<p>Display Images cod... | Everything was working fine till yesterday, and that out of nowhere appeared following problem. When Clicked ImageView , this image should be appear/display likely the detail of the image. But, in case when clicked ImageView the results is Unfortunately, App has stopped : Display Images code: [CODE] Error which is retu... | java|android | -1 | 2016-04-29T02:43:05.033Z | 2,016 | 4 | 2 | 4 | 101 | 1 | 458 | 70 | 2 | 3 | true | false | false | false | false | true | negative |
36,928,692 | SeekBar won't run when media player are playing on xamarin android | <p>The SeekBar widget is an interactive slider that allows the user to select one value from a range of values. As the user moves the slider left or right, the value of the SeekBar will change</p>
<pre class="lang-cs prettyprint-override"><code>public int getProgressPercentage(int currentDuration, int totalDuration)
{... | The SeekBar widget is an interactive slider that allows the user to select one value from a range of values. As the user moves the slider left or right, the value of the SeekBar will change [CODE] [CODE] seekBar.SetOnSeekBarChangeListener (this); has some invalid argument. SeekBar won't run when media player are playin... | xamarin|xamarin.android | 0 | 2016-04-29T02:43:25.560Z | 2,016 | 4 | 2 | 4 | 491 | 1 | 322 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
36,928,759 | How to clear memory from pictures of previous layouts? How to clean memory when go to different layout/activity? | <p>My app consists from 4 layout files, each layout uses a different image as background. I manage to load layout 1 and 2, but after I go to layout 3 I get error "Caused by: java.lang.OutOfMemoryError"</p>
<p>I suspect it's because the layout 1 and layout 2 is still in the memory. Any way is there a way to clean memor... | My app consists from 4 layout files, each layout uses a different image as background. I manage to load layout 1 and 2, but after I go to layout 3 I get error "Caused by: java.lang.OutOfMemoryError" I suspect it's because the layout 1 and layout 2 is still in the memory. Any way is there a way to clean memory everytime... | java|android|android-layout|android-studio|out-of-memory | 1 | 2016-04-29T02:51:34.443Z | 2,016 | 4 | 2 | 4 | 2,649 | 1 | 523 | 112 | 5 | 1 | true | false | true | false | false | false | low |
36,928,763 | Text-to-speech from recognition result | <p>I am using the TextToSpeech class in order to make the system speak.
Firstly I speak something through the voice recognizer and set the text to a textView. Next I want the system to speak what I've spoken earlier.
I find that the first step is working successfully but I don't hear anything after I speak.</p>
<p>My... | I am using the TextToSpeech class in order to make the system speak. Firstly I speak something through the voice recognizer and set the text to a textView. Next I want the system to speak what I've spoken earlier. I find that the first step is working successfully but I don't hear anything after I speak. My code is as ... | android|speech-recognition|text-to-speech|speech-to-text | 0 | 2016-04-29T02:52:23.803Z | 2,016 | 4 | 2 | 4 | 474 | 1 | 335 | 38 | 4 | 1 | true | false | false | false | false | false | zero |
36,928,796 | Android VpnService to capture packets won't send packet | <p>I want to the new android (4.0) VpnService interface to implement simple packet capture and analysis. I have successfully capture the packet(IP packet) from the filedescriptor, but because I have no server, I want to send the packet to its original destination directly. I try to get IP and port from the packet, whic... | I want to the new android (4.0) VpnService interface to implement simple packet capture and analysis. I have successfully capture the packet(IP packet) from the filedescriptor, but because I have no server, I want to send the packet to its original destination directly. I try to get IP and port from the packet, which a... | android|sockets|packet-capture | 1 | 2016-04-29T02:56:23.773Z | 2,016 | 4 | 2 | 4 | 337 | 0 | 425 | 55 | 3 | 1 | true | true | false | false | false | false | low |
36,928,846 | Android ListView highlighting is not working with BaseAdapter | <p>I have a trouble while creating a <code>ListView</code> with choice mode of <code>CHOICE_MODE_MULTIPLE_MODAL</code>. I added <code>android:background="?android:attr/activatedBackgroundIndicator"</code> in my list item layout. But my problem is <strong>the list items not getting highlighted on selection. but action m... | I have a trouble while creating a ListView with choice mode of CHOICE_MODE_MULTIPLE_MODAL . I added android:background="?android:attr/activatedBackgroundIndicator" in my list item layout. But my problem is the list items not getting highlighted on selection. but action mode shows the number of items selected. here is m... | java|android|listview|baseadapter | 0 | 2016-04-29T03:02:22.170Z | 2,016 | 4 | 3 | 4 | 193 | 0 | 615 | 61 | 4 | 3 | true | true | false | false | false | false | zero |
36,928,859 | Create a border on an Android TableLayout similar to a HTML border? | <p><strong>Edit: I have seen this question <a href="https://stackoverflow.com/questions/2108456/how-can-i-create-a-table-with-borders-in-android">How can I create a table with borders in Android?</a> and in fact the top answer is the solution I am using but has the problem in question.</strong></p>
<p>I have a <code>T... | Edit: I have seen this question How can I create a table with borders in Android? and in fact the top answer is the solution I am using but has the problem in question. I have a TableLayout which I populate with lots of data dynamically. It is enclosed in a ScrollView I wish to style it with a border so it looks like a... | android|xml|border|android-tablelayout | 1 | 2016-04-29T03:03:12.153Z | 2,016 | 4 | 3 | 4 | 4,651 | 1 | 809 | 67 | 4 | 3 | true | 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.