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,888,065 | How to make phonecall from one of the arraylist's element onclick? | <p>I have an ArrayList with tree elements in it <code>(icon, text(name), text(phonenumber))</code>.
I want to do two things,</p>
<p>1) make whole one element of list clickable</p>
<p>2) make phone call to that number onclick</p>
<p>Now I know I need to use <code>onclicklistener</code> but how do implement it to my ... | I have an ArrayList with tree elements in it (icon, text(name), text(phonenumber)) . I want to do two things, 1) make whole one element of list clickable 2) make phone call to that number onclick Now I know I need to use onclicklistener but how do implement it to my code? My main and adapter [CODE] | java|android|arrays | 2 | 2016-04-27T11:10:19.250Z | 2,016 | 4 | 11 | 2 | 39 | 2 | 299 | 66 | 3 | 1 | true | false | false | false | false | false | low |
36,888,139 | How to handle drag in an android chess app? | <p>I just started with developing android apps (with java, in android studio, if that matters), and I'm doing a little project, just for fun. I want to create my own chess app, and so far I have done quite a few things. I set up a menu to switch to another activity which is the game itself, i made a customview with a s... | I just started with developing android apps (with java, in android studio, if that matters), and I'm doing a little project, just for fun. I want to create my own chess app, and so far I have done quite a few things. I set up a menu to switch to another activity which is the game itself, i made a customview with a self... | java|android|android-studio|chess | 8 | 2016-04-27T11:13:15.193Z | 2,016 | 4 | 11 | 2 | 1,041 | 1 | 1,345 | 43 | 4 | 1 | true | false | false | false | false | false | medium |
36,888,157 | Issues in EditText | <p>My issue is when first <code>EditText</code> length greater than 10 then second <code>EditText</code> will be enabled and second <code>EditText</code> length greater than 8 then after <code>Button</code> will be enabled what is the problem in my code? Please any one can solve this problem. </p>
<pre><code>public vo... | My issue is when first EditText length greater than 10 then second EditText will be enabled and second EditText length greater than 8 then after Button will be enabled what is the problem in my code? Please any one can solve this problem. [CODE] | java|android | 1 | 2016-04-27T11:14:41.107Z | 2,016 | 4 | 11 | 2 | 114 | 2 | 245 | 18 | 2 | 1 | true | false | false | false | false | false | low |
36,888,179 | Booking system app using MIT app inventor working but blocks allow for lower than 0 and above the maximum | <p>I am creating an app using MIT app inventor, it's a simple computer system booking app that allows students to select a room and reserve a computer or cancel the reservation.
<a href="https://i.stack.imgur.com/GxhbE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GxhbE.png" alt="Screenshot of my a... | I am creating an app using MIT app inventor, it's a simple computer system booking app that allows students to select a room and reserve a computer or cancel the reservation. When the room is clicked, in this case room 10 the buttons appear and the computers available text is set to 10 computers. I have the code block ... | android|app-inventor | 0 | 2016-04-27T11:15:41.487Z | 2,016 | 4 | 11 | 2 | 2,255 | 1 | 1,178 | 105 | 2 | 0 | false | false | false | false | false | false | zero |
36,888,216 | cannot do .hide on a dialog ERROR: Attempt to invoke virtual method on a null object | <p>I'm trying to dismiss my costume alert dialog but it errors me -</p>
<blockquote>
<p>Attempt to invoke virtual method 'void android.app.Dialog.dismiss()'
on a null object reference</p>
</blockquote>
<p>but the object isn't null i initialize it before hand. and i don't understand why it is null, </p>
<p>but th... | I'm trying to dismiss my costume alert dialog but it errors me - Attempt to invoke virtual method 'void android.app.Dialog.dismiss()' on a null object reference but the object isn't null i initialize it before hand. and i don't understand why it is null, but then when i do - mainDialog.hide() it errors me out that I'm ... | android|android-studio|dialog | -1 | 2016-04-27T11:17:46.633Z | 2,016 | 4 | 11 | 2 | 185 | 2 | 457 | 84 | 3 | 1 | true | false | false | false | false | true | negative |
36,888,259 | Skipping the Permission Check? | <p>I am currently trying to make a location app.
However, I'm slightly annoyed at how I need to go through a Permissions check every time I try to use a location service inside a method.</p>
<p>The question is, is there a way so that I can skip the permissions check, provided I have asked for permission in onCreate()... | I am currently trying to make a location app. However, I'm slightly annoyed at how I need to go through a Permissions check every time I try to use a location service inside a method. The question is, is there a way so that I can skip the permissions check, provided I have asked for permission in onCreate()? This is th... | android|permissions | 0 | 2016-04-27T11:19:45.130Z | 2,016 | 4 | 11 | 2 | 85 | 0 | 461 | 30 | 2 | 2 | true | true | false | false | false | false | zero |
36,888,511 | Change border color of a SearchView | <p>I want to change a border color of my searchview . Right now its coming transparent . I tried giving styling to it but nothing working . </p>
<p><strong>SearchView.xml</strong></p>
<pre><code> <LinearLayout
android:id="@+id/linear1"
android:background="@android:color/white"
android:layou... | I want to change a border color of my searchview . Right now its coming transparent . I tried giving styling to it but nothing working . SearchView.xml [CODE] style.xml [CODE] | android|android-view|searchview|android-styles|android-search | 8 | 2016-04-27T11:30:48.427Z | 2,016 | 4 | 11 | 2 | 10,847 | 1 | 175 | 35 | 5 | 2 | true | false | true | false | false | false | medium |
36,888,528 | Understanding Android Context: (null object reference) | <p>I want to build a simple static method that gets me the next scheduled alarm from the current phone. Implemented non static, in the <code>Main_Activity</code> it all works as intended, but now in a seperate class as static method I get the error : "<strong><em>android.content.Context.getContentResolver()' on a null ... | I want to build a simple static method that gets me the next scheduled alarm from the current phone. Implemented non static, in the Main_Activity it all works as intended, but now in a seperate class as static method I get the error : " android.content.Context.getContentResolver()' on a null object reference ". I guess... | java|android|static|alarmmanager|android-context | 1 | 2016-04-27T11:31:47.590Z | 2,016 | 4 | 11 | 2 | 1,198 | 2 | 717 | 54 | 5 | 1 | true | false | false | false | false | false | low |
36,888,596 | Get Intent in first activity | <p>I want to get an intent with an boolean from the second activity to my first activity. But now the application checks the intent and I get a null pointer exception directly, how can I skip the first check that happens and go to the second activity, and from there send it back to the first without getting the excepti... | I want to get an intent with an boolean from the second activity to my first activity. But now the application checks the intent and I get a null pointer exception directly, how can I skip the first check that happens and go to the second activity, and from there send it back to the first without getting the exception?... | android|android-intent|nullpointerexception | -2 | 2016-04-27T11:34:33.620Z | 2,016 | 4 | 11 | 2 | 780 | 3 | 418 | 28 | 3 | 3 | true | false | false | false | false | true | negative |
36,888,608 | Unable to call Native method from .so file (Loading of library is success ) in Android studio With NDK | <ol>
<li><p>I had created the sample project(HellWorldJNI) that runs with Android Ndk and prints "Hello world from Jni" message from the native C.</p></li>
<li><p>And then i extract the HelloWorldJNI.apk file of the sample from the Output/apk directory of the project.</p></li>
<li><p>So i got the all the .so files from... | I had created the sample project(HellWorldJNI) that runs with Android Ndk and prints "Hello world from Jni" message from the native C. And then i extract the HelloWorldJNI.apk file of the sample from the Output/apk directory of the project. So i got the all the .so files from different devices(like arm64-v8a,armeabi,x8... | android|android-ndk | 2 | 2016-04-27T11:35:18.987Z | 2,016 | 4 | 11 | 2 | 3,125 | 3 | 1,074 | 102 | 2 | 2 | true | false | true | false | false | false | low |
36,888,646 | html table to convert list or stack datastrure without javascript? | <p>i am developer for android web App.</p>
<p>i using javascript interface on Android Webview.</p>
<p>so that, i have some problem.</p>
<p>how to convert html table with only javascript?</p>
<pre><code><table>
<tr>
<td> <input type=button value='test'> </input>
</td>
<td> ... | i am developer for android web App. i using javascript interface on Android Webview. so that, i have some problem. how to convert html table with only javascript? [CODE] and Javascript Code [CODE] | javascript|android|html | 0 | 2016-04-27T11:36:33.260Z | 2,016 | 4 | 11 | 2 | 31 | 0 | 196 | 66 | 3 | 2 | true | true | false | false | false | false | zero |
36,888,750 | Android - Parse Query: Limit 1 object per user | <p>I have a Parse query of Messages, right now it returns all the Message the current user follows.</p>
<p>I would like it to limit it to only 1 message per user, so when a user send a message, it replaces the old one.</p>
<pre><code>ParseQuery<ParseObject> receiver = ParseQuery.getQuery("Messages");
re... | I have a Parse query of Messages, right now it returns all the Message the current user follows. I would like it to limit it to only 1 message per user, so when a user send a message, it replaces the old one. [CODE] | android|parse-platform|android-recyclerview|android-adapter | 0 | 2016-04-27T11:41:40.207Z | 2,016 | 4 | 11 | 2 | 177 | 1 | 215 | 46 | 4 | 1 | true | false | false | false | false | false | zero |
36,888,751 | IDE fatal error in Android Studio 2.0 while adding any .xml file | <p>Whenever i try to add a new .xml file in the layout folder in Android Studio 2.0, I get this error.
<a href="http://i.stack.imgur.com/lnIs9.png" rel="nofollow">Screenshot of the error</a></p>
<pre><code>null
java.lang.NullPointerException
at com.android.tools.idea.actions.NewAndroidComponentAction.actionPerform... | Whenever i try to add a new .xml file in the layout folder in Android Studio 2.0, I get this error. Screenshot of the error [CODE] When i try to add any .xml file in the layout folder i shows this error and i cant get a way to remove this.Since i am new to android development so i dont know much about it.Any kind of he... | android|android-studio|android-xml | 2 | 2016-04-27T11:41:42.670Z | 2,016 | 4 | 11 | 2 | 1,502 | 4 | 352 | 64 | 3 | 1 | true | false | false | false | false | false | low |
36,888,754 | UNHANDLED EXCEPTION In Xamarin.Android | <p>Can you help me about this?
I can't understand this error! :(</p>
<p><a href="https://i.stack.imgur.com/knDqQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/knDqQ.jpg" alt="Error Message"></a></p>
<p>Activity Code:</p>
<pre><code>using System;
using Android.App;
using Android.Content;
using An... | Can you help me about this? I can't understand this error! :( Activity Code: [CODE] And this is main.axml code: [CODE] Its Contain two button and a plain text... you can click at translate to updates the text of the Call button. when you press call button, call to target number. | android|xamarin.android | 0 | 2016-04-27T11:42:02.737Z | 2,016 | 4 | 11 | 2 | 432 | 1 | 279 | 38 | 2 | 2 | true | false | false | false | false | false | zero |
36,888,783 | Phonegap events not firing | <p>I am creating a phonegap application for android and want to use some of the phonegap events like "resume", "pause", "backbutton" etc. but none of these events are getting fired except the "deviceready" event.
Following is my javascript code please check if I am making any mistake:</p>
<pre><code>function onLoad() ... | I am creating a phonegap application for android and want to use some of the phonegap events like "resume", "pause", "backbutton" etc. but none of these events are getting fired except the "deviceready" event. Following is my javascript code please check if I am making any mistake: [CODE] the alert inside 'onDeviceRead... | android|jquery|cordova|events|phonegap-plugins | 0 | 2016-04-27T11:43:27.670Z | 2,016 | 4 | 11 | 2 | 429 | 1 | 377 | 26 | 5 | 1 | true | false | false | false | false | false | zero |
36,888,827 | onLeScan function not called when trying to detect BLE devices | <p>I am trying to detect nearby Bluetooth Low-Energy devices on a service.
When the service is started, <strong>startLeScan()</strong> is called, and then <strong>stopLeScan()</strong> is called after 10 seconds.
Even though <strong>startLeScan()</strong> returns true, and I didn't get any error, <strong><em>onLeScan</... | I am trying to detect nearby Bluetooth Low-Energy devices on a service. When the service is started, startLeScan() is called, and then stopLeScan() is called after 10 seconds. Even though startLeScan() returns true, and I didn't get any error, onLeScan on the LeScanCallback was not called. the Service : [CODE] I tried ... | android|android-service|bluetooth-lowenergy | 1 | 2016-04-27T11:45:21.147Z | 2,016 | 4 | 11 | 2 | 3,703 | 3 | 746 | 62 | 3 | 3 | true | false | true | false | false | false | low |
36,888,852 | javax.net.ssl.SSLException: Connection closed by peer on 4.4.2 device (works on 6.0.1) | <p>I have a problem with getting this error when I'm performing network calls inside my app. Main problem is that same code works on Android 6.0.1 device, but on 4.4.2 device, I'm getting this error:</p>
<pre><code>javax.net.ssl.SSLException: Connection closed by peer
at com.android.org.conscrypt.NativeCrypto.SSL_do_h... | I have a problem with getting this error when I'm performing network calls inside my app. Main problem is that same code works on Android 6.0.1 device, but on 4.4.2 device, I'm getting this error: [CODE] where I'm unable to request data from server. If you need more data, feel free to ask. Thanks. | java|android | 21 | 2016-04-27T11:46:34.057Z | 2,016 | 4 | 11 | 2 | 17,689 | 1 | 298 | 86 | 2 | 1 | true | false | true | true | true | false | high |
36,888,890 | Multiple instance of same fragments inside a ViewPager | <p>I have got some weird problem after implementing multiple instance(loaded dynamically depending on the data) of same fragment inside a Viewpager.
My fragment class consists of a listview which will be populated according to the data retrieved from the server, but every time i swipe page from one to another, the data... | I have got some weird problem after implementing multiple instance(loaded dynamically depending on the data) of same fragment inside a Viewpager. My fragment class consists of a listview which will be populated according to the data retrieved from the server, but every time i swipe page from one to another, the data in... | java|android|listview|android-fragments|android-viewpager | 1 | 2016-04-27T11:48:13.253Z | 2,016 | 4 | 11 | 2 | 952 | 0 | 537 | 54 | 5 | 3 | true | true | false | false | false | false | low |
36,888,914 | add multiple fragment to cheesesquare demo | <p>I am using an open source project(<a href="https://github.com/chrisbanes/cheesesquare" rel="nofollow noreferrer">https://github.com/chrisbanes/cheesesquare</a>) to develop my own application.</p>
<p>what I want is:</p>
<p>1.In the Home Fragment, there is a tablayout below to the toobar,and when the recycelview scr... | I am using an open source project( https://github.com/chrisbanes/cheesesquare ) to develop my own application. what I want is: 1.In the Home Fragment, there is a tablayout below to the toobar,and when the recycelview scroll, the Toolbar can hide, but the FloatingActionButton always stay; 2. In the Message Frgment, the ... | android-fragments|android-tablayout|android-coordinatorlayout|android-appbarlayout | 0 | 2016-04-27T11:49:08.340Z | 2,016 | 4 | 11 | 2 | 256 | 1 | 743 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
36,888,997 | Use buildConfigField defined in build.gradle in another place in build.gradle | <p>I have the next chunk of code in my build.gradle:</p>
<pre><code>productFlavors {
//DIMENSION - APP
slid {
dimension "app"
applicationId "com.slid"
versionCode 1
versionName "1.0.0"
manifestPlaceholders = [one_app_id : "273e0-b8f-4c7f-87-0... | I have the next chunk of code in my build.gradle: [CODE] What I want to do is access one_app_id from manifestPlaceholders inside my java code. As I was unable to do so (or at least I was unable to find a way), I want to define a buildConfigField String with the same value 273e0-b8f-4c7f-87-0f4eb68da but I'd like to mak... | android|android-gradle-plugin|build.gradle | 2 | 2016-04-27T11:52:31.220Z | 2,016 | 4 | 11 | 2 | 1,489 | 1 | 765 | 77 | 3 | 1 | true | false | false | false | false | false | low |
36,889,053 | Custom shaped Linearlayout with curved side in android | <p>I am trying to make a custom shaped linearlayout like below</p>
<p><a href="https://i.stack.imgur.com/KirX6.png"><img src="https://i.stack.imgur.com/KirX6.png" alt="enter image description here"></a></p>
<p>I am trying to make only one side curved. Tried with corner radius but it doesn't give the same look as abov... | I am trying to make a custom shaped linearlayout like below I am trying to make only one side curved. Tried with corner radius but it doesn't give the same look as above. Already tried this background shape as below :- [CODE] it rounds only corners and on increasing the value shape is not preserved it gets too circular... | android|android-xml|android-drawable|android-shape | 18 | 2016-04-27T11:55:04.943Z | 2,016 | 4 | 11 | 2 | 29,392 | 6 | 364 | 54 | 4 | 1 | true | false | true | true | true | false | medium |
36,889,132 | Implementing two Persian DateTimePickers in same activity | <p>I want to Implementing two Persian DateTimePickers in same activity but two method that named "onTimeSet" & "onDateSet are defined once...</p>
<p>how i use these methods two time in one activity for each TimePickers and DatePickers ?</p>
<p>In addition i use this library: <a href="https://github.com/mohamad-am... | I want to Implementing two Persian DateTimePickers in same activity but two method that named "onTimeSet" & "onDateSet are defined once... how i use these methods two time in one activity for each TimePickers and DatePickers ? In addition i use this library: https://github.com/mohamad-amin/PersianMaterialDateTimePicker... | android|datepicker|datetimepicker|timepicker|persian | 1 | 2016-04-27T11:58:44.917Z | 2,016 | 4 | 11 | 2 | 945 | 1 | 327 | 57 | 5 | 1 | true | false | false | false | false | false | low |
36,889,180 | Android: Implement a custom ConnectionService which uses built-in telephony stack | <p>I'm trying to implement a custom ConnectionService in my custom telephony-app. According to the <a href="http://developer.android.com/reference/android/telecom/ConnectionService.html" rel="nofollow noreferrer">documentation</a> I need to select my registered PhoneAccount as default in the Phones settings menu. Howev... | I'm trying to implement a custom ConnectionService in my custom telephony-app. According to the documentation I need to select my registered PhoneAccount as default in the Phones settings menu. However when I'm registering a PhoneAccount to use the native telephony stack the PhoneAccount does not seem to show up for us... | android|telephony|android-7.0-nougat|android-6.0.1-marshmallow | 4 | 2016-04-27T12:00:41.707Z | 2,016 | 4 | 12 | 2 | 4,151 | 0 | 1,452 | 81 | 4 | 2 | true | true | true | false | false | false | low |
36,889,267 | How to mock Inputstream to load Properties in Java | <p>I wanted to test the <code>IOException</code> and <code>IllegalArgumentException</code> thrown by <code>properties.load(in)</code> method. As per the documentation here OracleDoc it says the load method throws <code>IOException</code> - if an error occurred when reading from the input stream. <code>IllegalArgumentEx... | I wanted to test the IOException and IllegalArgumentException thrown by properties.load(in) method. As per the documentation here OracleDoc it says the load method throws IOException - if an error occurred when reading from the input stream. IllegalArgumentException - if the input stream contains a malformed Unicode es... | java|android|inputstream|junit4 | 1 | 2016-04-27T12:03:55.490Z | 2,016 | 4 | 12 | 2 | 6,935 | 2 | 521 | 50 | 4 | 2 | true | false | true | false | false | false | low |
36,889,393 | Crash trying to add views to a Table dynamically (Android) | <p>I want to implement something like this(<strong>RTL</strong>) :</p>
<p><a href="https://i.stack.imgur.com/78JUC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/78JUC.png" alt="enter image description here"></a></p>
<p>In other words, being able to add views to a layout in 3 columns.
I tried doin... | I want to implement something like this( RTL ) : In other words, being able to add views to a layout in 3 columns. I tried doing this: my_fragment.xml: [CODE] myFragment.java: [CODE] Crash : Cannot add a null child view to a ViewGroup EDIT : thanks to Mike M.'s solution it now works. However, one column is always cut :... | android | 0 | 2016-04-27T12:09:11.783Z | 2,016 | 4 | 12 | 2 | 467 | 1 | 357 | 58 | 1 | 3 | true | false | false | false | false | false | zero |
36,889,453 | Displaying various medias in the same view | <p>I have an activity with a <code>RecyclerView</code>. This <code>RecyclerView</code> is populated dynamically via calls to a webservice (featuring endless scrolling, pull to refresh etc..).<br>
If one item is a photo I just want to display it, and if it's a video, i want to have some kind of <code>MediaController</co... | I have an activity with a RecyclerView . This RecyclerView is populated dynamically via calls to a webservice (featuring endless scrolling, pull to refresh etc..). If one item is a photo I just want to display it, and if it's a video, i want to have some kind of MediaController to be able to play it directly from the l... | android|performance|video|photo | 0 | 2016-04-27T12:11:31.443Z | 2,016 | 4 | 12 | 2 | 60 | 1 | 741 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
36,889,484 | Edittext returns empty String | <p>I am posting a dialog window via handler to the UI and want to retrieve String from the EditText when I hit OK, but it always returns empty String.
My code:</p>
<pre><code> public void showLabelDialog() {
handler.post(new Runnable() {
@Override
public void run() {
AlertDialog.Buil... | I am posting a dialog window via handler to the UI and want to retrieve String from the EditText when I hit OK, but it always returns empty String. My code: [CODE] The output is: I/System.out: Current text: The label_dialog.xml is: [CODE] | android|string|android-edittext | -1 | 2016-04-27T12:12:47.080Z | 2,016 | 4 | 12 | 2 | 356 | 2 | 238 | 29 | 3 | 2 | true | false | false | false | false | true | negative |
36,889,488 | java.lang.ClassNotFoundException in AsyncTask on API 16 to 19 | <p>I have an error that only happens in android 4 (API 16 to 19). </p>
<p>I use the following code </p>
<pre><code>private class AcceptBooking extends AsyncTask<String, Void, String> {
int response;
@Override
protected void onPreExecute() {
}
@Override
protected void onPostExecute(Stri... | I have an error that only happens in android 4 (API 16 to 19). I use the following code [CODE] And when I try to execute this AsyncTask I get the following error: [CODE] And this is the dependencies that I have in gradle: [CODE] I try to find a solution in this and other forums and apparently the com.android.support:ap... | android|android-asynctask|noclassdeffounderror | 3 | 2016-04-27T12:12:58.683Z | 2,016 | 4 | 12 | 2 | 1,086 | 1 | 647 | 61 | 3 | 6 | true | false | false | false | false | false | low |
36,889,494 | Android picasso outofmemory when load images to recyclerview | <p>I have a <code>RecyclerView</code>, which have many items (100+). Each item is an <code>ImageView</code>. In each <code>ImageView</code> I set <code>Bitmap</code> using <code>Picasso</code> library like this:</p>
<pre><code>@Override
public void onBindViewHolder(ViewHolder holder, int position) {
String photoUr... | I have a RecyclerView , which have many items (100+). Each item is an ImageView . In each ImageView I set Bitmap using Picasso library like this: [CODE] My problem is that I catch stacktrace in logcat: [CODE] And if I've catch that, then I get OutOfMemoryError and apllication crashes later. What can I do to prevent thi... | android|out-of-memory|picasso | 1 | 2016-04-27T12:13:06.373Z | 2,016 | 4 | 12 | 2 | 3,456 | 4 | 322 | 60 | 3 | 2 | true | false | true | false | false | false | low |
36,889,513 | Get object on onActivityResult | <p>I make a new activity that create a Bluetooth device object. When I need return this using onActivityResult() method, I have a problem.</p>
<p><strong>Child activity</strong></p>
<pre><code>Intent intent = new Intent();
intent.putExtra("BluetoothDevice", DeviceArrayList.get(arg2));
setResul... | I make a new activity that create a Bluetooth device object. When I need return this using onActivityResult() method, I have a problem. Child activity [CODE] DeviceArrayList.get(arg2) is the device Object. Parent activity [CODE] Who I can get the object in btDevice? | android|android-intent | 0 | 2016-04-27T12:14:10.850Z | 2,016 | 4 | 12 | 2 | 2,027 | 2 | 266 | 30 | 2 | 2 | true | false | false | false | false | false | zero |
36,889,551 | Working on Fragment Backbutton android | <p>I am working on navigation drawer and fragments and currently i am facing a problem from image Consider (Donut) is HomeFragment class.
What i would like to achieve is </p>
<p><a href="https://i.stack.imgur.com/HAWEp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HAWEp.png" alt="this"></a></p>
... | I am working on navigation drawer and fragments and currently i am facing a problem from image Consider (Donut) is HomeFragment class. What i would like to achieve is when user navigate Fragment A(Donut) -> Fragment B(Eclair) then again navigates -> Fragment H(kitkat) and then navigates -> Fragment I(Lollipop) and user... | java|android|android-fragments|back-button | 1 | 2016-04-27T12:15:37.743Z | 2,016 | 4 | 12 | 2 | 177 | 4 | 1,237 | 38 | 4 | 3 | true | false | false | false | false | false | low |
36,889,561 | How to show svg image that is stored in my App directory | <pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/content"
android:or... | [CODE] I want to show Svg image that is stored in my App directory i write a code that shows image stored in drawable folder but i want to show image from my app directory as well the image is stored in "Android/data/QR.Android/files/Q317664.svg" [CODE] | android|image|svg|xamarin|filepath | -1 | 2016-04-27T12:16:03.427Z | 2,016 | 4 | 12 | 2 | 170 | 1 | 253 | 56 | 5 | 2 | true | false | false | false | false | true | negative |
36,889,755 | Showing values of multiple columns in database via android | <p>I have an app that should send a the phone number and retrieve a value from the database, now I change the query and my code should retrieve values of multiple columns, So where changes should be in my code.</p>
<pre><code>public class JSONTransmitter extends AsyncTask<JSONObject, Void, String>
{
HttpRes... | I have an app that should send a the phone number and retrieve a value from the database, now I change the query and my code should retrieve values of multiple columns, So where changes should be in my code. [CODE] | android | 0 | 2016-04-27T12:24:03.383Z | 2,016 | 4 | 12 | 2 | 55 | 1 | 214 | 58 | 1 | 1 | true | false | false | false | false | false | zero |
36,889,841 | How to fetch each and every field of data from firebase? | <p>I'm trying to fetch the saved data from firebase, but the problem is that my code is fetching only the first field and not every field of data.</p>
<p>Here's what I am doing to fetch my data:</p>
<pre><code>public void fetchDataFromFirebase() {
retrieveRef = new Firebase("https://abc.firebaseio.com/data/")... | I'm trying to fetch the saved data from firebase, but the problem is that my code is fetching only the first field and not every field of data. Here's what I am doing to fetch my data: [CODE] P.S.: I'm sure that I have 5-6 fields of data in my firebase database. Please let me know how to fetch them all. | java|android|firebase|firebase-realtime-database | 0 | 2016-04-27T12:27:48.130Z | 2,016 | 4 | 12 | 2 | 81 | 0 | 304 | 56 | 4 | 1 | true | true | false | false | false | false | zero |
36,889,912 | Ask user to activate Mobile Network/3G via a dialog type alert in Android | <p>I am developing an Android Application and I need to make sure that the user is connected to the internet somehow. I can already check for WiFi, however, not everyone will be near a WiFi zone all the time, so I am thinking that Mobile Data is a valid alternative (of course assuming that the device is capable of havi... | I am developing an Android Application and I need to make sure that the user is connected to the internet somehow. I can already check for WiFi, however, not everyone will be near a WiFi zone all the time, so I am thinking that Mobile Data is a valid alternative (of course assuming that the device is capable of having ... | android | 0 | 2016-04-27T12:31:32.167Z | 2,016 | 4 | 12 | 2 | 1,742 | 1 | 1,692 | 73 | 1 | 3 | true | false | false | false | false | false | zero |
36,890,048 | How to sort a listview by string numbers? | <p>Here is my main issue, after some researches, I didn't find a solution so... I would like to sort my list of custom objects. These items have a price, but for a reason they are strings not int. I would like to know how to achieve this, thanks for helping ! </p>
<p>Little personnal question, sorting a listview and a... | Here is my main issue, after some researches, I didn't find a solution so... I would like to sort my list of custom objects. These items have a price, but for a reason they are strings not int. I would like to know how to achieve this, thanks for helping ! Little personnal question, sorting a listview and a recyclervie... | android|sorting|listview | 0 | 2016-04-27T12:37:18.587Z | 2,016 | 4 | 12 | 2 | 1,041 | 4 | 706 | 41 | 3 | 4 | true | false | false | false | false | false | zero |
36,890,111 | Android - sometimes app hangs without ui thread | <p>Sometimes (so it's very hard to reproduce and debug) my application just hangs after it starts. It only shows layout (with two fragments and one NDK-component) and that's it!</p>
<p>I thought that there's something like infinite loop in code, but there's no anything like that. There's no even UI thread, when I trie... | Sometimes (so it's very hard to reproduce and debug) my application just hangs after it starts. It only shows layout (with two fragments and one NDK-component) and that's it! I thought that there's something like infinite loop in code, but there's no anything like that. There's no even UI thread, when I tried to find i... | android|android-ndk | 1 | 2016-04-27T12:40:12.907Z | 2,016 | 4 | 12 | 2 | 926 | 1 | 376 | 47 | 2 | 1 | true | false | false | false | false | false | low |
36,890,272 | Select multiple image from album and store in bitmap array Android | <p>I have tried to modify on able to select multiple photo in album but the result just allowed me to select single photo. And I want to know that is it possible to store the selected multiple photo into Bitmap array so that I can call a function like save Image with using the bitmap array. Please help me. Thanks.</p>
... | I have tried to modify on able to select multiple photo in album but the result just allowed me to select single photo. And I want to know that is it possible to store the selected multiple photo into Bitmap array so that I can call a function like save Image with using the bitmap array. Please help me. Thanks. [CODE] | android|arraylist|bitmapimage | 1 | 2016-04-27T12:46:37.970Z | 2,016 | 4 | 12 | 2 | 889 | 0 | 319 | 66 | 3 | 1 | true | true | false | false | false | false | low |
36,890,294 | Linear layout overlapping another linear layout | <p>I have two <code>LinearLayouts</code> in a <code>RelativeLayout</code> the problem is that the top linear layout is overlapping the bottom one a little bit.I tried everything. Please Somebody help me.Below is my XML File
Or tell me how to do it programmatically. Like subtracting height of one linear layout from anot... | I have two LinearLayouts in a RelativeLayout the problem is that the top linear layout is overlapping the bottom one a little bit.I tried everything. Please Somebody help me.Below is my XML File Or tell me how to do it programmatically. Like subtracting height of one linear layout from another. [CODE] | java|android|user-interface | 0 | 2016-04-27T12:47:36.770Z | 2,016 | 4 | 12 | 2 | 2,324 | 5 | 302 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
36,890,312 | android.content.res.Resources$NotFoundException: String resource ID #0x2 Database | <p>When I try to test my app, I get an error.</p>
<blockquote>
<p>FATAL EXCEPTION: main Process: com.example.android.lab5, PID: 12261
android.content.res.Resources$NotFoundException: String resource ID #0x2</p>
</blockquote>
<h1>Here's my code</h1>
<pre><code>public class MainActivity extends AppCompatActivity {... | When I try to test my app, I get an error. FATAL EXCEPTION: main Process: com.example.android.lab5, PID: 12261 android.content.res.Resources$NotFoundException: String resource ID #0x2 Here's my code [CODE] I isolated my error and it seems to come from that line: [CODE] The code of my java class Jour is : [CODE] Thank y... | java|android|mysql|arrays|database | 6 | 2016-04-27T12:48:22.870Z | 2,016 | 4 | 12 | 2 | 9,429 | 2 | 6,857 | 81 | 5 | 6 | true | false | true | false | false | false | medium |
36,890,362 | Notifications in Moto Display | <p>I created a notification and it works but not display in Moto Display when locked.
I changed Priority, Category etc with no effects.
I want this notification like messages or missed cals:
<a href="http://i.stack.imgur.com/dwUWS.png" rel="nofollow">moto display</a></p>
<p>This runs as a service:</p>
<pre><code>Pend... | I created a notification and it works but not display in Moto Display when locked. I changed Priority, Category etc with no effects. I want this notification like messages or missed cals: moto display This runs as a service: [CODE] | android|notifications|lockscreen | 0 | 2016-04-27T12:50:24.093Z | 2,016 | 4 | 12 | 2 | 397 | 2 | 231 | 29 | 3 | 1 | true | false | false | false | false | false | zero |
36,890,365 | Unit Testing Activity/Adaper which uses Picasso | <p>I'm trying to unit test my adapter where I'm using picasso to the load images.
To unittest the adapter I need mock the picasso. So that it don't load the actual images from the network. </p>
<p>I found one SO <a href="https://stackoverflow.com/questions/17096891/spurious-test-failures-using-picasso-and-robolectric"... | I'm trying to unit test my adapter where I'm using picasso to the load images. To unittest the adapter I need mock the picasso. So that it don't load the actual images from the network. I found one SO question . But it seems quite outdated. I'm using android testing support library. MyAdapter.java [CODE] | android|unit-testing|android-support-library|picasso | 0 | 2016-04-27T12:50:34.633Z | 2,016 | 4 | 12 | 2 | 641 | 1 | 305 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
36,890,370 | Setting Colour of shape not working in API 21/22 (GradientDrawable) | <p>I have a shape which I need to change the colour of using the below code:</p>
<pre><code> @Override
public View getView(int position, View convertView, ViewGroup parent) {
// Get the data item for this position
LockListDataModel locks = getItem(position);
// Check if an existing view is being reused,... | I have a shape which I need to change the colour of using the below code: [CODE] For reference the shape looks like: [CODE] This is populating a Custom List Adapter for a List View, and is working on all API levels 18(Minimum SDK)+ except 21 & 22 (Lollipop). API 18 = Works, colour changes API 19 = Works, colour changes... | android|listview|android-5.0-lollipop|android-5.1.1-lollipop|android-shape | 2 | 2016-04-27T12:50:59.673Z | 2,016 | 4 | 12 | 2 | 767 | 0 | 460 | 67 | 5 | 2 | true | true | false | false | false | false | low |
36,890,373 | Null poiner Exception to invoke a Toolbar.getTitle() | <p>Testing a sprite code I get the following error:</p>
<pre><code>FATAL EXCEPTION: main
Process: marti.sprite1app, PID: 2149
java.lang.RuntimeException: Unable to start activity ComponentInfo{marti.... | Testing a sprite code I get the following error: [CODE] I'm trying to show a sprite and display it on the screen, changing the view for the class "vistaPrincipalJuego". Sorry for the English is not very good. MainActivity: [CODE] } Thread Subprocess: [CODE] } Class extends SurfaceView: [CODE] } | java|android|sprite | -1 | 2016-04-27T12:51:08.493Z | 2,016 | 4 | 12 | 2 | 216 | 1 | 295 | 52 | 3 | 4 | true | false | false | false | false | true | negative |
36,890,425 | custom notification | <p>Implemented Custom notification using this <a href="http://developer.android.com/training/notify-user/build-notification.html" rel="nofollow noreferrer">tutorial</a></p>
<p><strong>Problem</strong> is getting 2 notifications now.
one is <strong>default Notification</strong> and other is <strong>custom Notification... | Implemented Custom notification using this tutorial Problem is getting 2 notifications now. one is default Notification and other is custom Notification . How to disable default Notification. code : [CODE] Manifest [CODE] Screenshot CustomReceiver [CODE] | android|push-notification | 1 | 2016-04-27T12:52:57.437Z | 2,016 | 4 | 12 | 2 | 225 | 3 | 254 | 19 | 2 | 3 | true | false | false | false | false | false | low |
36,890,452 | onSMSArrive cordova sms plugins executed more than once | <p>I was developing an app that have capability to read sms content when the user get sms.</p>
<p>So I use ionic and cordova sms plugin to read the sms content. But when user get a sms and triggered the onSMSArrive event provided by the plugin, it did work and can read the sms content.</p>
<p>The problem is it execut... | I was developing an app that have capability to read sms content when the user get sms. So I use ionic and cordova sms plugin to read the sms content. But when user get a sms and triggered the onSMSArrive event provided by the plugin, it did work and can read the sms content. The problem is it execute (read the sms) mo... | android|angularjs|cordova|ionic-framework|cordova-plugins | 2 | 2016-04-27T12:53:47.057Z | 2,016 | 4 | 12 | 2 | 1,771 | 1 | 538 | 55 | 5 | 2 | true | false | false | false | false | false | low |
36,890,461 | Android app crashes when i try to reLogin | <p>I have an android app that is connected to an API through retrofit, ive succesfully logged in, if i press back button to return back to the login activity again, if i try re-logging in again, the app crashes and give me a NullPointerException.</p>
<p>here's connection code</p>
<pre><code> private void loginUser... | I have an android app that is connected to an API through retrofit, ive succesfully logged in, if i press back button to return back to the login activity again, if i try re-logging in again, the app crashes and give me a NullPointerException. here's connection code [CODE] and the goToHomeActivity() is [CODE] the NullP... | java|android|retrofit | 0 | 2016-04-27T12:54:12.213Z | 2,016 | 4 | 12 | 2 | 85 | 2 | 472 | 41 | 3 | 3 | true | false | false | false | false | false | zero |
36,890,635 | Material Theme in Xamarin.Form element | <p>In my application, the AppCompat Theme is working fine created using <a href="https://blog.xamarin.com/android-tips-hello-material-design-v7-appcompat/" rel="nofollow noreferrer">steps here</a>. I want to apply <a href="https://www.google.com/design/spec/components/buttons.html#buttons-raised-buttons" rel="nofollow ... | In my application, the AppCompat Theme is working fine created using steps here . I want to apply RaisedButton color in Xamarin.Forms Button. For this I have tried following: Added style in MyApplication.Droid > Resources > Values> style.xml refering as: <style name="MyRaisedButton" parent="Widget.AppCompat.Button.Colo... | android|xamarin|xamarin.android|android-appcompat | 3 | 2016-04-27T13:01:22.963Z | 2,016 | 4 | 13 | 2 | 1,902 | 1 | 665 | 38 | 4 | 0 | false | false | false | false | false | false | low |
36,890,655 | Google api client disconnect when the app destroyed | <p>In my project i create background service which is get location using google api client.</p>
<p>my problem is when app destroyed,service is running but google api client automatically disconnected and cannot get lat-lang. i don't want lost a connection.</p>
<p>This is my service class code</p>
<pre><code>public ... | In my project i create background service which is get location using google api client. my problem is when app destroyed,service is running but google api client automatically disconnected and cannot get lat-lang. i don't want lost a connection. This is my service class code [CODE] | android|geolocation|google-api-client|android-fusedlocation | 1 | 2016-04-27T13:02:19.440Z | 2,016 | 4 | 13 | 2 | 778 | 0 | 283 | 51 | 4 | 1 | true | true | false | false | false | false | low |
36,890,679 | Xamarin. SetContentView() in FormsAppCompatActivity throws unhandled exception | <p>When atempting to run this code in a xamarin forms app, I get the following exception: </p>
<p><strong>Android.Content.Res.Resources+NotFoundException: Unable to find resource ID #0x1</strong></p>
<pre><code>[Activity(Label = "Xamarin Forms", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = Con... | When atempting to run this code in a xamarin forms app, I get the following exception: Android.Content.Res.Resources+NotFoundException: Unable to find resource ID #0x1 [CODE] If I inherit from AppCompatActivity instead the app does not crash but the forms apis are not available any more. Here is my layout file in case ... | xamarin|xamarin.forms|android-appcompat | 0 | 2016-04-27T13:03:20.393Z | 2,016 | 4 | 13 | 2 | 949 | 0 | 336 | 78 | 3 | 2 | true | true | false | false | false | false | zero |
36,890,813 | Phonegap: preventing youtube videos from playing in after power button is pressed? | <p>I have created an app using Phonegap Build. </p>
<p>The app includes a few HTML pages that have youtube iframed videos on them.</p>
<p>After submitting my .APK to Google play store, it was rejected because it's: 'enabling background play of YouTube videos'</p>
<p>I have scoured stackoverflow for an answer. Many p... | I have created an app using Phonegap Build. The app includes a few HTML pages that have youtube iframed videos on them. After submitting my .APK to Google play store, it was rejected because it's: 'enabling background play of YouTube videos' I have scoured stackoverflow for an answer. Many people ask similar questions ... | android|cordova|youtube | 5 | 2016-04-27T13:09:18.727Z | 2,016 | 4 | 13 | 2 | 437 | 0 | 968 | 82 | 3 | 3 | true | true | false | false | false | false | low |
36,890,837 | Zxing library barcode scan pauses or shows black screen sometimes | <p>I am using zxing library to scan a barcode , I have scanner at 2 places(2 tabs) in my app. I am using Tablayout with viewpager to host tabs. </p>
<p>I am getting different devices.
On nexus 6 (os version 6.1)</p>
<p>when i click on 2nd tab, scanner camera works fine on 2nd tab, but then i again click on 1st tab sc... | I am using zxing library to scan a barcode , I have scanner at 2 places(2 tabs) in my app. I am using Tablayout with viewpager to host tabs. I am getting different devices. On nexus 6 (os version 6.1) when i click on 2nd tab, scanner camera works fine on 2nd tab, but then i again click on 1st tab scanning feature works... | android|tabs|android-viewpager|zxing | 3 | 2016-04-27T13:10:33.603Z | 2,016 | 4 | 13 | 2 | 1,107 | 1 | 738 | 65 | 4 | 0 | false | false | false | false | false | false | low |
36,890,884 | How to get the best GPS position Geolocation API | <p>I want to get the most accurate position of my mobile phone with android. I'm comparing accuracy value in 2 seconds interval and if value is less than last value I'm trying to keep the position in <p>. It looks fine but if accuracy of gps is less than 10 or 11 it doesn't save. I know that accuracy of phone gps is no... | I want to get the most accurate position of my mobile phone with android. I'm comparing accuracy value in 2 seconds interval and if value is less than last value I'm trying to keep the position in . It looks fine but if accuracy of gps is less than 10 or 11 it doesn't save. I know that accuracy of phone gps is not big ... | javascript|android|html|gps|geolocation | 2 | 2016-04-27T13:12:43.393Z | 2,016 | 4 | 13 | 2 | 379 | 0 | 442 | 48 | 5 | 1 | true | true | false | false | false | false | low |
36,890,984 | "Incoming Call" Activity may not be killed on Home Press | <p>I am working on a SIP phone app and there are network events like incoming call forwarded from a sticky background service. When this happens, I open up an IncomingCallActivity showing the usual controls, like "answer", "decline", "deflect"(to voicebox) and so on.</p>
<p>While this all works perfectly, even showing... | I am working on a SIP phone app and there are network events like incoming call forwarded from a sticky background service. When this happens, I open up an IncomingCallActivity showing the usual controls, like "answer", "decline", "deflect"(to voicebox) and so on. While this all works perfectly, even showing a notifica... | java|android | 0 | 2016-04-27T13:16:21.347Z | 2,016 | 4 | 13 | 2 | 79 | 1 | 1,135 | 56 | 2 | 3 | true | false | false | false | false | false | zero |
36,891,173 | Dophin browser on android fail to recognize deep linking | <p>I'm using deep linking on http scheme to let user open my app directly from a link such as <a href="http://myapp.com/invitation?code=xxxxxx" rel="nofollow">http://myapp.com/invitation?code=xxxxxx</a></p>
<p><strong>It works fine as long as the user do not use the Browser named Dolphin, for example,the default andro... | I'm using deep linking on http scheme to let user open my app directly from a link such as http://myapp.com/invitation?code=xxxxxx It works fine as long as the user do not use the Browser named Dolphin, for example,the default android browser, Firefox and Chrome works fine Indeed, with this browser installed, the link ... | android|dolphin-browser | 1 | 2016-04-27T13:24:47.177Z | 2,016 | 4 | 13 | 2 | 55 | 0 | 522 | 56 | 2 | 1 | true | true | false | false | false | false | low |
36,891,214 | Dagger 2: How properly to reuse dependency - how to design components and scopes? | <p>in my app I have 3 activities: LoginActivity, PreferencesActivity and LoggedActivity.</p>
<p>The flow can be: </p>
<ul>
<li><strong>1)</strong> LoginActivity -> PreferencesActivity (user can open preferences from login activity)</li>
<li><strong>2)</strong> LoginActivity -> LoggedActivity -> PreferenceActivity (us... | in my app I have 3 activities: LoginActivity, PreferencesActivity and LoggedActivity. The flow can be: 1) LoginActivity -> PreferencesActivity (user can open preferences from login activity) 2) LoginActivity -> LoggedActivity -> PreferenceActivity (user can open preferences but since he's already logged, some prefs are... | android|dependency-injection|dagger-2 | 0 | 2016-04-27T13:26:23.377Z | 2,016 | 4 | 13 | 2 | 364 | 1 | 946 | 81 | 3 | 0 | false | false | false | false | false | false | zero |
36,891,245 | How to call Android method from AngularJS directive? | <p>I have html which is using Angularjs directive, this html file is used in Android WebView and I would like to call Android method from this directive (<a href="http://saifo.blogspot.de/2013/07/calling-activity-method-from-javascript.html" rel="nofollow">How to call Android method from JS</a>)</p>
<p>Here is my dire... | I have html which is using Angularjs directive, this html file is used in Android WebView and I would like to call Android method from this directive ( How to call Android method from JS ) Here is my directive, [CODE] As I am using Typescript, obviously I am getting an error saying that Android is undefined. Even if th... | javascript|android|angularjs|typescript | 1 | 2016-04-27T13:27:36.657Z | 2,016 | 4 | 13 | 2 | 865 | 1 | 489 | 52 | 4 | 1 | true | false | false | false | false | false | low |
36,891,308 | Android Smart Lock for Passwords sign out | <p>Google states in the documentation that "when the user signs out, call CredentialsApi.disableAutoSignIn() to prevent the user from being immediately signed back in (...)".</p>
<p>This is what happens:</p>
<ol>
<li>User only has 1 credential stored. When he enters the app, he is automatically signed in;</li>
<li>Us... | Google states in the documentation that "when the user signs out, call CredentialsApi.disableAutoSignIn() to prevent the user from being immediately signed back in (...)". This is what happens: User only has 1 credential stored. When he enters the app, he is automatically signed in; User signs out, and CredentialsApi.d... | android|google-api|google-smartlockpasswords | 1 | 2016-04-27T13:30:09.290Z | 2,016 | 4 | 13 | 2 | 475 | 1 | 1,194 | 41 | 3 | 0 | false | false | false | false | false | false | low |
36,891,341 | Why is my app leaking memory on screen rotation? | <p>I have searched for hours on the subject of memory leaks and I cant seem to solve my problem. After exactly 9 rotations my app crashes with an OutOfMemory error. I have both Bitmaps and Drawables with Bitmaps in my app. I have tried putting in code that removes callbacks to drawables, I have tried setting all Bitmap... | I have searched for hours on the subject of memory leaks and I cant seem to solve my problem. After exactly 9 rotations my app crashes with an OutOfMemory error. I have both Bitmaps and Drawables with Bitmaps in my app. I have tried putting in code that removes callbacks to drawables, I have tried setting all Bitmaps t... | android|memory-leaks|bitmap|rotation | 0 | 2016-04-27T13:31:38.350Z | 2,016 | 4 | 13 | 2 | 172 | 1 | 1,985 | 48 | 4 | 2 | true | false | false | false | false | false | zero |
36,891,451 | Correctly using indexes on Android Sqlite3 tables? | <p>I want to make my queries reasonably efficient, and based on my research so far, in SQL this is done by using indexes.</p>
<p>For example say I have this table</p>
<pre><code>CREATE TABLE MYTABLE
(_ID INTEGER PRIMARY KEY AUTOINCREMENT,
NAME_ID INTEGER,
SOME_VALUE REAL,
TIMESTAMP TEXT)
</code></pre... | I want to make my queries reasonably efficient, and based on my research so far, in SQL this is done by using indexes. For example say I have this table [CODE] From what I am reading, indexes are automatically created for primary key fields (so _ID is indexed) and UNIQUE fields, but sometimes there may be multiple valu... | java|android|indexing|sqlite | 1 | 2016-04-27T13:35:31.683Z | 2,016 | 4 | 13 | 2 | 23 | 1 | 949 | 50 | 4 | 1 | true | false | false | false | false | false | low |
36,891,489 | Fatal Exception : java.lang.IllegalArgumentException: GoogleApiClient parameter is required | <p>I'm trying to create an Android Location API using Google Play Services.
But I keep on getting " java.lang.IllegalStateException: GoogleApiClient is required ".
Can anyone tell me what I am doing wrong?
Here's the code which I have been trying.</p>
<p>CODE:</p>
<pre><code>package com.example.jamshi.locationapi;
i... | I'm trying to create an Android Location API using Google Play Services. But I keep on getting " java.lang.IllegalStateException: GoogleApiClient is required ". Can anyone tell me what I am doing wrong? Here's the code which I have been trying. CODE: [CODE] | java|android | 1 | 2016-04-27T13:37:00.897Z | 2,016 | 4 | 13 | 2 | 1,289 | 1 | 257 | 91 | 2 | 1 | true | false | false | false | false | false | low |
36,891,495 | java.lang.NoClassDefFoundError after installing app from Fabric Beta | <p>When I compile my app directly, it works on every devices. But when I make a build through Fabric and install my app from the Fabric Beta app I got this crash right after starting my app : </p>
<pre><code>java.lang.NoClassDefFoundError: com.android.tools.fd.runtime.AppInfo
at com.android.tools.fd.runtime.Bootst... | When I compile my app directly, it works on every devices. But when I make a build through Fabric and install my app from the Fabric Beta app I got this crash right after starting my app : [CODE] This occurs only on devices version 4.4 and lower. I also had trouble related to this . Do you think the crash I got is rela... | android|twitter-fabric | 2 | 2016-04-27T13:37:15.820Z | 2,016 | 4 | 13 | 2 | 2,067 | 2 | 406 | 68 | 2 | 3 | true | false | false | false | false | false | low |
36,891,518 | What's the right way to organize cross-platform oriented web-service? | <p>May be my question is a bit ambiguous so I'll try to explain it clearly:
Normally I work with ASP.NET MVC and write back-end for the <strong>websites</strong>. So 99% of data comes from the user's input to forms and sent to views.</p>
<p>Now I would like to implement <strong>web-service</strong> based on ASP.NET : ... | May be my question is a bit ambiguous so I'll try to explain it clearly: Normally I work with ASP.NET MVC and write back-end for the websites . So 99% of data comes from the user's input to forms and sent to views. Now I would like to implement web-service based on ASP.NET : here what I want to do: My mates write the s... | android|ios|asp.net|json|azure | 1 | 2016-04-27T13:37:53.293Z | 2,016 | 4 | 13 | 2 | 138 | 1 | 1,273 | 69 | 5 | 0 | false | false | false | false | false | false | low |
36,891,608 | Android Use RecyclerView with local recyclerview library instead of loading it from the maven repo | <p>I am trying to use RecyclerView in my project, but because we have some bad proxies, I cannot afford to add compile <code>"com.android.support:recyclerview-v7:+"</code> to my <code>build.gradle</code> because the download is very slow. Instead, for the other libraries, I simply added the .jar files to the <code>'lib... | I am trying to use RecyclerView in my project, but because we have some bad proxies, I cannot afford to add compile "com.android.support:recyclerview-v7:+" to my build.gradle because the download is very slow. Instead, for the other libraries, I simply added the .jar files to the 'libs' folder of the project and in bui... | android|android-gradle-plugin|build.gradle|android-recyclerview | 0 | 2016-04-27T13:41:28.950Z | 2,016 | 4 | 13 | 2 | 180 | 1 | 1,262 | 98 | 4 | 3 | true | false | false | false | false | false | zero |
36,891,610 | Android ListActivity: onCreate is called every time after screen rotation, selected item resets, but visually remains checked | <p>A simple <code>ListActivity</code> containing a <code>TextView</code> and a <code>ListView</code> objects works fine if screen is not rotating.</p>
<p><strong>Problem description.</strong> When running the app for the first time, <code>TextView myText</code> shows <code>-1</code>. It works. When clicking on differe... | A simple ListActivity containing a TextView and a ListView objects works fine if screen is not rotating. Problem description. When running the app for the first time, TextView myText shows -1 . It works. When clicking on different items myText sets/shows the value of the selected item id (or position). So, it works as ... | java|android|listview|screen-orientation|listactivity | 0 | 2016-04-27T13:41:38.293Z | 2,016 | 4 | 13 | 2 | 306 | 3 | 760 | 125 | 5 | 3 | true | false | false | false | false | false | zero |
36,891,627 | Add Style to DropDown React native | <p>I add <a href="https://github.com/alinz/react-native-dropdown" rel="nofollow noreferrer">this </a>plugin
and try to draw the Dropdown, it works fine
in this way </p>
<pre><code> <View style={{ flex: 1, justifyContent: 'center', alignItems: 'flex-start',alignSelf:'center', backgroundColor:'#ebeef0'}}>
... | I add this plugin and try to draw the Dropdown, it works fine in this way [CODE] What I need ,to make it looks like the asp.net dropdown with arrow as At least I want to know how to change the style of the Dropdown how can I override the style of the installed plugin. | javascript|android|node.js|github|react-native | 2 | 2016-04-27T13:42:28.217Z | 2,016 | 4 | 13 | 2 | 2,316 | 0 | 268 | 34 | 5 | 1 | true | true | false | false | false | false | low |
36,891,667 | I have a list of checkboxes where i have to add using java code (not xml ) a new button with text "Submit" when user select any check box | <p>I have a list of checkboxes where i have to add using java code (not xml ) a new button with text "Submit" when user select any check box</p>
<pre><code>@Override
public View getChildView(final int groupPosition, final int childPosition,
boolean isLastChild, View convertView, ViewGroup pare... | I have a list of checkboxes where i have to add using java code (not xml ) a new button with text "Submit" when user select any check box [CODE] Layout Xml is where i have tried with button visibility and the button visibility is not working as of nows [CODE] My activity file is as below [CODE] | android|android-layout|layout | 0 | 2016-04-27T13:44:23.813Z | 2,016 | 4 | 13 | 2 | 87 | 2 | 295 | 137 | 3 | 3 | true | false | false | false | false | false | zero |
36,891,732 | Get Running Applications on a non rooted Android | <p>I've seen many posts about how to get the running processes on Android, but things changed with Lolipop. Now the list is trunked for non rooted devices.</p>
<p>Every post was about to do this kind of code:</p>
<pre><code>ActivityManager am = (ActivityManager) mContext
.getSystemService(Activity.ACTIVIT... | I've seen many posts about how to get the running processes on Android, but things changed with Lolipop. Now the list is trunked for non rooted devices. Every post was about to do this kind of code: [CODE] I tried it and the only thing that is retrieved is your current application. @Stan was talking about developping a... | android|android-service | 0 | 2016-04-27T13:47:01.717Z | 2,016 | 4 | 13 | 2 | 82 | 1 | 667 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
36,891,776 | Android Pushnotification, does nothing on click when inside app | <p>I am trying to launch an activity, when push notification is clicked.
Interestingly, when the app is closed, and no activity is in background, and I recieve a push, I click on it and the required activity is opened.
But when any activity of the app is opened, and I recieve a push, clicking on it does nothing.
I have... | I am trying to launch an activity, when push notification is clicked. Interestingly, when the app is closed, and no activity is in background, and I recieve a push, I click on it and the required activity is opened. But when any activity of the app is opened, and I recieve a push, clicking on it does nothing. I have tr... | android|notifications|push-notification|android-5.0-lollipop|android-5.1.1-lollipop | 0 | 2016-04-27T13:48:28.480Z | 2,016 | 4 | 13 | 2 | 1,374 | 3 | 939 | 63 | 5 | 1 | true | false | false | false | false | false | zero |
36,891,806 | fragment,viewPager,list view and adapter don't work | <p>I have this problem:</p>
<blockquote>
<p>"Error:(51, 16) error: method addFrag in class
ScrollableTabsActivity.ViewPagerAdapter cannot be applied to given
types; required: TwoFragment,String found: OneFragment,String reason:
actual argument OneFragment cannot be converted to TwoFragment by
method invocati... | I have this problem: "Error:(51, 16) error: method addFrag in class ScrollableTabsActivity.ViewPagerAdapter cannot be applied to given types; required: TwoFragment,String found: OneFragment,String reason: actual argument OneFragment cannot be converted to TwoFragment by method invocation conversion". How can I resolve ... | android|listview|android-fragments|android-viewpager|android-arrayadapter | -1 | 2016-04-27T13:49:37.247Z | 2,016 | 4 | 13 | 2 | 280 | 1 | 367 | 51 | 5 | 2 | true | false | false | false | false | true | negative |
36,891,922 | How to resolve the issue of No response from server in asmack when create MUC Group Some times? | <p>I am developing a one chat application in this i am using asmack library, this code for creating Muc room.</p>
<pre><code>public void createGroup(String group){
String[] temp=group.split("/");
String groupName=temp[0];
String unique=temp[1];
System.out.println("Group_name!!!"+groupName);
System... | I am developing a one chat application in this i am using asmack library, this code for creating Muc room. [CODE] This is code for creating room and invite the members to the group. The above code is working perfectly, some times it's showing "No response from server". Please give me any idea how to resolve this Thanks... | android|asmack|xmp | 1 | 2016-04-27T13:54:08.043Z | 2,016 | 4 | 13 | 2 | 61 | 0 | 323 | 95 | 3 | 1 | true | true | false | false | false | false | low |
36,891,934 | unfortunately has stopped error with ViewPager? | <p>I'm trying to create a an app that first show a <code>ListView</code> with many items, when the user click on a specific item then the next activity will open to show images with a <code>ViewPager</code>.</p>
<p>At the beginning I create the <code>ViewPager</code> and I was able to swipe between images, but then wh... | I'm trying to create a an app that first show a ListView with many items, when the user click on a specific item then the next activity will open to show images with a ViewPager . At the beginning I create the ViewPager and I was able to swipe between images, but then when I try to create a new other app that firstly s... | android|listview|android-viewpager | 0 | 2016-04-27T13:54:30.857Z | 2,016 | 4 | 13 | 2 | 262 | 0 | 851 | 47 | 3 | 3 | true | true | false | false | false | false | zero |
36,891,939 | Interface in BroadcastReceiver call only activity instead of fragment | <p>I've implemented a <code>custom interface</code> inside my <code>NetworkReceiver</code></p>
<pre><code>public interface onNetworkStateChanged {
void onStateChange(int state);
}
</code></pre>
<p>I have set both of them on my Activity and Fragment</p>
<pre><code>network = new NetworkReceiver();
network.setOnNet... | I've implemented a custom interface inside my NetworkReceiver [CODE] I have set both of them on my Activity and Fragment [CODE] And when the NetworkReceiver is trigger, it's always the listener inside the Activity who will be called and never the one in the fragment Anyone have a idea ? or i need to implement a customC... | android|android-fragments|android-activity|interface|broadcastreceiver | 0 | 2016-04-27T13:54:34.730Z | 2,016 | 4 | 13 | 2 | 402 | 2 | 463 | 69 | 5 | 3 | true | false | false | false | false | false | zero |
36,892,136 | Android Spinner onItemSelected not triggered | <p>Good day.</p>
<p>I tried choosing the items from my Spinner dropdown list. But when I clicked on the dropdown list items the dropdown list des not closes.</p>
<p>I started debugging and realize that when I click on the dropdown list item the method onItemSelected is not triggered. However, when the dropdown list w... | Good day. I tried choosing the items from my Spinner dropdown list. But when I clicked on the dropdown list items the dropdown list des not closes. I started debugging and realize that when I click on the dropdown list item the method onItemSelected is not triggered. However, when the dropdown list was first initialize... | android|methods|listener|spinner|adapter | 0 | 2016-04-27T14:02:18.053Z | 2,016 | 4 | 14 | 2 | 471 | 0 | 593 | 44 | 5 | 2 | true | true | false | false | false | false | zero |
36,892,154 | Extending all activities from a common activity not working | <p>I have an <code>application</code> which has four <code>activities</code>. All these activities should consist of a <code>toolbar</code> at the top and a <code>TabLayout</code> at the bottom. The <code>TabLayout</code> has 4 tabs. Clicking on a particular <code>tab</code> takes to one of the four activities.</p>
<p... | I have an application which has four activities . All these activities should consist of a toolbar at the top and a TabLayout at the bottom. The TabLayout has 4 tabs. Clicking on a particular tab takes to one of the four activities. Now I want to implement the code as follows 1) Create a Parent activity. The activity i... | android | 0 | 2016-04-27T14:03:00.037Z | 2,016 | 4 | 14 | 2 | 372 | 1 | 786 | 59 | 1 | 2 | true | false | false | false | false | false | zero |
36,892,436 | android google maps Error inflating class fragment - tried all solutions I could find | <p>I've been trying to add Google Maps to my app but keep getting an error. I know this topic is all over stackOverflow but I've tried almost everything and I'm thinking there must be something I'm not seeing. Please understand I've tried all the solutions on stackoverflow. if you could please try and look for me and l... | I've been trying to add Google Maps to my app but keep getting an error. I know this topic is all over stackOverflow but I've tried almost everything and I'm thinking there must be something I'm not seeing. Please understand I've tried all the solutions on stackoverflow. if you could please try and look for me and let ... | android|android-fragments|maps | 0 | 2016-04-27T14:14:02.180Z | 2,016 | 4 | 14 | 2 | 98 | 0 | 519 | 85 | 3 | 4 | true | true | false | false | false | false | zero |
36,892,442 | Get data from online database in Android | <p>I'm developing an application and I'm having problems trying to retrieve data from an online database.</p>
<p>So, in my MainActivity I have this:</p>
<pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener {
Button b1;
EditText ed1,ed2;
public static final Strin... | I'm developing an application and I'm having problems trying to retrieve data from an online database. So, in my MainActivity I have this: [CODE] In my RegisterUser class I have this: [CODE] And in the file login.php I have this: [CODE] I was able to do the login just fine looking for the username and password entered.... | php|android|database | 0 | 2016-04-27T14:14:15.523Z | 2,016 | 4 | 14 | 2 | 83 | 1 | 501 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
36,892,493 | Xamarin Android OutOfMemoryError large images in view pager | <p>I have a view pager, which have ImageView as a background. Resource images are 750x1205 and I keep them in drawable-xhdpi. I don't have any other sizes of the images. </p>
<p>When I scroll pager at some point OutOfMemoryError is thrown on </p>
<pre><code>mPagerBackground.SetImageResource(page.backgroundResId);
</c... | I have a view pager, which have ImageView as a background. Resource images are 750x1205 and I keep them in drawable-xhdpi. I don't have any other sizes of the images. When I scroll pager at some point OutOfMemoryError is thrown on [CODE] I added android:largeHeap="true" to AndroidManifest, I also added ((BitmapDrawable... | c#|android|xamarin|android-viewpager|out-of-memory | 0 | 2016-04-27T14:16:22.003Z | 2,016 | 4 | 14 | 2 | 593 | 2 | 771 | 59 | 5 | 3 | true | false | false | false | false | false | zero |
36,892,496 | Missing class when running the app | <p>I am using a custom Android Library inside an example app. The library has a fragment that must be used from the main activity of the app example. </p>
<p>I have followed the steps to use it from different tutorials, because none of them adjusted 100% to my project. </p>
<p>The fragment has this code:</p>
<pre><c... | I am using a custom Android Library inside an example app. The library has a fragment that must be used from the main activity of the app example. I have followed the steps to use it from different tutorials, because none of them adjusted 100% to my project. The fragment has this code: [CODE] And the main activity: [CO... | java|android|android-fragments|android-library | 1 | 2016-04-27T14:16:24.050Z | 2,016 | 4 | 14 | 2 | 653 | 0 | 747 | 34 | 4 | 3 | true | true | false | false | false | false | low |
36,892,551 | How to store files to a Specified External Directory in Android | <p>I am trying to copy some files from my Assets folder (and also create some new files) to an External folder.</p>
<p>I know that I will need following permissions -</p>
<pre><code><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.... | I am trying to copy some files from my Assets folder (and also create some new files) to an External folder. I know that I will need following permissions - [CODE] Then, I should check for the External Storage state as following (code sample used from android's official example)- [CODE] Then, I can use getExternalFiles... | android|android-external-storage | 1 | 2016-04-27T14:18:20.197Z | 2,016 | 4 | 14 | 2 | 163 | 1 | 914 | 63 | 2 | 3 | true | false | false | false | false | false | low |
36,892,638 | Drawing line between dragged ImageButton in android | <p>Im tring to drag an imageView (the 4 circles) and for every move event draw lines between the 4 <strong>centers</strong> of the imageButton.
But every time i drag them the lines are a little bit off the center.<a href="https://i.stack.imgur.com/7HC75.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com... | Im tring to drag an imageView (the 4 circles) and for every move event draw lines between the 4 centers of the imageButton. But every time i drag them the lines are a little bit off the center. closeLines is an array that contains the 4 imageButtons [CODE] How do i make the lines go from the center of the circles? | android|drawing|line|geometry|imagebutton | 1 | 2016-04-27T14:21:35Z | -1 | -1 | -1 | -1 | 78 | 0 | 315 | 51 | 5 | 1 | true | true | false | false | false | false | low |
36,892,747 | Embedding React or React Native to an existing mobile app | <p>I have been doing research about usability scenarios of React and React Native to ultimately decide whether it is a feasible and responsible decision to embed React (or React Native) to an existing mobile app.</p>
<p>So far, what I have learned is that it is possible to render React Native code within a custom view... | I have been doing research about usability scenarios of React and React Native to ultimately decide whether it is a feasible and responsible decision to embed React (or React Native) to an existing mobile app. So far, what I have learned is that it is possible to render React Native code within a custom view in both An... | android|ios|reactjs|react-native | 2 | 2016-04-27T14:25:40.907Z | 2,016 | 4 | 14 | 2 | 898 | 1 | 1,330 | 57 | 4 | 0 | false | false | false | false | false | false | low |
36,892,773 | Menu item setTitle | <p>I would like to change the title of an item in a menu, but I get an error, here is the log:</p>
<pre><code>E: FATAL EXCEPTION: main
Process: com.locateit.antholife.locateit, PID: 18329
java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setTitle(java.lang.... | I would like to change the title of an item in a menu, but I get an error, here is the log: [CODE] I do not understand why it makes to a null object reference.. Here is the java file: [CODE] then ; [CODE] Thanks for the help ! :) XML file : [CODE] | java|android|null|menuitem|object-reference | -1 | 2016-04-27T14:26:42.293Z | 2,016 | 4 | 14 | 2 | 1,826 | 1 | 247 | 18 | 5 | 4 | true | false | false | false | false | true | negative |
36,892,934 | Android opencv byte[] to mat to byte[] | <p>My goal is to add an overlay on the camera preview that will find book edges. For that, I override the onPreviewFrame where I do the following:</p>
<pre><code>public void onPreviewFrame(byte[] data, Camera camera) {
Camera.Parameters parameters = camera.getParameters();
int width = parameters.getPre... | My goal is to add an overlay on the camera preview that will find book edges. For that, I override the onPreviewFrame where I do the following: [CODE] For now I simply want to take one of the previews and save it after the conversion to mat. After spending countless hours getting the above to look right, the saved pict... | android|opencv|preview | 0 | 2016-04-27T14:33:02.733Z | 2,016 | 4 | 14 | 2 | 2,115 | 2 | 545 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,892,945 | Can't build app when I import Xerces library (exit value 1) | <p>I cannot seem to get my app to build when I import in the Xerces library. I am already using the multidex due to previous issues and therefore I know this is all setup properly.</p>
<p>I have spend a couple of days now looking online and trying all sorts of versions of Xerces and tweaks to my build.gradle but canno... | I cannot seem to get my app to build when I import in the Xerces library. I am already using the multidex due to previous issues and therefore I know this is all setup properly. I have spend a couple of days now looking online and trying all sorts of versions of Xerces and tweaks to my build.gradle but cannot work out ... | java|android-studio|gradle|xml-parsing|xerces | 6 | 2016-04-27T14:33:28.920Z | 2,016 | 4 | 14 | 2 | 1,533 | 2 | 745 | 59 | 5 | 4 | true | false | false | false | false | false | medium |
36,893,134 | change the layout of views in a recycler view | <p>I have 2 different layouts which I want to use for my views in specific situations in a <code>Recycler View</code>. the user decides which layout should appear. how is it possible to change the layout of my views which are being shown in the recycler view at run time? I think I need to force my adapter to restart an... | I have 2 different layouts which I want to use for my views in specific situations in a Recycler View . the user decides which layout should appear. how is it possible to change the layout of my views which are being shown in the recycler view at run time? I think I need to force my adapter to restart and recreate and ... | android|android-recyclerview|android-adapter | 0 | 2016-04-27T14:41:07.620Z | 2,016 | 4 | 14 | 2 | 488 | 0 | 418 | 45 | 3 | 1 | true | true | false | false | false | false | zero |
36,893,158 | AsyncTask inside of onPostExecute of another Asynctask and return the result | <p>In my first AsyncTask <code>doInBackground</code> method I run a method that get a list of places from Google Place Api. Inside the <code>postExecute</code> of this first AsyncTask, I get all the names of these places and show them all in a ListView.</p>
<p>I now would like to show the driving distance of a single ... | In my first AsyncTask doInBackground method I run a method that get a list of places from Google Place Api. Inside the postExecute of this first AsyncTask, I get all the names of these places and show them all in a ListView. I now would like to show the driving distance of a single place from my current location (I can... | java|android|listview|android-asynctask|google-places-api | 0 | 2016-04-27T14:41:44.367Z | 2,016 | 4 | 14 | 2 | 233 | 1 | 655 | 76 | 5 | 2 | true | false | false | false | false | false | zero |
36,893,170 | how put an activity in a fragment? | <p>how can i put an activity into a fragment?
Please help me!
i think that i make a little mistake.....i think ...................</p>
<p>This is my code for your perusal. Thank you in advance!</p>
<p>I have this code:</p>
<pre><code>import android.content.Intent;
import android.os.Bundle;
import android.support.v7.... | how can i put an activity into a fragment? Please help me! i think that i make a little mistake.....i think ................... This is my code for your perusal. Thank you in advance! I have this code: [CODE] AND this: [CODE] AND this: [CODE] | android|listview|android-fragments|android-viewpager|android-tabs | -2 | 2016-04-27T14:42:03.153Z | 2,016 | 4 | 14 | 2 | 79 | 1 | 242 | 34 | 5 | 3 | true | false | false | false | false | true | negative |
36,893,242 | Start an Android app from a Broadcast | <p>I'm new to the Android API and i try hard to start my app (NOT an Activity) from a Broadcast receiver. It's compiling and manualy launching on my Device, but not automatically launching when i plug an USB device in.</p>
<p>My goal : plug usb in -> start app -> "Hello World!"</p>
<p>===============================[... | I'm new to the Android API and i try hard to start my app (NOT an Activity) from a Broadcast receiver. It's compiling and manualy launching on my Device, but not automatically launching when i plug an USB device in. My goal : plug usb in -> start app -> "Hello World!" ===============================[edit]==============... | java|android|usb|broadcast|receiver | 0 | 2016-04-27T14:45:07.280Z | 2,016 | 4 | 14 | 2 | 592 | 0 | 821 | 37 | 5 | 3 | true | true | false | false | false | false | zero |
36,893,254 | java.net.SocketTimeoutException: failed to connect to (my ip) | <p>I'm developing an android apps that require connection to mysql. I host wampserver using my pc as localhost. And i connect my real android device to mysql via my pc. When connecting using my home network with IP 192.168.1.x, the connection is fine and my apps works fine in retrieving and inserting data. But when I c... | I'm developing an android apps that require connection to mysql. I host wampserver using my pc as localhost. And i connect my real android device to mysql via my pc. When connecting using my home network with IP 192.168.1.x, the connection is fine and my apps works fine in retrieving and inserting data. But when I conn... | java|android|mysql | 2 | 2016-04-27T14:45:34.743Z | 2,016 | 4 | 14 | 2 | 5,522 | 0 | 707 | 61 | 3 | 3 | true | true | true | false | false | false | low |
36,893,287 | Android Espresso 2.0 stuck on clicking gridview item | <p>I want to create Espresso tests for my Android app. I have a <code>StaggeredGridView</code> (<a href="https://github.com/etsy/AndroidStaggeredGrid" rel="nofollow" title="StaggeredGridView">StaggeredGridView Github </a>) with lots of grid items (~1000) made of custom models (<code>Recipe.class</code>)</p>
<pre><code... | I want to create Espresso tests for my Android app. I have a StaggeredGridView ( StaggeredGridView Github ) with lots of grid items (~1000) made of custom models ( Recipe.class ) [CODE] The grid items are a simple LinearLayout with Image and TextView . The problem is when I want to click on an element which is not visi... | android|gridview|android-espresso|staggered-gridview | 3 | 2016-04-27T14:46:39.327Z | 2,016 | 4 | 14 | 2 | 827 | 1 | 550 | 52 | 4 | 3 | true | false | false | false | false | false | low |
36,893,343 | Error building Player: CommandInvokationFailure: Failed to re-package resource when building for Android in Unity3D | <p>I am trying to integrate Heyzap with several advertiser SDK.
Building for iOS give me no problem, it only happens when building for Android.
I tried removing UnityAds AndroidManifest.xml file but it won't build again so I had to put it back.
I did a fresh new Android Studio install 2 days ago so I think ADT should ... | I am trying to integrate Heyzap with several advertiser SDK. Building for iOS give me no problem, it only happens when building for Android. I tried removing UnityAds AndroidManifest.xml file but it won't build again so I had to put it back. I did a fresh new Android Studio install 2 days ago so I think ADT should be a... | android|unity3d|build|heyzap | 0 | 2016-04-27T14:48:41.607Z | 2,016 | 4 | 14 | 2 | 644 | 1 | 347 | 115 | 4 | 1 | true | false | false | false | false | false | zero |
36,893,395 | Setting preferences state before running test | <p>I am using espresso and AndroidJunit4 runner. I am trying to set some preferences so that when onCreate or onResume fires that logic will be engaged. It seems that the call to prefs before doing the onView() has no effect. I am printing out the preferences in the onResume and onCreate and they are empty. Notice the ... | I am using espresso and AndroidJunit4 runner. I am trying to set some preferences so that when onCreate or onResume fires that logic will be engaged. It seems that the call to prefs before doing the onView() has no effect. I am printing out the preferences in the onResume and onCreate and they are empty. Notice the sho... | android|android-espresso|android-sharedpreferences | 2 | 2016-04-27T14:50:44.833Z | 2,016 | 4 | 14 | 2 | 819 | 1 | 409 | 45 | 3 | 1 | true | false | false | false | false | false | low |
36,893,748 | Javascript fetch response cutoff | <p>I'm starting to learn react-native and ran into some problems while using fetch on Android.</p>
<pre><code>try {
let response = await fetch(REQUEST_URL, {
method: "POST",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: ... | I'm starting to learn react-native and ran into some problems while using fetch on Android. [CODE] The request is sent correctly but the answer isn't shown in it's totality: [CODE] As you can see, the JSON object isn't complete. Sending the same request using other methods in a browser returns the JSON correctly. I'm w... | javascript|android|json|react-native|fetch | 2 | 2016-04-27T15:06:03.410Z | 2,016 | 4 | 15 | 2 | 1,278 | 1 | 719 | 32 | 5 | 5 | true | false | false | false | false | false | low |
36,893,851 | Upload file from android to mysql database with Base64? | <p>I am creating an android mobile application in which user can upload a file to the server.</p>
<p>I successful to upload image to server by using the following code :</p>
<pre><code> public String getStringImage(Bitmap bmp){
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bmp.compress(Bitmap.C... | I am creating an android mobile application in which user can upload a file to the server. I successful to upload image to server by using the following code : [CODE] I try to send a file by using the following code but It not working. [CODE] Here the methode to upload : [CODE] Method to open file : [CODE] OnActivity :... | php|android|mysql|file|base64 | 0 | 2016-04-27T15:10:22.510Z | 2,016 | 4 | 15 | 2 | 694 | 0 | 327 | 55 | 5 | 5 | true | true | false | false | false | false | zero |
36,894,006 | android - call method in view from activity | <p>I am working on a 2d game and I'm trying to make the view where I draw and update everything tell the activity that contains it that the game ended and display a pop-up on the screen. The problem is that I don't know how to access the method in the activity from the view because they work on different threads.</p>
... | I am working on a 2d game and I'm trying to make the view where I draw and update everything tell the activity that contains it that the game ended and display a pop-up on the screen. The problem is that I don't know how to access the method in the activity from the view because they work on different threads. The code... | java|android | 0 | 2016-04-27T15:16:43.947Z | 2,016 | 4 | 15 | 2 | 964 | 2 | 537 | 43 | 2 | 1 | true | false | false | false | false | false | zero |
36,894,015 | Android SSLException: SSL handshake aborted after SSL server update | <p>Someone from our backend team forgot to renew the SSL certificate for our server. Every connection from the Android clients was refused until we put in place a new certificate (as expected).</p>
<p>Now the problem is that some of our users get this SSLException AFTER we updated the server. Any ideas on what's going... | Someone from our backend team forgot to renew the SSL certificate for our server. Every connection from the Android clients was refused until we put in place a new certificate (as expected). Now the problem is that some of our users get this SSLException AFTER we updated the server. Any ideas on what's going on? [CODE] | android|ssl|retrofit2|okhttp | 1 | 2016-04-27T15:17:04.137Z | 2,016 | 4 | 15 | 2 | 983 | 0 | 320 | 67 | 4 | 1 | true | true | false | false | false | false | low |
36,894,157 | List of installed applications by package | <p>This is my problem: I can get the list of the installed applications in my device, but i need to have a list with only determinate apps in list. I mean, for example, i would show in list only my apps.. How can i do? Can i just look at the package name? Is there any other way to filter this list to show the applicati... | This is my problem: I can get the list of the installed applications in my device, but i need to have a list with only determinate apps in list. I mean, for example, i would show in list only my apps.. How can i do? Can i just look at the package name? Is there any other way to filter this list to show the applications... | java|android|listview|android-package-managers | 0 | 2016-04-27T15:23:13.033Z | 2,016 | 4 | 15 | 2 | 287 | 1 | 581 | 41 | 4 | 2 | true | false | false | false | false | false | zero |
36,894,202 | NullPointerException Android getContext() | <p>I am using Android API 23. I'm trying to request permissions from the user on runtime as is recommended for the new API. This is my implementation.</p>
<pre><code>private void requestPermission(String type){
String permission = "";
String requestText = "";
if(type.equals("video")){
permission = ... | I am using Android API 23. I'm trying to request permissions from the user on runtime as is recommended for the new API. This is my implementation. [CODE] On running the code on the phone, I get the following error in Android Studio. [CODE] The full traceback is here: [CODE] Line 271 of requestPermission is: [CODE] My ... | android | 0 | 2016-04-27T15:24:49.240Z | 2,016 | 4 | 15 | 2 | 3,238 | 2 | 423 | 41 | 1 | 6 | true | false | true | false | false | false | zero |
36,894,298 | Charles Proxy for Genymotion stops 10.0.3.2 localhost traffic | <p>I read all the threads about this topic and the instructions for setting up charles with genymotion are all the same:</p>
<p><a href="http://rexstjohn.com/using-genymotion-charles-proxy/" rel="nofollow noreferrer">http://rexstjohn.com/using-genymotion-charles-proxy/</a></p>
<pre><code>In your Genymotion Android em... | I read all the threads about this topic and the instructions for setting up charles with genymotion are all the same: http://rexstjohn.com/using-genymotion-charles-proxy/ [CODE] My set up is: A localhost development Spring server running on my Mac OS An android app installed on my genymotion emulator. The genymotion em... | android|proxy|localhost|genymotion|charles-proxy | 12 | 2016-04-27T15:29:08.113Z | 2,016 | 4 | 15 | 2 | 2,838 | 1 | 2,374 | 61 | 5 | 3 | true | false | true | false | true | false | medium |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.