id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,714,640 | How setbounds of drawable works in Android? | <p>I am confused with setbounds method of drawable in Android. I know it is used with drawable and it set where drawable and how large it is. Briefly, it defines, bounding rectangle for drawable. But I am confused: does it set border or padding or its width or height?</p>
<p>This is how we use setbounds</p>
<pre><cod... | I am confused with setbounds method of drawable in Android. I know it is used with drawable and it set where drawable and how large it is. Briefly, it defines, bounding rectangle for drawable. But I am confused: does it set border or padding or its width or height? This is how we use setbounds [CODE] First scenario So ... | android|android-drawable | 30 | 2016-04-19T09:45:01.557Z | 2,016 | 4 | 9 | 1 | 24,145 | 1 | 1,046 | 43 | 2 | 1 | true | false | true | true | true | false | high |
36,714,684 | Calling a non-static method when trying to Implement an Interface using Java | <p>I'm working on a simple calculator assignment where I need to use a Java Interface in the implementation of the code. I have set up the Interface as follows:</p>
<pre><code>public interface OperationInterface {
// create symbolic constants to define operation options
static final int ADDITION = 1;
stat... | I'm working on a simple calculator assignment where I need to use a Java Interface in the implementation of the code. I have set up the Interface as follows: [CODE] I then have my 'Add' class as follows: [CODE] I am then trying to call this Add.toString() method from my client process as follows: [CODE] where mOut is a... | java|android-studio | 1 | 2016-04-19T09:46:13.893Z | 2,016 | 4 | 9 | 1 | 709 | 2 | 949 | 76 | 2 | 3 | true | false | false | false | false | false | low |
36,714,829 | Collapsing toolbar title overlaps with my menu icons | <p>I am using the collapsing Toolbar in a project that I am working on currently. I am setting the title of the collapsing toolbar from my code but the problem is if the title is too big then it overlaps with my menu icons in the toolbar. So how can I fix this issue? </p>
<p>Title OverLaps with menu Icon:
<a href="htt... | I am using the collapsing Toolbar in a project that I am working on currently. I am setting the title of the collapsing toolbar from my code but the problem is if the title is too big then it overlaps with my menu icons in the toolbar. So how can I fix this issue? Title OverLaps with menu Icon: My xml code: [CODE] And ... | android|android-layout|material-design|android-collapsingtoolbarlayout | 3 | 2016-04-19T09:51:34.057Z | 2,016 | 4 | 9 | 1 | 2,532 | 4 | 369 | 52 | 4 | 2 | true | false | false | false | false | false | low |
36,714,843 | Can't read file from inside aar file in libs folder | <p>I have an aar file, listed under libs folder, and inside it there's a version.txt file. I wish to read that file using InputStream, however - i can't seem to reach it. I can't post it here, but, trust me - when unzipping the aar file, there's a version.txt file in its main folder.</p>
<p>I've tried all the followin... | I have an aar file, listed under libs folder, and inside it there's a version.txt file. I wish to read that file using InputStream, however - i can't seem to reach it. I can't post it here, but, trust me - when unzipping the aar file, there's a version.txt file in its main folder. I've tried all the following calls, bu... | android|android-studio|inputstream|aar | 1 | 2016-04-19T09:52:20.850Z | 2,016 | 4 | 9 | 1 | 374 | 0 | 399 | 51 | 4 | 1 | true | true | false | false | false | false | low |
36,714,955 | Swipe to refresh not working when I have data in listView Android | <p>I have a fragment with pull to refresh. Everything works fine when list view has no data, but, when it has at leas one row, it doesnt react when I swipe it down to refresh it. Here is the xml of the fragment:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<share.advice.khalifa.adviceshare.view.ListF... | I have a fragment with pull to refresh. Everything works fine when list view has no data, but, when it has at leas one row, it doesnt react when I swipe it down to refresh it. Here is the xml of the fragment: [CODE] And here is my custom ListFragmentSwipeRefreshLayout: [CODE] And fragment code: [CODE] | java|android|listview|android-fragments|swiperefreshlayout | 0 | 2016-04-19T09:57:03.367Z | 2,016 | 4 | 9 | 1 | 1,079 | 1 | 302 | 65 | 5 | 3 | true | false | false | false | false | false | zero |
36,714,998 | Testing ClassNotFound Exception | <p>I'm trying to test that a class is not found with UnitTest on Android. </p>
<p><strong>What's going on:</strong><br>
1. I'm writing an android library with <code>transitive</code> dependencies which are resolved in the host application<br>
2. The developer may remove some dependencies for example remove all <code... | I'm trying to test that a class is not found with UnitTest on Android. What's going on: 1. I'm writing an android library with transitive dependencies which are resolved in the host application 2. The developer may remove some dependencies for example remove all com.example.package 3. I have a Factory that will try to ... | java|android|unit-testing|junit4 | 19 | 2016-04-19T09:58:19.163Z | 2,016 | 4 | 9 | 1 | 6,941 | 7 | 673 | 31 | 4 | 1 | true | false | true | false | true | false | medium |
36,715,161 | Plot Projects - exit geofence occasionally not triggering | <p>I'm using Plot Projects service to send geofencing notifications to users of iOS and Android application.</p>
<p>There seems to be a strange situation occasionally happening, that the notification linked to exit event on geofence does not get triggered. User enters the geofence, gets the enter notification (which i... | I'm using Plot Projects service to send geofencing notifications to users of iOS and Android application. There seems to be a strange situation occasionally happening, that the notification linked to exit event on geofence does not get triggered. User enters the geofence, gets the enter notification (which is obviously... | android|ios|notifications|geolocation|geofencing | 0 | 2016-04-19T10:05:23.413Z | 2,016 | 4 | 10 | 1 | 247 | 1 | 2,324 | 57 | 5 | 1 | true | false | false | false | false | false | zero |
36,715,277 | Face tracking and detection | <p>I am working in Unity3D and I want to make an app like <a href="https://play.google.com/store/apps/details?id=me.msqrd.android&hl=ru" rel="nofollow">this</a> one. To do that, I need a nice and smooth sdk/library/whatever, that enables me to track face position with all the face landmarks(eyes, nose, mouth) and d... | I am working in Unity3D and I want to make an app like this one. To do that, I need a nice and smooth sdk/library/whatever, that enables me to track face position with all the face landmarks(eyes, nose, mouth) and detect landmark position changes. So far I've tried OpenCV plugin, but it seems to work not too precisely.... | android|ios|unity3d|augmented-reality | 0 | 2016-04-19T10:10:22.440Z | 2,016 | 4 | 10 | 1 | 2,923 | 2 | 881 | 27 | 4 | 0 | false | false | true | false | false | false | zero |
36,715,305 | How do i get two different images in listview row using volley | <p>I'm trying to get two different images in a single list-View row using volley but every time i'm getting same images in both image-view (network-image-view) and when i'm clicking on one image-view its hovering whole row.
I am new in Android and coding please help. </p>
<pre><code>public class CustomListAdapter e... | I'm trying to get two different images in a single list-View row using volley but every time i'm getting same images in both image-view (network-image-view) and when i'm clicking on one image-view its hovering whole row. I am new in Android and coding please help. [CODE] } list_row [CODE] | android|listview|android-recyclerview | -1 | 2016-04-19T10:11:29.397Z | 2,016 | 4 | 10 | 1 | 79 | 1 | 289 | 62 | 3 | 2 | true | false | false | false | false | true | negative |
36,715,317 | Stop BLE scan started in runnable | <p>I am developing an app in which I will be searching for available beacons in range continuously, when the user displays a certain fragment of the app. In order to do this I created a <code>Runnable</code> in which i call a method which starts a scan. Scan results are send to the <code>Handler</code> using a <code>Me... | I am developing an app in which I will be searching for available beacons in range continuously, when the user displays a certain fragment of the app. In order to do this I created a Runnable in which i call a method which starts a scan. Scan results are send to the Handler using a Message . The problem I have is that ... | java|android|multithreading|runnable|android-ble | 0 | 2016-04-19T10:12:10.120Z | 2,016 | 4 | 10 | 1 | 189 | 1 | 682 | 33 | 5 | 4 | true | false | false | false | false | false | zero |
36,715,362 | Creating one toolbar for different screens in Android app | <p>I am working on app, where I am using toolbar on many screens(activities) with different image buttons and main title. For this, I need to create .xml for every screen to create a toolbar and include that in .xml file of corresponding screen. I want that I use only one .xml file for the toolbar instead of creating e... | I am working on app, where I am using toolbar on many screens(activities) with different image buttons and main title. For this, I need to create .xml for every screen to create a toolbar and include that in .xml file of corresponding screen. I want that I use only one .xml file for the toolbar instead of creating each... | android|xml|android-layout | 1 | 2016-04-19T10:13:54.660Z | 2,016 | 4 | 10 | 1 | 1,296 | 2 | 708 | 57 | 3 | 3 | true | false | false | false | false | false | low |
36,715,388 | Google map image in other Location is unclear | <p>I'm new to android.
I've searched for while, but I couldn't find answer for my question.</p>
<p>I made an application displaying images.</p>
<p>map on my current location is quite clear.</p>
<p>but map imapge on other location is really unclear.</p>
<p>Is there anyone can help me?</p>
<p>Kindly find attached my... | I'm new to android. I've searched for while, but I couldn't find answer for my question. I made an application displaying images. map on my current location is quite clear. but map imapge on other location is really unclear. Is there anyone can help me? Kindly find attached my captured image as below, and my code is as... | java|google-maps|android-studio|google-maps-api-3 | 1 | 2016-04-19T10:14:55.537Z | 2,016 | 4 | 10 | 1 | 130 | 0 | 343 | 45 | 4 | 1 | true | true | false | false | false | false | low |
36,715,457 | Using Mipmap resource as Button DrawableTop | <p>I'm currently working on a Xamarin.Android app. I have a button containing text and a DrawableTop mipmap image. When I set the default DrawableTop image in the axml, it's working, my image appears where I want it to. </p>
<p>However, what I'm trying to do, is changing programmatically this image inside the button w... | I'm currently working on a Xamarin.Android app. I have a button containing text and a DrawableTop mipmap image. When I set the default DrawableTop image in the axml, it's working, my image appears where I want it to. However, what I'm trying to do, is changing programmatically this image inside the button when clicking... | c#|android|xamarin.android | 0 | 2016-04-19T10:17:29.190Z | 2,016 | 4 | 10 | 1 | 187 | 1 | 1,028 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,715,556 | How can I pass a default MenuItem in Navigation drawer? | <p>I'm working through an Android for beginners book. Despite the fact that it was published in December 2015, there are of course various sections that are now out of date.</p>
<p>I am working on my first app to use a navigation drawer. The original implementation called for the nav items to be displayed using a List... | I'm working through an Android for beginners book. Despite the fact that it was published in December 2015, there are of course various sections that are now out of date. I am working on my first app to use a navigation drawer. The original implementation called for the nav items to be displayed using a ListView and Ad... | android|android-fragments | 1 | 2016-04-19T10:22:07.697Z | 2,016 | 4 | 10 | 1 | 2,054 | 2 | 1,845 | 55 | 2 | 6 | true | false | false | false | false | false | low |
36,715,584 | Creating register for mobile device using FOS not working | <p>I am making a android application and I am working on implementing the database. Currently the Register (newAction). I do this through Symfony and let it return json objects to the application. We use Gazzle to test if it is correct. When I run the php file in cmd. it gives HTML code and from what I can see I have a... | I am making a android application and I am working on implementing the database. Currently the Register (newAction). I do this through Symfony and let it return json objects to the application. We use Gazzle to test if it is correct. When I run the php file in cmd. it gives HTML code and from what I can see I have an u... | php|android|symfony | 0 | 2016-04-19T10:23:15.730Z | 2,016 | 4 | 10 | 1 | 55 | 1 | 496 | 57 | 3 | 3 | true | false | false | false | false | false | zero |
36,715,659 | AsyncTask doesn't call OnCancel() on first try | <p>I'm using AsyncTask in Android Studio to use a TCP connection in the background. Then i have a runner in <code>PreExecute</code> which executes a runner with a 5 second timeout, which then calls <code>cancel(true)</code> on <code>AsyncTask</code> (since <code>DataOutputStream</code> doesn't have a timeout override).... | I'm using AsyncTask in Android Studio to use a TCP connection in the background. Then i have a runner in PreExecute which executes a runner with a 5 second timeout, which then calls cancel(true) on AsyncTask (since DataOutputStream doesn't have a timeout override). The problem is, when i first open my application to te... | java|android|multithreading|android-asynctask | 1 | 2016-04-19T10:26:09.907Z | 2,016 | 4 | 10 | 1 | 103 | 1 | 736 | 46 | 4 | 1 | true | false | false | false | false | false | low |
36,715,667 | Connecting to TCP Protocol from Android Client | <p>I'am looking for an answer, and I hope someone can help me and guide me to the solution.</p>
<p><strong>What I want</strong> is to connect from android device to a tcp protocol server to exchange some messages.</p>
<p><strong>What I have</strong> is that I Am using some example I have found on <a href="https://git... | I'am looking for an answer, and I hope someone can help me and guide me to the solution. What I want is to connect from android device to a tcp protocol server to exchange some messages. What I have is that I Am using some example I have found on Github I have modified the connection ip to the one I have. I have succes... | android|sockets|tcp | 0 | 2016-04-19T10:26:22.790Z | 2,016 | 4 | 10 | 1 | 1,345 | 1 | 787 | 46 | 3 | 4 | true | false | false | false | false | false | zero |
36,715,685 | Realm, multiple instances from the same configuration | <p>In order to handle all the realm transitions, I've created an helper 'manager' class, that has the following property:</p>
<pre><code>Realm realm;
</code></pre>
<p>Every method has a function that gets the realm instance from a configuration.</p>
<pre><code>RealmConfiguration realmConfig = new RealmConfiguration.... | In order to handle all the realm transitions, I've created an helper 'manager' class, that has the following property: [CODE] Every method has a function that gets the realm instance from a configuration. [CODE] Where the the Realm Builder: [CODE] In this way there are concurrency problems like ' this Realm instance ha... | android|realm | 0 | 2016-04-19T10:27:20.087Z | 2,016 | 4 | 10 | 1 | 645 | 1 | 699 | 53 | 2 | 3 | true | false | false | false | false | false | zero |
36,715,739 | camerasource takepicture is not working | <p>I am trying to capture and save the image from camera using this project <a href="https://github.com/googlesamples/android-vision/tree/master/visionSamples/FaceTracker" rel="nofollow">https://github.com/googlesamples/android-vision/tree/master/visionSamples/FaceTracker</a></p>
<p>The code to capture image is in fac... | I am trying to capture and save the image from camera using this project https://github.com/googlesamples/android-vision/tree/master/visionSamples/FaceTracker The code to capture image is in face track activity java file [CODE] above code is not working, can anyone help? | java|android|android-camera | 2 | 2016-04-19T10:29:43.553Z | 2,016 | 4 | 10 | 1 | 2,476 | 0 | 271 | 39 | 3 | 1 | true | true | false | false | false | false | low |
36,715,932 | Android - How to transfer data between classes witn LISENTER | <p>I have class "MyGcmListenerService" that gets json from the server. i want to get the String from the json and send it to the MainActivity and active a method.
I have been told that i can use Listener and also with interface. well i dont really know how to use it. can anyone please help me?</p>
<p><strong>This is M... | I have class "MyGcmListenerService" that gets json from the server. i want to get the String from the json and send it to the MainActivity and active a method. I have been told that i can use Listener and also with interface. well i dont really know how to use it. can anyone please help me? This is MyGcmListenerService... | android|listener | 0 | 2016-04-19T10:39:05.737Z | 2,016 | 4 | 10 | 1 | 120 | 1 | 397 | 60 | 2 | 3 | true | false | false | false | false | false | zero |
36,716,022 | java.lang.NoClassDefFoundError: Failed resolution of: Lretrofit2/GsonConverterFactory; | <p>I have included retrofit in custom library, im getting this error
at com.mmt.commoncore.rssupport.modules.AppModule.provideRetrofit(AppModule.java:97)
at com.mmt.commoncore.rssupport.modules.AppModule_ProvideRetrofitFactory.get(AppModule_Pr... | I have included retrofit in custom library, im getting this error at com.mmt.commoncore.rssupport.modules.AppModule.provideRetrofit(AppModule.java:97) at com.mmt.commoncore.rssupport.modules.AppModule_ProvideRetrofitFactory.get(AppModule_ProvideRetrofitFactory.java:27) at com.mmt.commoncore.rssupport.modules.AppModule_... | android|retrofit|dagger | 5 | 2016-04-19T10:42:55.147Z | 2,016 | 4 | 10 | 1 | 2,391 | 0 | 3,924 | 86 | 3 | 0 | false | true | false | false | false | false | low |
36,716,035 | How to load downloaded file into Media plugin using Cordova on Android? | <p>Well I'm stumped.</p>
<p>Using cordova 6.1.1 I built a vanilla app and added the Media and File Transfer plugins. I then cribbed the code described in the <a href="https://github.com/apache/cordova-plugin-file#cdvfile-protocol" rel="nofollow">File Plugin CDVFile documentation</a> to try to make the minimal javascri... | Well I'm stumped. Using cordova 6.1.1 I built a vanilla app and added the Media and File Transfer plugins. I then cribbed the code described in the File Plugin CDVFile documentation to try to make the minimal javascript to download an MP3 from an external location and play it. So I replaced the default index.js with th... | android|cordova|media|file-transfer | 1 | 2016-04-19T10:43:38.557Z | 2,016 | 4 | 10 | 1 | 1,024 | 1 | 2,032 | 71 | 4 | 2 | true | false | false | false | false | false | low |
36,716,043 | I want to insert data in to SQLite Database that encrypted with javax.crypto.cipher | <p>I am using that packages </p>
<pre><code>import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
</code></pre>
<p>this is Function that get Data from table_1 and Store in table_2 </p>
<pre><code> public void encrypDatabase() throws Exception {
String queGetData = "... | I am using that packages [CODE] this is Function that get Data from table_1 and Store in table_2 [CODE] This is function for ciphering that work 100% [CODE] // getString() it function that return byte[] to String I am unable to insert data in table_2 how to solve this problem else any way to direct get Encrypted databa... | java|android|sqlite | 0 | 2016-04-19T10:43:54.773Z | 2,016 | 4 | 10 | 1 | 242 | 0 | 445 | 83 | 3 | 3 | true | true | false | false | false | false | zero |
36,716,091 | Last section of SectionIndexer scrolls really fast | <p>Here's a <a href="http://s1.webmshare.com/DA8vG.webm" rel="nofollow">short video</a> of my problem. The last section of the list is scrolling really fast, as you can see by the scrollbar. Here's my code (the relevant parts):</p>
<pre><code>public TotemAdapter (Activity activity, List<Totem> list) {
_... | Here's a short video of my problem. The last section of the list is scrolling really fast, as you can see by the scrollbar. Here's my code (the relevant parts): [CODE] Does anyone know how I can fix this? Thanks in advance. | android|xamarin|xamarin.android|sectionindexer | 0 | 2016-04-19T10:45:48.653Z | 2,016 | 4 | 10 | 1 | 304 | 3 | 223 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
36,716,117 | Validating Google sign in ID token in Go | <p>I am finding the way to validate ID token for Google sign-in for Android with a Go backend server project.</p>
<p>What is the equivalent function for validating ID tokens by using a Google API Client Library in Go?</p>
<p>From this page on Using a Google API Client Library section</p>
<p><a href="https://developers.... | I am finding the way to validate ID token for Google sign-in for Android with a Go backend server project. What is the equivalent function for validating ID tokens by using a Google API Client Library in Go? From this page on Using a Google API Client Library section https://developers.google.com/identity/sign-in/andro... | android|google-app-engine|go|oauth|google-client | 16 | 2016-04-19T10:47:00.473Z | 2,016 | 4 | 10 | 1 | 18,179 | 4 | 1,025 | 40 | 5 | 0 | false | false | true | true | true | false | medium |
36,716,159 | How to serialize and deserialize objects that contains HashMaps and Pairs using GSON | <p>I have this Hashmap <code>Map<Pair<String,String>,Map<String,String>> pathData = new HashMap<>();</code> as an attribute of other object (Tour_Object) and i'm trying to serialize/deserialize it in json using GSON library.</p>
<pre><code>public static String setTourToJson(Tour_Object tourObje... | I have this Hashmap Map<Pair<String,String>,Map<String,String>> pathData = new HashMap<>(); as an attribute of other object (Tour_Object) and i'm trying to serialize/deserialize it in json using GSON library. [CODE] The following exception is thrown when I proceed to the deserialization: [CODE] I would like to know if ... | java|android|json|serialization|gson | 2 | 2016-04-19T10:48:28.997Z | 2,016 | 4 | 10 | 1 | 6,837 | 1 | 451 | 84 | 5 | 2 | true | false | true | false | false | false | low |
36,716,181 | Getting Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) null value | <p>This is onConnected method :</p>
<pre><code>try
{ mGoogleApiClient.connect();
Plus.PeopleApi.loadVisible(mGoogleApiClient, null).setResultCallback(this);
if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null)
{
Person currentPerson = Plus.PeopleApi.getCurrentPerson(... | This is onConnected method : [CODE] BuildGooglePlus API in oncreate [CODE] onClick [CODE] Getting continuously null person value... Please solve this... | android|google-plus|google-api-client | 0 | 2016-04-19T10:49:46.533Z | 2,016 | 4 | 10 | 1 | 5,407 | 0 | 152 | 68 | 3 | 3 | true | true | true | false | false | false | zero |
36,716,199 | How do I access ReactContext from Java code in React Native? | <p>I an trying to create an application thet will catch the incoming calls to the cellphone using a BroadcastReciver. From my BroadcastReciver i whould like to sent the number as an event to my JS file using <a href="https://facebook.github.io/react-native/docs/native-modules-android.html#sending-events-to-javascript" ... | I an trying to create an application thet will catch the incoming calls to the cellphone using a BroadcastReciver. From my BroadcastReciver i whould like to sent the number as an event to my JS file using this method. I have checked that my Java code is working and is catching the calls and number but my application cr... | java|android|react-native | 7 | 2016-04-19T10:50:41.190Z | 2,016 | 4 | 10 | 1 | 3,447 | 4 | 763 | 60 | 3 | 1 | true | false | true | false | false | false | medium |
36,716,201 | layerlist drawable is not changed with imageview on click | <p>I am setting a layer list to an imageview with drawable programatically in android</p>
<p>My custom Drawable is as follows,</p>
<pre><code>package cl.tk.ui.iBAPView;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import androi... | I am setting a layer list to an imageview with drawable programatically in android My custom Drawable is as follows, [CODE] } This is my code to create layer list drawable and set it to imageview, [CODE] and on click of imageview, i am trying to change the drawable but failed as the condition is working perfectly but l... | android|android-drawable|layer-list|layerdrawable|android-custom-drawable | 1 | 2016-04-19T10:50:48.970Z | 2,016 | 4 | 10 | 1 | 227 | 0 | 401 | 57 | 5 | 3 | true | true | false | false | false | false | low |
36,716,213 | Static vs non static Activity intent calling method | <p>Here I am a little bit confuse about Static Intent calling method vs Direct intent calling. What is better choice for creating New Activity as memory point of view?</p>
<p>As per I know if intent method calling with static it contains memory for application lives. is it true or not?</p>
<p>Let move to take example... | Here I am a little bit confuse about Static Intent calling method vs Direct intent calling. What is better choice for creating New Activity as memory point of view? As per I know if intent method calling with static it contains memory for application lives. is it true or not? Let move to take example : In Activity B [C... | java|android|android-intent|static|static-methods | 3 | 2016-04-19T10:51:35.137Z | 2,016 | 4 | 10 | 1 | 909 | 1 | 694 | 51 | 5 | 3 | true | false | false | false | false | false | low |
36,716,264 | I have RecyclerView which populates the feeds. In top of the recyclerview there is portion for feeds to be inserted | <p>I have <code>RecyclerView</code> which populates the feeds. In top of the <code>RecyclerView</code> there is portion for feeds to be posted like status and photos from the gallery.</p>
<p><img src="https://i.stack.imgur.com/kKDmd.png" alt="Screen Shot of the app"></p>
<p>To post status I made <code>Adapter</code> ... | I have RecyclerView which populates the feeds. In top of the RecyclerView there is portion for feeds to be posted like status and photos from the gallery. To post status I made Adapter which extends RecyclerView.Adapter . In this adapter I can perform some onClickListener . But the problem I'm facing is with choosing i... | android | 0 | 2016-04-19T10:53:31.357Z | 2,016 | 4 | 10 | 1 | 118 | 1 | 624 | 115 | 1 | 1 | true | false | false | false | false | false | zero |
36,716,312 | BottomSheetDialog/BottomSheetDialogFragment — which to use and how? | <p>I'm working on a Material design app. One feature I want to implement is some kind of a poll. When a user clicks an element of a list, the persistent bottom sheet dialog, which looks like this should show up:</p>
<p><a href="https://i.stack.imgur.com/IOdOF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I... | I'm working on a Material design app. One feature I want to implement is some kind of a poll. When a user clicks an element of a list, the persistent bottom sheet dialog, which looks like this should show up: Then, when user clicks any button, this dialog should go away and the modal bottom sheet dialog should show up,... | android|android-fragments|dialog|modal-dialog|bottom-sheet | 33 | 2016-04-19T10:55:19.950Z | 2,016 | 4 | 10 | 1 | 23,411 | 2 | 863 | 67 | 5 | 0 | false | false | true | true | true | false | high |
36,716,330 | How to put different custom child items in expandable listview items? | <p>In Expandable List view i have three headers with child views,I want to put custom child views in each of header like in one child view i want to place grid view of images and in other child view i want to place custom search bar and radio buttons and list view etc, How to pass different data from main activity to e... | In Expandable List view i have three headers with child views,I want to put custom child views in each of header like in one child view i want to place grid view of images and in other child view i want to place custom search bar and radio buttons and list view etc, How to pass different data from main activity to each... | android|xamarin|mono|xamarin.android | 4 | 2016-04-19T10:56:19.953Z | 2,016 | 4 | 10 | 1 | 1,269 | 0 | 535 | 69 | 4 | 7 | true | true | false | false | false | false | low |
36,716,438 | Android custom adapter change | <p>I have a custom adapter that holds humans. These humans have some features. What i want is when i click one of these human , features are changed. (Like new message in WhatsApp). Custom Adapter class : </p>
<pre><code> public class GecmisInsanAdapter extends ArrayAdapter<Insan> {
ArrayList<Insan>... | I have a custom adapter that holds humans. These humans have some features. What i want is when i click one of these human , features are changed. (Like new message in WhatsApp). Custom Adapter class : [CODE] These humans are in "objects" ArrayList which come from constructor. It has "yenimesajvarmi" and "kacyenimesaj"... | android | 0 | 2016-04-19T11:01:03.807Z | 2,016 | 4 | 11 | 1 | 35 | 1 | 677 | 29 | 1 | 1 | true | false | false | false | false | false | zero |
36,716,450 | Setting icons to the menu items | <p>I have a navigation drawer with several menu items. I'm trying to dynamically change the menu icon and text color of one of the menu items. Following code is in <code>onCreate()</code> of one of the activity classes which have the navigation drawer:</p>
<pre><code>NavigationView navigationView = (NavigationView) fi... | I have a navigation drawer with several menu items. I'm trying to dynamically change the menu icon and text color of one of the menu items. Following code is in onCreate() of one of the activity classes which have the navigation drawer: [CODE] And here's the method definition: [CODE] Though I can set the title name and... | android|menu|navigation-drawer | 0 | 2016-04-19T11:01:36.490Z | 2,016 | 4 | 11 | 1 | 736 | 1 | 443 | 31 | 3 | 2 | true | false | false | false | false | false | zero |
36,716,487 | How to assgin SNI when use IP in url? | <p>I got a single server 1.1.1.1 serving several host A.com and B.com.
So each domain got its own certificate.</p>
<p>When I am using host based url:</p>
<pre><code>URL url = new URL("https://B.com/23o8PS");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.connect();
Certificate[] certificates ... | I got a single server 1.1.1.1 serving several host A.com and B.com. So each domain got its own certificate. When I am using host based url: [CODE] I can successfully get B.com's certificate. But if I use IP based url (by adding Host field to indicate the host) as below: [CODE] I just got A.com's certificate as if it is... | android|ssl|networking|httpurlconnection|sni | 2 | 2016-04-19T11:03:02.973Z | 2,016 | 4 | 11 | 1 | 2,151 | 2 | 523 | 37 | 5 | 2 | true | false | false | false | false | false | low |
36,716,571 | Phonegap/Cordova building APK exit code 1? | <p>Ive finnished a final year project using phonegap on OSX and i want to make a APK for user testing.</p>
<p>When i've been testing the app on my android tablet i use</p>
<pre><code>phonegap run android // or // cordova run android
</code></pre>
<p>it builds and goes onto my android device fine, works properly and ... | Ive finnished a final year project using phonegap on OSX and i want to make a APK for user testing. When i've been testing the app on my android tablet i use [CODE] it builds and goes onto my android device fine, works properly and all the plugins work fine, however i want to be able to make its own .APK file so friend... | android|cordova|phonegap-cli | 0 | 2016-04-19T11:06:40.537Z | 2,016 | 4 | 11 | 1 | 426 | 1 | 921 | 42 | 3 | 3 | true | false | false | false | false | false | zero |
36,716,675 | Jittery scrolling when loading local images in recyclerView using Picasso | <p>I am loading images in a recyclerView using picasso in my app. The image files are all local files. The problem is that the listview scrolling is not smooth, it is jittery. I searched about it and I saw that a lot of people have had similar problems but it is really strange that there is no clear solution available.... | I am loading images in a recyclerView using picasso in my app. The image files are all local files. The problem is that the listview scrolling is not smooth, it is jittery. I searched about it and I saw that a lot of people have had similar problems but it is really strange that there is no clear solution available. Ho... | android|picasso|android-lazyloading | 0 | 2016-04-19T11:11:06.993Z | 2,016 | 4 | 11 | 1 | 647 | 1 | 1,035 | 73 | 3 | 0 | false | false | false | false | false | false | zero |
36,716,778 | Alarms in API higher than 19 | <p>I'm trying to set an Alarm. When I debug my program on emulator with API 14, everything is ok: I have log even if screen is off or if I manually close the app from recent. But when I debug it on real device with API > 19, I can't see log in these cases: screen is off or I close the app from recent. How to deal with ... | I'm trying to set an Alarm. When I debug my program on emulator with API 14, everything is ok: I have log even if screen is off or if I manually close the app from recent. But when I debug it on real device with API > 19, I can't see log in these cases: screen is off or I close the app from recent. How to deal with it?... | android|android-alarms | 0 | 2016-04-19T11:15:47.620Z | 2,016 | 4 | 11 | 1 | 42 | 0 | 439 | 28 | 2 | 2 | true | true | false | false | false | false | zero |
36,716,826 | How can i delete one file from cache of ImageLoader (including different resolutions) | <p>I have image file://...qgKEIJC5EHey5qLUEDPWazJ9QimqkeQK.jpg, it is loaded with options</p>
<pre><code>new DisplayImageOptions.Builder()
.showImageForEmptyUri(R.drawable.ic_empty)
.showImageOnFail(R.drawable.ic_empty)
.resetViewBeforeLoading(true)
.cach... | I have image file://...qgKEIJC5EHey5qLUEDPWazJ9QimqkeQK.jpg, it is loaded with options [CODE] but when i delete this file, and remove it from cache [CODE] image loader still loading it from memory cache [CODE] then i've tried to delete such file using image view size [CODE] but it not worked how can i delete all such f... | android|caching|universal-image-loader | 0 | 2016-04-19T11:18:27.370Z | 2,016 | 4 | 11 | 1 | 72 | 1 | 336 | 85 | 3 | 4 | true | false | false | false | false | false | zero |
36,716,997 | Add different number of TextViews to LinearLayout holder in ArrayAdapter | <p>I have a listview with CustomArrayAdapter, </p>
<p>want to add dynamically different amount of TextViews to LinearLayout Holder in that listView (like List of TextViews in each row)</p>
<pre><code> @Override
public View getView(final int position, View convertView, ViewGroup parent) {
final ViewHolder holder;... | I have a listview with CustomArrayAdapter, want to add dynamically different amount of TextViews to LinearLayout Holder in that listView (like List of TextViews in each row) [CODE] | android|android-layout|listview|android-linearlayout | 0 | 2016-04-19T11:25:44.620Z | 2,016 | 4 | 11 | 1 | 96 | 1 | 180 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
36,717,006 | Android: Loading AMP Formatted HTML into a WebView | <p>I'm retrieving Accelerated Mobile Pages (APM) formatted HTML form a webcall. I'm then trying to display that AMP in a WebView. So I'm setting up my WebView like this:</p>
<pre><code>webView = (WebView) findViewById(R.id.web_view);
webView.setWebChromeClient(new WebChromeClient());
webView.getSettings().setJavaScrip... | I'm retrieving Accelerated Mobile Pages (APM) formatted HTML form a webcall. I'm then trying to display that AMP in a WebView. So I'm setting up my WebView like this: [CODE] It displays content without error, but it's not displaying correctly. It ignores for example amp-youtube elements and embeded tweets. Is there som... | android|html|webview|amp-html | 2 | 2016-04-19T11:26:03.420Z | 2,016 | 4 | 11 | 1 | 1,768 | 1 | 879 | 50 | 4 | 1 | true | false | false | false | false | false | low |
36,717,148 | Swipe-To-Dismiss in RecyclerView Produces Error | <p>I've a <code>RecyclerView</code> in which I've inflated <code>CardView</code>. I have a database helper named <code>AlarmDBHelper</code>. In one of my fragments, I use a button to add Alarms, which are added to the <code>RecyclerView</code> and the <code>Database</code>. Using a database viewer, I can see that the e... | I've a RecyclerView in which I've inflated CardView . I have a database helper named AlarmDBHelper . In one of my fragments, I use a button to add Alarms, which are added to the RecyclerView and the Database . Using a database viewer, I can see that the entries are added properly. The problem is that I've added a Swipe... | android|database|sqlite|android-recyclerview|android-cardview | 0 | 2016-04-19T11:32:20.887Z | 2,016 | 4 | 11 | 1 | 310 | 2 | 747 | 47 | 5 | 2 | true | false | false | false | false | false | zero |
36,717,171 | How to change default hamburger icon? | <p>I would like to change the hamburger icon.Please suggest me a solution.
<code>MainActivity</code> class as follows:</p>
<pre><code> public class MainActivity extends AppCompatActivity implements FragmentDrawer.FragmentDrawerListener {
private Toolbar mToolbar;
DrawerLayout mDrawerLayout;
private... | I would like to change the hamburger icon.Please suggest me a solution. MainActivity class as follows: [CODE] | android|android-fragments|android-studio|hamburger-menu | 1 | 2016-04-19T11:33:13.057Z | 2,016 | 4 | 11 | 1 | 2,538 | 1 | 109 | 37 | 4 | 1 | true | false | false | false | false | false | low |
36,717,263 | Android ListView using JSON Parsing with Volley | <p>I want to do a ListView that shows the user's orders. In the code below, I got "success" works but I can't get the order array to appear.</p>
<pre><code>public void getOrderList() {
SharedPreferences sharedPreferences = getSharedPreferences("UserData", Context.MODE_PRIVATE);
final String hpno = sharedPrefer... | I want to do a ListView that shows the user's orders. In the code below, I got "success" works but I can't get the order array to appear. [CODE] OrderAdapter: [CODE] My PHP code: [CODE] JSON Return: [CODE] LOGCAT: [CODE] The error is from this line: [CODE] I have been using many methods to retrieved from database, but ... | php|android|arrays|json|listview | 0 | 2016-04-19T11:37:55.017Z | 2,016 | 4 | 11 | 1 | 654 | 2 | 337 | 47 | 5 | 6 | true | false | false | false | false | false | zero |
36,717,275 | BitmapFactory.Options | <p>Recently, I'm learning how to load bitmap in android efficiantly based on android <a href="http://developer.android.com/training/displaying-bitmaps/index.html" rel="nofollow">Android Training</a>. I encountered a problem. Here is my code: </p>
<pre><code> BitmapFactory.Options options = new BitmapFactory.Option... | Recently, I'm learning how to load bitmap in android efficiantly based on android Android Training . I encountered a problem. Here is my code: [CODE] These code prints: [CODE] After I set inSampleSize into 8 , width and height become 1/8 of the origin dimension as Android Training said. But 512 is 1/4 of 2048 ! Why? | android|bitmap | 1 | 2016-04-19T11:38:32.907Z | 2,016 | 4 | 11 | 1 | 660 | 0 | 317 | 21 | 2 | 2 | true | true | false | false | false | false | low |
36,717,341 | Re-signing an APK and getting data through ContentProvider | <p>I am currently writing an app (App A) that depends on another app's data (App B). </p>
<p>Being an Android noobie, I thought that the only way to enable that is to use a <code>ContentProvider</code> and doing a query.</p>
<p>As it stands, the current way of doing is problematic, because App B has another signature... | I am currently writing an app (App A) that depends on another app's data (App B). Being an Android noobie, I thought that the only way to enable that is to use a ContentProvider and doing a query. As it stands, the current way of doing is problematic, because App B has another signature than the one we're using for App... | android|android-contentprovider|jar-signing | 3 | 2016-04-19T11:41:52.917Z | 2,016 | 4 | 11 | 1 | 100 | 1 | 1,811 | 58 | 3 | 0 | false | false | false | false | false | false | low |
36,717,460 | Web View did not load in API Level 19(KITKAT) | <p>I am using webView in Android and tries to check in Android with API Level greater than or equal to 19.My code works fine for API level greater than 19 but the WebView did not open in API LEVEL 19.Can someone please check this out.
Here is the code:</p>
<pre><code> public boolean loadingFinished = true;//is load... | I am using webView in Android and tries to check in Android with API Level greater than or equal to 19.My code works fine for API level greater than 19 but the WebView did not open in API LEVEL 19.Can someone please check this out. Here is the code: [CODE] | android|webview|android-4.4-kitkat | 2 | 2016-04-19T11:47:17.590Z | 2,016 | 4 | 11 | 1 | 1,882 | 2 | 256 | 45 | 3 | 1 | true | false | false | false | false | false | low |
36,717,491 | how can i get notification for every 5 minutes up to user has to launch that notification from notification bar in android? | <p>I am new to android, I am developing an application for every day notifications using alarm manager and receiver, and notifications too. But now i am facing two problems</p>
<ol>
<li><p>If the device is switched off , I am not getting any notification(I think it terminating permanently) and</p></li>
<li><p>i need ... | I am new to android, I am developing an application for every day notifications using alarm manager and receiver, and notifications too. But now i am facing two problems If the device is switched off , I am not getting any notification(I think it terminating permanently) and i need to show a notification every 5 minute... | android|notifications|alarmmanager|android-broadcastreceiver | 1 | 2016-04-19T11:48:52.620Z | 2,016 | 4 | 11 | 1 | 1,559 | 1 | 484 | 123 | 4 | 1 | true | false | false | false | false | false | low |
36,717,538 | Unable to perform PressBack in Espresso Test | <p>In One espresso test,I am trying to click inside RecyclerView item using following code snippet.While clicking on item,It launches another ACTIVITY.
Afterwards if i perform <strong>pressBack</strong>,It stucks at that point.</p>
<pre><code>@Test
public void performClickTest(){
onView(withId(R.id.rv_endless_... | In One espresso test,I am trying to click inside RecyclerView item using following code snippet.While clicking on item,It launches another ACTIVITY. Afterwards if i perform pressBack ,It stucks at that point. [CODE] Is this correct way to perform click inside RecyclerView Item and/or PressBack operation ? | android-espresso | 4 | 2016-04-19T11:51:30.923Z | 2,016 | 4 | 11 | 1 | 588 | 0 | 306 | 44 | 1 | 1 | true | true | false | false | false | false | low |
36,717,700 | When I run my Android application in eclipse, i get this error | <p>When i run my Android application i get the following in the error log</p>
<p>Message:</p>
<pre><code>No command output when running: 'am start -n ru.startandroid.develop.p0031_ourfirstproject/ru.startandroid.develop.p0031_ourfirstproject.MainActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCH... | When i run my Android application i get the following in the error log Message: [CODE] Exception Trace: [CODE] | android | 1 | 2016-04-19T11:59:21.290Z | 2,016 | 4 | 11 | 1 | 114 | 1 | 110 | 62 | 1 | 2 | true | false | false | false | false | false | low |
36,717,710 | How to reach extension fields from Gradle, from within gradle? | <p>I'm in a weird problem here.</p>
<p>Here's the part of the gradle script that actually needs fixing</p>
<pre><code>def getVersion() {
def Calendar cal = Calendar.getInstance();
//def SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd-HHmmss");
def SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy... | I'm in a weird problem here. Here's the part of the gradle script that actually needs fixing [CODE] What I'm trying to do here is assign a version letter based on the used flavor. I have added the vLetter to extensions ext and that one works fine. What I'm really having a problem with is, referencing extension and plai... | android|gradle | 0 | 2016-04-19T11:59:36.517Z | 2,016 | 4 | 11 | 1 | 383 | 1 | 1,623 | 62 | 2 | 3 | true | false | false | false | false | false | zero |
36,717,942 | how to incrase or decrease the brighness of the screen on button click | <p>in my android app i want a single button in which
on 1st click brightness will be 10 ,
on 2nd click brightness will be 50 ,
on third click brightness will be 255 (full )
as the user click next it will back to 10 again
how to code this i have tired this solution but only able to increase </p>
<pre><code> private... | in my android app i want a single button in which on 1st click brightness will be 10 , on 2nd click brightness will be 50 , on third click brightness will be 255 (full ) as the user click next it will back to 10 again how to code this i have tired this solution but only able to increase [CODE] please help me to resolve... | android|screen-brightness | 0 | 2016-04-19T12:09:18.913Z | 2,016 | 4 | 12 | 1 | 588 | 1 | 331 | 70 | 2 | 1 | true | false | false | false | false | false | zero |
36,717,955 | Viewpager showing correct fragment but not initializing it | <p>I have looked everywhere but in every post the problem seems to persist. I have implemented a viewpager using FragmentStatePageAdapter. While the fragments are being displayed correctly on the UI, when I try to pass a value to the fragment the app crashes since the fragment isn't initialized. To check I put a log in... | I have looked everywhere but in every post the problem seems to persist. I have implemented a viewpager using FragmentStatePageAdapter. While the fragments are being displayed correctly on the UI, when I try to pass a value to the fragment the app crashes since the fragment isn't initialized. To check I put a log in ea... | java|android|android-fragments|android-viewpager|fragmentpageradapter | 0 | 2016-04-19T12:09:47.480Z | 2,016 | 4 | 12 | 1 | 1,278 | 1 | 428 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
36,717,963 | TFL API: E/Volley: [73683] BasicNetwork.performRequest: Unexpected response code 300 | <p>I am currently developing a Journey Planner app, using TFLs Unified API, for users with varying accessibility for London.</p>
<p>So far JSONObject/array requests that use <code>icsCodes</code>, for example <a href="https://api.tfl.gov.uk/Journey/JourneyResults/1000266/to/1000013" rel="nofollow">https://api.tfl.gov.... | I am currently developing a Journey Planner app, using TFLs Unified API, for users with varying accessibility for London. So far JSONObject/array requests that use icsCodes , for example https://api.tfl.gov.uk/Journey/JourneyResults/1000266/to/1000013 , instead of strings for the to and from parameters work, and I am a... | android|android-volley | 2 | 2016-04-19T12:09:59.620Z | 2,016 | 4 | 12 | 1 | 465 | 1 | 1,280 | 84 | 2 | 1 | true | false | false | false | false | false | low |
36,718,017 | How to reconnect okhttp-ws | <p>How to make right reconnect if ip address changed or fail connection?</p>
<p>I`m try make reconnect okhttp-ws</p>
<p>.....</p>
<pre><code> @Override
public void onFailure(IOException e, okhttp3.Response response) {
try {
connecting();
} catch (Exception e1) {
Ti... | How to make right reconnect if ip address changed or fail connection? I`m try make reconnect okhttp-ws ..... [CODE] and I receive an error java.lang.RuntimeException: Unable to start service ... (has extras) }: java.util.concurrent.RejectedExecutionException: Task okhttp3.RealCall$AsyncCall@3f946389 rejected from java.... | java|android|okhttp | 5 | 2016-04-19T12:12:01.907Z | 2,016 | 4 | 12 | 1 | 7,475 | 2 | 522 | 26 | 3 | 1 | true | false | true | false | false | false | low |
36,718,039 | How can I make AdMob interstitial ad so they must press the advert to continue | <p>I'm going to be running a comp later this month in my app and I want to use adverts. What I want to do is when a member clicks a button it shows an ad, then if they click the ad to open Google Play a promo code appears. I'm using the stock code avaliable from Ad Mob for interstitials. Just wondering how to edit to s... | I'm going to be running a comp later this month in my app and I want to use adverts. What I want to do is when a member clicks a button it shows an ad, then if they click the ad to open Google Play a promo code appears. I'm using the stock code avaliable from Ad Mob for interstitials. Just wondering how to edit to show... | java|android|admob | 1 | 2016-04-19T12:13:02.213Z | 2,016 | 4 | 12 | 1 | 54 | 0 | 366 | 78 | 3 | 1 | true | true | false | false | false | false | low |
36,718,057 | save selected listview item in arraylist | <p>I have a listview which display names from webservice and in the json web response there is also user_id. I used a pojo for getter and setter of names and user_id's. I want to filter the selected listview's names and their user_id's and save the user_id's in an arraylist.</p>
<p>Activity:</p>
<pre><code>public cla... | I have a listview which display names from webservice and in the json web response there is also user_id. I used a pojo for getter and setter of names and user_id's. I want to filter the selected listview's names and their user_id's and save the user_id's in an arraylist. Activity: [CODE] Listadapter: [CODE] Pojo: [COD... | android|listview|arraylist|pojo | 0 | 2016-04-19T12:13:42.797Z | 2,016 | 4 | 12 | 1 | 801 | 1 | 322 | 40 | 4 | 3 | true | false | false | false | false | false | zero |
36,718,075 | BottomSheetBehavior with GridView flicker | <p>I tried to use gridView inside bottomSheetBehavior.<br>
I get my data asynchronize and i call to <code>setAdapter</code> just when the user click on my button.
The problem is that i see flicker of the data. What can i do to kill this flicker?</p>
<p>In my onCreate:</p>
<pre><code> final ViewGroup gridViewConta... | I tried to use gridView inside bottomSheetBehavior. I get my data asynchronize and i call to setAdapter just when the user click on my button. The problem is that i see flicker of the data. What can i do to kill this flicker? In my onCreate: [CODE] | android|android-layout|listview|gridview | 0 | 2016-04-19T12:14:29.810Z | 2,016 | 4 | 12 | 1 | 298 | 1 | 248 | 41 | 4 | 1 | true | false | false | false | false | false | zero |
36,718,089 | RenderScript crashes app with "Missing .rs.global_entries" | <p>I am using a RenderScript to rotate set of images. The application crashes abruptly with Fatal signal 11. There are 100s of "D/RenderScript﹕ Missing .rs.global_entries from shared object" messages in the log. Also see significant memory increase as well.
What is the cause for this? How do solve it?</p>
<p>I am usi... | I am using a RenderScript to rotate set of images. The application crashes abruptly with Fatal signal 11. There are 100s of "D/RenderScript﹕ Missing .rs.global_entries from shared object" messages in the log. Also see significant memory increase as well. What is the cause for this? How do solve it? I am using Samsung G... | java|android|renderscript | 0 | 2016-04-19T12:14:57.107Z | 2,016 | 4 | 12 | 1 | 127 | 1 | 441 | 58 | 3 | 3 | true | false | false | false | false | false | zero |
36,718,119 | Can't use Facebook Account Kit: Error inflating class com.facebook.accountkit.ui.ConstrainedLinearLayout | <p>I'm trying to integrate Facebook AccountKit to allow users to sign-up with their e-mail or phone number. But when launching the AccountKitActivity, the app crash because it can't inflate a "ConstrainedLayout".</p>
<p>Error message :</p>
<pre><code>java.lang.RuntimeException: Unable to start activity
android.view.I... | I'm trying to integrate Facebook AccountKit to allow users to sign-up with their e-mail or phone number. But when launching the AccountKitActivity, the app crash because it can't inflate a "ConstrainedLayout". Error message : [CODE] And below: [CODE] I'm using in my gradle: [CODE] I'm calling AccountKit.initialize() be... | android|facebook | 14 | 2016-04-19T12:16:18.910Z | 2,016 | 4 | 12 | 1 | 3,655 | 3 | 438 | 104 | 2 | 4 | true | false | true | false | true | false | medium |
36,718,161 | I want to draw a random circle or oval shape on my image taken from camera | <p>My question is that I will take an image from camera and it will be sent to an image view in an activity. After that I need to draw a circle or rectangle on the image.it should be a free hand. I mean I want to draw at any size. Then that image should be saved. I tried to put the image to the view but I am unable to ... | My question is that I will take an image from camera and it will be sent to an image view in an activity. After that I need to draw a circle or rectangle on the image.it should be a free hand. I mean I want to draw at any size. Then that image should be saved. I tried to put the image to the view but I am unable to dra... | java|android | 1 | 2016-04-19T12:18:14.717Z | 2,016 | 4 | 12 | 1 | 82 | 0 | 390 | 74 | 2 | 1 | true | true | false | false | false | false | low |
36,718,272 | Adding fragment to another fragment | <p>I'm trying to add fragment to another fragment but I am getting the following exception:</p>
<pre><code> java.lang.RuntimeException: Unable to start activity ComponentInfo{com.domain.app/com.domain.ui.MainActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f0d00a1 (com.domain.app:id/container)... | I'm trying to add fragment to another fragment but I am getting the following exception: [CODE] The activity layout: [CODE] The fragment layout: [CODE] How I am trying to add the child fragment from the MainFragment: [CODE] As far as I can tell, the id I am providing to the FragmentManager exists and should be there. A... | android | 0 | 2016-04-19T12:22:55.903Z | 2,016 | 4 | 12 | 1 | 341 | 3 | 360 | 35 | 1 | 4 | true | false | false | false | false | false | zero |
36,718,379 | How to fill gaps between each segment of the 7-segment character | <p>I want to recognize digits from odometer by mobile using tesseract library.
Source image:</p>
<p><a href="https://i.stack.imgur.com/XmyTE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XmyTE.png" alt="enter image description here"></a></p>
<p>Next step:</p>
<p><a href="https://i.stack.imgur.co... | I want to recognize digits from odometer by mobile using tesseract library. Source image: Next step: Now i need to fill gaps between each segment. Can you help me, how i do it? (english training data work better for me than https://github.com/arturaugusto/display_ocr ) [CODE] OCR: [CODE] | android|ios|image-processing|ocr|tesseract | 2 | 2016-04-19T12:27:37.263Z | 2,016 | 4 | 12 | 1 | 773 | 1 | 288 | 64 | 5 | 2 | true | false | false | false | false | false | low |
36,718,398 | App showing doing too much work in main thread even if the operations are performed in background thread | <p>Hi I am getting this message in log every time when execute query. But query is executing in background thread only and Table has not more 500 rows and also I always apply limit 100.
Please don't simply give some link and say this question already answered.</p>
<p>I have read lots of answers in SO regarding this. B... | Hi I am getting this message in log every time when execute query. But query is executing in background thread only and Table has not more 500 rows and also I always apply limit 100. Please don't simply give some link and say this question already answered. I have read lots of answers in SO regarding this. But still it... | android|multithreading|performance|android-asynctask|worker-thread | 2 | 2016-04-19T12:28:18.047Z | 2,016 | 4 | 12 | 1 | 572 | 2 | 625 | 104 | 5 | 1 | true | false | false | false | false | false | low |
36,718,476 | UPnP Packets are not receiving | <p>I have a camera which can be found in UPnP Search.
It also advertises(multicast) the same response as of UPnP search in every 150 seconds.</p>
<p>I have created an android app which can identify the camera either by UPnP search or just listening to the multicast advertisement.</p>
<p>I achieved advertisement liste... | I have a camera which can be found in UPnP Search. It also advertises(multicast) the same response as of UPnP search in every 150 seconds. I have created an android app which can identify the camera either by UPnP search or just listening to the multicast advertisement. I achieved advertisement listening by just creati... | android|upnp|packets|ssdp | 0 | 2016-04-19T12:31:14.150Z | 2,016 | 4 | 12 | 1 | 217 | 0 | 755 | 30 | 4 | 1 | true | true | false | false | false | false | zero |
36,718,484 | calenderDialog selected date splitted in textview error | <p>I am using this code in order to get date in this format : <code>dd/mm/yyyy</code>.
Now I want to split the TextView displayDate so that I can get day, month and year separately to parse them in a web service . </p>
<pre><code> displayDate.setText("Date");
displayDate.setOnClickListener(new View.OnClickListe... | I am using this code in order to get date in this format : dd/mm/yyyy . Now I want to split the TextView displayDate so that I can get day, month and year separately to parse them in a web service . [CODE] I tried this : [CODE] And then I called them this way : [CODE] And I have got this error: [CODE] I know that day, ... | android | 0 | 2016-04-19T12:31:34.303Z | 2,016 | 4 | 12 | 1 | 48 | 1 | 424 | 55 | 1 | 4 | true | false | false | false | false | false | zero |
36,718,502 | No DB in Local www and on Android device with SQLite plugin | <p>I use sqlite plugin for my app, with a DB including 3 tables.
On desktop, everything is working, the app access' to data. But, i didn't find the DB in folders, and when a run on my device, there is no db in app/package folder.</p>
<p>Here is my code:</p>
<p>app.js :</p>
<pre><code>var db=null;
var myApp = angula... | I use sqlite plugin for my app, with a DB including 3 tables. On desktop, everything is working, the app access' to data. But, i didn't find the DB in folders, and when a run on my device, there is no db in app/package folder. Here is my code: app.js : [CODE] login.html (nothing special) [CODE] index.html : [CODE] I tr... | android|angularjs|sqlite|ionic-framework | 0 | 2016-04-19T12:32:23.433Z | 2,016 | 4 | 12 | 1 | 359 | 2 | 538 | 59 | 4 | 3 | true | false | false | false | false | false | zero |
36,718,614 | FastSearchListView [Custom ListView with search function] is taking fullscreen of the view | <p>I have implemented a <code>FastSearchListView</code> following instructions in this <a href="http://www.survivingwithandroid.com/2012/12/android-listview-sectionindexer-fastscroll.html" rel="nofollow">link</a> . I have to implement a <code>ListView</code> and a <code>Button</code>. But this <code>ListView</code> is ... | I have implemented a FastSearchListView following instructions in this link . I have to implement a ListView and a Button . But this ListView is occupying the whole view and my Button is not displayed. I have tried even putting both widgets inside Linear Layout and applied weights. Nothing works. Here is my xml [CODE] | android|listview | 0 | 2016-04-19T12:36:35.830Z | 2,016 | 4 | 12 | 1 | 34 | 0 | 319 | 90 | 2 | 1 | true | true | false | false | false | false | zero |
36,718,678 | Deep linking in Android - Chrome does not launch #intent links | <p>I've been trying to use deep linking from a website I own to a resource inside my app. I've been reading about how things has evolved with deep linking in Android, particularly <a href="https://paul.kinlan.me/deep-app-linking-on-android-and-chrome/" rel="nofollow noreferrer">Paul Kinlan's blog post</a> which seems t... | I've been trying to use deep linking from a website I own to a resource inside my app. I've been reading about how things has evolved with deep linking in Android, particularly Paul Kinlan's blog post which seems to be the most recent explanation on how things should work. I also have read this discussion on why custom... | android|google-chrome|android-intent|deep-linking | 4 | 2016-04-19T12:39:52.813Z | 2,016 | 4 | 12 | 1 | 1,162 | 0 | 1,527 | 62 | 4 | 4 | true | true | false | false | false | false | low |
36,718,692 | how to add android native libraries into one aar | <p>I am creating private Sdk for enduser.I face some problems in my project.</p>
<ol>
<li>Add multiple aar/libraries into one aar file.</li>
<li>Add native libraries like appcompactv7, RecyclerView etc.. into final aar.</li>
<li>Some jar file into lib folder.</li>
</ol>
<p>For Example:
Library project1:lib1</p>
<p>L... | I am creating private Sdk for enduser.I face some problems in my project. Add multiple aar/libraries into one aar file. Add native libraries like appcompactv7, RecyclerView etc.. into final aar. Some jar file into lib folder. For Example: Library project1:lib1 Library project2:lib2 -> lib2 have 2 jar file (okhhttp,retr... | android|unity3d|android-gradle-plugin|build.gradle|aar | 0 | 2016-04-19T12:40:22.500Z | 2,016 | 4 | 12 | 1 | 569 | 0 | 638 | 48 | 5 | 2 | true | true | false | false | false | false | zero |
36,718,702 | Android ViewPager with PageTransformer and SceneTransition | <p>and thank you for stopping by.</p>
<p>I've been facing a weird behavior using the combination of both <code>PageTransformer</code> and <code>TransitionManager</code>.</p>
<p>The hierarchy I'm using is fairly easy : A <code>viewPager</code> with each page being a <code>fragment</code>. The fragment has two differen... | and thank you for stopping by. I've been facing a weird behavior using the combination of both PageTransformer and TransitionManager . The hierarchy I'm using is fairly easy : A viewPager with each page being a fragment . The fragment has two different layouts, changing with the TransitionManager.go() . The issue : If ... | android|transition|android-pagetransformer | 2 | 2016-04-19T12:40:39.623Z | 2,016 | 4 | 12 | 1 | 1,265 | 1 | 1,358 | 58 | 3 | 6 | true | false | false | false | false | false | low |
36,719,092 | Getting Bad request at the time of submitting data using retrofit | <p><a href="https://i.stack.imgur.com/99qIA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/99qIA.png" alt="enter image description here"></a>When I am posting data on to my server I am getting error code 400 , Bad request but the scenario is the data is getting posted but my response.body() is fetc... | When I am posting data on to my server I am getting error code 400 , Bad request but the scenario is the data is getting posted but my response.body() is fetching null data and showing the message of a bad request . I am posting the signup class and the interface . Signup.java [CODE] Signup_Interface [CODE] | java|android|api|retrofit|bad-request | 1 | 2016-04-19T12:55:26.853Z | 2,016 | 4 | 12 | 1 | 611 | 0 | 308 | 65 | 5 | 2 | true | true | false | false | false | false | low |
36,719,144 | Android textview wrap custom view | <p>I have <code>TextView</code> and custom view called <code>StarRating</code>.</p>
<p>There is code snippet:</p>
<pre><code><RelativeLayout
android:id="@+id/flowtextView"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.app.views.StarRating
android:id="... | I have TextView and custom view called StarRating . There is code snippet: [CODE] Actual Result: Expected Result: The problem is that TextView is not wrapping the StarRating ... How can I do that ? | android | 1 | 2016-04-19T12:57:33.203Z | 2,016 | 4 | 12 | 1 | 398 | 3 | 197 | 33 | 1 | 1 | true | false | false | false | false | false | low |
36,719,423 | AlarmManager scheduling alarms for different days | <p>I want to build a water reminder app. This app should send notifications every time you are supposed to drink water, according to some calculations that the app does beforehand. I know how to use an <code>AlarmManager</code> to schedule one-time alarms and repeated alarms. What I haven't figured out, after searching... | I want to build a water reminder app. This app should send notifications every time you are supposed to drink water, according to some calculations that the app does beforehand. I know how to use an AlarmManager to schedule one-time alarms and repeated alarms. What I haven't figured out, after searching quite a lot, is... | android|broadcastreceiver|alarmmanager|android-broadcastreceiver | 0 | 2016-04-19T13:08:48.630Z | 2,016 | 4 | 13 | 1 | 327 | 1 | 719 | 49 | 4 | 2 | true | false | false | false | false | false | zero |
36,719,543 | Android animation stops halfway | <p>My problem is that, a animation that worked fine until version 4.4.4 is now sometimes cut short. Meaning in 4.4.4 it was always normaly finished however in the newer android version it happens from time to time that the animation is only half done or only starts and directly goes on to the next part in the code. </p... | My problem is that, a animation that worked fine until version 4.4.4 is now sometimes cut short. Meaning in 4.4.4 it was always normaly finished however in the newer android version it happens from time to time that the animation is only half done or only starts and directly goes on to the next part in the code. I have... | android|animation | 1 | 2016-04-19T13:13:59.767Z | 2,016 | 4 | 13 | 1 | 150 | 0 | 504 | 31 | 2 | 2 | true | true | false | false | false | false | low |
36,719,573 | Android calendar event not being added | <p>I'm trying to add an event to the calendar, this event should be repeated hourly every 3 hours, I wrote the following code :</p>
<pre><code>Intent intent = new Intent(Intent.ACTION_INSERT)
.setData(CalendarContract.Events.CONTENT_URI)
.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME... | I'm trying to add an event to the calendar, this event should be repeated hourly every 3 hours, I wrote the following code : [CODE] When running the code, the calendar opens, when I press "save" a toast is shown ("event is created"), when I check the calendar in my app it shows no event created. If I remove the followi... | android|calendar | 1 | 2016-04-19T13:14:54.460Z | 2,016 | 4 | 13 | 1 | 54 | 0 | 445 | 38 | 2 | 2 | true | true | false | false | false | false | low |
36,719,632 | ripple effect on recyclerview items | <p>I am using </p>
<pre><code>android:background="?android:attr/selectableItemBackground"
</code></pre>
<p>to add ripple effect when items of a recyclerview are touched.
I do display an action bar when an list item is long clicked. However the that item is not highlighted anymore. I used to have a selector </p>
<pre... | I am using [CODE] to add ripple effect when items of a recyclerview are touched. I do display an action bar when an list item is long clicked. However the that item is not highlighted anymore. I used to have a selector [CODE] as background in order to highlight the selected item but because I wanted to have the ripple ... | android|android-recyclerview|ripple | 1 | 2016-04-19T13:16:50.073Z | 2,016 | 4 | 13 | 1 | 1,721 | 1 | 738 | 35 | 3 | 2 | true | false | false | false | false | false | low |
36,719,724 | How can we create Interface and how to implement Interface methods in android? | <p>Hi I am very new for android and I have created one Utils class and there I have created one Alert Dialogue box. </p>
<p>When I click "Ok" and "Cancel" buttons I want to handle that click Actions in my <code>MainActivity</code> using interface methods. </p>
<p>But using my below code I am getting exceptions like:<... | Hi I am very new for android and I have created one Utils class and there I have created one Alert Dialogue box. When I click "Ok" and "Cancel" buttons I want to handle that click Actions in my MainActivity using interface methods. But using my below code I am getting exceptions like: [CODE] CommonUtilities:- [CODE] Ma... | android|interface | -2 | 2016-04-19T13:20:06.430Z | 2,016 | 4 | 13 | 1 | 3,939 | 1 | 339 | 78 | 2 | 3 | true | false | true | false | false | true | negative |
36,719,761 | Navigation drawer still not appearing over toolbar | <p>I am following an Android for beginner's book which despite being quite new, is still out of date in a few areas. I'm making my first app with a navigation drawer, and have found that the method it uses to implement a nav drawer has since been superseded.</p>
<p>Using the technique in <a href="https://stackoverflow... | I am following an Android for beginner's book which despite being quite new, is still out of date in a few areas. I'm making my first app with a navigation drawer, and have found that the method it uses to implement a nav drawer has since been superseded. Using the technique in this answer I have managed a certain amou... | android|android-layout|navigation | 0 | 2016-04-19T13:21:36.670Z | 2,016 | 4 | 13 | 1 | 1,036 | 1 | 1,130 | 50 | 3 | 3 | true | false | false | false | false | false | zero |
36,719,764 | Fatal Exception while running android studio project caused by OutOfMemoryException | <p>I have recently added a button that allows me to go to google maps, after doing this none of my other buttons are working and the error message below is now showing. The button that brings up the map works but the other buttons don't now work.</p>
<p>Error that is appearing on my android monitor. </p>
<pre><code>... | I have recently added a button that allows me to go to google maps, after doing this none of my other buttons are working and the error message below is now showing. The button that brings up the map works but the other buttons don't now work. Error that is appearing on my android monitor. [CODE] This is my LineUpActiv... | java|android|out-of-memory | 0 | 2016-04-19T13:21:37.640Z | 2,016 | 4 | 13 | 1 | 989 | 4 | 336 | 83 | 3 | 2 | true | false | false | false | false | false | zero |
36,719,852 | Android BLE setValue writing wrong value | <p>I am using a characteristic to send and receive data through BLE, from an Android phone to a Nordic nRF51 device.</p>
<p>BLE has CRC codes implemented and uses packet retransmission, so data transfers can be considered reliable.</p>
<p>However, the Android sometimes fails to write to the characteristic, even thoug... | I am using a characteristic to send and receive data through BLE, from an Android phone to a Nordic nRF51 device. BLE has CRC codes implemented and uses packet retransmission, so data transfers can be considered reliable. However, the Android sometimes fails to write to the characteristic, even though I check if the wr... | android|bluetooth-lowenergy | 0 | 2016-04-19T13:25:32.337Z | 2,016 | 4 | 13 | 1 | 803 | 1 | 454 | 40 | 2 | 2 | true | false | false | false | false | false | zero |
36,719,956 | To load splash screen till webview is loaded | <p>Created an android app in which I have a website loaded through webview. I have made my splash screen to load for 5 seconds and have put progress bar in between so that the time taken by the website to load is adjusted. </p>
<p>Now I need to display the splash screen till the page is loaded and have decided to remo... | Created an android app in which I have a website loaded through webview. I have made my splash screen to load for 5 seconds and have put progress bar in between so that the time taken by the website to load is adjusted. Now I need to display the splash screen till the page is loaded and have decided to remove the progr... | android|webview|splash-screen | 0 | 2016-04-19T13:29:57.747Z | 2,016 | 4 | 13 | 1 | 1,153 | 3 | 411 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
36,720,003 | Recursive entry to executependingtransactions in onStart() of activity of fragment | <p>I have a very stupid problem. App has a lot of children fragments into base fragment. And when you lock screen in landscape mode, waiting ~5-6 seconds and turn on screen, app crahes with "Recursive entry to executependingtransactions". And it is repeat only by this scenario. It doesn't repeat when user rotate screen... | I have a very stupid problem. App has a lot of children fragments into base fragment. And when you lock screen in landscape mode, waiting ~5-6 seconds and turn on screen, app crahes with "Recursive entry to executependingtransactions". And it is repeat only by this scenario. It doesn't repeat when user rotate screen or... | android|android-fragments | 2 | 2016-04-19T13:31:51.460Z | 2,016 | 4 | 13 | 1 | 356 | 0 | 649 | 82 | 2 | 2 | true | true | false | false | false | false | low |
36,720,087 | How to implement an OptionMenu in an Activity | <p>I tried to implement <a href="http://adnan.chohdry.com/android/android-how-to-implement-option-menu-in-activity-or-dialog/" rel="nofollow">this</a>, without succes. </p>
<p>The menu Buttons aren't showing.<br>
What's wrong with my code?</p>
<p>My menu xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?&g... | I tried to implement this , without succes. The menu Buttons aren't showing. What's wrong with my code? My menu xml [CODE] And how I call it in my Activiy [CODE] | android|android-optionsmenu | 1 | 2016-04-19T13:35:52.700Z | 2,016 | 4 | 13 | 1 | 278 | 2 | 161 | 45 | 2 | 2 | true | false | false | false | false | false | low |
36,720,098 | TextView background color mixed with parent element background color | <p>I have a layout with a TextView like this:</p>
<pre><code><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/contentColorBackground"
android:backgroundTint="@color/content... | I have a layout with a TextView like this: [CODE] It uses that drawable as a background: [CODE] Everything seems ok, but there is a big problem, the background color of Linear Layout apears mixed with the color of the TextView. That's not what i want, i want the TextView to have only the color of the drawable as it's b... | android|xml | 0 | 2016-04-19T13:36:22.717Z | 2,016 | 4 | 13 | 1 | 243 | 2 | 393 | 68 | 2 | 2 | true | false | false | false | false | false | zero |
36,720,123 | Binary inflation error while inflating floating action button | <p>Im trying to embed Floating Action Button .Following is my xml file</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="... | Im trying to embed Floating Action Button .Following is my xml file [CODE] The problem is that Im getting the following error message, android.view.InflateException: Binary XML file line #300: Error inflating class android.support.design.widget.FloatingActionButton at android.view.LayoutInflater.createView(LayoutInflat... | android|android-layout|floating-action-button | 1 | 2016-04-19T13:37:00.467Z | 2,016 | 4 | 13 | 1 | 167 | 1 | 4,138 | 61 | 3 | 1 | true | false | false | false | false | false | low |
36,720,343 | I get crash my listView. Exception dispatching input event | <p>I have a ListView (image + text) and I load data from the internet.
I extend my ListView batch. If I turn off the internet and touch view (from the ListView) without loading the image, I get an error.</p>
<p>This is my Adapter Code:</p>
<pre><code>public class AdapterListGroups extends BaseAdapter {
private L... | I have a ListView (image + text) and I load data from the internet. I extend my ListView batch. If I turn off the internet and touch view (from the ListView) without loading the image, I get an error. This is my Adapter Code: [CODE] Here is my Logcat. [CODE] | android|listview|android-volley | 2 | 2016-04-19T13:46:17.807Z | 2,016 | 4 | 13 | 1 | 1,565 | 1 | 258 | 58 | 3 | 2 | true | false | false | false | false | false | low |
36,720,437 | Caching with Retrofit 2.0 and okhttp3 | <p>I'm trying to implement caching using Retrofit and OkHttp. Here what I've already done:</p>
<pre><code>private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
@Override public Response intercept(Interceptor.Chain chain) throws IOException {
Request originalReque... | I'm trying to implement caching using Retrofit and OkHttp. Here what I've already done: [CODE] And then I'm adding this interceptor to the HTTP client: .addInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR) I've got files inside my responses directory, however when I try to load content without internet connection, it give... | java|android|retrofit|okhttp | 1 | 2016-04-19T13:50:29.470Z | 2,016 | 4 | 13 | 1 | 5,374 | 2 | 577 | 37 | 4 | 1 | true | false | true | false | false | false | low |
36,720,491 | Using Android Support Annotations | <p>I have an activity where I open a image picker intent and the when I get the selected <code>Uri</code>, I create a copy of the file in cache directory and then pass the location of the image to Picasso to load the image. I am doing this because some apps like Google Photos do not allow the actual Uris to be passed t... | I have an activity where I open a image picker intent and the when I get the selected Uri , I create a copy of the file in cache directory and then pass the location of the image to Picasso to load the image. I am doing this because some apps like Google Photos do not allow the actual Uris to be passed to different act... | android|multithreading|android-support-library | 0 | 2016-04-19T13:52:22.877Z | 2,016 | 4 | 13 | 1 | 512 | 2 | 1,052 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
36,720,524 | Styling a AppCompatButton in v21 to have no shadow and corner radius of zero | <p>I have a AppCompatButton defined in a XML layout, and I have set a theme for it like this:</p>
<pre><code>android:theme="@style/CustomAccentOverlay"</code></pre>
<p>And I have set:</p>
<pre><code>android:stateListAnimator="@null"</code></pre>
<p>to remove the shadow. I have two problems with this.</p>
<p>The he... | I have a AppCompatButton defined in a XML layout, and I have set a theme for it like this: [CODE] And I have set: [CODE] to remove the shadow. I have two problems with this. The height of the button is deducted the height of the shadow, even though the shadow is not shown. Should I remove the shadow in some other way, ... | android|android-layout|android-5.0-lollipop | 8 | 2016-04-19T13:54:28.970Z | 2,016 | 4 | 13 | 1 | 4,636 | 4 | 817 | 76 | 3 | 3 | true | false | true | false | false | false | medium |
36,720,763 | Only one row is displayed in ListView: Android | <p>I am trying to create an activity wherein I have added a search facility to search contacts in the phonebook and list the selected contacts in a ListView.
I have been able to get one row of the ListView working. However, when I try to add another contact, it just replaces the first row. I am new to android app devel... | I am trying to create an activity wherein I have added a search facility to search contacts in the phonebook and list the selected contacts in a ListView. I have been able to get one row of the ListView working. However, when I try to add another contact, it just replaces the first row. I am new to android app developm... | java|android|listview | 0 | 2016-04-19T14:04:42.080Z | 2,016 | 4 | 14 | 1 | 99 | 1 | 413 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
36,720,765 | Realm: Updating objects keeping previous values | <p>I'm trying to update a list of objects keeping those objects that have been modified.</p>
<p>The way I'm trying to achieve this is by:</p>
<ol>
<li>Getting the modified items and keeping them to later re-insert them in the list.</li>
<li>Clear the list.</li>
<li>Add the new objects (from the server).</li>
<li>Reinse... | I'm trying to update a list of objects keeping those objects that have been modified. The way I'm trying to achieve this is by: Getting the modified items and keeping them to later re-insert them in the list. Clear the list. Add the new objects (from the server). Reinsert the previously separated subgroup of object (st... | android|realm | 0 | 2016-04-19T14:04:42.237Z | 2,016 | 4 | 14 | 1 | 249 | 0 | 605 | 47 | 2 | 1 | true | true | false | false | false | false | zero |
36,720,793 | Take a picture and reduce the quality | <p>In my Android app, I have a button to take a picture like this :</p>
<pre><code>button_photo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
imageUri = Uri.fromFile(new File(... | In my Android app, I have a button to take a picture like this : [CODE] and in my ActivityResult : [CODE] I would like to reduce the quality of my picture (I want a picture lighter for the server) before starting the activity of upload. How can I do that ? Thanks | android | 1 | 2016-04-19T14:05:39.763Z | 2,016 | 4 | 14 | 1 | 475 | 1 | 263 | 37 | 1 | 2 | true | false | false | false | false | false | low |
36,720,798 | Gradle hangs on Executing tasks: [:android:generateDebugSources | <p>Since updating my Mac OS X to El Capitan (and android studio from 1.5.1 to 2.x with all tools and sdks) I have problems with my libgdx-robovm game in Android Studio. When I'm doing Gradle Sync it always hangs on:</p>
<blockquote>
<p>Executing tasks: [:android:generateDebugSources,
:android:generateDebugAndroidT... | Since updating my Mac OS X to El Capitan (and android studio from 1.5.1 to 2.x with all tools and sdks) I have problems with my libgdx-robovm game in Android Studio. When I'm doing Gradle Sync it always hangs on: Executing tasks: [:android:generateDebugSources, :android:generateDebugAndroidTestSources, :android:mockabl... | android|android-studio|gradle|libgdx|robovm | 7 | 2016-04-19T14:05:56.070Z | 2,016 | 4 | 14 | 1 | 4,273 | 4 | 2,355 | 63 | 5 | 0 | false | false | true | false | false | false | medium |
36,720,831 | Android : Choose Intent to open from Button | <p>I'm working on android project. In my activity i have four buttons. The user has to select the particular button to receive the notifications. So the next time if i select Notifications(its a fragment of nav drawer) it should directly lead me to that particular activity instead of again selecting the department.</p>... | I'm working on android project. In my activity i have four buttons. The user has to select the particular button to receive the notifications. So the next time if i select Notifications(its a fragment of nav drawer) it should directly lead me to that particular activity instead of again selecting the department. 1st Ru... | android|android-studio | 1 | 2016-04-19T14:07:19.050Z | 2,016 | 4 | 14 | 1 | 54 | 0 | 592 | 43 | 2 | 1 | true | true | false | false | false | false | low |
36,720,901 | How to load images from the phone taken in last hour? | <p>I want to load and display all images that are taken by my phone in last hour. I am using Content Resolver query with some parameters to get images list. I can use this to display just last 10 images:</p>
<pre><code>String sortOrder = String.format("%s limit 50 ", MediaStore.Images.ImageColumns.DATE_TAKEN + " DESC"... | I want to load and display all images that are taken by my phone in last hour. I am using Content Resolver query with some parameters to get images list. I can use this to display just last 10 images: [CODE] And that is working with code from below, but I want to modify my cursor query to just display images taken in l... | android|android-image|android-cursor|android-contentresolver | 0 | 2016-04-19T14:11:17.910Z | 2,016 | 4 | 14 | 1 | 99 | 0 | 465 | 53 | 4 | 3 | true | true | false | false | false | false | zero |
36,720,988 | What do I need to do to make the Android soft keyboard disappear and the EditText field to clear when I click the submit button on my form? | <p>I have a chat function built into my app that I am having problems with. Here is the XML:</p>
<pre><code><LinearLayout android:id="@+id/chat_window" android:orientation="vertical">
<ListView
android:id="@+id/received_chats"
android:stackFromBottom="true"
android:transcriptMode="... | I have a chat function built into my app that I am having problems with. Here is the XML: [CODE] On the back end, I have an onClickListener control that fires when the button is clicked: [CODE] My problem is that when I click the "Send" button, the soft keyboard doesn't disappear and the text I entered into the EditTex... | android | 1 | 2016-04-19T14:14:19.410Z | 2,016 | 4 | 14 | 1 | 637 | 2 | 561 | 139 | 1 | 3 | true | false | false | false | false | false | low |
36,721,197 | Implementing App-to-App calling on Android | <p>I am trying to implement a scenario whereby App-User A can make a voice (video not so important now) call to App-User B on Android. It seems difficult to come across a good tutorial that covers the whole picture. However, from my research, I have been able to learn couple of things but still not enough to get it don... | I am trying to implement a scenario whereby App-User A can make a voice (video not so important now) call to App-User B on Android. It seems difficult to come across a good tutorial that covers the whole picture. However, from my research, I have been able to learn couple of things but still not enough to get it done. ... | android|webrtc|sip|voip|pjsip | 18 | 2016-04-19T14:21:56.957Z | 2,016 | 4 | 14 | 1 | 4,527 | 1 | 1,546 | 42 | 5 | 0 | false | false | true | false | true | false | medium |
36,721,238 | Deleting row from list view using alert box in android | <p>I have retrieved some data from sqlite database to custom <code>ListView</code>. Now when I view the data in list view I want to click on a row and an alert box should appear to tell me do you want to delete this row? If I click yes then the particular row should be deleted please help me in this situation I am post... | I have retrieved some data from sqlite database to custom ListView . Now when I view the data in list view I want to click on a row and an alert box should appear to tell me do you want to delete this row? If I click yes then the particular row should be deleted please help me in this situation I am posting my code rig... | android|sqlite|listview|android-sqlite|sqliteopenhelper | 0 | 2016-04-19T14:23:23.460Z | 2,016 | 4 | 14 | 1 | 750 | 1 | 558 | 54 | 5 | 3 | 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.