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,768,904 | Image orientation changed while uploading to amazon server | <p>I am uploading an <code>image</code> to the <code>amazon server</code>. Everything works well but only on few devices the <code>orientation</code> changes to <code>landscape</code>. At the time of uploading the orientation changes on a few Samsung devices and tablets. I have tried to fix it but nothing seems to be ... | I am uploading an image to the amazon server . Everything works well but only on few devices the orientation changes to landscape . At the time of uploading the orientation changes on a few Samsung devices and tablets. I have tried to fix it but nothing seems to be working. Below mentioned is my code. [CODE] My AsyncTa... | java|android|amazon-s3|universal-image-loader | 2 | 2016-04-21T11:57:32.413Z | 2,016 | 4 | 11 | 3 | 469 | 0 | 364 | 58 | 4 | 1 | true | true | false | false | false | false | low |
36,768,932 | Android Studio: How can i change image of ImageView from other layout programmatically? | <p>My ImageView is located in mylist.xml (not in mainActivity.xml) and I want the image to be change in MainActivity.java...</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="... | My ImageView is located in mylist.xml (not in mainActivity.xml) and I want the image to be change in MainActivity.java... [CODE] Here is my code in MainActivity.java, I am using bitmap to get a photo from contacts and display it to ImageView. [CODE] | java|android|xml | 0 | 2016-04-21T11:59:20.923Z | 2,016 | 4 | 11 | 3 | 186 | 0 | 249 | 87 | 3 | 2 | true | true | false | false | false | false | zero |
36,768,955 | Shared preferences, where do they go? | <p>I know how shared preferences work but I just dont know where to insert the code in the code below to save the users data.I have a login , background task that does all the work and registration .I want the app to open to a splash page when user logged in.Cant figure it out from other answers</p>
<p>Login.java</p>
... | I know how shared preferences work but I just dont know where to insert the code in the code below to save the users data.I have a login , background task that does all the work and registration .I want the app to open to a splash page when user logged in.Cant figure it out from other answers Login.java [CODE] Register... | android|preferences|shared | 1 | 2016-04-21T12:00:26.070Z | 2,016 | 4 | 12 | 3 | 441 | 4 | 402 | 37 | 3 | 4 | true | false | false | false | false | false | low |
36,768,977 | android spinner not working in Bottom Sheet | <p>Below is my MainActivity.</p>
<pre><code> public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private BottomSheetBehavior bottom_sheet_checkbox;
private Button btnCity;
private Toolbar toolbar;
private Spinner sprCity;
private ArrayList<SprModel> alCity... | Below is my MainActivity. [CODE] here is my activity_main.xml [CODE] here is content_main.xml [CODE] Here spinner is defined. [CODE] I have implemented Design support library for Bottom sheet in which I want to implement spinner on custom layout. I am using arraylist to load spinner and spinner load sucessfully but whe... | android|spinner|bottom-sheet | 1 | 2016-04-21T12:01:20.650Z | 2,016 | 4 | 12 | 3 | 2,099 | 1 | 454 | 43 | 3 | 4 | true | false | false | false | false | false | low |
36,769,062 | Android - Should pass resolved color instead of resource id here: `getResources().getColor(R.attr.colorPrimary)` | <p>I am following this tutorial <a href="http://blog.grafixartist.com/toolbar-animation-with-android-design-support-library/" rel="nofollow noreferrer">Flexibal Space with Image</a></p>
<p>For design pattern for a toolbar called <strong>Flexibal Space with Image</strong> in android. While using <code>Palette</code> he... | I am following this tutorial Flexibal Space with Image For design pattern for a toolbar called Flexibal Space with Image in android. While using Palette here I am stuck in following error in java file causing application to crash. [CODE] Follwing is my java file YoutubeActivity.java [CODE] And xml file activity_youtube... | android|android-toolbar|android-support-design|android-appcompat|android-palette | 1 | 2016-04-21T12:04:30.607Z | 2,016 | 4 | 12 | 3 | 6,133 | 5 | 503 | 112 | 5 | 6 | true | false | true | false | false | false | low |
36,769,072 | Android GCM messages repeated | <p>I am working on a chat application and trying to use Google cloud messaging
following this tutorial:</p>
<blockquote>
<p><a href="http://hmkcode.com/android-google-cloud-messaging-tutorial/" rel="nofollow">http://hmkcode.com/android-google-cloud-messaging-tutorial/</a></p>
</blockquote>
<p>It works fine but the... | I am working on a chat application and trying to use Google cloud messaging following this tutorial: http://hmkcode.com/android-google-cloud-messaging-tutorial/ It works fine but the notifications are delivered more than once, ie: if I send "hello" there will be like six notifications saying "hello" !! The minimum is 2... | android|google-cloud-messaging | 1 | 2016-04-21T12:05:02.030Z | 2,016 | 4 | 12 | 3 | 166 | 2 | 411 | 29 | 2 | 2 | true | false | false | false | false | false | low |
36,769,126 | Nodes count always zero when checked using capability API | <p>When I try to share data between android wear emulator(app installed : wear module) and android device (app installed : mobile module), I am checking the number of nodes set using capabilityAPI before sending a message and the result always seem to be 0. My device and wear emulator are always connected.In fact, I am... | When I try to share data between android wear emulator(app installed : wear module) and android device (app installed : mobile module), I am checking the number of nodes set using capabilityAPI before sending a message and the result always seem to be 0. My device and wear emulator are always connected.In fact, I am ab... | android|wear-os|android-wear-data-api | 1 | 2016-04-21T12:07:30.637Z | 2,016 | 4 | 12 | 3 | 83 | 0 | 569 | 57 | 3 | 1 | true | true | false | false | false | false | low |
36,769,163 | listView recycles view when scrolling | <p>I am changing the background color of a rowView inside my CustomAdapter, when I scroll down the list and back up the view gets refreshed and the background disappears, I know it is because the listView recycling mechanism but I can't make it stop.</p>
<p>Here's my getView function:</p>
<pre><code> @Override
pu... | I am changing the background color of a rowView inside my CustomAdapter, when I scroll down the list and back up the view gets refreshed and the background disappears, I know it is because the listView recycling mechanism but I can't make it stop. Here's my getView function: [CODE] What I wanted to do is: store inside ... | android | 0 | 2016-04-21T12:09:21.133Z | 2,016 | 4 | 12 | 3 | 47 | 2 | 475 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
36,769,273 | addTextChangedListener cannot be resolved | <p>I'm having an error trying to create an app that allows for textboxes to be added and taken away from a screen. The error that I am having involves the addTextChangedListener method as Android Studio is saying that it cannot resolve the method. I know that this method must be placed within the onCreate method but am... | I'm having an error trying to create an app that allows for textboxes to be added and taken away from a screen. The error that I am having involves the addTextChangedListener method as Android Studio is saying that it cannot resolve the method. I know that this method must be placed within the onCreate method but am un... | java|android-studio | 0 | 2016-04-21T12:13:50.403Z | 2,016 | 4 | 12 | 3 | 399 | 1 | 429 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
36,769,314 | Issue with pie and combined charts in Xamarin Forms | <p>In my Xamarin Forms application(for android and ios) I am using xlabs.forms.charting to display 2 different charts.First by default pie chart should appear after clicking on next button in the same screen combined chart should appear.similarly prev button should work.But in my case charts are not appearing properly.... | In my Xamarin Forms application(for android and ios) I am using xlabs.forms.charting to display 2 different charts.First by default pie chart should appear after clicking on next button in the same screen combined chart should appear.similarly prev button should work.But in my case charts are not appearing properly.The... | xamarin.ios|xamarin.android|xamarin.forms | 0 | 2016-04-21T12:15:22.187Z | 2,016 | 4 | 12 | 3 | 281 | 0 | 556 | 51 | 3 | 2 | true | true | false | false | false | false | zero |
36,769,332 | Get updated value from EditText in a ListView | <p>I have a DialogFragment in which there is ListView, each ListItem has three TextViews and one EdiText, EditText allows integer values which can be changed as per the user requirement. So onClick of positive button of dialog I want to send thoes updated Integer value to the server.
While fetching EditText's text it f... | I have a DialogFragment in which there is ListView, each ListItem has three TextViews and one EdiText, EditText allows integer values which can be changed as per the user requirement. So onClick of positive button of dialog I want to send thoes updated Integer value to the server. While fetching EditText's text it fetc... | java|android|listview|android-edittext|baseadapter | 0 | 2016-04-21T12:15:59.790Z | 2,016 | 4 | 12 | 3 | 721 | 2 | 423 | 45 | 5 | 3 | true | false | false | false | false | false | zero |
36,769,370 | Android: ANR when call getExternalFilesDir(null) | <p>Recently I've started to get ANR errors when call <code>getExternalFilesDir(null)</code> from my activity code. This code was working earlier but now, maybe after updating gradle build tools, there is such problem. Cleaning the project and rebuild don't help. Did anyone get this problem also? Thanks in advance.</p>
... | Recently I've started to get ANR errors when call getExternalFilesDir(null) from my activity code. This code was working earlier but now, maybe after updating gradle build tools, there is such problem. Cleaning the project and rebuild don't help. Did anyone get this problem also? Thanks in advance. The sample of code. ... | android|android-activity|android-anr-dialog | 7 | 2016-04-21T12:17:50.563Z | 2,016 | 4 | 12 | 3 | 679 | 1 | 417 | 48 | 3 | 1 | true | false | false | false | false | false | medium |
36,769,403 | Is there any way can let greenDAO support android data-binding now? | <p>When you use <a href="https://github.com/greenrobot/greenDAO" rel="nofollow">greenDAO</a> library, you need to use <strong>greendao-generator</strong> to generate relevant POJO and XXXDAO, DAOSession, DAOMaster class. Just like this POJO class here: <a href="https://github.com/greenrobot/greenDAO/blob/master/DaoExam... | When you use greenDAO library, you need to use greendao-generator to generate relevant POJO and XXXDAO, DAOSession, DAOMaster class. Just like this POJO class here: Note.java [CODE] And each time you change your model, this code need to be regenerated. Android data-binding can be used by giving your data objects the ab... | android|greendao|android-databinding|greendao-generator | 1 | 2016-04-21T12:18:52.973Z | 2,016 | 4 | 12 | 3 | 409 | 0 | 980 | 67 | 4 | 3 | true | true | false | false | false | false | low |
36,769,416 | Android TV | How to Center ListRow Items within a parent view (HorizontalGridView) | <p>I'm trying to create a row of action items that sits centered just above the player controls bar in a video player using Leanback. </p>
<p>The action items are a ListRow of image views that are actionable (to represent emoticon reactions). </p>
<p>My problem: I can't get them to position in the center, just like t... | I'm trying to create a row of action items that sits centered just above the player controls bar in a video player using Leanback. The action items are a ListRow of image views that are actionable (to represent emoticon reactions). My problem: I can't get them to position in the center, just like the primary and second... | android|android-layout|android-recyclerview|android-tv|leanback | 1 | 2016-04-21T12:19:14.453Z | 2,016 | 4 | 12 | 3 | 2,735 | 4 | 782 | 82 | 5 | 3 | true | false | true | false | false | false | low |
36,769,461 | Android: Variable has two states | <p>Sorry for the uninformative title, didn't realy know how to describe my problem in a short way. I tried so solve it since 3 hours and I have no idea, what to google for or what else to try.</p>
<p>I have a Recyclerview with views, that intercept the back press event via <code>onKeyPreIme()</code>. This is the View:... | Sorry for the uninformative title, didn't realy know how to describe my problem in a short way. I tried so solve it since 3 hours and I have no idea, what to google for or what else to try. I have a Recyclerview with views, that intercept the back press event via onKeyPreIme() . This is the View: [CODE] Now in the begi... | android|android-recyclerview | 0 | 2016-04-21T12:20:47.087Z | 2,016 | 4 | 12 | 3 | 47 | 0 | 683 | 32 | 2 | 1 | true | true | false | false | false | false | zero |
36,769,642 | Animating view out of parent layout bounds with a CardView | <p>I'm trying to animate my view to a view outside of the parents layout. As told in other questions I would need to use:</p>
<pre><code> android:clipChildren="false"
android:clipToPadding="false"
</code></pre>
<p>Which works perfectly for normal views! However I need to animate a view out of a CardVie... | I'm trying to animate my view to a view outside of the parents layout. As told in other questions I would need to use: [CODE] Which works perfectly for normal views! However I need to animate a view out of a CardView. For some reason when my view is inside a CardView it does not animate out of it, it just stops at the ... | android|animation|android-cardview|clip | 0 | 2016-04-21T12:27:26.133Z | 2,016 | 4 | 12 | 3 | 1,271 | 1 | 769 | 58 | 4 | 3 | true | false | false | false | false | false | zero |
36,769,702 | JsonRequester Library Access Listener from Inside Function | <p>I am playing with the <a href="https://github.com/alirezaafkar/JsonRequester" rel="nofollow">JsonRequester Library</a> that uses volley to get JSON data from URLS.</p>
<p>My question is, how can I return the JSONObject from the onResponse listener from inside the getJson function?</p>
<p>Here is my JsonHelpers Cla... | I am playing with the JsonRequester Library that uses volley to get JSON data from URLS. My question is, how can I return the JSONObject from the onResponse listener from inside the getJson function? Here is my JsonHelpers Class: [CODE] | android|json|listener|android-volley | 1 | 2016-04-21T12:30:05.927Z | 2,016 | 4 | 12 | 3 | 54 | 1 | 236 | 58 | 4 | 1 | true | false | false | false | false | false | low |
36,769,721 | Spannable string with image not working with push notification | <p>I am trying to use spannable string with image on push notification. It is not working. Actually I want to show emoticon on push notification like wattsapp. If I am using simple spannable string it is working. The same spannable string with image is working fine with textview. </p>
<p>For this I have also tried cus... | I am trying to use spannable string with image on push notification. It is not working. Actually I want to show emoticon on push notification like wattsapp. If I am using simple spannable string it is working. The same spannable string with image is working fine with textview. For this I have also tried custom push not... | android|push-notification | 18 | 2016-04-21T12:30:46.357Z | 2,016 | 4 | 12 | 3 | 1,875 | 3 | 461 | 62 | 2 | 3 | true | false | false | false | true | false | medium |
36,769,744 | Tab android content sometime gone or dissapear | <p>I'm working on android tab right now, i was wondering why sometime content of my tab is gone,,by default android initializing and create 2 first tab content, i check by print the log in console, and when i click the third tab it will attach and initialize,, and sometimes when i clicked back in first tab or second ta... | I'm working on android tab right now, i was wondering why sometime content of my tab is gone,,by default android initializing and create 2 first tab content, i check by print the log in console, and when i click the third tab it will attach and initialize,, and sometimes when i clicked back in first tab or second tab, ... | android|tabs | -1 | 2016-04-21T12:31:19.320Z | 2,016 | 4 | 12 | 3 | 206 | 2 | 1,046 | 46 | 2 | 2 | true | false | false | false | false | true | negative |
36,769,811 | Get many cities using Forecast API | <p>I'm trying to develope an app using Forecast API. But this api just allow to get data from only one City by get a latitude and longtitude. This is my code </p>
<pre><code>final double latitude=21.0260;
final double longtitude=105.8471;
String forecastUrl="https://api.forecast.io/forecast/"+apiKey+"/"+latitude+","+l... | I'm trying to develope an app using Forecast API. But this api just allow to get data from only one City by get a latitude and longtitude. This is my code [CODE] .This code will return data from only Hanoi city. how to get data from 2 or more cities by only use this latidude and longtitude? This is my called function b... | android|api | 0 | 2016-04-21T12:34:31.457Z | 2,016 | 4 | 12 | 3 | 45 | 1 | 459 | 34 | 2 | 4 | true | false | false | false | false | false | zero |
36,769,851 | Android Studio - error: package java.awt.geom does not exist | <p>I am migrating an app from Eclipse to Android Studio. when i compile code like:</p>
<pre><code>import java.awt.geom.Area;
</code></pre>
<p>i get </p>
<blockquote>
<p>error: package java.awt.geom does not exist</p>
</blockquote>
<p>build gradle</p>
<pre><code>apply plugin: 'com.android.application'
android {... | I am migrating an app from Eclipse to Android Studio. when i compile code like: [CODE] i get error: package java.awt.geom does not exist build gradle [CODE] Any suggestions as to how to solve this? Is it a gradle issue? Should i include files and use as library? | android|eclipse|android-studio|gradle|android-gradle-plugin | 0 | 2016-04-21T12:36:21.997Z | 2,016 | 4 | 12 | 3 | 5,402 | 1 | 262 | 60 | 5 | 2 | true | false | true | false | false | false | zero |
36,769,890 | Onclick of button in custom notification not working | <p>I have a pause button in my notification, on click of which should go to the broadcast receiver. The following is my code:</p>
<pre><code>NotificationCompat.Builder builder = new NotificationCompat.Builder(WalkTrackingActivity.this);
remoteViews = new RemoteViews(getPackageName(), R.layout.content_user_manual);
rem... | I have a pause button in my notification, on click of which should go to the broadcast receiver. The following is my code: [CODE] I have registered my listner in manifest. Still it is not working. Please help! | android|notifications|android-notifications|remoteview|custom-notification | 2 | 2016-04-21T12:37:48.760Z | 2,016 | 4 | 12 | 3 | 1,033 | 0 | 209 | 52 | 5 | 1 | true | true | false | false | false | false | low |
36,769,923 | Dagger + Retrofit dynamic URL | <p><strong>PROBLEM</strong></p>
<p>I need to call API from domains entered by USER and I need to edit my <code>Retrofit</code> singleton before the call accordingly to the inserted data.</p>
<p>Is there a way to "reset" my singleton, forcing it to recreate?</p>
<p>or </p>
<p>Is there a way to update my <code>baseUr... | PROBLEM I need to call API from domains entered by USER and I need to edit my Retrofit singleton before the call accordingly to the inserted data. Is there a way to "reset" my singleton, forcing it to recreate? or Is there a way to update my baseUrl with my data (maybe in Interceptor?) just before call? CODE Singletons... | android|retrofit|dagger|retrofit2|dagger-2 | 11 | 2016-04-21T12:39:22.253Z | 2,016 | 4 | 12 | 3 | 7,005 | 2 | 472 | 29 | 5 | 2 | true | false | true | false | true | false | medium |
36,770,082 | java.lang.ClassCastException: android.widget.ListView cannot be cast to android.widget.TextView | <p>My ListView cannot be cast to TextView. I am new in android development and i am unable to solve this error. I am using android studio.</p>
<p>Code: </p>
<p>Adapter Code </p>
<pre><code>public class AdapterFriends extends ArrayAdapter {
List list=new ArrayList();
public AdapterFriends(Context context, int resourc... | My ListView cannot be cast to TextView. I am new in android development and i am unable to solve this error. I am using android studio. Code: Adapter Code [CODE] Activity Code [CODE] FriendsListElements Code: [CODE] activity_friends.xml [CODE] [CODE] friends_list.xml [CODE] LOGCAT [CODE] | android|xml|listview|android-studio | 1 | 2016-04-21T12:46:03.810Z | 2,016 | 4 | 12 | 3 | 622 | 0 | 288 | 95 | 4 | 7 | true | true | false | false | false | false | low |
36,770,089 | bluetooth library for latest Android / Cyanogenmod? | <p>I am trying to build some of the bluetooth terminal tools such as hcitool and obexftp for Android with NDK. However, from what I understand, the libbluetooth.so, which was included in several Android implementations of hcitool, hcidump, obexftp no longer works since the bluetooth stack on most recent Android has cha... | I am trying to build some of the bluetooth terminal tools such as hcitool and obexftp for Android with NDK. However, from what I understand, the libbluetooth.so, which was included in several Android implementations of hcitool, hcidump, obexftp no longer works since the bluetooth stack on most recent Android has change... | android|bluetooth|adb|obex|obexftp | 1 | 2016-04-21T12:46:12.697Z | 2,016 | 4 | 12 | 3 | 820 | 1 | 754 | 51 | 5 | 1 | true | false | false | false | false | false | low |
36,770,154 | What does it mean to to set path to jdk8 when running gradle 6,7,8? | <p>I am receiving the following error </p>
<pre><code> Information:Gradle tasks [:omniNotes:assembleDebug]
Warning:Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it wi... | I am receiving the following error [CODE] When running gradle with java 5, 6 or 7, you must set the path to jdk8, either with property retrolambda.jdk or environment variable JAVA8_HOME [CODE] | java|android|gradle | -1 | 2016-04-21T12:48:33.857Z | 2,016 | 4 | 12 | 3 | 987 | 2 | 192 | 67 | 3 | 2 | true | false | false | false | false | true | negative |
36,770,184 | How to use the ObdRawCommand from pires OBD-II Java API to send custom commands | <p>Does anyone know how I can send custom commands using the <a href="https://github.com/pires/obd-java-api/blob/master/src/main/java/com/github/pires/obd/commands/protocol/ObdRawCommand.java" rel="nofollow">ObdRawCommand</a> in pires <code>Java</code> api? I have little to no experience with this api and I have contac... | Does anyone know how I can send custom commands using the ObdRawCommand in pires Java api? I have little to no experience with this api and I have contacted the creator but I haven't gotten any answer yet. I have searched online for some project that uses the ObdRawCommand to send custom commands but I can't find anyth... | java|android|obd-ii | 1 | 2016-04-21T12:49:52.200Z | 2,016 | 4 | 12 | 3 | 505 | 1 | 368 | 79 | 3 | 1 | true | false | false | false | false | false | low |
36,770,218 | How to modify BuildConfig.java on my Android project? | <p>I'm working on an online course and i had these lines of code:</p>
<pre><code>String baseUrl = "http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=7";
String apiKey = "&APPID=" + BuildConfig.OPEN_WEATHER_MAP_API_KEY;
URL url = new URL(baseUrl.concat(apiKey));
</... | I'm working on an online course and i had these lines of code: [CODE] So, the API key apparently had to be set up on the BuildConfig.java file. I tried to do that, by adding this line of code to the BuildConfig.java file: [CODE] The first issue is that the string was saved without quotation marks and wouldn't let me co... | java|android | 8 | 2016-04-21T12:51:57.960Z | 2,016 | 4 | 12 | 3 | 15,581 | 2 | 740 | 53 | 2 | 2 | true | false | true | true | false | false | medium |
36,770,230 | Querying a set of Keys on firebase | <p>I would like to retrieve children on a specific node on my Firebase database.
However I don't want to pull down all of them, I'm only interested in a specific set for which I have the keys.
I know I can accomplish this by just retrieving all of the children and check for their KEYs when they come back, but I expect... | I would like to retrieve children on a specific node on my Firebase database. However I don't want to pull down all of them, I'm only interested in a specific set for which I have the keys. I know I can accomplish this by just retrieving all of the children and check for their KEYs when they come back, but I expect thi... | android|firebase|firebase-realtime-database | 1 | 2016-04-21T12:52:24.693Z | 2,016 | 4 | 12 | 3 | 263 | 0 | 662 | 34 | 3 | 2 | true | true | false | false | false | false | low |
36,770,455 | How to calculate the execution time of HTTP request | <p>I have a function like this, result contains a JSON object.</p>
<pre><code>public void rebuildhar() {
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
List < MyResponse > list_response = new ArrayList < MyResponse > (... | I have a function like this, result contains a JSON object. [CODE] What that I wat obtain is: For each URL(HTTPS) in a JSON array I want test the execution time of the request. Save this data in an arrayList The problem is that tstart is always 0 after it's first run But this solution doesn't work... | java|android|json|http | 0 | 2016-04-21T13:02:20.737Z | 2,016 | 4 | 13 | 3 | 1,236 | 1 | 301 | 51 | 4 | 1 | true | false | false | false | false | false | zero |
36,770,579 | Error while getting facebook profile picture in Android | <p>I am tryging to get the facebook profile image with the code below. I try the link that is in the log it seems fine, but in the getContent() part I get the error. Any ideas about why this is happening?</p>
<p>My code is:</p>
<pre><code> imgUrl = new URL("https://graph.facebook.com/" + facebookID + "/picture?type=l... | I am tryging to get the facebook profile image with the code below. I try the link that is in the log it seems fine, but in the getContent() part I get the error. Any ideas about why this is happening? My code is: [CODE] The error is as below: [CODE] Edit: I updated my code as below, and now getting error as below: [CO... | android|facebook-android-sdk|profile | 0 | 2016-04-21T13:07:07.823Z | 2,016 | 4 | 13 | 3 | 195 | 1 | 345 | 55 | 3 | 4 | true | false | false | false | false | false | zero |
36,770,595 | android studio calculator app | <p>I have been working on a calculator app, the code is running bar the equal button which is not showing any results. I am not sure where I have gone wrong with the code.my calculator is a simple one which is only required to add and subtract. </p>
<p>Layout:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?&g... | I have been working on a calculator app, the code is running bar the equal button which is not showing any results. I am not sure where I have gone wrong with the code.my calculator is a simple one which is only required to add and subtract. Layout: [CODE] Code: [CODE] | android|android-studio | 0 | 2016-04-21T13:07:45.693Z | 2,016 | 4 | 13 | 3 | 436 | 3 | 269 | 29 | 2 | 2 | true | false | false | false | false | false | zero |
36,770,728 | Android Studio: How to conver ImageBitmap to ImageId? | <p>I am trying to display an array of images as bitmap to ListView, can someone help me?</p>
<p>Here is my CustomList.java</p>
<pre><code>public class CustomList extends ArrayAdapter<String>{
private final Activity context;
private final String[] web;
private final Integer[] imageId;
public CustomList(Activity... | I am trying to display an array of images as bitmap to ListView, can someone help me? Here is my CustomList.java [CODE] } And here are some code from mainActivity.java [CODE] all my images are in Bitmap type, I want those to be placed on imageId array to be displayed on Custom ListView | java|android|xml | -1 | 2016-04-21T13:13:22.373Z | 2,016 | 4 | 13 | 3 | 118 | 1 | 286 | 53 | 3 | 2 | true | false | false | false | false | true | negative |
36,770,778 | Android 6 BroadcastReceicer and call service | <p>I developed an app that needs to call the tomtom services at a specific time. For earlier version of the Android 6 I have instantiated an alert and performed the work when it enters BroadcastReceiver.
From version 6 onwards google rejects my app because I can not use the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS and cons... | I developed an app that needs to call the tomtom services at a specific time. For earlier version of the Android 6 I have instantiated an alert and performed the work when it enters BroadcastReceiver. From version 6 onwards google rejects my app because I can not use the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS and consequ... | android|mobile|android-6.0.1-marshmallow | 1 | 2016-04-21T13:15:12.030Z | 2,016 | 4 | 13 | 3 | 47 | 1 | 611 | 44 | 3 | 2 | true | false | false | false | false | false | low |
36,770,850 | How to use EditText onClick method while remaining focused | <p>I have an <code>EditText</code> that has a <code>ListPopupWindow</code> attached to it with recent search queries listed. When a user clicks the <code>EditText</code>, the popup should show, then when the user starts typing, the popup should disappear.</p>
<p>This is mostly working using <code>OnFocusChangeListene... | I have an EditText that has a ListPopupWindow attached to it with recent search queries listed. When a user clicks the EditText , the popup should show, then when the user starts typing, the popup should disappear. This is mostly working using OnFocusChangeListener , OnTextChangedListener , and OnEditorActionListener .... | android|android-edittext | 1 | 2016-04-21T13:18:34.317Z | 2,016 | 4 | 13 | 3 | 272 | 2 | 815 | 58 | 2 | 3 | true | false | false | false | false | false | low |
36,770,906 | Why java.lang.NoClassDefFoundError in same package? | <p>Class A references a Class B. They are in the same package. So A does not import B. And no compile error appears. But when I get A class Object and calling ClassA.getDeclaredMethods, exception happens:</p>
<p>java.lang.NoClassDefFoundError: xxx.xxx.B ?</p>
<p>But when I import Class B's parent interface in A an... | Class A references a Class B. They are in the same package. So A does not import B. And no compile error appears. But when I get A class Object and calling ClassA.getDeclaredMethods, exception happens: java.lang.NoClassDefFoundError: xxx.xxx.B ? But when I import Class B's parent interface in A and change A's method re... | java|android|class|android-gradle-plugin|gradle-dependencies | 1 | 2016-04-21T13:21:05.893Z | 2,016 | 4 | 13 | 3 | 442 | 0 | 647 | 51 | 5 | 2 | true | true | false | false | false | false | low |
36,770,938 | Unable to start activity get a null pointer exception with my code | <p>Hello I'm trying to run a simple Login code in Android. But I get a null pointer exception with my code. </p>
<pre><code>04-21 13:05:58.585 19275-19275/com.example.dell.code E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dell.code/com.examp... | Hello I'm trying to run a simple Login code in Android. But I get a null pointer exception with my code. [CODE] Can you help me please content_main.xml [CODE] MainActivity.xml [CODE] The logcat says that the problem is with the setOnClickListener. I'm not sure what's wrong with it though. LoginActivity.java [CODE] Than... | java|android | 0 | 2016-04-21T13:22:23.807Z | 2,016 | 4 | 13 | 3 | 32 | 0 | 333 | 66 | 2 | 4 | true | true | false | false | false | false | zero |
36,771,002 | allow touch scrolling in case of overflow hidden | <p>I am building a responsive web application, I have applied overflow:hidden to a div since I am handling the scrolling using other div in desktop view. Now I need to enable touch scrolling in devices since the other div is invisible for small screens.</p>
<p>I don't want show scrollbar in devices since I have mutual... | I am building a responsive web application, I have applied overflow:hidden to a div since I am handling the scrolling using other div in desktop view. Now I need to enable touch scrolling in devices since the other div is invisible for small screens. I don't want show scrollbar in devices since I have mutual dependent ... | javascript|android|jquery|html|css | 1 | 2016-04-21T13:24:45.697Z | 2,016 | 4 | 13 | 3 | 2,348 | 1 | 491 | 48 | 5 | 3 | true | false | false | false | false | false | low |
36,771,138 | Intent Extra not equating to its value within if statement | <p>This is my first question posted here so I hope I've explained the issue I am having thoroughly and clearly. Any/all help would be greatly appreciated.</p>
<p>Here are the java files I'm working on:</p>
<p>MainActivity.java</p>
<pre><code>public class MainActivity extends AppCompatActivity {
ImageButton name... | This is my first question posted here so I hope I've explained the issue I am having thoroughly and clearly. Any/all help would be greatly appreciated. Here are the java files I'm working on: MainActivity.java [CODE] SecondActivity.java [CODE] What this is meant to do is as follows: MainActivity displays 3 buttons. The... | java|android | 0 | 2016-04-21T13:29:26.763Z | 2,016 | 4 | 13 | 3 | 42 | 3 | 1,190 | 58 | 2 | 2 | true | false | false | false | false | false | zero |
36,771,150 | Downloading Image from server using universal image loader | <p>In my app I'm downloading Images from server and setting images into view pager.Everything works fine but there is a slight delay(say 8-10 sec on Wifi) in downloading image. The image size ranges from 200kb-800kb. and I have also added a progress bar while downloading is in progress but the progress bar does not sho... | In my app I'm downloading Images from server and setting images into view pager.Everything works fine but there is a slight delay(say 8-10 sec on Wifi) in downloading image. The image size ranges from 200kb-800kb. and I have also added a progress bar while downloading is in progress but the progress bar does not shows ... | android|universal-image-loader | 0 | 2016-04-21T13:29:54.910Z | 2,016 | 4 | 13 | 3 | 351 | 2 | 877 | 58 | 2 | 2 | true | false | false | false | false | false | zero |
36,771,179 | fragment.isVisible() always returns false | <p>I'm trying to set up an overlay fragment that would appear when the button is touched and disappear when the button is clicked again. I'm not using the support library fragment, but the regular kind. So when you click on the button to attach the fragment, it does so, here's the code:</p>
<pre><code>boolean hasNativ... | I'm trying to set up an overlay fragment that would appear when the button is touched and disappear when the button is clicked again. I'm not using the support library fragment, but the regular kind. So when you click on the button to attach the fragment, it does so, here's the code: [CODE] But when I click on the butt... | java|android|android-fragments | 1 | 2016-04-21T13:31:05.573Z | 2,016 | 4 | 13 | 3 | 1,938 | 2 | 824 | 41 | 3 | 2 | true | false | false | false | false | false | low |
36,771,278 | How to add satellite-menu on my project | <p>I'm working with old project at my work, and i don't know how to add satellite-menu <a href="https://github.com/siyamed/android-satellite-menu" rel="nofollow">https://github.com/siyamed/android-satellite-menu</a> , and it's project consist of several projects. So, i'm working in Eclipse, and i have old source code.
... | I'm working with old project at my work, and i don't know how to add satellite-menu https://github.com/siyamed/android-satellite-menu , and it's project consist of several projects. So, i'm working in Eclipse, and i have old source code. I imported all of folders in my projects, and everything works good, exclude 1 fol... | java|android|eclipse|jar|dependencies | -1 | 2016-04-21T13:35:05.583Z | 2,016 | 4 | 13 | 3 | 303 | 1 | 809 | 39 | 5 | 1 | true | false | false | false | false | true | negative |
36,771,497 | ArrayList unintentionally appended at the end of GSON String each time I rotate the screen | <p>I am trying to save a custom class containing <code>ArrayLists</code> to <code>SharedPreferences</code> using GSON. Each time I rotate the screen, the activity starts over and the string generated by gson seems to append the <code>ArrayList</code> to the previous string, instead of replacing it. </p>
<p>The <code>S... | I am trying to save a custom class containing ArrayLists to SharedPreferences using GSON. Each time I rotate the screen, the activity starts over and the string generated by gson seems to append the ArrayList to the previous string, instead of replacing it. The SimpleUserValues class is just a class to store user info,... | java|android|arraylist|android-sharedpreferences|gson | 0 | 2016-04-21T13:42:55.180Z | 2,016 | 4 | 13 | 3 | 44 | 1 | 799 | 90 | 5 | 3 | true | false | false | false | false | false | zero |
36,771,544 | MvxRecyclerView items have null ViewModel | <p>In my xamarin.droid application I have next layout with <code>MvxRecyclerView</code></p>
<pre><code><MvxRecyclerView
...
local:MvxItemTemplate="@layout/symbol_item_fragment"
local:MvxBind="ItemsSource Items" />
</code></pre>
<p><code>symbol_item_fragment</code> is defined as</p>
<pre><cod... | In my xamarin.droid application I have next layout with MvxRecyclerView [CODE] symbol_item_fragment is defined as [CODE] and I define SymbolItemFragment as [CODE] I can see that Fragments are rendered properly, but ViewModel is not defined for them for some reason. What am I missing? | c#|android|xamarin|xamarin.android|mvvmcross | 0 | 2016-04-21T13:44:40.070Z | 2,016 | 4 | 13 | 3 | 439 | 2 | 284 | 41 | 5 | 3 | true | false | false | false | false | false | zero |
36,771,553 | ImageButton in RemotesView stretches | <p>I'm making an application which shows a customized notification bar. The problem I'm facing is the <code>ImageButton</code>s in the view are stretched horizontally. </p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
... | I'm making an application which shows a customized notification bar. The problem I'm facing is the ImageButton s in the view are stretched horizontally. [CODE] The size of images I used is 72x72. The images are even worse when my device is tilted to landscape mode as the images tend to fill up the notification bar. Is ... | android|imagebutton|remoteview | 0 | 2016-04-21T13:44:55.997Z | 2,016 | 4 | 13 | 3 | 30 | 1 | 468 | 36 | 3 | 1 | true | false | false | false | false | false | zero |
36,771,589 | Android App force close when using Vibrator instance service not available on create | <p>Hi and thank you all for the help you have already so nicely given. Let me first say I have never programmed using android! I know a few other languages but I am a beginner at best. I was given this app to change it from beeping to vibration. </p>
<p>thiyagab so nicely gave me the following code:</p>
<pre><code>im... | Hi and thank you all for the help you have already so nicely given. Let me first say I have never programmed using android! I know a few other languages but I am a beginner at best. I was given this app to change it from beeping to vibration. thiyagab so nicely gave me the following code: [CODE] Vibrator v = (Vibrator)... | android|vibration | 0 | 2016-04-21T13:46:15.610Z | 2,016 | 4 | 13 | 3 | 65 | 2 | 1,126 | 84 | 2 | 3 | true | false | false | false | false | false | zero |
36,771,626 | Android custom view into scrollView not show | <p>I am trying to put a custom view into scrollView. This is my custom view MyCustomLayout.java </p>
<pre><code>public class MyCustomLayout extends ViewGroup {
private static final int UNEVEN_GRID_PENALTY_MULTIPLIER = 10;
private int mMaxChildWidth = 0;
private int mMaxChildHeight = 0;
public MyCustomLayout(Context... | I am trying to put a custom view into scrollView. This is my custom view MyCustomLayout.java [CODE] When I use in a LinearLayout with those xml code. It works fine. [CODE] But when I put into a scrollView like this [CODE] The custom view overlapping by the scrollView. The output like this. ScrollView Output Please Help... | android|scrollview|android-custom-view | 1 | 2016-04-21T13:47:38.020Z | 2,016 | 4 | 13 | 3 | 290 | 1 | 343 | 44 | 3 | 3 | true | false | false | false | false | false | low |
36,771,756 | My Xamarin.Android app sometimes crashes on launch | <p>Recently, my Xamarin.Android app has started to crash on launch, caused by:</p>
<blockquote>
<p>Java.Lang.ClassNotFoundException: mono.android.app.Application</p>
</blockquote>
<p><strong>This exception is being thrown more often than not. Usually, a rebuild fixes the issue for a build or two.</strong> I tried... | Recently, my Xamarin.Android app has started to crash on launch, caused by: Java.Lang.ClassNotFoundException: mono.android.app.Application This exception is being thrown more often than not. Usually, a rebuild fixes the issue for a build or two. I tried to combat the issue by making my own application class: [CODE] Unf... | c#|mono|xamarin.android|classnotfoundexception | 2 | 2016-04-21T13:52:23.320Z | 2,016 | 4 | 13 | 3 | 175 | 1 | 744 | 50 | 4 | 1 | true | false | false | false | false | false | low |
36,771,886 | Accessing a media file created with Cordova plugin for local use in Meteor script with gifshotJS library | <p>to make my question short and simple:</p>
<p>How can I access the mediaFile generated by cordova-plugin-media-capture's function <code>capture.captureVideo()</code> and convert it with gifShot JS' <code>createGIF()</code>function into a GIF on an Android device?</p>
<p>I ran into the problem, that neither the full... | to make my question short and simple: How can I access the mediaFile generated by cordova-plugin-media-capture's function capture.captureVideo() and convert it with gifShot JS' createGIF() function into a GIF on an Android device? I ran into the problem, that neither the fullPath ( file:/ URI), nor the localURL ( cdvfi... | javascript|android|cordova|meteor|cordova-plugins | 1 | 2016-04-21T13:56:56.010Z | 2,016 | 4 | 13 | 3 | 758 | 1 | 2,216 | 104 | 5 | 1 | true | false | false | false | false | false | low |
36,771,946 | Error when using Retrofit | <p>I'm trying to get data from web server.I'n new with <code>Retrofit</code> ,and I have error <code>"No Retrofit annotation found (parameter#1)"</code> when try launch my app,I dont understand what cause this error and what to do with that.</p>
<p>VideoApi class:</p>
<pre><code>public interface VideoApi {
@GET(... | I'm trying to get data from web server.I'n new with Retrofit ,and I have error "No Retrofit annotation found (parameter#1)" when try launch my app,I dont understand what cause this error and what to do with that. VideoApi class: [CODE] Video class: [CODE] FragmentClass: [CODE] My logcat: [CODE] | android|retrofit|retrofit2 | 0 | 2016-04-21T13:59:31.737Z | 2,016 | 4 | 13 | 3 | 1,503 | 1 | 295 | 25 | 3 | 4 | true | false | false | false | false | false | zero |
36,772,193 | How to handle back button in sencha touch application without NavigationView? | <p>I have googled, but all the useful articles are all describing how to handle the back button in NavigationView, but I just use the common view like below.</p>
<pre><code>Ext.define('emall.view.MyPage', {
extend: 'Ext.Container',
alias: 'widget.mypage',
requires: [
'emall.view.topplus',
... | I have googled, but all the useful articles are all describing how to handle the back button in NavigationView, but I just use the common view like below. [CODE] I am do changes on the existing app, so I can not change the base architecture. So I am wondering how to handle the back button? I know below way can capture ... | javascript|android|extjs|sencha-touch|sencha-touch-2 | 0 | 2016-04-21T14:09:40.397Z | 2,016 | 4 | 14 | 3 | 838 | 1 | 731 | 77 | 5 | 3 | true | false | false | false | false | false | zero |
36,772,241 | Android adb backup storage issue | <p>I have problem with <strong>adb bakup</strong> on my android phone - it is Lenovo Vibe Shot Z90a40, Android version <strong>5.1</strong>. I'm trying to backup Viber, but the problem happens for other packages and full backup too. The size of produced <strong>.ab</strong> file is always about 40 bytes.</p>
<p>I've c... | I have problem with adb bakup on my android phone - it is Lenovo Vibe Shot Z90a40, Android version 5.1 . I'm trying to backup Viber, but the problem happens for other packages and full backup too. The size of produced .ab file is always about 40 bytes. I've created .bat script where executing logcat to see what happens... | android|adb | 3 | 2016-04-21T14:11:42.217Z | 2,016 | 4 | 14 | 3 | 1,217 | 1 | 897 | 32 | 2 | 4 | true | false | false | false | false | false | low |
36,772,265 | How to organize image files of different sizes (devices) in a Appcelerator Titanium project | <p>I have recently started creating an Android application using Appcelerator's Titanium. </p>
<p>Since in the application I requires to keep several images/icons with different sizes & dimensions essentially, So I need some advice on how I should organize them in the project.</p>
<p>And as you know like in Andro... | I have recently started creating an Android application using Appcelerator's Titanium. Since in the application I requires to keep several images/icons with different sizes & dimensions essentially, So I need some advice on how I should organize them in the project. And as you know like in Android project (Android stud... | android|appcelerator|appcelerator-titanium | 0 | 2016-04-21T14:12:32.860Z | 2,016 | 4 | 14 | 3 | 132 | 3 | 956 | 91 | 3 | 0 | false | false | false | false | false | false | zero |
36,772,361 | application has stopped after running the application | <p>I am trying to make loging page but this code not run properly
application afer run tym says unfortunately has stopped i don't no why .i am new in android any one plzz help .i am so frustrate</p>
<p>database file!!</p>
<pre><code> public class RegistrationDetailsDataBaseFile extends SQLiteOpenHelper {
public... | I am trying to make loging page but this code not run properly application afer run tym says unfortunately has stopped i don't no why .i am new in android any one plzz help .i am so frustrate database file!! [CODE] send data from this file file [CODE] | android | -3 | 2016-04-21T14:16:44.107Z | 2,016 | 4 | 14 | 3 | 28 | 1 | 251 | 53 | 1 | 2 | true | false | false | false | false | true | negative |
36,772,377 | Gradle error: Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes | <p>To start off, this is the whole message:</p>
<blockquote>
<blockquote>
<p>Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes</p>
<p>Error:1 error; aborting</p>
</blockquote>
<p>Error:Execution failed for task
':app:transformClassesWithDexForD... | To start off, this is the whole message: Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes Error:1 error; aborting Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: co... | java|android | 1 | 2016-04-21T14:17:25.357Z | 2,016 | 4 | 14 | 3 | 10,010 | 1 | 1,303 | 114 | 2 | 0 | false | false | true | false | false | false | low |
36,772,394 | Why I cant click on a ListView Item when I added a checkbox next to it in Android | <p>I have a small listview which displays numbers and next to it I added a checkbox but, then its not clickable why? Do I have to do something to the adapter?</p>
<p>The listview item xml </p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" andr... | I have a small listview which displays numbers and next to it I added a checkbox but, then its not clickable why? Do I have to do something to the adapter? The listview item xml [CODE] And the ListView XML [CODE] | android|listview | 1 | 2016-04-21T14:17:47.070Z | 2,016 | 4 | 14 | 3 | 63 | 2 | 212 | 81 | 2 | 2 | true | false | false | false | false | false | low |
36,772,456 | Dagger 2 robolectric test not compiling | <p>I write some tests, but dagger 2 give me errors like this:</p>
<p>Error:(83, 90) error: incompatible types: MembersInjector cannot be converted to Provider</p>
<p>Error:(92, 70) error: method create in class ArtistAdapter_MembersInjector cannot be applied to given types;
required: Provider
found: MembersInjector,P... | I write some tests, but dagger 2 give me errors like this: Error:(83, 90) error: incompatible types: MembersInjector cannot be converted to Provider Error:(92, 70) error: method create in class ArtistAdapter_MembersInjector cannot be applied to given types; required: Provider found: MembersInjector,Provider reason: act... | android|unit-testing|dependency-injection|robolectric|dagger-2 | 2 | 2016-04-21T14:19:55.247Z | 2,016 | 4 | 14 | 3 | 307 | 0 | 661 | 39 | 5 | 3 | true | true | false | false | false | false | low |
36,772,532 | Android Overwriting current Alarm | <p>I'm trying to set an alarm notification once, and each time a User logs in, overwrite or cancel the previous alarm and set a new one. Based primarily on <a href="https://stackoverflow.com/questions/19867051/intent-extras-dont-seem-to-refresh?lq=1">this post</a> and <a href="https://stackoverflow.com/questions/172000... | I'm trying to set an alarm notification once, and each time a User logs in, overwrite or cancel the previous alarm and set a new one. Based primarily on this post and this post a tried the following code: [CODE] But only sets the first alarm and not the next ones. | android|alarmmanager|android-alarms | 0 | 2016-04-21T14:23:16.907Z | 2,016 | 4 | 14 | 3 | 798 | 1 | 264 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
36,772,563 | App won't build? DebugResources error? | <p>Here is my problem
Can anyone help?
Ive tried changing the build version on gradle but it still doesnt run</p>
<p>[1] <a href="http://imgur.com/U5CP8rO" rel="nofollow">http://imgur.com/U5CP8rO</a> </p>
<pre><code>BUILD FAILED
Total time: 11.872 secs
Executing tasks: [:app:compileDebugSources, :app:compileDebugAnd... | Here is my problem Can anyone help? Ive tried changing the build version on gradle but it still doesnt run [1] http://imgur.com/U5CP8rO [CODE] | java|android | 0 | 2016-04-21T14:24:48.487Z | 2,016 | 4 | 14 | 3 | 58 | 3 | 142 | 38 | 2 | 1 | true | false | false | false | false | false | zero |
36,772,659 | java.lang.NoClassDefFoundError: java.util.Objects - Android 4.1 and Retrolambda | <p>I am experiencing a crash that I am not 100% sure what is going on. My suspicions are that it has to do with what retrolambda is doing under the hood to achieve the use of lambdas pre-Java 8. I am receiving the following crash: </p>
<pre><code>04-21 13:50:32.609 1199-1199/com.ariets.af.debug E/AndroidRuntime: FATAL... | I am experiencing a crash that I am not 100% sure what is going on. My suspicions are that it has to do with what retrolambda is doing under the hood to achieve the use of lambdas pre-Java 8. I am receiving the following crash: [CODE] I am not using java.util.Objects directly (doing a search for that in my code, in fac... | java|android|lambda|retrolambda | 2 | 2016-04-21T14:28:47.953Z | 2,016 | 4 | 14 | 3 | 597 | 0 | 1,055 | 79 | 4 | 2 | true | true | false | false | false | false | low |
36,772,869 | Android Studio 2.0 Update Cant Run App/Theme Error | <p>I just updated android studio to 2.0 and I can't run my themes anymore. I am getting the following error:</p>
<blockquote>
<p>19:59:20 Executing tasks: [:theme:assembleDebug] 19:59:25 Gradle build
finished in 5s 506ms 19:59:28 Can't bind to local 8637 for debugger
19:59:32 Session 'theme': Error Launching act... | I just updated android studio to 2.0 and I can't run my themes anymore. I am getting the following error: 19:59:20 Executing tasks: [:theme:assembleDebug] 19:59:25 Gradle build finished in 5s 506ms 19:59:28 Can't bind to local 8637 for debugger 19:59:32 Session 'theme': Error Launching activity Could not identify launc... | android-activity|launch | 0 | 2016-04-21T14:37:27.227Z | 2,016 | 4 | 14 | 3 | 380 | 1 | 411 | 50 | 2 | 1 | true | false | false | false | false | false | zero |
36,773,014 | How to build external C++ library with Android Studio + Gradle + NDK? | <p>I'm porting C++ library to Android now. I did initial work already and got it build in Application.mk/Android.mk way. </p>
<p>The upcoming Java demo application for library is developing in Android Studio now. I can built everything (demo + library) together - thanks to StackOverflow community. </p>
<p>However I ... | I'm porting C++ library to Android now. I did initial work already and got it build in Application.mk/Android.mk way. The upcoming Java demo application for library is developing in Android Studio now. I can built everything (demo + library) together - thanks to StackOverflow community. However I have no access to nati... | android|c++|android-ndk|android-gradle-plugin | 1 | 2016-04-21T14:43:31.360Z | 2,016 | 4 | 14 | 3 | 2,121 | 1 | 1,061 | 69 | 4 | 2 | true | false | false | false | false | false | low |
36,773,083 | Android SQLite database table not being created | <p>I'm following along in an Android for beginner's book and am trying to make a mini app to learn about using SQLite databases. I've built a DataManager class which creates a database and handles the CRUD operations:</p>
<pre><code> public class DataManager {
// this is the actual database
private SQLiteDat... | I'm following along in an Android for beginner's book and am trying to make a mini app to learn about using SQLite databases. I've built a DataManager class which creates a database and handles the CRUD operations: [CODE] However, when I run my app and attempt to insert data, I get an error: android.database.sqlite.SQL... | android|sqlite|android-sqlite | 0 | 2016-04-21T14:46:40.650Z | 2,016 | 4 | 14 | 3 | 678 | 1 | 611 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
36,773,133 | Libgdx Freetype Font Generator Outline acting weird | <p>I'm using asset manager to generate my font using object
FreeTypeFontGeneratorLoader, specifically I'm using this current parameter</p>
<pre><code>FreeTypeFontLoaderParameter parameter = new FreeTypeFontLoaderParameter();
parameter.fontFileName = "fonts/myFont.ttf";
parameter.fontParameters.size = size;
parameter.... | I'm using asset manager to generate my font using object FreeTypeFontGeneratorLoader, specifically I'm using this current parameter [CODE] (then I load my font in static variable in Assets class) everything is normal if the app runs for the first time, here is the generated text with outline screenshot: screenshot but ... | android|libgdx|freetype | 0 | 2016-04-21T14:48:26.367Z | 2,016 | 4 | 14 | 3 | 405 | 2 | 807 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
36,773,135 | Get buttons to do something when they are checked | <p>I got multiple buttons which are managed by this code:</p>
<pre><code>ToggleButton.OnCheckedChangeListener listener = new ToggleButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton v, boolean isChecked) {
int index;
for(index = 0; index < viewIds.length... | I got multiple buttons which are managed by this code: [CODE] i've created method scanButton(); like this: [CODE] now Question: what to put here to get only those buttons which are isChecked with "true" state to do something? | android | 0 | 2016-04-21T14:48:27.020Z | 2,016 | 4 | 14 | 3 | 29 | 1 | 225 | 49 | 1 | 2 | true | false | false | false | false | false | zero |
36,773,166 | how to parse laravel to json, and receive it from android | <p>Hello I would like to know how to connect my Laravel base Web service to My Android Application? Currently im tried with both native and laravel code. and i manage to get the json from native php. but then when I Tried it in Laravel it returns the same json but unable to receive it in Android, the error says somethi... | Hello I would like to know how to connect my Laravel base Web service to My Android Application? Currently im tried with both native and laravel code. and i manage to get the json from native php. but then when I Tried it in Laravel it returns the same json but unable to receive it in Android, the error says something ... | php|android|json|laravel | 0 | 2016-04-21T14:49:23.830Z | 2,016 | 4 | 14 | 3 | 1,169 | 1 | 550 | 57 | 4 | 4 | true | false | false | false | false | false | zero |
36,773,226 | There is no any data showing into foreign key column | <p><a href="http://i.stack.imgur.com/MQBdW.png" rel="nofollow">TABLE_BLOCKED_SMS</a> , <a href="http://i.stack.imgur.com/yYD6S.png" rel="nofollow">TABLE_BLOCK_LIST</a>
I have two tables which structure you can display in pictures. I made this table with below sqlite statements. The problem is when i add some data the f... | TABLE_BLOCKED_SMS , TABLE_BLOCK_LIST I have two tables which structure you can display in pictures. I made this table with below sqlite statements. The problem is when i add some data the foreign key named(fk_id_block_list) in TABLE_BLOCKED_SMS shown no any data but it should show ids of id_block_list column from TABLE... | android|sqlite | -1 | 2016-04-21T14:51:36.340Z | 2,016 | 4 | 14 | 3 | 41 | 2 | 435 | 52 | 2 | 4 | true | false | false | false | false | true | negative |
36,773,293 | Understanding custom BLE UUIDs | <p>I am looking to create a cross-platform application that allows me to periodically advertise the devices Mac address(though I have realized for some reason I receive 3 for a single device.) so that it can be recorded and used to reference short manual user advertisement such that each advertisement can be identified... | I am looking to create a cross-platform application that allows me to periodically advertise the devices Mac address(though I have realized for some reason I receive 3 for a single device.) so that it can be recorded and used to reference short manual user advertisement such that each advertisement can be identified by... | android|ios|bluetooth-lowenergy | 1 | 2016-04-21T14:54:05.793Z | 2,016 | 4 | 14 | 3 | 1,985 | 1 | 2,919 | 30 | 3 | 0 | false | false | false | false | false | false | low |
36,773,341 | Android 4.0.3 API15 doesn't show in AVD manager | <p>I'm having a problem with AVD, similar to this: </p>
<p><a href="https://stackoverflow.com/questions/25707692/creating-avd-for-android-4-0-3">Creating AVD for android 4.0.3</a></p>
<p>But the solution didn't work out for me.</p>
<p>Here are a few screens of my sdk manager installed packages:</p>
<p><a href="http... | I'm having a problem with AVD, similar to this: Creating AVD for android 4.0.3 But the solution didn't work out for me. Here are a few screens of my sdk manager installed packages: The rest: Also here in my folder: But now in my avd, I have a preconfigured VD installed manually with a exe script. But it can't load. I t... | android|android-studio|sdk|avd | 0 | 2016-04-21T14:55:39.977Z | 2,016 | 4 | 14 | 3 | 197 | 0 | 424 | 47 | 4 | 0 | false | true | false | false | false | false | zero |
36,773,404 | Displaying Database on Listview | <p>I'm trying to create a ListView which displays the contents of my database on an activity in an android application. The method I have attempted crashes the app before it can run. Below is my code for my main activity and sqlhelper class. If anyone could tell me why that would be great thanks.</p>
<p>Main Activity
... | I'm trying to create a ListView which displays the contents of my database on an activity in an android application. The method I have attempted crashes the app before it can run. Below is my code for my main activity and sqlhelper class. If anyone could tell me why that would be great thanks. Main Activity package com... | android|listview | 0 | 2016-04-21T14:58:15.327Z | 2,016 | 4 | 14 | 3 | 57 | 1 | 432 | 31 | 2 | 3 | true | false | false | false | false | false | zero |
36,773,452 | Android Firebaseui is not retrieving all data | <p>I'm doing a feature on my app where users can post notes. I'm doing this using firebase. However, I'm using FirebaseUI to bind the data in firebase to the listview. I'm using the FirebaseListAdapter function to get the data from firebase and populate it in the listview.</p>
<p>I realized that it's not retrieving al... | I'm doing a feature on my app where users can post notes. I'm doing this using firebase. However, I'm using FirebaseUI to bind the data in firebase to the listview. I'm using the FirebaseListAdapter function to get the data from firebase and populate it in the listview. I realized that it's not retrieving all the data ... | android|listview|firebase|firebase-realtime-database|firebaseui | 1 | 2016-04-21T15:00:05.053Z | 2,016 | 4 | 15 | 3 | 141 | 0 | 961 | 45 | 5 | 3 | true | true | false | false | false | false | low |
36,773,519 | Google fit API OAUTH Issue | <p>I'm trying to build a step counter application, as a test i downloaded the android fit code from github and ran the basicsensorsAPI: </p>
<p><a href="https://github.com/googlesamples/android-fit" rel="nofollow">googlesamples/android-fit</a></p>
<p>In order to get stepcount instead of location I changed the data ty... | I'm trying to build a step counter application, as a test i downloaded the android fit code from github and ran the basicsensorsAPI: googlesamples/android-fit In order to get stepcount instead of location I changed the data type to TYPE_STEP_COUNT_CUMULATIVE and TYPE_DERIVED , (the orignials are TYPE_LOCATION_SAMPLE an... | android|oauth|google-api|google-fit|google-fit-sdk | 0 | 2016-04-21T15:02:31.637Z | 2,016 | 4 | 15 | 3 | 3,801 | 3 | 563 | 26 | 5 | 2 | true | false | true | false | false | false | zero |
36,773,642 | Android ListView Error with Xamarin | <p>I'm getting an Unhandled Exception error:
"System.NullReferenceException: Object reference not set to an instance of an object" when trying to run the following Xamarin Android app. </p>
<pre><code>using Android.App;
using Android.OS;
using Android.Widget;
using System;
namespace CrossTest1.Droid
{
[Activity(... | I'm getting an Unhandled Exception error: "System.NullReferenceException: Object reference not set to an instance of an object" when trying to run the following Xamarin Android app. [CODE] Below is my axml file. [CODE] | android|xamarin|xamarin.android | 0 | 2016-04-21T15:07:16.413Z | 2,016 | 4 | 15 | 3 | 1,028 | 1 | 218 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
36,773,712 | Update NestedScrollView layout | <p>Here is my layout:</p>
<pre><code>CoordinatorLayout
NestedScrollView
LinearLayout
TextView
TextView
TextView
</code></pre>
<p>If I change the visibility of the textviews (visible/gone) the LinearLayout and the NestedScrollView should change their height but they do o... | Here is my layout: [CODE] If I change the visibility of the textviews (visible/gone) the LinearLayout and the NestedScrollView should change their height but they do only until the next scheduled layout measuring pass. So for several second the NestedScrollView has an incorrect scrolling height. How to update the Neste... | android|android-layout|android-scrollview|android-design-library|androiddesignsupport | 1 | 2016-04-21T15:10:50.237Z | 2,016 | 4 | 15 | 3 | 647 | 0 | 422 | 30 | 5 | 2 | true | true | false | false | false | false | low |
36,773,737 | Android 4.2 - Bad text render - Text flickers and gets cut | <p>We have an native Android application developed in Java and Android Studio.
We started observing a phenomenon which seems to be related with rendering (but might not?).</p>
<p>In the photo bellow the table is rendered correctly:</p>
<p><a href="https://i.stack.imgur.com/EuBp4.jpg" rel="nofollow noreferrer"><img src=... | We have an native Android application developed in Java and Android Studio. We started observing a phenomenon which seems to be related with rendering (but might not?). In the photo bellow the table is rendered correctly: When ticking one of the checkboxes to select a row, the fields show only the first letter: Setting... | android|android-fragments|mobile|rendering|render | 1 | 2016-04-21T15:11:59.130Z | 2,016 | 4 | 15 | 3 | 92 | 1 | 855 | 58 | 5 | 0 | false | false | false | false | false | false | low |
36,774,042 | Updated database items do not display in list view | <p>In my project, there is an activity which is adding some info in the database. When I click add button in the activity, it is supposed to go back to the main activity, where there is a list view which shows the Task Names in a list form the database. Until, I had only Task Name field in the database table, all was w... | In my project, there is an activity which is adding some info in the database. When I click add button in the activity, it is supposed to go back to the main activity, where there is a list view which shows the Task Names in a list form the database. Until, I had only Task Name field in the database table, all was work... | android|sqlite|listview | 0 | 2016-04-21T15:24:13.093Z | 2,016 | 4 | 15 | 3 | 43 | 1 | 775 | 50 | 3 | 5 | true | false | false | false | false | false | zero |
36,774,080 | What is the proper way to depend on a gradle project that is a Git submodule? | <p>I am running into a problem with trying to include a Git submodule in my Gradle project and depend on a single Gradle module within the Git submodule.</p>
<p>The submodule is a library that has the following structure:</p>
<pre><code>MappingLib
-BaseLib
-AndroidLib
</code></pre>
<p>Where the settings.gradle fil... | I am running into a problem with trying to include a Git submodule in my Gradle project and depend on a single Gradle module within the Git submodule. The submodule is a library that has the following structure: [CODE] Where the settings.gradle file for MappingLib contains: [CODE] and the AndroidLib's build.gradle file... | git|android-studio|gradle | 4 | 2016-04-21T15:25:54.423Z | 2,016 | 4 | 15 | 3 | 1,352 | 1 | 1,696 | 77 | 3 | 8 | true | false | false | false | false | false | low |
36,774,189 | ImageView not populating from file path | <p>I can't get my ImageViews to update from either URI or file path - they just don't show an image</p>
<p>Intent to capture image:</p>
<pre><code>Intent photo = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(photo, 1);
</code></pre>
<p>On ActivityResult</p>
<pre><code>protected void onActivity... | I can't get my ImageViews to update from either URI or file path - they just don't show an image Intent to capture image: [CODE] On ActivityResult [CODE] GetRealPathFromURI class: [CODE] It then inserts 'filePath' from onActivityResult in to a db Retrieving from db and updating ImageViews [CODE] I've tried so many diff... | android | 1 | 2016-04-21T15:30:17.263Z | 2,016 | 4 | 15 | 3 | 46 | 1 | 666 | 39 | 1 | 5 | true | false | false | false | false | false | low |
36,774,254 | Kotlin problems with Android data binding | <p>I'm trying data binding on Android using Kotlin but experiencing some problems. My gradle files are listed below.</p>
<p><strong>Top level:</strong></p>
<pre><code>buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-beta3'
clas... | I'm trying data binding on Android using Kotlin but experiencing some problems. My gradle files are listed below. Top level: [CODE] App level: [CODE] I'm using the following code to inflate my view. [CODE] But when I try to build the project I get this error. [CODE] I tried adding databinding-compiler to kapt as sugges... | android|kotlin|android-databinding | 1 | 2016-04-21T15:33:15.133Z | 2,016 | 4 | 15 | 3 | 1,584 | 3 | 395 | 41 | 3 | 6 | true | false | false | false | false | false | low |
36,774,278 | Appbar/Toolbar not working | <p>I am making an android project by targetting api 13+. I need to have a appbar/toolbar instead of actionbar at the top of each activity I have in my app. I have tried searching over many blogs and SO itself but without any success.</p>
<p>I have created a base activity class and all my activities inherit from this c... | I am making an android project by targetting api 13+. I need to have a appbar/toolbar instead of actionbar at the top of each activity I have in my app. I have tried searching over many blogs and SO itself but without any success. I have created a base activity class and all my activities inherit from this class: [CODE... | java|android|xml | 0 | 2016-04-21T15:34:10.803Z | 2,016 | 4 | 15 | 3 | 207 | 1 | 1,881 | 26 | 3 | 10 | true | false | false | false | false | false | zero |
36,774,511 | Repeat specific action X number of times in Android | <p>So I want certain action to be performed X number of times, depends on how many times user wants it. User selection will be selected from a TextView string which is set up with this code:</p>
<pre><code> homeScreenPlus.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(... | So I want certain action to be performed X number of times, depends on how many times user wants it. User selection will be selected from a TextView string which is set up with this code: [CODE] Those are basicly two buttons that increment or decrement value of TextView. The action I want to perform X times is this: [C... | java|android|xml|timer | 0 | 2016-04-21T15:43:49.450Z | 2,016 | 4 | 15 | 3 | 62 | 1 | 630 | 51 | 4 | 2 | true | false | false | false | false | false | zero |
36,774,512 | How input received by SPI may be interpreted by Android | <p>This is my first question on stackoverflow even though I'm a continuous reader of this problem-solving source. </p>
<p>Anyway, this is the issue I'm facing : </p>
<p>I'm trying to connect with a bus SPI two evalboards : </p>
<ul>
<li>The first one (source of data) simulates a touchscreen and is a Linux distro (fo... | This is my first question on stackoverflow even though I'm a continuous reader of this problem-solving source. Anyway, this is the issue I'm facing : I'm trying to connect with a bus SPI two evalboards : The first one (source of data) simulates a touchscreen and is a Linux distro (for now : Raspbian). The second one is... | android|linux-kernel|linux-device-driver|spi|input-devices | 2 | 2016-04-21T15:43:50.350Z | 2,016 | 4 | 15 | 3 | 927 | 1 | 990 | 55 | 5 | 0 | false | false | false | false | false | false | low |
36,774,586 | Application choosers - Android Espresso unit tests breaking after opening external URL | <p>I have an Android App with a login screen, which also contains a forgot password button that brings you to a website for further assistance. I'm testing it using Spoon and Espresso, with the following simple test function:</p>
<pre><code>@Test
public void testForgotPassword()
{
onView(withId(R.id.login_forgot_p... | I have an Android App with a login screen, which also contains a forgot password button that brings you to a website for further assistance. I'm testing it using Spoon and Espresso, with the following simple test function: [CODE] This test passes fine, and shows the "Complete action using browser/chrome dialog" on the ... | android|unit-testing|android-espresso|spoon | 4 | 2016-04-21T15:46:36.073Z | 2,016 | 4 | 15 | 3 | 2,015 | 1 | 728 | 86 | 4 | 2 | true | false | false | false | false | false | low |
36,774,604 | Android translate animation instantly requires full height while animating | <p>So imagine you have a parent relative layout with height set to <code>wrap_content</code>. Inside this layout is another layout which is hidden by default. This is how I reveal it:</p>
<pre><code>view.startAnimation(AnimationUtils.loadAnimation(context, R.anim.translate_in));
view.setVisibility(View.VISIBLE);
</c... | So imagine you have a parent relative layout with height set to wrap_content . Inside this layout is another layout which is hidden by default. This is how I reveal it: [CODE] Here is the corresponding anim file. It basically moves the view from the bottom to the top. [CODE] I expect the parent view to change its heigh... | android|android-animation | 0 | 2016-04-21T15:47:24.727Z | 2,016 | 4 | 15 | 3 | 1,862 | 1 | 749 | 74 | 2 | 3 | true | false | false | false | false | false | zero |
36,774,620 | Android - Difficulty Drawing Text on Bitmap | <p>I am attempting to draw some text on a bitmap and include it as part of a slideshow. I have been following this tutorial: <a href="http://www.skoumal.com/en/android-how-draw-text-bitmap/" rel="nofollow noreferrer">http://www.skoumal.com/en/android-how-draw-text-bitmap/</a></p>
<p>The problem is nothing is drawn on ... | I am attempting to draw some text on a bitmap and include it as part of a slideshow. I have been following this tutorial: http://www.skoumal.com/en/android-how-draw-text-bitmap/ The problem is nothing is drawn on the bitmap. I am not getting an error, but when the two 'slides' that should contain text pass, nothing sho... | java|android|graphics|bitmap | 1 | 2016-04-21T15:48:07.273Z | 2,016 | 4 | 15 | 3 | 840 | 1 | 503 | 43 | 4 | 1 | true | false | false | false | false | false | low |
36,774,774 | Bug trying to access sharedpreferences | <p>I don't know if the problem is the Android Studio 2.0, but now I can't open shared preferences. This is the error that it returns, after I click the menu button and the app crash:</p>
<pre><code>04-21 16:46:12.412 10969-10969/com.example.sdilab.dica E/login activity: File not found: java.io.FileNotFoundException: /... | I don't know if the problem is the Android Studio 2.0, but now I can't open shared preferences. This is the error that it returns, after I click the menu button and the app crash: [CODE] Since it doesn't shows that the problem is on my code, what can it be? | android|sharedpreferences|android-studio-2.0 | 0 | 2016-04-21T15:55:11.723Z | 2,016 | 4 | 15 | 3 | 80 | 1 | 257 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,774,808 | Sending params and Json via HTTP POST | <p>I need your help to understand this thing.
I have to make an http post request anche i have to send parameters and a very huge json array (data= [jsonarray]).
Now, if i have to send only paramters no problem..but i don't know how can i send also jsonarray.
How can i implement a part to send my jsonarray?
Thanks in a... | I need your help to understand this thing. I have to make an http post request anche i have to send parameters and a very huge json array (data= [jsonarray]). Now, if i have to send only paramters no problem..but i don't know how can i send also jsonarray. How can i implement a part to send my jsonarray? Thanks in adva... | android|json|http|http-post | -1 | 2016-04-21T15:56:34.170Z | 2,016 | 4 | 15 | 3 | 113 | 1 | 348 | 37 | 4 | 1 | true | false | false | false | false | true | negative |
36,774,880 | Android BitmapFactory.decodeFile returns null | <p>I call Activity.requestPermissions(READ_EXTERNAL_STORAGE) and after user click ALLOW I try to use BitmapFactory.decodeFile(path) but it returns null. And when permission already granted all is ok. What's wrong?</p>
<p><strong>ImageChooser class</strong></p>
<pre><code>public class ImageChooser {
private final... | I call Activity.requestPermissions(READ_EXTERNAL_STORAGE) and after user click ALLOW I try to use BitmapFactory.decodeFile(path) but it returns null. And when permission already granted all is ok. What's wrong? ImageChooser class [CODE] Example of using [CODE] | android|android-permissions | 0 | 2016-04-21T15:59:35.523Z | 2,016 | 4 | 15 | 3 | 421 | 1 | 260 | 45 | 2 | 2 | true | false | false | false | false | false | zero |
36,774,980 | Changing password using php/mysql | <p>I have created a registration system for a sample android app. I can both register and login without any problems. The last part is the <strong>forgot password</strong> one. Here is my logic. When the user forgets his password,he sends his email to my server and in return he gets an email back telling him to visit a... | I have created a registration system for a sample android app. I can both register and login without any problems. The last part is the forgot password one. Here is my logic. When the user forgets his password,he sends his email to my server and in return he gets an email back telling him to visit a link. That link tak... | php|android|mysql|passwords | -1 | 2016-04-21T16:03:58.833Z | 2,016 | 4 | 16 | 3 | 2,504 | 2 | 569 | 33 | 4 | 2 | true | false | false | false | false | true | negative |
36,775,069 | Why is not detecting the Get method? | <pre><code> import android.content.*;
import android.database.*;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class DBAdapter extends SQLiteOpenHelper {
private static final int DATA_VERSION = 1;
private static final... | [CODE] } My code above is not detecting the get methods from the code below, and yes they are in the same project. Any of the getters can be found. Anyone could helpme please? Please I am trying this SQLite database to work. [CODE] | java|android|methods|get | -1 | 2016-04-21T16:07:28.203Z | 2,016 | 4 | 16 | 3 | 35 | 1 | 231 | 36 | 4 | 2 | true | false | false | false | false | true | negative |
36,775,074 | BitmapFactory.decodeFile returns image with greater size than the original | <p>I am new to Android programming. I was trying to display an image from my device's sd card onto an <code>ImageView</code>, using <code>BitmapFactory.decodeFile(imagePath)</code>. I can read the image fine from sd card, followed the <a href="http://developer.android.com/intl/ko/training/displaying-bitmaps/load-bitmap... | I am new to Android programming. I was trying to display an image from my device's sd card onto an ImageView , using BitmapFactory.decodeFile(imagePath) . I can read the image fine from sd card, followed the official documentation to loading bitmaps efficiently . Although one thing I cannot understand is why the bitmap... | android|image|bitmap | 0 | 2016-04-21T16:07:40.717Z | 2,016 | 4 | 16 | 3 | 1,215 | 1 | 764 | 74 | 3 | 1 | true | false | false | false | false | false | zero |
36,775,564 | No view found for id XXX when trying to change device configuration | <p>I have an issue with different layouts and device configuration changes.</p>
<p>App has 3 feeds_activity layouts (default, landscape and for tablets).</p>
<p>Default:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
andr... | I have an issue with different layouts and device configuration changes. App has 3 feeds_activity layouts (default, landscape and for tablets). Default: [CODE] Landscape: [CODE] Tablets: [CODE] Here is an activity onCreate method: [CODE] Here is an exception: [CODE] This exception appears when I change device orientati... | android|android-layout|android-fragments|android-orientation | 4 | 2016-04-21T16:30:07.623Z | 2,016 | 4 | 16 | 3 | 1,360 | 2 | 751 | 67 | 4 | 5 | true | false | false | false | false | false | low |
36,775,749 | Dexguard / Proguard make app crash on Enum switch | <p>After an update of Dexguard from 7.0.12 to 7.1.22, I'm encountering a crash on an Enum switch.</p>
<p>This only happens when Dexguard has run on our project (I suppose this is caused by a Proguard issue).</p>
<p>If I use hardcoded values, the crash does not occur.</p>
<p>Ofcourse, I want to avoid using hardcoded ... | After an update of Dexguard from 7.0.12 to 7.1.22, I'm encountering a crash on an Enum switch. This only happens when Dexguard has run on our project (I suppose this is caused by a Proguard issue). If I use hardcoded values, the crash does not occur. Ofcourse, I want to avoid using hardcoded values. THE CRASH The crash... | android|enums|proguard|dexguard | 5 | 2016-04-21T16:40:04.633Z | 2,016 | 4 | 16 | 3 | 1,042 | 2 | 1,565 | 49 | 4 | 6 | true | false | false | false | false | false | low |
36,776,006 | Configuring "build.gradle" for Kotlin module in Android Studio | <p>I'm developing an app and I want to separate the Android specific logic from the business logic ( "immutable" logic and Android independent), so I created two modules:</p>
<ul>
<li><strong>app</strong> : Android specific code</li>
<li><strong>domain</strong> : Business logic ( written in Kotlin )</li>
</ul>
<p>I'm... | I'm developing an app and I want to separate the Android specific logic from the business logic ( "immutable" logic and Android independent), so I created two modules: app : Android specific code domain : Business logic ( written in Kotlin ) I'm using this build.gradle file for the kotlin module [CODE] Is this the corr... | android|gradle|kotlin | 3 | 2016-04-21T16:53:34.147Z | 2,016 | 4 | 16 | 3 | 1,535 | 1 | 448 | 62 | 3 | 1 | true | false | false | false | false | false | low |
36,776,037 | Material Design Circular Fab | <p>I am trying to learn circular fab but I am getting error on setting </p>
<pre><code>final ImageView fabIconNew = new ImageView(this);
fabIconNew.setImageDrawable(getResources().getDrawable(R.drawable.ic_action_new));
final FloatingActionButton rightLowerButton = new FloatingActionButton.Builder(this)
... | I am trying to learn circular fab but I am getting error on setting [CODE] I am getting error on Builder(this) it is showing cannot resolve symbol Builder I am trying to make the circular button from here https://github.com/oguzbilgener/CircularFloatingActionMenu I added the compile time dependency can some one tell me... | android|material-design|floating-action-button | -1 | 2016-04-21T16:55:22.457Z | 2,016 | 4 | 16 | 3 | 216 | 1 | 344 | 28 | 3 | 1 | true | false | false | false | false | true | negative |
36,776,052 | Inflating view within OnCreateView | <p>Following the Xamarin tutorial <a href="https://github.com/xamarin/monodroid-samples/tree/master/FragmentsWalkthrough" rel="nofollow">here</a> I am trying to include widgets within the axml file (and not programmatically as in the tutorial). However when I invoke the Inflate method I get the Exception:</p>
<blockqu... | Following the Xamarin tutorial here I am trying to include widgets within the axml file (and not programmatically as in the tutorial). However when I invoke the Inflate method I get the Exception: Android.Views.InflateException: Binary XML file line #1: Error inflating class fragment So my Fragment class is as follows:... | android|android-layout|android-fragments|xamarin|xamarin.android | 0 | 2016-04-21T16:56:14.857Z | 2,016 | 4 | 16 | 3 | 52 | 1 | 473 | 34 | 5 | 3 | true | false | false | false | false | false | zero |
36,776,086 | Glide with Fragment Context | <p>This is related to <a href="https://stackoverflow.com/questions/31964737/glide-image-loading-with-application-context/32887693#32887693">Glide image loading with application context</a></p>
<p>I have several Fragments hosted in an Activity, with a Fragment being replaced by another as the user navigates through the... | This is related to Glide image loading with application context I have several Fragments hosted in an Activity, with a Fragment being replaced by another as the user navigates through the app. I'm passing a RequestManager into my MyFragment's RecyclerView adapter like so: [CODE] My adapter: [CODE] When I debug my app, ... | android|android-context|android-glide | 0 | 2016-04-21T16:58:26.487Z | 2,016 | 4 | 16 | 3 | 2,942 | 1 | 626 | 27 | 3 | 2 | true | false | true | false | false | false | zero |
36,776,131 | Initial position on a Map Fragment with .setRetainInstance | <p>So I have the following things that are working properly:</p>
<p>I have a map fragment and I have markers on my map. Using .setRetainInstance on my map fragment does exactly what I want, on rotate it keeps the user zoomed position and keeps the markers on their place. The only thing that I want to do now is to mak... | So I have the following things that are working properly: I have a map fragment and I have markers on my map. Using .setRetainInstance on my map fragment does exactly what I want, on rotate it keeps the user zoomed position and keeps the markers on their place. The only thing that I want to do now is to make the initia... | android|google-maps|android-fragments | 0 | 2016-04-21T17:00:45.117Z | 2,016 | 4 | 17 | 3 | 676 | 1 | 1,006 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
36,776,154 | Transparent Bitmap ColorMatrix | <p>So my problem is that I want to make my picture Transparent but I get dark Image when I save it. So as I read before I have to change Bitmap ARGB to 0, 0, 0, 0 otherwise it will be black and I will have the same issue. So I did that with: </p>
<pre><code>Bitmap.Config config = bmp.getConfig();
if (config == nul... | So my problem is that I want to make my picture Transparent but I get dark Image when I save it. So as I read before I have to change Bitmap ARGB to 0, 0, 0, 0 otherwise it will be black and I will have the same issue. So I did that with: [CODE] But the thing is that nothing changes. Any ideas why? My full code: [CODE]... | android|bitmap | 0 | 2016-04-21T17:02:40.490Z | 2,016 | 4 | 17 | 3 | 181 | 0 | 398 | 30 | 2 | 2 | true | true | false | false | false | false | zero |
36,776,276 | Socket.io android socket.on not work after user kill the app | <p>I have socket.on in onCreate and it work fine at first.
However, when I kill the app, reopen the app and server receive the message from other person but android socket.on is not working.
But emit function still work.
Have any suggestion?</p>
<h2>Below is roughly code.</h2>
<pre><code>@Override
protected void onC... | I have socket.on in onCreate and it work fine at first. However, when I kill the app, reopen the app and server receive the message from other person but android socket.on is not working. But emit function still work. Have any suggestion? Below is roughly code. [CODE] Android client Socket.io version is socket.io-clien... | android|socket.io | 2 | 2016-04-21T17:09:02.700Z | 2,016 | 4 | 17 | 3 | 2,507 | 1 | 373 | 60 | 2 | 1 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.