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,679,701 | java.lang.IllegalStateException when to display images in json object string | <p>I have <img> tags in the json that I am trying to parse. I used the accepted answer in <a href="https://stackoverflow.com/a/28521900/6215423">this question</a> to display the
images. But the app is crashing with a <code>java.lang.IllegalStateException</code>.
Below are the classes and stacktrace:</p>
<p><s... | I have <img> tags in the json that I am trying to parse. I used the accepted answer in this question to display the images. But the app is crashing with a java.lang.IllegalStateException . Below are the classes and stacktrace: PostDetails [CODE] UILImageGetter [CODE] StackTrace [CODE] From the stacktrace, line 198 is S... | java|android|json | 0 | 2016-04-17T17:17:11.157Z | 2,016 | 4 | 17 | 6 | 267 | 1 | 663 | 76 | 3 | 3 | true | false | false | false | false | false | zero |
36,679,723 | Use one alarm manager to cancel another | <p>I am doing a reminder application. It will reminder for a duration at the interval of time. For example, remind every five minutes for an hour. In this case, I am trying to set two alarm. One is used to do the reminder for every five minutes, the other one is used to cancel the reminder alarm after one hour. Here is... | I am doing a reminder application. It will reminder for a duration at the interval of time. For example, remind every five minutes for an hour. In this case, I am trying to set two alarm. One is used to do the reminder for every five minutes, the other one is used to cancel the reminder alarm after one hour. Here is my... | android|alarmmanager | 0 | 2016-04-17T17:19:06.310Z | 2,016 | 4 | 17 | 6 | 57 | 1 | 624 | 39 | 2 | 1 | true | false | false | false | false | false | zero |
36,679,729 | react native sliding navigation bar | <p>I'm with react native on android, and i have the navigator component with it's navigation bar.
In my main view i have a tabbed android-like component, and list views to display my articles.</p>
<p>So my question is : what would be the best scheme to create a hide-on-slide navigation bar ? something that follow the ... | I'm with react native on android, and i have the navigator component with it's navigation bar. In my main view i have a tabbed android-like component, and list views to display my articles. So my question is : what would be the best scheme to create a hide-on-slide navigation bar ? something that follow the scroll of t... | javascript|android|reactjs|react-native | 1 | 2016-04-17T17:19:31.437Z | 2,016 | 4 | 17 | 6 | 1,005 | 0 | 1,174 | 35 | 4 | 0 | false | true | false | false | false | false | low |
36,679,745 | Android establish HTTPSConnection with certificate | <p>I am developing an Android application under Android Studio and I need to establish HTTPS connection. So far I've succeeded, but with current implementation I am trusting all hosts, which could easily lead to man-in-the-middle attack. So I was wondering is there a way to trust an exact certificate and no other? So f... | I am developing an Android application under Android Studio and I need to establish HTTPS connection. So far I've succeeded, but with current implementation I am trusting all hosts, which could easily lead to man-in-the-middle attack. So I was wondering is there a way to trust an exact certificate and no other? So far ... | java|android|ssl|android-studio|https | 1 | 2016-04-17T17:21:21.723Z | 2,016 | 4 | 17 | 6 | 69 | 3 | 574 | 50 | 5 | 2 | true | false | false | false | false | false | low |
36,679,770 | using android.support.design library for lowest API level in android | <p>i use material design (Floating Action Button) in my project. so i import <code>android.support.design.widget.FloatingActionButton</code> and use <code>android.support.v7</code>for using ToolBar and AppCompat theme in lowest API levels. </p>
<p>at last as i run mine in API 17+ , it runs completely. but for lower it... | i use material design (Floating Action Button) in my project. so i import android.support.design.widget.FloatingActionButton and use android.support.v7 for using ToolBar and AppCompat theme in lowest API levels. at last as i run mine in API 17+ , it runs completely. but for lower it show HAS STOPPED error, and LogCat s... | android | 1 | 2016-04-17T17:24:10.490Z | 2,016 | 4 | 17 | 6 | 313 | 2 | 536 | 68 | 1 | 5 | true | false | false | false | false | false | low |
36,679,772 | Does the Android tag dispatcher handle the NDEF records synchronously or asynchronously? | <p>I read along several times the documentation from Android Developer website about the NFC tag dispatcher (<a href="http://developer.android.com/guide/topics/connectivity/nfc/index.html" rel="nofollow">http://developer.android.com/guide/topics/connectivity/nfc/index.html</a>), but I can't figure out how the Android t... | I read along several times the documentation from Android Developer website about the NFC tag dispatcher ( http://developer.android.com/guide/topics/connectivity/nfc/index.html ), but I can't figure out how the Android tag dispatcher is handling multiple NDEF records when reading them. The process is crystal clear when... | android|android-intent|nfc|ndef | 1 | 2016-04-17T17:24:17.640Z | 2,016 | 4 | 17 | 6 | 121 | 1 | 1,087 | 88 | 4 | 0 | false | false | false | false | false | false | low |
36,679,847 | Send argument to fragment in a listener in a loop | <p>Hey Stackoverflow community,</p>
<p>I am working on an android app for an academic project, the goal is to retrieve data using an API and display it on a map using markers.</p>
<p>I would like to display some details in a fragment when the user click on the marker. I use beginTransaction and setArguments to do so ... | Hey Stackoverflow community, I am working on an android app for an academic project, the goal is to retrieve data using an API and display it on a map using markers. I would like to display some details in a fragment when the user click on the marker. I use beginTransaction and setArguments to do so and it works for on... | java|android|google-maps|android-fragments|google-maps-markers | 1 | 2016-04-17T17:32:10.443Z | 2,016 | 4 | 17 | 6 | 257 | 1 | 705 | 49 | 5 | 3 | true | false | false | false | false | false | low |
36,679,887 | SetText NullPointerException in Custom Adapter | <p>The custom adapter class forms a view but gives a null pointer exception while setting the text of list items.</p>
<p><strong>NotificatitionAdabter.java</strong></p>
<pre><code> public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder mViewHolder;
if (convertView == null) {
... | The custom adapter class forms a view but gives a null pointer exception while setting the text of list items. NotificatitionAdabter.java [CODE] The gettext is also working for the above view but setText giving NPE.Double checked all xml files for any typo [CODE] DataSourceModel [CODE] Debug [CODE] row.xml [CODE] getit... | java|android|baseadapter|settext | 0 | 2016-04-17T17:36:45.017Z | 2,016 | 4 | 17 | 6 | 591 | 2 | 353 | 46 | 4 | 6 | true | false | false | false | false | false | zero |
36,679,951 | Need help on Intent Android | <p>How are you all? New on Intent and do not know much about it. I have two activities. First activity has a button to start second activity. Here is how:</p>
<pre><code> private void main_button_start_from_long_clicklistener()
</code></pre>
<p>{</p>
<pre><code> main_button_start_from.setOnLongClickListener(new OnL... | How are you all? New on Intent and do not know much about it. I have two activities. First activity has a button to start second activity. Here is how: [CODE] { [CODE] } Now second activity has an Edittext to take input and send to first activity to display. Here is the code: [CODE] And first activity has also: [CODE] ... | android|android-intent | 0 | 2016-04-17T17:42:16.817Z | 2,016 | 4 | 17 | 6 | 38 | 1 | 387 | 27 | 2 | 5 | true | false | false | false | false | false | zero |
36,680,022 | Handler can't instantiated | <p>What happened to Handler class. Why it is showing to me this type of error? I can solve it by calling Handler override methods. But I don't want them. What should I do. </p>
<pre><code>public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sa... | What happened to Handler class. Why it is showing to me this type of error? I can solve it by calling Handler override methods. But I don't want them. What should I do. [CODE] even when I call the Handler methods, the error is still exist. [CODE] | android|android-layout|android-studio|android-handler | 0 | 2016-04-17T17:48:45.043Z | 2,016 | 4 | 17 | 6 | 1,733 | 1 | 246 | 26 | 4 | 2 | true | false | false | false | false | false | zero |
36,680,037 | CipherOutputStream corrupting headers in Android | <p>I'm using a simple CipherInput/OutputStream to try to encrypt/decrypt files in android.</p>
<p>The problem I'm having is that it seems to be corrupting the first few bytes of the file but not the rest. Here's an example of an output from a simple text file:</p>
<p>Original Text:</p>
<pre><code>"Test for Android ... | I'm using a simple CipherInput/OutputStream to try to encrypt/decrypt files in android. The problem I'm having is that it seems to be corrupting the first few bytes of the file but not the rest. Here's an example of an output from a simple text file: Original Text: [CODE] Cycled through Encryption and Decryption: [CODE... | android|encryption|aes|encryption-symmetric|pbkdf2 | 1 | 2016-04-17T17:49:49.047Z | 2,016 | 4 | 17 | 6 | 193 | 1 | 889 | 48 | 5 | 5 | true | false | false | false | false | false | low |
36,680,128 | Frida spawn process failed on Android | <p>After ran the command "frida-trace -U -i open -f com.example.hellojni" , the application HelloJni would be set up normally. But after I executed the fellowing python script, i got a crash.</p>
<pre><code>device = frida.get_device_manager().enumerate_devices()[-1]
session = device.attach(device.spawn(["com.example.h... | After ran the command "frida-trace -U -i open -f com.example.hellojni" , the application HelloJni would be set up normally. But after I executed the fellowing python script, i got a crash. [CODE] The log "hello" showed in the console. But the app just crashed, even the UI didn't show up. And the logcat printed somethin... | android|frida | 1 | 2016-04-17T17:57:30.673Z | 2,016 | 4 | 17 | 6 | 11,354 | 1 | 453 | 37 | 2 | 2 | true | false | true | false | false | false | low |
36,680,161 | How to capture enclosing scope in Runnable | <p>I'm trying to do a stream of updates on a <code>HandlerThread</code> using the class below, but I have a couple of questions about how variable capture works in Java.</p>
<p><strong>[1]</strong> Is <code>ret</code> captured from the enclosing scope by reference?</p>
<p><strong>[2]</strong> Does <code>this</code> r... | I'm trying to do a stream of updates on a HandlerThread using the class below, but I have a couple of questions about how variable capture works in Java. [1] Is ret captured from the enclosing scope by reference? [2] Does this refer to the Runnable , or is it captured from the enclosing scope? [bonus] StartStream shoul... | java|android|multithreading | 2 | 2016-04-17T18:00:14.437Z | 2,016 | 4 | 18 | 6 | 1,295 | 2 | 454 | 42 | 3 | 1 | true | false | false | false | false | false | low |
36,680,202 | Android: How to Convert a String to JSON and get the data? | <p>Though there are many resources and links given, all of them seem to be not working for me. I have a php code which returns a JSON. I want to extract values from it in my Android application.Here goes the php code.</p>
<pre><code><?php
if($_SERVER['REQUEST_METHOD']=='POST'){
$username1 = $_POST['usernam... | Though there are many resources and links given, all of them seem to be not working for me. I have a php code which returns a JSON. I want to extract values from it in my Android application.Here goes the php code. [CODE] And this is my MainActivity.java [CODE] | php|android|json|android-studio|getjson | 0 | 2016-04-17T18:04:44.403Z | 2,016 | 4 | 18 | 6 | 881 | 2 | 261 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
36,680,248 | Class Not Found Exception during runtime | <p>I am developing an android app and have run into a java.lang.ClassNotFoundException. A couple of hours ago I was happily building my app and when I tried to compile it it crashed with this error above during during runtime, but fully compiled. </p>
<p>I am confused as to what could be the cause of the problem as it... | I am developing an android app and have run into a java.lang.ClassNotFoundException. A couple of hours ago I was happily building my app and when I tried to compile it it crashed with this error above during during runtime, but fully compiled. I am confused as to what could be the cause of the problem as it is not the ... | java|android|runtime-error|classnotfoundexception|android-facebook | 2 | 2016-04-17T18:08:45.643Z | 2,016 | 4 | 18 | 6 | 729 | 0 | 1,182 | 40 | 5 | 4 | true | true | false | false | false | false | low |
36,680,337 | Tabs stop responding to clicks with API level lower than 22 | <p>I'm using a tablayout with viewpager to swetch between different pages. This works fine when I compile with Android version 6.0 and target Android 5.1 (Lollipop) but I can't switch to different fragment by clicking the tabs when I target other versions of Android like KitKat or Ice Cream.
What is the minimum versio... | I'm using a tablayout with viewpager to swetch between different pages. This works fine when I compile with Android version 6.0 and target Android 5.1 (Lollipop) but I can't switch to different fragment by clicking the tabs when I target other versions of Android like KitKat or Ice Cream. What is the minimum version su... | android|android-fragments|xamarin|android-viewpager|android-support-library | 1 | 2016-04-17T18:15:03.917Z | 2,016 | 4 | 18 | 6 | 569 | 1 | 832 | 59 | 5 | 5 | true | false | false | false | false | false | low |
36,680,435 | TabLayout font can't be changed | <p>Hello Everyone i'm working on a tabbed app in which i have a toolbar reserved for the app logo and the tablayout with the tabs name in it,i wanted to change the font in those tabs names but i couldn't figure it out since the name are not actual textviews,i searched well in the forum and everywhere else but couldn't ... | Hello Everyone i'm working on a tabbed app in which i have a toolbar reserved for the app logo and the tablayout with the tabs name in it,i wanted to change the font in those tabs names but i couldn't figure it out since the name are not actual textviews,i searched well in the forum and everywhere else but couldn't fin... | java|android|xml | 1 | 2016-04-17T18:24:26.343Z | 2,016 | 4 | 18 | 6 | 5,449 | 1 | 493 | 31 | 3 | 2 | true | false | true | false | false | false | low |
36,680,525 | Sort list by date and time | <p>I am still a newbie in android developing and have a problem with my ToDo application. </p>
<p>At the moment my listview displaying all saved ToDo's is only sorted by the first two digits (the days!) of the date but the date is stored in this format: "dd.mm.yyyy"</p>
<p>My target is to sort my listview in ascendin... | I am still a newbie in android developing and have a problem with my ToDo application. At the moment my listview displaying all saved ToDo's is only sorted by the first two digits (the days!) of the date but the date is stored in this format: "dd.mm.yyyy" My target is to sort my listview in ascending order by date (ToD... | android|sorting|date|listview|android-contentprovider | 0 | 2016-04-17T18:31:06.107Z | 2,016 | 4 | 18 | 6 | 1,252 | 2 | 590 | 26 | 5 | 1 | true | false | false | false | false | false | zero |
36,680,630 | Android: set gravity of RecyclerView's items | <p>I have a recyclerView that behaves like a list, when I delete an item, all the others go up, I want them to go down instead. I'm thinking about setting gravity to the items, or inverting the positions in the adapter, making the bottom position 0.</p>
<p><strong>My adapter (custom):</strong></p>
<pre><code>public c... | I have a recyclerView that behaves like a list, when I delete an item, all the others go up, I want them to go down instead. I'm thinking about setting gravity to the items, or inverting the positions in the adapter, making the bottom position 0. My adapter (custom): [CODE] Implementation: [CODE] | java|android|android-recyclerview | 3 | 2016-04-17T18:40:58.393Z | 2,016 | 4 | 18 | 6 | 2,250 | 1 | 297 | 44 | 3 | 2 | true | false | false | false | false | false | low |
36,680,683 | App rejected because of Google Pay | <p>I wanted to submit my app for the beta in the Google Developer Console, but it got rejected. The mail Google send me said, the reason is an incorrect use of Google Pay. The thing is, I dont use Google Pay in my App at all. Also when searching my manifest for the line, Google said I should remove in my App when dont ... | I wanted to submit my app for the beta in the Google Developer Console, but it got rejected. The mail Google send me said, the reason is an incorrect use of Google Pay. The thing is, I dont use Google Pay in my App at all. Also when searching my manifest for the line, Google said I should remove in my App when dont wan... | android|google-play|google-pay | 6 | 2016-04-17T18:44:54.163Z | 2,016 | 4 | 18 | 6 | 1,316 | 1 | 624 | 34 | 3 | 1 | true | false | false | false | false | false | medium |
36,680,693 | Change background color default tab on kivy | <p>How can I change the background color of the default tab on kivy?
I'm able to change the background of the content and other tabs, but the default tab remains unchanged, this is my code:</p>
<pre><code>class DAP(App):
title = u'Aplicativo do DAP'
# Funções para evitar que o aplicativo desligue ao mudar o f... | How can I change the background color of the default tab on kivy? I'm able to change the background of the content and other tabs, but the default tab remains unchanged, this is my code: [CODE] any idea? | android|python|kivy | 0 | 2016-04-17T18:45:49.747Z | 2,016 | 4 | 18 | 6 | 634 | 1 | 203 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,680,717 | Call to API is not returning response in Android but working fine in Browser | <p>I'm building a Cordova Ionic application which fetches JSON response on button click and display it. It's working fine in browser but it's not displaying anything in android.</p>
<pre><code>angular.module('starter', ['ionic'])
.config(function($ionicConfigProvider) {
$ionicConfigProvider.navBar.alignTitle('cente... | I'm building a Cordova Ionic application which fetches JSON response on button click and display it. It's working fine in browser but it's not displaying anything in android. [CODE] How would I know if any exception occurred while testing the app in android? [Edit] I'm new to Android & Cordova. | android|angularjs|cordova|ionic-framework | 0 | 2016-04-17T18:47:15.997Z | 2,016 | 4 | 18 | 6 | 1,100 | 2 | 295 | 76 | 4 | 1 | true | false | false | false | false | false | zero |
36,680,722 | Gradle group module dependencies based on flavors | <p>The problem that I have is that the regular</p>
<pre><code>dependencies {
compile project(path: ':moduleOne', configuration: "typeRelease")
}
</code></pre>
<p>is not enough for my app's purposes. I have quite a list of dependencies with different configurations (and flavors + build types) involved, and what I ... | The problem that I have is that the regular [CODE] is not enough for my app's purposes. I have quite a list of dependencies with different configurations (and flavors + build types) involved, and what I want to do now is to add some kind of a method to leverage those dependencies. For example, [CODE] Is it possible to ... | android|gradle | 4 | 2016-04-17T18:47:22.347Z | 2,016 | 4 | 18 | 6 | 132 | 0 | 722 | 49 | 2 | 2 | true | true | false | false | false | false | low |
36,680,735 | GestureListener after change orientation. Android. Xamarin. c# | <p>I am building an application that uses camera to take pictures and record video. I implement my activity from <code>GestureDetector.IOnGestureListener</code>and <code>Wiew.IOnTouchListener</code> to detect the screen taps.</p>
<pre><code> public override bool OnTouchEvent(MotionEvent e)
{
gestureDetecto... | I am building an application that uses camera to take pictures and record video. I implement my activity from GestureDetector.IOnGestureListener and Wiew.IOnTouchListener to detect the screen taps. [CODE] In application I add ScrollView in which I put LinearLayoutand when I take photo/video, I dynamically create Relati... | c#|android|video|xamarin|touch | 0 | 2016-04-17T18:48:12.333Z | 2,016 | 4 | 18 | 6 | 101 | 0 | 791 | 62 | 5 | 2 | true | true | false | false | false | false | zero |
36,680,743 | ImageView emptied on subsequent activity launches | <p>I'm using this AsyncTask to load an image from a URL and populate an ImageView with that image:</p>
<pre><code>new DownloadImageTask((ImageView) findViewById(R.id.headerIV)).execute(imageURL);
</code></pre>
<p>and</p>
<pre><code>private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> {
... | I'm using this AsyncTask to load an image from a URL and populate an ImageView with that image: [CODE] and [CODE] I noticed that whenever I background my app and relaunch the activity, the ImageViews are emptied. Various checks on the ImageViews show that they are null in onCreate() , and so if I want to show images ag... | android|android-asynctask|imageview | 0 | 2016-04-17T18:48:47.997Z | 2,016 | 4 | 18 | 6 | 29 | 2 | 543 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
36,680,744 | Video File to String and back - Corrupted File | <p>I'm writing an app that takes a 5 second video (.mp4 file) and uploads it to a server as a base64 String. The user can download the video, at which point the String should be converted back to a File. </p>
<p>I'm running into a problem where the downloaded File is saved, but it is slightly smaller (2 to 3 KB smalle... | I'm writing an app that takes a 5 second video (.mp4 file) and uploads it to a server as a base64 String. The user can download the video, at which point the String should be converted back to a File. I'm running into a problem where the downloaded File is saved, but it is slightly smaller (2 to 3 KB smaller) than the ... | java|android|file|video|fileutils | 1 | 2016-04-17T18:48:54.297Z | 2,016 | 4 | 18 | 6 | 437 | 0 | 1,477 | 46 | 5 | 3 | true | true | false | false | false | false | low |
36,680,927 | Ion.context uses same object for every request | <p>I was just going through the source code of <a href="https://github.com/koush/ion" rel="nofollow">Ion</a> and found that Ion uses static HashMap <code>static HashMap<String, Ion> instances = new HashMap<String, Ion>();</code> for storing Ion objects and calling <code>Ion.with(context)</code> should retur... | I was just going through the source code of Ion and found that Ion uses static HashMap static HashMap<String, Ion> instances = new HashMap<String, Ion>(); for storing Ion objects and calling Ion.with(context) should return the same instance as evident from the code (correct me if I am wrong) [CODE] but when I compare o... | android|android-ion | 0 | 2016-04-17T19:05:19.033Z | 2,016 | 4 | 19 | 6 | 72 | 1 | 390 | 46 | 2 | 2 | true | false | false | false | false | false | zero |
36,680,991 | Android SQLite Query syntax error CREATE_TABLE | <p>I am not sure what is wrong with this query syntax but it just never works. My programming grabs all the correct info but fails at this point.</p>
<pre><code> public String CREATE_QUERY = "CREATE_TABLE "+ReceiptsTable.TableInformation.TABLE_NAME+"("+ReceiptsTable.TableInformation.RECEIPT_ID+" STRING,"+ReceiptsTa... | I am not sure what is wrong with this query syntax but it just never works. My programming grabs all the correct info but fails at this point. [CODE] Here is the error that it gives: [CODE] So to me, it finds the right names but cannot run it. Im guessing ive missed a colon or something. Thanks in advance EDIT: I just ... | android|sqlite|android-studio | -3 | 2016-04-17T19:10:58.533Z | 2,016 | 4 | 19 | 6 | 141 | 1 | 405 | 46 | 3 | 4 | true | false | false | false | false | true | negative |
36,681,013 | How to show a Google Play Games "Welcome Back" toast for android on Unity3D? | <p>I'm already using the official plugin, logging in for the first time works perfectly and we can see the "Welcome + username" with a little avatar message popping up.</p>
<p>However, I do not see the "Welcome back" message that supposedly should appear whenever the user logs in silently (not showing a login prompt).... | I'm already using the official plugin, logging in for the first time works perfectly and we can see the "Welcome + username" with a little avatar message popping up. However, I do not see the "Welcome back" message that supposedly should appear whenever the user logs in silently (not showing a login prompt). In some ga... | c#|android|unity3d|toast|google-play-games | 3 | 2016-04-17T19:13:53.023Z | 2,016 | 4 | 19 | 6 | 2,527 | 2 | 679 | 76 | 5 | 1 | true | false | false | false | false | false | low |
36,681,064 | How to pause at an Android lifecycle stage until callback is called? | <p>I am trying to use Google Maps API in my Android app. I need to call getMapAsync() to retrieve the map object asynchronously and I need to get the GoogleMap object instance before my fragment calls onResume(), because otherwise the GoogleMap object will still be null and it will throw an exception. </p>
<p>Therefor... | I am trying to use Google Maps API in my Android app. I need to call getMapAsync() to retrieve the map object asynchronously and I need to get the GoogleMap object instance before my fragment calls onResume(), because otherwise the GoogleMap object will still be null and it will throw an exception. Therefore, I want th... | android|multithreading|google-maps | 0 | 2016-04-17T19:18:01.350Z | 2,016 | 4 | 19 | 6 | 1,275 | 3 | 1,000 | 68 | 3 | 0 | false | false | false | false | false | false | zero |
36,681,300 | FirstName field Validations in Android Studio | <p><a href="http://i.stack.imgur.com/snEfB.png" rel="nofollow">Sample code format</a></p>
<p>Hello everyone, I have added this line of code for validation to check whether the first name field contains numbers or special characters however, upon testing it it seems the firstname always shows error
can anyone pls help... | Sample code format Hello everyone, I have added this line of code for validation to check whether the first name field contains numbers or special characters however, upon testing it it seems the firstname always shows error can anyone pls help. big thanks! [CODE] | android|validation|android-studio|android-edittext | 1 | 2016-04-17T19:39:58.280Z | 2,016 | 4 | 19 | 6 | 5,631 | 1 | 264 | 45 | 4 | 1 | true | false | true | false | false | false | low |
36,681,320 | How to bind google map markers in a circle? | <p>I need to bind multiple markers in a google map circle. I am calling following method from <code>onMapReady</code> to load markers:</p>
<pre><code>void addMarker()
{
mMap.clear();
for (int i = 0; i < response.getData().getCount(); i++) {
float lat = response.getData().get(i).getLat();
float ... | I need to bind multiple markers in a google map circle. I am calling following method from onMapReady to load markers: [CODE] As per above code I am able to draw a circle at given location and add markers on given coordinates . Everything is working fine like If I am increasing the size of circle then the map will adju... | java|android|google-maps|google-maps-markers|google-maps-android-api-2 | 1 | 2016-04-17T19:41:54.130Z | 2,016 | 4 | 19 | 6 | 2,091 | 1 | 588 | 43 | 5 | 1 | true | false | false | false | false | false | low |
36,681,420 | Incrementing variable on sensor event change | <p>I've got this snippet of code here, and in my head I made it to set the caloriestext string to what ever cCounter is and cCounter is a string that gets it's text from an integer called cburn. The problem is when I run the app, the caloriestext is set to 0.0 and does not update. </p>
<p>I know this probably seems ru... | I've got this snippet of code here, and in my head I made it to set the caloriestext string to what ever cCounter is and cCounter is a string that gets it's text from an integer called cburn. The problem is when I run the app, the caloriestext is set to 0.0 and does not update. I know this probably seems rudimentary, b... | java|android|android-studio | 0 | 2016-04-17T19:50:18.173Z | 2,016 | 4 | 19 | 6 | 359 | 1 | 518 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
36,681,494 | Update function in content provider not updating database | <p>I am struggling to get the update method working in my content provider, the update returns 0 and there is no updated information in the table. The table is populated at this point. </p>
<p>Here's the update function:</p>
<pre><code> @Override
public int update(Uri uri, ContentValues values, String selection, St... | I am struggling to get the update method working in my content provider, the update returns 0 and there is no updated information in the table. The table is populated at this point. Here's the update function: [CODE] Here's where I call the update of the content provider: [CODE] | android|android-contentprovider | 0 | 2016-04-17T19:56:53.783Z | 2,016 | 4 | 19 | 6 | 790 | 1 | 279 | 57 | 2 | 2 | true | false | false | false | false | false | zero |
36,681,567 | Android Library error | <p>Hello so I built a android library to unity, and in the beggining it worked fine but know is giving me this error <br>
I already tried to update, create a new one, and nothing works <br>
Any help?</p>
<p><a href="http://i.stack.imgur.com/sHk4T.png" rel="nofollow">Error image</a></p>
<p>Manifest: </p>
<pre><code>&... | Hello so I built a android library to unity, and in the beggining it worked fine but know is giving me this error I already tried to update, create a new one, and nothing works Any help? Error image Manifest: [CODE] first error in xmlns - URI is not registered (Settings | ..) | java|android|sbt-android-plugin | 0 | 2016-04-17T20:03:17.347Z | 2,016 | 4 | 20 | 6 | 48 | 1 | 276 | 21 | 3 | 1 | true | false | false | false | false | false | zero |
36,681,603 | how to extract a png file for the icon of the last installed app | <p>I was wondering if it is possible to get the icon (in png form) from the last installed app that I download on my phone? </p>
<p>I am writing an app that I can put on my phone, which will extract the last installed app's package name, common name, and icon (in png form). I got the package name and common name, but ... | I was wondering if it is possible to get the icon (in png form) from the last installed app that I download on my phone? I am writing an app that I can put on my phone, which will extract the last installed app's package name, common name, and icon (in png form). I got the package name and common name, but now I am try... | java|android|bitmap|broadcastreceiver|imageicon | 0 | 2016-04-17T20:05:57.347Z | 2,016 | 4 | 20 | 6 | 292 | 1 | 536 | 64 | 5 | 1 | true | false | false | false | false | false | zero |
36,681,700 | couchbase Sync gateway fails to connect in android | <p>I have been trying to run a <a href="https://github.com/couchbaselabs/GrocerySync-Android" rel="nofollow">Grocery-sync couchbase androi demo</a> on Windows machine.</p>
<p>I have download the <a href="http://www.couchbase.com/nosql-databases/downloads#" rel="nofollow">Sync-Gateway</a> from Couchbase mobile. </p>
... | I have been trying to run a Grocery-sync couchbase androi demo on Windows machine. I have download the Sync-Gateway from Couchbase mobile. While running this demo I am able to insert an Item in local Cblite. But It doesn't pull any docs from the SyncGateway . When I see the request on Sync-Gateway - It shows 404 no suc... | android|couchbase|couchbase-lite|couchbase-sync-gateway | 0 | 2016-04-17T20:15:15Z | -1 | -1 | -1 | -1 | 388 | 1 | 1,989 | 50 | 4 | 0 | false | false | false | false | false | false | zero |
36,682,060 | Using layout_weight changes the textview size | <p>I have two TextViews which I want to be centered (in the middle) and they should have a fix Size of about 30 dp, how can I achieve that?</p>
<pre><code><LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
andro... | I have two TextViews which I want to be centered (in the middle) and they should have a fix Size of about 30 dp, how can I achieve that? [CODE] | android|android-layout|android-layout-weight | 0 | 2016-04-17T20:47:21.257Z | 2,016 | 4 | 20 | 6 | 621 | 2 | 143 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
36,682,107 | Check the content of each textview from a listview | <p>I have a listview,and each item consists of 3 different textviews. I need to check if the content of the third textview has a specific value. </p>
<p>Any ideas about how to do this? I think it should be implemented inside the adapter class.</p>
<pre><code>public class CustomAdapterMenu extends ArrayAdapter<Menu... | I have a listview,and each item consists of 3 different textviews. I need to check if the content of the third textview has a specific value. Any ideas about how to do this? I think it should be implemented inside the adapter class. [CODE] | android|listview|android-arrayadapter | 0 | 2016-04-17T20:53:50.653Z | 2,016 | 4 | 20 | 6 | 67 | 3 | 239 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
36,682,290 | unfortunately,my application has stopped | <p>I am trying "to create and maintain data base in android application " code is looking fine but after click submit button application has been crash which is not expected;</p>
<p>layout.xml file</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://sch... | I am trying "to create and maintain data base in android application " code is looking fine but after click submit button application has been crash which is not expected; layout.xml file [CODE] mainActivity.java file [CODE] DataBaseOpreation.java file (this file maintaining data base) [CODE] manifest.xml file [CODE] | android | 0 | 2016-04-17T21:12:03.373Z | 2,016 | 4 | 21 | 6 | 59 | 1 | 318 | 40 | 1 | 4 | true | false | false | false | false | false | zero |
36,682,327 | Android Tab Fragment Formatting Bug | <p>*EDIT: I've included the code for my <code>sytles.xml</code> file at the bottom of this post, since the bug might be in there.</p>
<p>I'm developing a basic Android app that uses a tab interface, where each tab contains a corresponding fragment.</p>
<p><a href="https://i.stack.imgur.com/9mp5dl.png" rel="nofollow n... | *EDIT: I've included the code for my sytles.xml file at the bottom of this post, since the bug might be in there. I'm developing a basic Android app that uses a tab interface, where each tab contains a corresponding fragment. I'm encountering a formatting bug when I switch to the first tab. As you can see in the next i... | android|android-fragments|android-5.0-lollipop | 0 | 2016-04-17T21:15:15.877Z | 2,016 | 4 | 21 | 6 | 58 | 1 | 1,076 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
36,682,384 | RecyclerViewAdapter OnBindViewHolder has null IDs | <p>I'm writing a Weather forecast app and I wanted to try to implement a RecyclerView so that I can have essentially a side-scrolling ListView. However, my onBindViewHolder() throws NPEs when I set the text due to view IDs being null, even though the ID is not null when the ViewHolder is created. I would appreciate any... | I'm writing a Weather forecast app and I wanted to try to implement a RecyclerView so that I can have essentially a side-scrolling ListView. However, my onBindViewHolder() throws NPEs when I set the text due to view IDs being null, even though the ID is not null when the ViewHolder is created. I would appreciate any he... | java|android|android-recyclerview | 1 | 2016-04-17T21:21:17.920Z | 2,016 | 4 | 21 | 6 | 2,444 | 1 | 556 | 49 | 3 | 7 | true | false | false | false | false | false | low |
36,682,421 | Libgdx Scene2d Progress Bar never empty | <p>I've been searching around for help for a while now. Finally it seems quicker to ask than to keep hunting. </p>
<p><a href="http://i.stack.imgur.com/uvNpm.png" rel="nofollow">Progress bar not empty at 0 value</a></p>
<p>Here we can see that even at value 0, the knob of the progress bar is still visible. Since t... | I've been searching around for help for a while now. Finally it seems quicker to ask than to keep hunting. Progress bar not empty at 0 value Here we can see that even at value 0, the knob of the progress bar is still visible. Since the player is dead, this should be empty. I'd really like to use the scene2d progressbar... | java|android|libgdx | 1 | 2016-04-17T21:25:38.523Z | 2,016 | 4 | 21 | 6 | 343 | 1 | 394 | 39 | 3 | 1 | true | false | false | false | false | false | low |
36,682,494 | Android TurnBasedMutliplayer No Callbacks | <p>I have been following the guide here to add TurnBased Multiplayer to an android game. <a href="https://developers.google.com/games/services/android/turnbasedMultiplayer#before_you_begin" rel="nofollow">https://developers.google.com/games/services/android/turnbasedMultiplayer#before_you_begin</a>. I have coded everyt... | I have been following the guide here to add TurnBased Multiplayer to an android game. https://developers.google.com/games/services/android/turnbasedMultiplayer#before_you_begin . I have coded everything up and am able to have users login to google play services. Then using the BaseGameUtils I attempt to create a match ... | android|multiplayer | 1 | 2016-04-17T21:36:24.003Z | 2,016 | 4 | 21 | 6 | 83 | 1 | 1,113 | 41 | 2 | 2 | true | false | false | false | false | false | low |
36,682,711 | how to center align a text inside textView in RelativeLayout with a sibling | <p>I have code below which center aligns the text inside a TextView but its a hack. Please see my comment in between.</p>
<p>Is there a way I can achieve the same result but without the hack?</p>
<p><strong>Please note</strong> I want <strong><em>text</em></strong> to be center aligned wrt. Screen irrespective of the... | I have code below which center aligns the text inside a TextView but its a hack. Please see my comment in between. Is there a way I can achieve the same result but without the hack? Please note I want text to be center aligned wrt. Screen irrespective of the width of the sibling (in case below 'action_back') [CODE] | android|android-layout | 0 | 2016-04-17T22:01:02.990Z | 2,016 | 4 | 22 | 6 | 106 | 3 | 316 | 75 | 2 | 1 | true | false | false | false | false | false | zero |
36,682,746 | Black Screen Shows in Android ( Splash Screen ) | <p><strong>What is Problem ?</strong></p>
<p>My app is social forum app. When i try to login app. After splash screen it shows black screen. How Can I Resolve this ?</p>
<p><strong>What you have tried ?</strong></p>
<ol>
<li><p>when i try it on emulator. it sometimes work but if i try to logout and login. black scre... | What is Problem ? My app is social forum app. When i try to login app. After splash screen it shows black screen. How Can I Resolve this ? What you have tried ? when i try it on emulator. it sometimes work but if i try to logout and login. black screen comes. i changed sleep time(8000-9000-10000). it sometimes work but... | android|android-studio|splash-screen | 0 | 2016-04-17T22:05:06.603Z | 2,016 | 4 | 22 | 6 | 1,698 | 1 | 574 | 47 | 3 | 2 | true | false | false | false | false | false | zero |
36,682,751 | Addition using EditText in Android Studio | <p>I need to add 4 different numbers that are going to be introduced in 4 different EditTexts by a user. I've made a code but I don't know how to take those 4 numbers and add them to have just one, can someone help me? Here's the code:</p>
<pre><code>import android.content.Intent;
import android.support.v7.app.AppComp... | I need to add 4 different numbers that are going to be introduced in 4 different EditTexts by a user. I've made a code but I don't know how to take those 4 numbers and add them to have just one, can someone help me? Here's the code: [CODE] Thanks in advance, | java|android|android-studio | 0 | 2016-04-17T22:05:35.707Z | 2,016 | 4 | 22 | 6 | 486 | 3 | 258 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
36,682,788 | Retained fragments and layout change crashes android app | <p>I'm working on an app with a team, that by default <strong>sets retained to true</strong> on all fragments.
I was trying to set up a portrait and landscape layouts for our tablet, the landscape having master/detail, and the portrait just having the master. Following the android guide on two pane layout, to check </p... | I'm working on an app with a team, that by default sets retained to true on all fragments. I was trying to set up a portrait and landscape layouts for our tablet, the landscape having master/detail, and the portrait just having the master. Following the android guide on two pane layout, to check [CODE] If I go into lan... | android|android-layout|android-fragments | 2 | 2016-04-17T22:10:06.480Z | 2,016 | 4 | 22 | 6 | 509 | 0 | 1,681 | 56 | 3 | 3 | true | true | false | false | false | false | low |
36,682,819 | How do I save/restore the Images downloaded from json across configuration changes | <p>I am successfully fetching, parsing and populating views from the data gotten from JSON.</p>
<p>But there's a bug that's plaguing the app: inability to save and restore the populated data after configuration change.</p>
<p>I can successfully save and restore strings but images and formatted html is my problem.</p>... | I am successfully fetching, parsing and populating views from the data gotten from JSON. But there's a bug that's plaguing the app: inability to save and restore the populated data after configuration change. I can successfully save and restore strings but images and formatted html is my problem. This is my code [CODE]... | android|json|android-studio | 0 | 2016-04-17T22:14:34.320Z | 2,016 | 4 | 22 | 6 | 35 | 2 | 936 | 82 | 3 | 1 | true | false | false | false | false | false | zero |
36,683,002 | Accessing custom view with findViewById | <p>I have a custom <code>EditText</code> set up in its own file <code>CustomEditText.java</code>:</p>
<pre><code>public class CustomEditText extends EditText {
...
}
</code></pre>
<p>I reference it in my activity's XML with the full name:</p>
<pre><code><LinearLayout>
<com.example.app.CustomEditTex... | I have a custom EditText set up in its own file CustomEditText.java : [CODE] I reference it in my activity's XML with the full name: [CODE] I use my custom EditText by putting this in my activity class: [CODE] I can access this customEditText normally: [CODE] But I can't access this customEditText later on with findVie... | java|android | 1 | 2016-04-17T22:38:45.437Z | 2,016 | 4 | 22 | 6 | 555 | 1 | 419 | 39 | 2 | 4 | true | false | false | false | false | false | low |
36,683,028 | Android swipe and addforce unity | <p>I am working on 2D infinite runner. I have below code to take input from screen swipe to jump, slide and run fast. I am providing jumpHeight from editor and value is 500 with frame rate of 30. Code works fine generally but sometimes player jumps too high for up swipe. Similar code works as expected if input is from ... | I am working on 2D infinite runner. I have below code to take input from screen swipe to jump, slide and run fast. I am providing jumpHeight from editor and value is 500 with frame rate of 30. Code works fine generally but sometimes player jumps too high for up swipe. Similar code works as expected if input is from Key... | android|unity3d|swipe | 4 | 2016-04-17T22:41:35.667Z | 2,016 | 4 | 22 | 6 | 1,100 | 1 | 425 | 32 | 3 | 1 | true | false | false | false | false | false | low |
36,683,114 | Why can't I connect through socket | <p>I'm making an android app that connects with PC. I'm using solution that I've found <a href="http://codesmith.in/control-pc-from-android-app-using-java/" rel="nofollow">HERE</a>
When I try to connect with PC by giving exact IP adress everything works fine. Phone connects fast with PC or (when server on PC isn't runn... | I'm making an android app that connects with PC. I'm using solution that I've found HERE When I try to connect with PC by giving exact IP adress everything works fine. Phone connects fast with PC or (when server on PC isn't running) I get info about unability to connect fast. Here is code: [CODE] But when I try to loop... | android|sockets | -1 | 2016-04-17T22:52:42.793Z | 2,016 | 4 | 22 | 6 | 105 | 2 | 824 | 34 | 2 | 3 | true | false | false | false | false | true | negative |
36,683,147 | GoogleDrive web rest query | <p>for some reason, this query works:</p>
<pre><code> FileList result = drive.files().list()
.setQ("mimeType != 'image/jpeg'")
.setPageToken(pageToken)
.execute();
</code></pre>
<p>but this:</p>
<pre><code> FileList result = drive.files().list(... | for some reason, this query works: [CODE] but this: [CODE] ps: im sure the file has the property OWNER with value owner_test this second query using addProperties, keep returning error: [CODE] i cant build queries using another properties or anything different than "mimeType ..." =( i FOUND THE SOLUTION ABOUT THE NAME ... | android|rest|drive | 1 | 2016-04-17T22:58:00.080Z | 2,016 | 4 | 22 | 6 | 47 | 0 | 564 | 26 | 3 | 3 | true | true | false | false | false | false | low |
36,683,187 | How does Canvas determine its clip bounds? | <p>I've been doing some work with Android's <code>Canvas</code>, specifically trying to determine how its <code>getClipBounds</code> results are determined. I understand <code>Canvas</code> internally keeps a transform <code>Matrix</code> which is updated as I call <code>translate</code>, <code>scale</code>, etc. but t... | I've been doing some work with Android's Canvas , specifically trying to determine how its getClipBounds results are determined. I understand Canvas internally keeps a transform Matrix which is updated as I call translate , scale , etc. but trying to replicate that Matrix 's results has baffled me. [CODE] originalViewp... | java|android|android-canvas | 7 | 2016-04-17T23:03:47.643Z | 2,016 | 4 | 23 | 6 | 1,569 | 1 | 2,070 | 42 | 3 | 5 | true | false | false | false | false | false | medium |
36,683,211 | Handler doesn't stop on button click | <p>I have a runnable which starts an activity and a handler, which lets the runnable repeat after 5 seconds. However, i implemented a "stop button" which should stop that handler, but somehow it doesn't work.
I would appreciate some help why it doesn't stop the loop.</p>
<pre><code>public class MainActivity extends A... | I have a runnable which starts an activity and a handler, which lets the runnable repeat after 5 seconds. However, i implemented a "stop button" which should stop that handler, but somehow it doesn't work. I would appreciate some help why it doesn't stop the loop. [CODE] | java|android|handler | 1 | 2016-04-17T23:09:03.403Z | 2,016 | 4 | 23 | 6 | 133 | 0 | 271 | 36 | 3 | 1 | true | true | false | false | false | false | low |
36,683,214 | Android Studios App Crashing | <p>I have created an app that requires a imageview to open a new activity in android studios. I had it working but suddenly it has stopped working and now crashes when my imageviews are selected.
Below is my code:</p>
<pre><code>public class Options extends AppCompatActivity {
@Override
protected void onCreate(Bundle... | I have created an app that requires a imageview to open a new activity in android studios. I had it working but suddenly it has stopped working and now crashes when my imageviews are selected. Below is my code: [CODE] Does anyone see why it isnt working? Its really confusing me, thanks Edit: [CODE] Edit2: Pay or Order ... | java|android|android-studio | 1 | 2016-04-17T23:09:24.333Z | 2,016 | 4 | 23 | 6 | 62 | 1 | 333 | 28 | 3 | 3 | true | false | false | false | false | false | low |
36,683,269 | android finalizer never ends and collects old objects, is it normal? | <p>my simple activity has got a listview holding 14 items(genre). when i run the app, i get the snapshot and there are one 1 GenreSelectionActivity and 14 Genre in the memory normally. then i pass to other activities and go back, there are 2 GenreSelectionActivity and 28 Genre. half of them coloured red, means in final... | my simple activity has got a listview holding 14 items(genre). when i run the app, i get the snapshot and there are one 1 GenreSelectionActivity and 14 Genre in the memory normally. then i pass to other activities and go back, there are 2 GenreSelectionActivity and 28 Genre. half of them coloured red, means in finalize... | android|listview|memory-leaks|finalizer | 1 | 2016-04-17T23:19:17.597Z | 2,016 | 4 | 23 | 6 | 50 | 1 | 585 | 68 | 4 | 2 | true | false | false | false | false | false | low |
36,683,317 | Custom list adapter onClick method returning a null view id | <p>In creating a custom list adapter to be able to click different elements in a single row entry and start different activities, I ran across a problem where my findViewById() method was returning null. Additionally, only the first item in my ListView calls the onClick method; the other rows don't register clicks.</p>... | In creating a custom list adapter to be able to click different elements in a single row entry and start different activities, I ran across a problem where my findViewById() method was returning null. Additionally, only the first item in my ListView calls the onClick method; the other rows don't register clicks. [CODE]... | android|onclick|listadapter | 2 | 2016-04-17T23:25:23.927Z | 2,016 | 4 | 23 | 6 | 422 | 2 | 528 | 59 | 3 | 4 | true | false | false | false | false | false | low |
36,683,467 | Dynamic notification icon | <p>In my android app, I'd like to show a notification where the icon is a circled number, the number depending on other factors that caused the notification. I've seen other apps do it but I'm unsure how to do it myself. I can create the icon I'm looking for in an activity, but I can't seem to create text in a drawable... | In my android app, I'd like to show a notification where the icon is a circled number, the number depending on other factors that caused the notification. I've seen other apps do it but I'm unsure how to do it myself. I can create the icon I'm looking for in an activity, but I can't seem to create text in a drawable, a... | android|xml|android-drawable | 2 | 2016-04-17T23:44:21.627Z | 2,016 | 4 | 23 | 6 | 585 | 0 | 706 | 25 | 3 | 2 | true | true | false | false | false | false | low |
36,683,495 | java.lang.ClassCastException: GridLayout.LayoutParams cannot cast to Frame.LayoutParams | <p>OS X Yosemite 10.10.5 with Android Studio 2.0</p>
<p>For didactic purpose I want to move as many <code>View</code> attributes as I can from XML to Java.</p>
<p>I've got an <code>android.support.v7.widget.RecyclerView</code> inside a <code>GridLayout</code> and I want to move RecyclerView's <code>android:layout_gra... | OS X Yosemite 10.10.5 with Android Studio 2.0 For didactic purpose I want to move as many View attributes as I can from XML to Java. I've got an android.support.v7.widget.RecyclerView inside a GridLayout and I want to move RecyclerView's android:layout_gravity . From GridLayout.setGravity and R.attr documentation I kno... | java|android|xml|android-layout|android-studio | 3 | 2016-04-17T23:50:03.560Z | 2,016 | 4 | 23 | 6 | 1,280 | 1 | 761 | 87 | 5 | 4 | true | false | false | false | false | false | low |
36,683,578 | Bluetooth application Fatal Error | <p>thanks for your help in advance. I'm building an application that allows me to send messages from one device to another using the bluetooth. this is the code that I have.</p>
<pre><code>import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.b... | thanks for your help in advance. I'm building an application that allows me to send messages from one device to another using the bluetooth. this is the code that I have. [CODE] And this is the error that I'm getting 04-17 18:56:40.457 6684-6684/universityofhouston.dtntext E/AndroidRuntime: FATAL EXCEPTION: main Proces... | android | 0 | 2016-04-18T00:04:38.967Z | 2,016 | 4 | 0 | 0 | 89 | 0 | 3,094 | 33 | 1 | 3 | true | true | false | false | false | false | zero |
36,683,659 | AWS DynamoDB Scan failing on iOS but works on Android | <p>I am using DynamoDB as back-end database for my mobile app, and the schema etc are identical across Android & iOS. For a particular use-case, I have to perform a Scan, based on two attributes which are not indexed. For iOS Objective C, I am using the following code:</p>
<pre><code>AWSDynamoDBScanExpression *sca... | I am using DynamoDB as back-end database for my mobile app, and the schema etc are identical across Android & iOS. For a particular use-case, I have to perform a Scan, based on two attributes which are not indexed. For iOS Objective C, I am using the following code: [CODE] Both location and event are Strings. EVENT_TAS... | android|ios|amazon-web-services|amazon-dynamodb | 0 | 2016-04-18T00:18:29.437Z | 2,016 | 4 | 0 | 0 | 273 | 2 | 946 | 53 | 4 | 4 | true | false | false | false | false | false | zero |
36,683,674 | Broadcast Receivers not stopping | <p>I have two Broadcast receivers which are scheduled to run according to:</p>
<pre><code>mAlarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
SystemClock.elapsedRealtime() + 1000, 20000, shortNotification);
mAlarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
S... | I have two Broadcast receivers which are scheduled to run according to: [CODE] where shortNotification and breakNotification: [CODE] and intentBreak, intentShort are: [CODE] Using another answer ( https://stackoverflow.com/a/7439072/4132650 ) I have tried to stop the two broadcast receivers in onDestroy when I close th... | android|broadcastreceiver|android-alarms|ondestroy | 0 | 2016-04-18T00:20:58.717Z | 2,016 | 4 | 0 | 0 | 55 | 0 | 1,200 | 32 | 4 | 4 | true | true | false | false | false | false | zero |
36,683,688 | How do I add a method to ANY event's invocation list at runtime (C# + Unity) | <p>I'm trying to create an event-based sound triggering system for Unity (5.x) built on top of a project where existing code should be modified as little as possible.</p>
<p>The existing project has all kinds of events with different delegate signatures,
like so:</p>
<pre><code>public delegate void CustomDelegateType... | I'm trying to create an event-based sound triggering system for Unity (5.x) built on top of a project where existing code should be modified as little as possible. The existing project has all kinds of events with different delegate signatures, like so: [CODE] I want to use these events to trigger sounds by adding a me... | c#|android|unity3d|reflection|delegates | 0 | 2016-04-18T00:23:07.097Z | 2,016 | 4 | 0 | 0 | 539 | 2 | 884 | 76 | 5 | 1 | true | false | false | false | false | false | zero |
36,683,726 | Failed to find Build Tools revision 23.0.1 | <p>I am trying to build my first app with react-native.</p>
<p>I am following these 2 tutorial:</p>
<ul>
<li><a href="https://facebook.github.io/react-native/docs/getting-started.html#content" rel="noreferrer">https://facebook.github.io/react-native/docs/getting-started.html#content</a></li>
<li><a href="https://face... | I am trying to build my first app with react-native. I am following these 2 tutorial: https://facebook.github.io/react-native/docs/getting-started.html#content https://facebook.github.io/react-native/docs/android-setup.html I am sure that I installed all the requirements from the second link but when I try running my a... | android|linux|react-native | 137 | 2016-04-18T00:29:22.560Z | 2,016 | 4 | 0 | 0 | 221,278 | 16 | 567 | 42 | 3 | 0 | false | false | true | true | true | false | high |
36,683,748 | IFrame Fills Area on PhoneGap instead of Fixed Position | <p>My app works perfectly fine in the browser. </p>
<p><a href="https://i.stack.imgur.com/sqAjr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sqAjr.png" alt="what my app should look like"></a></p>
<p>What I do is I show and hide this iFrame using a checkbox.<br>
However when I released it for an... | My app works perfectly fine in the browser. What I do is I show and hide this iFrame using a checkbox. However when I released it for android, the new iFrame I added fills the entire page instead of having it's fixed position which I stated in CSS. I'm converting my app to an Android app using PhoneGap Build. My app us... | android|cordova|iframe | 0 | 2016-04-18T00:31:25.153Z | 2,016 | 4 | 0 | 0 | 189 | 1 | 455 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
36,683,758 | Registration form android studio to connect to server | <p>No errors occur within when emulator is run on my android phone. Not sure if that the correct http:192.168....... When I run the app i enter the data and it says connecting to server but then says unfortunately the app crashed. Any Ideas.</p>
<p>BackgroundTask</p>
<pre><code>package com.example.om.fitnessproject;
... | No errors occur within when emulator is run on my android phone. Not sure if that the correct http:192.168....... When I run the app i enter the data and it says connecting to server but then says unfortunately the app crashed. Any Ideas. BackgroundTask [CODE] register package com.example.om.fitnessproject; [CODE] Trac... | java|php|android|html | 0 | 2016-04-18T00:32:27.603Z | 2,016 | 4 | 0 | 0 | 753 | 0 | 328 | 53 | 4 | 3 | true | true | false | false | false | false | zero |
36,683,776 | Start activity from ViewHolder onclick | <p>I´m tryng to start a new activity when the user clicks on a RecycleView element . The problem is that only one field of object I want to pass to JSON is show in the row_item Layout and don´t know how to retrieve the other 3 object fields.</p>
<p>Here are the steps I´m following . </p>
<p>First I send a list of obj... | I´m tryng to start a new activity when the user clicks on a RecycleView element . The problem is that only one field of object I want to pass to JSON is show in the row_item Layout and don´t know how to retrieve the other 3 object fields. Here are the steps I´m following . First I send a list of objects (Poliza) to the... | android | 8 | 2016-04-18T00:35:06.363Z | 2,016 | 4 | 0 | 0 | 9,330 | 3 | 607 | 38 | 1 | 1 | true | false | true | false | false | false | medium |
36,683,823 | Can't fetch data in RecyclerView from JSON after filtering | <p>I have one Activity in my application where user searches for particular item from list, but he can also sort those items in list by cities. And that i'm doing with spinner. After he clicks on spinner to sort items, he is fetching data again from server. </p>
<p>The problem occurs when he searches before ordering i... | I have one Activity in my application where user searches for particular item from list, but he can also sort those items in list by cities. And that i'm doing with spinner. After he clicks on spinner to sort items, he is fetching data again from server. The problem occurs when he searches before ordering items in list... | android|json|android-recyclerview | 1 | 2016-04-18T00:42:44.650Z | 2,016 | 4 | 0 | 0 | 475 | 1 | 652 | 58 | 3 | 1 | true | false | false | false | false | false | low |
36,684,180 | Labelled Sections xamarin android that it don't run on xamarin android new version | <pre><code>public class ListItemCollection<T> : IEnumerable<T>
where T : IHasLabel, IComparable<T>
{
</code></pre>
<p>Errors:
Error CS0703: Inconsistent accessibility: constraint type ....IHasLabel' is less accessible than ....ListItemCollection' (CS0703) </p>
<p><div class="snippet" da... | [CODE] Errors: Error CS0703: Inconsistent accessibility: constraint type ....IHasLabel' is less accessible than ....ListItemCollection' (CS0703) [CODE] ListAdapter = adapter;-> the name listadapter does not exist in the current context. var adapter = new SeparatedListAdapter (this);-> the best overloaded method match f... | xamarin|xamarin.android | 0 | 2016-04-18T01:36:05.470Z | 2,016 | 4 | 1 | 0 | 64 | 1 | 399 | 82 | 2 | 2 | true | false | false | false | false | false | zero |
36,684,310 | How to change AutoCompleteTextView's EditText's view? | <p>Not its dropdown view, but the TextView view where our choice will appear, that looks like an EditText. </p>
<p>I'm using custom adapter, and I've tried to set it in adapter constructor, and then throw it back to parent using <code>super</code>, but the EditText view is still using the style in xml. </p>
<p>The ... | Not its dropdown view, but the TextView view where our choice will appear, that looks like an EditText. I'm using custom adapter, and I've tried to set it in adapter constructor, and then throw it back to parent using super , but the EditText view is still using the style in xml. The only view-related I override was ge... | android|autocompletetextview | 0 | 2016-04-18T01:53:20.367Z | 2,016 | 4 | 1 | 0 | 164 | 0 | 523 | 53 | 2 | 2 | true | true | false | false | false | false | zero |
36,684,435 | Android Monitor shows me a constant memory increment in my application | <p>I am working in an application for Android and I am using a Surface to read a QR code. Checking the resources with Monitor I see a constant increment of the memory from ~7 MB to ~20 MB, then the memory is released and the behavior starts over. I wonder if it is normal or I am missing something.</p>
<h2>My code</h2>... | I am working in an application for Android and I am using a Surface to read a QR code. Checking the resources with Monitor I see a constant increment of the memory from ~7 MB to ~20 MB, then the memory is released and the behavior starts over. I wonder if it is normal or I am missing something. My code [CODE] Android M... | android|memory-management|memory-leaks|android-camera|surfaceview | 2 | 2016-04-18T02:12:13.097Z | 2,016 | 4 | 2 | 0 | 131 | 1 | 384 | 70 | 5 | 1 | true | false | false | false | false | false | low |
36,684,447 | HttpUrlConnection Android Studio | <p>someone can help me?
I've tryied for days to do a UrlConnection in Android Studio, but I've failed and I dont know why.</p>
<p>Here is my code:</p>
<pre><code> URL url;
HttpURLConnection urlConnection = null;
try {
url = new URL("http://www.google.com");
... | someone can help me? I've tryied for days to do a UrlConnection in Android Studio, but I've failed and I dont know why. Here is my code: [CODE] I've already add the INTERNET and ACESS_NETWORK_STATE permissions. Thanks | android|connection|apk | 0 | 2016-04-18T02:13:46.627Z | 2,016 | 4 | 2 | 0 | 292 | 3 | 217 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
36,684,451 | How to get the correct position in listview when setTextFilterEnabled is enable? | <p>I'm trying to get the correct position in the listview when i clicked one item on it. I enable the setTextFilterEnabled. Here is my code </p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
.....
//get fi... | I'm trying to get the correct position in the listview when i clicked one item on it. I enable the setTextFilterEnabled. Here is my code [CODE] Here is my ArrayList get the files [CODE] This is where is used the filtering [CODE] In my listview onClickListener it always give me the wrong position and got the wrong path ... | android|listview|filter | 1 | 2016-04-18T02:13:55.543Z | 2,016 | 4 | 2 | 0 | 103 | 2 | 352 | 80 | 3 | 3 | true | false | false | false | false | false | low |
36,684,707 | Opening a database from external storage Android | <p>I was previously storing a sqlite database in my apps assets folder but have now moved the database to external storage. </p>
<p>My previous <code>copyDatabase()</code> method looked like this.</p>
<pre><code>private void copyDataBase() throws IOException {
InputStream myInput = myContext.getAssets().open(... | I was previously storing a sqlite database in my apps assets folder but have now moved the database to external storage. My previous copyDatabase() method looked like this. [CODE] The issue is I'm unsure how to create an InputStream for opening the database from external storage. I can't seem to find the external stora... | android|sqlite | 0 | 2016-04-18T02:50:27.893Z | 2,016 | 4 | 2 | 0 | 2,291 | 1 | 413 | 48 | 2 | 2 | true | false | false | false | false | false | zero |
36,684,714 | I want to define a customer seekbar as described below, but how? | <p>I want to customize the seekbar to fit my needs:</p>
<p>The thumb can only be placed on four fixed location. for example, if I set the seekbar's max property to 120, the four fixed location is 0, 40, 80 120.
Also, I want to have indicators to tell people the means of the current selected location. so I do it as fol... | I want to customize the seekbar to fit my needs: The thumb can only be placed on four fixed location. for example, if I set the seekbar's max property to 120, the four fixed location is 0, 40, 80 120. Also, I want to have indicators to tell people the means of the current selected location. so I do it as follows: [CODE... | android|seekbar | 1 | 2016-04-18T02:51:04.387Z | 2,016 | 4 | 2 | 0 | 46 | 1 | 535 | 64 | 2 | 1 | true | false | false | false | false | false | low |
36,684,722 | FloatingActionButton cause CreateCircularReveal to fail | <p>I have a fragment with an card view and when I try to add a FloatingActionButton thats cause the animation to fail.. The view just appear without an animation.. The Width and Height and radius is all correct but the animation dosen't run. This just occur the first time that the animation runs.. I use a regular Close... | I have a fragment with an card view and when I try to add a FloatingActionButton thats cause the animation to fail.. The view just appear without an animation.. The Width and Height and radius is all correct but the animation dosen't run. This just occur the first time that the animation runs.. I use a regular Close bu... | android | 1 | 2016-04-18T02:52:05.860Z | 2,016 | 4 | 2 | 0 | 52 | 0 | 366 | 55 | 1 | 2 | true | true | false | false | false | false | low |
36,684,746 | Uploading a bitmap from android to a server results in an unopenable file | <p>So I've used some code from stackoverflow that uses HttpURLConnection to send a bitmap from Android to my local WAMP server. The only issue I have is that the data being sent can't be open by an image viewer. I have a feeling it has to do with the method that I am sending the data. </p>
<pre><code> HttpURLConnec... | So I've used some code from stackoverflow that uses HttpURLConnection to send a bitmap from Android to my local WAMP server. The only issue I have is that the data being sent can't be open by an image viewer. I have a feeling it has to do with the method that I am sending the data. [CODE] I have checked the file sizes ... | java|android|bitmap|wamp | 1 | 2016-04-18T02:55:02.883Z | 2,016 | 4 | 2 | 0 | 109 | 0 | 585 | 73 | 4 | 1 | true | true | false | false | false | false | low |
36,684,797 | Android data binding - unable to invoke the click handler | <p>I have created a simple login screen using the databinding as described at <a href="http://developer.android.com/tools/data-binding/guide.html" rel="nofollow noreferrer">http://developer.android.com/tools/data-binding/guide.html</a> however I am unable to get the notification of text changed from </p>
<ol>
<li>the ... | I have created a simple login screen using the databinding as described at http://developer.android.com/tools/data-binding/guide.html however I am unable to get the notification of text changed from the text box or the button click. I think for the text box notification, the android team might not have implemented it c... | android|event-handling|android-databinding | 6 | 2016-04-18T03:02:22.870Z | 2,016 | 4 | 3 | 0 | 2,887 | 2 | 635 | 57 | 3 | 4 | true | false | true | false | false | false | medium |
36,684,835 | How to get data by json on xamarin android | <p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>public async override void OnActivityCreated (Bundle savedInstanceState)
{
base.OnActivityCreated (savedInstanceState);
lst = View.FindViewById<ListView>... | [CODE] public override TrackModel.Track this[int index]. It get a error is makred as an overdie but no suitable indexer found to overide. I want to take data from json up listview on xamarin android. If it is unviersal app then it easy to use. | json|xamarin|xamarin.android | 0 | 2016-04-18T03:06:27.350Z | 2,016 | 4 | 3 | 0 | 1,001 | 1 | 243 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,684,894 | NPE when invoking getDialog.getWindow in DialogFragment's onResume | <p>in my DialogFragment, I just do:</p>
<pre><code> override fun onResume() {
super.onResume()
dismissDialog()
getDialog().getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, DimenUtil.dpToPx(220f, resources));
getDialog().getWindow().setGravity(Gravity.BOTTOM)
getDial... | in my DialogFragment, I just do: [CODE] but I got NPE: [CODE] In my activity, I start a DialogFragment and got this error. It happens several times. | android|dialogfragment | 2 | 2016-04-18T03:13:49.803Z | 2,016 | 4 | 3 | 0 | 1,405 | 1 | 148 | 66 | 2 | 2 | true | false | false | false | false | false | low |
36,684,938 | Adapter Can't Load Image from JSON on Android | <p>i have some problem with my JSON code.
I want to display a list that contain text and image. The text and image stored on my online database, i using JSON for taking them down to my android app.</p>
<p>The JSON doesn't display any error, the text are displayed but the image are not appear.</p>
<p>I check the logca... | i have some problem with my JSON code. I want to display a list that contain text and image. The text and image stored on my online database, i using JSON for taking them down to my android app. The JSON doesn't display any error, the text are displayed but the image are not appear. I check the logcat and there's no er... | java|android|json | 2 | 2016-04-18T03:20:27.673Z | 2,016 | 4 | 3 | 0 | 706 | 1 | 656 | 45 | 3 | 2 | true | false | false | false | false | false | low |
36,685,021 | Android Seekbar to mix two colors rgb codes | <p>What would be the best way to use a seekbar to mix two colors? My seekBar starts in the middle and a mixed color is displayed to a imageview (Average of red1,green1blue1,red2green2,blue2)When the seekbar is moved to the left it should move more towards the color (red1,green1,blue1,) then if moved to the right it sho... | What would be the best way to use a seekbar to mix two colors? My seekBar starts in the middle and a mixed color is displayed to a imageview (Average of red1,green1blue1,red2green2,blue2)When the seekbar is moved to the left it should move more towards the color (red1,green1,blue1,) then if moved to the right it should... | android|rgb|background-color|seekbar|android-seekbar | 1 | 2016-04-18T03:29:59.060Z | 2,016 | 4 | 3 | 0 | 714 | 0 | 416 | 43 | 5 | 2 | true | true | false | false | false | false | low |
36,685,071 | Can't remove padding ImageView in GridView | <p>Here is a gridview:
[test_grid.xml]</p>
<pre><code> <RelativeLayout xmlns:android="http:....."
android:layout_height="match_parent"
android:layout_width="match_parent">
<GridView
android:id="@+id/grid_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="6"
... | Here is a gridview: [test_grid.xml] [CODE] and an imageview: image_item.xml [CODE] And in GridAdapter.java [CODE] Problem is: couldn't remove padding around imageview, enter image description here I tried this: [CODE] but no results. Appreciate any help, advice. | android|gridview|imageview|padding | 2 | 2016-04-18T03:36:58.830Z | 2,016 | 4 | 3 | 0 | 187 | 1 | 262 | 42 | 4 | 4 | true | false | false | false | false | false | low |
36,685,114 | Android - Null Pointer Exception on backstack | <p>I'm getting NPE on backstack. To combat OOM issue, I read that I need to nullify all references inside the <code>Fragment</code>, especially <code>Bitmaps</code>. So what I did is : when a <code>Fragment</code> is replaced, I set every variable to null, except the <code>Adapter</code> for <code>RecyclerView</code> a... | I'm getting NPE on backstack. To combat OOM issue, I read that I need to nullify all references inside the Fragment , especially Bitmaps . So what I did is : when a Fragment is replaced, I set every variable to null, except the Adapter for RecyclerView as I need to use the content again.. [CODE] And the onCreateView : ... | android|android-fragments | 1 | 2016-04-18T03:42:32.157Z | 2,016 | 4 | 3 | 0 | 142 | 0 | 635 | 45 | 2 | 2 | true | true | false | false | false | false | low |
36,685,238 | How to authenticate httpURLConnection, send request and get response | <p>I have troubles with authentication httpURLConnection. I have a URL for POST request, but i need to authenticate like user to get a response from server. I tried to do it with basic authentication, but it didn't work for me. Anyway i got the responseCode: 401 - unauthorized.</p>
<p>Do you know any other way to aut... | I have troubles with authentication httpURLConnection. I have a URL for POST request, but i need to authenticate like user to get a response from server. I tried to do it with basic authentication, but it didn't work for me. Anyway i got the responseCode: 401 - unauthorized. Do you know any other way to authenticate wi... | java|android|web-services|authentication|httpurlconnection | 1 | 2016-04-18T03:57:30.973Z | 2,016 | 4 | 3 | 0 | 902 | 0 | 579 | 68 | 5 | 2 | true | true | false | false | false | false | low |
36,685,258 | The first item in my gridview was not being displayed at the start of the activity. | <p>Sorry if this is an inappropriate question for SO. I have read over many similar questions but did not find a solution from them. In the code I am posting below, my workaround is shown in the ImageAdapter class that I have. </p>
<p>I am working on a small app and have an activity which includes a GridView. Below ar... | Sorry if this is an inappropriate question for SO. I have read over many similar questions but did not find a solution from them. In the code I am posting below, my workaround is shown in the ImageAdapter class that I have. I am working on a small app and have an activity which includes a GridView. Below are my ImageAd... | android|gridview | 1 | 2016-04-18T03:59:48.650Z | 2,016 | 4 | 3 | 0 | 625 | 1 | 1,188 | 83 | 2 | 2 | true | false | false | false | false | false | low |
36,685,330 | How to create an Android ListView with section header xamarin android? I got 17 errors | <p>In this example we will show how to create a ListView with section header. This involves following steps</p>
<p>Create two custom layout for your List header and List row
Create your custom adapter for ListView
Instantiate ListView in your activity</p>
<p>I had got 17 errors. I want to create listview with section... | In this example we will show how to create a ListView with section header. This involves following steps Create two custom layout for your List header and List row Create your custom adapter for ListView Instantiate ListView in your activity I had got 17 errors. I want to create listview with section header xamarin and... | android|xamarin|xamarin.android | 1 | 2016-04-18T04:09:38.990Z | 2,016 | 4 | 4 | 0 | 1,504 | 1 | 435 | 86 | 3 | 2 | true | false | false | false | false | false | low |
36,685,335 | Azure mobileserviceclient login returns authentication error(401) | <p>I currently have a login flow with facebook that is working 100% and I just added Google into the equation. I wrote the code so that my google provider tokens are formatted and cached in the same way as my facebook tokens. My code gets the facebook and google tokens and does the folling: (the following example is fo... | I currently have a login flow with facebook that is working 100% and I just added Google into the equation. I wrote the code so that my google provider tokens are formatted and cached in the same way as my facebook tokens. My code gets the facebook and google tokens and does the folling: (the following example is for t... | android|azure|azure-mobile-services | 2 | 2016-04-18T04:10:03.380Z | 2,016 | 4 | 4 | 0 | 619 | 1 | 1,916 | 65 | 3 | 2 | true | false | false | false | false | false | low |
36,685,383 | How to set action mode over toolbar in android | <p>I have created only tool bar in my fragment.I have implemented the action mode for multiple deleting the list view.But the action mode will open above the toolbar(i.e)action bar.How to display that action mode over the toolbar.I have tried <code><item name="windowActionModeOverlay">true</item></code> in ... | I have created only tool bar in my fragment.I have implemented the action mode for multiple deleting the list view.But the action mode will open above the toolbar(i.e)action bar.How to display that action mode over the toolbar.I have tried <item name="windowActionModeOverlay">true</item> in my theme but it does not wor... | android | 2 | 2016-04-18T04:15:01.133Z | 2,016 | 4 | 4 | 0 | 2,473 | 1 | 333 | 46 | 1 | 1 | true | false | false | false | false | false | low |
36,685,447 | Parse Object Not Saving in Dashboard | <p>When I try to save a ParseObject in my Android app it does not seem to be saving to the Dashboard. There seems to be no error's showing. Here's my code.</p>
<p><em>N.B: The code is nested within <code>protected void onCreate(Bundle savedInstanceState)</code></em></p>
<p><br/></p>
<pre><code>continue_reg.setOnCl... | When I try to save a ParseObject in my Android app it does not seem to be saving to the Dashboard. There seems to be no error's showing. Here's my code. N.B: The code is nested within protected void onCreate(Bundle savedInstanceState) [CODE] | java|android|parse-platform | 2 | 2016-04-18T04:22:38.297Z | 2,016 | 4 | 4 | 0 | 231 | 1 | 241 | 36 | 3 | 1 | true | false | false | false | false | false | low |
36,685,450 | Not updating, Getting installed location every time | <p>I am calling location update service in background, and storing lat-long in preference</p>
<ul>
<li><p>I am using this lat-long to updating current location</p></li>
<li><p>I can able to store lat-long in preference, and also lat-long is getting updated</p></li>
<li><p>But when I run app, I am getting my current ma... | I am calling location update service in background, and storing lat-long in preference I am using this lat-long to updating current location I can able to store lat-long in preference, and also lat-long is getting updated But when I run app, I am getting my current marker on app installed location, not where I am (my c... | android|google-maps|location | 1 | 2016-04-18T04:22:56.900Z | 2,016 | 4 | 4 | 0 | 63 | 0 | 378 | 51 | 3 | 1 | true | true | false | false | false | false | low |
36,685,526 | ListView Toast Message | <p>I have this code here. I am trying to display a toast message when a row in my list view is clicked but nothing shows up. Here is my code.</p>
<pre><code> public class MainActivity extends AppCompatActivity {
ListView list;
String[] movieTitles;
int[] images = {R.drawable.batman_vs_superm... | I have this code here. I am trying to display a toast message when a row in my list view is clicked but nothing shows up. Here is my code. [CODE] EDIT I have two xml files here is the code: "content_main.xml" [CODE] And Here I have single_row.xml with the single row design. [CODE] | android|listview | 1 | 2016-04-18T04:31:50.863Z | 2,016 | 4 | 4 | 0 | 686 | 2 | 281 | 22 | 2 | 3 | true | false | false | false | false | false | low |
36,685,569 | Android app doesn't shown in google play store | <p>I have created an app and published in play store.. The application can only view above android OS 5.0. But, my minimum sdkversion is 11.. Why i can't see my app in play store list below 5.0.. And how to show app below 5.0...</p>
<p>The following code is my build.gradle code..</p>
<pre><code>android
{
compile... | I have created an app and published in play store.. The application can only view above android OS 5.0. But, my minimum sdkversion is 11.. Why i can't see my app in play store list below 5.0.. And how to show app below 5.0... The following code is my build.gradle code.. [CODE] ` [CODE] ` | java|android|publishing | 2 | 2016-04-18T04:37:43.723Z | 2,016 | 4 | 4 | 0 | 152 | 0 | 288 | 46 | 3 | 2 | true | true | false | false | false | false | low |
36,685,594 | Snakecase in a retrofit call with gson | <p>I am using the original retrofit to call the Instagram api. The call returns this reponse</p>
<pre><code>{ "data" : [ { "attribution" : null,
"caption" : { "created_time" : "1460953831",
"from" : { "full_name" : "Edward ♕",
"id" : "282525924",
"profile_picture" : "https://sconten... | I am using the original retrofit to call the Instagram api. The call returns this reponse [CODE] } As you can see some of the labels are using snakecase, such as standard_resolution . When I plug this data into Json Pogo it creates two classes for standard_resolution . One named StandardResolution and one StandardResol... | android|gson|retrofit | 0 | 2016-04-18T04:41:07.883Z | 2,016 | 4 | 4 | 0 | 258 | 0 | 446 | 38 | 3 | 1 | true | true | false | false | false | false | zero |
36,685,619 | How to call a method within a programmatically generated fragment from the parent activity? | <p><strong>EDIT 4</strong> Alright, so I've changed my example code to exactly what was suggested, with a null check. </p>
<p>now in the public class MainActivity extends AppCompatActivity I've got </p>
<pre><code>private templateFragment1 fragTest;
</code></pre>
<p>and then in onCreate I've got</p>
<pre><code> fin... | EDIT 4 Alright, so I've changed my example code to exactly what was suggested, with a null check. now in the public class MainActivity extends AppCompatActivity I've got [CODE] and then in onCreate I've got [CODE] And in templateFragment1 I've got [CODE] which I've binded in onCreateView like this [CODE] then I have th... | java|android|android-fragments | 1 | 2016-04-18T04:43:56.717Z | 2,016 | 4 | 4 | 0 | 400 | 2 | 1,800 | 91 | 3 | 12 | true | false | false | false | false | false | low |
36,685,654 | Adding new user to ejabberd through Smack android api | <p>I have installed <a href="https://www.ejabberd.im/" rel="nofollow noreferrer">ejabberd</a> on my local server. This was then tested in spark for its functionality and it worked fine. Now I want to add a new user through the android app.</p>
<p>I tried adding a new user through spark and it worked fine. The fields I... | I have installed ejabberd on my local server. This was then tested in spark for its functionality and it worked fine. Now I want to add a new user through the android app. I tried adding a new user through spark and it worked fine. The fields I have given are uesrname , password , confirm password , server . But when I... | java|android|xmpp|ejabberd|smack | 2 | 2016-04-18T04:48:15.583Z | 2,016 | 4 | 4 | 0 | 1,720 | 1 | 1,020 | 53 | 5 | 2 | true | false | false | false | false | false | low |
36,685,667 | Date format parsing in android from April 18 2016 10:41 AM to 04/18/2016 10:41 | <p>I am trying to parse <code>April 18 2016 10:41 AM</code> to <code>04/18/2016 10:41</code>. Here is my code</p>
<pre><code>private String dateFormat(String strCurrentDate) throws ParseException {
SimpleDateFormat format = new SimpleDateFormat("mmmm dd yyyy hh:mm Z");
Date newDate = null;
new... | I am trying to parse April 18 2016 10:41 AM to 04/18/2016 10:41 . Here is my code [CODE] But it gives the following errors [CODE] Can anyone tell me how should I fix it? Why it is showing Unparseable date . How should I parse it? Thanks in advance. | android|date|parsing|datetime | 1 | 2016-04-18T04:49:59.413Z | 2,016 | 4 | 4 | 0 | 689 | 3 | 248 | 78 | 4 | 2 | true | false | false | false | false | false | low |
36,685,768 | Android: Call to context menu from NavigationMenu item selected | <p>sorry for my English.</p>
<p>I have a problem trying to call ContextMenu in Android.</p>
<p>Android Studio set a listener in a float widget and it Works:</p>
<pre><code> FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
registerForContextMenu(fab);
fab.setOnClickListener(new... | sorry for my English. I have a problem trying to call ContextMenu in Android. Android Studio set a listener in a float widget and it Works: [CODE] But trying to call it when the user press in a item of a NavigationMenu, I'm not sure the correct way to declare: [CODE] Then use: [CODE] I have this: [CODE] activity_main_d... | java|android|contextmenu | 0 | 2016-04-18T05:01:28.963Z | 2,016 | 4 | 5 | 0 | 774 | 1 | 2,274 | 63 | 3 | 6 | true | false | false | false | false | false | zero |
36,685,815 | Uber api ride request widget issue in android | <p>Bug relates to new ride request widget sdk introduced by uber on few days back</p>
<p>I am able to book cab via this widget, but when trying to call/message driver I am getting following error:</p>
<p>ERR_UNKNOWN_URL_SCHEME</p>
<pre><code>String productId = bundle.getString(Constants.CAB_TYPE);
RideRequestVi... | Bug relates to new ride request widget sdk introduced by uber on few days back I am able to book cab via this widget, but when trying to call/message driver I am getting following error: ERR_UNKNOWN_URL_SCHEME [CODE] Attached is the screenshot of error widget error | android|uber-api | 0 | 2016-04-18T05:05:32.670Z | 2,016 | 4 | 5 | 0 | 338 | 2 | 265 | 45 | 2 | 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.