id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,206,636 | How to upload audio to soundcloud via my android app using retrofit 2 | <p>I'm trying to upload my .mp3 file to <code>soundcloud</code> using this <code>retrofit2</code> interface :</p>
<pre><code>public interface ApiInterface {
@Multipart
@POST("tracks?client_id=********&client_secret=********")
Call<ResponseBody> uploadTrack(@Part("track") RequestBody file, @Part("track[title]... | I'm trying to upload my .mp3 file to soundcloud using this retrofit2 interface : [CODE] and realization with interceptor to include token: [CODE] Getting response: [CODE] After request i'm receiving error 500: [CODE] Also tried passing file and MultipartBody.Part . In case of multipart i`m receiving error 422. So what ... | android|upload|retrofit|soundcloud | 1 | 2016-05-13T09:44:41.377Z | 2,016 | 5 | 9 | 4 | 1,444 | 1 | 447 | 69 | 4 | 4 | true | false | false | false | false | false | low |
37,206,641 | Android - TextView in a Custom ListView loses its content while scrolling | <p>I have came across these type of questions a lot, But none of the answers solved my problem.</p>
<p>I am developing a mobile shopping application model. I have a custom <code>ListView</code> with an <code>ImageView</code>, and <code>EditText</code>(quantity), 2 <code>Buttons</code> for increasing and decreasing the... | I have came across these type of questions a lot, But none of the answers solved my problem. I am developing a mobile shopping application model. I have a custom ListView with an ImageView , and EditText (quantity), 2 Buttons for increasing and decreasing the quantity, 3 TextView s one for item Name and other two for p... | java|android|listview | 0 | 2016-05-13T09:44:53.187Z | 2,016 | 5 | 9 | 4 | 257 | 1 | 1,500 | 73 | 3 | 0 | false | false | false | false | false | false | zero |
37,206,651 | Android - set textview dynamically in row wise | <p>I have to create textview with json dynamically. For now I successfully<a href="http://i.stack.imgur.com/unUyw.png" rel="nofollow">Click Here</a> create but not in proper way.</p>
<p>Like this image but not able to create. I done like that, <a href="http://i.stack.imgur.com/mdaEv.png" rel="nofollow">Click Here</a><... | I have to create textview with json dynamically. For now I successfully Click Here create but not in proper way. Like this image but not able to create. I done like that, Click Here Here is xml code -- [CODE] Here is java code [CODE] Please help. | android|android-linearlayout|textview | 1 | 2016-05-13T09:45:16.813Z | 2,016 | 5 | 9 | 4 | 713 | 4 | 246 | 46 | 3 | 2 | true | false | false | false | false | false | low |
37,206,728 | fragment exit animation not working | <p>I want slide up animation when opening Fragment B. And when going Back from Fragment B to A, I need the animation in reverse order. </p>
<p>I have an <strong>Activity</strong> which contains a <code>Fragment A</code>, I open <code>Fragment B</code> from A using the given code with animation.</p>
<pre><code> Fra... | I want slide up animation when opening Fragment B. And when going Back from Fragment B to A, I need the animation in reverse order. I have an Activity which contains a Fragment A , I open Fragment B from A using the given code with animation. [CODE] Where slide_in_from_bottom [CODE] slide_out_from_bottom [CODE] Everyth... | android|fragment|android-animation|fragmenttransaction | 3 | 2016-05-13T09:48:35.913Z | 2,016 | 5 | 9 | 4 | 668 | 0 | 484 | 35 | 4 | 4 | true | true | false | false | false | false | low |
37,206,774 | Item is Saving in sqlite database again and again | <p>I am trying to save a value in sqlite database only if my desired condition satisfied but it is saving the value in database even if the condition is satisfied and it doesnot stop.</p>
<p>this is my code </p>
<pre><code>int asas = 0;
if (list!= null) {
for (int i1 = 0; i1 < list.size(); i1++) {
... | I am trying to save a value in sqlite database only if my desired condition satisfied but it is saving the value in database even if the condition is satisfied and it doesnot stop. this is my code [CODE] Now let me explain my code. I have a listview containing different items stored in it. now what I am doing here is t... | android|string|android-sqlite|repeat | -3 | 2016-05-13T09:50:43.287Z | 2,016 | 5 | 9 | 4 | 46 | 1 | 1,311 | 49 | 4 | 2 | true | false | false | false | false | true | negative |
37,206,809 | Setting background color in custom scroll view | <p>I tried setting background color in my xml file in custom scroll view but it showed error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<blockquote>
<p>Alert dialog color is white i want slightly transparent!
having background color of the alert dialog to be <strong>#24000000(slightly transparent)</strong>... | I tried setting background color in my xml file in custom scroll view but it showed error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Alert dialog color is white i want slightly transparent! having background color of the alert dialog to be #24000000(slightly transparent) in this small library taken from here: https... | android|android-custom-view|android-drawable|android-library|android-scrollview | 0 | 2016-05-13T09:51:53.627Z | 2,016 | 5 | 9 | 4 | 325 | 0 | 448 | 46 | 5 | 2 | true | true | false | false | false | false | zero |
37,206,879 | How to align the layout inflater to the right | <p>I am using a layout inflater instead of menu inflater in which the layout gets inflated in center of the page instead of showing at the right corner.
I have tried changing the gravity to right but it didn't works.</p>
<p>Here is my xml file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<Relativ... | I am using a layout inflater instead of menu inflater in which the layout gets inflated in center of the page instead of showing at the right corner. I have tried changing the gravity to right but it didn't works. Here is my xml file: [CODE] Code: [CODE] Screenshot: | android|html|css|android-layout | 0 | 2016-05-13T09:55:14.440Z | 2,016 | 5 | 9 | 4 | 701 | 1 | 266 | 45 | 4 | 2 | true | false | false | false | false | false | zero |
37,206,930 | Grant \system\etc write access from a priviligied app [open failed: EROFS] | <p>I have an issue to edit <code>libnfc-nxp.conf</code> file which is under <code>\system\etc\</code>, I get the following error.</p>
<blockquote>
<p>/system/etc/libnfc-nxp.conf: open failed: EROFS (Read-only file system)</p>
</blockquote>
<p>Context: I have access to AOSP and can modify everything on OS.
I want to dev... | I have an issue to edit libnfc-nxp.conf file which is under \system\etc\ , I get the following error. /system/etc/libnfc-nxp.conf: open failed: EROFS (Read-only file system) Context: I have access to AOSP and can modify everything on OS. I want to develop an Android application which can modify this file. This app will... | android|android-source | 0 | 2016-05-13T09:56:57.340Z | 2,016 | 5 | 9 | 4 | 805 | 2 | 1,419 | 74 | 2 | 0 | false | false | false | false | false | false | zero |
37,207,192 | Android How to set onClick event for Button in list item of ListView | <p>I would like to set onclick event for <code>Button</code> in list item of <code>ListView</code></p>
<p>I have a layout <code>("list_item.xml")</code> in this way: </p>
<pre><code><TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_... | I would like to set onclick event for Button in list item of ListView I have a layout ("list_item.xml") in this way: [CODE] And I have a Activity in this way: [CODE] How to set onClick event for Button in list item in Activity ? | java|android|listview|android-studio | 0 | 2016-05-13T10:07:54.080Z | 2,016 | 5 | 10 | 4 | 1,727 | 2 | 228 | 68 | 4 | 2 | true | false | false | false | false | false | zero |
37,207,350 | How to pass ArrayList of object between activities using Parcelable? | <p>I want to send array list of object from one activity to another. For this I have extended my class with Parcelable. </p>
<p>Still I am not getting the list. Also I have sent a boolean variable for that also value dose not get change.</p>
<p>My object class:</p>
<pre><code>public class contact implements Parcelab... | I want to send array list of object from one activity to another. For this I have extended my class with Parcelable. Still I am not getting the list. Also I have sent a boolean variable for that also value dose not get change. My object class: [CODE] First activity : [CODE] Second Activity : [CODE] EDIT: tried this as ... | java|android|android-activity|arraylist|parcelable | 0 | 2016-05-13T10:15:31.433Z | 2,016 | 5 | 10 | 4 | 1,915 | 3 | 611 | 68 | 5 | 7 | true | false | false | false | false | false | zero |
37,207,477 | how to make interact between nodes that are made in different cpps...? | <p>There are over 20 Layers like Layer01.cpp, Layer02.cpp, Layer03.cpp ...
and there is a tableview named "itemSlots" in HelloWorld.cpp.
When user touch dragon button in Layer01,
a banana sprite in HelloWorld.cpp will be dissappeared,
and a poop appear in itemSlots.
That is all I want to do and I thought it is quite si... | There are over 20 Layers like Layer01.cpp, Layer02.cpp, Layer03.cpp ... and there is a tableview named "itemSlots" in HelloWorld.cpp. When user touch dragon button in Layer01, a banana sprite in HelloWorld.cpp will be dissappeared, and a poop appear in itemSlots. That is all I want to do and I thought it is quite simpl... | android|c++|ios|cocos2d-x | 1 | 2016-05-13T10:21:10.433Z | 2,016 | 5 | 10 | 4 | 72 | 1 | 553 | 70 | 4 | 4 | true | false | false | false | false | false | low |
37,207,791 | Vector Drawables Android 23.3.0 | <p>I got '23.3.0' support library version, can when attempting to do this:</p>
<pre><code><android.support.v7.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/abc"
app:layout_collapseMode="pin"/>
</code></pre>
<p>The dra... | I got '23.3.0' support library version, can when attempting to do this: [CODE] The drawable is not appearing in the device running api 21. As a matter of fact, my app has min Api 21, and even in the android studio preview, only N Preview Api 23 will actually draw the background. I have never had any problems with this ... | android|android-vectordrawable | 1 | 2016-05-13T10:35:39.343Z | 2,016 | 5 | 10 | 4 | 260 | 1 | 408 | 31 | 2 | 2 | true | false | false | false | false | false | low |
37,207,879 | Android send string to PHP | <p>I'm trying conect android with mysql using php for include params into tables.</p>
<p>I maked the php code that works. But I not understand why don's work the android's code. I don't receive errors in logcat.</p>
<p><strong>MainActivity:</strong></p>
<pre><code>...
boton.setOnClickListener(new View.OnClickListene... | I'm trying conect android with mysql using php for include params into tables. I maked the php code that works. But I not understand why don's work the android's code. I don't receive errors in logcat. MainActivity: [CODE] ServerRequest [CODE] EDIT This is the simple index.php file. The php file: [CODE] | php|android|mysql | 0 | 2016-05-13T10:39:36.383Z | 2,016 | 5 | 10 | 4 | 1,259 | 3 | 304 | 26 | 3 | 3 | true | false | false | false | false | false | zero |
37,207,966 | unable to load images from picasso in recyclerview? | <p>I am unable to download images from internet via picasso in recyclerview,I'm not getting what the problem is in my code Here's my code.</p>
<p>MainActivity:-</p>
<pre><code>package bunk.hp.testrecycleview;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.... | I am unable to download images from internet via picasso in recyclerview,I'm not getting what the problem is in my code Here's my code. MainActivity:- [CODE] myadapter:- [CODE] people:- [CODE] activity_main.xml:- [CODE] cardview:- [CODE] and here are the logs:- [CODE] | android|android-recyclerview|picasso | 1 | 2016-05-13T10:44:03.450Z | 2,016 | 5 | 10 | 4 | 492 | 3 | 268 | 51 | 3 | 6 | true | false | false | false | false | false | low |
37,207,979 | Error building/running Android app: Execution failed for task ':app:compileDevDebugJavaWithJavac' | <p>My app was working perfect until I implemented Dagger to my project and some other minor classes to make my app interact with external server.</p>
<p>Now i cant do anything. Im working on Android Studio 2.0, Ubuntu 15.04. I have no idea of what is causing the problen, so feel free to ask for whatever you want to se... | My app was working perfect until I implemented Dagger to my project and some other minor classes to make my app interact with external server. Now i cant do anything. Im working on Android Studio 2.0, Ubuntu 15.04. I have no idea of what is causing the problen, so feel free to ask for whatever you want to see. This is ... | java|android|android-studio|javac | 2 | 2016-05-13T10:44:45.670Z | 2,016 | 5 | 10 | 4 | 1,165 | 0 | 358 | 97 | 4 | 1 | true | true | false | false | false | false | low |
37,208,043 | How to set OkHttpClient for glide | <p>I am using Glide to load images, the issue I'm facing is that when i run app on slow internet connection I'm getting <code>SocketTimeOutException</code>. So to solve this issue i want to use a custom <code>OkHttpClient</code> so that I can change the timeout of HttpClient this is the code i have. </p>
<pre><code>... | I am using Glide to load images, the issue I'm facing is that when i run app on slow internet connection I'm getting SocketTimeOutException . So to solve this issue i want to use a custom OkHttpClient so that I can change the timeout of HttpClient this is the code i have. [CODE] but OkHttpUrlLoader is not there any mor... | android|android-glide | 40 | 2016-05-13T10:47:41.487Z | 2,016 | 5 | 10 | 4 | 22,330 | 5 | 393 | 33 | 2 | 1 | true | false | true | true | true | false | high |
37,208,086 | Android: Function is not excuting with runtime permissions in Android | <p>In the below code,<code>getInfoFromDevice</code> is not being executed, I also tried with a <code>Log.d()</code> but it could not be of further help. </p>
<p>In the code I am using runtime permissions to check if the user has granted permission to access external storage and if yes the function <code>getInfoFromDev... | In the below code, getInfoFromDevice is not being executed, I also tried with a Log.d() but it could not be of further help. In the code I am using runtime permissions to check if the user has granted permission to access external storage and if yes the function getInfoFromDevice() is called. I am not sure if the place... | android|runtime|android-permissions | 0 | 2016-05-13T10:49:29.433Z | 2,016 | 5 | 10 | 4 | 218 | 2 | 702 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
37,208,179 | Create folder on Google drive (Android) | <p>i need to access the google drive storage of logged in user. For now i can fetch his name and his Email, Cover picture and Avatar. I can even ask for accessing the drive storage. But i can't get it managed to create files/folders on Gdrive.</p>
<p>The developers page is giving me this code to create folder:
<a href... | i need to access the google drive storage of logged in user. For now i can fetch his name and his Email, Cover picture and Avatar. I can even ask for accessing the drive storage. But i can't get it managed to create files/folders on Gdrive. The developers page is giving me this code to create folder: https://developers... | android|google-drive-android-api | 2 | 2016-05-13T10:53:18.167Z | 2,016 | 5 | 10 | 4 | 2,983 | 1 | 880 | 39 | 2 | 3 | true | false | true | false | false | false | low |
37,208,208 | Can't find out how to transform Tango Point Cloud | <p>I work with the Google Tango right now and so far everything worked fine, but I stumbled upon a few strange things.</p>
<p>There is a class ScenePoseCalculator in the Tango Examples. And there is a method "toOpenGlCameraPose". When using this, the OpenGL camera however is not set up correctly. When I move forward, ... | I work with the Google Tango right now and so far everything worked fine, but I stumbled upon a few strange things. There is a class ScenePoseCalculator in the Tango Examples. And there is a method "toOpenGlCameraPose". When using this, the OpenGL camera however is not set up correctly. When I move forward, the camera ... | java|android|opengl-es|java-me|tango | 0 | 2016-05-13T10:54:36.627Z | 2,016 | 5 | 10 | 4 | 146 | 1 | 785 | 49 | 5 | 3 | true | false | false | false | false | false | zero |
37,208,243 | How to pass list <object> between fragment | <p>I've created my layout with viewPager and TabLayout:</p>
<pre><code>public class HomeFragment extends Fragment
{
public static TabLayout tabLayout;
public static ViewPager viewPager;
public static int int_items = 3 ;
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState... | I've created my layout with viewPager and TabLayout: [CODE] now I need to do this code in Asynctask (I post only doInBackground() method): [CODE] so now I want to pass List <ParseObject> result; at SearchFragment , CardFragment and MapFragment . It's possible to use a Bundle? Or have I to use other method? | android|android-fragments|parse-platform | 1 | 2016-05-13T10:55:58.337Z | 2,016 | 5 | 10 | 4 | 13,990 | 2 | 307 | 42 | 3 | 2 | true | false | true | true | false | false | low |
37,208,255 | How can I save data in Listview when the size of it exceeds screen size? | <p>I am trying to save or get data from <code>ListView</code> which contains <code>EditText</code>.
When I try to save or get data from <code>ListView</code> which has rows over screen size,I get the error. I know why but don't know how to fix it.the reason is they reuse the views.</p>
<p>Here is the example of what I... | I am trying to save or get data from ListView which contains EditText . When I try to save or get data from ListView which has rows over screen size,I get the error. I know why but don't know how to fix it.the reason is they reuse the views. Here is the example of what I want to do. If there are 5 rows in screen and 1 ... | android|listview | 0 | 2016-05-13T10:56:34.823Z | 2,016 | 5 | 10 | 4 | 56 | 2 | 497 | 72 | 2 | 4 | true | false | false | false | false | false | zero |
37,208,497 | Running a C binary from an android application : particulare case | <p>I have a C project that I want to launch on Android.</p>
<p>I compiled the project using the NDK, generate the binary and embed it in an application to launch it.
The project uses autotools, I used <a href="https://git.collabora.com/cgit/android/androgenizer.git/tree/README.txt" rel="nofollow">androgenizer</a> to g... | I have a C project that I want to launch on Android. I compiled the project using the NDK, generate the binary and embed it in an application to launch it. The project uses autotools, I used androgenizer to generate and adapt the Android.mk s. It also uses openssl, so I compiled it for android following this , and bina... | android|c|android-ndk | 1 | 2016-05-13T11:08:54.030Z | 2,016 | 5 | 11 | 4 | 1,769 | 1 | 1,218 | 65 | 3 | 3 | true | false | false | false | false | false | low |
37,208,532 | Android Splash screen duration | <p>We are using the splash screen to show the company logo every time user open the app. Currently, we are showing the splash screen for 3 Seconds.</p>
<p>Below is the code:</p>
<pre><code>private static int SPLASH_TIME_OUT = 3000; // Delay of 3 Seconds
@Override
protected void onCreate(Bundle savedInstanceStat... | We are using the splash screen to show the company logo every time user open the app. Currently, we are showing the splash screen for 3 Seconds. Below is the code: [CODE] But this splash screen duration is just randomly chosen within team. We kind-of know that Splash screen in general is not all that encouraged in Andr... | android|timer|splash-screen | 6 | 2016-05-13T11:10:35.090Z | 2,016 | 5 | 11 | 4 | 17,251 | 4 | 517 | 30 | 3 | 1 | true | false | true | true | false | false | medium |
37,208,540 | how to add icon into custom listview while receiving icon URL from web server | <p>how to add icon into custom listview while receiving icon URL from web server. i want add icon not url in listview. i am new pls help me here is my code</p>
<p>here is my json file on server.</p>
<pre><code> {"status": 200,"status_message":"Success","response":
[{"platform":0,"logo":"http:\/\/betfan.com\/image... | how to add icon into custom listview while receiving icon URL from web server. i want add icon not url in listview. i am new pls help me here is my code here is my json file on server. [CODE] welcome.java [CODE] here is Activitywelcome.xml code [CODE] list.java [CODE] custom_adapter.java [CODE] Acitvity_custom_adapter.... | java|android|json | 0 | 2016-05-13T11:10:57.483Z | 2,016 | 5 | 11 | 4 | 121 | 2 | 560 | 77 | 3 | 6 | true | false | false | false | false | false | zero |
37,208,561 | What is the name of the Material Design Checkbox in android (android.R.drawable.{checkbox})? | <p>As in, this one below:
<a href="https://i.stack.imgur.com/cepRW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cepRW.png" alt="enter image description here"></a></p>
<p>I need this default drawable so I can programmatically style it to my auto-generated checkboxes, like so:</p>
<pre><code>check... | As in, this one below: I need this default drawable so I can programmatically style it to my auto-generated checkboxes, like so: [CODE] I need this checkbox drawable because Samsung GT-I9300 with Android 4.3 (Jellybean) overrides this style above, like so: This is my app theme: [CODE] What is it's name, like android.R.... | android|android-layout|checkbox | 4 | 2016-05-13T11:11:56.593Z | 2,016 | 5 | 11 | 4 | 6,567 | 3 | 344 | 92 | 3 | 2 | true | false | true | false | false | false | low |
37,208,743 | Are location request made before the Google Api Client is connected enqueued? | <p>I'd like to know if I make a location request before the Google Api Client is connected, will the request be enqueued and performed after the client is connected?</p>
<p>From <a href="http://developer.android.com/training/location/receive-location-updates.html" rel="nofollow">Receiving Location Updates</a> of Googl... | I'd like to know if I make a location request before the Google Api Client is connected, will the request be enqueued and performed after the client is connected? From Receiving Location Updates of Google's Android training, it seems no: Before requesting location updates, your app must connect to location services and... | android|api|location|google-play|google-play-services | 0 | 2016-05-13T11:20:10.273Z | 2,016 | 5 | 11 | 4 | 287 | 1 | 975 | 77 | 5 | 1 | true | false | false | false | false | false | zero |
37,208,763 | Error Android Mobile Vision for barcode scanning | <p>I am trying to implement the second part of the tutorial in this link: </p>
<p><a href="http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680" rel="nofollow noreferrer">http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680</a></p>
<p>I am ge... | I am trying to implement the second part of the tutorial in this link: http://code.tutsplus.com/tutorials/reading-qr-codes-using-the-mobile-vision-api--cms-24680 I am getting the error: BarcodeDetector has private access at.. Any idea why? [CODE] | android|google-play-services|barcode-scanner | 2 | 2016-05-13T11:20:55.867Z | 2,016 | 5 | 11 | 4 | 991 | 1 | 246 | 48 | 3 | 1 | true | false | false | false | false | false | low |
37,208,887 | Unable to open other fragments using android alert dialog fragment? | <p>I am using <code>viewPager</code> and <code>fragments</code> to develop an application . In one screen I use <code>DialogFragment</code>to display an alert message . </p>
<p>My DialogFragment code is below,</p>
<pre><code>public class ErrorFragment extends DialogFragment {
@Override
public View onCreateVi... | I am using viewPager and fragments to develop an application . In one screen I use DialogFragment to display an alert message . My DialogFragment code is below, [CODE] In my button action , I have program to open another fragment however nothing is happening except DialogFragment getting closed. Below is my layout, [CO... | java|android|android-fragments|android-viewpager|android-dialogfragment | 0 | 2016-05-13T11:27:03.933Z | 2,016 | 5 | 11 | 4 | 82 | 0 | 513 | 67 | 5 | 2 | true | true | false | false | false | false | zero |
37,209,054 | Android aws cognito Invalid login token. Not a Cognito token | <p>I am trying to make aws android cognito work with only <code>developer authenticated identities</code>. But getting the below exception (sdk version 2.2.16).</p>
<p>I have cross checked identityId and identityPoolId and both values are correct.</p>
<p>In the loginsMap, I am using key as "<code>cognito-identity.ama... | I am trying to make aws android cognito work with only developer authenticated identities . But getting the below exception (sdk version 2.2.16). I have cross checked identityId and identityPoolId and both values are correct. In the loginsMap, I am using key as " cognito-identity.amazonaws.com " and token as the openId... | android|amazon-web-services|amazon-cognito | 2 | 2016-05-13T11:35:29.547Z | 2,016 | 5 | 11 | 4 | 2,481 | 1 | 543 | 60 | 3 | 1 | true | false | false | false | false | false | low |
37,209,157 | Hide Keyboard when Button Click (Fragment) | <p>i got error to implement hide keyboard when button click, anyone know how to fix that?
actually code error in getSystemService and getWindowsToken</p>
<pre><code>@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
Vie... | i got error to implement hide keyboard when button click, anyone know how to fix that? actually code error in getSystemService and getWindowsToken [CODE] | android|keyboard | 2 | 2016-05-13T11:40:45.913Z | 2,016 | 5 | 11 | 4 | 6,692 | 6 | 153 | 42 | 2 | 1 | true | false | true | false | false | false | low |
37,209,342 | CoordinatorLayout adds space between AppBarLayout and RecyclerView | <p><code>CoordinatorLayout</code> adds space between <code>AppBarLayout</code> and <code>RecyclerView</code>. Not sure whether its the <code>Toolbar</code> or <code>AppBarLayout</code>. </p>
<p>Screenshot of the rendered layout on phone:</p>
<p><a href="https://i.stack.imgur.com/7wL4y.png" rel="nofollow noreferrer"><... | CoordinatorLayout adds space between AppBarLayout and RecyclerView . Not sure whether its the Toolbar or AppBarLayout . Screenshot of the rendered layout on phone: The design rendering on Studio doesn't how this space. Any idea on what's going on? The Code Itself. [CODE] | android|android-design-library|android-coordinatorlayout|android-appbarlayout | 5 | 2016-05-13T11:49:42.680Z | 2,016 | 5 | 11 | 4 | 1,388 | 1 | 271 | 66 | 4 | 1 | true | false | false | false | false | false | low |
37,209,656 | Android - Using outputstream and Mat buffer to create a mp4 Video | <p>I have a buffer which has the Mats from which i want to create a video</p>
<p>I transform those mats into byte array and write them to the outputstream
yet for some reason whenever I watch the video only one image is shown heres the code</p>
<pre><code>try {
File sdCard = Environment.getExternalStorageDirect... | I have a buffer which has the Mats from which i want to create a video I transform those mats into byte array and write them to the outputstream yet for some reason whenever I watch the video only one image is shown heres the code [CODE] | android|video|mp4|outputstream | 1 | 2016-05-13T12:05:38.930Z | 2,016 | 5 | 12 | 4 | 397 | 0 | 237 | 65 | 4 | 1 | true | true | false | false | false | false | low |
37,209,680 | Load AOSP Application to Android Studio | <p>I found a few questions asking how to get the source code from the AOSP running in Android Studio. However, I could not find any explanation on how to import only a single application of the AOSP.</p>
<p>I am trying to do it for the Dialer application which can be found <a href="https://android.googlesource.com/pla... | I found a few questions asking how to get the source code from the AOSP running in Android Studio. However, I could not find any explanation on how to import only a single application of the AOSP. I am trying to do it for the Dialer application which can be found here . However, I had only minor success, I was able to ... | android|android-studio|import|android-source | 0 | 2016-05-13T12:07:01.107Z | 2,016 | 5 | 12 | 4 | 931 | 2 | 841 | 39 | 4 | 0 | false | false | false | false | false | false | zero |
37,209,689 | How to find matched words from strings, and the percentage value? | <p>I have main string.</p>
<blockquote>
<p>String main = "hi how are you? i am fine.";</p>
</blockquote>
<p>and then few strings..</p>
<blockquote>
<p>String string1 = "<strong>hi</strong> people what is the need................ <strong>how</strong> to
................... do the needful........................... | I have main string. String main = "hi how are you? i am fine."; and then few strings.. String string1 = " hi people what is the need................ how to ................... do the needful.................................. and you can only need the change......................................... in the fine situation... | java|android|string|percentage|string-matching | 0 | 2016-05-13T12:07:44.233Z | 2,016 | 5 | 12 | 4 | 1,323 | 2 | 1,227 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
37,209,935 | Changing icon of another menuitem in Android Studio | <p>I have a menu in ActionBar. "gecerlidil" is menu item and "ingilizce" and "turkce" are sub-menu of it. </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id=... | I have a menu in ActionBar. "gecerlidil" is menu item and "ingilizce" and "turkce" are sub-menu of it. [CODE] When i click ingilizce menu item or turkce menu item gecerlidil menu icon will change but i couldn't succeed it. I think i will do it in onOptionsItemSelected function. Thanks for your help | java|android|android-studio | 0 | 2016-05-13T12:21:47.703Z | 2,016 | 5 | 12 | 4 | 397 | 2 | 299 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
37,209,937 | Refreshing an expired access token after signing in Android application | <p>I have implemented a sign in with Google in my Android application by following Google's guide :</p>
<p><a href="https://developers.google.com/identity/sign-in/android/start-integrating" rel="nofollow">https://developers.google.com/identity/sign-in/android/start-integrating</a></p>
<p>I was able to acquire access ... | I have implemented a sign in with Google in my Android application by following Google's guide : https://developers.google.com/identity/sign-in/android/start-integrating I was able to acquire access token, send it to my server , and verify it there using the following URL : https://www.googleapis.com/oauth2/v3/tokeninf... | android|authentication|oauth-2.0|google-oauth | 3 | 2016-05-13T12:21:53.137Z | 2,016 | 5 | 12 | 4 | 304 | 0 | 813 | 71 | 4 | 1 | true | true | false | false | false | false | low |
37,209,966 | How to solve this Logcat error java.lang.ArithmeticException: divide by zero in android | <p>I have been working for dynamically creating table layout but I got log error in my code java.lang.ArithmeticException: divide by zero.
Code.Where I got error couldn't trigger out from logcat.</p>
<pre><code> public void servershopimagesoffline() {
String Specifications = jsonarray;
try {
specif... | I have been working for dynamically creating table layout but I got log error in my code java.lang.ArithmeticException: divide by zero. Code.Where I got error couldn't trigger out from logcat. [CODE] Logcat Error [CODE] | android|android-layout|android-studio|android-tablelayout|android-tablayout | -2 | 2016-05-13T12:22:51.547Z | 2,016 | 5 | 12 | 4 | 1,993 | 3 | 219 | 87 | 5 | 2 | true | false | false | false | false | true | negative |
37,210,441 | Update OpenTok SDK in Android Application | <p>I have a currently running Android application which uses OpenTok SDK version 2.8.
that is <code>'opentok-android-sdk-2.5.0.jar'</code>.</p>
<p>Due to some known issue, i have to update it to the latest version of OpenTok that is <code>opentok-android-sdk-2.8.1</code>. </p>
<p>In the previous version of the OpenTo... | I have a currently running Android application which uses OpenTok SDK version 2.8. that is 'opentok-android-sdk-2.5.0.jar' . Due to some known issue, i have to update it to the latest version of OpenTok that is opentok-android-sdk-2.8.1 . In the previous version of the OpenTok SDK, there used to be one *.jar file and t... | android|opentok|aar|tokbox | 0 | 2016-05-13T12:45:51.640Z | 2,016 | 5 | 12 | 4 | 880 | 1 | 1,372 | 41 | 4 | 4 | true | false | false | false | false | false | zero |
37,210,447 | Why the android (6.0) system forbit a network connection after ~1 hour in deep sleep | <p>I have trouble with android's deep sleep mode after one hour in deep sleep.
The problem only occures on Android 6+. On Android <5 the problem does not occure. Not tested with Android 5, because no device is available.</p>
<p><strong>Device configuration:</strong><br>
I have two Android 6 devices, Google Nexus 5 ... | I have trouble with android's deep sleep mode after one hour in deep sleep. The problem only occures on Android 6+. On Android <5 the problem does not occure. Not tested with Android 5, because no device is available. Device configuration: I have two Android 6 devices, Google Nexus 5 and HTC One M9. Both devices are co... | java|android|wifi | 3 | 2016-05-13T12:46:07.877Z | 2,016 | 5 | 12 | 4 | 764 | 1 | 1,729 | 84 | 3 | 1 | true | false | false | false | false | false | low |
37,210,484 | Android: My thread leaves the black screen of mobile infinitely | <p>I have a problem with an application with a manager thread to perform the catch data and store them in memory for use, but it turns out that when the thread is released ( when creating the main activity) black screen remains infinitely powerless Do nothing. The database is fine, because the use without the thread an... | I have a problem with an application with a manager thread to perform the catch data and store them in memory for use, but it turns out that when the thread is released ( when creating the main activity) black screen remains infinitely powerless Do nothing. The database is fine, because the use without the thread and w... | android|multithreading | 0 | 2016-05-13T12:48:42.260Z | 2,016 | 5 | 12 | 4 | 431 | 1 | 405 | 63 | 2 | 2 | true | false | false | false | false | false | zero |
37,210,562 | GoogleService failed to initialize, status: 10 | <p>I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file:</p>
<p><strong>Manifest:</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest package="com..."
xmlns:android="http://schemas.android.com/apk/res/android"... | I am using google Maps in my android application. I have created the key and added necessary permissions in manifest file: Manifest: [CODE] google-maps-api.xml: [CODE] Also, I have added the following depedency compile 'com.google.android.gms:play-services:8.4.0' to compile, which is working: app.gradle: [CODE] I have ... | android|google-maps | 1 | 2016-05-13T12:52:29.267Z | 2,016 | 5 | 12 | 4 | 1,981 | 3 | 534 | 46 | 2 | 4 | true | false | false | false | false | false | low |
37,210,565 | TextView from Navigation Header is null | <p>I'm trying to implement a navigation drawer with <code>NavigationView</code>.
Everthing works fine so far, every item is displayed correctly. However there is a <code>NullPointerException</code> in this lines :</p>
<pre><code>View header = navigationView.getHeaderView(0);
TextView username = (TextView) header.findV... | I'm trying to implement a navigation drawer with NavigationView . Everthing works fine so far, every item is displayed correctly. However there is a NullPointerException in this lines : [CODE] In this line username.setText(mUser.getUsername()); the NullPointerExption is thrown. The strange thing is that it still displa... | android|android-navigationview | 1 | 2016-05-13T12:52:34.560Z | 2,016 | 5 | 12 | 4 | 555 | 1 | 434 | 39 | 2 | 4 | true | false | false | false | false | false | low |
37,210,656 | Fragment is in backstack | <p>In my app My first <code>Fragment</code> is in BackStack and that fragment wasn't added to backstack at the time of transactions.</p>
<p>Edit.</p>
<blockquote>
<p>I am using same fragment many times after first transections but
transection followed by first one are added to backstack with
<code>addToBackStac... | In my app My first Fragment is in BackStack and that fragment wasn't added to backstack at the time of transactions. Edit. I am using same fragment many times after first transections but transection followed by first one are added to backstack with addToBackStack(TAG); but i never added first fragment to backstack but... | android|android-fragments | 6 | 2016-05-13T12:56:46.180Z | 2,016 | 5 | 12 | 4 | 1,170 | 5 | 948 | 24 | 2 | 4 | true | false | false | false | false | false | medium |
37,210,715 | RecyclerView in Fragment couldnt be found - null object reference | <p>I used this tutorial <a href="https://www.learn2crack.com/2016/02/recyclerview-json-parsing.html" rel="nofollow">https://www.learn2crack.com/2016/02/recyclerview-json-parsing.html</a> to parse JSON in my App. I used the Tabbed Template in Android Studio. I added two fragments, VFragment should show the JSON. The Cod... | I used this tutorial https://www.learn2crack.com/2016/02/recyclerview-json-parsing.html to parse JSON in my App. I used the Tabbed Template in Android Studio. I added two fragments, VFragment should show the JSON. The Code from tutorial for MainActivity (in Tutorial) I put in VFragment. Also my fragment_v layout has th... | java|android|json|android-fragments | 1 | 2016-05-13T12:59:18.167Z | 2,016 | 5 | 12 | 4 | 564 | 1 | 381 | 65 | 4 | 2 | true | false | false | false | false | false | low |
37,210,808 | How do I change the content of recycler view in a fragment when a different tab is selected? | <p>I have tried to create tabs dynamically using material design, Number of tabs will change according to the size of arraylist. I created only one fragment class to display under all the tabs. In Fragment class layout contains a recyclerview. The recyclerview should update based on the tabs.</p>
<pre><code>enter code... | I have tried to create tabs dynamically using material design, Number of tabs will change according to the size of arraylist. I created only one fragment class to display under all the tabs. In Fragment class layout contains a recyclerview. The recyclerview should update based on the tabs. [CODE] | android|material-design|android-recyclerview|android-tabs | 0 | 2016-05-13T13:03:32.287Z | 2,016 | 5 | 13 | 4 | 556 | 0 | 297 | 92 | 4 | 1 | true | true | false | false | false | false | zero |
37,210,965 | onActivityResult returns intent data = null when calling the second time | <p>I know there're answers about this topic but the behaviour isn't the same as the other questions.</p>
<p>I have a fragment that has two buttons with two differente onClick methods. Each onClick method launch an startActivityForResult() but on the onActivityResult(int requestCode, int resultCode, Intent data) method... | I know there're answers about this topic but the behaviour isn't the same as the other questions. I have a fragment that has two buttons with two differente onClick methods. Each onClick method launch an startActivityForResult() but on the onActivityResult(int requestCode, int resultCode, Intent data) method in the fra... | android|android-fragments|android-activity|onactivityresult | 1 | 2016-05-13T13:10:15.310Z | 2,016 | 5 | 13 | 4 | 1,798 | 1 | 1,518 | 72 | 4 | 5 | true | false | false | false | false | false | low |
37,210,966 | How to rotate only the canvas behind the text | <p>I have this function that animate the image canvas from resource drawable with text on the front.</p>
<p>I want to rotate the a green "star" only so the text stay intact</p>
<p><a href="https://i.stack.imgur.com/kzd9S.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kzd9S.jpg" alt="enter image de... | I have this function that animate the image canvas from resource drawable with text on the front. I want to rotate the a green "star" only so the text stay intact The idea is to rotate only the image canvas but no the text. How do I do that? This code is for Android Java [CODE] | java|android|animation|android-canvas|rotateanimation | 0 | 2016-05-13T13:10:21.420Z | 2,016 | 5 | 13 | 4 | 90 | 0 | 278 | 45 | 5 | 1 | true | true | false | false | false | false | zero |
37,211,029 | Programmatically set background tinting of AppCompatCheckBox | <p>I want to tint the background of a CheckBox at runtime. It cannot be done statically using theming. I can theme the text & checkbox drawable without any issues.</p>
<p>I expected this to work:</p>
<pre><code>int[][] states = new int[][] {
new int[] { android.R.attr.state_enabled}, // enabled
... | I want to tint the background of a CheckBox at runtime. It cannot be done statically using theming. I can theme the text & checkbox drawable without any issues. I expected this to work: [CODE] But this does exactly nothing to the background, even on a Marshmallow device. Theming just about anything in Android dynamical... | android|android-support-library|android-appcompat | 1 | 2016-05-13T13:14:00.277Z | 2,016 | 5 | 13 | 4 | 563 | 0 | 606 | 60 | 3 | 2 | true | true | false | false | false | false | low |
37,211,036 | sending multiple image path to the server? | <p>I have written the below code in <code>doInBackground</code>, </p>
<pre><code>InputStream in = null;
DefaultHttpClient httpclient = new DefaultHttpClient();
try {
System.out.println("calling API here");
HttpPost httppost = new HttpPost("my url");
MultipartEntity reqEntity = new MultipartEntity();
... | I have written the below code in doInBackground , [CODE] The problem is when I am sending multiple image(s) to the server , only first image (for e.g, 23457352.jpg) is sending others are not. can anyone help me to solve this problem? Thanks in advance... | android|asynchronous|http-post|androidhttpclient | 0 | 2016-05-13T13:14:28.643Z | 2,016 | 5 | 13 | 4 | 50 | 1 | 254 | 42 | 4 | 1 | true | false | false | false | false | false | zero |
37,211,122 | Can't update Android Studio to 2.1.1, validation fails with missing bouncy-castle | <p>There is an Emergency security patch to patch vulnerabilities found in IntelliJ platform. <a href="http://www.androidpolice.com/2016/05/11/emergency-patch-issued-for-android-studio-and-intellij-based-ides-to-close-up-two-serious-security-vulnerabilities/" rel="nofollow">Here is a news article about it</a></p>
<p>Ho... | There is an Emergency security patch to patch vulnerabilities found in IntelliJ platform. Here is a news article about it However when hitting patch the update button, Android Studio downloads the patch, shuts off Android Studio, enters the updater with elevated privilages (I am using Windows 10), starts validating my ... | android-studio-2.1 | 1 | 2016-05-13T13:18:39.203Z | 2,016 | 5 | 13 | 4 | 372 | 1 | 477 | 81 | 1 | 1 | true | false | false | false | false | false | low |
37,211,188 | Cannot run Android Emulator in Android Studio 2.1.1 | <p>I just re-installed Android Studio 2.1.1 on the same PC running Windows 7 32-bit after a year. Everything other than the emulator works perfectly.</p>
<p>The AVD Manager displays an error message: <code>/dev/kvm is not found.</code>
When I click on the Troubleshoot button, it says</p>
<blockquote>
<p>Enable VT-x in ... | I just re-installed Android Studio 2.1.1 on the same PC running Windows 7 32-bit after a year. Everything other than the emulator works perfectly. The AVD Manager displays an error message: /dev/kvm is not found. When I click on the Troubleshoot button, it says Enable VT-x in your BIOS security settings, ensure that yo... | android|android-studio|android-emulator|haxm | 3 | 2016-05-13T13:21:58.520Z | 2,016 | 5 | 13 | 4 | 10,520 | 2 | 1,202 | 51 | 4 | 0 | false | false | true | false | false | false | low |
37,211,223 | How does android manages different DPI | <p>I have read documentation, extract data from other sources as well, but unable to understand this very basic thing.</p>
<p>In android we use <code>DP</code>, because its responsive and it stretches <code>resources</code> with respect to the screen sizes.</p>
<p>My question is there are different densities of diffe... | I have read documentation, extract data from other sources as well, but unable to understand this very basic thing. In android we use DP , because its responsive and it stretches resources with respect to the screen sizes. My question is there are different densities of different screens. Lets consider following 2 scre... | android|android-layout|android-studio|android-resources|android-resolution | 1 | 2016-05-13T13:23:47.330Z | 2,016 | 5 | 13 | 4 | 866 | 1 | 804 | 38 | 5 | 0 | false | false | false | false | false | false | low |
37,211,300 | QR code GENERATION Error | <p>i want to generate qr code from string and search stackoverflow, but when i use these codes, i have error "unexpectly... " !!!
this is my code.
can any body say where i am wrong ?
besides i need another code for giving me string from qr code ...
thanks</p>
<pre><code> import android.app.Activity;
import android.gr... | i want to generate qr code from string and search stackoverflow, but when i use these codes, i have error "unexpectly... " !!! this is my code. can any body say where i am wrong ? besides i need another code for giving me string from qr code ... thanks [CODE] | android|qr-code | 0 | 2016-05-13T13:27:37.933Z | 2,016 | 5 | 13 | 4 | 107 | 0 | 259 | 24 | 2 | 1 | true | true | false | false | false | false | zero |
37,211,565 | How to combine multiple Uri from Images | <p>I have this function that queries the gallery images</p>
<pre><code>public void getImagesFromGallary(Context context) {
List<Uri> imagesUri = new ArrayList<>();
List<Uri> imageOrientationUri = new ArrayList<>();
Cursor imageCursor = null;
try {
fin... | I have this function that queries the gallery images [CODE] Do I have to have two Uri list for this, for instance I have a imagesUri list and a imageOrientationUri list. What if I want more information from the Image do I have to parse another Uri from the cursor? | android|android-gallery|mediastore | 1 | 2016-05-13T13:40:58.877Z | 2,016 | 5 | 13 | 4 | 103 | 1 | 264 | 39 | 3 | 1 | true | false | false | false | false | false | low |
37,211,605 | Android: What is the default color bitmap of SurfaceView and how to change it? | <p>In my application I have a Translucent <code>Activity</code> with <code>android:windowIsTranslucent</code> is set to <code>true</code>. <code>Activity</code> contains a <code>FrameLayout</code> to which I programmatically add <code>SurfaceView</code>. </p>
<p>By default <code>SurfaceView</code> is drawing bitmap, a... | In my application I have a Translucent Activity with android:windowIsTranslucent is set to true . Activity contains a FrameLayout to which I programmatically add SurfaceView . By default SurfaceView is drawing bitmap, as per the Activity background Theme , which in my case in Translucent , so SurfaceView is showing tra... | android|android-layout|surfaceview|surfaceholder|android-graphics | 3 | 2016-05-13T13:42:54.137Z | 2,016 | 5 | 13 | 4 | 643 | 0 | 863 | 78 | 5 | 1 | true | true | false | false | false | false | low |
37,211,614 | Is there a way to have Xamarin unit test runners from different platforms use the same tests from a PCL? | <p>Let's say I have a cross platform mobile app. It is built in the Xamarin framework and its architecture looks like this (somewhat simplified):</p>
<ul>
<li>iOS project</li>
<li>Android project</li>
<li>PCL that contains logic (shared layer)</li>
</ul>
<p>The shared layer contains all business logic and the other t... | Let's say I have a cross platform mobile app. It is built in the Xamarin framework and its architecture looks like this (somewhat simplified): iOS project Android project PCL that contains logic (shared layer) The shared layer contains all business logic and the other two projects contain the platform specific ui imple... | android|ios|unit-testing|xamarin|nunit | 1 | 2016-05-13T13:43:28.670Z | 2,016 | 5 | 13 | 4 | 434 | 2 | 1,355 | 104 | 5 | 3 | true | false | false | false | false | false | low |
37,211,770 | Xamarin:Get the absolute path of files in Assets Folder | <p>I just want get the absolute path of my "test.pdf" in Assets folder in <strong>Visual studio Xamarin(2015)</strong>. How should i do that?</p>
<pre><code> using System;
using System.IO;
using Android.App;
using Android.Content;
using Android.Widget;
... | I just want get the absolute path of my "test.pdf" in Assets folder in Visual studio Xamarin(2015) . How should i do that? [CODE] But in second line i face with error with (file.AbsolutePath) : 'object' does not contain a definition for 'AbsolutePath' and no extension method 'AbsolutePath' accepting a first argument of... | xamarin|xamarin.android | 0 | 2016-05-13T13:50:22.673Z | 2,016 | 5 | 13 | 4 | 2,850 | 1 | 475 | 55 | 2 | 1 | true | false | true | false | false | false | zero |
37,211,873 | MPAndroidChart: How to format BarEntry as a String? | <p>I have a horizontal bar chart with X values. Right now I only can create a BarEntry with a float value like this:</p>
<pre><code>BarEntry barEntry = new BarEntry( (float )iAmountInCents / 100, ++ index,item.getKey());
valueSet1.add(barEntry);
</code></pre>
<p>I also added a <strong>custom formatter</strong>:</p>
... | I have a horizontal bar chart with X values. Right now I only can create a BarEntry with a float value like this: [CODE] I also added a custom formatter : [CODE] But the getFormattedValue() method is NEVER called which results in something like this on a bar in the chart: 0.400. I want that value on the bar chart to lo... | android|mpandroidchart | 0 | 2016-05-13T13:54:43.860Z | 2,016 | 5 | 13 | 4 | 1,836 | 1 | 366 | 51 | 2 | 2 | true | false | false | false | false | false | zero |
37,211,877 | Android custom spinner adapter not displaying content | <p>I have a small problem where my spinner doesn't crash the application but at the same time doesn't display my custom adapter inside of it. I have spent ages not trying to look where the problem is but I still cannot seem to find it, can anyone spot my error?</p>
<p>My Adapter</p>
<pre><code>public class Accomdatio... | I have a small problem where my spinner doesn't crash the application but at the same time doesn't display my custom adapter inside of it. I have spent ages not trying to look where the problem is but I still cannot seem to find it, can anyone spot my error? My Adapter [CODE] Main Activity [CODE] Custom room spinner xm... | android|spinner|android-arrayadapter|adapter|android-spinner | 2 | 2016-05-13T13:54:55.057Z | 2,016 | 5 | 13 | 4 | 1,071 | 2 | 348 | 53 | 5 | 4 | true | false | false | false | false | false | low |
37,211,906 | AAPT cruncher image optimization removes resources from density buckets? | <p>I decompiled my APK with apktool to check the resources of the app after build.</p>
<p>I was surprised that I couldn't find the drawable-mdpi folder in the decompiled source and a lot of the image resources was removed from drawable-xhdpi and drawable-hdpi. </p>
<p>If i turn off the cruncher in the aapt tool with ... | I decompiled my APK with apktool to check the resources of the app after build. I was surprised that I couldn't find the drawable-mdpi folder in the decompiled source and a lot of the image resources was removed from drawable-xhdpi and drawable-hdpi. If i turn off the cruncher in the aapt tool with [CODE] then i get al... | android|aapt | 1 | 2016-05-13T13:56:06.433Z | 2,016 | 5 | 13 | 4 | 323 | 0 | 694 | 72 | 2 | 1 | true | true | false | false | false | false | low |
37,211,928 | Why i'm getting timeout when trying to connect from my android device to the web server on my pc? | <p>The web server on the pc is in c#
In the form1 constructor:</p>
<pre><code>var ws = new WebServer(
request => Task.Run(() => SendResponseAsync(request)),
"http://+:8098/");
ws.Run();
</code></pre>
<p>This two methods</p>
<pre><code>public static string GetLocalIPAddress()
{
v... | The web server on the pc is in c# In the form1 constructor: [CODE] This two methods [CODE] Then in timer tick event interval set to 1000ms [CODE] And the WebServer class [CODE] On the pc side the c# i'm not getting any errors or exceptions and using break point i can see the pc ip on the network on the router on the me... | java|c#|android|android-studio|networking | 0 | 2016-05-13T13:56:48.780Z | 2,016 | 5 | 13 | 4 | 1,174 | 0 | 1,454 | 97 | 5 | 9 | true | true | false | false | false | false | zero |
37,211,936 | How to set background of collapsing toolbar with custom behavior to fit whole screen | <p>I'm following nice repo which shows how to make custom behavior of collapsing toolbar <a href="https://github.com/anton46/WhatsApp-ProfileCollapsingToolbar" rel="nofollow noreferrer">WhatsApp-ProfileCollapsingToolbar</a>.</p>
<p>What I don't like is when picture below toolbar (toolbar's font is white) is white then... | I'm following nice repo which shows how to make custom behavior of collapsing toolbar WhatsApp-ProfileCollapsingToolbar . What I don't like is when picture below toolbar (toolbar's font is white) is white then toolbar is not visible. So I'm trying to set background of toolbar to some color. First I added to widget_head... | android|android-layout|android-toolbar|android-collapsingtoolbarlayout|android-layoutparams | 6 | 2016-05-13T13:57:16.720Z | 2,016 | 5 | 13 | 4 | 1,096 | 2 | 858 | 84 | 5 | 1 | true | false | false | false | false | false | medium |
37,212,059 | Samsung Galaxy S4 camera autofocus callback sometimes called twice | <p>I'm writing a camera app that's continuously processing preview frames and when it detects a subject of interest, it automatically takes a full-size picture with focus/metering parameters set to the area of interest.</p>
<p>It works well on all devices I have to test on, except the Samsung Galaxy S4 GT-I9500, Andro... | I'm writing a camera app that's continuously processing preview frames and when it detects a subject of interest, it automatically takes a full-size picture with focus/metering parameters set to the area of interest. It works well on all devices I have to test on, except the Samsung Galaxy S4 GT-I9500, Android version ... | android|android-camera|samsung-mobile | 1 | 2016-05-13T14:02:26.940Z | 2,016 | 5 | 14 | 4 | 252 | 0 | 571 | 66 | 3 | 2 | true | true | false | false | false | false | low |
37,212,377 | AuthFailure while trying to connect android device to wampserver(localhost) using volley | <p>I am trying to connect my Android device to localhost ie wampserver
using android volley</p>
<p><strong>This is my code:</strong></p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setConte... | I am trying to connect my Android device to localhost ie wampserver using android volley This is my code: [CODE] Toast says AuthFailureError . the IP address I am using here is an IPv4 Address. Does anybody know why I am getting this error and how I can solve this? | android|android-volley | 1 | 2016-05-13T14:16:49.290Z | 2,016 | 5 | 14 | 4 | 247 | 1 | 265 | 88 | 2 | 1 | true | false | false | false | false | false | low |
37,212,425 | Multiple cookies in CookieManager | <p>Lets prepare for cookie storing:</p>
<pre><code>CookieSyncManager.createInstance(getApplicationContext());
CookieSyncManager.getInstance().startSync();
CookieManager.getInstance().setAcceptCookie(true);
</code></pre>
<p>Then I'm putting manually some cookies, lets say <code>PHPSESSID</code> and <code>RANDOM</code>... | Lets prepare for cookie storing: [CODE] Then I'm putting manually some cookies, lets say PHPSESSID and RANDOM [CODE] lets check is it working using: [CODE] and got [CODE] Everything looks good, but when I navigate in may app to one of WebView Activities, which are opening same domain website also setting cookies, then ... | android|cookies|android-webview|android-cookiemanager | 5 | 2016-05-13T14:18:51.137Z | 2,016 | 5 | 14 | 4 | 4,771 | 2 | 621 | 33 | 4 | 6 | true | false | true | false | false | false | low |
37,212,447 | Why does my app get minimized without an obvious reason? | <p><strong>TL;DR</strong>
My app gets minimized (as if the home-button was pushed) when I tap the navigation icon in my toolbar after going from an activity to another one and back. </p>
<p>Detailed flow of actions:</p>
<ul>
<li>Open app, Activity1 comes up</li>
<li>Tap navigation icon (drawer opens normally, I can c... | TL;DR My app gets minimized (as if the home-button was pushed) when I tap the navigation icon in my toolbar after going from an activity to another one and back. Detailed flow of actions: Open app, Activity1 comes up Tap navigation icon (drawer opens normally, I can close and open it any amount of times at this stage, ... | android|oneplustwo | 2 | 2016-05-13T14:19:48.280Z | 2,016 | 5 | 14 | 4 | 812 | 1 | 1,062 | 56 | 2 | 0 | false | false | false | false | false | false | low |
37,212,520 | Use a path at a SQLite DB and use it to get an Image | <p>I have created a SQLITE DB to use their values at an Android app:</p>
<pre><code>mydatabase = openOrCreateDatabase("MINERALG", MODE_PRIVATE, null);
mydatabase.execSQL("DROP TABLE IF EXISTS MINERALS");
mydatabase.execSQL("CREATE TABLE IF NOT EXISTS MINERALS(Name TEXT, Type TEXT, Subtype TEXT, Formula TEXT, P... | I have created a SQLITE DB to use their values at an Android app: [CODE] Using intent.putExtra("path",[String of the path]) and intent.getStringExtra("path"), I have passed the path as a String and I have it at another activity. The problem is I don´t find the way to show the image at the 2nd activity. I have the file ... | java|android|sql | 0 | 2016-05-13T14:22:31.563Z | 2,016 | 5 | 14 | 4 | 45 | 1 | 459 | 52 | 3 | 2 | true | false | false | false | false | false | zero |
37,212,785 | How to align view (like in RelativeLayout) with a nephew view? | <p><a href="https://stackoverflow.com/q/11493693/1034042">Related question</a>. Answer: RelativeLayout can't do it. I'm asking how to do it anyway, with not <em>just</em> RL, or with something else.</p>
<p>General story: you have a complex layout that would be difficult to adjust, and along comes a request for somethi... | Related question . Answer: RelativeLayout can't do it. I'm asking how to do it anyway, with not just RL, or with something else. General story: you have a complex layout that would be difficult to adjust, and along comes a request for something to be added, aligning with a nested view. What is the best approach? A popu... | android|android-relativelayout | 0 | 2016-05-13T14:34:54.043Z | 2,016 | 5 | 14 | 4 | 482 | 1 | 1,195 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
37,212,804 | Are java.sound and java.util.RandonAccessFile fully supported on Android and iOS | <p>I'm considering using codenameone to implement a cross-platform app, Win/Mac/Android/iOS. I do my development on Windows, and am fairly clueless about Mac and iOS development. Two specific features that I use quite a bit, are the java.sound API and RandomAccessFile. I was curious what the support for these on the mo... | I'm considering using codenameone to implement a cross-platform app, Win/Mac/Android/iOS. I do my development on Windows, and am fairly clueless about Mac and iOS development. Two specific features that I use quite a bit, are the java.sound API and RandomAccessFile. I was curious what the support for these on the mobil... | java|android|ios|codenameone | 1 | 2016-05-13T14:35:45.130Z | 2,016 | 5 | 14 | 4 | 41 | 1 | 497 | 80 | 4 | 3 | true | false | false | false | false | false | low |
37,213,008 | ANDROID How to get value listview item position on button click | <p>I have a custom ListView with a button and when I click either button on any row I want to get the text label on the Listview and for now just popup a toast with it.</p>
<p><strong>I have list_item.xml:</strong></p>
<pre><code><TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orien... | I have a custom ListView with a button and when I click either button on any row I want to get the text label on the Listview and for now just popup a toast with it. I have list_item.xml: [CODE] The button have "android:onClick="myClickHandler"".. In my activity i have this: public class ActivityListview extends AppCom... | android|listview|android-studio | -1 | 2016-05-13T14:43:57.093Z | 2,016 | 5 | 14 | 4 | 1,260 | 2 | 450 | 63 | 3 | 3 | true | false | false | false | false | true | negative |
37,213,074 | Error Click Button for move another fragment | <p>im create some button in fragment A, and when im click this <strong>rekomendasi button</strong> it will move to another fragment(frgment B) but idk whats wrong wtih my code and when im click the <strong>rekomendasi</strong> <strong>button</strong> will unfortunatelly stopped, pls someone take a look </p>
<p>Referen... | im create some button in fragment A, and when im click this rekomendasi button it will move to another fragment(frgment B) but idk whats wrong wtih my code and when im click the rekomendasi button will unfortunatelly stopped, pls someone take a look Reference gvsharma answer fragmentA.java [CODE] Here my MainActivity.j... | android|android-fragments | 0 | 2016-05-13T14:46:07.853Z | 2,016 | 5 | 14 | 4 | 93 | 0 | 347 | 44 | 2 | 3 | true | true | false | false | false | false | zero |
37,213,081 | How to run Android 2.3.3 Emulator with Android Studio v2? | <p>The problem is that in the latest Android Studio, ARM system images for Android 2.3.3 (API 10) is no longer available for download from the SDK Manager. Instead <a href="http://i.stack.imgur.com/gJ8jW.jpg" rel="nofollow">there is an option</a> called <strong>Google APIs</strong>, which downloads all files not in the... | The problem is that in the latest Android Studio, ARM system images for Android 2.3.3 (API 10) is no longer available for download from the SDK Manager. Instead there is an option called Google APIs , which downloads all files not in the Android\sdk\system-images folder, but in the Android\sdk\add-ons folder. Under tha... | android|android-studio|android-emulator|android-sdk-tools | 3 | 2016-05-13T14:46:24.167Z | 2,016 | 5 | 14 | 4 | 2,825 | 3 | 1,632 | 57 | 4 | 0 | false | false | true | false | false | false | low |
37,213,147 | Espresso onData test | <p>I'm writing Espresso tests for a navigation drawer that has a long, dynamic list of entries. I'd like to match a navDrawer menu item by Text and not position number. Looking at Google's <a href="https://github.com/googlesamples/android-testing/tree/master/ui/espresso/DataAdapterSample" rel="nofollow">DataAdapterSamp... | I'm writing Espresso tests for a navigation drawer that has a long, dynamic list of entries. I'd like to match a navDrawer menu item by Text and not position number. Looking at Google's DataAdapterSample , I would expect I could use this to get a match: [CODE] I'm not getting a match. But in the log I can see what I'm ... | android|android-espresso | 0 | 2016-05-13T14:49:52.920Z | 2,016 | 5 | 14 | 4 | 691 | 1 | 345 | 20 | 2 | 2 | true | false | false | false | false | false | zero |
37,213,333 | Adding a view to a fragment from another fragment | <p>I'm trying to add a view in fragment B from fragment A, they both belong to the same activity but they are never running simultaneously</p>
<p><strong>My activity:</strong></p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.lay... | I'm trying to add a view in fragment B from fragment A, they both belong to the same activity but they are never running simultaneously My activity: [CODE] Fragment A: [CODE] Fragment B: [CODE] Question: I know that a fragment can't communicate with another fragment directly, how do I tell the activity to add a view pe... | java|android | -1 | 2016-05-13T14:58:39.560Z | 2,016 | 5 | 14 | 4 | 44 | 1 | 381 | 49 | 2 | 3 | true | false | false | false | false | true | negative |
37,213,375 | Is it possible to redefine a library's databinding resource? | <p>I am developing a library that uses Data Binding to process attributes in a <code>Layout</code>'s <code>Views</code> (I won't develop as it is irrelevant to this issue). </p>
<p>As the applications should be able to specify their own layout, I am trying to leverage the <a href="https://developer.android.com/intl/es... | I am developing a library that uses Data Binding to process attributes in a Layout 's Views (I won't develop as it is irrelevant to this issue). As the applications should be able to specify their own layout, I am trying to leverage the resource prioritization mechanism : In cases where a resource ID is defined in both... | android|android-layout|layout-inflater|android-databinding | 3 | 2016-05-13T15:00:43.567Z | 2,016 | 5 | 15 | 4 | 729 | 0 | 1,453 | 60 | 4 | 2 | true | true | false | false | false | false | low |
37,213,380 | Simulated Sensors in latest IntelliJ+Android: onSensorChanged gets not called | <p>As a part of my program I have a class capturing the data produced by the accelometer-sensor.
After switching from Android Studio (1.x, don't know exactly), the <code>onSensorChanged</code>-Method is not being executed anymore (everything else works as before, no changes in the code).
Does they changed anything on h... | As a part of my program I have a class capturing the data produced by the accelometer-sensor. After switching from Android Studio (1.x, don't know exactly), the onSensorChanged -Method is not being executed anymore (everything else works as before, no changes in the code). Does they changed anything on how sensor event... | android|intellij-idea|adb|android-sensors | 0 | 2016-05-13T15:01:06.223Z | 2,016 | 5 | 15 | 4 | 77 | 0 | 1,006 | 77 | 4 | 0 | false | true | false | false | false | false | zero |
37,213,772 | Xamarin.Forms- Why CustomRenderer Android for NavigationPage throws InvalidCastException? | <p>I try to set background image on NavigationBar for Xamarin.Forms android build. Examples out there are almost the same with each other. I used this custom renderer;</p>
<pre><code>[assembly: ExportRenderer(typeof(NavigationPage), typeof(CustomNavigationRenderer))]
namespace xfprism.Droid
{
public class CustomN... | I try to set background image on NavigationBar for Xamarin.Forms android build. Examples out there are almost the same with each other. I used this custom renderer; [CODE] And my app.xaml.cs; [CODE] But when I try to debug the project I get InvalidCastException on the line base.OnElementChanged(e); . Is there anything ... | c#|android|xamarin|xamarin.forms | 3 | 2016-05-13T15:21:42.623Z | 2,016 | 5 | 15 | 4 | 1,383 | 1 | 426 | 89 | 4 | 3 | true | false | false | false | false | false | low |
37,213,793 | Proguard & Retrofit error | <p>I want to use ProGuard in my project. I activated the option minifyEnabled. When I open the activity that uses the library Retrofit2, the app is crashing and displays this error:</p>
<p><strong>Unable to create call adapter for interface retrofit2.Call</strong></p>
<pre><code>java.lang.RuntimeException: Unable to ... | I want to use ProGuard in my project. I activated the option minifyEnabled. When I open the activity that uses the library Retrofit2, the app is crashing and displays this error: Unable to create call adapter for interface retrofit2.Call [CODE] | java|android|proguard|retrofit2 | 2 | 2016-05-13T15:22:55.470Z | 2,016 | 5 | 15 | 4 | 1,060 | 1 | 244 | 25 | 4 | 1 | true | false | false | false | false | false | low |
37,213,889 | Android responds to PN532 InListPassiveTarget | <p>I have a weird situation where I'm trying to toggle my PN532 between tag emulation and tag reader mode. The reader goes for ~70ms and the tag emulation runs for ~600ms.</p>
<p>What I want to happen is that when I put my Android device near the antenna, that it reads the emulated tag. When I hold an NFC tag to the P... | I have a weird situation where I'm trying to toggle my PN532 between tag emulation and tag reader mode. The reader goes for ~70ms and the tag emulation runs for ~600ms. What I want to happen is that when I put my Android device near the antenna, that it reads the emulated tag. When I hold an NFC tag to the PN532, it's ... | android|nfc|hce|contactless-smartcard|nfc-p2p | 5 | 2016-05-13T15:27:41.357Z | 2,016 | 5 | 15 | 4 | 1,675 | 1 | 1,387 | 45 | 5 | 2 | true | false | false | false | false | false | low |
37,214,045 | Xamarin Android ActivityAttribute Name and LaunchMode fields for Google search app indexing | <p>Context is: Xamarin Android for Visual Studio 2015 SP2.</p>
<p>The question concerns the general rules one should follow specifying the values for the <code>Name</code> and <code>LaunchMode</code> parameters of <code>Android.App.ActivityAttribute</code></p>
<p>Here is how my code looks now:</p>
<pre><code>[Activi... | Context is: Xamarin Android for Visual Studio 2015 SP2. The question concerns the general rules one should follow specifying the values for the Name and LaunchMode parameters of Android.App.ActivityAttribute Here is how my code looks now: [CODE] Now I am planning to make my app and app's content searchable by Google se... | c#|android|xamarin|xamarin.android | 0 | 2016-05-13T15:35:37.660Z | 2,016 | 5 | 15 | 4 | 693 | 0 | 1,262 | 91 | 4 | 1 | true | true | false | false | false | false | zero |
37,214,051 | How to stop dialog title text from shrinking when positive button text gets shorter? | <p>I want to create an AlertDialog whose title text and message changes each time the user clicks on the positive button as they work through a series of steps.</p>
<p>It all works ok except that when the user gets to the third and final screen the size of the title text shrinks! This appears to be because the string ... | I want to create an AlertDialog whose title text and message changes each time the user clicks on the positive button as they work through a series of steps. It all works ok except that when the user gets to the third and final screen the size of the title text shrinks! This appears to be because the string for the pos... | android|android-alertdialog|text-size | 0 | 2016-05-13T15:35:51.213Z | 2,016 | 5 | 15 | 4 | 587 | 2 | 1,439 | 84 | 3 | 2 | true | false | false | false | false | false | zero |
37,214,160 | Layout Jerking when RecyclerView inside a ScrollView | <p>Im creating RecyclerView and ListView inside ScrollView and im getting problems with the scroll.. The scroll is Jerking (unable to get smooth scroll), I know its the problem with the RecyclerView inside the ScrollView, because layout is scrolling without any problem when swiping until the ListView exists but once Re... | Im creating RecyclerView and ListView inside ScrollView and im getting problems with the scroll.. The scroll is Jerking (unable to get smooth scroll), I know its the problem with the RecyclerView inside the ScrollView, because layout is scrolling without any problem when swiping until the ListView exists but once Recyc... | android|android-layout|android-recyclerview | 1 | 2016-05-13T15:41:52.013Z | 2,016 | 5 | 15 | 4 | 1,855 | 2 | 480 | 52 | 3 | 1 | true | false | false | false | false | false | low |
37,214,165 | Google maps in my app is not visible | <p>When I launch my app I get the following error:</p>
<pre><code>V/GoogleSignatureVerifier(4962): com.myapp.application signature not valid. Found:
V/GoogleSignatureVerifier(4962): MIIDDTCCAfWgAwIBAgIEO0I8qTANBgkqhkiG9w0BAQsFADA3MQswCQYDVQQGEwJVUzEQMA4GA1UE
V/GoogleSignatureVerifier(4962): ChMHQW5kcm9pZDEWMBQGA1UEA... | When I launch my app I get the following error: [CODE] I have read that debug.keystore default key has only 1 year validity, so one must delete it afterwards to let android studio generate a new one. Eventually I did it but the error remains still. Google maps in my app is not visible anymore after this move... Please ... | android|android-keystore | 22 | 2016-05-13T15:42:02.003Z | 2,016 | 5 | 15 | 4 | 19,525 | 3 | 336 | 36 | 2 | 1 | true | false | true | true | true | false | high |
37,214,238 | AutoCompleteTextView suggestion box show behind keyboard when inside BottomSheetDialogFragment | <p>The suggestion box from AutoCompleteTextView beehives differently based on the method used to display it.
Ideally both should display the box above the keyboard, any suggestions how to fix it?</p>
<p><strong><a href="https://www.youtube.com/watch?v=InXNutqQM6Y" rel="nofollow">YouTube</a></strong></p>
<p><strong><a... | The suggestion box from AutoCompleteTextView beehives differently based on the method used to display it. Ideally both should display the box above the keyboard, any suggestions how to fix it? YouTube GitHub SearchMusic.axml [CODE] MainActivity.cs [CODE] SearchMusicFragment [CODE] | c#|android|xamarin|xamarin.android | 3 | 2016-05-13T15:45:29.710Z | 2,016 | 5 | 15 | 4 | 502 | 0 | 281 | 94 | 4 | 3 | true | true | false | false | false | false | low |
37,214,247 | I am working on android and i am finding difficulty on validating spinner items and adding value for spinner items | <p>hello i am working on android and i am finding difficulty on validating spinner items and adding value for the spinner items i will show u the code as following .</p>
<p>This code is the UI section code.</p>
<pre><code><TextView
android:layout_width="wrap_content"
android:layout... | hello i am working on android and i am finding difficulty on validating spinner items and adding value for the spinner items i will show u the code as following . This code is the UI section code. [CODE] the following is the java section code this is the code where array adapter is used have changed the code a bit publ... | java|android|validation|android-spinner | 0 | 2016-05-13T15:45:39.787Z | 2,016 | 5 | 15 | 4 | 144 | 1 | 1,038 | 114 | 4 | 4 | true | false | false | false | false | false | zero |
37,214,358 | ListViewAnimations only works when the Listview has only 1 view/element | <p>I am using <a href="https://github.com/nhaarman/ListViewAnimations" rel="nofollow">ListViewAnimations</a> I am having this weird problem,
the animation is skipped and all of the views are populated if the list contains more than 1 element, but animation works if there is only one element to populate.</p>
<pre><cod... | I am using ListViewAnimations I am having this weird problem, the animation is skipped and all of the views are populated if the list contains more than 1 element, but animation works if there is only one element to populate. [CODE] | android|listview|animation | 0 | 2016-05-13T15:51:13.857Z | 2,016 | 5 | 15 | 4 | 34 | 1 | 232 | 71 | 3 | 1 | true | false | false | false | false | false | zero |
37,214,617 | cannot resolve constructor bardata | <p>I am trying to make a barchart which is going to be the result of specific calculated number, However when I put this into my code it comes up with the error:</p>
<blockquote>
<p>the problem is between two stars <strong>getDataSet()</strong> and the error msg is cannot <strong>resolve constructor BarData(java.util.A... | I am trying to make a barchart which is going to be the result of specific calculated number, However when I put this into my code it comes up with the error: the problem is between two stars getDataSet() and the error msg is cannot resolve constructor BarData(java.util.ArrayList<java.lang.String>java.util.ArrayList.co... | android | 2 | 2016-05-13T16:06:17.583Z | 2,016 | 5 | 16 | 4 | 4,094 | 3 | 370 | 34 | 1 | 1 | true | false | true | false | false | false | low |
37,214,904 | Java class uses unchecked or unsafe operations | <p>I have a class called LB_Adapter.java made to help show my database in a ListView. All functionalities of my program work fine, but I still get an warning error every time I compile that says</p>
<pre><code>Note: Project/LB_Adapter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for ... | I have a class called LB_Adapter.java made to help show my database in a ListView. All functionalities of my program work fine, but I still get an warning error every time I compile that says [CODE] From googling I understand the error comes from my ArrayList, but I've tried implementing ArrayList() which doesn't work.... | java|android|generics|javac | 0 | 2016-05-13T16:21:07.280Z | 2,016 | 5 | 16 | 4 | 4,826 | 1 | 439 | 46 | 4 | 2 | true | false | true | false | false | false | zero |
37,214,918 | Align views in a relative layout to the bottom of the screen | <p>I am trying to align a text area with username and phone along with a button to the bottom of the screen by adding margin-top on id with </p>
<pre><code>android:id="@+id/textView1"
</code></pre>
<p>attribute but no effect as shown in the following snippet</p>
<pre><code> <RelativeLayout xmlns:android="http://s... | I am trying to align a text area with username and phone along with a button to the bottom of the screen by adding margin-top on id with [CODE] attribute but no effect as shown in the following snippet [CODE] The screen below shows the output I want from the username textview down to the register button to be align to ... | java|android|android-view | 0 | 2016-05-13T16:22:24.910Z | 2,016 | 5 | 16 | 4 | 1,429 | 1 | 389 | 60 | 3 | 2 | true | false | false | false | false | false | zero |
37,215,013 | PHP Submitting wrong information on a MySQL database (PHP+MySQL) | <p>I've been having this weird bug, basically what happens is that I have this App on Android and whenever I try to add a new "user" one of it's values (Called "Contacto") sometimes is wrong, the weird part is that it happens in a completely random way, here is my .php</p>
<pre><code><?PHP
$con=mysqli_connect("loca... | I've been having this weird bug, basically what happens is that I have this App on Android and whenever I try to add a new "user" one of it's values (Called "Contacto") sometimes is wrong, the weird part is that it happens in a completely random way, here is my .php [CODE] My app has a Login Screen and a button that ta... | php|android|html|post | 0 | 2016-05-13T16:27:25.043Z | 2,016 | 5 | 16 | 4 | 39 | 1 | 670 | 64 | 4 | 2 | true | false | false | false | false | false | zero |
37,215,023 | Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 16163 , how to fix this? | <p>The issue I'm having is that, the application I'm developing is running till <em>Lollipop</em> version and now when I trying to run an application on <em>Marshmallow</em> my application is getting crash and the log I getting are as follow :</p>
<blockquote>
<p>05-12 11:22:34.402 848-978/system_process I/ActivityM... | The issue I'm having is that, the application I'm developing is running till Lollipop version and now when I trying to run an application on Marshmallow my application is getting crash and the log I getting are as follow : 05-12 11:22:34.402 848-978/system_process I/ActivityManager: START u0 {act=android.intent.action.... | android|crash|android-6.0-marshmallow | 1 | 2016-05-13T16:27:47.877Z | 2,016 | 5 | 16 | 4 | 5,796 | 0 | 6,720 | 81 | 3 | 0 | false | true | true | false | false | false | low |
37,215,136 | Android, LayoutInflater not working | <p>I need your help with this Inflater. From Activity3 I need to get what inside an EditText in Activity1.</p>
<p>Ex: in Activity1 i write my name, email, ecc. In Activity2 I choose my birthday and in the Activity3 i want to see both.</p>
<p>So i used in the Activity3 the LayoutInflater, but when i parse the EditText... | I need your help with this Inflater. From Activity3 I need to get what inside an EditText in Activity1. Ex: in Activity1 i write my name, email, ecc. In Activity2 I choose my birthday and in the Activity3 i want to see both. So i used in the Activity3 the LayoutInflater, but when i parse the EditText to string, the str... | android|layout-inflater | 0 | 2016-05-13T16:34:30.190Z | 2,016 | 5 | 16 | 4 | 268 | 1 | 510 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
37,215,180 | Amazon's AWS Mobile SDK for Android and its S3 Upload Utility is not reporting any errors, any idea why? | <p>I've been running into a problem using the <a href="https://aws.amazon.com/mobile/sdk/" rel="nofollow">AWS Mobile SDK version 2.2.15</a>. After carefully looking at their own <a href="https://github.com/awslabs/aws-sdk-android-samples" rel="nofollow">S3TransferUtilitySample</a>, I have made a couple attempts to get ... | I've been running into a problem using the AWS Mobile SDK version 2.2.15 . After carefully looking at their own S3TransferUtilitySample , I have made a couple attempts to get a file uploaded to an Amazon S3 bucket on my own. My first attempt was to try calling the TransferUtility's .upload() method from within Androi... | java|android|amazon-web-services|amazon-s3|android-asynctask | 1 | 2016-05-13T16:36:52.553Z | 2,016 | 5 | 16 | 4 | 688 | 2 | 2,724 | 104 | 5 | 1 | true | false | false | false | false | false | low |
37,215,254 | How to IAB with multiple activities? | <p>this one is bogging me how to implement and cant really find anything good on stackoverflow.</p>
<p>The question is, how to do you use IABHelper with multiple activities, when each activity can also make purchases, not only use invetory state</p>
<p>Of course all the examples have it in MainActivity and thats it. ... | this one is bogging me how to implement and cant really find anything good on stackoverflow. The question is, how to do you use IABHelper with multiple activities, when each activity can also make purchases, not only use invetory state Of course all the examples have it in MainActivity and thats it. What if I need to m... | android|android-activity|in-app-purchase|in-app-billing | 2 | 2016-05-13T16:40:21.280Z | 2,016 | 5 | 16 | 4 | 182 | 0 | 995 | 36 | 4 | 0 | false | true | false | false | false | false | low |
37,215,344 | AndroidStudio - ERROR - llij.ide.plugins.PluginManager - java.lang.NullPointerException | <p>I'm using following system:</p>
<pre><code>$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
$ uname -a
Linux X 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -qa | grep ^jdk
jdk1.8.0_91-1.8.0_91-fcs.x86_64
$
</code></pre>
<p>I download <em>andro... | I'm using following system: [CODE] I download android-studio-ide-143.2821654-linux.zip from Download Android Studio and SDK Tools | Android Developers unzip it, and then while trying to run studio.sh , I'm getting following: [CODE] I'm waiting and waiting and Android Studio window just hanging there and nothing else is... | linux|android-studio | 4 | 2016-05-13T16:45:22.100Z | 2,016 | 5 | 16 | 4 | 4,865 | 1 | 346 | 87 | 2 | 2 | true | false | true | false | false | false | low |
37,215,414 | Android. Using fragments in RecyclerView is it right or wrong? | <p>I have a card which addition to other information can contain an image, image slider (third-party library), or video (YouTubeAPI). Earlier I used to card layout, all three media elements (image, slider, video) and, depending on the needs, modify their visibility, hiding unnecessary elements, leaving visible only the... | I have a card which addition to other information can contain an image, image slider (third-party library), or video (YouTubeAPI). Earlier I used to card layout, all three media elements (image, slider, video) and, depending on the needs, modify their visibility, hiding unnecessary elements, leaving visible only the ne... | android|android-fragments|android-recyclerview | 2 | 2016-05-13T16:49:54.250Z | 2,016 | 5 | 16 | 4 | 1,373 | 1 | 1,140 | 62 | 3 | 0 | false | false | false | false | false | false | low |
37,215,415 | Expandable Lockscreen Notification? | <p>On Android 6 I'm trying to display a notification with the following combination of properties:</p>
<ol>
<li>text title and content</li>
<li>expandable image content (see <a href="http://codeversed.com/expandable-notifications-android/" rel="nofollow noreferrer">here</a> and <a href="https://stackoverflow.com/a/212... | On Android 6 I'm trying to display a notification with the following combination of properties: text title and content expandable image content (see here and here ) don't show a notification icon in the status bar (don't want to clutter it up) don't flash any LEDs (don't want to trouble user) show on lockscreen show on... | android|notifications | 0 | 2016-05-13T16:49:54.940Z | 2,016 | 5 | 16 | 4 | 925 | 1 | 791 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
73,662,952 | Android error app crash error when firebase message sent | <p>My FireBaseMessaging.java</p>
<pre><code>public class MyFirebaseMessagingService extends FirebaseMessagingService {
//private static final String TAG = "AbsWorkoutFCM";
private static final String TAG = "faceenhancer";
//String app_banner_url, app_package_name;
/**
* Called ... | My FireBaseMessaging.java [CODE] And service in Manifest file as [CODE] When sent notification message from console getting this exception in logcat.. https://i.stack.imgur.com/sOJXI.png [CODE] This error appeared when notification is sent from firebase console and app crashed Please help after sending message from con... | java|android|firebase|messaging | 0 | 2022-09-09T13:30:40.633Z | 2,022 | 9 | 13 | 4 | 25 | 0 | 332 | 56 | 4 | 3 | true | true | false | false | false | false | zero |
73,662,975 | Android Studio Lint for latest version of Dependencies from gradle kotlin files | <p>My project's <code>gradle</code> files are converted to <code>kotlin</code>(<code>kts</code>), is there a config inside Android studio where you can retain the lint/warning/suggestion when you have an outdated dependency?. Considering the image below, are there any settings so the referenced dependencies can be trac... | My project's gradle files are converted to kotlin ( kts ), is there a config inside Android studio where you can retain the lint/warning/suggestion when you have an outdated dependency?. Considering the image below, are there any settings so the referenced dependencies can be tracked by android studio when it needs an ... | android-studio|dependencies|dependency-management|lint|gradle-kotlin-dsl | 0 | 2022-09-09T13:32:26.180Z | 2,022 | 9 | 13 | 4 | 16 | 0 | 358 | 79 | 5 | 0 | false | true | false | false | false | false | zero |
73,662,995 | How to get the image and text from a view in the recyclerView? | <p>I researched around 20 - 30 answers and still not found a working way to:</p>
<ol>
<li><strong>get the image and text</strong> from --> view --> viewHolder --> recyclerview --> Fragment
( one image and one text fills 1 screen). ( NullPointerException)</li>
<li>I need them as quote: String and imgRes: Int... | I researched around 20 - 30 answers and still not found a working way to: get the image and text from --> view --> viewHolder --> recyclerview --> Fragment ( one image and one text fills 1 screen). ( NullPointerException) I need them as quote: String and imgRes: Int to input them in a viewModel DAO method to save them ... | android|kotlin|android-recyclerview|onclicklistener|android-adapter | 0 | 2022-09-09T13:34:00.280Z | 2,022 | 9 | 13 | 4 | 37 | 1 | 915 | 62 | 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.