id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,100,463 | Android + Google Drive = Error downloading file? | <h2>Context</h2>
<p>I'm downloading a file off Google Drive through their Android SDK. In most cases it works just fine, but I do have a few instances where it simply cannot be downloaded - no specific reason given other than that. </p>
<h2><strong>This is the crash log:</strong></h2>
<p>Non-fatal Exception: java.la... | Context I'm downloading a file off Google Drive through their Android SDK. In most cases it works just fine, but I do have a few instances where it simply cannot be downloaded - no specific reason given other than that. This is the crash log: Non-fatal Exception: java.lang.RuntimeException: Couldnt get drive contents: ... | android|google-drive-android-api | 0 | 2016-05-08T13:39:54.857Z | 2,016 | 5 | 13 | 6 | 720 | 0 | 682 | 48 | 2 | 1 | true | true | false | false | false | false | zero |
37,100,493 | AlarmManager in Lollipop runs only after Reboot | <p>In my app, I have an AlarmManager set up that runs every 5 mins, triggering a service. However I find that in Lollipop phones, it works only after I reboot the phone. If I do not reboot the phone, the AlarmManager never runs. Please let me know if you might be able to help me out with some hints. Appreciate your hel... | In my app, I have an AlarmManager set up that runs every 5 mins, triggering a service. However I find that in Lollipop phones, it works only after I reboot the phone. If I do not reboot the phone, the AlarmManager never runs. Please let me know if you might be able to help me out with some hints. Appreciate your help. ... | android|alarmmanager | 1 | 2016-05-08T13:43:11.577Z | 2,016 | 5 | 13 | 6 | 32 | 0 | 326 | 47 | 2 | 1 | true | true | false | false | false | false | low |
37,100,514 | Android Permission Request: onRequestPermissionsResult is never called / reached - Possible Context Issue | <p><strong>Request Permissions:</strong></p>
<pre><code>public class GooglePermissions extends ExternalClass
{
//...
private void checkPermissions()
{
if (ContextCompat.checkSelfPermission(mContext, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED)
{
Activi... | Request Permissions: [CODE] Permission Request Result: [CODE] I'm attempting to perform an Android permission check - however the onRequestPermissionsResult method is never called. I suspect the culprit is: (Activity) mContext ...however I cannot simply use: 'this' because the class this code is contained is not an Act... | android|android-context|android-6.0-marshmallow|android-permissions|runtime-permissions | 0 | 2016-05-08T13:46:40.693Z | 2,016 | 5 | 13 | 6 | 460 | 1 | 355 | 105 | 5 | 2 | true | false | false | false | false | false | zero |
37,100,551 | Load more data from Json in RecyclerView on Android | <p>I want develop android application for one website. I read website posts from json and show its in <code>RecyclerView</code> every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use <code>okHTTP v3</code> and <code>RecyclerView</code>!<br></p>
<p><strong>Json lin... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts and when user scrolling on RecyclerView show more 10 post and go to end! in this project i use okHTTP v3 and RecyclerView ! Json link : JSON LINK I can load first 10 posts. i want when scrollin... | android|json | 0 | 2016-05-08T13:49:36.080Z | 2,016 | 5 | 13 | 6 | 1,058 | 1 | 771 | 51 | 2 | 4 | true | false | false | false | false | false | zero |
37,100,590 | How getIntent.hasExtra method works in android | <p>I have been following a tutorial from this <a href="http://sampleprogramz.com/android/browse.php" rel="nofollow">link</a> which is basically about File browse concept in android. Everything works fine but I am getting confused of how passing intents between activities works in android after reading this link. The Fi... | I have been following a tutorial from this link which is basically about File browse concept in android. Everything works fine but I am getting confused of how passing intents between activities works in android after reading this link. The First activity is as follows, [CODE] As far as I understood, its passing the in... | android|android-intent | 1 | 2016-05-08T13:54:01.777Z | 2,016 | 5 | 13 | 6 | 2,829 | 1 | 953 | 46 | 2 | 3 | true | false | true | false | false | false | low |
37,100,609 | How to send a message to paired device by bluetooth | <p>Hi I would like to send a simple message to another device by bluetooth. Simple 'a' which will appear in textView in another device. </p>
<p>I've managed to pair devices, but now I've got only one problem, how to send a message, or even variable to another device, by clicking on the button.</p>
<p>This is my class... | Hi I would like to send a simple message to another device by bluetooth. Simple 'a' which will appear in textView in another device. I've managed to pair devices, but now I've got only one problem, how to send a message, or even variable to another device, by clicking on the button. This is my class which is responsibl... | android|bluetooth|message | 0 | 2016-05-08T13:56:10.080Z | 2,016 | 5 | 13 | 6 | 10,112 | 4 | 370 | 51 | 3 | 2 | true | false | true | false | false | false | zero |
37,100,677 | Android-load images from url into listViiew occurs every time scrolling the view | <p>I have a list view and each row is about Text and image loaded from url.</p>
<p>on first load of the View first 3 rows are rendered and filled with text and take few seconds to load the image in another thread.</p>
<p>when i am scrolling down new rows appears without images also and load it ,but when i am scrolli... | I have a list view and each row is about Text and image loaded from url. on first load of the View first 3 rows are rendered and filled with text and take few seconds to load the image in another thread. when i am scrolling down new rows appears without images also and load it ,but when i am scrolling up i find that th... | android|listview | 2 | 2016-05-08T14:03:35.203Z | 2,016 | 5 | 14 | 6 | 1,241 | 1 | 545 | 80 | 2 | 1 | true | false | false | false | false | false | low |
37,100,683 | Android studio adb failing (non sense !!?) | <p>Android studio emulator is failing on my machine and I have no idea what else I can do. I have tried the solutions on these two links :
<a href="https://stackoverflow.com/questions/17509422/android-device-is-not-connected-to-usb-for-debugging-android-studio">Android device is not connected to USB for debugging (And... | Android studio emulator is failing on my machine and I have no idea what else I can do. I have tried the solutions on these two links : Android device is not connected to USB for debugging (Android studio) java.io.IOException: Unable to open sync connection! in to the Nexus So to sum up here's what I did : 1- Downloade... | java|android|android-studio|adb | -1 | 2016-05-08T14:04:20.097Z | 2,016 | 5 | 14 | 6 | 371 | 2 | 1,358 | 42 | 4 | 0 | false | false | false | false | false | true | negative |
37,100,730 | Turn by turn multiple points route navigation Google Maps Intent on Android | <p>I am looking for a way to open turn-by-turn navigation on Google Maps. I know that from <a href="https://developers.google.com/maps/documentation/android-api/intents#launch_turn-by-turn_navigation" rel="nofollow noreferrer">this</a> google article it can only be defined by start and end points.</p>
<p><strong>First... | I am looking for a way to open turn-by-turn navigation on Google Maps. I know that from this google article it can only be defined by start and end points. First option (preferred): I haven't find any intent in Google Maps that does exactly what I want. Does anyone know if there is one? Second option: I have tried othe... | android|google-maps|android-intent|google-maps-android-api-2|google-maps-urls | 6 | 2016-05-08T14:09:47.423Z | 2,016 | 5 | 14 | 6 | 7,076 | 3 | 1,727 | 75 | 5 | 0 | false | false | true | false | false | false | medium |
37,100,732 | Expandablelistview with checkboxes display in dialog | <p>I'm writing filter in Android and want to use BaseExpandableListAdapter with checkboxes. In my situation if the group elements have any child elements, may select group element too. Also all child elements may selected. Offer screenshot:
<a href="http://i.stack.imgur.com/D407j.png" rel="nofollow">enter image descrip... | I'm writing filter in Android and want to use BaseExpandableListAdapter with checkboxes. In my situation if the group elements have any child elements, may select group element too. Also all child elements may selected. Offer screenshot: enter image description here When i open dialog and select neccessary elements, th... | android|checkbox|expandablelistview|dialogfragment | 0 | 2016-05-08T14:09:58.837Z | 2,016 | 5 | 14 | 6 | 609 | 1 | 787 | 52 | 4 | 4 | true | false | false | false | false | false | zero |
37,100,745 | UPDATE not working in sqlite android | <p>I have a login and reset password activity. When I enter the new updated password and try to login again, I cannot do so with the new password. Logging in with the old password works fine. Basically, the password field is not getting updated/overwritten. </p>
<p>There is no error in the logcat. Just that the passwo... | I have a login and reset password activity. When I enter the new updated password and try to login again, I cannot do so with the new password. Logging in with the old password works fine. Basically, the password field is not getting updated/overwritten. There is no error in the logcat. Just that the password is not up... | android|sqlite|android-studio|authentication|android-sqlite | -1 | 2016-05-08T14:11:35.710Z | 2,016 | 5 | 14 | 6 | 255 | 1 | 535 | 36 | 5 | 4 | true | false | false | false | false | true | negative |
37,100,762 | how to access json Object from HTTP callback on Retrofit 2.0 | <p>hi i'm using retrofit to bring back a java object,
i want to change a textfield based on one of the fields in the response
but i can't find anywhere on the web on how to do that, </p>
<p>this is my Retrofit Interface:</p>
<pre><code>public interface retrofitApi {
String baseUrl = "http://192.168.137.1:3003/"... | hi i'm using retrofit to bring back a java object, i want to change a textfield based on one of the fields in the response but i can't find anywhere on the web on how to do that, this is my Retrofit Interface: [CODE] and here is my repsonse: [CODE] my json is looking like this: [CODE] how do i access from the response ... | android|json|android-studio|retrofit|retrofit2 | 0 | 2016-05-08T14:13:06.453Z | 2,016 | 5 | 14 | 6 | 185 | 1 | 367 | 60 | 5 | 3 | true | false | false | false | false | false | zero |
37,100,859 | ImageButton drawable background not centered and cropped | <p>I have this ImageButton</p>
<pre><code> <ImageButton
android:id="@+id/imageButton"
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/crimson_round_button"
android:src="@drawable/play_white"/>
</code></pre>
<p>where crimson_round_... | I have this ImageButton [CODE] where crimson_round_button.xml drawable is [CODE] and the play_white.png drawable represents only the white play icon in the button. My final result is this one A you can see the inner icon is not centered and you can notice that the right and bottom borders are a little bit cropped. The ... | android|background|imagebutton | 1 | 2016-05-08T14:23:10.583Z | 2,016 | 5 | 14 | 6 | 1,079 | 1 | 842 | 56 | 3 | 3 | true | false | false | false | false | false | low |
37,100,914 | Android: how do I make the value of an integer variable become fixed/permanent in a CardView/RecyclerView? | <p>I have an int variable that is shown on a CardView in a RecyclerView list. The value is shown with a TextView. Once the value is used to populate the TextView in OnBindViewHolder, how do I freeze/make permanent that value so it does not change the next time onBondViewHolder is run when the next CardView is created... | I have an int variable that is shown on a CardView in a RecyclerView list. The value is shown with a TextView. Once the value is used to populate the TextView in OnBindViewHolder, how do I freeze/make permanent that value so it does not change the next time onBondViewHolder is run when the next CardView is created? "ca... | android|integer|android-recyclerview | 0 | 2016-05-08T14:29:19.490Z | 2,016 | 5 | 14 | 6 | 884 | 1 | 1,421 | 106 | 3 | 1 | true | false | false | false | false | false | zero |
37,100,965 | How can I identify objects in the resulting ArrayList of AnimatorSet.getChildAnimations()? | <p>So I've got a method (method 1) that returns an <code>AnimatorSet</code> to another method (method 2). In method 2, I'd like to pick some of the <code>Animator</code>'s inside the <code>AnimatorSet</code>, and use them independently of each other.</p>
<p>I found the <code>.getChildAnimations()</code> method, which ... | So I've got a method (method 1) that returns an AnimatorSet to another method (method 2). In method 2, I'd like to pick some of the Animator 's inside the AnimatorSet , and use them independently of each other. I found the .getChildAnimations() method, which should help me in some way, but unfortunately, I don't know h... | java|android|animation|animator|animatorset | 1 | 2016-05-08T14:35:09.690Z | 2,016 | 5 | 14 | 6 | 56 | 0 | 678 | 90 | 5 | 2 | true | true | false | false | false | false | low |
37,101,048 | Pre fetching Images using Glide in android | <p>I have an activity which will loads images one by one in same imageview using fadein fadeout animations. In order to provide a good user experience i want to pre fetch the images asynchronously and show them with a constant flow. I want to use glide for achieving the above said behaviour. But i am confused because t... | I have an activity which will loads images one by one in same imageview using fadein fadeout animations. In order to provide a good user experience i want to pre fetch the images asynchronously and show them with a constant flow. I want to use glide for achieving the above said behaviour. But i am confused because ther... | android|android-glide | 4 | 2016-05-08T14:43:16.693Z | 2,016 | 5 | 14 | 6 | 1,262 | 1 | 777 | 42 | 2 | 2 | true | false | false | false | false | false | low |
37,101,085 | A simple way to distinguish between a fast and a slow android device | <p>I created an Android game using libgdx, which runs fine on many devices. I recently used a 'low-end' phone to check my game, and it was not really playable.</p>
<p>Using the Android Studio tools, I figured the problem was not the amount of CPU-time (which was, for this low-end device, steady between 10%-20%). I the... | I created an Android game using libgdx, which runs fine on many devices. I recently used a 'low-end' phone to check my game, and it was not really playable. Using the Android Studio tools, I figured the problem was not the amount of CPU-time (which was, for this low-end device, steady between 10%-20%). I then created t... | android|performance|libgdx | 2 | 2016-05-08T14:46:58.907Z | 2,016 | 5 | 14 | 6 | 214 | 1 | 1,608 | 68 | 3 | 0 | false | false | false | false | false | false | low |
37,101,183 | Access outer class instance in bound service | <p>In android bound service, the following snippets access to service instance using <code>Foo.this</code> but in reality if we try to do it in java it can't be possible. So how it works?</p>
<pre><code>public class LocalService extends Service {
private final IBinder mBinder = new LocalBinder();
public class Lo... | In android bound service, the following snippets access to service instance using Foo.this but in reality if we try to do it in java it can't be possible. So how it works? [CODE] As you can see in MyActivity class, we can get the instance of LocalService class using getService() method (and after than we can access its... | java|android|service | 0 | 2016-05-08T14:57:24.443Z | 2,016 | 5 | 14 | 6 | 44 | 0 | 438 | 44 | 3 | 1 | true | true | false | false | false | false | zero |
37,101,241 | How to listen Android ActivityTestRule's beforeActivityLaunched method in an android test | <p>How do I listen <a href="http://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html" rel="noreferrer">ActivityTestRule's</a> <a href="http://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html#beforeActivityLaunched()" rel="noreferrer">beforeActivityLaunched()<... | How do I listen ActivityTestRule's beforeActivityLaunched() method in an android test. My workaround is creating a custom ActivityTestRule and providing a callback on constructor. Is it a bad practice? Same way is it OK to listen for ActivityTestRule constructor method. Here is my code: [CODE] In android test class, I ... | java|android|junit|android-testing|android-espresso | 8 | 2016-05-08T15:02:53.840Z | 2,016 | 5 | 15 | 6 | 2,285 | 2 | 482 | 89 | 5 | 2 | true | false | false | false | false | false | medium |
37,101,303 | 1 of 2 Button Working in an android app home page | <p>I made a basic homepage for my app.
The page consists of a sign in and sign up button.</p>
<p>Only the signup button works. I'm fairly new to android development and I guess I just can see why this is happening.</p>
<p>I checked other questions on stack overflow and decided to make a private handler and then cases... | I made a basic homepage for my app. The page consists of a sign in and sign up button. Only the signup button works. I'm fairly new to android development and I guess I just can see why this is happening. I checked other questions on stack overflow and decided to make a private handler and then cases however I still ha... | java|android|android-studio | 0 | 2016-05-08T15:08:18.273Z | 2,016 | 5 | 15 | 6 | 43 | 1 | 435 | 49 | 3 | 1 | true | false | false | false | false | false | zero |
37,101,347 | How can I access an Activity from LibGdx core project? | <p>I need to just go to an Activity from LibGdx core classes, but my problem is that I am using a GameStateManager which is confusing me with this<a href="https://stackoverflow.com/questions/30173733/call-activity-when-click-button-on-core-game-libgdx"> posts answer</a> I have found.The error it gave me was that my mai... | I need to just go to an Activity from LibGdx core classes, but my problem is that I am using a GameStateManager which is confusing me with this posts answer I have found.The error it gave me was that my main class in core project "MyGdxGame" was null. This is my GameStateManager class: [CODE] And this is my GameState c... | android|android-activity|libgdx | 0 | 2016-05-08T15:11:27.010Z | 2,016 | 5 | 15 | 6 | 756 | 1 | 426 | 54 | 3 | 3 | true | false | false | false | false | false | zero |
37,101,443 | Upload image to FTP in Android using lib SimpleFTP | <p>I want to upload file to FTP. I'm using simpleftp.jar. This is my code, it always failed stopped working</p>
<p>MainActivity.java</p>
<pre><code>import android.content.Intent;
import android.database.Cursor;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.provider.MediaStore;
import a... | I want to upload file to FTP. I'm using simpleftp.jar. This is my code, it always failed stopped working MainActivity.java [CODE] It always give me this error. When i click the error it directed to ftp.connect(FTP_HOST, 21, FTP_USER, FTP_PASS); [CODE] Can anyone help me to find the cause of this error? Thank you | java|android|ftp | 0 | 2016-05-08T15:21:27.383Z | 2,016 | 5 | 15 | 6 | 670 | 2 | 313 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
37,101,529 | Print only the "name" atribute in the listview | <p>Im working on a android app where the first screen is a listview that is supposed just to show the name of the series inserted into the app, at the moment it´s printing all the information i have about the serie,i want to know:</p>
<ul>
<li>How can i print just the name of the serie on the first screen.</li>
<li>Pr... | Im working on a android app where the first screen is a listview that is supposed just to show the name of the series inserted into the app, at the moment it´s printing all the information i have about the serie,i want to know: How can i print just the name of the serie on the first screen. Print all the information of... | java|android|listview|android-studio | 0 | 2016-05-08T15:28:20.063Z | 2,016 | 5 | 15 | 6 | 68 | 2 | 435 | 46 | 4 | 3 | true | false | false | false | false | false | zero |
37,101,595 | Google Maps avoiding tolls, highways or ferries in turn by turn navigation intent | <p>I am using Google Maps turn by turn navigation in my app to navigate from the current location to a given address. It works fine, my only problem is that I cannot set up avoid tolls/highways/ferries options via intent.</p>
<p>I followed google descriptions here: <a href="https://developers.google.com/maps/documenta... | I am using Google Maps turn by turn navigation in my app to navigate from the current location to a given address. It works fine, my only problem is that I cannot set up avoid tolls/highways/ferries options via intent. I followed google descriptions here: https://developers.google.com/maps/documentation/android-api/int... | android|google-maps|android-intent|parameters | 2 | 2016-05-08T15:35:10.987Z | 2,016 | 5 | 15 | 6 | 792 | 1 | 684 | 81 | 4 | 1 | true | false | false | false | false | false | low |
37,101,597 | BackEndless Data Managemet for Multiple Users | <p>I'm using backendless.com as my backend service. My application has a data class (DataManager), which contains one String called chore. The first user (User A) checks off the chore that they did and it's saved to the Backendless service. An App Table is created on the Backendless website called DataManager and the c... | I'm using backendless.com as my backend service. My application has a data class (DataManager), which contains one String called chore. The first user (User A) checks off the chore that they did and it's saved to the Backendless service. An App Table is created on the Backendless website called DataManager and the chec... | android|backendless|mbaas | 0 | 2016-05-08T15:35:25.740Z | 2,016 | 5 | 15 | 6 | 145 | 1 | 1,015 | 45 | 3 | 0 | false | false | false | false | false | false | zero |
37,101,603 | App crashes (sometimes) with Fatal signal 11 (SIGSEGV), code 1 | <p>I am developing an app with the HERE SDK, and everything worked fine until now. I get errors like this one:<br>
<code>Fatal signal 11 (SIGSEGV), code 1, fault addr 0x750057 in tid 10206 (FinalizerDaemon)</code><br>
or this one:<br>
<code>Fatal signal 11 (SIGSEGV), code 1, fault addr 0x94789680 in tid 24605 (Fin... | I am developing an app with the HERE SDK, and everything worked fine until now. I get errors like this one: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x750057 in tid 10206 (FinalizerDaemon) or this one: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x94789680 in tid 24605 (FinalizerDaemon) and they make my app cras... | android|gson|here-api|segmentation-fault | 18 | 2016-05-08T15:36:14.893Z | 2,016 | 5 | 15 | 6 | 55,911 | 3 | 1,276 | 62 | 4 | 2 | true | false | true | true | true | false | medium |
37,101,689 | Android path seeking algorithm | <h1>Context</h1>
<p>I am trying to develop a simple 2D game where some "zombies" are going to chase me. </p>
<p>My idea to calculate the paths was the following (X = path not usable):</p>
<pre><code>[4] [4] [X] [1] [1] [2] [3] [4] [5]
[3] [X] [X] [0] [1] [X] [X] [X] [5]
[3] [2] [1] [1] [1] [X] [3] [4] [5]
[3] [2] [2... | Context I am trying to develop a simple 2D game where some "zombies" are going to chase me. My idea to calculate the paths was the following (X = path not usable): [CODE] Starting from 0, give the positions arround it 1 value, to those close to 1, give 2 value, etc. This way I just need to search for an lower index to ... | java|android|algorithm|artificial-intelligence | 2 | 2016-05-08T15:44:14.543Z | 2,016 | 5 | 15 | 6 | 372 | 2 | 982 | 30 | 4 | 3 | true | false | false | false | false | false | low |
37,101,751 | Loading image failed in Marshmallow using BitmapFactory.DecodeResourceAsync Xamarin | <p>I am using this code to load images</p>
<pre><code>async Task<BitmapFactory.Options> GetBitmapOptionsOfImageAsync()
{
BitmapFactory.Options options = new BitmapFactory.Options
{
InJustDecodeBounds = true
... | I am using this code to load images [CODE] https://developer.xamarin.com/recipes/android/resources/general/load_large_bitmaps_efficiently/ It works fine except in Marshmallow options returns null. What am I missing? | android|xamarin|bitmap|xamarin.android | 0 | 2016-05-08T15:49:54.560Z | 2,016 | 5 | 15 | 6 | 240 | 1 | 215 | 83 | 4 | 1 | true | false | false | false | false | false | zero |
37,101,755 | URL with "@" parameter automatically transformed to "<span>@</span>" | <p>I am sending an activation email to my users that looks like this:</p>
<pre><code>Please, click here in order to validate your email address and complete the activation
of your account.
</code></pre>
<p>Where the words "click here" have a link to this URL:</p>
<pre><code>https://example.com/users/activate?usernam... | I am sending an activation email to my users that looks like this: [CODE] Where the words "click here" have a link to this URL: [CODE] It works well in most cases, but one costumer that opens the link with the Android browsers below automatically transforms the URL to https://example.com/users/activate?username=myemail... | android|character-encoding|url-encoding | 0 | 2016-05-08T15:50:22.817Z | 2,016 | 5 | 15 | 6 | 48 | 2 | 727 | 68 | 3 | 2 | true | false | false | false | false | false | zero |
37,101,772 | Access a JSON Object inside another JSON Object | <p>I have a JSON like this in my Android app :</p>
<pre><code>{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJtZWhkaS5hZ291emFsQGdtYWlsLmNvbSIsImV4cCI6MTQ2ODU1NTU4MjQ5MX0.A6-xNIZdbPv9mpjLO9jnnfbAeq1y-DC08SBUt2xBnYo",
"expires": 1468555582491,
"user": {
"imageURL": "http://app.com/images... | I have a JSON like this in my Android app : [CODE] I can access to the "token" like this : [CODE] But I don't know how to get the user email or firstname for example. How can I do that ? Thanks | android|json | 3 | 2016-05-08T15:52:32.987Z | 2,016 | 5 | 15 | 6 | 3,522 | 3 | 193 | 47 | 2 | 2 | true | false | true | false | false | false | low |
37,101,861 | Conflict between my Action_DOWN and my Scrollview | <p>As you can see on this <a href="http://i.stack.imgur.com/ZA4n5.png" rel="nofollow">image</a>, I have a grey area where there are some imageview. This area is a LinearLayout inside an Horizontal Scrollview. Moreover on each imageview, there is a OnTouchListener which start a drag and drop when there is an ACTION_DOWN... | As you can see on this image , I have a grey area where there are some imageview. This area is a LinearLayout inside an Horizontal Scrollview. Moreover on each imageview, there is a OnTouchListener which start a drag and drop when there is an ACTION_DOWN. As you have understand, there is a problem when I try to scroll.... | android|scroll|imageview|scrollview|ontouchlistener | 1 | 2016-05-08T16:02:07.943Z | 2,016 | 5 | 16 | 6 | 927 | 1 | 841 | 49 | 5 | 2 | true | false | false | false | false | false | low |
37,101,902 | Unfortunately stopped ON google map layout | <p>I'm getting unfortunately stopped error when I move to <code>Google map activity</code> from <code>addReminder Activity</code> by clicking next button. I'm not getting any syntax error.Response me as soon as possible, I am newbie on Android. </p>
<p>AddReminder.java</p>
<pre><code>public class AddReminder extends ... | I'm getting unfortunately stopped error when I move to Google map activity from addReminder Activity by clicking next button. I'm not getting any syntax error.Response me as soon as possible, I am newbie on Android. AddReminder.java [CODE] AddEventPlace XML: [CODE] AddEventPlace.java [CODE] AddReminder.xml [CODE] Manif... | java|android|google-maps | 0 | 2016-05-08T16:05:07.977Z | 2,016 | 5 | 16 | 6 | 36 | 1 | 356 | 42 | 3 | 6 | true | false | false | false | false | false | zero |
37,101,932 | ANDROID JSON Retrieve specific value of json data | <p>I want to retrieve the <code>administrative_area_level_1</code> value as the state, <code>locality</code> value as the area and <code>formatted_address</code> value as the address for further use. I use the google maps api where I give the latitude and longitude and it will return the json object which contain the d... | I want to retrieve the administrative_area_level_1 value as the state, locality value as the area and formatted_address value as the address for further use. I use the google maps api where I give the latitude and longitude and it will return the json object which contain the data I want. Below is the example of the ur... | java|android|json|google-maps-api-3 | 0 | 2016-05-08T16:08:25.130Z | 2,016 | 5 | 16 | 6 | 62 | 2 | 829 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
37,102,029 | Pubnub Sending not equal to receiving? | <p>From my PI I send a message through pubnub that contains the sequince of Leds that have been burned. Weird enough I receive something different in my Android app. </p>
<pre><code>#! /usr/bin/env python
#
import random
import time
import sys
from time import sleep
import RPi.GPIO as GPIO
from pubnub import Pubnub
... | From my PI I send a message through pubnub that contains the sequince of Leds that have been burned. Weird enough I receive something different in my Android app. [CODE] What am i doing wrong? enter image description here My activity: package be.thomasmore.sequincepi; [CODE] | android|python|pubnub | 0 | 2016-05-08T16:18:02.137Z | 2,016 | 5 | 16 | 6 | 77 | 1 | 275 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
37,102,040 | PhoneGap Build could not build cordova-plugin-local-notifications | <p>I am trying to use a plugin "cordova-plugin-local-notifications" with phonegap build but I getting build failed error continuously. </p>
<p>I think its happening because of facebook connect plugin but I am not sure.</p>
<p>Following is the log from the build:</p>
<pre><code>Build Date: 2016-05-08 16:06:12 +0000
E... | I am trying to use a plugin "cordova-plugin-local-notifications" with phonegap build but I getting build failed error continuously. I think its happening because of facebook connect plugin but I am not sure. Following is the log from the build: [CODE] And here is the config.xml file which I am using: [CODE] I spent sev... | android|cordova|phonegap-plugins|phonegap-build | 0 | 2016-05-08T16:19:04.387Z | 2,016 | 5 | 16 | 6 | 333 | 1 | 429 | 65 | 4 | 2 | true | false | false | false | false | false | zero |
37,102,041 | Facebook SDK FB.API post screenshot with user's message | <p>I'm trying to post a screenshot and upload it to the user's facebook account. I'm working with unity (c#) and using facebook SDK and it's working fine with the example code i got from their Docs. </p>
<p>I even managed to "pre-fill" a message and post it with the screenshot. But pre-filling a message is against <a ... | I'm trying to post a screenshot and upload it to the user's facebook account. I'm working with unity (c#) and using facebook SDK and it's working fine with the example code i got from their Docs. I even managed to "pre-fill" a message and post it with the screenshot. But pre-filling a message is against Facebook Platfo... | android|facebook|facebook-graph-api|unity3d | 0 | 2016-05-08T16:19:09.617Z | 2,016 | 5 | 16 | 6 | 880 | 1 | 509 | 55 | 4 | 1 | true | false | false | false | false | false | zero |
37,102,179 | Display only chosen items in RecyclerView with adapters | <p>I have a recyclerView to display all the recorded audio files. All the information of the audio files including fileName, fileLength, etc. are put into a cardView and then display them to the screen using an adapter.</p>
<p>My problem is now all the recorded audio files are displayed. What should I do to display on... | I have a recyclerView to display all the recorded audio files. All the information of the audio files including fileName, fileLength, etc. are put into a cardView and then display them to the screen using an adapter. My problem is now all the recorded audio files are displayed. What should I do to display only some spe... | android|android-recyclerview|adapter | 1 | 2016-05-08T16:35:06.943Z | 2,016 | 5 | 16 | 6 | 381 | 0 | 805 | 55 | 3 | 3 | true | true | false | false | false | false | low |
37,102,194 | Why cursor begin with 0? | <p>I have the <strong>MainFragment:</strong></p>
<pre><code>@Override
public void onStart() {
super.onStart();
MissedCallCounter listener = new MissedCallCounter(getActivity());
TelephonyManager telephonyManager = (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE);
telephonyMa... | I have the MainFragment: [CODE] MainActivity: [CODE] and MissedCallCounter: [CODE] Question: Why cursor begin with 0? If I get 1 missed call, that cursor.getCount() = 0 , if I get 2 missed calls, that cursor.getCount() = 1 etc. But if I reopen MainFragment, that 1 missed call == cursor.getCount() = 1 etc, as it should ... | android|cursor | 0 | 2016-05-08T16:36:52.640Z | 2,016 | 5 | 16 | 6 | 45 | 0 | 389 | 24 | 2 | 3 | true | true | false | false | false | false | zero |
37,102,240 | 'Cannot resolve symbol mGoogleApiClient' - Android Studio | <p>I'm writing an app with AndroidStudio, I wanted to integrate it with Google+ login, so I used tutorial.</p>
<p>On my LoginActivity is this code:</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)... | I'm writing an app with AndroidStudio, I wanted to integrate it with Google+ login, so I used tutorial. On my LoginActivity is this code: [CODE] on build gradle I have: [CODE] And still, at the LoginActivity I get "Cannot resolve symbol mGoogleApiClient. How can I fix this? | android | 0 | 2016-05-08T16:41:26.787Z | 2,016 | 5 | 16 | 6 | 4,742 | 1 | 274 | 57 | 1 | 2 | true | false | true | false | false | false | zero |
37,102,369 | StackoverflowError while inflating Fragment | <p>I have some weird Stackoverflowerror which is thrown in the onCreateView() method of a Fragment i use. </p>
<p><a href="https://i.stack.imgur.com/hCglE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCglE.png" alt="enter image description here"></a></p>
<p>As you can see in this image, that is ... | I have some weird Stackoverflowerror which is thrown in the onCreateView() method of a Fragment i use. As you can see in this image, that is the method where it breaks. The First TODO should be where the error comes from. I have no idea what could be wrong with that line: [CODE] I would be very glad to hear any tipps f... | java|android|android-fragments|fragment | -2 | 2016-05-08T16:54:08.320Z | 2,016 | 5 | 16 | 6 | 269 | 1 | 478 | 43 | 4 | 3 | true | false | false | false | false | true | negative |
37,102,769 | undefined lame decode function | <p>I'm trying to add MP3 read and write capabilities to my Android app. I'm using the lame4android app as a starting point. Encoding a file works for me, but I'm having a problem with the decode functions -- I'm getting undefined references to the decode functions.</p>
<p>Here are excerpts from my wrapper.c:</p>
<p... | I'm trying to add MP3 read and write capabilities to my Android app. I'm using the lame4android app as a starting point. Encoding a file works for me, but I'm having a problem with the decode functions -- I'm getting undefined references to the decode functions. Here are excerpts from my wrapper.c: [CODE] And here are ... | android|android-ndk|java-native-interface|lame | 1 | 2016-05-08T17:31:59.320Z | 2,016 | 5 | 17 | 6 | 712 | 1 | 1,120 | 30 | 4 | 3 | true | false | false | false | false | false | low |
37,102,770 | android: honor 7 phone does not receive Boot Complete or WakefulBroadcastReceiver | <p>I have written an android app which has to start working on startup or keep working after closing the app (swiping it away). This works fine on an emulator or on my p8 phone but I do not know why honor 7 is not able to do so. I mean at the early stages of developing it was working but now it does not. after swipping... | I have written an android app which has to start working on startup or keep working after closing the app (swiping it away). This works fine on an emulator or on my p8 phone but I do not know why honor 7 is not able to do so. I mean at the early stages of developing it was working but now it does not. after swipping aw... | android | 3 | 2016-05-08T17:32:09.253Z | 2,016 | 5 | 17 | 6 | 127 | 0 | 550 | 81 | 1 | 2 | true | true | false | false | false | false | low |
37,102,784 | get local pharmacies geolocation info | <p>I want to add a map to my application to locate pharmacies in my country and add a markers in the map with my current location. </p>
<p>Should I do this manually by adding the latitude and longitude of each pharmacy? </p>
<p>First this method is a little tiring because there is a lot of pharmacies. Secondly it's n... | I want to add a map to my application to locate pharmacies in my country and add a markers in the map with my current location. Should I do this manually by adding the latitude and longitude of each pharmacy? First this method is a little tiring because there is a lot of pharmacies. Secondly it's not effective because ... | android|google-maps|gps|google-places-api | 1 | 2016-05-08T17:33:45.877Z | 2,016 | 5 | 17 | 6 | 169 | 0 | 480 | 37 | 4 | 3 | true | true | false | false | false | false | low |
37,102,820 | process has stopped during share image | <p>I want to share image in android. I examine a lot of code to do that but all codes make application stopped .the logcat error is as below:</p>
<pre><code>05-08 22:17:33.656 25125-25125/ir.whc.news E/AndroidRuntime: FATAL EXCEPTION: main
05-08 22:17:33.656 25125-25125/ir.whc.news E/AndroidRuntime: java.lang.RuntimeE... | I want to share image in android. I examine a lot of code to do that but all codes make application stopped .the logcat error is as below: [CODE] and this is my code: [CODE] what's wrong with my code? EDITE: imageItem class [CODE] | android|image|share-intent | 1 | 2016-05-08T17:37:14.510Z | 2,016 | 5 | 17 | 6 | 225 | 3 | 230 | 38 | 3 | 3 | true | false | false | false | false | false | low |
37,102,844 | MvxVisibility doesn't work correctly | <p>I have a custom visibility converter.</p>
<pre><code>public class BackupDateVisibilityConverter : IMvxValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var backupDate = (DateTime)value;
var test = backupDate == ... | I have a custom visibility converter. [CODE] It returns correctly first MvxVisibility.Collapsed and after I update the value MvxVisibility.Visible. But strangly the element is visible when Collapsed is returned and hidden when visible is returned. On Windows it is completly ignored. This is my binding: [CODE] When I bi... | android|win-universal-app|mvvmcross | 1 | 2016-05-08T17:38:38.237Z | 2,016 | 5 | 17 | 6 | 187 | 0 | 429 | 36 | 3 | 3 | true | true | false | false | false | false | low |
37,102,888 | How to convert Kivy into .apk with PyDictionary? | <p>As an exercise to learn Kivy, I have created a simple app using PyDictionary. It works fine in my Windows Python environment. But it gave me tons and tons of issues when converting it into a working apk file.</p>
<p>From what I've heard, we need to identify whether the module is pure python or not, and their import... | As an exercise to learn Kivy, I have created a simple app using PyDictionary. It works fine in my Windows Python environment. But it gave me tons and tons of issues when converting it into a working apk file. From what I've heard, we need to identify whether the module is pure python or not, and their import method int... | android|python-2.7|module|apk|kivy | 0 | 2016-05-08T17:42:33.100Z | 2,016 | 5 | 17 | 6 | 622 | 0 | 862 | 48 | 5 | 4 | true | true | false | false | false | false | zero |
37,102,909 | Issue with object spawning when touching the screen [LibGDX] | <p>In my game there's raining meteorites of differnet sizes. I've tried to make it so that if you touch a bigger meteorite, it will be removed (from an array), and a smaller meteorite object will take it's place on the same place as the bigger was removed. </p>
<p>The problem I have is that if you touch a bigger meteo... | In my game there's raining meteorites of differnet sizes. I've tried to make it so that if you touch a bigger meteorite, it will be removed (from an array), and a smaller meteorite object will take it's place on the same place as the bigger was removed. The problem I have is that if you touch a bigger meteorite, it wil... | java|android|libgdx | 0 | 2016-05-08T17:44:49.743Z | 2,016 | 5 | 17 | 6 | 69 | 1 | 575 | 60 | 3 | 1 | true | false | false | false | false | false | zero |
37,102,962 | Proper way to alert user of iOS app issue | <p>When developing Java apps used internally by users in the company I work for, I would have the app display a message such as "An issue occurred. Please contact the Help Desk and report it", when an issue occurs with the app that is being used.</p>
<p>Now that I am learning to develop mobile apps on my own, I am fa... | When developing Java apps used internally by users in the company I work for, I would have the app display a message such as "An issue occurred. Please contact the Help Desk and report it", when an issue occurs with the app that is being used. Now that I am learning to develop mobile apps on my own, I am faced with the... | android|ios|error-handling | 0 | 2016-05-08T17:50:15.863Z | 2,016 | 5 | 17 | 6 | 38 | 2 | 1,067 | 41 | 3 | 0 | false | false | false | false | false | false | zero |
37,103,015 | why custom dialog buttons dont work? | <p>I have a custom dialog in my app but when I click on the buttons of dialog they don't work!</p>
<p>I want to show dialog in one of the items of navigation drawer
and that's code:</p>
<pre><code>dialog = new Dialog(MaterialCardsActivity.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
di... | I have a custom dialog in my app but when I click on the buttons of dialog they don't work! I want to show dialog in one of the items of navigation drawer and that's code: [CODE] How can I resolve it? Custom_Dialog.java [CODE] dialog_mail.xml [CODE] final result but buttons don't work | android|dialog|customdialog | 0 | 2016-05-08T17:55:30.320Z | 2,016 | 5 | 17 | 6 | 148 | 1 | 285 | 36 | 3 | 3 | true | false | false | false | false | false | zero |
37,103,044 | android.database.sqlite.SQLiteException: no such table: USER_DATA_TABLE (code 1): , while compiling: SELECT * FROM USER_DATA_TABLE WHERE id=? LIMIT 1 | <p>I'm facing a very strange error during running android app in Android Studio on emulator. Error is pasted below.</p>
<p>I'm not using SQLite for db. I'm using Shared performances. There is no reference to USER_DATA_TABLE or SQLite in the code. </p>
<p>The only place where I could see reference to USER_DATA_TABLE &... | I'm facing a very strange error during running android app in Android Studio on emulator. Error is pasted below. I'm not using SQLite for db. I'm using Shared performances. There is no reference to USER_DATA_TABLE or SQLite in the code. The only place where I could see reference to USER_DATA_TABLE & SQLite is in /build... | java|android|sqlite|android-studio | 0 | 2016-05-08T17:58:35.190Z | 2,016 | 5 | 17 | 6 | 2,364 | 1 | 749 | 149 | 4 | 3 | true | false | false | false | false | false | zero |
37,103,050 | ATOM-128 string encryption/decryption (Android Studio) | <p>I am trying to make an Android app that encrypts any given string in ATOM-128
example : input "hello" / output "MIH3+/CC+qCC"
I already tried it with c# (windows desktop app) and it's working well when I tried to do the same thing with java in android studio I have this results :
input "hello"
outut "266214427064642... | I am trying to make an Android app that encrypts any given string in ATOM-128 example : input "hello" / output "MIH3+/CC+qCC" I already tried it with c# (windows desktop app) and it's working well when I tried to do the same thing with java in android studio I have this results : input "hello" outut "266214427064642748... | java|android|encryption | 0 | 2016-05-08T17:58:56.330Z | 2,016 | 5 | 17 | 6 | 598 | 1 | 351 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
37,103,088 | How to insert/update the database according to device's language | <p>When the user opens the app for the first time I'd like to insert into database some values.</p>
<p><strong>Question 1: How is the best way to insert into database for the first time?</strong></p>
<p>By now I'm using GreenDAO. Should I still continue using it or change it?</p>
<p>I also want to insert the values ... | When the user opens the app for the first time I'd like to insert into database some values. Question 1: How is the best way to insert into database for the first time? By now I'm using GreenDAO. Should I still continue using it or change it? I also want to insert the values according to device's language. If the user ... | android|android-database | 0 | 2016-05-08T18:02:30.620Z | 2,016 | 5 | 18 | 6 | 85 | 1 | 1,350 | 64 | 2 | 1 | true | false | false | false | false | false | zero |
37,103,239 | Getting 500 errors from Google Play Developer API when adding IAPs | <p>I keep getting these when trying to submit my updates using Google Play Developer Java library:</p>
<pre><code>com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal
Server Error
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal Error",
"reason" : "... | I keep getting these when trying to submit my updates using Google Play Developer Java library: [CODE] The code is: [CODE] These are more details, because stackoverflow wants unnecessary text. These are more details, because stackoverflow wants unnecessary text.These are more details, because stackoverflow wants unnece... | android|scala|google-play | 0 | 2016-05-08T18:17:21.990Z | 2,016 | 5 | 18 | 6 | 1,416 | 1 | 1,366 | 66 | 3 | 2 | true | false | false | false | false | false | zero |
37,103,505 | Android: MyGCMListenerService service force close | <p>I use <code>GCM</code> for notification</p>
<p>But this class not work</p>
<blockquote>
<p>Manifest.xml</p>
</blockquote>
<pre><code><service
android:name=".MyGCMListenerService"
android:exported="false"
android:enabled="true" >
<intent-filter>
... | I use GCM for notification But this class not work Manifest.xml [CODE] MyGCMListenerService.java [CODE] Error Log : [CODE] | android|notifications|google-cloud-messaging | 0 | 2016-05-08T18:42:28.880Z | 2,016 | 5 | 18 | 6 | 89 | 0 | 122 | 49 | 3 | 3 | true | true | false | false | false | false | zero |
37,103,510 | How to set ActionBar title from a getView method inside baseAdapter | <p>I have a method as follows, would like to set an ActionBar title from this method so I can be able to access "position".</p>
<pre><code> @Override
public View getView(int position, View convertView, ViewGroup parent){
View songLay = convertView;
if (convertView == null) {
... | I have a method as follows, would like to set an ActionBar title from this method so I can be able to access "position". [CODE] EDIT Inside the onCreate I have this: [CODE] But where there's "1", should be the position found in the above method. Can this be done here? If so how do I go about doing it? Or any alternativ... | java|android|methods|getview | 0 | 2016-05-08T18:43:17.800Z | 2,016 | 5 | 18 | 6 | 102 | 1 | 323 | 67 | 4 | 2 | true | false | false | false | false | false | zero |
37,103,571 | Android front camera images are being saved upside down | <p>I am building an android application that uses the camera capabilities. The issue I am having is the image data (byte[]) that I get from the front camera comes back upside down on my samsung s7 and nexus phone. It appears correct in the preview, but after I save the data as is and then display the images in a galle... | I am building an android application that uses the camera capabilities. The issue I am having is the image data (byte[]) that I get from the front camera comes back upside down on my samsung s7 and nexus phone. It appears correct in the preview, but after I save the data as is and then display the images in a gallery t... | android|camera|android-camera|orientation | 2 | 2016-05-08T18:49:08.807Z | 2,016 | 5 | 18 | 6 | 4,360 | 1 | 1,042 | 55 | 4 | 3 | true | false | true | false | false | false | low |
37,103,605 | Retrive data from Mysql android php | <p>I want to retriev data from mysql data base according to an id send by the user in Editext and the result show it in listview
this is my script php</p>
<pre><code><?php
$DB_USER='root';
$DB_PASS='';
$DB_HOST='localhost';
$DB_NAME='pfe';
$mysqli = new mysqli($DB_HOST, $DB_USER, $DB_PASS, $DB_NAME);
/* chec... | I want to retriev data from mysql data base according to an id send by the user in Editext and the result show it in listview this is my script php [CODE] java [CODE] this is the error i get " java.net.SocketException: socket failed: EACCES (Permission denied)" my manifest file [CODE] | java|php|android|mysql | 0 | 2016-05-08T18:52:12.363Z | 2,016 | 5 | 18 | 6 | 42 | 0 | 285 | 35 | 4 | 3 | true | true | false | false | false | false | zero |
37,103,612 | Android onActivityResult in dialog | <p>There is a DialogFragment (<code>SettingsBackImageDialog</code>) opens by click on button in Fragment (<code>TrainerSettings</code>) in MainActivity. In <code>SettingsBackImageDialog</code> are some buttons, one of them is for take picture and set it for Imageview (<code>trainersettingsmainicon</code>) in Fragment.<... | There is a DialogFragment ( SettingsBackImageDialog ) opens by click on button in Fragment ( TrainerSettings ) in MainActivity. In SettingsBackImageDialog are some buttons, one of them is for take picture and set it for Imageview ( trainersettingsmainicon ) in Fragment. I open SettingsBackImageDialog in TrainerSettings... | java|android|android-fragments|android-studio | 3 | 2016-05-08T18:52:49.997Z | 2,016 | 5 | 18 | 6 | 6,113 | 1 | 716 | 34 | 4 | 4 | true | false | true | false | false | false | low |
37,103,772 | java.lang.IllegalStateException at android.media.MediaRecorder | <p>I am trying to record sound using microphone. The code works perfectly on <strong>Samsung Note 2 (N7100)</strong> however I receive some errors on some devices. What is the mean of these errors? My codes below here. Thanks in advance.</p>
<pre><code> private void startRecording() {
CharSequence now = android... | I am trying to record sound using microphone. The code works perfectly on Samsung Note 2 (N7100) however I receive some errors on some devices. What is the mean of these errors? My codes below here. Thanks in advance. [CODE] Errors: Error on General Mobile Android 4.2 [CODE] Error on LG G2 Android 4.4 [CODE] | java|android|mediarecorder | 2 | 2016-05-08T19:07:20.790Z | 2,016 | 5 | 19 | 6 | 2,187 | 1 | 309 | 62 | 3 | 3 | true | false | false | false | false | false | low |
37,103,948 | How to make JUnit4 "Wait" for asynchronous job to finish before running tests | <p>I am trying to write a test for my android app that communicates with a cloud service.
Theoretically the flow for the test is supposed to be this:</p>
<ol>
<li>Send request to the server in a worker thread</li>
<li>Wait for the response from the server</li>
<li>Check the response returned by the server</li>
</ol>
... | I am trying to write a test for my android app that communicates with a cloud service. Theoretically the flow for the test is supposed to be this: Send request to the server in a worker thread Wait for the response from the server Check the response returned by the server I am trying to use Espresso's IdlingResource cl... | java|android|multithreading|junit4|android-espresso | 5 | 2016-05-08T19:27:08.640Z | 2,016 | 5 | 19 | 6 | 8,069 | 2 | 789 | 77 | 5 | 2 | true | false | true | false | false | false | low |
37,103,985 | Use function from other classes inside of main class android java | <p>hello i have problem to load function from another class into main class in android java</p>
<p>package com.sourcebring.wordbring;</p>
<pre><code>import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
public class MainActi... | hello i have problem to load function from another class into main class in android java package com.sourcebring.wordbring; [CODE] and this is my class [CODE] with this code i have no error on program but when i compile project and i want to run it, my android program stopped. but when i dont use ntfi class and i use t... | java|android|android-studio | -1 | 2016-05-08T19:30:37.550Z | 2,016 | 5 | 19 | 6 | 893 | 2 | 549 | 65 | 3 | 4 | true | false | false | false | false | true | negative |
37,104,086 | Sending targeted push notification to Android app, which is based on Azure | <p>I have Android app, which is working with Azure IoT hub.
There are several tables on Azure, one of which stores credentials of registered users of my app. This table has one column called "userId" and records are unique here.</p>
<p>I also have node.js script which will be processing data in one of the tables and s... | I have Android app, which is working with Azure IoT hub. There are several tables on Azure, one of which stores credentials of registered users of my app. This table has one column called "userId" and records are unique here. I also have node.js script which will be processing data in one of the tables and sending push... | android|node.js|azure|push-notification|google-cloud-messaging | 0 | 2016-05-08T19:42:31.413Z | 2,016 | 5 | 19 | 6 | 361 | 1 | 595 | 74 | 5 | 1 | true | false | false | false | false | false | zero |
37,104,109 | Android RuntimeException is occurring silently and not being logged | <p>So I have some code that's throwing a RuntimeException. I know it's throwing a RuntimeException, I wrote it to do so under certain circumstances. Recently, I was having what I thought was a deadlock, because the method didn't seem to be finishing, but as I logged out the problem I realized that it was in fact that R... | So I have some code that's throwing a RuntimeException. I know it's throwing a RuntimeException, I wrote it to do so under certain circumstances. Recently, I was having what I thought was a deadlock, because the method didn't seem to be finishing, but as I logged out the problem I realized that it was in fact that Runt... | java|android|multithreading | 2 | 2016-05-08T19:46:04.423Z | 2,016 | 5 | 19 | 6 | 86 | 0 | 2,362 | 67 | 3 | 2 | true | true | false | false | false | false | low |
37,104,189 | Action bar and menu are not showing on the fragment activity | <p>I have created a fragment activity for google map but the action bar and menu are not showing I tried different solution but none of theme has solved the problem</p>
<pre><code>public class FitnessTrackerActivity extends FragmentActivity {
private GoogleMap map;
GpsTracker gps;
TrackDBHelper mDBHelper;
... | I have created a fragment activity for google map but the action bar and menu are not showing I tried different solution but none of theme has solved the problem [CODE] and this is the menu that I'm trying to use: [CODE] this is the FitnessTrackerActivity XML [CODE] | android|android-fragments | 1 | 2016-05-08T19:54:43.523Z | 2,016 | 5 | 19 | 6 | 146 | 2 | 266 | 60 | 2 | 3 | true | false | false | false | false | false | low |
37,104,350 | Wordnet sqlite Synonyms and Samples | <p>I am trying to get the list of Synonyms and Samples given the wordid. After a lot of trial and error I can get the samples for all the synsets but not the actual synonyms. Here is my query which gives me the following results.</p>
<p><code>select senses.wordid, senses.synsetid, senses.sensekey, synsets.definition F... | I am trying to get the list of Synonyms and Samples given the wordid. After a lot of trial and error I can get the samples for all the synsets but not the actual synonyms. Here is my query which gives me the following results. select senses.wordid, senses.synsetid, senses.sensekey, synsets.definition FROM senses LEFT O... | mysql|sql|sqlite|android-sqlite|wordnet | 0 | 2016-05-08T20:11:23.280Z | 2,016 | 5 | 20 | 6 | 923 | 2 | 992 | 35 | 5 | 1 | true | false | false | false | false | false | zero |
37,104,383 | Android storage access framework persistable permission not granted during asyntask | <p>I set the intent flags here:</p>
<pre><code>public void createAlbum(View view) {
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
intent.ad... | I set the intent flags here: [CODE] Here in my activity result I set the persistable permissions as they are explained here : [CODE] After the content style Uri’s are saved to a sqlite3 database, I want to load them in a gridview, but asynchronously as described here . Here is my implementation of decodeSampledBitmapFr... | android|android-asynctask|permissions|android-bitmap | 3 | 2016-05-08T20:14:52.563Z | 2,016 | 5 | 20 | 6 | 3,691 | 2 | 945 | 83 | 4 | 5 | true | false | true | false | false | false | low |
37,104,460 | ViewPager does not scroll fragments | <p>ViewPager does not scroll fragments:</p>
<p>I include ViewPager inside activity.
And create two fragments, but when i scroll view pager (horizintal) only 1rst Framgent selects:</p>
<pre><code> _pageAdapter=new PagerAdapter(getSupportFragmentManager());
_viewPager= (ViewPager) findViewById(R.id.viewPager);... | ViewPager does not scroll fragments: I include ViewPager inside activity. And create two fragments, but when i scroll view pager (horizintal) only 1rst Framgent selects: [CODE] Here code of PageAdapter: [CODE] Tell me, how to make ViewPager scrolls two fragments. | android|android-fragments|android-viewpager | 0 | 2016-05-08T20:24:06.217Z | 2,016 | 5 | 20 | 6 | 356 | 1 | 263 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
37,104,605 | Update vertical thumb in android Seekbar | <p>I want to update the vertical position of the thumb of a custom Seekbar.</p>
<p>Currently the status I have</p>
<p><a href="https://i.stack.imgur.com/oKoAr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oKoAr.png" alt="Current Status"></a></p>
<p>But I want to make the thumb to centered at the... | I want to update the vertical position of the thumb of a custom Seekbar. Currently the status I have But I want to make the thumb to centered at the top edge of the background to be like this Seekbar xml [CODE] And this the media_progress_bar.xml [CODE] Any Ideas how to achieve this. | android|xml|seekbar|android-seekbar | 0 | 2016-05-08T20:41:36.350Z | 2,016 | 5 | 20 | 6 | 386 | 1 | 284 | 40 | 4 | 2 | true | false | false | false | false | false | zero |
37,104,640 | Fragment in Android: using WebView with external links | <p>I create app and have problem with using WebView with external links in Fragment.</p>
<p>I have webView_layout.xml</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><RelativeLayout xmlns:android="http://sc... | I create app and have problem with using WebView with external links in Fragment. I have webView_layout.xml [CODE] And class [CODE] I try to use WebView in Fragment with next case: if URL don't contains "google.com" redirects to open link in default browser. Can anybody help me? | android|android-fragments|webview | 1 | 2016-05-08T20:46:19.773Z | 2,016 | 5 | 20 | 6 | 179 | 1 | 279 | 54 | 3 | 2 | true | false | false | false | false | false | low |
37,104,696 | How can I refresh navigation page from left menu master page if navigation page is already on top of the stack? | <p>So, I have a master page that contains the left menu you access from the hamburger icon on Page A. </p>
<p>On that left menu, I have a button called "Refresh Page A" and when I click that button, I want the contents of Page A which is already on top of the stack to refresh/reload. </p>
<p>However, I'm having an is... | So, I have a master page that contains the left menu you access from the hamburger icon on Page A. On that left menu, I have a button called "Refresh Page A" and when I click that button, I want the contents of Page A which is already on top of the stack to refresh/reload. However, I'm having an issue because the const... | c#|android|xamarin|xamarin.forms | 0 | 2016-05-08T20:53:16.460Z | 2,016 | 5 | 20 | 6 | 4,083 | 1 | 632 | 111 | 4 | 2 | true | false | true | false | false | false | zero |
37,104,742 | How to change image in GridView? | <p>I have a problem with GridView. I want to change image through code in GridView (not OnClickListener etc.) but I have lost any hope...here's my code:</p>
<p>ImageAdapter:</p>
<pre><code>package com.example.rafal.gra;
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedVa... | I have a problem with GridView. I want to change image through code in GridView (not OnClickListener etc.) but I have lost any hope...here's my code: ImageAdapter: [CODE] EquipmentActivity: [CODE] The most important thing here is public void backpack(). Inside it I want to write code to change image in GridView. I hope... | java|android|gridview | 1 | 2016-05-08T20:57:34.663Z | 2,016 | 5 | 20 | 6 | 231 | 1 | 441 | 32 | 3 | 2 | true | false | false | false | false | false | low |
37,104,887 | Issue with using an image button in Android Studio | <p>I'm creating a Soundboard app which uses buttons currently to make different sounds. However I want to change the buttons to image buttons, having tried this I get the following error:
Unexpected Cast to ImageButton: Layout tag was imageView.
I've tried looking around the internet but can't find a fix. The code in t... | I'm creating a Soundboard app which uses buttons currently to make different sounds. However I want to change the buttons to image buttons, having tried this I get the following error: Unexpected Cast to ImageButton: Layout tag was imageView. I've tried looking around the internet but can't find a fix. The code in the ... | android|imagebutton|android-imagebutton | 1 | 2016-05-08T21:16:29.503Z | 2,016 | 5 | 21 | 6 | 4,932 | 3 | 542 | 50 | 3 | 2 | true | false | true | false | false | false | low |
37,104,960 | BottomSheetDialog with transparent background | <p>I would like to display a bottom sheet dialog less wide than the screen width.</p>
<p>For instance, the Share option from Google Play Music on a Nexus 9.</p>
<p><a href="https://i.stack.imgur.com/Wv7Pi.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Wv7Pi.jpg" alt="the Share option from Google Play Music... | I would like to display a bottom sheet dialog less wide than the screen width. For instance, the Share option from Google Play Music on a Nexus 9. Do you know how to achieve this ? For now I just succed to reduce the width of the sheet content but the background is still at the screen width and display a white backgrou... | android | 92 | 2016-05-08T21:23:29.403Z | 2,016 | 5 | 21 | 6 | 87,865 | 24 | 392 | 45 | 1 | 3 | true | false | true | true | true | false | high |
37,104,991 | Android: Wifi P2P list is not being updated properly | <p>I'm implementing an application where I have to discover devices using WiFi p2p and record some data about every detected device. The problem I'm having is that when a device goes from online to offline, the <code>WifiP2pDeviceList</code> is not being updated so that it removes this device. But when a new device a d... | I'm implementing an application where I have to discover devices using WiFi p2p and record some data about every detected device. The problem I'm having is that when a device goes from online to offline, the WifiP2pDeviceList is not being updated so that it removes this device. But when a new device a detected it is ad... | android|wifip2p | 0 | 2016-05-08T21:26:05.860Z | 2,016 | 5 | 21 | 6 | 286 | 1 | 505 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
37,105,010 | Language recognition only works if I change the system language input | <p>I have an english/french application. Defining the EXTRA_LANGUAGE_PREFERENCE is not enough. My app works well as long as I change the system language input to map the target desired language.</p>
<p>Any idea if I do something wrong? Below is the code I'm using.</p>
<pre><code>private void initSpeech(){
Context... | I have an english/french application. Defining the EXTRA_LANGUAGE_PREFERENCE is not enough. My app works well as long as I change the system language input to map the target desired language. Any idea if I do something wrong? Below is the code I'm using. [CODE] | android|voice-recognition | 1 | 2016-05-08T21:27:39.290Z | 2,016 | 5 | 21 | 6 | 126 | 1 | 261 | 69 | 2 | 1 | true | false | false | false | false | false | low |
37,105,036 | EditText on toolbar | <p>Hello i wanna make my EditText to occupy all of my toolbar when i clicked it and i want that after the user ends typing to make the toolbar go back to normal.</p>
<p>Here is my xml file for the menu</p>
<pre><code><item android:id="@+id/action_search"
android:title="search"
android:orderInCategory="100"... | Hello i wanna make my EditText to occupy all of my toolbar when i clicked it and i want that after the user ends typing to make the toolbar go back to normal. Here is my xml file for the menu [CODE] And here is my java code [CODE] Thank you in advance. | android|android-edittext|android-toolbar | 0 | 2016-05-08T21:31:19.437Z | 2,016 | 5 | 21 | 6 | 771 | 1 | 252 | 19 | 3 | 2 | true | false | false | false | false | false | zero |
37,105,066 | Android Data Binding pass arguments to onClick method | <p>Is it possible to pass custom arguments to <code>onClick</code> method using the Data Binding Library? I have my layout xml file where I need to use the onClickListener:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<layout ...>
<data>
<variable
name="viewModel"... | Is it possible to pass custom arguments to onClick method using the Data Binding Library? I have my layout xml file where I need to use the onClickListener: [CODE] and I a have my click handler code here: [CODE] Is it possible to pass my CategoryViewModel object from xml to click handler? | java|android|xml|data-binding | 83 | 2016-05-08T21:34:55.350Z | 2,016 | 5 | 21 | 6 | 94,666 | 2 | 289 | 53 | 4 | 2 | true | false | true | true | true | false | high |
37,105,098 | What is the best way to inject subclasses using Dagger 2? | <p>I recently started using Dagger 2 to manage the depency injections of my app. In order to make some classes testable, I started creating many classes that I need to inject. I was able to do so, however, the process to get these new classes injected look a little bit complicaded to me. Lets take an example:</p>
<p>I... | I recently started using Dagger 2 to manage the depency injections of my app. In order to make some classes testable, I started creating many classes that I need to inject. I was able to do so, however, the process to get these new classes injected look a little bit complicaded to me. Lets take an example: I would like... | android|dependency-injection|dagger|dagger-2 | 3 | 2016-05-08T21:38:21.730Z | 2,016 | 5 | 21 | 6 | 987 | 1 | 1,292 | 57 | 4 | 4 | true | false | false | false | false | false | low |
37,105,277 | Android Studio Gradle - Failed to resolve dependency : acra | <p>I am willing to add Acra to my android studio project.</p>
<p>However, although <a href="https://github.com/ACRA/acra/wiki/BasicSetup" rel="nofollow">tutorial</a> looks pretty simple , I am unable to get the dependency, and I get the error:</p>
<p><em>Failed to resolve: ch.acra:acra:4.8.5</em></p>
<p><strong>Grad... | I am willing to add Acra to my android studio project. However, although tutorial looks pretty simple , I am unable to get the dependency, and I get the error: Failed to resolve: ch.acra:acra:4.8.5 Grade File: [CODE] What am I missing? I also get this in terminal: [CODE] | android|gradle|dependencies|android-gradle-plugin|acra | 1 | 2016-05-08T21:59:09.280Z | 2,016 | 5 | 21 | 6 | 1,428 | 3 | 271 | 59 | 5 | 2 | true | false | false | false | false | false | low |
37,105,278 | HttpLoggingInterceptor not logging with retrofit 2 | <p>Im trying to log all the requests (with a network interceptor) using refrofit2, kotlin and logging-interceptor:</p>
<ul>
<li>retrofit: "2.0.2" </li>
<li>okhttp3 : "3.2.0"</li>
<li>com.squareup.okhttp3:logging-interceptor 3.2.0</li>
</ul>
<p>like:</p>
<pre><code>val interceptor = HttpLoggingInterceptor()
inter... | Im trying to log all the requests (with a network interceptor) using refrofit2, kotlin and logging-interceptor: retrofit: "2.0.2" okhttp3 : "3.2.0" com.squareup.okhttp3:logging-interceptor 3.2.0 like: [CODE] It just print: [CODE] What is happening? --------------- EDIT -------- Errors doing requests on Main Thread are ... | android|kotlin|retrofit2 | 10 | 2016-05-08T21:59:11.123Z | 2,016 | 5 | 21 | 6 | 15,413 | 2 | 361 | 50 | 3 | 2 | true | false | true | true | true | false | medium |
37,105,293 | To make a decent to high quality mobile version of my website? | <p>I'm new to Stack Overflow, but I asked a question last night regarding some code and it was answered just over night. I'm very glad I finally signed up here. Anyway, on to my question...</p>
<p>I need to make a mobile version of my website<a href="http://www.famebyname.us/" rel="nofollow"> [www.famebyname.us]</a></... | I'm new to Stack Overflow, but I asked a question last night regarding some code and it was answered just over night. I'm very glad I finally signed up here. Anyway, on to my question... I need to make a mobile version of my website [www.famebyname.us] I am using Dreamweaver CS6, and my intention with the domain is to ... | java|android|html|mobile|web | 0 | 2016-05-08T22:00:58.973Z | 2,016 | 5 | 22 | 6 | 34 | 1 | 1,013 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
37,105,302 | Facebook page plugin within android webview | <p>I have no experience with making an app so i decided to just make a website and run that in an app. The website works fine in a browser and also in the app except:</p>
<p>My only problem is that the website uses a page plugin (<a href="https://developers.facebook.com/docs/plugins/page-plugin" rel="nofollow">https:/... | I have no experience with making an app so i decided to just make a website and run that in an app. The website works fine in a browser and also in the app except: My only problem is that the website uses a page plugin ( https://developers.facebook.com/docs/plugins/page-plugin ) that's used on my standard site (this is... | javascript|php|android|html|facebook | 2 | 2016-05-08T22:01:46.097Z | 2,016 | 5 | 22 | 6 | 304 | 0 | 739 | 43 | 5 | 1 | true | true | false | false | false | false | low |
37,105,306 | Lock Screen Visualizer - Cyanogenmod | <p>I am developing a music player app and have noticed specifically on Cyanogemod ROMS that there is a lock screen music visualizer (there are probably other ROMS with something similar that I haven't seen). My app uses a background service to keep music playing even if the app is closed. Currently my app has a lock s... | I am developing a music player app and have noticed specifically on Cyanogemod ROMS that there is a lock screen music visualizer (there are probably other ROMS with something similar that I haven't seen). My app uses a background service to keep music playing even if the app is closed. Currently my app has a lock scree... | android|audio-player|cyanogenmod|android-music-player | 3 | 2016-05-08T22:02:30.787Z | 2,016 | 5 | 22 | 6 | 2,055 | 0 | 1,614 | 36 | 4 | 0 | false | true | false | false | false | false | low |
37,105,352 | Error starting another activity | <p>I am learning from android.com/training/basics. This is my myfirstapp.</p>
<p>here's my DisplayMessageActivity.java</p>
<pre><code>import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.suppor... | I am learning from android.com/training/basics. This is my myfirstapp. here's my DisplayMessageActivity.java [CODE] } Now the error is: Error:(39, 67) error: cannot find symbol variable content "content_display_message.xml" [CODE] "activity_message.display.xml" [CODE] [CODE] | android | 0 | 2016-05-08T22:08:18.863Z | 2,016 | 5 | 22 | 6 | 58 | 1 | 275 | 31 | 1 | 4 | true | false | false | false | false | false | zero |
37,105,363 | How can I add google play services to Ionic Android Project? | <p>I am trying to make this plugin work with my ionic app: </p>
<p><a href="https://github.com/pmwisdom/cordova-background-geolocation-services" rel="nofollow">https://github.com/pmwisdom/cordova-background-geolocation-services</a></p>
<p>This plugin needs Google Play Services installed to work.</p>
<p>I have instal... | I am trying to make this plugin work with my ionic app: https://github.com/pmwisdom/cordova-background-geolocation-services This plugin needs Google Play Services installed to work. I have installed it through android SDK and followed this steps in order to get the library included into my project: https://developer.an... | android|cordova|ionic-framework|geolocation|google-play-services | 0 | 2016-05-08T22:09:18.567Z | 2,016 | 5 | 22 | 6 | 2,907 | 1 | 694 | 60 | 5 | 1 | true | false | true | false | false | false | zero |
37,105,372 | Trying to implement MVP using Dagger 2 - How can I get a reference to the Activity in the provided presenter | <p>I am trying to set up an app with MVP and Dagger,</p>
<p>The <strong>view</strong> is an <code>Activity</code> which implements a view interface.</p>
<pre><code>public class OverviewActivity extends AppCompatActivity implements OverviewContract.View {
@Inject OverviewPresenter presenter;
@BindView(R.id.h... | I am trying to set up an app with MVP and Dagger, The view is an Activity which implements a view interface. [CODE] The presenter looks like so [CODE] Where I am having trouble is with the provider for the presenter. One of the dependencies of OverviewPresenter is the OverviewActivity , but how am I supposed to inject ... | android|dependency-injection|mvp|dagger-2 | 1 | 2016-05-08T22:10:55.503Z | 2,016 | 5 | 22 | 6 | 1,768 | 2 | 666 | 108 | 4 | 4 | true | false | false | false | false | false | low |
37,105,386 | Why When I scroll my ListView with CheckBox selected it becomes selected in other item? 1 | <p>When I check the checkbox in my <code>listview</code> and I scroll down, there is another listrow checked by himself. How can I solve this problem? Please review it and inform me where of code should be changed</p>
<p>PS: I try to delete </p>
<pre><code>viewHolder.checkBox = (CheckBox) workingView.findViewById(c... | When I check the checkbox in my listview and I scroll down, there is another listrow checked by himself. How can I solve this problem? Please review it and inform me where of code should be changed PS: I try to delete [CODE] but I can't get the position which I want it [CODE] -- [CODE] | android|listview | 1 | 2016-05-08T22:14:00.290Z | 2,016 | 5 | 22 | 6 | 53 | 1 | 286 | 89 | 2 | 3 | true | false | false | false | false | false | low |
37,105,428 | Update fragment TextView from ListView Adapter | <p>I currently have a fragment with a few buttons, a textview, and a listview.</p>
<p>Within the CustomAdapter I have an onClick method to remove the item from the listview when they click an image on the custom listview.</p>
<p>However, these are items with prices associated, and I want to update a textview that is ... | I currently have a fragment with a few buttons, a textview, and a listview. Within the CustomAdapter I have an onClick method to remove the item from the listview when they click an image on the custom listview. However, these are items with prices associated, and I want to update a textview that is sitting at the top ... | android|listview|android-fragments | 0 | 2016-05-08T22:19:45.273Z | 2,016 | 5 | 22 | 6 | 825 | 1 | 916 | 46 | 3 | 5 | true | false | false | false | false | false | zero |
37,105,505 | java.io.IOException in Android while connecting to MongoDB database | <p>In my Android application, I am getting <code>java.io.IOException</code> when I am making connection with my database. Please tell what is the problem?</p>
<p><strong>Code:</strong></p>
<pre><code>public void connect_to_db() {
try {
URL requestUrl = new URL("url for MongoDB database");
HttpURLC... | In my Android application, I am getting java.io.IOException when I am making connection with my database. Please tell what is the problem? Code: [CODE] Error: [CODE] | android|mongodb | 2 | 2016-05-08T22:27:34.577Z | 2,016 | 5 | 22 | 6 | 129 | 0 | 165 | 67 | 2 | 2 | true | true | false | false | false | false | low |
37,105,513 | EditText View returns null | <p>I have two activities - a Home fragment activity, and a normal Options activity.</p>
<p>In my home fragment activity, I'm trying to update an EditText View using data retrieved from the Options activity.</p>
<p>Unfortunately, for some reason, the fragment activity cannot detect my view for updating. I'm not entire... | I have two activities - a Home fragment activity, and a normal Options activity. In my home fragment activity, I'm trying to update an EditText View using data retrieved from the Options activity. Unfortunately, for some reason, the fragment activity cannot detect my view for updating. I'm not entirely sure why. Here i... | java|android|android-fragments|null | 2 | 2016-05-08T22:28:46.723Z | 2,016 | 5 | 22 | 6 | 105 | 1 | 571 | 26 | 4 | 2 | true | false | false | false | false | false | low |
37,105,543 | Sending data with QUdpSocket on Android | <p>I am developing an application that periodically sends data through an UDP socket. For the moment, my code worked well until I tried to test the application with Android.</p>
<p>The code that I am using is:</p>
<pre><code>m_outputSocket.writeDatagram (data, QHostAddress (robotAddress()), m_outputPort);
</code></pr... | I am developing an application that periodically sends data through an UDP socket. For the moment, my code worked well until I tried to test the application with Android. The code that I am using is: [CODE] I have set the following permissions accordingly on the AndroidManifest.xml file: [CODE] Update, I also added the... | android|c++|qt|sockets|udp | 3 | 2016-05-08T22:33:53.687Z | 2,016 | 5 | 22 | 6 | 516 | 1 | 935 | 39 | 5 | 3 | true | false | false | false | false | false | low |
37,105,582 | NullPointerException in android sqlite | <p>I am trying to create an action that gets a string value and returns String array of the items with the keyword in their name.</p>
<p>This is my code:</p>
<pre><code>public String[] getList(String st) {
SQLiteDatabase database = myDBHelper.getReadableDatabase();
String query = "Select * from " + TASKS_TABL... | I am trying to create an action that gets a string value and returns String array of the items with the keyword in their name. This is my code: [CODE] When I run it I get: [CODE] This is the Activity code: [CODE] | java|android|sqlite|nullpointerexception | -2 | 2016-05-08T22:40:07.753Z | 2,016 | 5 | 22 | 6 | 82 | 1 | 212 | 38 | 4 | 3 | true | false | false | false | false | true | negative |
37,105,604 | ListView crashing Activity | <p>I want to add some data retrieved from a DB to a ListView.</p>
<p>This is the list layout: <strong>list.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_co... | I want to add some data retrieved from a DB to a ListView. This is the list layout: list.xml [CODE] The received layout that contains the ListView: received.xml [CODE] The java file: received.java [CODE] The adapter: MonAdapter.java [CODE] Class to insert data: msg.java [CODE] The stacktrace is: [CODE] | java|android | 0 | 2016-05-08T22:43:30.503Z | 2,016 | 5 | 22 | 6 | 76 | 2 | 303 | 26 | 2 | 6 | true | false | false | false | false | false | zero |
37,105,708 | Most efficient way to store and restore JSON to this Ionic App? | <p>I am <strong>very</strong> new to AngularJS and Ionic development, am wondering how to properly and efficiently store JSON data and restore it upon closing and opening the app.</p>
<p>The app I am trying to make is a simple To-Do list app. I have a list named <code>tasks</code> that is in JSON format that can be ad... | I am very new to AngularJS and Ionic development, am wondering how to properly and efficiently store JSON data and restore it upon closing and opening the app. The app I am trying to make is a simple To-Do list app. I have a list named tasks that is in JSON format that can be added/removed to and from by the user. I wa... | javascript|android|angularjs|json|ionic-framework | 2 | 2016-05-08T23:01:48.850Z | 2,016 | 5 | 23 | 6 | 131 | 1 | 540 | 63 | 5 | 1 | true | false | false | false | false | false | low |
37,105,757 | Trying to get a value from a parent fragment with getParentFragment, returning null | <p><strong>Edit 4:</strong> Here will be my most up to date code, I'll erase and update here as I go.</p>
<p>movementSetsRepsFrag.java: <a href="https://codeshare.io/GZm47" rel="nofollow">https://codeshare.io/GZm47</a></p>
<p>setSchemes.java: <a href="https://codeshare.io/kMdj5" rel="nofollow">https://codeshare.io/kM... | Edit 4: Here will be my most up to date code, I'll erase and update here as I go. movementSetsRepsFrag.java: https://codeshare.io/GZm47 setSchemes.java: https://codeshare.io/kMdj5 ControllerData.java: https://codeshare.io/nAiSh Results.java: https://codeshare.io/vIs5Q Edit 3: In setSchemes.java I removed this bit of co... | java|android|android-fragments | 1 | 2016-05-08T23:09:00.223Z | 2,016 | 5 | 23 | 6 | 765 | 0 | 1,892 | 83 | 3 | 7 | true | true | false | false | false | false | low |
37,105,777 | apostrophe not preceded by \ - values-fr.xml file not saved after changes | <p>I'm working on building an app based on some open source code I found on GitHub. Just trying to launch the app in AndroidStudio for the first time.</p>
<p>I get this error:<br></p>
<pre><code>Execution failed for task ':ui:processDebugResources'.
</code></pre>
<p>It is preceded by errors from the values-fr.xml fi... | I'm working on building an app based on some open source code I found on GitHub. Just trying to launch the app in AndroidStudio for the first time. I get this error: [CODE] It is preceded by errors from the values-fr.xml file such as: [CODE] I understand that apostrophes in strings need to be preceded with a . My probl... | android|android-gradle-plugin|android-resources | 1 | 2016-05-08T23:11:55.383Z | 2,016 | 5 | 23 | 6 | 1,085 | 1 | 597 | 73 | 3 | 3 | true | false | false | false | false | false | low |
37,105,990 | Android: how do I prevent class variables being cleared on orientation change | <p>I have a main activity which has two configurations, one which will display a fragment which is locked to portrait orientation.</p>
<p>When a button is clicked on this fragment, a fragment replaces it, however this new fragment can be displayed landscape with a second fragment side-by-side. </p>
<p>This all works ... | I have a main activity which has two configurations, one which will display a fragment which is locked to portrait orientation. When a button is clicked on this fragment, a fragment replaces it, however this new fragment can be displayed landscape with a second fragment side-by-side. This all works fine, however I am i... | java|android|user-interface|fragment|android-orientation | -1 | 2016-05-08T23:39:28.167Z | 2,016 | 5 | 23 | 6 | 1,110 | 2 | 1,077 | 77 | 5 | 2 | true | false | false | false | false | true | negative |
37,106,123 | Create dynamically text fields | <p>I'm trying to get my button to create a text field where the user can input information. This way they can only create as many lines as they would like. Also, is there a way to create multiple fields at once?
So, it'll end up being something like this:</p>
<p>"Add Event" (rest of the screen is blank until they clic... | I'm trying to get my button to create a text field where the user can input information. This way they can only create as many lines as they would like. Also, is there a way to create multiple fields at once? So, it'll end up being something like this: "Add Event" (rest of the screen is blank until they click on that b... | java|android|android-edittext | 1 | 2016-05-09T00:00:01.833Z | 2,016 | 5 | 0 | 0 | 866 | 1 | 830 | 30 | 3 | 1 | true | false | false | false | false | false | low |
37,106,152 | Android: Creating custom RelativeLayout | <p>I have this view </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_he... | I have this view [CODE] I want to create a custom subclass of RelativeLayout that every added item is this view, adding them would be like this: myCustomRelativeLayout.addItem("text1", "text2", "text3", "text4", marginTop, height) , how do I do this? Here's what it would look like if I added 3 views like this: [CODE] I... | java|android | 2 | 2016-05-09T00:06:05.447Z | 2,016 | 5 | 0 | 0 | 990 | 1 | 372 | 39 | 2 | 2 | true | false | false | false | false | false | low |
37,106,396 | AsyncTask and Memory Observability | <p>I have the following class and inner "AsyncTask" (<a href="http://developer.android.com/reference/android/os/AsyncTask.html" rel="nofollow">http://developer.android.com/reference/android/os/AsyncTask.html</a>) defined.</p>
<pre><code>class SomeClassA {
Long b = 0;
void executeTask() {
// executed o... | I have the following class and inner "AsyncTask" ( http://developer.android.com/reference/android/os/AsyncTask.html ) defined. [CODE] I am curious about what guarantees I am given about the "memory visibility" of an AsyncTask as well as thread safety. From my understanding, the call "doInBackground" is executed in a se... | android|android-asynctask | 0 | 2016-05-09T00:47:11.563Z | 2,016 | 5 | 0 | 0 | 147 | 1 | 1,330 | 34 | 2 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.