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,183,613 | Client - Server on Local Wifi delphi XE7 Project VCL | <p>At First , i'm using VCL Component , and i don't know if is possible to do this project without FireMonkey Component...(If it's not possible i will use firemonkey component)</p>
<p>My Question is really simple , i'm searching for an example of a project , or for concept , where i can use an application (Client) of ... | At First , i'm using VCL Component , and i don't know if is possible to do this project without FireMonkey Component...(If it's not possible i will use firemonkey component) My Question is really simple , i'm searching for an example of a project , or for concept , where i can use an application (Client) of Android , t... | android|windows|delphi|vcl | 0 | 2016-05-12T10:03:39.683Z | 2,016 | 5 | 10 | 3 | 1,049 | 1 | 993 | 52 | 4 | 3 | true | false | false | false | false | false | zero |
37,183,646 | Run test from gradle in android | <p>I checked the similar question (<a href="https://stackoverflow.com/questions/19927627/android-gradle-how-to-build-application-and-run-tests-from-test-application">similar question</a>, <a href="https://stackoverflow.com/questions/23557946/writing-gradle-script-to-run-unit-test-cases-for-eclipse-android-test-project"... | I checked the similar question ( similar question , sample gradle build file ). but that solution did not worked for me. I want to run junits using gradle file, for android eclipse project. Structure of Source project is below: [CODE] Structure of Test project: [CODE] Gradle file of source project is: [CODE] Please sug... | android|build.gradle|junit4|robolectric | 0 | 2016-05-12T10:04:49.950Z | 2,016 | 5 | 10 | 3 | 45 | 0 | 384 | 31 | 4 | 3 | true | true | false | false | false | false | zero |
37,183,660 | Why is javascript executing if and else twice on Android, but not on PC? | <p>I use a value in javascript, which is called slut. I put the value of slut into my html page. I use Javascript to change the menu, if it is a Mobile device, or not. But when i load the page on my phone, it shows the desktop menu. When i change the user agent of my pc browser, to the one my phone has, it shows the mo... | I use a value in javascript, which is called slut. I put the value of slut into my html page. I use Javascript to change the menu, if it is a Mobile device, or not. But when i load the page on my phone, it shows the desktop menu. When i change the user agent of my pc browser, to the one my phone has, it shows the mobil... | javascript|android|html | 0 | 2016-05-12T10:05:37.193Z | 2,016 | 5 | 10 | 3 | 28 | 1 | 510 | 72 | 3 | 1 | true | false | false | false | false | false | zero |
37,183,676 | android bluetooth :The method getSystemService(String) is undefined for the type BluetoothDevice | <p>The method <code>getSystemService(String)</code> is undefined for the type <code>BluetoothDevice</code></p>
<p>THE CLASS <code>TelephonyInfo</code> that accesses my sim cards on my phone is working </p>
<p>I want to use it to show the sim details on a device I'm connected to, I made some changes to include bluetoo... | The method getSystemService(String) is undefined for the type BluetoothDevice THE CLASS TelephonyInfo that accesses my sim cards on my phone is working I want to use it to show the sim details on a device I'm connected to, I made some changes to include bluetooth, but I'm having a problem with the methodgetSystemServic... | java|android|bluetooth | 0 | 2016-05-12T10:06:10.270Z | 2,016 | 5 | 10 | 3 | 295 | 1 | 748 | 96 | 3 | 1 | true | false | false | false | false | false | zero |
37,183,679 | OpenCV MatOfRect JNI typecast | <p>Referring to Sample:facedetection, the native code is as follows:</p>
<pre><code>inline void vector_Rect_to_Mat(vector<Rect>& v_rect, Mat& mat)
{
mat = Mat(v_rect, true);
}
JNIEXPORT void JNICALL Java_org_opencv_samples_facedetect_DetectionBasedTracker_nativeDetect
(JNIEnv * jenv, jclass, jlong thiz... | Referring to Sample:facedetection, the native code is as follows: [CODE] Now the extracted (multiple) ROI will be in the Rect container on a vector and then passed through to the Java type MatOfRect named "faces". Suppose the Question is back conversion of this Java type passed by address through the JNI- to re-extract... | java|android|c++|opencv|java-native-interface | 1 | 2016-05-12T10:06:29.483Z | 2,016 | 5 | 10 | 3 | 496 | 0 | 359 | 29 | 5 | 1 | true | true | false | false | false | false | low |
37,183,694 | How to show a Chart when an item on a dropdown is selected in Xamarin.Forms? | <p>I want to show different chart whenever an item on a dropdown is clicked. I was able to create a sample program with a dropdown using Picker and show a box view depending on the item selected. But now, instead of boxes, i want a Chart to be shown. Can somebody tell me how? I don't have any background in creating cha... | I want to show different chart whenever an item on a dropdown is clicked. I was able to create a sample program with a dropdown using Picker and show a box view depending on the item selected. But now, instead of boxes, i want a Chart to be shown. Can somebody tell me how? I don't have any background in creating charts... | xamarin|xamarin.android|xamarin.forms|xamarin-studio | 0 | 2016-05-12T10:07:23.817Z | 2,016 | 5 | 10 | 3 | 242 | 0 | 405 | 76 | 4 | 1 | true | true | false | false | false | false | zero |
37,183,858 | Android border for button is not working through xml | <p>I try to put a border for a button in android but unfortunately <code>android:background=""</code> dosen't give any chance to put a drawable resource file. Also it dosen't any chance to put a background color. </p>
<p>This is my button ,</p>
<pre><code><Button android:layout_width="wrap_content"
android... | I try to put a border for a button in android but unfortunately android:background="" dosen't give any chance to put a drawable resource file. Also it dosen't any chance to put a background color. This is my button , [CODE] IDE(Android Studio) brings the error in the last line of the button xml. And this is my button_b... | android|xml|button|background | 0 | 2016-05-12T10:13:34.463Z | 2,016 | 5 | 10 | 3 | 2,427 | 3 | 444 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
37,183,931 | Communicating with fragments using FragmentTransaction | <p>I want two fragments to communicate with each other. ProductDisplayFragment will "send" the object to PaymentFragment. The following code shows the code where I used FragmentTransaction to send object over to PaymentFragment. </p>
<p>This code works except when I try to send over the FIRST object. First object is n... | I want two fragments to communicate with each other. ProductDisplayFragment will "send" the object to PaymentFragment. The following code shows the code where I used FragmentTransaction to send object over to PaymentFragment. This code works except when I try to send over the FIRST object. First object is never receive... | java|android|android-fragments | 1 | 2016-05-12T10:16:27.963Z | 2,016 | 5 | 10 | 3 | 35 | 1 | 511 | 54 | 3 | 2 | true | false | false | false | false | false | low |
37,184,164 | Overdraw-optimize RecyclerView layouts | <p>So I have a <code>RecyclerView</code> that has multiple view types that all have a different rendering background-wise. Naturally I want to avoid overdraw for all these components, so I give my <code>RecyclerView</code> and all views up in the hierarchy no background at all.</p>
<p>This works fine as is - until I s... | So I have a RecyclerView that has multiple view types that all have a different rendering background-wise. Naturally I want to avoid overdraw for all these components, so I give my RecyclerView and all views up in the hierarchy no background at all. This works fine as is - until I start animating items in and out. The ... | android|android-recyclerview | 2 | 2016-05-12T10:25:20.740Z | 2,016 | 5 | 10 | 3 | 674 | 1 | 1,582 | 38 | 2 | 1 | true | false | false | false | false | false | low |
37,184,192 | Marmalade Core Storage (s3eSecureStoragePut & s3eSecureStorageGet) not persisting | <p>I have a minimal app made using Marmalade Core. It creates a webview then sends data to be stored and retrieved using s3eSecureStoragePut & s3eSecureStorageGet.</p>
<p>This works fine until I close the app and reopen it. After it loads up again and I try to load the data it returns as blank. Does anyone have an... | I have a minimal app made using Marmalade Core. It creates a webview then sends data to be stored and retrieved using s3eSecureStoragePut & s3eSecureStorageGet. This works fine until I close the app and reopen it. After it loads up again and I try to load the data it returns as blank. Does anyone have any ideas why thi... | android|c++|webview|marmalade | 0 | 2016-05-12T10:26:30.803Z | 2,016 | 5 | 10 | 3 | 57 | 1 | 515 | 81 | 4 | 2 | true | false | false | false | false | false | zero |
37,184,201 | How to support GCM service for minimum version 8 in Android | <p>How to support Android minimum SDK version 8 for Google play GCM service [com.google.android.gms:play-services-base:8.4.0]. In my application I have set minimum SDK version 8 and targeting version 23 and need Google GCM service to my app, so that I have added corresponding dependencies to the app.</p>
<p>This is gr... | How to support Android minimum SDK version 8 for Google play GCM service [com.google.android.gms:play-services-base:8.4.0]. In my application I have set minimum SDK version 8 and targeting version 23 and need Google GCM service to my app, so that I have added corresponding dependencies to the app. This is gradle file: ... | android|android-studio|android-support-library|android-build | 0 | 2016-05-12T10:26:49.750Z | 2,016 | 5 | 10 | 3 | 241 | 1 | 417 | 59 | 4 | 2 | true | false | false | false | false | false | zero |
37,184,218 | data binding with two sets of multiple images simultaneously using Recycler view in android | <p>Our problem is to update multiple images in recycler view by clicking any single item[of recycler view] using data binding but initially we were able to update images only at some positions using databinding in ImageAdapter's xml.But according to our search in android developer site,we were suggested to use recycler... | Our problem is to update multiple images in recycler view by clicking any single item[of recycler view] using data binding but initially we were able to update images only at some positions using databinding in ImageAdapter's xml.But according to our search in android developer site,we were suggested to use recycler vi... | java|android-recyclerview|android-databinding | 4 | 2016-05-12T10:27:54.707Z | 2,016 | 5 | 10 | 3 | 789 | 1 | 645 | 91 | 3 | 2 | true | false | false | false | false | false | low |
37,184,334 | Deleting Video File in Android | <p>I want to the delete the file after compression is done. I have used the code to delete the file. But when I check in the Gallery the video file is still there but it doesn't play shows error Media not Supported. Here is my code.</p>
<pre><code>if (compressed) {
snackbar = TSnackbar
... | I want to the delete the file after compression is done. I have used the code to delete the file. But when I check in the Gallery the video file is still there but it doesn't play shows error Media not Supported. Here is my code. [CODE] This is mediaFile [CODE] This is the storage directory [CODE] | android | 0 | 2016-05-12T10:32:33.183Z | 2,016 | 5 | 10 | 3 | 50 | 1 | 298 | 30 | 1 | 3 | true | false | false | false | false | false | zero |
37,184,465 | How to resolve when Logcats stops working in Android Studio? | <p>Logcat has stopped working for me again in Android Studio. Last time it happened I had to reinstall the IDE, and I want to avoid it again.</p>
<p>What I did for this to happen was changing...</p>
<p><em>Log.d("WRONG", "TEST");</em></p>
<p>to</p>
<p><em>Log.d("LOG", TEST");</em></p>
<p>and then changed the tag b... | Logcat has stopped working for me again in Android Studio. Last time it happened I had to reinstall the IDE, and I want to avoid it again. What I did for this to happen was changing... Log.d("WRONG", "TEST"); to Log.d("LOG", TEST"); and then changed the tag back to "WRONG" again. Now Logcat wont show any of my debug me... | android|android-studio|logcat | 6 | 2016-05-12T10:38:15.260Z | 2,016 | 5 | 10 | 3 | 3,516 | 7 | 1,363 | 60 | 3 | 0 | false | false | true | false | false | false | medium |
37,184,609 | Android - Access TextView inside ViewPager | <p>I am using the standard Viewpager with custom PageAdapter.</p>
<p>How can I access to the Viewpager's TextView, to change the font color at onPageSelected()?</p>
<h1>Edit 1: ViewPager Listener</h1>
<pre><code>final ViewPager vp = (ViewPager) findViewById(R.id.a2viewpager);
vp.addOnPageChangeListener(new V... | I am using the standard Viewpager with custom PageAdapter. How can I access to the Viewpager's TextView, to change the font color at onPageSelected()? Edit 1: ViewPager Listener [CODE] Edit 1: Custom Adapter [CODE] Thanks | android|android-viewpager | 0 | 2016-05-12T10:44:31.257Z | 2,016 | 5 | 10 | 3 | 421 | 2 | 221 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
37,184,673 | Android: My location button doesn't work on Android 6.0 | <p>Everything works fine in other androids, but in 6.0 MyLocationButton doesn't do anything. here's my code</p>
<pre><code>googleMap.getUiSettings().setMyLocationButtonEnabled(true);
googleMap.setMyLocationEnabled(true);
googleMap
.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClic... | Everything works fine in other androids, but in 6.0 MyLocationButton doesn't do anything. here's my code [CODE] What can cause this problem? I guess it has to do something with new permissions(in Android 6.0), but i can't figure it out. | android|google-maps|google-play-services|android-6.0-marshmallow | 1 | 2016-05-12T10:47:41.383Z | 2,016 | 5 | 10 | 3 | 1,739 | 1 | 236 | 55 | 4 | 1 | true | false | false | false | false | false | low |
37,184,687 | SwipeRefreshLayout setRefreshing not showing progress bar in Fragment | <p>I am using the following code in this fragment:</p>
<pre><code>public class OwnerPendingBookingsFragment extends Fragment implements SwipeRefreshLayout.OnRefreshListener {
private View myView;
private ListView booking_list;
private ArrayAdapter adapter;
private SharedPreferences preferences;
private BookingList bo... | I am using the following code in this fragment: [CODE] And I have the following layout: [CODE] The first time it starts, it make it correctly I see the progress rolling until it finishes the proccess. But then everytime I swipe down it starts updating but I don't see the progress bar. I check SwipeRefreshLayout setRefr... | android|swiperefreshlayout | 1 | 2016-05-12T10:48:11.073Z | 2,016 | 5 | 10 | 3 | 2,394 | 2 | 472 | 69 | 2 | 2 | true | false | false | false | false | false | low |
37,184,724 | Different archivesBaseName of apk file depending on debug or release isn't applied as wanted | <p>I've tried to give different base names depending on debug or release mode when building my android app. But it never becomes as I expect and I can't figure out how to solve it. </p>
<p>I have a android-part in my gradle looking like this: </p>
<pre><code>def applicationVersionCode() {
return 14;
}
def applic... | I've tried to give different base names depending on debug or release mode when building my android app. But it never becomes as I expect and I can't figure out how to solve it. I have a android-part in my gradle looking like this: [CODE] When building debug mode the app gets the name: [CODE] And when I add: [CODE] it ... | android|gradle|apk | 9 | 2016-05-12T10:49:52.237Z | 2,016 | 5 | 10 | 3 | 321 | 0 | 470 | 92 | 3 | 6 | true | true | false | false | false | false | medium |
37,184,801 | android.net.Uri$HierarchicalUri cannot be cast to java.util.ArrayList | <p>I am having this problem when trying to share single or multiple files with my app. When I select a single file and tap share icon and choose my application, i get the uri of the file, whereas when i select multiple files, i get an Arraylist of uri. Below is my code.</p>
<pre><code> protected void onCreate(Bundle s... | I am having this problem when trying to share single or multiple files with my app. When I select a single file and tap share icon and choose my application, i get the uri of the file, whereas when i select multiple files, i get an Arraylist of uri. Below is my code. [CODE] I am getting the following exception. [CODE] ... | android|arraylist|uri | 3 | 2016-05-12T10:52:35.060Z | 2,016 | 5 | 10 | 3 | 4,319 | 2 | 400 | 69 | 3 | 2 | true | false | true | false | false | false | low |
37,184,803 | Issuses in Using Listview in Json | <p>My issue is when I am click on list of items on list view then Display Category id as a Toast Message.any one can help to solve this issue. I am appreciating who solve this problem? And how to get dynamic id in <code>url</code> with only using one <code>url</code> but different page will be load depends upon id in ... | My issue is when I am click on list of items on list view then Display Category id as a Toast Message.any one can help to solve this issue. I am appreciating who solve this problem? And how to get dynamic id in url with only using one url but different page will be load depends upon id in json parsing ? JSON [CODE] Mai... | java|php|android|json | 0 | 2016-05-12T10:52:38.267Z | 2,016 | 5 | 10 | 3 | 75 | 1 | 377 | 33 | 4 | 4 | true | false | false | false | false | false | zero |
37,184,808 | Titanium - ScrollableView height on Android | <p>I have a problem with the height of a scrollableView on Android. </p>
<p>I don't know what width and height have got the photos but I want that the width of the photo fill the screen so, width: Ti.UI.FILL, and the height be proportional. But the result is that the scrollableView fills the width but the photo is ver... | I have a problem with the height of a scrollableView on Android. I don't know what width and height have got the photos but I want that the width of the photo fill the screen so, width: Ti.UI.FILL, and the height be proportional. But the result is that the scrollableView fills the width but the photo is very very small... | android|appcelerator|appcelerator-titanium|appcelerator-alloy | 0 | 2016-05-12T10:52:47.940Z | 2,016 | 5 | 10 | 3 | 389 | 2 | 623 | 43 | 4 | 3 | true | false | false | false | false | false | zero |
37,184,832 | Having trouble implementing JsonObjectRequest | <p>I am having trouble implementing <strong>JsonObjectRequest</strong> for getting on <strong>JsonObject</strong> from the web.
I am trying to create a new <strong>JsonObjectRequest</strong> :</p>
<pre><code> JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null,
new R... | I am having trouble implementing JsonObjectRequest for getting on JsonObject from the web. I am trying to create a new JsonObjectRequest : [CODE] But everything it's all squiggly an under highlited with red by android studio and it says [CODE] Does anyone have any idea what's wrong? | java|android|json | 0 | 2016-05-12T10:54:12.413Z | 2,016 | 5 | 10 | 3 | 143 | 2 | 283 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
37,184,835 | Value Database of type java.lang.String cannot be converted to JSONObject | <p>The data given using the code below is inserted into the database but doesn't show the dialog box whether it is successful or not.</p>
<p>My target api is 23.</p>
<p>Should I use gson?</p>
<p>Please help.</p>
<pre><code>public class BackgroundTask extends AsyncTask<String, Void, String> {
String register_... | The data given using the code below is inserted into the database but doesn't show the dialog box whether it is successful or not. My target api is 23. Should I use gson? Please help. [CODE] | java|android | 1 | 2016-05-12T10:54:21.030Z | 2,016 | 5 | 10 | 3 | 139 | 1 | 190 | 73 | 2 | 1 | true | false | false | false | false | false | low |
37,184,933 | Espresso onData Error performing 'load adapter data' on view | <p>I have an app, have ListView, I want to find LinearLayout, id=order_untake_jijia_listview_jia</p>
<p><a href="https://i.stack.imgur.com/kK4Fz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kK4Fz.jpg" alt="enter image description here"></a></p>
<p>code is :</p>
<pre><code>onData(withClassName(e... | I have an app, have ListView, I want to find LinearLayout, id=order_untake_jijia_listview_jia code is : [CODE] But I have the error: [CODE] | java|android|testing|android-espresso | 4 | 2016-05-12T10:59:01.130Z | 2,016 | 5 | 10 | 3 | 9,161 | 1 | 139 | 60 | 4 | 2 | true | false | true | false | false | false | low |
37,184,941 | Firebase offline no CompletionListener on setValue | <p>I have this codebase where I set a value. In offline mode it writes successfully but is not calling the CompletionListener.onComplete callback function.</p>
<pre><code>newOrderRef.setValue(order, (firebaseError, firebase) -> {
if (firebaseError != null) {
Timber.e(firebaseError.toExce... | I have this codebase where I set a value. In offline mode it writes successfully but is not calling the CompletionListener.onComplete callback function. [CODE] The callback never gets called. But writes fine. In another case even after unsubscribing in onDestroy using CompositeSubscription , the subscriber gets called ... | java|android|firebase|rx-java | 6 | 2016-05-12T10:59:23.970Z | 2,016 | 5 | 10 | 3 | 1,487 | 1 | 544 | 50 | 4 | 2 | true | false | false | false | false | false | medium |
37,185,084 | notifyDataSetChanged Android ListView and VideoView | <p>My app has a <code>ListView</code> and each row contains a <code>TextView</code> running a timer and a video player (<a href="https://github.com/brianwernick/ExoMedia" rel="nofollow">ExoMediaPlayer</a>) in each row</p>
<p>I refresh each row by <code>listAdapter.notifyDataSetChanged()</code> to update the timer <cod... | My app has a ListView and each row contains a TextView running a timer and a video player ( ExoMediaPlayer ) in each row I refresh each row by listAdapter.notifyDataSetChanged() to update the timer TextView every second. It works fine as shown in the below code. [CODE] Adapter [CODE] Problem The above code works good a... | android|listview|timer|baseadapter | 1 | 2016-05-12T11:06:07.043Z | 2,016 | 5 | 11 | 3 | 185 | 1 | 815 | 51 | 4 | 2 | true | false | false | false | false | false | low |
37,185,117 | ActionBar back button does not work | <p>I have an action bar containing a search view.when i want to search something from my list view by clicking search button, action bar shows a back button on the left side.if i click this back button after getting search list, search view and back button disappear but the list View shows only that searched list not o... | I have an action bar containing a search view.when i want to search something from my list view by clicking search button, action bar shows a back button on the left side.if i click this back button after getting search list, search view and back button disappear but the list View shows only that searched list not orig... | android | -1 | 2016-05-12T11:07:36.477Z | 2,016 | 5 | 11 | 3 | 146 | 1 | 339 | 35 | 1 | 1 | true | false | false | false | false | true | negative |
37,185,159 | Bluetooth doesn't turn on AOSP 6.0 + Nexus 5X | <p>I am not able to get Bluetooth to turn on with AOSP built from source (for both MMB29V and MTC19T)</p>
<p>I downloaded both versions of AOSP (android-6.0.1_r17 and android-6.0.1_r25 respectively), I built both and tried to load system, userdata and cache built from aosp on Nexus 5X device.</p>
<p>I also load the... | I am not able to get Bluetooth to turn on with AOSP built from source (for both MMB29V and MTC19T) I downloaded both versions of AOSP (android-6.0.1_r17 and android-6.0.1_r25 respectively), I built both and tried to load system, userdata and cache built from aosp on Nexus 5X device. I also load the vendor image from co... | android|bluetooth|android-source|android-6.0-marshmallow | 1 | 2016-05-12T11:09:26.407Z | 2,016 | 5 | 11 | 3 | 409 | 1 | 658 | 45 | 4 | 1 | true | false | false | false | false | false | low |
37,185,204 | Robolectric 3.0 custom AndroidManifest.xml in @Config properties ignored | <p>I'm writing an Android Library in android Studio 1.5.1.
I've followed the normal creation flow in order to create the Android Library as explained here: <a href="https://androidbycode.wordpress.com/2015/02/23/building-an-aar-library-in-android-studio/" rel="nofollow noreferrer">https://androidbycode.wordpress.com/20... | I'm writing an Android Library in android Studio 1.5.1. I've followed the normal creation flow in order to create the Android Library as explained here: https://androidbycode.wordpress.com/2015/02/23/building-an-aar-library-in-android-studio/ In order to test some library's internal classes I've added Robolectric 3.0. ... | android|unit-testing|robolectric | 2 | 2016-05-12T11:11:34.630Z | 2,016 | 5 | 11 | 3 | 498 | 0 | 840 | 72 | 3 | 1 | true | true | false | false | false | false | low |
37,185,222 | Android EditText value doesn't show up | <p>I'm trying to retrieve user entered values from EditTexts but nothing is showing up. Here's my code</p>
<pre><code>public class RechargeCarte extends Fragment {
private EditText cardnummer,transfersolde,bannummer;
RequestQueue requestQueue;
String s1,s2,s3;
public RechargeCarte() {
// Required empty public con... | I'm trying to retrieve user entered values from EditTexts but nothing is showing up. Here's my code [CODE] The Toast does show up but the Log results are always "aaaa" the entered values doesn't show up. If any one could help.. Thanks :)) | android|android-edittext | 1 | 2016-05-12T11:12:19.410Z | 2,016 | 5 | 11 | 3 | 50 | 4 | 238 | 38 | 2 | 1 | true | false | false | false | false | false | low |
37,185,231 | How to split a stream correctly into 4 Actions using RxAndroid? | <p>I trying to get into reactive programing for the first time. I'm using the <a href="https://github.com/mcharmas/Android-ReactiveLocation" rel="nofollow noreferrer">ReactiveLocation</a> library for Android, And I have 4 textviews that need to be populated with location data when a new location is received.</p>
<p>So... | I trying to get into reactive programing for the first time. I'm using the ReactiveLocation library for Android, And I have 4 textviews that need to be populated with location data when a new location is received. So this is the code that will get me a location on each location update: [CODE] I also have this Func that... | android|rx-java|rx-android|android-reactivelocation | 1 | 2016-05-12T11:12:48.047Z | 2,016 | 5 | 11 | 3 | 161 | 1 | 673 | 63 | 4 | 4 | true | false | false | false | false | false | low |
37,185,318 | Google Play Developer Console Stack Trace showing too many methods | <p>We're looking at stack traces for crashes for our app on Google Play Developer Console. We've uploaded the mapping file to deobfuscate the stack trace and that seems to be working.</p>
<p>However, something we've noticed is that the stack seems to show multiple methods in each part of the "chain". Not just one me... | We're looking at stack traces for crashes for our app on Google Play Developer Console. We've uploaded the mapping file to deobfuscate the stack trace and that seems to be working. However, something we've noticed is that the stack seems to show multiple methods in each part of the "chain". Not just one method in each ... | android|stack | 1 | 2016-05-12T11:17:00.613Z | 2,016 | 5 | 11 | 3 | 214 | 0 | 647 | 66 | 2 | 1 | true | true | false | false | false | false | low |
37,185,404 | Google account login and logout | <p>I'm developing an application on Android and I want to allow users to log in with their google account. I managed the login but I am having problems with logout. I have a navigation drawer with the logout option in the end. Can someone help me implement logout?</p>
<p>I tried the code from <a href="https://develope... | I'm developing an application on Android and I want to allow users to log in with their google account. I managed the login but I am having problems with logout. I have a navigation drawer with the logout option in the end. Can someone help me implement logout? I tried the code from https://developers.google.com/identi... | android|google-account | 0 | 2016-05-12T11:21:12.870Z | 2,016 | 5 | 11 | 3 | 2,382 | 1 | 391 | 31 | 2 | 1 | true | false | false | false | false | false | zero |
37,185,416 | android - difference docid in this java file (SELECT docid as _id) | <p>i am searching keyword using "SELECT docid as _id(blabla)"..
Using First DBAdapter, i can search keyword i typed .. but the second cant..
why?? </p>
<p>DBAdapter(docid works)</p>
<pre><code>package inklinked.tessearchtambahfitur;
import android.content.ContentValues;
import android.content.Context;
import android... | i am searching keyword using "SELECT docid as _id(blabla)".. Using First DBAdapter, i can search keyword i typed .. but the second cant.. why?? DBAdapter(docid works) [CODE] DBAdapter(docid fail) #i already change into SELECT _id,(blabla),no error,and connect to my MainDIY(search activity), but it cant displaying searc... | android|sqlite|select|search | 0 | 2016-05-12T11:21:43.333Z | 2,016 | 5 | 11 | 3 | 119 | 1 | 359 | 66 | 4 | 3 | true | false | false | false | false | false | zero |
37,185,418 | Android - Firebase complex (or not) query - Issue with unique IDs | <p>Today I'm experiencing an issue with Firebase to make a query such as: <strong>"Give me all the items of a user having that specific UID (user unique id)"</strong></p>
<p>The items are <strong>added using the push method</strong> which creates a Unique ID. Is there some way to bypass the Unique ID for such a reques... | Today I'm experiencing an issue with Firebase to make a query such as: "Give me all the items of a user having that specific UID (user unique id)" The items are added using the push method which creates a Unique ID. Is there some way to bypass the Unique ID for such a request? Any help would be higly appreciated. Thank... | android|firebase|firebase-realtime-database | 2 | 2016-05-12T11:21:45.823Z | 2,016 | 5 | 11 | 3 | 1,063 | 4 | 380 | 65 | 3 | 1 | true | false | false | false | false | false | low |
37,185,454 | Top of stack trace in Google Play Developer Console is obfuscated | <p>We've uploaded our mapping file to the Google Play Developer console and most of the stack trace is deobfuscated. However, the top part seems to still be obfuscated in some traces (not all).</p>
<p>Anyone know why this could be and what we could do to fix it?</p>
<p>See <code>avt.b(int)</code> in trace below.</p>... | We've uploaded our mapping file to the Google Play Developer console and most of the stack trace is deobfuscated. However, the top part seems to still be obfuscated in some traces (not all). Anyone know why this could be and what we could do to fix it? See avt.b(int) in trace below. [CODE] | android|stack | 0 | 2016-05-12T11:23:49.223Z | 2,016 | 5 | 11 | 3 | 148 | 2 | 290 | 65 | 2 | 1 | true | false | false | false | false | false | zero |
37,185,464 | GoogleApiClient onConnectionFailed with statusCode=SIGN_IN_REQUIRED | <p>I'm trying to connect my app to Google play service to access Google Drive but It showing me <strong>connection failed</strong> with statusCode <code>SIGN_IN_REQUIRED.</code></p>
<p>But it seems to behave like that just 3 days ago. I am also checked developer console of google. They may have changed something in th... | I'm trying to connect my app to Google play service to access Google Drive but It showing me connection failed with statusCode SIGN_IN_REQUIRED. But it seems to behave like that just 3 days ago. I am also checked developer console of google. They may have changed something in the API which i am unable to figure out. Yo... | android|google-api|google-api-client|google-drive-android-api|android-googleapiclient | 5 | 2016-05-12T11:24:08.003Z | 2,016 | 5 | 11 | 3 | 7,823 | 6 | 414 | 67 | 5 | 3 | true | false | true | false | false | false | low |
37,185,572 | ((Button)view) inside a service is not working | <p>I am trying to create a button that allows me to record audio through a service, i want the button to have text: <code>"Start Recording"</code>. On the <code>OnClick</code> event, i want the button text to change to: <code>"Stop Recording"</code>. </p>
<p>I had this code working when it was in a class but now it is... | I am trying to create a button that allows me to record audio through a service, i want the button to have text: "Start Recording" . On the OnClick event, i want the button text to change to: "Stop Recording" . I had this code working when it was in a class but now it is not working in a service, however, as I want the... | java|android|xml|service|onclick | 6 | 2016-05-12T11:29:31.093Z | 2,016 | 5 | 11 | 3 | 113 | 6 | 542 | 46 | 5 | 3 | true | false | false | false | false | false | medium |
37,185,604 | Inflating View into LinearLayout and editing cmponents in this view | <p>I am trying to add multiple LinearLayouts into one declared in xml. Everyone has 3 textView which will be edited in code. My problem is, when i am inflating xml layout to View object in code, all margins are ignored. My second question:
How can i dynamically set ids to textViews and then edit text in it?</p>
<p>Lin... | I am trying to add multiple LinearLayouts into one declared in xml. Everyone has 3 textView which will be edited in code. My problem is, when i am inflating xml layout to View object in code, all margins are ignored. My second question: How can i dynamically set ids to textViews and then edit text in it? LinearLayout x... | android|android-layout|views|android-linearlayout|layout-editor | 0 | 2016-05-12T11:30:46.487Z | 2,016 | 5 | 11 | 3 | 788 | 1 | 457 | 67 | 5 | 3 | true | false | false | false | false | false | zero |
37,185,641 | Example for sorted String-array in Spinner | <p>Hi I want to show alphabetical sorted array name="planets_array" in spinner.
I found some info about .sort collections and array list but nothing of let me to understand how it's working.
So please help me and show me on example.
I have in strings.xml:</p>
<pre><code><string-array name="planets_array">
&l... | Hi I want to show alphabetical sorted array name="planets_array" in spinner. I found some info about .sort collections and array list but nothing of let me to understand how it's working. So please help me and show me on example. I have in strings.xml: [CODE] And in Activity.java: [CODE] | java|android|arrays|spinner | 2 | 2016-05-12T11:32:32.843Z | 2,016 | 5 | 11 | 3 | 1,127 | 4 | 288 | 42 | 4 | 2 | true | false | false | false | false | false | low |
37,185,677 | java.io.IOException: Error running exec() Working Directory: null Environment: null | <p>I am using <a href="https://github.com/WritingMinds/ffmpeg-android-java" rel="noreferrer">WritingMinds/ffmpeg-android-java</a> in application.</p>
<p>here is my code</p>
<pre><code>loadFFmpeg();
String cmd="ffmpeg -i /storage/emulated/0/media/audio/a.mp3 -i /storage/emulated/0/recording.3gp -filter_complex \"[0:a... | I am using WritingMinds/ffmpeg-android-java in application. here is my code [CODE] and [CODE] but I am getting following error 6784-6962/com.flipartstudio.playandrecord E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@41803270 java.io.IOException: Error running exec(). Command: [/data/data/com.flipartstudio... | java|android|ffmpeg|ioexception | 5 | 2016-05-12T11:33:57.920Z | 2,016 | 5 | 11 | 3 | 5,731 | 3 | 2,232 | 83 | 4 | 3 | true | false | true | false | false | false | low |
37,185,867 | How to delete collapsing toolbar in android | <p>Right now I have collapsing toolbar from material design.</p>
<p>I want to change it to default or material action bar.</p>
<p>Can i do it from menu.xml or any alternative way?</p>
<p>My code is bellow.
If you need more code, ask me.</p>
<p>Thanks a lot.</p>
<pre><code><android.support.design.widget.Coordina... | Right now I have collapsing toolbar from material design. I want to change it to default or material action bar. Can i do it from menu.xml or any alternative way? My code is bellow. If you need more code, ask me. Thanks a lot. [CODE] Menu.xml code is bellow: [CODE] | android | 0 | 2016-05-12T11:43:31.003Z | 2,016 | 5 | 11 | 3 | 54 | 1 | 265 | 43 | 1 | 2 | true | false | false | false | false | false | zero |
37,185,875 | After upgrade for Android Studio 2.1.1 Error:(30, 13) | <p>Today, after upgrade <em>Android Studio</em> from <em>2.1.0</em> to <em>2.1.1</em>, when compiling gradle, the error shows:</p>
<blockquote>
<p>Error:(30, 13) Failed to resolve: com.google.code.ksoap2-android:ksoap2-android:3.4.0</p>
</blockquote>
<p>How to solve?</p>
<p><strong>build.gradle:</strong></p>
<p><... | Today, after upgrade Android Studio from 2.1.0 to 2.1.1 , when compiling gradle, the error shows: Error:(30, 13) Failed to resolve: com.google.code.ksoap2-android:ksoap2-android:3.4.0 How to solve? build.gradle: [CODE] app/build.gradle: [CODE] | android|gradle | 4 | 2016-05-12T11:43:52.033Z | 2,016 | 5 | 11 | 3 | 1,903 | 2 | 243 | 53 | 2 | 2 | true | false | false | false | false | false | low |
37,185,902 | unable to view data using $scope in angularjs | <p>I am trying to get data from cordova sqlite and add it to the scope. and bind the data in the view page.but i get error "cannot read push of undefined".and no data shows in the view page.</p>
<p>//My controller </p>
<pre><code>$scope.codesubmit=function(data){
var query = "SELECT * FROM item_master WHERE ... | I am trying to get data from cordova sqlite and add it to the scope. and bind the data in the view page.but i get error "cannot read push of undefined".and no data shows in the view page. //My controller [CODE] //My view page [CODE] | android|angularjs|cordova|angularjs-scope | 0 | 2016-05-12T11:45:01.220Z | 2,016 | 5 | 11 | 3 | 91 | 2 | 232 | 45 | 4 | 2 | true | false | false | false | false | false | zero |
37,185,927 | Getting Error while requesting READ_CONTACTS permission Android M | <p>i am trying to get READ_CONTACTS permission Android M and on calling: </p>
<pre><code>ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_CONTACTS}, 1);
</code></pre>
<p>app crash with following exception:</p>
<pre><code>05-12 17:08:24.578: E/AndroidRuntime(2846): java.lang.RuntimeExcept... | i am trying to get READ_CONTACTS permission Android M and on calling: [CODE] app crash with following exception: [CODE] I have also specified <uses-permission android:name="android.permission.READ_CONTACTS" /> in the Manifest file. | android|android-6.0-marshmallow | 1 | 2016-05-12T11:46:05.940Z | 2,016 | 5 | 11 | 3 | 376 | 1 | 231 | 65 | 2 | 2 | true | false | false | false | false | false | low |
37,185,950 | Getting Data from a RecyclerView After long Press | <p>I have a <code>RecyclerView</code> which contains several data stored on <code>CardView</code> after long press i am enabling a context menu, i am getting the position of particular card and i am able to display the data on Toast also.<br>
But what i want to do is to Store the data in List<> and then retrieve it ... | I have a RecyclerView which contains several data stored on CardView after long press i am enabling a context menu, i am getting the position of particular card and i am able to display the data on Toast also. But what i want to do is to Store the data in List<> and then retrieve it from another activity class where i ... | android|arraylist|android-cardview | 0 | 2016-05-12T11:47:05.073Z | 2,016 | 5 | 11 | 3 | 200 | 2 | 966 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
37,185,973 | Bind Service with Altbeacon does not work after second bind | <p>this is my Singleton class to which I can add Observers:</p>
<p>Full class implementation on the following link:</p>
<p><a href="http://pastebin.com/bLpTH4u9" rel="nofollow">http://pastebin.com/bLpTH4u9</a></p>
<p>The relevant code:</p>
<pre><code>public void addSensor(AbstractBeaconSensor sensor){
lock.lock... | this is my Singleton class to which I can add Observers: Full class implementation on the following link: http://pastebin.com/bLpTH4u9 The relevant code: [CODE] The problem is that after one AbstractSensor is added, the scanning is working correctly. After calling stopRangingBeaconInRegion() and unbind(), and then call... | android|altbeacon|beacon | 0 | 2016-05-12T11:48:18.223Z | 2,016 | 5 | 11 | 3 | 453 | 1 | 605 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
37,186,034 | Android Fresco: Error inflating class com.facebook.samples.zoomable.ZoomableDraweeView | <p>I want to create application using <code>Fresco</code> library with zoom functionality using <code>ZoomableDraweeView</code> but when I start my application, application got crashed. Below is my code so please help me to solve this issue and thanks in advance. </p>
<pre><code>public class ZoomActivity extends Activ... | I want to create application using Fresco library with zoom functionality using ZoomableDraweeView but when I start my application, application got crashed. Below is my code so please help me to solve this issue and thanks in advance. [CODE] Here is my layout. [CODE] Here is Gradle. [CODE] Below is my logcate. [CODE] | android|fresco | 0 | 2016-05-12T11:50:29.173Z | 2,016 | 5 | 11 | 3 | 395 | 1 | 318 | 86 | 2 | 4 | true | false | false | false | false | false | zero |
37,186,064 | Use Facebook sdk's ShareContent in share intent android | <p>I am trying to use the shareintent in my app but I ran into a problem when sharing a link to facebook, no images is shown with the preview. So tried customizing the android shareintent so that it uses the share functionality from facebooksdk when facebook is selected but I can't seem to get it working. Below is the ... | I am trying to use the shareintent in my app but I ran into a problem when sharing a link to facebook, no images is shown with the preview. So tried customizing the android shareintent so that it uses the share functionality from facebooksdk when facebook is selected but I can't seem to get it working. Below is the cod... | android|android-intent|facebook-sdk-4.0 | 7 | 2016-05-12T11:51:53.430Z | 2,016 | 5 | 11 | 3 | 777 | 2 | 503 | 55 | 3 | 1 | true | false | false | false | false | false | medium |
37,186,201 | Duplicate item in dimens.xml | <p>I am currently checking out the source code of Google's Dialer application.
However, I get a gradle build error: <code>Error: Found item Dimension/call_log_action_height more than one time</code>.</p>
<p>This makes sense, because the item <em>is</em> indeed a duplicate, as you can see here (first and last line):</p... | I am currently checking out the source code of Google's Dialer application. However, I get a gradle build error: Error: Found item Dimension/call_log_action_height more than one time . This makes sense, because the item is indeed a duplicate, as you can see here (first and last line): [CODE] However, this is the source... | android | 1 | 2016-05-12T11:57:46.673Z | 2,016 | 5 | 11 | 3 | 199 | 0 | 437 | 28 | 1 | 1 | true | true | false | false | false | false | low |
37,186,321 | Fragment keeps on crashing. How to reload a fragment using fragment transaction? | <p>I am trying to reload my fragment using this code:</p>
<pre><code>private void reloadFragment() {
Fragment newFragment = new FragmentList();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.id.fragment, newFragment);
transaction.commit();
}
</code></p... | I am trying to reload my fragment using this code: [CODE] but my app keeps crashing when i call the method.. i dont know what is wrong i get this error in my console: [CODE] I have been trying to resolve this since morning don't know what is wrong with this please help me | android|android-fragments|android-studio|android-volley|fragmenttransaction | 0 | 2016-05-12T12:03:06.053Z | 2,016 | 5 | 12 | 3 | 235 | 0 | 272 | 80 | 5 | 2 | true | true | false | false | false | false | zero |
37,186,543 | How to resolve this packager error on react native Android | <p>Hello am new to react native on Android.Am doing example APP </p>
<p>referred this:</p>
<p><a href="http://blog.couchbase.com/2015/november/getting-started-with-react-native-android-and-couchbase-lite" rel="nofollow">http://blog.couchbase.com/2015/november/getting-started-with-react-native-android-and-couchbase-li... | Hello am new to react native on Android.Am doing example APP referred this: http://blog.couchbase.com/2015/november/getting-started-with-react-native-android-and-couchbase-lite After npm start am getting this error: [CODE] can anyone what's the problem in packager.sh or it's problem on cli.js .I registry npm also & if ... | android|node.js|android-studio|npm|react-native | 3 | 2016-05-12T12:12:43.503Z | 2,016 | 5 | 12 | 3 | 817 | 1 | 460 | 58 | 5 | 1 | true | false | false | false | false | false | low |
37,186,555 | Bluetooth Device Button Press Should Trigger Onclick Listener in the app | <p>I'm trying to make an app which triggers an on click listener in the app when a button is pressed on the paired bluetooth device. After googling for several hours I think I am unable to send keycode of the button of the bluetooth device to broadcast receiver where if the keycode matchs then i can call the on click l... | I'm trying to make an app which triggers an on click listener in the app when a button is pressed on the paired bluetooth device. After googling for several hours I think I am unable to send keycode of the button of the bluetooth device to broadcast receiver where if the keycode matchs then i can call the on click list... | android|bluetooth|broadcastreceiver|android-broadcastreceiver | 6 | 2016-05-12T12:13:28.597Z | 2,016 | 5 | 12 | 3 | 8,625 | 3 | 939 | 72 | 4 | 0 | false | false | true | false | false | false | medium |
37,186,677 | Exit an app on dialog button click | <p>I am trying to exit an app when ever the user clicks the back button let it display a dialog yes/no button on clicking the yes button let it exit the app including with the registration activity assuming you are on the main activity.</p>
<p>This is my code but it not working</p>
<pre><code>private AlertDialog AskO... | I am trying to exit an app when ever the user clicks the back button let it display a dialog yes/no button on clicking the yes button let it exit the app including with the registration activity assuming you are on the main activity. This is my code but it not working [CODE] when the back button is clicked on the main ... | java|android | 0 | 2016-05-12T12:18:04.837Z | 2,016 | 5 | 12 | 3 | 1,268 | 6 | 445 | 34 | 2 | 2 | true | false | false | false | false | false | zero |
37,186,754 | android viewpager lags with image | <p>I have an intro with 3 pages.
I use this tutorial, to realize an swipe page intro:
<a href="https://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/" rel="nofollow noreferrer">https://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/</a></p>
<p>This works fin... | I have an intro with 3 pages. I use this tutorial, to realize an swipe page intro: https://thepseudocoder.wordpress.com/2011/10/05/android-page-swiping-using-viewpager/ This works fine, BUT: My first page have an image and a text. My second and third page have only text without an image. If I swipe from page 1 to page ... | android|android-viewpager | 0 | 2016-05-12T12:21:25.267Z | 2,016 | 5 | 12 | 3 | 1,134 | 3 | 494 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
37,186,761 | check android process groups | <p>Device: android 6.0.1</p>
<p>I wrote an app, use <code>WRITE_EXTERNAL_STORAGE</code> permission in manifest, install this app, and then turn on storage permission for this app from settings.</p>
<pre><code>adb shell
:/ # ps | grep com.amida.test
u0_a199 6722 477 872572 41084 SyS_epoll_ b6c89c74 S com.amida.te... | Device: android 6.0.1 I wrote an app, use WRITE_EXTERNAL_STORAGE permission in manifest, install this app, and then turn on storage permission for this app from settings. [CODE] Question: I think groups should has 1015. but can not find 1015 there, why? according to : #define AID_SDCARD_RW 1015 More information: In And... | android|runtime-permissions | 4 | 2016-05-12T12:21:40.287Z | 2,016 | 5 | 12 | 3 | 1,617 | 0 | 835 | 28 | 2 | 2 | true | true | false | false | false | false | low |
37,186,805 | Start new Activity with onClick() in RecyclerView | <p>I want to go into a new Activity with the onClick() method but my code is not working. Can you please offer some advice. I have some issues with the recyclerView, since it's fairly new for me. Thank you</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code... | I want to go into a new Activity with the onClick() method but my code is not working. Can you please offer some advice. I have some issues with the recyclerView, since it's fairly new for me. Thank you [CODE] [CODE] [CODE] | android|android-activity|android-recyclerview | 11 | 2016-05-12T12:23:46.897Z | 2,016 | 5 | 12 | 3 | 41,561 | 10 | 223 | 49 | 3 | 3 | true | false | true | true | true | false | medium |
37,186,806 | How to get sub directory in android? | <p>My code is for renaming files in a folder on the SD card, however, it doesn't rename files in sub folders present in the same folder.</p>
<p>here is my approach, i added this line - </p>
<pre><code>ExplorerDBOperation(listFile[i]);
</code></pre>
<p>but the error i get is - "The method ExplorerDBOperation(File) is... | My code is for renaming files in a folder on the SD card, however, it doesn't rename files in sub folders present in the same folder. here is my approach, i added this line - [CODE] but the error i get is - "The method ExplorerDBOperation(File) is undefined for the type Hide.ExplorerDBOperation" how do i call my method... | android | 0 | 2016-05-12T12:23:51.007Z | 2,016 | 5 | 12 | 3 | 36 | 1 | 375 | 36 | 1 | 3 | true | false | false | false | false | false | zero |
37,186,822 | Cordova camera plugin: nullpointer exception | <p>We are using cordova-plugin-camera (version 2.2) in our Hybrid app. Our App crashes every now and then and this is due to a NullPointerException when Camera is invoked. We have tested on Android 4.4.4 and multiple difference devices running this OS and the result is the same. This error seems to have been reported ... | We are using cordova-plugin-camera (version 2.2) in our Hybrid app. Our App crashes every now and then and this is due to a NullPointerException when Camera is invoked. We have tested on Android 4.4.4 and multiple difference devices running this OS and the result is the same. This error seems to have been reported at h... | android|cordova|nullpointerexception|cordova-plugins | 3 | 2016-05-12T12:24:32.983Z | 2,016 | 5 | 12 | 3 | 342 | 0 | 555 | 44 | 4 | 2 | true | true | false | false | false | false | low |
37,186,851 | Arduino publish/subscribe to PubNub | <p>I am trying to create an IoT based smart house system. It contains of my android application which sends and receives messages from/to PubNub (subscribes and publishes on certain channels) and Arduino UNO board with some LEDs and movement sensor (PIR). My android app seems to be working fine, it sends and receives m... | I am trying to create an IoT based smart house system. It contains of my android application which sends and receives messages from/to PubNub (subscribes and publishes on certain channels) and Arduino UNO board with some LEDs and movement sensor (PIR). My android app seems to be working fine, it sends and receives mess... | android|arduino|publish-subscribe|pubnub | 1 | 2016-05-12T12:25:44.313Z | 2,016 | 5 | 12 | 3 | 252 | 0 | 775 | 35 | 4 | 1 | true | true | false | false | false | false | low |
37,186,930 | Unable to see new activity | <p>I mean to make an app with a "settings" button, that will create a new activity when pressed. I want that new activity to show the actual settings page.</p>
<p>Here's the XML code of the Settings button:</p>
<pre><code><Button
android:text="Settings"
android:layout_width="wrap_content"
android:layout_height="wr... | I mean to make an app with a "settings" button, that will create a new activity when pressed. I want that new activity to show the actual settings page. Here's the XML code of the Settings button: [CODE] Here's the code where I call the new activity, which is in my main activity's OnCreate : [CODE] Here's the code of m... | c#|android|xamarin|xamarin.android | -1 | 2016-05-12T12:29:42.587Z | 2,016 | 5 | 12 | 3 | 78 | 4 | 524 | 26 | 4 | 3 | true | false | false | false | false | true | negative |
37,186,976 | Can't get files of external storage directory | <p>So I am trying to get all files in a certain directory but I always get a NullPointerException when trying to use file.listFiles()</p>
<p>I have the right permissions included (before the application tags) in my Manifest file:
</p>
<pre><code><uses-permission android:name="android.permission.WRITE_EXTERNAL_STOR... | So I am trying to get all files in a certain directory but I always get a NullPointerException when trying to use file.listFiles() I have the right permissions included (before the application tags) in my Manifest file: [CODE] Code: [CODE] I can also not access and read a file in the directory _appTests , EACCESS Excep... | java|android|io | 1 | 2016-05-12T12:31:49.180Z | 2,016 | 5 | 12 | 3 | 860 | 5 | 669 | 45 | 3 | 2 | true | false | false | false | false | false | low |
37,186,992 | How to manage activity with startActivityForResult | <p>I got a situation like this:</p>
<p>Activity A --> B --> C --> D, when D finished, I have to refresh ActivityA to display what I input in ActivityB , ActivityC and ActivityD.Here is my code:</p>
<p>ActivityA</p>
<pre><code> @OnClick(R.id.btn_one)
public void toActivityB(){
Intent intent = new Inten... | I got a situation like this: Activity A --> B --> C --> D, when D finished, I have to refresh ActivityA to display what I input in ActivityB , ActivityC and ActivityD.Here is my code: ActivityA [CODE] ActivityB [CODE] ActivityC code just like ActivityB, the last ActivityD as follow: [CODE] In this way, I can get the in... | android|android-activity|onactivityresult|startactivityforresult | 1 | 2016-05-12T12:32:25.200Z | 2,016 | 5 | 12 | 3 | 927 | 2 | 564 | 50 | 4 | 3 | true | false | false | false | false | false | low |
37,187,051 | Retrofit with RXJava/RxAndroid: How does the Observable work? | <p>I'm just starting with Retrofit and RXJava. I have a api call that uploads a file and return a http response that has an empty body and status 200 (in case everythign works fine). I translated that to retrofit as:</p>
<pre><code> @PUT("/in")
Observable<Void> uploadFile(@Body ResponseBody file);
</code></pre>... | I'm just starting with Retrofit and RXJava. I have a api call that uploads a file and return a http response that has an empty body and status 200 (in case everythign works fine). I translated that to retrofit as: [CODE] But when whe use mApi.uploadFile(f), I get an exception: [CODE] I read here that for an empty respo... | android|rx-java|retrofit2 | 1 | 2016-05-12T12:34:37.747Z | 2,016 | 5 | 12 | 3 | 1,231 | 1 | 814 | 61 | 3 | 2 | true | false | false | false | false | false | low |
37,187,058 | ObjectAlreadyConsumedException: Receiving map already consumed | <p><strong>tl; dr</strong> <br>
I try to get data of a WritableMap, in the same class and two times. I get <code>Receiving map already consumed</code> error and I couldn't overcome that issue.</p>
<hr>
<p>I've been developing a Native Module to use in my React-Native app.</p>
<p>I have 2 classes. One of them is <cod... | tl; dr I try to get data of a WritableMap, in the same class and two times. I get Receiving map already consumed error and I couldn't overcome that issue. I've been developing a Native Module to use in my React-Native app. I have 2 classes. One of them is MyModule class (is in MyModule.java file) and the other one is a... | java|android|react-native | 2 | 2016-05-12T12:34:51.237Z | 2,016 | 5 | 12 | 3 | 4,377 | 1 | 1,223 | 62 | 3 | 3 | true | false | true | false | false | false | low |
37,187,139 | What is the order of onCreateView() method call of a fragments while using view pager? | <p>I found a very weird behaviour of view pager. While using FragmentPagerAdapter, I observed getItem() was called in correct order i.e. position 0, position 1, position 2......
but the onCreateView() is called in opposite order, i.e. position 2, position 1, position 0. (assuming viewpager maintaining 3 offscreen page... | I found a very weird behaviour of view pager. While using FragmentPagerAdapter, I observed getItem() was called in correct order i.e. position 0, position 1, position 2...... but the onCreateView() is called in opposite order, i.e. position 2, position 1, position 0. (assuming viewpager maintaining 3 offscreen pages) W... | android|android-fragments|android-viewpager | 1 | 2016-05-12T12:38:50.177Z | 2,016 | 5 | 12 | 3 | 743 | 2 | 1,107 | 86 | 3 | 0 | false | false | false | false | false | false | low |
37,187,189 | multiple Onactivityresult method in Android | <p>I added <code>onClick()</code> button in fragment to display the result. I also added <code>onActivityResult()</code> method in <code>MyActivity</code>. I want to add <code>onClick()</code> button in more fragments and also show results. </p>
<p>In that case how I should write multiple <code>onActivityResult()</cod... | I added onClick() button in fragment to display the result. I also added onActivityResult() method in MyActivity . I want to add onClick() button in more fragments and also show results. In that case how I should write multiple onActivityResult() method in activity? Below is my code for OnActivityResultmethod : [CODE] | java|android | 0 | 2016-05-12T12:40:51.583Z | 2,016 | 5 | 12 | 3 | 3,818 | 3 | 319 | 43 | 2 | 1 | true | false | true | false | false | false | zero |
37,187,207 | How to zoom image and stop it for 2 sec in splash Screen | <p>I have problem with stop imageview for few sec in splash screen with zoom animation . I try to do a add xml zoom2 and tak scale from 1.0 to 1.0 with duration 2000 , but in splash.java i dont know how to add this in good way . </p>
<p>Please help me :) </p>
<p>zoom.xml</p>
<pre><code><?xml version="1.0" encodin... | I have problem with stop imageview for few sec in splash screen with zoom animation . I try to do a add xml zoom2 and tak scale from 1.0 to 1.0 with duration 2000 , but in splash.java i dont know how to add this in good way . Please help me :) zoom.xml [CODE] Splash.java [CODE] | java|android | 2 | 2016-05-12T12:41:22.700Z | 2,016 | 5 | 12 | 3 | 1,260 | 2 | 278 | 56 | 2 | 2 | true | false | false | false | false | false | low |
37,187,246 | Load Dropbox Photos With Picasso? | <p>I have a problem when wanna get my photos from dropbox and load it into GridView and i want use Picasso in adapter too.
method load() will take a downloadable URL ,</p>
<p>PS: i'm using Dropbox Android SDK 1.6.1</p>
<p>if i used method media() and fetch url from dropbox like that :</p>
<pre><code>// Get the metad... | I have a problem when wanna get my photos from dropbox and load it into GridView and i want use Picasso in adapter too. method load() will take a downloadable URL , PS: i'm using Dropbox Android SDK 1.6.1 if i used method media() and fetch url from dropbox like that : [CODE] it is not practicle at all cuz it would take... | android|dropbox-api|picasso | 0 | 2016-05-12T12:42:44.227Z | 2,016 | 5 | 12 | 3 | 691 | 1 | 911 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
37,187,305 | listiview with checkbox doesn't work with shared preferences to store and read checkbox chekked | <p>i have a problem:if i check a checkbox and after i click on another tab and after i cambeback to previous tab, the checkbox before checkked now is not checked...
Maybe i wrong to use shared preferences...ANY IDEA?</p>
<p>THANKS IN ADVANCE!
I HOPE IN YOU!</p>
<p>ADAPTER cLASS:</p>
<pre><code> public abstract cla... | i have a problem:if i check a checkbox and after i click on another tab and after i cambeback to previous tab, the checkbox before checkked now is not checked... Maybe i wrong to use shared preferences...ANY IDEA? THANKS IN ADVANCE! I HOPE IN YOU! ADAPTER cLASS: [CODE] FRAGMENT: [CODE] | android|listview|android-fragments|android-studio|checkbox | 0 | 2016-05-12T12:45:07.657Z | 2,016 | 5 | 12 | 3 | 85 | 0 | 286 | 95 | 5 | 2 | true | true | false | false | false | false | zero |
37,187,338 | Input path limit for Android ndk source file | <p>Is there a known limit on the path for the Android ndk input files? I've run into an issue where the input path is over 155 characters the android g++ command fails to find the file.</p>
<p>The local path back down to my base directory is quite deep, in a few cases I have a full path back to a source file in the j... | Is there a known limit on the path for the Android ndk input files? I've run into an issue where the input path is over 155 characters the android g++ command fails to find the file. The local path back down to my base directory is quite deep, in a few cases I have a full path back to a source file in the jni project m... | android|android-ndk | 1 | 2016-05-12T12:46:22.163Z | 2,016 | 5 | 12 | 3 | 388 | 1 | 932 | 44 | 2 | 2 | true | false | false | false | false | false | low |
37,187,359 | Navigation drawer not opening from cutom menu button | <p>I'm working on an Android App, I have a navigation drawer over there. Since the navigation drawer toolbar can't be transparent, and the ending three dots button icon can't be changed, I opted for hiding that toolbar, and show my custom layout. It will give me all the functionality what ever is needed.</p>
<p>But th... | I'm working on an Android App, I have a navigation drawer over there. Since the navigation drawer toolbar can't be transparent, and the ending three dots button icon can't be changed, I opted for hiding that toolbar, and show my custom layout. It will give me all the functionality what ever is needed. But the problem I... | android|navigation-drawer | 1 | 2016-05-12T12:47:17.933Z | 2,016 | 5 | 12 | 3 | 681 | 1 | 713 | 52 | 2 | 2 | true | false | false | false | false | false | low |
37,187,440 | AdMob ErrorCode 0 mostly | <p>I have a problem with my Android App which I'm trying to add ads for, the weird thing is that the ad loads perfectly on the first activity, but none of the others. I've followed the instructions on <a href="https://developers.google.com/admob/android/existing-app" rel="nofollow">https://developers.google.com/admob/a... | I have a problem with my Android App which I'm trying to add ads for, the weird thing is that the ad loads perfectly on the first activity, but none of the others. I've followed the instructions on https://developers.google.com/admob/android/existing-app , but to no avail it still only works with the first activity. I ... | android|admob | 1 | 2016-05-12T12:50:18.853Z | 2,016 | 5 | 12 | 3 | 3,792 | 4 | 1,282 | 24 | 2 | 4 | true | false | true | false | false | false | low |
37,187,528 | How to control ripple last color during long press | <p>Currently, I have a selector on a view. When I long press on the view, it will transits from normal color to pure red color.</p>
<h2>linear_layout_selector.xml</h2>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item andro... | Currently, I have a selector on a view. When I long press on the view, it will transits from normal color to pure red color. linear_layout_selector.xml [CODE] It looks as following, when I long press on it. The behavior during long press is [CODE] Now, I would like to have a ripple effect on it. So, what I'm doing is d... | android | 0 | 2016-05-12T12:53:35.403Z | 2,016 | 5 | 12 | 3 | 444 | 0 | 996 | 50 | 1 | 5 | true | true | false | false | false | false | zero |
37,187,579 | Error:Execution failed for task ':app:processStagingDebugResources' | <p>I'm currently working on custom view and have the next issue.
I've created custom attributes and in case if I don't use enum everything is okay.</p>
<pre><code><declare-styleable name="GCSettingsItem">
<attr name="gc_settings_item_type">
<enum name="none" value="0" />
<enum ... | I'm currently working on custom view and have the next issue. I've created custom attributes and in case if I don't use enum everything is okay. [CODE] But as soon as I add attribute with enum I get the next error: Error:Execution failed for task ':app:processStagingDebugResources'. com.android.ide.common.process.Proce... | android|android-custom-view|retrolambda | 0 | 2016-05-12T12:55:27.413Z | 2,016 | 5 | 12 | 3 | 260 | 1 | 625 | 67 | 3 | 1 | true | false | false | false | false | false | zero |
37,187,611 | How to implement onStop() method on a ListView? | <p>I have a ListView on my android app. When click a ListView item and go to a new activity and when i press back button i land on a empty ListView. I dont get any data. Even if i restart the app i dont get any data on the ListView. It works only the first time i run the app. Do i have to override the onStop method and... | I have a ListView on my android app. When click a ListView item and go to a new activity and when i press back button i land on a empty ListView. I dont get any data. Even if i restart the app i dont get any data on the ListView. It works only the first time i run the app. Do i have to override the onStop method and re... | android|listview | 0 | 2016-05-12T12:56:35.393Z | 2,016 | 5 | 12 | 3 | 255 | 0 | 432 | 47 | 2 | 2 | true | true | false | false | false | false | zero |
37,187,909 | Android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): | <p>I have Created an Android App while Running it in android platforms version 5.1 or newer it runs properly but in older versions I have This Exception :</p>
<p><strong>android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f02005a a=-1 r=0x7f02005a}
... | I have Created an Android App while Running it in android platforms version 5.1 or newer it runs properly but in older versions I have This Exception : android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f02005a a=-1 r=0x7f02005a} at android.content.res.Res... | android | 3 | 2016-05-12T13:08:05.693Z | 2,016 | 5 | 13 | 3 | 4,946 | 2 | 456 | 92 | 1 | 2 | true | false | true | false | false | false | low |
37,188,083 | Select Where with SQLite and android | <p>Hey i currently have two functions one that prints the entire database as a string and another that is supposed to only get the data when a criteria is met within the "TODO" column of the database, these are as follows.</p>
<pre><code> public String databaseToString() {
String dbString = "";
SQLiteDatab... | Hey i currently have two functions one that prints the entire database as a string and another that is supposed to only get the data when a criteria is met within the "TODO" column of the database, these are as follows. [CODE] This is the code for the working function that turns the entire database into a string to be ... | java|android|sqlite | 0 | 2016-05-12T13:15:09.257Z | 2,016 | 5 | 13 | 3 | 84 | 1 | 726 | 36 | 3 | 2 | true | false | false | false | false | false | zero |
37,188,121 | calling finish in SearchActivity not working | <p>I have a SearchActivity that I build in accordance to <a href="http://developer.android.com/guide/topics/search/search-dialog.html" rel="nofollow">http://developer.android.com/guide/topics/search/search-dialog.html</a>. After getting my data from a local content provider, I am using a basic CursorAdapter to display ... | I have a SearchActivity that I build in accordance to http://developer.android.com/guide/topics/search/search-dialog.html . After getting my data from a local content provider, I am using a basic CursorAdapter to display it in a ListView. So far everything works fine. Then in the listView.setOnItemClickListener(new Ada... | android|listview|android-cursoradapter|android-search|activity-finish | 0 | 2016-05-12T13:17:12.697Z | 2,016 | 5 | 13 | 3 | 530 | 3 | 700 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
37,188,215 | Android | Upload image with params | <p>I upload an image on my server with the following code, and it works. But I would to pass some params with the image, I've tried to pass "value" as "test", but doesn't work.</p>
<pre><code>public int uploadFile(File selectedFile){
int serverResponseCode = 0;
HttpURLConnection connection;
DataOutputStre... | I upload an image on my server with the following code, and it works. But I would to pass some params with the image, I've tried to pass "value" as "test", but doesn't work. [CODE] My php server is simple: [CODE] But the Log.d prints: Server Response is: OK: 200 -> value: How can I pass some parametres correcly? | php|android|upload | 1 | 2016-05-12T13:21:32.550Z | 2,016 | 5 | 13 | 3 | 215 | 2 | 313 | 34 | 3 | 2 | true | false | false | false | false | false | low |
37,188,270 | Update UI from fragment | <p>I have a fragment that gets data from a DialogFragment via intent with onActivityResult(...);</p>
<p>I am trying to update the fragment's UI but runOnUiThread does not work.</p>
<pre><code>@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode,... | I have a fragment that gets data from a DialogFragment via intent with onActivityResult(...); I am trying to update the fragment's UI but runOnUiThread does not work. [CODE] The area TextView does not update. I get the reference to the activity with onAttach() method. [CODE] | java|android|multithreading|android-fragments | 1 | 2016-05-12T13:23:33.500Z | 2,016 | 5 | 13 | 3 | 1,473 | 3 | 275 | 23 | 4 | 2 | true | false | false | false | false | false | low |
37,188,472 | NFC card emulation with closed reader application | <p>I have two apps on two Android devices, similar to CardEmulation and CardReader from the samples for NFC.</p>
<p>I want to send data from the host card emulation app running on one Android device to the reader application running on the second Android device. This works when both apps are open in foreground.</p>
<... | I have two apps on two Android devices, similar to CardEmulation and CardReader from the samples for NFC. I want to send data from the host card emulation app running on one Android device to the reader application running on the second Android device. This works when both apps are open in foreground. But if I close th... | android|android-intent|nfc|hce|nfc-p2p | 2 | 2016-05-12T13:31:11.383Z | 2,016 | 5 | 13 | 3 | 1,595 | 1 | 898 | 49 | 5 | 0 | false | false | false | false | false | false | low |
37,188,490 | C# Calculation in Xamarin, issue displaying answer. | <p>I am new to C# and Xamarin, I may be going about this solution incorrectly, however I am declaring values that will be obtained by user input 0-10 numbers no decimals no negative numbers. That will do a basic math operation a/b*c=answer... I then want to display the var C (answer) and use that eventually to change a... | I am new to C# and Xamarin, I may be going about this solution incorrectly, however I am declaring values that will be obtained by user input 0-10 numbers no decimals no negative numbers. That will do a basic math operation a/b*c=answer... I then want to display the var C (answer) and use that eventually to change a ti... | c#|android|xamarin|xamarin.android|xamarin-studio | 0 | 2016-05-12T13:31:49.833Z | 2,016 | 5 | 13 | 3 | 272 | 3 | 473 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
37,188,491 | Appgyver Steroids App working perfectly in iOS but not Android due to being unable to create a Sandbox DB | <p>I have a Steroids app that recently stopped working in Android. I'm getting an error that <code>cloud-resources.js</code> can't be found on both iOS and Android, but only Android seems to be trying to execute the 404 response HTML, which I think is breaking the rest of the JavaScript in the app. The error I get in t... | I have a Steroids app that recently stopped working in Android. I'm getting an error that cloud-resources.js can't be found on both iOS and Android, but only Android seems to be trying to execute the 404 response HTML, which I think is breaking the rest of the JavaScript in the app. The error I get in the browser inspe... | android|angularjs|node.js|steroids|appgyver | 0 | 2016-05-12T13:31:53.803Z | 2,016 | 5 | 13 | 3 | 85 | 1 | 776 | 105 | 5 | 1 | true | false | false | false | false | false | zero |
37,188,519 | This Handler class should be static or leaks might occur:AsyncQueryHandler | <p>Handler reference leaks Since this Handler is declared as an inner class, it may prevent the outer class from being garbage collected. If the Handler is using a Looper or MessageQueue for a thread other than the main thread, then there is no issue. If the Handler is using the Looper or MessageQueue of the main thre... | Handler reference leaks Since this Handler is declared as an inner class, it may prevent the outer class from being garbage collected. If the Handler is using a Looper or MessageQueue for a thread other than the main thread, then there is no issue. If the Handler is using the Looper or MessageQueue of the main thread, ... | android|warnings | 8 | 2016-05-12T13:32:52.810Z | 2,016 | 5 | 13 | 3 | 3,512 | 0 | 662 | 74 | 2 | 1 | true | true | true | false | false | false | medium |
37,188,525 | How can I make sure go through somewhere after thread be interrupted? | <p>I create a thread for animated change image on ui scheduled. It will be interrupt while button click, and set an fixed image.
But if setImage in runOnUiThread accidentally happen after setImage in onClick, it will be the wrong image.</p>
<p>Is there any way in this code can make sure go through somewhere after retu... | I create a thread for animated change image on ui scheduled. It will be interrupt while button click, and set an fixed image. But if setImage in runOnUiThread accidentally happen after setImage in onClick, it will be the wrong image. Is there any way in this code can make sure go through somewhere after return from Int... | android|multithreading|interrupted-exception|android-runonuithread | 0 | 2016-05-12T13:33:20.010Z | 2,016 | 5 | 13 | 3 | 78 | 1 | 704 | 69 | 4 | 5 | true | false | false | false | false | false | zero |
37,188,559 | ListView loads images one upon another in a view | <p>This simple app gets a tag from the user and display in a ListView first 10 Flicker images that match the tag. I used <a href="http://javatechig.com/android/loading-image-asynchronously-in-android-listview" rel="nofollow">this</a> simple tutorial, i just modified it so it can work with flicker search, instead of har... | This simple app gets a tag from the user and display in a ListView first 10 Flicker images that match the tag. I used this simple tutorial, i just modified it so it can work with flicker search, instead of hard coded links. It works but somehow it loads images one upon another in some views. So user sees that in a view... | android|image|listview|android-asynctask | 0 | 2016-05-12T13:34:41.647Z | 2,016 | 5 | 13 | 3 | 47 | 1 | 623 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
37,188,568 | cyclic inference in Retrofit RxJava nested observables | <p>New in rxJava I'm struggling in order to get an Observable by nesting retrofit Observables.
On the code block <code>.map(userResponse -> {
data.put
final Intent resd = new Intent();
resd.putExtr... | New in rxJava I'm struggling in order to get an Observable by nesting retrofit Observables. On the code block .map(userResponse -> { data.put final Intent resd = new Intent(); resd.putExtras(data); return (Intent)resd; }); I get a cyclic inference error. When I try to compile I get a weird message I don't quite underst... | rx-java|retrofit2|rx-android | 0 | 2016-05-12T13:34:50.380Z | 2,016 | 5 | 13 | 3 | 474 | 1 | 657 | 54 | 3 | 1 | true | false | false | false | false | false | zero |
37,188,599 | Start handler thread at zero seconds | <p>I have a method that needs to be executed every minute, but I need to start this thread at exactly 00 seconds of a minute (on the watch), as it updates the screen based on time.</p>
<p><strong>My handler code is here:</strong></p>
<pre><code>//update bottom card every minute
private final static int INTERVAL = 100... | I have a method that needs to be executed every minute, but I need to start this thread at exactly 00 seconds of a minute (on the watch), as it updates the screen based on time. My handler code is here: [CODE] In the main activity I have a call like this: [CODE] However, this call happens at random point in time, for e... | android|multithreading|android-handler | 0 | 2016-05-12T13:36:22.220Z | 2,016 | 5 | 13 | 3 | 212 | 1 | 460 | 36 | 3 | 2 | true | false | false | false | false | false | zero |
37,188,929 | Sharedpreferences are not saving (anymore) | <p>I've been working with SharedPreferences in my application for a long time but lately it doesn't seem to save anymore. I'm not sure if it's the case for all preferences, but I know at least it is for rememberLogin and tutorialMode.
Below are some pieces of code where I use these preferences.</p>
<p>rememberLogin (s... | I've been working with SharedPreferences in my application for a long time but lately it doesn't seem to save anymore. I'm not sure if it's the case for all preferences, but I know at least it is for rememberLogin and tutorialMode. Below are some pieces of code where I use these preferences. rememberLogin (set): [CODE]... | java|android|sharedpreferences | 0 | 2016-05-12T13:48:58.800Z | 2,016 | 5 | 13 | 3 | 63 | 1 | 548 | 42 | 3 | 5 | true | false | false | false | false | false | zero |
37,189,038 | Buffer Error: && JSON Parser Error: | <p>So im getting 2 errors on my android app when i run it. first-/Buffer Error: Error converting result java.lang.NullPointerException: lock == null
second-/JSON Parser: Error parsing data org.json.JSONException: End of input at character 0 of ...Seems ive read countless questions pertaining to the same problem but no... | So im getting 2 errors on my android app when i run it. first-/Buffer Error: Error converting result java.lang.NullPointerException: lock == null second-/JSON Parser: Error parsing data org.json.JSONException: End of input at character 0 of ...Seems ive read countless questions pertaining to the same problem but none t... | php|android|json|parsing|buffer | 0 | 2016-05-12T13:53:08.377Z | 2,016 | 5 | 13 | 3 | 48 | 0 | 706 | 35 | 5 | 5 | true | true | false | false | false | false | zero |
37,189,073 | Move main activity logout button event to a another tab fragment | <p>I want to move the following welcome label and logout button to the tab_profile fragment, right now it's visible in all 4 tabs which i created after successful login </p>
<h2>activity_main.xml</h2>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.... | I want to move the following welcome label and logout button to the tab_profile fragment, right now it's visible in all 4 tabs which i created after successful login activity_main.xml [CODE] MainAtivity.java [CODE] tab_profile.xml [CODE] ProfileActivity.java [CODE] PagerAdapter.java [CODE] | java|android|android-fragments|tabs | 0 | 2016-05-12T13:55:10.970Z | 2,016 | 5 | 13 | 3 | 603 | 1 | 290 | 64 | 4 | 5 | true | false | false | false | false | false | zero |
37,189,081 | react-native: command not found | <p>I am getting <code>-bash: react-native: command not found error</code> while creating a react-native project.</p>
<p>Below are the additional info</p>
<pre><code>1. brew --version
homebrew 0.9.9
2 brew info watchman
watchman `enter code here`stable 4.50
/usr/local/Cellar/watchman/4.4.0
3. brew info flow
... | I am getting -bash: react-native: command not found error while creating a react-native project. Below are the additional info [CODE] I tried the suggested steps from this link but I am still getting the same error. I don't have any "npm" directory which they have specified in the solution [CODE] But I found ... | android|ios|react-native | 196 | 2016-05-12T13:55:24.450Z | 2,016 | 5 | 13 | 3 | 338,602 | 22 | 453 | 31 | 3 | 3 | true | false | true | true | true | false | high |
37,189,116 | Activity started but doesn't show up | <p>Ok</p>
<p>I have manifest</p>
<pre><code><application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ui.authorization.AuthAct... | Ok I have manifest [CODE] ... Next start WaitOrderActivity [CODE] Next from callback but in WaitOrderActivity I start OrderDetailsActivity After all I call again startActivity(WaitOrderActivity) or OrderDetailsActivity.this.finish, anyway I will be in WaitOrderActivity again. Trouble: in second time I see by logs what ... | java|android|android-lifecycle|activity-lifecycle | 0 | 2016-05-12T13:56:25.173Z | 2,016 | 5 | 13 | 3 | 221 | 0 | 423 | 36 | 4 | 2 | true | true | false | false | false | false | zero |
37,189,161 | alarm and notification not triggered at specified time | <p>I am trying to trigger a notification and an alarm at a specified time. I have put log information to console to see if the correct time is being set and it is fine. However, still the alarm is not being triggered. Please help.</p>
<p>/<strong><em>Code for Creating Notification and Alarm</em></strong>/</p>
<pre><c... | I am trying to trigger a notification and an alarm at a specified time. I have put log information to console to see if the correct time is being set and it is fine. However, still the alarm is not being triggered. Please help. / Code for Creating Notification and Alarm / [CODE] / Notification Message Class / [CODE] Pl... | android|triggers|notifications|alarmmanager | 0 | 2016-05-12T13:57:47.727Z | 2,016 | 5 | 13 | 3 | 784 | 2 | 352 | 54 | 4 | 2 | true | false | false | false | false | false | zero |
37,189,403 | ViewPager not displaying fragments | <p>I'm making an app and the Main Activity has a tablayout connected to a viewpager. This viewpager has three fragments.</p>
<p>I know that the viewpager adapter manages 3 fragments (the correct amount) because I used Logging statements. Also, I use asyncTasks to load data into the fragments and it is done correctly. ... | I'm making an app and the Main Activity has a tablayout connected to a viewpager. This viewpager has three fragments. I know that the viewpager adapter manages 3 fragments (the correct amount) because I used Logging statements. Also, I use asyncTasks to load data into the fragments and it is done correctly. When the da... | android|android-fragments|android-viewpager|android-tablayout | 0 | 2016-05-12T14:07:12.523Z | 2,016 | 5 | 14 | 3 | 390 | 1 | 929 | 34 | 4 | 5 | true | false | false | false | false | false | zero |
37,189,469 | ionic tabs annoying activated color | <p>I am creating an Ionic project and am trying to get the tabs styling right for android. I've tried quite a few CSS rules, but every time I change one it has bad consequences for other CSS rules. </p>
<p><strong>I am trying to create the following:</strong> </p>
<p><a href="https://i.stack.imgur.com/5t6OH.png" rel=... | I am creating an Ionic project and am trying to get the tabs styling right for android. I've tried quite a few CSS rules, but every time I change one it has bad consequences for other CSS rules. I am trying to create the following: But when I click on an other tab (hold it down - ionic adds 'activated' class) the tab t... | android|html|css|ionic-framework|sass | 0 | 2016-05-12T14:09:39.020Z | 2,016 | 5 | 14 | 3 | 194 | 1 | 908 | 35 | 5 | 1 | true | false | false | false | false | false | zero |
37,189,482 | Android: how to clear completely FragmentManager | <p>In my Activity A, I add some fragments (standard case). I've checked, on my Android phone settings, "Don't keep Activities" to simulate worst application behavior. </p>
<p>So, when this Activity A restart, I do that in onCreate() method, to clean all my previous fragments added :</p>
<pre><code>FragmentManager fm ... | In my Activity A, I add some fragments (standard case). I've checked, on my Android phone settings, "Don't keep Activities" to simulate worst application behavior. So, when this Activity A restart, I do that in onCreate() method, to clean all my previous fragments added : [CODE] But unfortunately I can see in the logs,... | android|android-fragments|fragmentmanager | 0 | 2016-05-12T14:10:12.560Z | 2,016 | 5 | 14 | 3 | 665 | 1 | 432 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
37,189,592 | Daily Notification comes random with Alarmanager | <p>Currently I try to setup a Daily Notification in my app everything work, but the daily notifications doesn't work it comes randomly.</p>
<p>MainActivity how i set the Alarmanager:</p>
<pre><code>Intent i = new Intent(this, NotificationDbReceiver.class);
Intent start = new Intent(this, StartService.class);
... | Currently I try to setup a Daily Notification in my app everything work, but the daily notifications doesn't work it comes randomly. MainActivity how i set the Alarmanager: [CODE] Thats my BroadcastReceiver: [CODE] And this is my Service: [CODE] I hope someone can help me. I have already read some Questions here on sta... | android|notifications | 0 | 2016-05-12T14:14:41.520Z | 2,016 | 5 | 14 | 3 | 105 | 1 | 375 | 48 | 2 | 3 | true | false | false | false | false | false | zero |
37,189,737 | Extending android surface view for camera to support all devices | <p>I have created a <code>CameraSurfaceView</code> class which provides logic for implementing the camera preview. Everything works fine on the devices I have tried. Nexus 5, Nexus 5X, Nexus 6P and even a Samsung Galaxy S5.</p>
<p>But for some reason on the Samsung Galaxy S6 Edge, I get a Runtime exception of </p>
<b... | I have created a CameraSurfaceView class which provides logic for implementing the camera preview. Everything works fine on the devices I have tried. Nexus 5, Nexus 5X, Nexus 6P and even a Samsung Galaxy S5. But for some reason on the Samsung Galaxy S6 Edge, I get a Runtime exception of android.hardware.Camera.native_s... | android|android-layout|android-camera|surfaceview|surfaceholder | 0 | 2016-05-12T14:20:06.430Z | 2,016 | 5 | 14 | 3 | 806 | 1 | 687 | 64 | 5 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.