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,659,039 | Can not parse xml data to listview on xamarin android | <p>In menu/ Genre.xml:</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><?xml version="1.0" encoding="UTF-8" ?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:c... | In menu/ Genre.xml: [CODE] In layout/GenreFragment.axml [CODE] In viewModel/ GenreFragmentVM: [CODE] Error: (19,19): Error CS1502: The best overloaded method match for `Android.Widget.ArrayAdapter.ArrayAdapter(Android.Content.Context, int, int)' has some invalid arguments (CS1502) (SoundCloud) (45,45): Error CS1503: Ar... | android|xamarin|xamarin.android | 4 | 2016-04-16T00:58:32.500Z | 2,016 | 4 | 0 | 5 | 301 | 2 | 471 | 53 | 3 | 5 | true | false | false | false | false | false | low |
36,659,099 | Show native keyboard while using external keyboard or barcodescanner | <p>I'm developping an android app which uses a USB OTG barcodescanner.
We made a custom keyboard in a fragment and custom a EditText which communicates with our own keyboard fragment to write.</p>
<p>Everything works well, until I used a webview to display a web page, because we can't connect our custom keyboard to th... | I'm developping an android app which uses a USB OTG barcodescanner. We made a custom keyboard in a fragment and custom a EditText which communicates with our own keyboard fragment to write. Everything works well, until I used a webview to display a web page, because we can't connect our custom keyboard to the webview, ... | android|keyboard|barcode-scanner|usb-otg|android-inputtype | 2 | 2016-04-16T01:11:39.577Z | 2,016 | 4 | 1 | 5 | 222 | 0 | 770 | 68 | 5 | 1 | true | true | false | false | false | false | low |
36,659,260 | Android Galaxy S4 v html radio buttons | <p>The following html form works fine on Chrome, FF, even IE and IOS, and an old Android jellyBean tablet; on Galaxy S4 phones, however, the radio buttons will not check or work. A small orange square highlights around the button to show it has been tapped, but the button is not checked and the value is not passed.</p... | The following html form works fine on Chrome, FF, even IE and IOS, and an old Android jellyBean tablet; on Galaxy S4 phones, however, the radio buttons will not check or work. A small orange square highlights around the button to show it has been tapped, but the button is not checked and the value is not passed. [CODE]... | android|html|radio-button|galaxy | 2 | 2016-04-16T01:42:50.153Z | 2,016 | 4 | 1 | 5 | 126 | 0 | 2,137 | 38 | 4 | 1 | true | true | false | false | false | false | low |
36,659,290 | Http GET method to Https? | <p>Sorry for my noob question but I have this code to get JSON information about my database from my web service:</p>
<pre><code>public static JSONObject readJsonFromUrl(String url) throws IOException, JSONException {
InputStream is = new URL(url).openStream();
try {
BufferedReader rd = new BufferedRe... | Sorry for my noob question but I have this code to get JSON information about my database from my web service: [CODE] I've just bought a SSL certificate, and i have to pass my GET method code from HTTP to HTTPS, how can i do it? This is my TLSSocketFactory to enable TLS 1.1 and 1.2: [CODE] With my POST method I created... | json|web-services|ssl|android-studio|https | 2 | 2016-04-16T01:48:29.943Z | 2,016 | 4 | 1 | 5 | 117 | 1 | 492 | 25 | 5 | 3 | true | false | false | false | false | false | low |
36,659,340 | Android BLE onCharacteristicRead and onCharacteristicChanged never called | <p>I am trying to connect to a Bluetooth LE thermometer. Connecting to the device is working good. The only part hanging me up is the gattCallBack and it's onCharacteristicChanged / Read. the 'setNotification' and descriptor 'setValue' and 'writeDescriptor' all return true. The onCharacteristicChanged is never call... | I am trying to connect to a Bluetooth LE thermometer. Connecting to the device is working good. The only part hanging me up is the gattCallBack and it's onCharacteristicChanged / Read. the 'setNotification' and descriptor 'setValue' and 'writeDescriptor' all return true. The onCharacteristicChanged is never called to r... | android|bluetooth | 8 | 2016-04-16T01:57:33.677Z | 2,016 | 4 | 1 | 5 | 3,030 | 2 | 1,332 | 73 | 2 | 2 | true | false | true | false | false | false | medium |
36,659,376 | Trouble in linking my arrayadapter to send to my activity_juice_menu.xml | <p>I'm having trouble populating my ArrayAdapter so it can be viewed on my activity_juice_menu.xml after the juice menu is clicked on the activity_main.xml screen </p>
<p>this is the output i get on the android monitor</p>
<pre><code>04-15 18:08:02.930 2839-2839/com.example.vitoriano_vaz.easybayvapes E/AndroidRuntime... | I'm having trouble populating my ArrayAdapter so it can be viewed on my activity_juice_menu.xml after the juice menu is clicked on the activity_main.xml screen this is the output i get on the android monitor [CODE] JuiceMenu.java this is the class i use to declare my arrayadapter [CODE] MainActivity.java main activity ... | java|android|xml|android-studio | 2 | 2016-04-16T02:03:45.597Z | 2,016 | 4 | 2 | 5 | 37 | 0 | 499 | 72 | 4 | 5 | true | true | false | false | false | false | low |
36,659,411 | trying to access MySQL from java, but its not working | <p>I wrote this class to help get data from an MySQL data base for my android project but every-time I run the app it crashes, could somebody tell me what is wrong with my code. i am new to this so any help would be greatly appreciated. </p>
<p>here is what the error message said. </p>
<blockquote>
<p>04-15 18:46:5... | I wrote this class to help get data from an MySQL data base for my android project but every-time I run the app it crashes, could somebody tell me what is wrong with my code. i am new to this so any help would be greatly appreciated. here is what the error message said. 04-15 18:46:58.058 15837-15837/com.example.tomb3.... | java|android|mysql | 2 | 2016-04-16T02:09:19.527Z | 2,016 | 4 | 2 | 5 | 947 | 2 | 3,169 | 53 | 3 | 1 | true | false | false | false | false | false | low |
36,659,451 | Custom Typeface not working on Android 5.0 but works elsewhere | <p>I am using custom fonts in my app, the thing is, it works on android version less than Lollipop and greater than lolliop but on Lollipop it just goes blank</p>
<p>Please find the code and screenshots attached</p>
<p><strong>SelectionPage.java</strong></p>
<pre><code>package com.execube.volantis.views;
import and... | I am using custom fonts in my app, the thing is, it works on android version less than Lollipop and greater than lolliop but on Lollipop it just goes blank Please find the code and screenshots attached SelectionPage.java [CODE] The buttons use custom fonts. Is there any way to set custom fonts only if android version i... | java|android|xml|android-5.0-lollipop|android-custom-view | 3 | 2016-04-16T02:16:59.447Z | 2,016 | 4 | 2 | 5 | 621 | 1 | 393 | 62 | 5 | 1 | true | false | false | false | false | false | low |
36,659,508 | Error: Error inflating class fragment | <p>I'm very new to <code>Fragments</code>, but I've searched this error for a long time and have no idea what could be going wrong. Tried many fixed I found online, none worked.</p>
<p>The start of the callstack of the error is below, but my understanding of the issue is when my FollowerListActivity links itself to it... | I'm very new to Fragments , but I've searched this error for a long time and have no idea what could be going wrong. Tried many fixed I found online, none worked. The start of the callstack of the error is below, but my understanding of the issue is when my FollowerListActivity links itself to its XML file. In the XML ... | java|android|xml|android-fragments|android-studio | 2 | 2016-04-16T02:28:05.350Z | 2,016 | 4 | 2 | 5 | 85 | 1 | 800 | 37 | 5 | 5 | true | false | false | false | false | false | low |
36,659,550 | android - Selected image in spinner, when selected, text box appears | <p>Below is my code for two working image spinners, using full_battery as the example, what im after is that is there a way that if a certain image is selected, can i get a text box is appear</p>
<p>Any tips or links are appreciated</p>
<pre><code>public class MainActivity extends AppCompatActivity implements Adapter... | Below is my code for two working image spinners, using full_battery as the example, what im after is that is there a way that if a certain image is selected, can i get a text box is appear Any tips or links are appreciated [CODE] Update : Alternatively is it possible/ easily to say that when a certain label is selected... | android|arrays|image|textbox|spinner | 2 | 2016-04-16T02:39:59.953Z | 2,016 | 4 | 2 | 5 | 74 | 0 | 738 | 68 | 5 | 2 | true | true | false | false | false | false | low |
36,659,605 | sessionStorage cleaned up unexpectedly on Android | <p>I have a website which saves a stringified JavaScript object into the sessionStorage. It works well on desktop browsers - data survives over page reloads as per described on MDN.</p>
<p>On Android phones, it is not uncommon that a tab is reloaded when user switches back from another tab or when the browser is broug... | I have a website which saves a stringified JavaScript object into the sessionStorage. It works well on desktop browsers - data survives over page reloads as per described on MDN. On Android phones, it is not uncommon that a tab is reloaded when user switches back from another tab or when the browser is brought back fro... | javascript|android|mobile|web|session-storage | 7 | 2016-04-16T02:50:39.640Z | 2,016 | 4 | 2 | 5 | 2,523 | 2 | 1,040 | 49 | 5 | 0 | false | false | false | false | false | false | medium |
36,659,624 | how to direct login activity to different user profile | <p>I'm doing an android application and after login in i have two different types of users profiles in my case a simple client and and a pharmacist with advanced configurations ,I have been looking in the internet about how to direct my login activity according to the user account registered in my database but it didn'... | I'm doing an android application and after login in i have two different types of users profiles in my case a simple client and and a pharmacist with advanced configurations ,I have been looking in the internet about how to direct my login activity according to the user account registered in my database but it didn't h... | java|android|authentication | 3 | 2016-04-16T02:54:40.770Z | 2,016 | 4 | 2 | 5 | 1,580 | 1 | 415 | 54 | 3 | 2 | true | false | false | false | false | false | low |
36,659,654 | How to Append data to an Array in Firebase? | <p>I have a array called <code>subscribedTo</code> in my users node. Now I want to append some <code>push ID's</code> to that array whenever a user is subscribed. </p>
<p>But the <code>push ID</code> are being replaced instead of getting appended.</p>
<p>How can i append the push ID's to the array?</p>
<p><strong>Sc... | I have a array called subscribedTo in my users node. Now I want to append some push ID's to that array whenever a user is subscribed. But the push ID are being replaced instead of getting appended. How can i append the push ID's to the array? Schema [CODE] CODE [CODE] | android|arrays|firebase|firebase-realtime-database | 11 | 2016-04-16T03:01:39.580Z | 2,016 | 4 | 3 | 5 | 12,465 | 1 | 268 | 43 | 4 | 2 | true | false | true | true | true | false | medium |
36,659,685 | HttpUrlConnection Out of memory on byte allocation. Help understanding Buffered | <p>I have this code I use to try to upload files more than 10mb by trying to use only 1kb on OutputStream to avoid java.lang.OutOfMemoryError. But I get java.lang.OutOfMemoryError in the <code>while</code> after some bytes transfer. I would like to know why I get java.lang.OutOfMemoryError and how to not using lot of m... | I have this code I use to try to upload files more than 10mb by trying to use only 1kb on OutputStream to avoid java.lang.OutOfMemoryError. But I get java.lang.OutOfMemoryError in the while after some bytes transfer. I would like to know why I get java.lang.OutOfMemoryError and how to not using lot of memory. [CODE] My... | android | 1 | 2016-04-16T03:07:02.040Z | 2,016 | 4 | 3 | 5 | 557 | 0 | 332 | 79 | 1 | 2 | true | true | false | false | false | false | low |
36,659,715 | Intermittent NullPointerException from AppCompatDelegateImplV7.createSubDecor() | <p>I have been seeing the crash below (via Crashlytics), but have not been able to identify the cause or reproduce the crash. It occurs on a wide variety of devices and Android versions. The app uses appcompat-v7:23.2.1. Is anyone else seeing it? </p>
<p>As you can see, the crash occurs within the <code>onCreate()</co... | I have been seeing the crash below (via Crashlytics), but have not been able to identify the cause or reproduce the crash. It occurs on a wide variety of devices and Android versions. The app uses appcompat-v7:23.2.1. Is anyone else seeing it? As you can see, the crash occurs within the onCreate() method of HomeActivit... | android|android-appcompat | 8 | 2016-04-16T03:12:57.687Z | 2,016 | 4 | 3 | 5 | 626 | 1 | 921 | 79 | 2 | 1 | true | false | false | false | false | false | medium |
36,659,753 | Google login uses same account everytime users login | <p>I use OAuth to let users sign in to the android app via Google account. When the user taps the Google login button for the first time, it produces a dialog to choose the account. Again, when the user logs out and decides to login with different Google account, it doesn't prompt to choose the account, it logs in the ... | I use OAuth to let users sign in to the android app via Google account. When the user taps the Google login button for the first time, it produces a dialog to choose the account. Again, when the user logs out and decides to login with different Google account, it doesn't prompt to choose the account, it logs in the acc... | android|oauth-2.0|google-signin | 19 | 2016-04-16T03:21:33.960Z | 2,016 | 4 | 3 | 5 | 16,372 | 15 | 374 | 52 | 3 | 1 | true | false | true | true | true | false | medium |
36,659,817 | Android: Images in recycler view item shuffle a lot on scrolling fast | <p>I have a recycler view in my app. Each recycler view item has an imageView. I use an asyncTask to load the bitmaps and add them to the disk cache before setting them into the imageview in onPostExecute.</p>
<p>The problem is that if I scroll through the list fast I can see the images shuffling a lot before the corr... | I have a recycler view in my app. Each recycler view item has an imageView. I use an asyncTask to load the bitmaps and add them to the disk cache before setting them into the imageview in onPostExecute. The problem is that if I scroll through the list fast I can see the images shuffling a lot before the correct image i... | android|android-recyclerview | 2 | 2016-04-16T03:33:59.067Z | 2,016 | 4 | 3 | 5 | 997 | 3 | 780 | 69 | 2 | 1 | true | false | false | false | false | false | low |
36,659,841 | Load an ini file in Project/app in Android? | <p>I have a file in Project/app/apiconfig.ini
<a href="http://i.stack.imgur.com/iUsg3.png" rel="nofollow">like in this image</a>
inside file:</p>
<pre><code>api_key = API_KEY
</code></pre>
<p>I create class to read the ini file and get the values:</p>
<pre><code>package br.com.adley.myseriesproject.library;
import ... | I have a file in Project/app/apiconfig.ini like in this image inside file: [CODE] I create class to read the ini file and get the values: [CODE] My question is, how can I get the path to this ini file? Have another way to save an api_key outside code? Cause i'm using GitHub and don't want to share my private key. | java|android|ini | 0 | 2016-04-16T03:38:53.027Z | 2,016 | 4 | 3 | 5 | 2,907 | 1 | 314 | 43 | 3 | 2 | true | false | true | false | false | false | zero |
36,659,893 | when i dynamically Add Views into View,this kind of phenomenon appeared | <p><a href="http://i.stack.imgur.com/ZJbjL.jpg" rel="nofollow">enter image description here</a>
When i add view to a LinearLayout dynamically, it appeared ..</p>
<pre><code>Here is the picture , In the views at the bottom of the display is not complete ...
</code></pre>
<p><a href="http://i.stack.imgur.com/hzJT7.... | enter image description here When i add view to a LinearLayout dynamically, it appeared .. [CODE] enter image description here In hear as the picture show . The NoticeTextViewGroup extends LinearLayout,setNoticeGroup is the addview method... [CODE] And the NoticeTextView also extends LinearLayout, [CODE] | android|dynamic|view|android-layout-weight | 0 | 2016-04-16T03:50:16.490Z | 2,016 | 4 | 3 | 5 | 42 | 0 | 305 | 71 | 4 | 3 | true | true | false | false | false | false | zero |
36,659,913 | Errors in launching Emulator in Android Studio | <p>I am getting the following error while launching the <strong>Android virtual device manager:</strong></p>
<pre><code>> C:\Users\yates\AppData\Local\Android\sdk\tools\emulator.exe -netdelay
> none -netspeed full -avd Nexus_5_API_23_x86 <br/> init: Could not find
> wglGetExtensionsStringARB! <br/>... | I am getting the following error while launching the Android virtual device manager: [CODE] Please do not tell me to un-check 'GPU HOST': Already done that. It says it's about the screen resolution. And it keeps giving me the same error even when I change screen resolution. install the HAXM: I have already done that. t... | android|android-studio | 5 | 2016-04-16T03:53:42.600Z | 2,016 | 4 | 3 | 5 | 5,926 | 2 | 1,463 | 46 | 2 | 1 | true | false | true | false | false | false | low |
36,659,997 | Android Parse Local Datastore Returns Empty | <p>I have been working on an application where you input childs names and ages, and specific data is shown according to there input. I store the child info inside a local datastore. </p>
<p>Take a look at this simple class made for simple storage: `public class </p>
<p><div class="snippet" data-lang="js" data-hide="f... | I have been working on an application where you input childs names and ages, and specific data is shown according to there input. I store the child info inside a local datastore. Take a look at this simple class made for simple storage: `public class [CODE] Inside my main fragment I have a list of ChildInfo Classes nam... | java|android|parse-platform | 1 | 2016-04-16T04:07:23.937Z | 2,016 | 4 | 4 | 5 | 84 | 1 | 675 | 43 | 3 | 2 | true | false | false | false | false | false | low |
36,660,078 | Failed to bounce to type, Chat example error when adding another value, | <p>I develop Chat app using Firebase. The app is running fine, but after I just add <code>datetime</code> value then I am facing this error:</p>
<pre><code>04-16 09:23:11.156 5790-5790/learning.firebase.app.learningfirebase E/AndroidRuntime: FATAL EXCEPTION: main
com.firebase.client.FirebaseException: Failed to bo... | I develop Chat app using Firebase. The app is running fine, but after I just add datetime value then I am facing this error: [CODE] My Code is look like as below Chat.java [CODE] and Send Message code is [CODE] JSON RULES [CODE] | java|android|firebase|firebase-realtime-database | 0 | 2016-04-16T04:22:29.317Z | 2,016 | 4 | 4 | 5 | 54 | 0 | 228 | 71 | 4 | 4 | true | true | false | false | false | false | zero |
36,660,097 | Spinner OnItemSelectedListener not working on CustomListAdapter | <p>I have spinner in different activity to select what quarter to show. To try if its working I only make toast for testing but its not showing.</p>
<p>I'm applying it my CustomListAdapter.</p>
<p><strong>FeedListAdapter Code</strong></p>
<pre><code>@Override
public View getView(final int position, View convertV... | I have spinner in different activity to select what quarter to show. To try if its working I only make toast for testing but its not showing. I'm applying it my CustomListAdapter. FeedListAdapter Code [CODE] As I mention above the Toast its not showing. Whats the problem with my coding? Any help or suggestion is apprea... | android|listview|spinner | 2 | 2016-04-16T04:26:02.690Z | 2,016 | 4 | 4 | 5 | 99 | 1 | 552 | 63 | 3 | 1 | true | false | false | false | false | false | low |
36,660,123 | App Crashes when entering invalid or null location using geocoder | <p>I have been working on google maps and want the user can access location using geocoding, although it is working but the problem arises when the user enters invalid location or null location in edit text, my app gets crashed.
This is my code: (on search button click)</p>
<pre><code> public void onSearch(View view) ... | I have been working on google maps and want the user can access location using geocoding, although it is working but the problem arises when the user enters invalid location or null location in edit text, my app gets crashed. This is my code: (on search button click) [CODE] Your kind support will be appreciated. | android|google-maps-android-api-2|google-geocoder | 1 | 2016-04-16T04:30:52.277Z | 2,016 | 4 | 4 | 5 | 878 | 2 | 313 | 65 | 3 | 1 | true | false | false | false | false | false | low |
36,660,253 | Animating view after a specific period of time in Android | <p>I am working on an Android app that has tabs in a viewpager, due to the fact that the viewpager and toolbar take up a good amount of space my app does not look nice on small phones so I was thinking of automatically animating my toolbar off the screen to save screen space, after <code>3s</code> from the time the use... | I am working on an Android app that has tabs in a viewpager, due to the fact that the viewpager and toolbar take up a good amount of space my app does not look nice on small phones so I was thinking of automatically animating my toolbar off the screen to save screen space, after 3s from the time the user opened the app... | android|animation | 0 | 2016-04-16T04:51:46.133Z | 2,016 | 4 | 4 | 5 | 63 | 1 | 1,092 | 57 | 2 | 2 | true | false | false | false | false | false | zero |
36,660,269 | How Can I Track a person using its location in Android | <p>I am working on a project...I need to track a person using its Geo-location(latitude,longitude)..
<strong>Scenario:</strong>
- Person A's Location is updating on server in MYSQL DB when location become change.
- Person B need to see person A on Google-map through his/her own device (Android phone)</p>
<p><stron... | I am working on a project...I need to track a person using its Geo-location(latitude,longitude).. Scenario: - Person A's Location is updating on server in MYSQL DB when location become change. - Person B need to see person A on Google-map through his/her own device (Android phone) Problem When I establish connection to... | android|mysql|google-maps|geolocation | -1 | 2016-04-16T04:54:36.580Z | 2,016 | 4 | 4 | 5 | 142 | 1 | 648 | 54 | 4 | 1 | true | false | false | false | false | true | negative |
36,660,296 | Xamarin Android Bootstrap | <p>I have created a binding library following the steps <a href="https://developer.xamarin.com/guides/android/advanced_topics/binding-a-java-library/binding-an-aar/" rel="noreferrer">here</a> for the Java library <a href="https://github.com/Bearded-Hen/Android-Bootstrap" rel="noreferrer">Android-Bootstrap</a>
The bind... | I have created a binding library following the steps here for the Java library Android-Bootstrap The binding project is in GitHub . After importing the library to the Xamarin Android solution I created the following simple xaml [CODE] However the Design layout is still not applied even after recompiling (see below) Any... | java|c#|twitter-bootstrap|xamarin.android | 9 | 2016-04-16T04:59:19.190Z | 2,016 | 4 | 4 | 5 | 2,214 | 1 | 372 | 25 | 4 | 1 | true | false | false | false | false | false | medium |
36,660,346 | How to do ajax request and get response from Android Webview? | <p>I am new in Android Hybrid App. I want post token in ajax request and Get ajax response.</p>
<p><em>My Webview is here</em></p>
<p><a href="https://i.stack.imgur.com/RQNPh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RQNPh.png" alt="enter image description here"></a></p>
<p>In This webview 3... | I am new in Android Hybrid App. I want post token in ajax request and Get ajax response. My Webview is here In This webview 3 field post by ajax from php side but I want when click on SUBMIT button with this 3 field i want to post token from my side. So how can i post token with this post request and also how can get R... | javascript|android|ajax|android-webview|hybrid-mobile-app | 2 | 2016-04-16T05:08:19.913Z | 2,016 | 4 | 5 | 5 | 1,188 | 1 | 547 | 61 | 5 | 1 | true | false | false | false | false | false | low |
36,660,397 | Validation on child (edittext) of expandible listview on click of a button | <p>I have one fragment and three layouts as i need to use expandable list view. The first layout has an expandable list view and a submit button, second layout is of parent that has a text view and third layout is for child which has edit text in it. Now i want to set validation on edit texts on click of submit button... | I have one fragment and three layouts as i need to use expandable list view. The first layout has an expandable list view and a submit button, second layout is of parent that has a text view and third layout is for child which has edit text in it. Now i want to set validation on edit texts on click of submit button. Ho... | android | 0 | 2016-04-16T05:16:32.730Z | 2,016 | 4 | 5 | 5 | 125 | 0 | 515 | 74 | 1 | 5 | true | true | false | false | false | false | zero |
36,660,398 | TabLayout Control Scroll Position | <p>So I have a TabLayout setup with a ViewPager, as such below. Right now when I scroll horizontally from tab to tab or select a tab by tapping the title it will center the selected tab, however I want to shift the scroll position all the way to the right or left depending on the selected tab. I'm trying to achieve wha... | So I have a TabLayout setup with a ViewPager, as such below. Right now when I scroll horizontally from tab to tab or select a tab by tapping the title it will center the selected tab, however I want to shift the scroll position all the way to the right or left depending on the selected tab. I'm trying to achieve what w... | java|android|android-viewpager|android-tablayout | 2 | 2016-04-16T05:16:34.297Z | 2,016 | 4 | 5 | 5 | 1,434 | 0 | 632 | 33 | 4 | 1 | true | true | false | false | false | false | low |
36,660,433 | App Crashes on Some Devices | Memory Issue? | <p>So I recently finished initial development of my app. I'd been using my phone(OnePlus 2) the entire time for debugging and things were generally fine.
I decided to take some help from friends and family for testing the app and some have reported that the app crashes on startup. So I got hold of my mom's phone (Galax... | So I recently finished initial development of my app. I'd been using my phone(OnePlus 2) the entire time for debugging and things were generally fine. I decided to take some help from friends and family for testing the app and some have reported that the app crashes on startup. So I got hold of my mom's phone (Galaxy S... | android | 0 | 2016-04-16T05:22:20.203Z | 2,016 | 4 | 5 | 5 | 2,662 | 1 | 782 | 43 | 1 | 5 | true | false | true | false | false | false | zero |
36,660,516 | I have multiple error in the following code. The errors listed below. Any Solutions? | <p>I have an error " This LinearLayout layout or its FrameLayout parent is useless" in line no 21 and error "Invalid layout param in a LinearLayout: layout_centerHorizontal" in lines 29 and 30.</p>
<pre><code><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.andr... | I have an error " This LinearLayout layout or its FrameLayout parent is useless" in line no 21 and error "Invalid layout param in a LinearLayout: layout_centerHorizontal" in lines 29 and 30. [CODE] | java|android|android-layout|layout | -1 | 2016-04-16T05:34:53.833Z | 2,016 | 4 | 5 | 5 | 49 | 1 | 197 | 84 | 4 | 1 | true | false | false | false | false | true | negative |
36,660,624 | Android Devise is offline in android studio | <p>I try these before : </p>
<blockquote>
<p>1.Restart adb by issuing 'adb kill-server' followed by 'adb start-server' at a cmd prompt</p>
<p>2.Disable and re-enable USB debugging on the phone.</p>
<p>3.Rebooting the phone if it still doesn't work.</p>
</blockquote>
<p>1.Navigate to where .andro... | I try these before : 1.Restart adb by issuing 'adb kill-server' followed by 'adb start-server' at a cmd prompt 2.Disable and re-enable USB debugging on the phone. 3.Rebooting the phone if it still doesn't work. 1.Navigate to where .android is stored 2.open .android and delete file named as adbkey and adbkey.pub 3.Start... | android|android-studio|offline | 2 | 2016-04-16T05:48:05.607Z | 2,016 | 4 | 5 | 5 | 614 | 0 | 1,078 | 43 | 3 | 0 | false | true | false | false | false | false | low |
36,660,629 | How to show SlidingPaneLayout at right side? | <p>Hi I am a beginner for android and in my app I have to show SlidingPaneLayout at the right side but using my below code it's coming from left side.</p>
<p>Please help me.</p>
<p>How can I make it be at right side?</p>
<p>And second my requirement is my SlidingPaneLayout must be overlapped on Action bar but using ... | Hi I am a beginner for android and in my app I have to show SlidingPaneLayout at the right side but using my below code it's coming from left side. Please help me. How can I make it be at right side? And second my requirement is my SlidingPaneLayout must be overlapped on Action bar but using my below xml code SlidingPa... | android|slidingmenu | 11 | 2016-04-16T05:48:55.353Z | 2,016 | 4 | 5 | 5 | 7,213 | 1 | 478 | 44 | 2 | 3 | true | false | true | false | true | false | medium |
36,660,675 | i want to get listview's id of selected item | <p>I am performing listview's selected item id. but i'm unable to get item id. please help me..</p>
<pre><code>public class ViewAllActivity extends AppCompatActivity {
ListView lv;
DbHelper dbh;
String selected;
final String ar[]={"Delete","Update"};
@Override
protected void onCreate(Bundle savedInstanceSt... | I am performing listview's selected item id. but i'm unable to get item id. please help me.. [CODE] here i cant get my listview's id. i want it because i want to pass that id because i want to delete that perticular record.and also want to perform update operation. so for that i want id os that listview's selected item... | android|listview | 0 | 2016-04-16T05:56:02.123Z | 2,016 | 4 | 5 | 5 | 452 | 1 | 340 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,660,699 | Android Opencv app painfully slow,what do i do? | <p>I have a face recognition app, and it runs fine,15+ fps on s6 egde.Now when I added some code to determine eye center(specifically <a href="http://www.inb.uni-luebeck.de/fileadmin/files/PUBPDFS/TiBa11b.pdf" rel="nofollow">Fabian Timm</a>), It drops to 0.01 FPS. I'm stuck. Android Studio monitor says cpu usage around... | I have a face recognition app, and it runs fine,15+ fps on s6 egde.Now when I added some code to determine eye center(specifically Fabian Timm ), It drops to 0.01 FPS. I'm stuck. Android Studio monitor says cpu usage around 15%,memory 20 mb.resolution at around 400*300. Here is the code I used(translated from c++) to i... | android|performance|opencv | 1 | 2016-04-16T05:58:40.083Z | 2,016 | 4 | 5 | 5 | 887 | 0 | 708 | 47 | 3 | 1 | true | true | false | false | false | false | low |
36,661,061 | How to notify my app when new contacts added in contact list android | <p>I am working on a app where need get contact list. It is taking time to get all contact. So i am thinking to store contact list locally. But i need update when new contact added in phone. How to notify my app that new contact added into device?
I use this code to get contact from device: `</p>
<pre><code> public v... | I am working on a app where need get contact list. It is taking time to get all contact. So i am thinking to store contact list locally. But i need update when new contact added in phone. How to notify my app that new contact added into device? I use this code to get contact from device: ` [CODE] | java|android | 1 | 2016-04-16T06:45:42.963Z | 2,016 | 4 | 6 | 5 | 785 | 1 | 297 | 68 | 2 | 1 | true | false | false | false | false | false | low |
36,661,068 | EditText drwableLeft don't work with vectors | <p>In my app, I use <strong>vector drawables</strong> added in <strong>support library 23.2</strong> for display vector icons and it works perfectly but when I set the vector to drawableLeft of EditText it does not work in pre-lollipop android versions.
At runtime, <strong>ResourceNotFound exception</strong> occurs.</p... | In my app, I use vector drawables added in support library 23.2 for display vector icons and it works perfectly but when I set the vector to drawableLeft of EditText it does not work in pre-lollipop android versions. At runtime, ResourceNotFound exception occurs. [CODE] This is my gradle configuration: [CODE] EditText ... | android|vector | 11 | 2016-04-16T06:46:15.973Z | 2,016 | 4 | 6 | 5 | 3,222 | 6 | 328 | 44 | 2 | 3 | true | false | true | false | true | false | medium |
36,661,103 | node executable not found error in jdeveloper when deploying maf app | <p>node executable not found error in jdeveloper when i deploying android maf application on device,i also install adb and i can see my device by adb device command in platform-tools directory of android sdk,i can't run sdk because lack of pc configuration </p>
<p>error after deploying-----</p>
<pre><code>[12:05:48 ... | node executable not found error in jdeveloper when i deploying android maf application on device,i also install adb and i can see my device by adb device command in platform-tools directory of android sdk,i can't run sdk because lack of pc configuration error after deploying----- [CODE] | java|android|deployment|jdeveloper|oracle-maf | 0 | 2016-04-16T06:50:52.390Z | 2,016 | 4 | 6 | 5 | 181 | 1 | 287 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
36,661,180 | How should I code this Broadcast receiver to check for internet and perform actions based on that | <p>I am checking for internet connectivity, call a method if it's available and otherwise display an alert dialog.</p>
<p>The method I am calling uses volley to fetch data from the internet so I gave it s circular ProgressDialog before <code>onResponse</code> is called.
In <code>onResponsese</code>, I dismissed the Pr... | I am checking for internet connectivity, call a method if it's available and otherwise display an alert dialog. The method I am calling uses volley to fetch data from the internet so I gave it s circular ProgressDialog before onResponse is called. In onResponsese , I dismissed the Progress dialog. Now here is the probl... | android|broadcastreceiver|android-volley | 1 | 2016-04-16T07:00:15.663Z | 2,016 | 4 | 7 | 5 | 555 | 2 | 1,042 | 97 | 3 | 3 | true | false | false | false | false | false | low |
36,661,183 | How to stop reloading of a Tab Fragment while swiping | <p>I am creating Tabs during RunTime.Depends on the Json data category count, fragment is created.Even products are listed depends on Category. My issue is that while I swipe the previous Tab Fragment gets empty.</p>
<p>I am having 13 TabFragments which is created automatically depends on Category count.</p>
<p><stro... | I am creating Tabs during RunTime.Depends on the Json data category count, fragment is created.Even products are listed depends on Category. My issue is that while I swipe the previous Tab Fragment gets empty. I am having 13 TabFragments which is created automatically depends on Category count. Left to Right Swipe: 1st... | android|tabs|fragment|swipe | 1 | 2016-04-16T07:00:34.617Z | 2,016 | 4 | 7 | 5 | 351 | 1 | 730 | 53 | 4 | 1 | true | false | false | false | false | false | low |
36,661,193 | Android Studio 2.0 Gradle Project build no success with gradle:2.0.0 | <p>I am developing an app which have some issues while <code>Gradle Sync</code>.</p>
<p>Here is my <code>Gradle Log</code>.</p>
<pre><code>Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence$1) that doesn't come with an
E... | I am developing an app which have some issues while Gradle Sync . Here is my Gradle Log . [CODE] Here is my Build.Gradle . [CODE] | android|android-studio|gradle | 2 | 2016-04-16T07:02:19.377Z | 2,016 | 4 | 7 | 5 | 808 | 1 | 129 | 68 | 3 | 2 | true | false | false | false | false | false | low |
36,661,203 | My app works in AVD emulator, but crashes when I run in Bluestacks | <p>When I Run my app using the eclipse emulator, (Nexus One AVD) the app displays and works fine. After exporting the .apk and installing on Bluestacks, the app installs successfully, but when I try open(run) the app on Bluestacks, I experience the app crashing. The screen flashes black and closes the app before displa... | When I Run my app using the eclipse emulator, (Nexus One AVD) the app displays and works fine. After exporting the .apk and installing on Bluestacks, the app installs successfully, but when I try open(run) the app on Bluestacks, I experience the app crashing. The screen flashes black and closes the app before displayin... | android|android-emulator|bluestacks | 0 | 2016-04-16T07:03:16.560Z | 2,016 | 4 | 7 | 5 | 1,101 | 2 | 1,103 | 66 | 3 | 1 | true | false | false | false | false | false | zero |
36,661,244 | How to get text from GridView and display it on Fragment | <p>I have an app with a GridView inside a Fragment and each item on it has a name and a picture. I want to <strong>get and show</strong> the name of each picture as a toast when I click on an item. How can I do it?</p>
<p>This is my fragment:</p>
<pre><code>public class OneFragment extends Fragment {
public OneFrag... | I have an app with a GridView inside a Fragment and each item on it has a name and a picture. I want to get and show the name of each picture as a toast when I click on an item. How can I do it? This is my fragment: [CODE] And this is my ImageAdapter where the data is: [CODE] I will appreciate any kind of help as I've ... | android|android-fragments|gridview|onclicklistener | 0 | 2016-04-16T07:08:46.057Z | 2,016 | 4 | 7 | 5 | 1,207 | 2 | 377 | 56 | 4 | 2 | true | false | false | false | false | false | zero |
36,661,287 | TransformClassesWithJarMergingForRelease Android | <p>Hello Everyone i have one issue on generate signed apk with android studio.</p>
<p>I have search a lot on this but did't find working solution in my case, iknow this is the issue related to duplicate class entry but can anyone tell me which i need to exclude.</p>
<p><strong>I try following thing but that's not wor... | Hello Everyone i have one issue on generate signed apk with android studio. I have search a lot on this but did't find working solution in my case, iknow this is the issue related to duplicate class entry but can anyone tell me which i need to exclude. I try following thing but that's not working. [CODE] This is the er... | android|apk|signed|android-multidex|payu | 4 | 2016-04-16T07:14:03.997Z | 2,016 | 4 | 7 | 5 | 2,194 | 1 | 885 | 48 | 5 | 2 | true | false | false | false | false | false | low |
36,661,326 | Not able to call Service from Activity | <p>Hello i think i have done right thing but don't know where i am lagging.Here is my code in which i am starting a service from main activity but service is not started.If anyone know please help me.
MainActivity</p>
<pre><code>package com.example.lalit.gcmtest;
import android.app.ProgressDialog;
import android.cont... | Hello i think i have done right thing but don't know where i am lagging.Here is my code in which i am starting a service from main activity but service is not started.If anyone know please help me. MainActivity [CODE] | android | 0 | 2016-04-16T07:18:43.327Z | 2,016 | 4 | 7 | 5 | 44 | 1 | 217 | 38 | 1 | 1 | true | false | false | false | false | false | zero |
36,661,371 | Java code executing incorrectly when debugging with Android Studio | <p>I have this code in my Android app:</p>
<pre><code>@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
if(viewType == POST_VIEW_TYPE){
View view = LayoutInflater.from(App.instance).inflate(R.layout.item_post, parent, false);
return new PostViewHolder(vie... | I have this code in my Android app: [CODE] The code basically gets a constant named viewType , and inflates the correct view accordingly. My constant POST_VIEW_TYPE is equal to 1 : So far so good. I am passing viewType as 1 to my handler, but the code is somehow evaluating the else branch even though the (extremely sim... | java|android|if-statement|android-studio|android-studio-2.0 | 0 | 2016-04-16T07:24:17.733Z | 2,016 | 4 | 7 | 5 | 503 | 1 | 573 | 66 | 5 | 1 | true | false | false | false | false | false | zero |
36,661,431 | Error in Android Studio While Building My App After Removing Fusepowered SDK | <p>I am having this problem error, can anyone solve it. This my Code of AndroidManifest.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zikatv.zikatvlive"
android:versionCode="1"
android:versionName="1.0" >... | I am having this problem error, can anyone solve it. This my Code of AndroidManifest. [CODE] This is my Proguard: [CODE] And this is the screenshot of error and one other thing when i delete the code of AndroidManifest mentioned below in the image and clean or build the project or sync, it appears again, | android|android-studio | 0 | 2016-04-16T07:30:09.820Z | 2,016 | 4 | 7 | 5 | 571 | 1 | 305 | 76 | 2 | 2 | true | false | false | false | false | false | zero |
36,661,569 | Json Parse android | <p>Hi guys i got a json string like </p>
<pre><code>{
"Successful": true,
"Value": "{\"MesajTipi\":1,\"Mesaj\":\"{\\\"Yeni\\\":\\\"Hayır\\\",\\\"Oid\\\":\\\"3d9b81c9-b7b3-4316-8a73-ad4d54ee02a8\\\",\\\"OzelKod\\\":\\\"\\\",\\\"Adet\\\":1,\\\"ProblemTanimi\\\":\\\"999\\\",\\\"HataTespitYeri\\\":\\\"Montajda\\\",\\\"Tek... | Hi guys i got a json string like [CODE] I need to get "Oid" value from this string. I tried to get it with [CODE] But it gives null referance exception ? Any idea how can i get the only Oid value ? Edit I already tried How to parse JSON in Java but still no succes What i tried from this page : [CODE] | android|json|parsing | 0 | 2016-04-16T07:45:40.407Z | 2,016 | 4 | 7 | 5 | 65 | 2 | 301 | 18 | 3 | 3 | true | false | false | false | false | false | zero |
36,661,595 | Set initial value of Spinner based upon selected rows column value in SQLite table | <p>I am new to android programming so apologies for any misuse of technical jargon. I have a spinner which has a text value of <code>league_name</code> and an id of <code>id</code> from the <code>leagues</code> SQLite table.</p>
<h2>Example of leagues table design</h2>
<pre><code>id | league_name
-----------------
... | I am new to android programming so apologies for any misuse of technical jargon. I have a spinner which has a text value of league_name and an id of id from the leagues SQLite table. Example of leagues table design [CODE] I also have a teams table storing information on a team and a lookup table joining the id's of the... | android|android-studio|android-spinner | 1 | 2016-04-16T07:48:31.323Z | 2,016 | 4 | 7 | 5 | 516 | 1 | 1,109 | 82 | 3 | 4 | true | false | false | false | false | false | low |
36,661,617 | Android devices does not read JSON file, but Unity able to read it. Why? | <p>I'm using Json/LitJson file to read the database question and answer into my quizzes.</p>
<p>It works without any error on Unity, but after I build it into APK, it did not run properly on the android devices, which the quizzes did not came out after I start it. I'm using MI3 android phone, then I tried it on BlueSt... | I'm using Json/LitJson file to read the database question and answer into my quizzes. It works without any error on Unity, but after I build it into APK, it did not run properly on the android devices, which the quizzes did not came out after I start it. I'm using MI3 android phone, then I tried it on BlueStacks also. ... | android|json|unity3d | 1 | 2016-04-16T07:50:39.400Z | 2,016 | 4 | 7 | 5 | 1,477 | 1 | 569 | 72 | 3 | 2 | true | false | false | false | false | false | low |
36,661,622 | Calculating number of bits and number of words BigInteger | <p>While converting a <code>String</code> into <code>BigInteger</code>, Java internally calculates the number of bits and then the number of words(each word is a group of 9 integers i think) in a BigInteger as can be seen <a href="http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/math/Bi... | While converting a String into BigInteger , Java internally calculates the number of bits and then the number of words(each word is a group of 9 integers i think) in a BigInteger as can be seen here from Line 325 to Line 327. numWords is used then to create an array that can accomodate that BigInteger. I don't understa... | java|android|biginteger | 0 | 2016-04-16T07:51:24.580Z | 2,016 | 4 | 7 | 5 | 610 | 3 | 718 | 57 | 3 | 0 | false | false | false | false | false | false | zero |
36,661,624 | Is there a limit to add images in a single android activity? | <p>Well I have an activity where I use a grid view to show images statically. The thing is that when I add more than 3 images i.e. when i add the 4th image and run the activity the "app unexpectedly stops" and following error comes up.</p>
<p>Android monitor</p>
<pre><code>04-16 02:03:26.517 30272-30272/com.roadraz.v... | Well I have an activity where I use a grid view to show images statically. The thing is that when I add more than 3 images i.e. when i add the 4th image and run the activity the "app unexpectedly stops" and following error comes up. Android monitor [CODE] | android|gridview | -2 | 2016-04-16T07:51:37.790Z | 2,016 | 4 | 7 | 5 | 35 | 1 | 255 | 60 | 2 | 1 | true | false | false | false | false | true | negative |
36,661,664 | How can i Render screen like this | <p><a href="https://i.stack.imgur.com/qvBrk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvBrk.png" alt="This is the screen i have to render"></a></p>
<p>When i try to run this code, the list item 1 was overlapped with the main tool bar buttons.I tried in many ways but getting the same issue agai... | When i try to run this code, the list item 1 was overlapped with the main tool bar buttons.I tried in many ways but getting the same issue again and again. I want to display my screen as the above image. Here i am Providing my code also. Please suggest me. Thanks in Advance. [CODE] | android|android-layout|android-fragments|xamarin|xamarin.android | 0 | 2016-04-16T07:56:18.370Z | 2,016 | 4 | 7 | 5 | 78 | 1 | 282 | 33 | 5 | 1 | true | false | false | false | false | false | zero |
36,661,668 | Why Http Post is working only for API 10? | <p>this is my code</p>
<pre><code> List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
nameValuePairs.add(new BasicNameValuePair("nama", nama));
nameValuePairs.add(new BasicNameValuePair("pesan", s));
try {
... | this is my code [CODE] Im build this in API 10[Gingerbread] and working successfully,... But if im build for API 11> is not working and force close the app.. anyone here can give me suggest,.. or this code only work in api 10? Note: im using uses-permision Internet in manifest.xml :D thank you for your respond | php|android|mysql | 0 | 2016-04-16T07:56:36.943Z | 2,016 | 4 | 7 | 5 | 28 | 2 | 311 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
36,661,680 | Cant do bluetooth connection to remote devices. android 6.0 | <p>I cant connect to remote Bluetooth device. i can see paired and founded devices in ListView, but when i click on item(name of my PC or nexus 5) in the ListView nothing happens. Bluetoth pairing request window dont appears.</p>
<p>Manifest.xml</p>
<pre><code><uses-permission android:name="android.permission.BLU... | I cant connect to remote Bluetooth device. i can see paired and founded devices in ListView, but when i click on item(name of my PC or nexus 5) in the ListView nothing happens. Bluetoth pairing request window dont appears. Manifest.xml [CODE] activity_main.xml [CODE] MainActivity.java [CODE] } | java|android|bluetooth|android-6.0-marshmallow | 1 | 2016-04-16T07:58:01.873Z | 2,016 | 4 | 7 | 5 | 625 | 1 | 294 | 59 | 4 | 3 | true | false | false | false | false | false | low |
36,661,737 | Using VectorDrawableCompat | <p>In order to use an SVG file in my android project, I have to use vector compat.</p>
<p>First I converted my SVG file into a vector according to <a href="http://a-student.github.io/SvgToVectorDrawableConverter.Web/" rel="nofollow">http://a-student.github.io/SvgToVectorDrawableConverter.Web/</a></p>
<p>Then I follow... | In order to use an SVG file in my android project, I have to use vector compat. First I converted my SVG file into a vector according to http://a-student.github.io/SvgToVectorDrawableConverter.Web/ Then I followed the official blog http://android-developers.blogspot.fr/2016/02/android-support-library-232.html So here i... | android|vector|support-vector-compat | 1 | 2016-04-16T08:05:38.453Z | 2,016 | 4 | 8 | 5 | 906 | 1 | 609 | 26 | 3 | 5 | true | false | false | false | false | false | low |
36,661,775 | Android Popup Window with Variable Text | <p>So having a bit of trouble with a popup box, new to android and not sure how to go about this. I would like to have a popup that displays specific text based on a public variable, so when the button is clicked, the variable is checked, and depending on what that variable is the appropriate text is displayed in the t... | So having a bit of trouble with a popup box, new to android and not sure how to go about this. I would like to have a popup that displays specific text based on a public variable, so when the button is clicked, the variable is checked, and depending on what that variable is the appropriate text is displayed in the text... | java|android|android-popupwindow | 0 | 2016-04-16T08:09:59.180Z | 2,016 | 4 | 8 | 5 | 2,466 | 1 | 684 | 39 | 3 | 2 | true | false | false | false | false | false | zero |
36,661,792 | Retrofit respond NullPointerException | <p>In my application i have been using retrofit for my webservice calls. It is not working fine. This is the error that caused when my application started</p>
<blockquote>
<p>04-16 07:41:26.162 5860-5860/com.pance.taugaksih E/AndroidRuntime: FATAL EXCEPTION: main
... | In my application i have been using retrofit for my webservice calls. It is not working fine. This is the error that caused when my application started 04-16 07:41:26.162 5860-5860/com.pance.taugaksih E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException at com.pance.taugaksih.activity.SplashscreenActi... | android|retrofit | 0 | 2016-04-16T08:12:15.363Z | 2,016 | 4 | 8 | 5 | 103 | 2 | 1,161 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
36,662,000 | prevent android service sleep when lock | <p>Im developing a small APP using cordova, but because the limitations of the webview I need to use socket.io conection in native java.</p>
<p>I make a plugin, and the plugin start a service, this service for now have a timer using vibrate API to make the phone vibrate every second to test, here is my code:</p>
<pre... | Im developing a small APP using cordova, but because the limitations of the webview I need to use socket.io conection in native java. I make a plugin, and the plugin start a service, this service for now have a timer using vibrate API to make the phone vibrate every second to test, here is my code: [CODE] Now my Servic... | android|android-service | 0 | 2016-04-16T08:36:18.353Z | 2,016 | 4 | 8 | 5 | 560 | 0 | 1,193 | 39 | 2 | 2 | true | true | false | false | false | false | zero |
36,662,033 | How to use EventBus library in android | <p>I want develop android appliacation for one site, in this application i want use <code>oKHttp v3</code>, and <code>EventBus v3</code>. eventbus library source link : <a href="https://github.com/greenrobot/EventBus" rel="nofollow">LINK</a>.<br>
I write below codes, but when running application, show me FC error!<br>
... | I want develop android appliacation for one site, in this application i want use oKHttp v3 , and EventBus v3 . eventbus library source link : LINK . I write below codes, but when running application, show me FC error! okHttp_Page(main activity) codes: [CODE] okHttp_info(AsyncTask class) codes: [CODE] LogCat errors: 04-... | android|event-bus | -1 | 2016-04-16T08:40:27.307Z | 2,016 | 4 | 8 | 5 | 1,038 | 3 | 2,831 | 38 | 2 | 2 | true | false | false | false | false | true | negative |
36,662,073 | New fragment to overlap toolbar | <p>I have a use case where I download some data from the network and I populate a list and when user clicks on of them then there's another list ( again with data from the network ). When user clicks an item on this second list I want to display a new screen.</p>
<p>What I have done so far is an Activity with two frag... | I have a use case where I download some data from the network and I populate a list and when user clicks on of them then there's another list ( again with data from the network ). When user clicks an item on this second list I want to display a new screen. What I have done so far is an Activity with two fragments (one ... | android|android-fragments | 0 | 2016-04-16T08:46:04.187Z | 2,016 | 4 | 8 | 5 | 192 | 2 | 1,183 | 31 | 2 | 1 | true | false | false | false | false | false | zero |
36,662,141 | OnClickListener is abstract, cannot be instantiated | <p>I'm new to programming and have been racking my brain for the past couple of hours trying to resolve the issue. I know it's something stupid. I am trying to get each button to play a sound. Any help is greatly appreciated.
(ADDED <code>"import android.view.View.OnClickListener;"</code>, TURNED MY PROBLEMS GREEN UNTI... | I'm new to programming and have been racking my brain for the past couple of hours trying to resolve the issue. I know it's something stupid. I am trying to get each button to play a sound. Any help is greatly appreciated. (ADDED "import android.view.View.OnClickListener;" , TURNED MY PROBLEMS GREEN UNTIL I CLOSED IT O... | java|android|sdk | -1 | 2016-04-16T08:54:34.087Z | 2,016 | 4 | 8 | 5 | 5,326 | 2 | 371 | 51 | 3 | 1 | true | false | true | false | false | true | negative |
36,662,268 | Open application when notification is clicked | <blockquote>
<p>Hi! I am having android code for simple push notification. Its working fine but when I am clicking on message in notification my application is not opening.</p>
</blockquote>
<p><strong>MainActivity</strong></p>
<pre><code>public class MainActivity extends Activity {
EditText ed1,ed2,ed3;
Notificati... | Hi! I am having android code for simple push notification. Its working fine but when I am clicking on message in notification my application is not opening. MainActivity [CODE] } Help me to fix it | android|push-notification | 1 | 2016-04-16T09:10:19.030Z | 2,016 | 4 | 9 | 5 | 4,138 | 2 | 196 | 45 | 2 | 1 | true | false | true | false | false | false | low |
36,662,388 | Is it possible to send JSON Object instead of HASH MAP <String, String> using Volley? | <p>I can POST <code>Map <String, String></code> to my server but it comes in <code>&</code> separated form.</p>
<p>I have used code from <a href="https://stackoverflow.com/questions/25948191/send-post-request-using-volley-and-receive-in-php">Send post request using Volley and receive in PHP</a></p>
<p><code... | I can POST Map <String, String> to my server but it comes in & separated form. I have used code from Send post request using Volley and receive in PHP getParams() just doesn't work with JSONObject return type. Is it possible to send JSONObject as JSON only? I want to send data as JSON that I will get using file_get_con... | android|android-studio|android-volley|json | 0 | 2016-04-16T09:23:33.727Z | 2,016 | 4 | 9 | 5 | 1,764 | 2 | 671 | 85 | 4 | 0 | false | false | false | false | false | false | zero |
36,662,483 | Sqlite ambiguous column name in Android why none solution is not working | <p>I get a Sqlite ambiguous column name on a column named games._id in a rather complicated select query like the following:</p>
<pre><code>public Cursor getStatsByResult(String result)
{
SQLiteDatabase db = this.getReadableDatabase();
String buildSQL = "SELECT games._id AS game, games.lge, games.date, games.... | I get a Sqlite ambiguous column name on a column named games._id in a rather complicated select query like the following: [CODE] Why it is still says this message even if I put games._id and not simply _id? | android|sqlite|android-sqlite | -1 | 2016-04-16T09:33:55.110Z | 2,016 | 4 | 9 | 5 | 124 | 1 | 206 | 72 | 3 | 1 | true | false | false | false | false | true | negative |
36,662,503 | Cordova Plugin not working in Android (Emulator) | <p>I'm using the cordova camera plugin (I have fetched the latest version from their github) and it is working great on iOS, but it does nothing on Android (Emulator). I'm using Ionic 1. It does open the Camera and all these things, but after I press "Save", nothing else happens.
I know I can't use the camera, so I cho... | I'm using the cordova camera plugin (I have fetched the latest version from their github) and it is working great on iOS, but it does nothing on Android (Emulator). I'm using Ionic 1. It does open the Camera and all these things, but after I press "Save", nothing else happens. I know I can't use the camera, so I choose... | android|cordova|ionic-framework | 1 | 2016-04-16T09:36:24.060Z | 2,016 | 4 | 9 | 5 | 606 | 0 | 423 | 48 | 3 | 1 | true | true | false | false | false | false | low |
36,662,582 | Android , display from database to listview error | <p>I have problem with displaying data from db to listview.
Here is code:</p>
<p>DB class:</p>
<pre><code>public ArrayList<Task> getTasks(){
ArrayList<Task> tasks = new ArrayList<Task>();
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor=db.query(TABLE_TASKS, null, null, nul... | I have problem with displaying data from db to listview. Here is code: DB class: [CODE] Task class [CODE] List activity class [CODE] I get: Results sreenshot MyAdapter values Adapter values from debuger How can i display values from myadapter to listview? | android|sqlite|listview|android-adapter | 0 | 2016-04-16T09:48:20.660Z | 2,016 | 4 | 9 | 5 | 61 | 2 | 255 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
36,662,617 | Options to save data from a map marker to be used in a different activity android studio | <p>I am looking advice on options i have to save data from markers and searches from placepicker on google maps.</p>
<p>Ive looked into shared preferences and tried the code out but not working.</p>
<p>I need to take address data from a place picker search and save it so that a history activity can generate a list.</... | I am looking advice on options i have to save data from markers and searches from placepicker on google maps. Ive looked into shared preferences and tried the code out but not working. I need to take address data from a place picker search and save it so that a history activity can generate a list. is there any option ... | android|google-maps | 0 | 2016-04-16T09:52:22.397Z | 2,016 | 4 | 9 | 5 | 313 | 1 | 422 | 88 | 2 | 1 | true | false | false | false | false | false | zero |
36,662,672 | How to get GPS coordinates in unity 3d | <p>I got this code for getting the GPS coordinates but somehow I only got an output of the same coordinates. IT does not change the output where ever I go and sometimes I got 0 for latitude and 0 for longtitude as output please someone help me or someone have a syntax in getting the coordinates </p>
<pre><code>using U... | I got this code for getting the GPS coordinates but somehow I only got an output of the same coordinates. IT does not change the output where ever I go and sometimes I got 0 for latitude and 0 for longtitude as output please someone help me or someone have a syntax in getting the coordinates [CODE] | c#|android|unity3d|gps | 1 | 2016-04-16T09:58:25.400Z | 2,016 | 4 | 9 | 5 | 11,864 | 1 | 299 | 38 | 4 | 1 | true | false | true | true | false | false | low |
36,662,780 | Android: Compressed bitmaps from int.storage not loading dynamically | <p>I have a small issue with bitmaps which I want to load into a view with a picture in every entry. The application looks like this:
<a href="http://i.stack.imgur.com/24Zfp.jpg" rel="nofollow">Application layout</a></p>
<p>I actually have two problems - the first is that when i compress the file in code by 90%, the r... | I have a small issue with bitmaps which I want to load into a view with a picture in every entry. The application looks like this: Application layout I actually have two problems - the first is that when i compress the file in code by 90%, the result file gives me even higher file size, f.e. file before compressing was... | java|android|bitmap | 0 | 2016-04-16T10:12:43.970Z | 2,016 | 4 | 10 | 5 | 61 | 0 | 1,266 | 68 | 3 | 2 | true | true | false | false | false | false | zero |
36,662,790 | Button size on different Android screen size | <p>I have a simple layout, which has only 2 widgets: a full screen <code>ImageView</code> as background and a <code>Button</code>. The background has no problem, however, I failed to position & resize the button to fit in all screens. The button is supposed to be located at 2/3 of the screen, center-aligned.</p>
<... | I have a simple layout, which has only 2 widgets: a full screen ImageView as background and a Button . The background has no problem, however, I failed to position & resize the button to fit in all screens. The button is supposed to be located at 2/3 of the screen, center-aligned. Here is my activity_login.xml : [CODE]... | android|android-layout | 0 | 2016-04-16T10:13:48.990Z | 2,016 | 4 | 10 | 5 | 457 | 2 | 634 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,662,795 | Actionbar Icons are not showing | <p>I have searched around the forum, and I still do not know what's the problem. Action bar Icons dont show up. Actually, Im following a book..
and I did all what in the book is to let the icons appear.
I hope I get some answers.
Thanks a lot. </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-conso... | I have searched around the forum, and I still do not know what's the problem. Action bar Icons dont show up. Actually, Im following a book.. and I did all what in the book is to let the icons appear. I hope I get some answers. Thanks a lot. [CODE] [CODE] | android|android-actionbar | 0 | 2016-04-16T10:14:33.243Z | 2,016 | 4 | 10 | 5 | 233 | 3 | 254 | 31 | 2 | 2 | true | false | false | false | false | false | zero |
36,662,847 | Data in sharedpreference lost after apps exit | <p>I am new in android. I am trying to save some information in sharedpreference which are getting from server. but when I exit the app, saved value in preference, setting 0. I want the values I saved in preference will stay same till I clear it manually.</p>
<p>Here is my code</p>
<pre><code>public class SharedPrefe... | I am new in android. I am trying to save some information in sharedpreference which are getting from server. but when I exit the app, saved value in preference, setting 0. I want the values I saved in preference will stay same till I clear it manually. Here is my code [CODE] I am saving data from activity by calling: [... | android|sharedpreferences | 1 | 2016-04-16T10:19:42.800Z | 2,016 | 4 | 10 | 5 | 1,331 | 2 | 351 | 45 | 2 | 3 | true | false | false | false | false | false | low |
36,662,891 | How to capture screen after some time slot? | <p>Actually i am trying to capture screen shot from my activity, the code takes the screenshot of current activity but what i need is code has to take the screen shot of the screen after a minute when user clicks the button.</p>
<p>here is my code so:</p>
<pre><code> @Override
public void run() {
try {
... | Actually i am trying to capture screen shot from my activity, the code takes the screenshot of current activity but what i need is code has to take the screen shot of the screen after a minute when user clicks the button. here is my code so: [CODE] | android|eclipse|screenshot | 0 | 2016-04-16T10:24:26.967Z | 2,016 | 4 | 10 | 5 | 98 | 1 | 248 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,662,895 | Refer to containing object from inside a method parameter object? | <p>Not sure how to phrase the question to be technically correct, but suppose I have an object <code>(outer)</code> that has a method which takes another object <code>(inner)</code> as a parameter - how can I refer to <code>outer</code> from within <code>inner</code>?</p>
<p>To clarify what I mean, here's an example u... | Not sure how to phrase the question to be technically correct, but suppose I have an object (outer) that has a method which takes another object (inner) as a parameter - how can I refer to outer from within inner ? To clarify what I mean, here's an example using an Android EditText and an implementation of TextWatcher ... | java|android|inner-classes|anonymous-class|parameter-object | 1 | 2016-04-16T10:24:54.763Z | 2,016 | 4 | 10 | 5 | 50 | 0 | 655 | 65 | 5 | 1 | true | true | false | false | false | false | low |
36,662,946 | Get County name in Android for Secure registration process | <p>I have simple Registration Activity, where I have Country name field. But I need to get the Country name of the user automatically and make that <em>field Non-editable.</em> </p>
<p>I can get the country name using <strong>GPS</strong>, but the user may wonder why he need <strong>Location permission.</strong> </p>
... | I have simple Registration Activity, where I have Country name field. But I need to get the Country name of the user automatically and make that field Non-editable. I can get the country name using GPS , but the user may wonder why he need Location permission. What I tried: I already see How to get country name in andr... | android | -1 | 2016-04-16T10:29:18.830Z | 2,016 | 4 | 10 | 5 | 119 | 1 | 1,032 | 58 | 1 | 1 | true | false | false | false | false | true | negative |
36,662,962 | Can't retrieve ParseUser with objectID in fragment | <p>Have been trying to retrieve a specific user from <strong>Parse.com</strong> with its <strong>object ID</strong> in a <strong>fragment</strong>. From debugger it seems that the code of findinBackground,getInBackground or getFirstinbackground never get executed. </p>
<p>my <strong>getFirstInBackground</strong> metho... | Have been trying to retrieve a specific user from Parse.com with its object ID in a fragment . From debugger it seems that the code of findinBackground,getInBackground or getFirstinbackground never get executed. my getFirstInBackground method (In full code) [CODE] Any clue how can I make this work? Is it related to the... | android|parse-platform | 0 | 2016-04-16T10:30:44.133Z | 2,016 | 4 | 10 | 5 | 86 | 1 | 389 | 50 | 2 | 1 | true | false | false | false | false | false | zero |
36,662,993 | Libgdx - pixmap already disposed | <pre><code>04-16 12:17:58.353 12029-12056/com.nisvol.squaresmash E/AndroidRuntime: FATAL EXCEPTION: GLThread 664
Process: com.nisvol.squaresmash, PID: 12029
com.badlogic.gdx.utils.GdxRuntimeEx... | [CODE] I know this might not be enough, just the error I mean. But the thing is that my game runs fine on my phone, but then I tried it on an older phone, and the game kept crashing. But the weird thing is it crashed only when I got a score higher than about 50, and after it went to the game over screen. So I start the... | android|libgdx | 0 | 2016-04-16T10:33:16.220Z | 2,016 | 4 | 10 | 5 | 717 | 0 | 888 | 32 | 2 | 2 | true | true | false | false | false | false | zero |
36,663,084 | Cant play radio over IP Adress in a android app | <p>I am developing an android radio app where i'll play radio over an IP which is "<a href="http://27.147.128.134:8000/" rel="nofollow">http://27.147.128.134:8000/</a>" but every time I run the app it takes about 10 to 15 minutes. Also I tried to play it over Google Chrome browser but also not working. </p>
<p>Here's ... | I am developing an android radio app where i'll play radio over an IP which is " http://27.147.128.134:8000/ " but every time I run the app it takes about 10 to 15 minutes. Also I tried to play it over Google Chrome browser but also not working. Here's my portion of code. [CODE] I can't figure out the problem but I cha... | java|android|android-studio|android-mediaplayer|internet-radio | 2 | 2016-04-16T10:43:32.310Z | 2,016 | 4 | 10 | 5 | 49 | 0 | 521 | 47 | 5 | 1 | true | true | false | false | false | false | low |
36,663,102 | Merging results using RxJava, handling error | <p>I have code that invokes 2 apis and merges the results. using retrofit and rxJava.</p>
<p>How can I handle it so that if there is a problem with one of the api's i can still get the result from one of the api's that did work?</p>
<pre><code> IPlaces api = adapter.create(IPlaces.class); //endpoint1
IPlaces api... | I have code that invokes 2 apis and merges the results. using retrofit and rxJava. How can I handle it so that if there is a problem with one of the api's i can still get the result from one of the api's that did work? [CODE] | android|retrofit|rx-java | 2 | 2016-04-16T10:45:06.467Z | 2,016 | 4 | 10 | 5 | 1,760 | 1 | 225 | 44 | 3 | 1 | true | false | false | false | false | false | low |
36,663,189 | passing String to loadUrl not working | <p>For following code :</p>
<pre><code>public void onbuttonclick(){
e1 = (EditText)findViewById(R.id.editText);
b1 = (Button)findViewById(R.id.button);
w1 = (WebView)findViewById(R.id.webView);
b1.setOnClickListener(
new View.OnClickListener() {
String url = e1.getText().toS... | For following code : [CODE] } When I type " https://www.google.com " in text box and click button nothing happens but if I replace url with " https://www.google.com " in loadUrl() method it works fine. I am new to android and java. | android|android-studio | 0 | 2016-04-16T10:53:59.407Z | 2,016 | 4 | 10 | 5 | 246 | 2 | 231 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
36,663,222 | ViewHolder to create contact list with custom adapter | <p>I'm new to android dev and i'm trying to create a contact list, a list with a picture at the left and the name of the contact. </p>
<p>So I followed a tutorial and wrote this code, that doesn't display anything, have you any idea of what it could come from?</p>
<p><strong>MainActivity.java :</strong> </p>
<pre><c... | I'm new to android dev and i'm trying to create a contact list, a list with a picture at the left and the name of the contact. So I followed a tutorial and wrote this code, that doesn't display anything, have you any idea of what it could come from? MainActivity.java : [CODE] CustomList.java [CODE] Contact.java [CODE] ... | android | 1 | 2016-04-16T10:57:12.763Z | 2,016 | 4 | 10 | 5 | 123 | 1 | 342 | 53 | 1 | 4 | true | false | false | false | false | false | low |
36,663,230 | Textview at the center of canvas | <p>I need to create a canvas in which i have add two images as BITMAP and a TEXTVIEW at the bottom right with multiple line.</p>
<p>Here is my code which i have tried - </p>
<pre><code>drawnBitmap = Bitmap.createBitmap(1000, 1500, Bitmap.Config.RGB_565);
Canvas canvas = new Canvas(drawnBitmap);
canvas.drawC... | I need to create a canvas in which i have add two images as BITMAP and a TEXTVIEW at the bottom right with multiple line. Here is my code which i have tried - [CODE] I have divided the canvas into 4 equal parts, but the textview inside the 4. part is not centered. | android|android-canvas|textview | 0 | 2016-04-16T10:57:55.733Z | 2,016 | 4 | 10 | 5 | 296 | 0 | 264 | 32 | 3 | 1 | true | true | false | false | false | false | zero |
36,663,252 | LatLong Values in Toast | <p>I used Json to retrieve LatLong values then i saved these values in in LatLang object now i want to show that in toast so ensure that values are saved </p>
<pre><code>for (int i = 0; i < matchFixture.length(); i++) {
JSONObject c = matchFixture.getJSONObject(i);
Double mat... | I used Json to retrieve LatLong values then i saved these values in in LatLang object now i want to show that in toast so ensure that values are saved [CODE] | android|json|arraylist | -3 | 2016-04-16T11:00:03.027Z | 2,016 | 4 | 11 | 5 | 50 | 1 | 157 | 23 | 3 | 1 | true | false | false | false | false | true | negative |
36,663,257 | How to use back stack properly on activities AND fragments | <p>I have 2 activites:
- LoginActivity: it will handle the login stuff later
- MainActivity: the main app, all of the functions will be provided on fragments.</p>
<p>I want to properly use the back stack, but I can't.</p>
<p>What I want (but can't) achieve:
App starts with Login screen. I login (right now press the S... | I have 2 activites: - LoginActivity: it will handle the login stuff later - MainActivity: the main app, all of the functions will be provided on fragments. I want to properly use the back stack, but I can't. What I want (but can't) achieve: App starts with Login screen. I login (right now press the Start button), after... | android|android-fragments|back-stack|fragment-backstack | 0 | 2016-04-16T11:00:29.787Z | 2,016 | 4 | 11 | 5 | 776 | 1 | 1,355 | 58 | 4 | 2 | true | false | false | false | false | false | zero |
36,663,276 | Default black border in Canvas with Bitmap | <p>I want to use <code>Bitmap</code> with rounded using <code>Canvas</code>, but getting black border by default.
How can I remove this border.</p>
<p><strong>Code</strong></p>
<pre><code>public Bitmap transform(final Bitmap source)
{
Drawable drawable = context.getResources().getDrawable(R.drawable.dummy_image... | I want to use Bitmap with rounded using Canvas , but getting black border by default. How can I remove this border. Code [CODE] | android|android-canvas|android-bitmap | 0 | 2016-04-16T11:02:19.210Z | 2,016 | 4 | 11 | 5 | 197 | 0 | 127 | 42 | 3 | 1 | true | true | false | false | false | false | zero |
36,663,337 | Can't run the app on emulator "Execution failed for task ':app:transformClassesWithDexForDebug'" | <p>I have a problem that recently gets annoying. I just started with Android Studio, I am following the course from lynda.com. I set up the AVD, it works perfectly. Then I create the default "Hello World" app - and it already can't be run on the device!</p>
<p>It throws me the following error log:
<pre><code> AGPBI: ... | I have a problem that recently gets annoying. I just started with Android Studio, I am following the course from lynda.com. I set up the AVD, it works perfectly. Then I create the default "Hello World" app - and it already can't be run on the device! It throws me the following error log: [CODE] I tried to refer to solu... | java|android|android-emulator | 1 | 2016-04-16T11:09:04.273Z | 2,016 | 4 | 11 | 5 | 3,238 | 1 | 490 | 96 | 3 | 2 | true | false | true | false | false | false | low |
36,663,409 | How to change MainActivity's variable with AlertDialog Android | <p>Good morning everybody,</p>
<p>I have encountered some problems with AlertDialog. I have an EditText component, and I would like to get the text entered in a MainActivity's variable.</p>
<p>Here is my code :</p>
<pre><code>private void showDialog() {
final AlertDialog.Builder builder = new AlertDialog.Builder... | Good morning everybody, I have encountered some problems with AlertDialog. I have an EditText component, and I would like to get the text entered in a MainActivity's variable. Here is my code : [CODE] I hope you'll be able to help me. Thank you in advance ! EDIT - Added full code (except the imports -> too many) [CODE]... | android | 0 | 2016-04-16T11:17:09.130Z | 2,016 | 4 | 11 | 5 | 929 | 1 | 749 | 62 | 1 | 2 | true | false | false | false | false | false | zero |
36,663,425 | Custom Exception Class - Shall I extend Runtime Exception OR Exception? | <p><strong>Can any one guide me Shall I extend Exception or RuntimeException?</strong></p>
<p>Usually, it is used for validations, Unexpected Exceptions, Custom Exception, Raise if Business Logic Fails etc.</p>
<p>Below is my custom exception class.</p>
<pre><code>/**
* The class <code>BaseException</code&... | Can any one guide me Shall I extend Exception or RuntimeException? Usually, it is used for validations, Unexpected Exceptions, Custom Exception, Raise if Business Logic Fails etc. Below is my custom exception class. [CODE] | java|android|exception|runtimeexception | 0 | 2016-04-16T11:18:02.750Z | 2,016 | 4 | 11 | 5 | 2,641 | 2 | 222 | 71 | 4 | 1 | true | false | true | false | false | false | zero |
36,663,445 | interest case in multithreading with volatile int | <p>Ok. I wrote the code and get unexpected result of it and I don't know how to explain this result. Can someone help me with this?</p>
<pre><code>public class JMM {
static volatile Boolean ready = false;
static volatile int data = 0;
public static void main() {
Log.d("JMM", "start");
new T... | Ok. I wrote the code and get unexpected result of it and I don't know how to explain this result. Can someone help me with this? [CODE] I executed it on Nexus 5 (it has 4 cores): [CODE] result: D/JMM: second thread data 0 ... D/JMM: second thread data 0 D/JMM: second thread data 0 D/JMM: second thread data 0 D/JMM: sec... | java|android|multithreading|thread-synchronization|java-threads | 4 | 2016-04-16T11:20:05.587Z | 2,016 | 4 | 11 | 5 | 110 | 1 | 849 | 49 | 5 | 2 | true | false | false | false | false | false | low |
36,663,450 | Android Beacon Library detecting iBeacon fails! not fair :( | <p>I try to use the Android Beacon Library to detect iBeacons but it doesn't work.</p>
<p>The output from the logcat ist just:</p>
<p><code>I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file.
I/SELinux﹕ Function: selinux_android_load_priority , spota verifySig and checkHash pass. priori... | I try to use the Android Beacon Library to detect iBeacons but it doesn't work. The output from the logcat ist just: I/SELinux﹕ Function: selinux_android_load_priority [0], There is no sepolicy file. I/SELinux﹕ Function: selinux_android_load_priority , spota verifySig and checkHash pass. priority version is VE=SEPF_GT-... | android|bluetooth|ibeacon-android | 1 | 2016-04-16T11:20:33.743Z | 2,016 | 4 | 11 | 5 | 479 | 2 | 1,224 | 59 | 3 | 1 | true | false | false | false | false | false | low |
36,663,483 | Empty dialogfragment in xamarin | <p>I am trying to pop a dialog fragment on the loginscreenactivity onclick a button which has the register form.</p>
<p>I am pretty sure that the dialog is opening but i am not able to inflate it properly.</p>
<p>when a button is clicked for the <code>DialogFragment</code> something appears but it is blank completely... | I am trying to pop a dialog fragment on the loginscreenactivity onclick a button which has the register form. I am pretty sure that the dialog is opening but i am not able to inflate it properly. when a button is clicked for the DialogFragment something appears but it is blank completely, wherein I am expecting a layou... | android|xamarin|android-dialogfragment|layout-inflater | 1 | 2016-04-16T11:23:33.783Z | 2,016 | 4 | 11 | 5 | 447 | 1 | 557 | 31 | 4 | 2 | true | false | false | false | false | false | low |
36,663,507 | Fragment Android refresh | <p>I'm implementing fragment in android, i be faced issue:</p>
<pre><code>public Fragment getItem(int num) {
switch (num)
{
case 0:
NewFragment newFragment = new NewFragment();
//newFragment.refresh();
return newFragmen... | I'm implementing fragment in android, i be faced issue: [CODE] When i click button in tab host, it call "onCreateView" and "onViewCreated" only once. But with my purpose can i call back function to handle every time i call new NewFragment() ? [CODE] I did try onDetach(), onAttach(), onResume(), but it not work by my pu... | android|fragment | 0 | 2016-04-16T11:26:04.337Z | 2,016 | 4 | 11 | 5 | 81 | 1 | 325 | 24 | 2 | 2 | true | false | false | false | false | false | zero |
36,663,513 | how can I make a view animate along a specific path? | <p>Here is the method I want to use to implement my require.</p>
<pre><code> /**
* Constructs and returns an ObjectAnimator that animates the target using a multi-float setter
* along the given <code>Path</code>. A <code>Path</code></> animation moves in two dimensions,
* animating ... | Here is the method I want to use to implement my require. [CODE] But what confuse me is that the Path is two dimension, and the value it return are a point (two dimension too), so what value should a pass to the parameter propertyName? this is my code, but I know the value I pass must be wrong. [CODE] Thanks in advance... | android|animation | 0 | 2016-04-16T11:26:30.553Z | 2,016 | 4 | 11 | 5 | 605 | 0 | 321 | 52 | 2 | 2 | true | true | false | false | false | false | zero |
36,663,542 | Android custom toolbar navigation up | <p>I have an app with two activities and two different toolbars. I want to navigate back to the main activity from the second one. I added the parent activity in the manifest.xml and the listener in the second activity but nothing, the back arrow is there but it doesn't work.</p>
<p>Here the code:</p>
<pre><code><... | I have an app with two activities and two different toolbars. I want to navigate back to the main activity from the second one. I added the parent activity in the manifest.xml and the listener in the second activity but nothing, the back arrow is there but it doesn't work. Here the code: [CODE] the layout: [CODE] The o... | android|navigation|android-toolbar | 1 | 2016-04-16T11:28:59.050Z | 2,016 | 4 | 11 | 5 | 498 | 0 | 387 | 36 | 3 | 4 | true | true | false | false | false | false | low |
36,663,562 | findViewById() returns null value in the sliding navigation drawer | <p>I have textview in the sliding xml of navigation drawer and when i am trying to access the textview its giving me null pointer error at the findviewId can anyone tell me how to access it ? i am trying to use it but i am not able to do it this way.....</p>
<pre><code> here is my code:
public class Abstrac... | I have textview in the sliding xml of navigation drawer and when i am trying to access the textview its giving me null pointer error at the findviewId can anyone tell me how to access it ? i am trying to use it but i am not able to do it this way..... [CODE] | android | -2 | 2016-04-16T11:31:07.410Z | 2,016 | 4 | 11 | 5 | 403 | 1 | 258 | 66 | 1 | 1 | true | false | false | false | false | true | negative |
36,663,638 | In android coding of share button got null pointer exception on this line mShareActionProvider.setShareIntent(getDefaultShareIntent()); | <p><a href="http://i.stack.imgur.com/6iFjo.png" rel="nofollow">Logcat Image </a> In android coding of share button got <code>NullPointerException</code> on this line <code>mShareActionProvider.setShareIntent(getDefaultShareIntent());</code>
Can anyone solve this error? </p>
<pre><code> @Override
public boolean... | Logcat Image In android coding of share button got NullPointerException on this line mShareActionProvider.setShareIntent(getDefaultShareIntent()); Can anyone solve this error? [CODE] | android|share-button | 0 | 2016-04-16T11:36:44.447Z | 2,016 | 4 | 11 | 5 | 116 | 1 | 182 | 135 | 2 | 1 | true | false | false | false | false | false | zero |
36,663,670 | How to filter response with delay and retries : RxJava | <p>Beginner to RxJava, one of the ask is to call a method which is returning observable boolean. If the method returns true than exit, if false than retry. It needs to be done multiple times with a logic of delay. For e.g in every 30 seconds it will retry if value is true.</p>
<p>Here is my observable method</p>
<... | Beginner to RxJava, one of the ask is to call a method which is returning observable boolean. If the method returns true than exit, if false than retry. It needs to be done multiple times with a logic of delay. For e.g in every 30 seconds it will retry if value is true. Here is my observable method [CODE] | rx-java|rx-android | 0 | 2016-04-16T11:39:27.447Z | 2,016 | 4 | 11 | 5 | 1,064 | 1 | 306 | 54 | 2 | 1 | true | false | false | false | false | false | zero |
36,663,683 | Part of Fragment items hides under Action bar | <p>I am learning android dev and my question might be very simple. I am stuck at the below part and requesting your help</p>
<p><strong>Description</strong></p>
<p>I am using the android's default "Navigation Drawer" activity to implement a small project. I have created a fragment and when user selects an option from... | I am learning android dev and my question might be very simple. I am stuck at the below part and requesting your help Description I am using the android's default "Navigation Drawer" activity to implement a small project. I have created a fragment and when user selects an option from Navigation drawer, the fragment ope... | android|android-fragments | 14 | 2016-04-16T11:40:46.603Z | 2,016 | 4 | 11 | 5 | 7,772 | 2 | 791 | 45 | 2 | 2 | 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.