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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38,046,023 | Android Gradle error occurs | <blockquote>
<pre><code>Error:(1, 0) Plugin is too old, please update to a more recent version,
or set ANDROID_DAILY_OVERRIDE environment variable to
"f4a0bcdad02706f1af97b485d6a6a0c5e7d9a560". Fix plugin version and sync project
</code></pre>
</blockquote>
<hr>
<p><strong>build.gradle</strong></p>
<pre><code> a... | [CODE] build.gradle [CODE] | android | 0 | 2016-06-27T04:38:30.863Z | 2,016 | 6 | 4 | 0 | 263 | 2 | 26 | 27 | 1 | 2 | true | false | false | false | false | false | zero |
37,787,243 | Which is better: using a map inside array list or a pojo class to interact with json response | <p>I'm a bit confused, as from a long time i am saving the json response directly to an ArrayList> and displaying to my listView, but now, looking on other people code i noticed that they are using POJO class to interact with JSON, Is it is better way? if it is please explain why? cause using POJO means I have to write... | I'm a bit confused, as from a long time i am saving the json response directly to an ArrayList> and displaying to my listView, but now, looking on other people code i noticed that they are using POJO class to interact with JSON, Is it is better way? if it is please explain why? cause using POJO means I have to write ex... | android|json|pojo | 0 | 2016-06-13T10:21:58.520Z | 2,016 | 6 | 10 | 0 | 1,031 | 2 | 437 | 93 | 3 | 0 | false | false | false | false | false | false | zero |
38,036,368 | how to handle error like android.content.res.Resources$NotFoundException: String resource ID #0x0 | <p>My app just crushed with the error:</p>
<pre><code>android.content.res.Resources$NotFoundException: String resource ID #0x0
</code></pre>
<p>I just don't know what I did wrong! </p>
<pre><code>public class WithdrawPoints extends AppCompatActivity {
private Firebase myRef;
private SharedPreferences.Editor account... | My app just crushed with the error: [CODE] I just don't know what I did wrong! [CODE] } [CODE] | java|android|firebase | 1 | 2016-06-26T07:55:20.797Z | 2,016 | 6 | 7 | 6 | 1,031 | 2 | 94 | 97 | 3 | 3 | true | false | false | false | false | false | low |
37,820,404 | Google Fit API, getting calories burned per activity | <p>So I'm trying to create an app that connects to Google Fit and shows the user their data in a pretty streamlined way and I'm having trouble finding the calories the user burned for each individual activity per day. I can get the total calories for the entire day, and each activity the user did each day, but not the ... | So I'm trying to create an app that connects to Google Fit and shows the user their data in a pretty streamlined way and I'm having trouble finding the calories the user burned for each individual activity per day. I can get the total calories for the entire day, and each activity the user did each day, but not the cal... | java|android|google-fit|google-fit-sdk | 7 | 2016-06-14T19:18:41.013Z | 2,016 | 6 | 19 | 1 | 5,639 | 2 | 765 | 52 | 4 | 3 | true | false | true | false | false | false | medium |
37,935,057 | How to change the text color of PreferenceCategory/PreferenceScreen | <p>Here is the:</p>
<p><strong>preferences.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory
android:key="@string/pref_basicsettings_key"
android:title="@string/pref_... | Here is the: preferences.xml [CODE] BasicSettingsActivity.java [CODE] How do I change the text color in PreferenceCategory? | java|android|layout|sharedpreferences|textcolor | 10 | 2016-06-21T03:25:29.233Z | 2,016 | 6 | 3 | 1 | 8,711 | 2 | 123 | 67 | 5 | 2 | true | false | true | false | true | false | medium |
37,675,593 | Android - Encode a video while decoding it | <p>I modify a video with glsl shaders, using a SurfaceTexture and OpenGL ES 2.0. I can also encode the result video with MediaCodec. </p>
<p>The problem is that the only way I've found to decode the video is with MediaPlayer and SurfaceTexture, but MediaPlayer doesn't have a frame by frame decoding option. So right no... | I modify a video with glsl shaders, using a SurfaceTexture and OpenGL ES 2.0. I can also encode the result video with MediaCodec. The problem is that the only way I've found to decode the video is with MediaPlayer and SurfaceTexture, but MediaPlayer doesn't have a frame by frame decoding option. So right now, it's like... | android|video|opengl-es-2.0|android-mediacodec|video-encoding | 1 | 2016-06-07T09:33:24.890Z | 2,016 | 6 | 9 | 1 | 520 | 2 | 624 | 42 | 5 | 0 | false | false | false | false | false | false | low |
37,627,828 | Handle error and resume observable simultaneously in Rx | <p>I write an Android app which fetches data from a server when network connection is OK and gets it from a local DB otherwise. So conceptually I have:</p>
<pre><code>networkObservable.onErrorResumeNext(dbObservable).subscribe(...);
</code></pre>
<p>But if <code>networkObservable</code> encounters an error I would al... | I write an Android app which fetches data from a server when network connection is OK and gets it from a local DB otherwise. So conceptually I have: [CODE] But if networkObservable encounters an error I would also like to inform the user about conncetion problems; not just resume DB observable. But now it seems to me t... | android|error-handling|rx-java | 1 | 2016-06-04T07:54:22.327Z | 2,016 | 6 | 7 | 5 | 776 | 2 | 458 | 55 | 3 | 1 | true | false | false | false | false | false | low |
37,939,269 | jdb giving java.net.SocketException: Connection reset | <p>I've been trying to run jdb to try and get it attached to a process on my android device.</p>
<p>The commands I've tried are as follows:</p>
<pre><code>adb forward tcp:12345 jdwp:4127
jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=12345
</code></pre>
<p>We can assume that process with pid 4127 is ... | I've been trying to run jdb to try and get it attached to a process on my android device. The commands I've tried are as follows: [CODE] We can assume that process with pid 4127 is still alive. However, after the 2 commands are entered, I received the error message as follows: [CODE] I've noticed a strange behaviour th... | java|android|jdb | 0 | 2016-06-21T08:30:24.930Z | 2,016 | 6 | 8 | 1 | 1,544 | 2 | 708 | 53 | 3 | 5 | true | false | false | false | false | false | zero |
38,046,862 | How to check realm for android data existence? | <p>how do I check whether certain value is exist or not in my realm database based on this code below?</p>
<pre><code>realm.where(User.class).equalTo("cardId", cardId).findFirst()
</code></pre>
<p>Thanks in advance.</p> | how do I check whether certain value is exist or not in my realm database based on this code below? [CODE] Thanks in advance. | android|realm | 18 | 2016-06-27T06:05:48.820Z | 2,016 | 6 | 6 | 0 | 11,528 | 2 | 125 | 46 | 2 | 1 | true | false | true | true | true | false | medium |
37,825,183 | Start Android activity when receiving the last response from multiple Volley requests | <p>In the OnCreate method of my splashscreen, I make 2 different Volley requests :</p>
<pre><code>RequestQueue queue = AppController.getInstance().getRequestQueue();
GsonRequest<WPPosts> myReq = new GsonRequest<WPPosts>(urlJson, WPPosts.class, null,createMyReqSuccessListener(),createMyReqErrorListener());
... | In the OnCreate method of my splashscreen, I make 2 different Volley requests : [CODE] and another one to get the categories. I would like to start my MainActivity when I receive the last response from these 2 resquests : [CODE] Regardless response arrives first or last. Would it be a semaphorical approach ? | android|asynchronous|android-volley|semaphore | 0 | 2016-06-15T02:36:53.487Z | 2,016 | 6 | 2 | 2 | 265 | 2 | 309 | 85 | 4 | 2 | true | false | false | false | false | false | zero |
37,699,864 | Failed to switch between android apps during appium automation | <p>I have the below code.</p>
<pre><code>DesiredCapabilities capabilities =DesiredCapabilities.android();
capabilities.setCapability("device","Android");
capabilities.setCapability("deviceName","hammerhead");
capabilities.setCapability("platformName","Android");
capabilities.setCapa... | I have the below code. [CODE] "java.lang.reflect.InvocationTargetException" error is thrown on executing driver.startActivity line. What mistake I'm making here? | java|android|selenium-webdriver|appium | 0 | 2016-06-08T10:25:38.233Z | 2,016 | 6 | 10 | 2 | 521 | 2 | 161 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
38,002,651 | Saving a DocumentFile in Android with a custom extension | <p>In my app, the user chooses a directory, and in onActivityResult, a DocumentFile is created like so:</p>
<pre><code>Uri treeUri = resultData.getData();
DocumentFile pickedDir = DocumentFile.fromTreeUri(this, treeUri);
DocumentFile newFile = pickedDir.createFile("text/plain", filename);
</code></pre>
<p>I then writ... | In my app, the user chooses a directory, and in onActivityResult, a DocumentFile is created like so: [CODE] I then write to this DocumentFile with an OutputStream, use getUri() to get the Uri, and add this Uri as an extra to an email intent so that it is attached to the email. Right now, due to the fact that I have cho... | android|mime-types | 4 | 2016-06-23T22:03:42.487Z | 2,016 | 6 | 22 | 3 | 2,057 | 2 | 624 | 56 | 2 | 1 | true | false | false | false | false | false | low |
37,871,256 | How do I get the google-services.json file again, was accidentally deleted | <p>I was doing tutorials on Firebase and was required to create a config file, and download the google-services.json which I did. But after completion I felt the need to re-do the tutorials again, so i deleted everything of the old app, including the google-services.json file i had downloaded. Now when I try to create ... | I was doing tutorials on Firebase and was required to create a config file, and download the google-services.json which I did. But after completion I felt the need to re-do the tutorials again, so i deleted everything of the old app, including the google-services.json file i had downloaded. Now when I try to create the... | android|google-signin | 5 | 2016-06-17T00:12:56.417Z | 2,016 | 6 | 0 | 4 | 2,569 | 2 | 796 | 74 | 2 | 0 | false | false | false | false | false | false | low |
37,798,560 | How do I add username to user when using Firebase android? | <p>I currently started using Firebase for my Android application and I used the samples on their GitHub to create the login and register activity.</p>
<blockquote>
<p><a href="https://github.com/firebase/quickstart-android" rel="nofollow">https://github.com/firebase/quickstart-android</a></p>
</blockquote>
<p>The o... | I currently started using Firebase for my Android application and I used the samples on their GitHub to create the login and register activity. https://github.com/firebase/quickstart-android The only thing is that I noticed that their version only has an email and password for both login and registration. I would like ... | android|firebase|firebase-authentication | 4 | 2016-06-13T20:27:26.170Z | 2,016 | 6 | 20 | 0 | 11,017 | 2 | 645 | 58 | 3 | 1 | true | false | true | false | false | false | low |
37,894,590 | How to continue developing with a React Native Project with xCode? | <p>I have complete my first little application with React Native.</p>
<p>Now I want to change some styles or the splash screen on their native platform, where is the generated code for these platforms? I checked the <code>ios</code> and <code>android</code> folder, but I just can't find the place of code.</p>
<p>For ... | I have complete my first little application with React Native. Now I want to change some styles or the splash screen on their native platform, where is the generated code for these platforms? I checked the ios and android folder, but I just can't find the place of code. For example, in xCode, I think most of code is st... | android|ios|xcode|react-native|xcodeproj | 1 | 2016-06-18T07:46:39.927Z | 2,016 | 6 | 7 | 5 | 2,570 | 2 | 436 | 66 | 5 | 0 | false | false | false | false | false | false | low |
37,687,677 | Android 6.0 "gps" location provider requires ACCESS_FINE_LOCATION permission | <p>I have all the premissions defined in my manifest for using gps. Like </p>
<p>"uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /></p>
<p>"uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/></p>
<p>Everytime I try to open this activity on Android 6.0 it stops with this... | I have all the premissions defined in my manifest for using gps. Like "uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> "uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> Everytime I try to open this activity on Android 6.0 it stops with this logcat message. But works o... | android|gps|android-6.0-marshmallow|android-6.0.1-marshmallow | 4 | 2016-06-07T19:23:29.723Z | 2,016 | 6 | 19 | 1 | 9,226 | 2 | 581 | 76 | 4 | 2 | true | false | true | false | false | false | low |
37,744,424 | Add textview right above Keyboard | <p>At the moment my app consists from a <code>EditText</code> and a button, both at the bottom of the screen. If I'm typing something into the <code>EditText</code> and than hit that button a <code>TextView</code> gets created at the top of the screen.</p>
<p>But, what I want to achieve is that if I hit that button, t... | At the moment my app consists from a EditText and a button, both at the bottom of the screen. If I'm typing something into the EditText and than hit that button a TextView gets created at the top of the screen. But, what I want to achieve is that if I hit that button, that the TextView gets created right above the Edit... | android|android-layout|android-studio | 0 | 2016-06-10T09:15:42.620Z | 2,016 | 6 | 9 | 4 | 779 | 2 | 706 | 33 | 3 | 2 | true | false | false | false | false | false | zero |
37,901,424 | How to write Arabic in Genymotion emulator? | <p>I am using Android Studio & using Genymotion as my mobile emulator. Genymotion works fine until I trying to write Arabic characters through switching keyboard & through copy/paste, however my trials failed where the emulator keeps hanging through throwing errors.</p>
<p>How to write Arabic in Genymotion emu... | I am using Android Studio & using Genymotion as my mobile emulator. Genymotion works fine until I trying to write Arabic characters through switching keyboard & through copy/paste, however my trials failed where the emulator keeps hanging through throwing errors. How to write Arabic in Genymotion emulator? | android|genymotion | 1 | 2016-06-18T20:36:48.037Z | 2,016 | 6 | 20 | 5 | 1,035 | 2 | 307 | 43 | 2 | 0 | false | false | false | false | false | false | low |
37,777,989 | Open browser in Android Captive Portal after sign in | <p>I am making a captive portal for Android:</p>
<ol>
<li>the user connect to Wi-Fi</li>
<li>the captive portal open with informations for login (302 of /generate_204)</li>
<li>I post the informations and release the user to use internet (204 of /generate_204)</li>
<li><strong>THE PROBLEM</strong>: the captive portal ... | I am making a captive portal for Android: the user connect to Wi-Fi the captive portal open with informations for login (302 of /generate_204) I post the informations and release the user to use internet (204 of /generate_204) THE PROBLEM : the captive portal close and the browser not open My purpose is - after the pos... | android|captiveportal | 6 | 2016-06-12T18:58:23.830Z | 2,016 | 6 | 18 | 6 | 2,571 | 2 | 416 | 52 | 2 | 0 | false | false | false | false | false | false | medium |
37,618,180 | Custom Tabbed Page Renderer Xamarin Android | <p>So know how to set up a custom renderer (only partially apparently) with an OnElementChanged method. I followed this (<a href="http://forums.xamarin.com/discussion/17654/tabbedpage-icons-not-visible-android" rel="nofollow">http://forums.xamarin.com/discussion/17654/tabbedpage-icons-not-visible-android</a>)</p>
<pre... | So know how to set up a custom renderer (only partially apparently) with an OnElementChanged method. I followed this ( http://forums.xamarin.com/discussion/17654/tabbedpage-icons-not-visible-android ) [CODE] This gets hit, but it never displays the page afterwards. Anyone have any ideas? | android|xamarin|xamarin.android|custom-renderer|tabbed-view | 0 | 2016-06-03T15:25:16.340Z | 2,016 | 6 | 15 | 4 | 3,851 | 2 | 288 | 43 | 5 | 1 | true | false | true | false | false | false | zero |
37,863,870 | Disable last item in list view using dragndrop library | <p>I am using DragNDrop library for re ordering list view. But what I exactly need is that, the last element of the list view should be static. It should not move when some one try to re order. How can I implement it? Should I use some other libraries for that?</p> | I am using DragNDrop library for re ordering list view. But what I exactly need is that, the last element of the list view should be static. It should not move when some one try to re order. How can I implement it? Should I use some other libraries for that? | android|xml|android-layout|listview | 1 | 2016-06-16T15:49:58.673Z | 2,016 | 6 | 15 | 3 | 12 | 2 | 258 | 54 | 4 | 0 | false | false | false | false | false | false | low |
37,610,366 | Passing Arraylist from an interface implementattion to a class | <p>I am a beginner, and I am trying to use <code>ArrayList</code> from an <code>Interface</code>. I got the structure from an article here. The problem is it's giving me null when I try to use it in a <code>Fragment</code>.</p>
<p>The class is:</p>
<pre><code>public class NewsFRagment extends Fragment implements Back... | I am a beginner, and I am trying to use ArrayList from an Interface . I got the structure from an article here. The problem is it's giving me null when I try to use it in a Fragment . The class is: [CODE] I need to use arraylist from the onSuccess and pass it in my setAdapter method, Problem is its null when I pass it ... | java|android|arraylist | 0 | 2016-06-03T09:11:26.017Z | 2,016 | 6 | 9 | 4 | 268 | 2 | 412 | 62 | 3 | 2 | true | false | false | false | false | false | zero |
37,629,817 | Android: Distorted background for toolbar icons, list items and overflow menu | <p>While developing an android app, i updated android studio and also android sdk.
after that, i faced strange behavior. when clicking on any item like actionbar icons, overflow menu and spinners get distorted background like picture below. </p>
<p><a href="https://i.stack.imgur.com/Ecrju.png" rel="nofollow noreferrer... | While developing an android app, i updated android studio and also android sdk. after that, i faced strange behavior. when clicking on any item like actionbar icons, overflow menu and spinners get distorted background like picture below. my sdk versions are: Android support repository 32 Android support library 23.2.1 ... | android|drawable|nine-patch | 0 | 2016-06-04T11:44:18.773Z | 2,016 | 6 | 11 | 5 | 525 | 2 | 625 | 77 | 3 | 0 | false | false | false | false | false | false | zero |
37,644,827 | Retrofit List of object assigns null to data | <p>This is how my <code>JSON</code> response looks</p>
<pre><code>[
{
"id": 1,
"PhName": "sample string 2",
"Longitude": 3.1,
"Latitude": 4.1,
"ApplicationUserId": "sample string 5"
},
{
"id": 1,
"PhName": "sample string 2",
"Longitude": 3.1,
"Latitude": 4.1,
"ApplicationU... | This is how my JSON response looks [CODE] this is my retrofit interface call [CODE] Pojo Class [CODE] Retrofit declaration [CODE] Getting data and using it [CODE] my response [CODE] In this case I am suppose to receive four result from the search and the names are giving me null. Is there anything I am doing wrong or a... | android|retrofit | 0 | 2016-06-05T17:34:24.130Z | 2,016 | 6 | 17 | 6 | 781 | 2 | 345 | 44 | 2 | 6 | true | false | false | false | false | false | zero |
37,941,338 | android fragment reloading (onCreate) each time when back Button pressed | <p>I am new in android using fragments in my Project. first time my fragment is creating then api called and get data load in fragment. here when i clicked at any item i replaced fragment by another fragment there also another api called and load data to fragment.
now here problem situation generated for me.
from here ... | I am new in android using fragments in my Project. first time my fragment is creating then api called and get data load in fragment. here when i clicked at any item i replaced fragment by another fragment there also another api called and load data to fragment. now here problem situation generated for me. from here i b... | android-fragments|savestate|onbackpressed|recreate | 0 | 2016-06-21T10:02:12.197Z | 2,016 | 6 | 10 | 1 | 2,573 | 2 | 944 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
37,800,115 | Android Byte Array not recognized | <p>I'm using Android Studio 2.1.2 and I'm trying to declare and use a small byte array but I am getting errors I don't understand.</p>
<p>The code in question is:</p>
<pre><code>public class RedActivityMain extends AppCompatActivity {
byte[] myBuf = new byte[20]; // <-- Compiler likes this line
myBuf[0] = ... | I'm using Android Studio 2.1.2 and I'm trying to declare and use a small byte array but I am getting errors I don't understand. The code in question is: [CODE] the declaration line seems to be accepted by the compiler but the assignment line where I try to assign 0x23 to the first entry of the myBuf Array causes the fo... | java|android|android-studio | 2 | 2016-06-13T22:25:48.900Z | 2,016 | 6 | 22 | 0 | 270 | 2 | 843 | 33 | 3 | 2 | true | false | false | false | false | false | low |
37,635,996 | How to determine if user cancels Google Play subscription? | <p>About to build a subscription product into our Android app, but a little unclear on the best way to know about canceled subscriptions. The only way we are planning on letting the user cancel is for them to go to Google Play Store and explicitly cancel, but in this case, our backend won't be notified.</p>
<p>The Goo... | About to build a subscription product into our Android app, but a little unclear on the best way to know about canceled subscriptions. The only way we are planning on letting the user cancel is for them to go to Google Play Store and explicitly cancel, but in this case, our backend won't be notified. The Google Play De... | android|google-play|subscriptions|google-play-developer-api | 26 | 2016-06-04T23:27:11.520Z | 2,016 | 6 | 23 | 5 | 9,742 | 2 | 519 | 58 | 4 | 0 | false | false | true | false | true | false | high |
37,844,780 | Method to check if Wifi is Connected with in class | <p>I want to check if wifi is connected or not when the button is clicked as well as show a pop up message so i have written a separate class for it : </p>
<p>public class Pop extends Activity {</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceSate) {
super.onCreate(savedInstanceSate);
... | I want to check if wifi is connected or not when the button is clicked as well as show a pop up message so i have written a separate class for it : public class Pop extends Activity { [CODE] So what should be the method for checking if wifi is connected and it keeps on checking after every 5 seconds even if the app is ... | java|android|methods|android-wifi|wifimanager | -1 | 2016-06-15T20:06:42.120Z | 2,016 | 6 | 20 | 2 | 271 | 2 | 328 | 50 | 5 | 1 | true | false | false | false | false | true | negative |
37,978,664 | #Appcelerator Ti.Paint Android not saving image | <p>I know the paint module is very simple, and I have been using versions of it for years. Recently, (version 2.0.3), the pantView.toImage().media has stopped working. I actually us it to save a snapshot of the display so it is win.toImage().media. It gives me a 0 kb file. It detects a file, but it is empty. Any ideas ... | I know the paint module is very simple, and I have been using versions of it for years. Recently, (version 2.0.3), the pantView.toImage().media has stopped working. I actually us it to save a snapshot of the display so it is win.toImage().media. It gives me a 0 kb file. It detects a file, but it is empty. Any ideas how... | android|appcelerator | 0 | 2016-06-22T21:34:37.917Z | 2,016 | 6 | 21 | 2 | 271 | 2 | 432 | 47 | 2 | 1 | true | false | false | false | false | false | zero |
37,676,181 | How can I stop GridLayout overflowing | <p>I am developing my first android app. It is a replica of the game tictactoe. The back end of the app works perfectly. The UI also works perfectly. My problem is with the display of the UI. The app consists of 9 squares in a 3x3 formation. When a square is selected it will be replaced by the current player square (dr... | I am developing my first android app. It is a replica of the game tictactoe. The back end of the app works perfectly. The UI also works perfectly. My problem is with the display of the UI. The app consists of 9 squares in a 3x3 formation. When a square is selected it will be replaced by the current player square (drawa... | android|android-layout | 0 | 2016-06-07T09:59:03.873Z | 2,016 | 6 | 9 | 1 | 1,039 | 2 | 2,166 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
37,928,434 | TextViews below recyclerview are not displaying | <p>The TextViews Below RecyclerView are not displaying.The whole screen is occupied by RecyclerView.If i use Nestedscrollview only TextViews are displaying but not RecyclerView.Please Anyone provide solution for this </p>
<pre><code> <LinearLayout
android:id="@+id/wrapper"
android:layout... | The TextViews Below RecyclerView are not displaying.The whole screen is occupied by RecyclerView.If i use Nestedscrollview only TextViews are displaying but not RecyclerView.Please Anyone provide solution for this [CODE] | android|android-recyclerview | 1 | 2016-06-20T17:28:04.183Z | 2,016 | 6 | 17 | 0 | 3,343 | 2 | 220 | 47 | 2 | 1 | true | false | true | false | false | false | low |
37,983,125 | Padding / space in Toolbar between icon and title (Android 24) | <p>With the new Android 24, I found out that the icon and title on the <code>Toolbar</code> has a wider padding and I can't find any way to resolve this. </p>
<p><strong>Example:</strong></p>
<p><img src="https://i.stack.imgur.com/TK03c.png" alt="Additional space between icon and title"></p>
<p><strong>MainActivity.... | With the new Android 24, I found out that the icon and title on the Toolbar has a wider padding and I can't find any way to resolve this. Example: MainActivity.java: [CODE] activity_main.xml: [CODE] | android|padding|toolbar|appbar | 8 | 2016-06-23T05:35:52.253Z | 2,016 | 6 | 5 | 3 | 5,136 | 2 | 198 | 62 | 4 | 2 | true | false | true | false | false | false | medium |
37,747,987 | SignalR vs Google Cloud Messaging | <p>I have a .Net based backend server which is hosted on Azure. I'm attempting to build an android app with Xamarin. The app will have a chat feature that will allow the users to communicate with each other.
I have been using SignalR for simple real time web tasks and I know much of the same can be achieved with Googl... | I have a .Net based backend server which is hosted on Azure. I'm attempting to build an android app with Xamarin. The app will have a chat feature that will allow the users to communicate with each other. I have been using SignalR for simple real time web tasks and I know much of the same can be achieved with Google Cl... | android|google-cloud-messaging|signalr | 4 | 2016-06-10T12:11:49.207Z | 2,016 | 6 | 12 | 4 | 5,392 | 2 | 861 | 33 | 3 | 0 | false | false | true | false | false | false | low |
37,772,072 | Which transport will be used by SignalR between android app and IIS server that supported Websocket? | <p>I want to write an android application and I want to know if SignalR use websocket or something else for communicating between server and client, before I do that.</p>
<p>Anybody know?</p> | I want to write an android application and I want to know if SignalR use websocket or something else for communicating between server and client, before I do that. Anybody know? | android|asp.net-mvc|xamarin|signalr | 1 | 2016-06-12T08:12:55.757Z | 2,016 | 6 | 8 | 6 | 785 | 2 | 177 | 100 | 4 | 0 | false | false | false | false | false | false | low |
37,819,416 | Custom Notification Layout crashes on both Android 6.0 and 4.3 | <p>I have 3 test devices. I cannot display customized Notification in Android 6.0 and 4.3 while the same code works like a charm in 5.1.1</p>
<p>I really tired of Android's compatibility dilemma.</p>
<p>This is my customized notification appearing in Android 5.1.1:</p>
<p><a href="https://i.stack.imgur.com/dUPpn.png... | I have 3 test devices. I cannot display customized Notification in Android 6.0 and 4.3 while the same code works like a charm in 5.1.1 I really tired of Android's compatibility dilemma. This is my customized notification appearing in Android 5.1.1: Here is my code: [CODE] And the exception causing crash: [CODE] I am al... | android|android-layout|notifications|android-custom-view|remoteview | 1 | 2016-06-14T18:20:36.083Z | 2,016 | 6 | 18 | 1 | 785 | 2 | 559 | 62 | 5 | 3 | true | false | false | false | false | false | low |
38,029,675 | Android Studio autocomplete on special character (space, period, etc.) like in Visual Studio | <p>Is it possible to enable autocompletion of the selected suggestion when entering special characters like in Visual Studio?</p>
<p>For example:</p>
<p>When typing 'MenuI' Android Studio suggests 'MenuInflater' that I can autocomplete by hitting TAB after which I type SPACE to separate my variable name.</p>
<p><a h... | Is it possible to enable autocompletion of the selected suggestion when entering special characters like in Visual Studio? For example: When typing 'MenuI' Android Studio suggests 'MenuInflater' that I can autocomplete by hitting TAB after which I type SPACE to separate my variable name. In Visual Studio I can type SPA... | android-studio|autocomplete|editor | 1 | 2016-06-25T14:47:06.890Z | 2,016 | 6 | 14 | 5 | 1,041 | 2 | 477 | 92 | 3 | 0 | false | false | false | false | false | false | low |
38,019,820 | Downgrading 9.0.83 Google Play Services manually to avoid DynamiteModule: Failed to load module descriptor | <p>I got the following log error in <a href="https://stackoverflow.com/questions/38018234/no-marker-displayed-on-the-map">my route tracking activity</a>:</p>
<blockquote>
<p>06-24 18:50:24.488 7128-7759/com.noureddine_ouertani.www.wocelli50
E/DynamiteModule: Failed to load module descriptor class: Didn't find
cl... | I got the following log error in my route tracking activity : 06-24 18:50:24.488 7128-7759/com.noureddine_ouertani.www.wocelli50 E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.android.gms.googlecertificates.ModuleDescriptor" on path: D... | java|android|google-maps | 2 | 2016-06-24T18:21:04.903Z | 2,016 | 6 | 18 | 4 | 2,833 | 2 | 877 | 106 | 3 | 0 | false | false | true | false | false | false | low |
37,850,798 | Intent-filter to match domain only (no path) | <p>This might seem simple, but I can't figure out how to do it yet.</p>
<p>I need my app to be opened when user click on domain url.
I need to match the URL with domain (android:host) without path.
example.com or example.com/</p>
<p>I get it to work on example.com/ (with slash), but I can't capture the URL without sl... | This might seem simple, but I can't figure out how to do it yet. I need my app to be opened when user click on domain url. I need to match the URL with domain (android:host) without path. example.com or example.com/ I get it to work on example.com/ (with slash), but I can't capture the URL without slash: example.com I ... | android|android-manifest|intentfilter | 5 | 2016-06-16T05:46:12.050Z | 2,016 | 6 | 5 | 3 | 1,298 | 2 | 511 | 44 | 3 | 1 | true | false | false | false | false | false | low |
37,625,899 | How to add Google Analytics to my Android application? | <p>I want to use Google Analytics to collect more information about the use of my applications, how to add Google Analytics to my Android application?</p> | I want to use Google Analytics to collect more information about the use of my applications, how to add Google Analytics to my Android application? | android|google-analytics | 0 | 2016-06-04T02:59:33.920Z | 2,016 | 6 | 2 | 5 | 787 | 2 | 147 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
38,023,262 | Java compiler or android compiler is truncating my doubles...? | <p>So I was working on a fitness app that I have been on for quite some time. We were getting this weird defect where calories weren't increasing but distance was.. so I investigated. I started de-bugging, and saw duration was coming in as whole numbers, 0, 5.0, 2.0, etc. Yet this value was a double. The code below is ... | So I was working on a fitness app that I have been on for quite some time. We were getting this weird defect where calories weren't increasing but distance was.. so I investigated. I started de-bugging, and saw duration was coming in as whole numbers, 0, 5.0, 2.0, etc. Yet this value was a double. The code below is par... | java|android | -1 | 2016-06-24T23:03:10.720Z | 2,016 | 6 | 23 | 4 | 20 | 2 | 579 | 62 | 2 | 2 | true | false | false | false | false | true | negative |
37,958,070 | onReceiptReceived is never handled for DelieveryReceipts | <pre><code>Openfire 4.0.2
smack 4.1.7
Android Studio 2.1.2
</code></pre>
<p>I am trying to use DeliveryReceipts so that I know that the message has been sent. However, <code>onReceiptReceived</code> is never called.
I have done the following:</p>
<pre><code>DeliveryReceiptManager deliveryReceiptManager = DeliveryRece... | [CODE] I am trying to use DeliveryReceipts so that I know that the message has been sent. However, onReceiptReceived is never called. I have done the following: [CODE] Sending the message: [CODE] Send from the client [CODE] On the receiving client [CODE] onReceiptReceived is never handled so I don't know if the receivi... | android|smack | 0 | 2016-06-22T03:32:02.127Z | 2,016 | 6 | 3 | 2 | 276 | 2 | 548 | 56 | 2 | 6 | true | false | false | false | false | false | zero |
37,787,014 | Android tablet screen sizes and layout folders for it | <p>I have mobile app and I'm starting to implement the tablet version.</p>
<p>But I have small problem: Design of mobile app version is better for 7" (ex Nexus 7) devices than the tablet design.</p>
<p>So I would like to implement tablet design for devices >7".</p>
<p>I know that Nexus 7 using <code>layout-sw600dp</... | I have mobile app and I'm starting to implement the tablet version. But I have small problem: Design of mobile app version is better for 7" (ex Nexus 7) devices than the tablet design. So I would like to implement tablet design for devices >7". I know that Nexus 7 using layout-sw600dp layout folder, and I guess I need ... | android|android-layout|layout | 0 | 2016-06-13T10:09:59.093Z | 2,016 | 6 | 10 | 0 | 532 | 2 | 534 | 53 | 3 | 0 | false | false | false | false | false | false | zero |
37,726,962 | unable to login in webview in android | <p>I have an application in which I am loading a URL in android Webview. There is a login page in this URL. I am unable to login through android webview using the valid username/password but I can login using android browser.</p>
<p>When I click on login button it does not respond to it... when I leave the app and com... | I have an application in which I am loading a URL in android Webview. There is a login page in this URL. I am unable to login through android webview using the valid username/password but I can login using android browser. When I click on login button it does not respond to it... when I leave the app and come back to i... | javascript|java|android|xml|html | 4 | 2016-06-09T13:10:57.677Z | 2,016 | 6 | 13 | 3 | 2,324 | 2 | 477 | 37 | 5 | 1 | true | false | false | false | false | false | low |
37,977,432 | Android Studio change TextView fragment from activity | <p>I have created an activity in activities folder and one fragment in fragments folder. Look how my fragment builds: <a href="https://i.stack.imgur.com/jIt9W.png" rel="nofollow noreferrer">http://i.stack.imgur.com/jIt9W.png</a></p>
<p>Some else tried like me by doing this <a href="https://stackoverflow.com/questions/... | I have created an activity in activities folder and one fragment in fragments folder. Look how my fragment builds: http://i.stack.imgur.com/jIt9W.png Some else tried like me by doing this Android : Update Tab Layout(fragments) textviews from an activity , but I don't understand what was the solution. How can I send dat... | android|android-activity|fragment | 3 | 2016-06-22T20:14:35.997Z | 2,016 | 6 | 20 | 2 | 277 | 2 | 514 | 53 | 3 | 2 | true | false | false | false | false | false | low |
37,639,773 | Forgot Password link in an android application | <p>In my android application, I have a "Forgot Password" link which opens a new activity that contains a TextView (to enter the email) and a button. What I have to add as activity button to send the password by email</p> | In my android application, I have a "Forgot Password" link which opens a new activity that contains a TextView (to enter the email) and a button. What I have to add as activity button to send the password by email | android | -4 | 2016-06-05T08:09:13.353Z | 2,016 | 6 | 8 | 6 | 533 | 2 | 213 | 46 | 1 | 0 | false | false | false | false | false | true | negative |
37,993,639 | run gradlew from nodejs | <p>Trying to run gradlew from nodeJS:</p>
<pre><code>const spawn = require('child_process').spawn;
const path = require('path');
function run() {
var path_dir = path.resolve('./../movies/VanillaApp/android');
var options = {
cwd: path_dir
};
const ls = spawn('gradlew', ['assembleRelease'], ... | Trying to run gradlew from nodeJS: [CODE] terminal equavalent: [CODE] getting: [CODE] UPDATE: I've managed to run in with child_process.exec but not with spawn. | android|node.js|gradle|child-process|spawn | 4 | 2016-06-23T13:52:23.637Z | 2,016 | 6 | 13 | 3 | 789 | 2 | 160 | 23 | 5 | 3 | true | false | false | false | false | false | low |
38,040,157 | Gradle build fail with java 1.8, build tool 2.2.0-alpha4, enable jackOptions | <p>I'm building android project with gradle config below:
Android Studio 2.1.2</p>
<p>Project gradle file:</p>
<pre><code>dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-alpha4'
}
</code></pre>
<p>App gradle file:</p>
<pre><code>android {
compileSdkVersion 24
buildToolsVersion '24.0.0'
... | I'm building android project with gradle config below: Android Studio 2.1.2 Project gradle file: [CODE] App gradle file: [CODE] The app always build failed with error: [CODE] Can someone point me in the right way on how to solve this issue?, Please help me out! Thanks, | java|android|android-gradle-plugin|build.gradle | 6 | 2016-06-26T15:37:21.497Z | 2,016 | 6 | 15 | 6 | 5,141 | 2 | 269 | 76 | 4 | 3 | true | false | true | false | false | false | medium |
37,999,921 | OnTrimMemory, but no Garbage Collection on Android | <p>In Android, I'm correctly getting onTrimMemory calls, and I react appropriately. I release saved UI elements and lower memory usage by 50% when the UI is hidden.</p>
<p>The problem I'm having is that the Android system isn't running the garbage collector after each onTrimMemory call. I can see this in logcat. So I'... | In Android, I'm correctly getting onTrimMemory calls, and I react appropriately. I release saved UI elements and lower memory usage by 50% when the UI is hidden. The problem I'm having is that the Android system isn't running the garbage collector after each onTrimMemory call. I can see this in logcat. So I'll get a fe... | android|memory-management|garbage-collection | 1 | 2016-06-23T19:11:51.243Z | 2,016 | 6 | 19 | 3 | 278 | 2 | 829 | 50 | 3 | 0 | false | false | false | false | false | false | low |
37,767,576 | Android Studio add EditText input to a ListView with button onClick | <p>I am trying to make a simple Planner app so I have an XML file with a ListView on it, and another XML file with an EditText and a sumbit button on it, and of course my Java files. I have done a ton of research but I can't find a <em>working</em> method to make it when I press the button, it adds the EditText stuff t... | I am trying to make a simple Planner app so I have an XML file with a ListView on it, and another XML file with an EditText and a sumbit button on it, and of course my Java files. I have done a ton of research but I can't find a working method to make it when I press the button, it adds the EditText stuff to the ListVi... | java|android|xml|listview | 0 | 2016-06-11T19:08:50.103Z | 2,016 | 6 | 19 | 5 | 1,303 | 2 | 466 | 67 | 4 | 4 | true | false | false | false | false | false | zero |
38,053,649 | layout issue while adding searchView in toolbar ( fragment ) | <p>in my fragment i added a toolbar now am trying to add here a searchView which expands and collapse its working fine on a action bar but am having layout issue while using this on my toolbar :</p>
<p>here's my toolbar and below of that there's 2 buttons
my issue #1 is that here my icon of searchView is not visible ... | in my fragment i added a toolbar now am trying to add here a searchView which expands and collapse its working fine on a action bar but am having layout issue while using this on my toolbar : here's my toolbar and below of that there's 2 buttons my issue #1 is that here my icon of searchView is not visible but when you... | android|xml|android-layout|android-fragments|android-toolbar | 2 | 2016-06-27T12:10:44.960Z | 2,016 | 6 | 12 | 0 | 1,815 | 2 | 1,407 | 60 | 5 | 4 | true | false | false | false | false | false | low |
37,850,134 | What is the certificate enrollment process? | <p>I am looking for a procedure of enrolling a certificate.</p>
<p>I have searched a lot but didn't find a good answer. Till now I get that firstly I have to generate a Key store (For creating a public key and a private key) then private key should be kept private and public key is sent with other information (like nam... | I am looking for a procedure of enrolling a certificate. I have searched a lot but didn't find a good answer. Till now I get that firstly I have to generate a Key store (For creating a public key and a private key) then private key should be kept private and public key is sent with other information (like name and orga... | java|android|certificate|pkcs#12|csr | 8 | 2016-06-16T04:53:01.797Z | 2,016 | 6 | 4 | 3 | 10,263 | 2 | 531 | 43 | 5 | 0 | false | false | true | false | false | false | medium |
37,866,673 | Make two design or apk for android | <p>Can we make two design or apk in android.Actually i'm facing the issue that i'm using a library which is only for greater than apk 17. So i want two design 1 for less than 17 apk and other one for greater than 17.How can solve my problem? </p> | Can we make two design or apk in android.Actually i'm facing the issue that i'm using a library which is only for greater than apk 17. So i want two design 1 for less than 17 apk and other one for greater than 17.How can solve my problem? | android | 0 | 2016-06-16T18:22:43.923Z | 2,016 | 6 | 18 | 3 | 24 | 2 | 238 | 34 | 1 | 0 | false | false | false | false | false | false | zero |
37,733,466 | Google Map not working since upgrade to Android Studio 2.1.2 on new laptop | <p>I recently transferred my project from one laptop to another.
I installed the latest version of Android Studio, which is 2.1.2
My old laptop was running version 1.5.1</p>
<p>After importing the <code>gradle.build</code> into the new version on the new laptop, my <code>MapsActivity</code> is no longer working, where... | I recently transferred my project from one laptop to another. I installed the latest version of Android Studio, which is 2.1.2 My old laptop was running version 1.5.1 After importing the gradle.build into the new version on the new laptop, my MapsActivity is no longer working, whereas it worked perfectly before. As suc... | android|android-studio|maps|upgrade | 1 | 2016-06-09T18:20:17.727Z | 2,016 | 6 | 18 | 3 | 280 | 2 | 739 | 74 | 4 | 1 | true | false | false | false | false | false | low |
38,058,095 | How to dismiss multiple choice dialog from within onDestroy | <p>My code currently creates dialogs which may need to be dismissed when the device is rotated. As such, for certain dialogs i have a global declaration and then code as follows:</p>
<pre><code>Builder dialog = new AlertDialog.Builder(context);
alertDialog = dialog.create();
alertDialog.setMessage("Som... | My code currently creates dialogs which may need to be dismissed when the device is rotated. As such, for certain dialogs i have a global declaration and then code as follows: [CODE] In onDestroy, I can then check if the dialog is visible and destroy it if that is the case: [CODE] The above works fine for basic Text an... | android|dialog|android-alertdialog | 0 | 2016-06-27T15:41:14.373Z | 2,016 | 6 | 15 | 0 | 280 | 2 | 795 | 59 | 3 | 3 | true | false | false | false | false | false | zero |
37,850,526 | Android with maven and Unresolveable build extension: Plugin com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.3 | <p>I am creating a POM file for an Android Project on Maven in Eclipse IDE. I also modified my proxy settings in the settings.xml file. I am getting two errors on the command prompt:
1)</p>
<pre><code>Project build error: Unresolveable build extension: Plugin
com.jayway.maven.plugins.android.generation2:android-mav... | I am creating a POM file for an Android Project on Maven in Eclipse IDE. I also modified my proxy settings in the settings.xml file. I am getting two errors on the command prompt: 1) [CODE] and 2) [CODE] For the second error, I tried out the tips on Android with maven? Apk unknown, but of no avail. This is my pom file:... | java|android|eclipse|maven | 1 | 2016-06-16T05:28:38.657Z | 2,016 | 6 | 5 | 3 | 537 | 2 | 437 | 137 | 4 | 3 | true | false | false | false | false | false | low |
37,641,146 | FrameLayout : bring one layout ontop of another layout programatically | <p>I have a frame layout that consists of two child linear layouts( one on top of another)
I have two buttons "1" and "2"
When i press 1 i want the first linear layout on top of second linear layout</p>
<p>When i press 2 i want the second linear layout on top of first linear layout</p>
<p>I used bringToFront() to d... | I have a frame layout that consists of two child linear layouts( one on top of another) I have two buttons "1" and "2" When i press 1 i want the first linear layout on top of second linear layout When i press 2 i want the second linear layout on top of first linear layout I used bringToFront() to do so But nothing happ... | android|android-framelayout | 0 | 2016-06-05T11:07:54.793Z | 2,016 | 6 | 11 | 6 | 1,049 | 2 | 364 | 70 | 2 | 2 | true | false | false | false | false | false | zero |
38,025,865 | Android - Fully transparent status bar with non transparent navigation bar | <p>I have been looking for a way to re-color the navigation bar while the status bar is fully transparent (not translucent).
Getting the status bar to be completely transparent requires the layout flags to be set to NO_LIMITS but that also makes the navigation bar lose its color. Is there any way to achieve this?</p> | I have been looking for a way to re-color the navigation bar while the status bar is fully transparent (not translucent). Getting the status bar to be completely transparent requires the layout flags to be set to NO_LIMITS but that also makes the navigation bar lose its color. Is there any way to achieve this? | android|statusbar|transparent | 6 | 2016-06-25T06:53:53.770Z | 2,016 | 6 | 6 | 5 | 1,305 | 2 | 311 | 74 | 3 | 0 | false | false | false | false | false | false | medium |
37,737,426 | Android - display in the map only the markers included in a determinate area | <p>I have my application with a map.
In this map i put a marker in the current location of the device. I also add a circle around the marker as follow: </p>
<p><i></p>
<pre><code> Circle circle = mMap.addCircle(new CircleOptions()
.center(latLng)
.radius(400) //... | I have my application with a map. In this map i put a marker in the current location of the device. I also add a circle around the marker as follow: [CODE] The result is something like this: here's an example of the result ! I have a database with some positions characterized by a latitude and a longitude. I would set ... | java|android|google-maps|maps|coordinates | 5 | 2016-06-09T22:49:44.533Z | 2,016 | 6 | 22 | 3 | 4,121 | 2 | 497 | 76 | 5 | 1 | true | false | true | false | false | false | low |
37,762,607 | How to create users in/for apps | <p>I have a question that probably has a straight forward answer, but I am asking here to make sure. </p>
<p>If I want to develop an app with users (e.g. Snapchat, Wordfeud etc.), how do I do it? Do I have to use a database of some kind? The users will not have much information stored to them, say nothing more than a ... | I have a question that probably has a straight forward answer, but I am asking here to make sure. If I want to develop an app with users (e.g. Snapchat, Wordfeud etc.), how do I do it? Do I have to use a database of some kind? The users will not have much information stored to them, say nothing more than a username and... | android|ios|database|authentication | 0 | 2016-06-11T10:23:16.877Z | 2,016 | 6 | 10 | 5 | 27 | 2 | 429 | 31 | 4 | 0 | false | false | false | false | false | false | zero |
37,846,193 | Android LoginActivity using standard http request | <p>I'm using LoginActivity template and I'm trying to login to a website with email and password using a standard http request. The site doesn't provide an API so I'm thinking of somehow mirroring the site login to fill the email and password boxes on the page then sending the login request.</p>
<p>Think of logging in... | I'm using LoginActivity template and I'm trying to login to a website with email and password using a standard http request. The site doesn't provide an API so I'm thinking of somehow mirroring the site login to fill the email and password boxes on the page then sending the login request. Think of logging in to stackov... | android|http|authentication | 0 | 2016-06-15T21:35:48.997Z | 2,016 | 6 | 21 | 2 | 283 | 2 | 684 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
37,928,991 | Unable to throw JSONexception while parsing JSON | <p>I am trying to get some data from a url in my android app. I am using volley library for Get/Post request. Following is my code to get url content:</p>
<pre><code>JsonObjectRequest jsonObjectRequest = new JsonObjectRequest( Request.Method.GET, R.string.login, null,
new Response.Listener<JSON... | I am trying to get some data from a url in my android app. I am using volley library for Get/Post request. Following is my code to get url content: [CODE] But I am getting following error in JSONException: Exception org.json.JSONexception is never thrown in corresponding try block | android | 0 | 2016-06-20T18:03:07.187Z | 2,016 | 6 | 18 | 0 | 539 | 2 | 281 | 48 | 1 | 1 | true | false | false | false | false | false | zero |
37,956,677 | java Android - two dialogs, prevent first dialog from closing after second one exits | <p>Initially in my app I am creating an <code>AlertDialog</code> which has three buttons, in which the middle button opens up another <code>AlertDialog</code>. The problem is that when the second <code>AlertDialog</code> closes after a button is pressed, the first one closes with it. I think both <code>AlertDialogs</co... | Initially in my app I am creating an AlertDialog which has three buttons, in which the middle button opens up another AlertDialog . The problem is that when the second AlertDialog closes after a button is pressed, the first one closes with it. I think both AlertDialogs get closed after I press a button on the second Al... | java|android|dialog|android-alertdialog | 1 | 2016-06-22T00:23:50.300Z | 2,016 | 6 | 0 | 2 | 1,051 | 2 | 1,125 | 84 | 4 | 2 | true | false | false | false | false | false | low |
37,764,538 | Add data in SQLite Database using Fragment in Android | <p>I am trying to Add data in SQLite Database using Fragment, but it's not Adding in Database and there is no error while running app.
My code in AddRoom Fragment :</p>
<pre><code>public class AddRoom extends Fragment implements View.OnClickListener {
DatabaseHotel myHotel;
Button bt_addRoom;
EditText ed_roomtype, ed... | I am trying to Add data in SQLite Database using Fragment, but it's not Adding in Database and there is no error while running app. My code in AddRoom Fragment : [CODE] In My Database class : addRoom() method code: [CODE] | android|sqlite|android-fragments | -1 | 2016-06-11T13:53:51.927Z | 2,016 | 6 | 13 | 5 | 1,307 | 2 | 221 | 53 | 3 | 2 | true | false | false | false | false | true | negative |
37,875,323 | Method NdefRecord.createTextRecord("en" , "string") not working below API level 21 | <p>This code works fine when I use it on a device with Android Lollipop (5.x) or Marshmallow (6.0):</p>
<pre><code>@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public NdefMessage createNdfMessage(String content) {
NdefRecord record = NdefRecord.createTextRecord("en", content);
NdefMessage msg = new NdefMessage(new... | This code works fine when I use it on a device with Android Lollipop (5.x) or Marshmallow (6.0): [CODE] But when I try this on a device with Android 4.2.2 (API level 17) my app crashes. How can I use this code to create a Text record on API levels below 21 (that's the API level where the method NdefRecord.createTextRec... | android|nfc|backwards-compatibility|ndef | 3 | 2016-06-17T07:14:41.040Z | 2,016 | 6 | 7 | 4 | 1,819 | 2 | 342 | 82 | 4 | 1 | true | false | false | false | false | false | low |
37,991,989 | "strace -p pid" gives "attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted" | <p>I have written an android application which monitors system calls of running processes, but all what I get is "Operation not permitted". I have tried to disable SElinux and enable root access on strace using "chmod 4777 strace" and chown "root:root strace" but I still cannot solve the issue. The application is runni... | I have written an android application which monitors system calls of running processes, but all what I get is "Operation not permitted". I have tried to disable SElinux and enable root access on strace using "chmod 4777 strace" and chown "root:root strace" but I still cannot solve the issue. The application is running ... | android|strace | 1 | 2016-06-23T12:43:24.320Z | 2,016 | 6 | 12 | 3 | 4,891 | 2 | 348 | 83 | 2 | 0 | false | false | true | false | false | false | low |
37,618,401 | How to load (libary)Glide Images quicker? Android | <p>How can I make the images download first and place it in cach and when someone pressed button then the image will directly show without delay.</p>
<p><strong>Why?</strong>
Everytime I click on the button now I have a delay of a few seconds, because they loading from the internet. It takes times, that's why I want t... | How can I make the images download first and place it in cach and when someone pressed button then the image will directly show without delay. Why? Everytime I click on the button now I have a delay of a few seconds, because they loading from the internet. It takes times, that's why I want them to be loaded and cached ... | java|android|image|android-glide | 1 | 2016-06-03T15:36:03.627Z | 2,016 | 6 | 15 | 4 | 5,147 | 2 | 705 | 49 | 4 | 3 | true | false | true | false | false | false | low |
38,038,957 | Applying style to activity | <p>I want to apply a style to my app once I select the app preference.</p>
<p>Here is the relevant section in my MainActivity.java :</p>
<pre><code> private void loadPreferences(){
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
boolean Background = sharedPreference... | I want to apply a style to my app once I select the app preference. Here is the relevant section in my MainActivity.java : [CODE] ^I want to apply the style in the (Background) portion. | android | 0 | 2016-06-26T13:29:48.800Z | 2,016 | 6 | 13 | 6 | 28 | 2 | 185 | 26 | 1 | 1 | true | false | false | false | false | false | zero |
37,937,334 | Not able to create alert dialog with rounded corners..things I tried | <p><a href="https://i.stack.imgur.com/tA0vg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tA0vg.jpg" alt="enter image description here"></a></p>
<p><strong>dialog_border.xml:</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/a... | dialog_border.xml: [CODE] In my custom dialog layout,I have set background to android:background="@drawable/dialog_border" [CODE] | android|android-alertdialog | 0 | 2016-06-21T06:49:09.113Z | 2,016 | 6 | 6 | 1 | 284 | 2 | 129 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
37,941,284 | Database operations in IntentService results into application halt,become unresponsive and giving ANR | <p>I am using an IntentService in a alarm manager to trigger it after every 15 seconds.
I have to continuously send large amount data to server and receiving large amount of data in response in background.
I have to follow beneath process : </p>
<ol>
<li><p>I am reading data from Database through queries.</p></li>
<li... | I am using an IntentService in a alarm manager to trigger it after every 15 seconds. I have to continuously send large amount data to server and receiving large amount of data in response in background. I have to follow beneath process : I am reading data from Database through queries. Then converting it in Json throug... | android|retrofit|android-intentservice|jsonschema2pojo | 11 | 2016-06-21T10:00:14.873Z | 2,016 | 6 | 10 | 1 | 797 | 2 | 694 | 101 | 4 | 0 | false | false | false | false | true | false | medium |
37,722,789 | await DisplayActionSheet(…) return null immediately on Windows | <p>I need to display a MessageDialog from a ViewModel, and I need to associate an Action to the button pressed. For that purpose I've written the following:</p>
<pre><code>//Dummy implementation
private string Translate(string element) => element;
public async Task ShowAsync(string message, Dictionary<string, A... | I need to display a MessageDialog from a ViewModel, and I need to associate an Action to the button pressed. For that purpose I've written the following: [CODE] And then I call it from a RelayCommand [CODE] That works very well on Android but on Windows DisplayActionSheet return null immediately. I've seen this so ques... | c#|android|xamarin|xamarin.android|xamarin.forms | 0 | 2016-06-09T10:02:11.660Z | 2,016 | 6 | 10 | 3 | 1,053 | 2 | 444 | 62 | 5 | 2 | true | false | false | false | false | false | zero |
37,819,330 | On Android what determines the abi that is used for building | <p>So I have a .so that is included in some builds but not others.</p>
<p>My prebuild script deletes the .so, the associated .jar removes the library from the build.gradle.</p>
<p>The library is from a 3rd party and I don't have control over asking for x86 or arm-v7. It is only provided to me in arm.</p>
<p>When I b... | So I have a .so that is included in some builds but not others. My prebuild script deletes the .so, the associated .jar removes the library from the build.gradle. The library is from a 3rd party and I don't have control over asking for x86 or arm-v7. It is only provided to me in arm. When I build without the library su... | android|xamarin|abi | 1 | 2016-06-14T18:14:55.460Z | 2,016 | 6 | 18 | 1 | 1,053 | 2 | 460 | 60 | 3 | 0 | false | false | false | false | false | false | low |
37,922,061 | how to hibernate or force stop apps without rooting..? | <p>I know it is possible to send running android apps to hibernation on rooted device using adb command <code>force-stop Target_PACKAGE</code> how to do this on un-rooted device. Most of the people says it is not possible. But there is some apps like <code>greefify</code>, <code>clean master</code> or <code>power Clean... | I know it is possible to send running android apps to hibernation on rooted device using adb command force-stop Target_PACKAGE how to do this on un-rooted device. Most of the people says it is not possible. But there is some apps like greefify , clean master or power Clean who does this using accessibility feature. How... | java|android|hibernate|root|forceclose | 3 | 2016-06-20T12:00:56.553Z | 2,016 | 6 | 12 | 0 | 1,309 | 2 | 377 | 54 | 5 | 0 | false | false | false | false | false | false | low |
37,835,958 | Android TV - Prevent Screen Saver From Appearing | <p>I am creating a standard Android TV app which plays some videos and ran into an issue where screen saver turns on while I'm watching a video.</p>
<p>How can I prevent that from happening? Is there any trigger which I can trigger when I want for a screen to be ON all the time and prevent screen saver from appearing?... | I am creating a standard Android TV app which plays some videos and ran into an issue where screen saver turns on while I'm watching a video. How can I prevent that from happening? Is there any trigger which I can trigger when I want for a screen to be ON all the time and prevent screen saver from appearing? This looks... | android|android-tv|leanback | 0 | 2016-06-15T12:49:02.917Z | 2,016 | 6 | 12 | 2 | 2,845 | 2 | 380 | 48 | 3 | 1 | true | false | true | false | false | false | zero |
38,056,042 | Android Recycler View not showing full height | <p>My existing code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView... | My existing code: [CODE] Using this code the RecyclerView is not covering the whole bottom layout.If I dont mention any minimum height then I cant see RecyclerView. So I need to specify a height to RecyclerView . So what should I do to handle this issue. | android|android-layout|android-recyclerview|scrollview | 1 | 2016-06-27T14:04:32.707Z | 2,016 | 6 | 14 | 0 | 6,173 | 2 | 254 | 45 | 4 | 1 | true | false | true | false | false | false | low |
37,933,692 | My emulator shows just Listview on entire screen. even its width is limited to 240dp | <p>I am using drawer layout and Listview is using as drawer. </p>
<p>My emulator just showing Listview as width set to match parent even it's set to 240dp. </p>
<pre><code><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
... | I am using drawer layout and Listview is using as drawer. My emulator just showing Listview as width set to match parent even it's set to 240dp. [CODE] | android | 1 | 2016-06-21T00:08:52.127Z | 2,016 | 6 | 0 | 1 | 30 | 2 | 151 | 84 | 1 | 1 | true | false | false | false | false | false | low |
37,614,187 | MODE_WORLD_WRITEABLE is deprecated? | <pre><code>File f = new File(MainActivity.appContext.getFilesDir(), "Captured.jpg");
f.delete();
//Create new file
FileOutputStream fos = MainActivity.appContext.openFileOutput("Captured.jpg", Context
.MODE_WORLD_WRITEABLE);
//FileO... | [CODE] as MODE_WORLD_WRITEABLE is deprecated and i don't want to go with that code so can i get the replcement of above code ? | android | 1 | 2016-06-03T12:16:33.457Z | 2,016 | 6 | 12 | 4 | 2,590 | 2 | 126 | 35 | 1 | 1 | true | false | false | false | false | false | low |
37,906,371 | Pushing notifications when app is closed | <p>I am looking to create a Text-Based Android game using C# in Xamarin Forms.</p>
<p>In the story, I want to set the character tasks, which will take them some time e.g. "I'll go dig this hole, I'll give you a buzz when I'm done."</p>
<p>How do I set up notifications to appear after set times? For example the above ... | I am looking to create a Text-Based Android game using C# in Xamarin Forms. In the story, I want to set the character tasks, which will take them some time e.g. "I'll go dig this hole, I'll give you a buzz when I'm done." How do I set up notifications to appear after set times? For example the above statement may take ... | android|xamarin|xamarin.forms | 0 | 2016-06-19T10:44:25.253Z | 2,016 | 6 | 10 | 6 | 3,102 | 2 | 621 | 40 | 3 | 0 | false | false | true | false | false | false | zero |
38,022,543 | How to succesfully implement a OnPostExecute method inside my doInBackground method? | <p>Mentioned below is my JSONTask.java class:</p>
<pre><code>public class JSONTask extends AsyncTask<String,String,String> {
public TextView tvData;
@Override
protected String doInBackground(String... params) {
BufferedReader reader=null;
HttpURLConnection connection= null;
try {
URL url =... | Mentioned below is my JSONTask.java class: [CODE] } My app crashes when this item is called upon and i get the following errors in the logcat:" Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference" at .fragment.JSONTask.onPostExecute(JSONTask.java:63... | android | -1 | 2016-06-24T21:46:03.533Z | 2,016 | 6 | 21 | 4 | 31 | 2 | 446 | 84 | 1 | 1 | true | false | false | false | false | true | negative |
37,603,305 | MPAndroidChart: PieChart onValueSelected is not called | <p>I have a problem with the PieChart. I am updating the Chart every time the Activity is called and I'm doing this with:</p>
<pre><code>private void setupPieChart() {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);
... | I have a problem with the PieChart. I am updating the Chart every time the Activity is called and I'm doing this with: [CODE] And I'm adding the data with: [CODE] My problem is following: There is a different amount of slices in the chart every time its created. From time to time the OnChartValueSelectedListener() does... | android|pie-chart|mpandroidchart | 3 | 2016-06-02T22:43:22.953Z | 2,016 | 6 | 22 | 3 | 1,567 | 2 | 558 | 54 | 3 | 2 | true | false | false | false | false | false | low |
38,025,296 | Access NFC tag from a clock app in Android wear | <p>I developed a wearable app for Android Wear that read NFC tags. The hardware I used is a Sony Smartwatch 3 modified following instructions on this link: <a href="http://forum.xda-developers.com/smartwatch-3/orig-development/sony-smartwatch-3-nfc-support-package-t3219713" rel="noreferrer">Sony SmartWatch 3 NFC Suppor... | I developed a wearable app for Android Wear that read NFC tags. The hardware I used is a Sony Smartwatch 3 modified following instructions on this link: Sony SmartWatch 3 NFC Support Package . Now my objective is to make a clock app able reading NFC. Problem is: Android Wear apps are not based on activities but on serv... | android|nfc|wear-os | 6 | 2016-06-25T05:25:30.120Z | 2,016 | 6 | 5 | 5 | 3,615 | 2 | 664 | 47 | 3 | 0 | false | false | true | false | false | false | medium |
37,775,193 | (Java) how to make a system where you have ints trees, wood and cash, and you have trees/s , wood/s and cash/s | <p>This is probably a very stupid question, but I am stuck with this problem for already several days</p>
<p>So you have an int trees, and int wood and cash. Trees will be converted into wood and wood will be converted into cash.</p>
<p>You also have an int treespersecond, int woodpersecond and cashpersecond. </p>
<... | This is probably a very stupid question, but I am stuck with this problem for already several days So you have an int trees, and int wood and cash. Trees will be converted into wood and wood will be converted into cash. You also have an int treespersecond, int woodpersecond and cashpersecond. Each second treespersecond... | java|android|math | -1 | 2016-06-12T14:11:14.543Z | 2,016 | 6 | 14 | 6 | 32 | 2 | 998 | 110 | 3 | 1 | true | false | false | false | false | true | negative |
37,631,416 | I want to make something when done from typing EditText | <p>what is the method I should use to type what will happen after being finished from typing in the EditText?</p>
<p>Please use simple statements and use an example with comments of what happens in that line and what to type in that line.</p>
<p>PS</p>
<p>I wish you got the lines above!!!</p> | what is the method I should use to type what will happen after being finished from typing in the EditText? Please use simple statements and use an example with comments of what happens in that line and what to type in that line. PS I wish you got the lines above!!! | java|android|android-edittext | -3 | 2016-06-04T14:34:58.380Z | 2,016 | 6 | 14 | 5 | 33 | 2 | 265 | 55 | 3 | 0 | false | false | false | false | false | true | negative |
37,753,538 | How to make database backup in SDcard | <p>I have made the backup of my database successfully, but the problem is that my backup is saved in the internal memory not in SDcard. </p>
<p>Here is my code:</p>
<pre><code>public void exportDatabase()
{
File sd = Environment.getExternalStorageDirectory();
File data = Environment.getDataDirectory();
St... | I have made the backup of my database successfully, but the problem is that my backup is saved in the internal memory not in SDcard. Here is my code: [CODE] | android|android-database | 0 | 2016-06-10T16:56:29.480Z | 2,016 | 6 | 16 | 4 | 33 | 2 | 156 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
37,890,810 | Styling a particuar word in android textview | <p>I have been working on an app that displays news and i want to style some particular words. I have tried<br>
<code>tv.setText(Html.fromHtml("<b>Bold Text</b>")); </code><br>
But it doesn't satisfy my need because i wont be the one writing the news and i assume the writer have no knowledge of programming so the text ... | I have been working on an app that displays news and i want to style some particular words. I have tried tv.setText(Html.fromHtml(" Bold Text ")); But it doesn't satisfy my need because i wont be the one writing the news and i assume the writer have no knowledge of programming so the text should be written like %EXAMPL... | android|html|textview | 0 | 2016-06-17T21:46:00.703Z | 2,016 | 6 | 21 | 4 | 33 | 2 | 344 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
37,967,910 | expected object but string found in retrofit 1.9 | <p>Hello guys sorry for my English.
Hi I am new to the Retrofit library, I am having problems parsing some json. I have looked at some other solutions on Stackoverflow but not having much luck with my problem. im trying to get a a simple webservice to work. any suggestions would be gratefully appreciated .My json file... | Hello guys sorry for my English. Hi I am new to the Retrofit library, I am having problems parsing some json. I have looked at some other solutions on Stackoverflow but not having much luck with my problem. im trying to get a a simple webservice to work. any suggestions would be gratefully appreciated .My json file. {"... | android|web-services|http|error-handling|retrofit | 0 | 2016-06-22T12:22:22.067Z | 2,016 | 6 | 12 | 2 | 289 | 2 | 614 | 48 | 5 | 4 | true | false | false | false | false | false | zero |
37,796,549 | checking internet for screen-splash | <p>Here are my simple class Splash Screen. Now, I need checking if have internet in my webview. Where I make this checking?</p>
<pre><code>public class Splash extends Activity{
private static int tempo_splash = 1000;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSta... | Here are my simple class Splash Screen. Now, I need checking if have internet in my webview. Where I make this checking? [CODE] **OBS: I are using the permissions in manifest: [CODE] | android|android-layout|android-studio|splash-screen|android-internet | 0 | 2016-06-13T18:14:37.477Z | 2,016 | 6 | 18 | 0 | 545 | 2 | 182 | 35 | 5 | 2 | true | false | false | false | false | false | zero |
37,812,673 | How to change to material theme in android? | <p>My application uses android:Theme.Light but as a theme in styles.xml. i would want to change it into a Material theme. Anyone assist me how to change it.</p>
<pre><code><resources>
<style name="AppBaseTheme" parent="android:Theme.Light">
</style>
<style name="AppTheme" parent="AppB... | My application uses android:Theme.Light but as a theme in styles.xml. i would want to change it into a Material theme. Anyone assist me how to change it. [CODE] | android | 0 | 2016-06-14T12:55:15.513Z | 2,016 | 6 | 12 | 1 | 34 | 2 | 160 | 43 | 1 | 1 | true | false | false | false | false | false | zero |
38,042,993 | Cant find MapFragment in layout , returns null | <p>Hi I have following layout in app, which has a MapFragment, it loads map but when i try to get its reference it returns null in code.</p>
<p>Main layout file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/a... | Hi I have following layout in app, which has a MapFragment, it loads map but when i try to get its reference it returns null in code. Main layout file [CODE] Here is app_bar_main layout file [CODE] and content_main layout which has mapfragement [CODE] Code that i am using to get reference of mapfragement is placed unde... | java|android|google-maps | 1 | 2016-06-26T20:42:31.870Z | 2,016 | 6 | 20 | 6 | 34 | 2 | 378 | 46 | 3 | 4 | true | false | false | false | false | false | low |
37,886,375 | ID SQLite doesn't autoincrement | <p>I have this code:</p>
<pre><code>package com.example.jessi.moopooh;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.Lis... | I have this code: [CODE] But I don't know why id doesn't autoincrement and colum id and colum nombre_nivel are unique but the db allow me insert data with the same name... what is the problem? | android|sqlite|unique | 0 | 2016-06-17T16:34:46.730Z | 2,016 | 6 | 16 | 4 | 802 | 2 | 192 | 31 | 3 | 1 | true | false | false | false | false | false | zero |
37,763,514 | How to assign only one value to the zeroth index of an array and that all in that array, in java | <pre><code>if (uri.contains(",")) {
more_than_one_url = uri.split(",");
} else
more_than_one_url[0] = uri;
for (String url : more_than_one_url) {/*operation*/}
</code></pre>
<p>Is it possible to do such operation with only one element in a String[] or is there any better way... | [CODE] Is it possible to do such operation with only one element in a String[] or is there any better way to do this, if I use different names for String and String[] then it becomes very difficult for me | java|android|arrays | 0 | 2016-06-11T12:06:21.717Z | 2,016 | 6 | 12 | 5 | 35 | 2 | 204 | 96 | 3 | 1 | true | false | false | false | false | false | zero |
37,840,044 | I could select an image from gallery in android. But, i want to select next and previous images of the selected image. How do i do it? | <p>I could select an image from gallery in android. But, i want to select next and previous images of the selected image. How do i do it?</p>
<p>This works fine.. for selecting and then displaying the image..now what do i do for selecting next and previous images?</p>
<pre><code> button.setOnClickListener(new View.On... | I could select an image from gallery in android. But, i want to select next and previous images of the selected image. How do i do it? This works fine.. for selecting and then displaying the image..now what do i do for selecting next and previous images? [CODE] | android|image | 0 | 2016-06-15T15:44:01.007Z | 2,016 | 6 | 15 | 2 | 35 | 2 | 261 | 134 | 2 | 1 | true | false | false | false | false | false | zero |
37,881,060 | viewing custom listview items in android | <p>when I add the first item it works correctly but when I add the 2nd one it shows listView items' layout but there isn't any data in text box like these pics:
<a href="http://i.stack.imgur.com/2D4P0.png" rel="nofollow">ScreenShot 1</a>,
<a href="http://i.stack.imgur.com/8TUvL.png" rel="nofollow">ScreenShot 2</a></p>
... | when I add the first item it works correctly but when I add the 2nd one it shows listView items' layout but there isn't any data in text box like these pics: ScreenShot 1 , ScreenShot 2 My Adapter Code: [CODE] I made an app few months ago in android studio and I use inflater = (LayoutInflater) getSystemService(Context.... | android|listview | 0 | 2016-06-17T12:00:48.070Z | 2,016 | 6 | 12 | 4 | 35 | 2 | 487 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
37,981,345 | keep each fragment selected inner ViewPager? | <p>I implement the same fragment of 100 in ViewPager on my application. The fragment rather large display data from the server. When I put the code <code>mViewPager.setOffscreenPageLimit (100)</code>, the app feels very heavy. Therefore, I use the way: remove <code>setOffscreenPageLimit</code> and invoke a method to ch... | I implement the same fragment of 100 in ViewPager on my application. The fragment rather large display data from the server. When I put the code mViewPager.setOffscreenPageLimit (100) , the app feels very heavy. Therefore, I use the way: remove setOffscreenPageLimit and invoke a method to check the data on the server a... | android|android-fragments|android-viewpager | 1 | 2016-06-23T02:28:27.663Z | 2,016 | 6 | 2 | 3 | 35 | 2 | 668 | 44 | 3 | 0 | false | false | false | false | false | false | low |
38,035,184 | How to access files stored in Bluemix Object Storage using Android? | <p>I am working on an Android app where I want to fetch data from cloud.
I stored my data in Bluemix Object Storage but not getting any help on how to access the data in simple way.</p>
<p>I also tried AWS S3 storage service. It has a simple console where I can get the URL of the file to access it from the Android app... | I am working on an Android app where I want to fetch data from cloud. I stored my data in Bluemix Object Storage but not getting any help on how to access the data in simple way. I also tried AWS S3 storage service. It has a simple console where I can get the URL of the file to access it from the Android app like this.... | android|ibm-cloud|object-storage | 1 | 2016-06-26T04:25:02.433Z | 2,016 | 6 | 4 | 6 | 803 | 2 | 428 | 67 | 3 | 0 | false | false | false | false | false | false | low |
37,815,042 | Android Google Drive Rest API: skip consent screen (hardcoded account) | <p>I was trying to use Google Drive to sync some media files (video/images) and show them in my android app.</p>
<p>I've managed to make it all work fine <strong>but</strong> according to the docs (or at least from a first read) it looks like there <strong>must always be a consent screen</strong> where the user, after... | I was trying to use Google Drive to sync some media files (video/images) and show them in my android app. I've managed to make it all work fine but according to the docs (or at least from a first read) it looks like there must always be a consent screen where the user, after choosing his google account, agrees with the... | android|google-oauth|google-drive-android-api | 4 | 2016-06-14T14:35:17.483Z | 2,016 | 6 | 14 | 1 | 1,315 | 2 | 609 | 70 | 3 | 0 | false | false | false | false | false | false | low |
38,004,946 | Using the phone's accelerometer and microphone to measure vibration | <p>I am making an Android app that will measure the vibration when the phone is put on the floor. How do I use the accelerometer (for 0-50Hz) and microphone (for 50-500Hz) to measure the vibration? I am new to Android development but this is a project given to me. I know that there are a lot of apps related to this in ... | I am making an Android app that will measure the vibration when the phone is put on the floor. How do I use the accelerometer (for 0-50Hz) and microphone (for 50-500Hz) to measure the vibration? I am new to Android development but this is a project given to me. I know that there are a lot of apps related to this in the... | android|accelerometer|microphone|measure|vibration | 3 | 2016-06-24T02:56:23.823Z | 2,016 | 6 | 2 | 4 | 2,339 | 2 | 444 | 67 | 5 | 0 | false | false | false | false | false | false | low |
37,904,746 | How to move camera to user current location as map loads, in Google maps V2? | <p>I wonder how can i achieve showing current user location <strong>once</strong> as the map loads, without checking ever again for location change and camera moving, Unless the user asked and clicked for it. I saw many tutorials about button clicking event and getting current loc , But none of them helped. The other i... | I wonder how can i achieve showing current user location once as the map loads, without checking ever again for location change and camera moving, Unless the user asked and clicked for it. I saw many tutorials about button clicking event and getting current loc , But none of them helped. The other i saw was old with de... | android|google-maps | 7 | 2016-06-19T07:01:16.837Z | 2,016 | 6 | 7 | 6 | 15,651 | 2 | 407 | 76 | 2 | 0 | false | false | true | true | false | false | medium |
37,644,836 | Retrieving values from hashmap and sending to new activity | <p>I am new to programming so, please try to explain in simple language. I have a map with markers and I have used a <code>HashMap</code> to store numbers related to the markers.</p>
<pre><code>HashMap<Marker,String> hash= new HashMap<Marker, String>();
</code></pre>
<p>In my <code>HashMap</code>, I have... | I am new to programming so, please try to explain in simple language. I have a map with markers and I have used a HashMap to store numbers related to the markers. [CODE] In my HashMap , I have used the markers as keys and the numbers as values. I would like the number of a specific marker to be sent to a new activity w... | android|hashmap|google-maps-markers | 0 | 2016-06-05T17:35:44.453Z | 2,016 | 6 | 17 | 6 | 36 | 2 | 402 | 58 | 3 | 1 | true | false | false | false | false | false | zero |
37,889,808 | Retrieving an image from parse.com | <p>With the code I am using, the compiler doesn't make it past the first if statement and returns the message "The object was not found ... ". I am trying to download an image from parse.com and place it in an imageView. Attached is my code, the schema for parse class and my XML layout.</p>
<pre><code>final ParseImag... | With the code I am using, the compiler doesn't make it past the first if statement and returns the message "The object was not found ... ". I am trying to download an image from parse.com and place it in an imageView. Attached is my code, the schema for parse class and my XML layout. [CODE] | android|parse-platform|android-imageview | 1 | 2016-06-17T20:21:17.397Z | 2,016 | 6 | 20 | 4 | 36 | 2 | 291 | 34 | 3 | 1 | true | false | false | false | false | false | low |
37,890,516 | Android app creates file but can't find it | <p>I'm having an issue that is preventing me from releasing my app, so maybe you can help. I have this code to create and write to a file: </p>
<pre><code>@Override
public void onClick (View view){
final String memoryString = memory.getText().toString();
File file = new File(getApplicationContext().getFilesDi... | I'm having an issue that is preventing me from releasing my app, so maybe you can help. I have this code to create and write to a file: [CODE] my log is saying that it's creating the file. but when I go to access and read from said file, I get the error here that it doesn't exist: [CODE] Please help if you are able, I ... | java|android | 1 | 2016-06-17T21:18:47.397Z | 2,016 | 6 | 21 | 4 | 36 | 2 | 338 | 42 | 2 | 2 | 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.