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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,752,306 | Smack facebook login not authorized | <p>I am quite stuck on implementing facebook chat in my android application. I am using XMPP connection offered by aSmack library. Everything works fine, if i'm using PLAIN mechanism and my regular facebook username and password, like so</p>
<p><code>SASLAuthentication.supportSASLMechanism("PLAIN");
xmpp.login("my_use... | I am quite stuck on implementing facebook chat in my android application. I am using XMPP connection offered by aSmack library. Everything works fine, if i'm using PLAIN mechanism and my regular facebook username and password, like so SASLAuthentication.supportSASLMechanism("PLAIN"); xmpp.login("my_username@mail.com", ... | java|android|facebook|xmpp|smack | 1 | 2015-02-26T20:39:00.167Z | 2,015 | 2 | 20 | 3 | 230 | 0 | 620 | 35 | 5 | 3 | true | true | false | false | false | false | low |
28,752,384 | Lambda expressions not supported -source 1.7 (Android Studio) | <p>I was trying to run my android project in Android Studio, but I can't do so.</p>
<p>I am getting this error:</p>
<pre><code>Error:(23, 47) error: lambda expressions are not supported in -source 1.7
(use -source 8 or higher to enable lambda expressions)
Error:Execution failed for task ':app:compileDebugJava'.
> ... | I was trying to run my android project in Android Studio, but I can't do so. I am getting this error: [CODE] I am using JDK 1.8. Any idea why is this happening? Any resoultion. PS: There are couple of similar questions in Stack but none resolved this problem. Please understand the problem before you tag Duplicate. | java|android | 5 | 2015-02-26T20:43:19.020Z | 2,015 | 2 | 20 | 3 | 6,759 | 2 | 315 | 61 | 2 | 1 | true | false | true | false | false | false | low |
28,752,424 | Close a child window in an Android app made with Angularjs | <p>I'm coding an Android app with Angularjs and cordova, but I have a problem:
For an oauth call I need to open a new window, go to the withings site and when I come on my callback url close the window.</p>
<p>I have tried to use setInterval (or $interval) to check every 2 seconds if I reveived the infos by a call to ... | I'm coding an Android app with Angularjs and cordova, but I have a problem: For an oauth call I need to open a new window, go to the withings site and when I come on my callback url close the window. I have tried to use setInterval (or $interval) to check every 2 seconds if I reveived the infos by a call to my API. It ... | javascript|android|angularjs|cordova | 1 | 2015-02-26T20:45:20.397Z | 2,015 | 2 | 20 | 3 | 510 | 1 | 740 | 58 | 4 | 1 | true | false | false | false | false | false | low |
28,752,538 | Resending SMS from a received bundle works in emulator, but not in physical device | <p>I am trying to catch an sms, take some decisions and give it to the user. The code below works on the emulator, but it doesn't work on my physical device. Both my phone and the emulator are using android 4.1.2. Any ideas?My service receiver: </p>
<pre><code>if(action.equals("android.provider.Telephony.SMS_RECEIV... | I am trying to catch an sms, take some decisions and give it to the user. The code below works on the emulator, but it doesn't work on my physical device. Both my phone and the emulator are using android 4.1.2. Any ideas?My service receiver: [CODE] My Manifest.xml : [CODE] | android | 0 | 2015-02-26T20:53:40.190Z | 2,015 | 2 | 20 | 3 | 103 | 1 | 273 | 82 | 1 | 2 | true | false | false | false | false | false | zero |
28,752,617 | Strange behavior using PhoneStateListener | <p>I've got a class derived from PhoneStateListener and when its called with CALL_STATE_RINGING I cache the incoming number.</p>
<p>I have noticed that sometimes the listener is called twice with CALL_STATE_RINGING for the same incoming number. </p>
<p>What is puzzling me is when the listener is called twice the valu... | I've got a class derived from PhoneStateListener and when its called with CALL_STATE_RINGING I cache the incoming number. I have noticed that sometimes the listener is called twice with CALL_STATE_RINGING for the same incoming number. What is puzzling me is when the listener is called twice the value of my cached incom... | android|phone-state-listener | 1 | 2015-02-26T20:59:01.213Z | 2,015 | 2 | 20 | 3 | 274 | 0 | 764 | 41 | 2 | 2 | true | true | false | false | false | false | low |
28,752,779 | Android Layout resize and multiple emulations | <p>I am going to create an app for devices with Android OS 2.1 and higher. As many developer I met layout problems and after reading about that in the official android documentation I decided to follow a way; I created 6 directory one for every screen density (ldpi,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi). What I want to know i... | I am going to create an app for devices with Android OS 2.1 and higher. As many developer I met layout problems and after reading about that in the official android documentation I decided to follow a way; I created 6 directory one for every screen density (ldpi,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi). What I want to know is i... | android|android-layout|layout|emulation | 0 | 2015-02-26T21:09:04.420Z | 2,015 | 2 | 21 | 3 | 28 | 0 | 748 | 45 | 4 | 0 | false | true | false | false | false | false | zero |
28,752,796 | How can I create an AVD from the command line based on the device definitions in the AVD Manager? | <p>In the AVD Manager gui I see a list of Device Definitions, these make it easy to provision a device with given settings.</p>
<p>When I use <code>android list targets</code> I get a different set of results from the device definitions.</p>
<p>Is the list of device definitions accessible through the command line? If s... | In the AVD Manager gui I see a list of Device Definitions, these make it easy to provision a device with given settings. When I use android list targets I get a different set of results from the device definitions. Is the list of device definitions accessible through the command line? If so, how can I build a device ba... | android|command-line|avd | 3 | 2015-02-26T21:09:53.387Z | 2,015 | 2 | 21 | 3 | 704 | 1 | 823 | 97 | 3 | 1 | true | false | false | false | false | false | low |
28,752,816 | Query between distances in Parse | <p>I would like to search places between two given distances, using GeoPoints. Using the currently api, I think I could make something like this pseudo algorithm:</p>
<p>query.whereWithinKilometers("directions", GlobalData.ownerGeoPoint, MAXIMUM distance);</p>
<p>MINUS</p>
<p>query.whereWithinKilometers("directions"... | I would like to search places between two given distances, using GeoPoints. Using the currently api, I think I could make something like this pseudo algorithm: query.whereWithinKilometers("directions", GlobalData.ownerGeoPoint, MAXIMUM distance); MINUS query.whereWithinKilometers("directions", GlobalData.ownerGeoPoint,... | android|parse-platform|pfquery|geopoints | 0 | 2015-02-26T21:11:23.113Z | 2,015 | 2 | 21 | 3 | 834 | 2 | 373 | 32 | 4 | 0 | false | false | false | false | false | false | zero |
28,752,834 | Why has my Android app stopped? | <p>I make my application in Android Studio. I run this application but the Android app stopped. I make a app with an animation.
Here is my source code: </p>
<p>AndroidManifest:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
packa... | I make my application in Android Studio. I run this application but the Android app stopped. I make a app with an animation. Here is my source code: AndroidManifest: [CODE] MainActivity: [CODE] ActivityMain.xml: [CODE] Animation.java: [CODE] DrawingTheBall.java: [CODE] Logcat: [CODE] | java|android|android-studio | -1 | 2015-02-26T21:12:15.970Z | 2,015 | 2 | 21 | 3 | 134 | 1 | 284 | 31 | 3 | 6 | true | false | false | false | false | true | negative |
28,752,836 | Android check for system date to change then run code | <p>What is the best way to go about running code immediately on system date change?</p>
<p>Currently I am trying to set the wallpaper on a device based on the date. If the date changes, I will set the wallpaper to a new image. My code for getting and setting the wallpaper all works. I am trying to setup an alarm manag... | What is the best way to go about running code immediately on system date change? Currently I am trying to set the wallpaper on a device based on the date. If the date changes, I will set the wallpaper to a new image. My code for getting and setting the wallpaper all works. I am trying to setup an alarm manager but I ca... | android|alarmmanager | 0 | 2015-02-26T21:12:31.687Z | 2,015 | 2 | 21 | 3 | 774 | 1 | 447 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
28,752,968 | Live wallpaper CPU usage | <p>I have created a live wallpaper that roughly uses as much as 30% of CPU and that's only when it is active (main launcher interface) but when an app is running or the phone is locked it does use 0% of CPU... is It bad that my LW uses 30% when active ?
phones tested on:</p>
<p>-note 2: all cores active @1.6GHz @ 30% ... | I have created a live wallpaper that roughly uses as much as 30% of CPU and that's only when it is active (main launcher interface) but when an app is running or the phone is locked it does use 0% of CPU... is It bad that my LW uses 30% when active ? phones tested on: -note 2: all cores active @1.6GHz @ 30% usage -LG G... | android|android-studio|cpu-usage|live-wallpaper|battery | 0 | 2015-02-26T21:21:11.753Z | 2,015 | 2 | 21 | 3 | 714 | 1 | 410 | 24 | 5 | 0 | false | false | false | false | false | false | zero |
28,753,063 | RecyclerView with CardView does not work | <p>I am really sorry for such an abstract question but I am loosing my mind here. HERE is my code for RecyclerView activity.
Please tell me what am I missing, because I am new to Android and I've tried for 4 days to figure the CardView out.
The error is </p>
<pre><code>02-26 13:17:36.570 1138-1138/com.parse.starter... | I am really sorry for such an abstract question but I am loosing my mind here. HERE is my code for RecyclerView activity. Please tell me what am I missing, because I am new to Android and I've tried for 4 days to figure the CardView out. The error is [CODE] The main Activity class [CODE] The Adaptor [CODE] and Here are... | java|android|xml|adapter | 0 | 2015-02-26T21:27:01.883Z | 2,015 | 2 | 21 | 3 | 360 | 2 | 380 | 40 | 4 | 5 | true | false | false | false | false | false | zero |
28,753,071 | How to stop callback function for onHardwareBackButton? Ionic | <p>Sorry if my english isn't perfect at all.</p>
<p>I am using $ionicPlatform.onHardwareBackButton to use with the Screen Orientation Plugin to change the orientation to portrait when you go back from a view when is playing a Youtube video, here is an example of what i am doing:</p>
<pre><code>app.controller('nameCtr... | Sorry if my english isn't perfect at all. I am using $ionicPlatform.onHardwareBackButton to use with the Screen Orientation Plugin to change the orientation to portrait when you go back from a view when is playing a Youtube video, here is an example of what i am doing: [CODE] onHardwareBackButton detection works perfec... | javascript|android|cordova|ionic-framework | 0 | 2015-02-26T21:27:27.290Z | 2,015 | 2 | 21 | 3 | 1,232 | 1 | 586 | 61 | 4 | 1 | true | false | false | false | false | false | zero |
28,753,079 | Disabling Buttons if edittext is empty on a custom dialog | <p>Can someone please help me fix my code I am trying to disable the <code>Button</code> if 'to' and 'text' aren't entered into the <code>EditText</code> fields. This line</p>
<p><code>post_button.setEnabled(false);</code> </p>
<p>gives me the error</p>
<pre><code>cannot resolve symbol
</code></pre>
<p>as I have s... | Can someone please help me fix my code I am trying to disable the Button if 'to' and 'text' aren't entered into the EditText fields. This line post_button.setEnabled(false); gives me the error [CODE] as I have set this in the Dialog . How do I work around this to achieve this. [CODE] | android | 1 | 2015-02-26T21:27:52.893Z | 2,015 | 2 | 21 | 3 | 900 | 2 | 284 | 57 | 1 | 2 | true | false | false | false | false | false | low |
28,753,156 | Android setOnItemClickListener inside adapter not crashes | <p>I made an Image gallery using a GridView. It is done but now I'm trying to add some interaction with a "setOnItemClickListener" inside a getView function of an adapter. Here is the code of my adapter:</p>
<pre><code>public class ImageAdapter extends BaseAdapter {
//Basic standard adapter functions
public V... | I made an Image gallery using a GridView. It is done but now I'm trying to add some interaction with a "setOnItemClickListener" inside a getView function of an adapter. Here is the code of my adapter: [CODE] That code compiles for me, but when I do the OnClick to load this view, it crashes. If I comment the setOnItemCl... | android|android-fragments|android-adapter | 0 | 2015-02-26T21:32:23.930Z | 2,015 | 2 | 21 | 3 | 177 | 1 | 434 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
28,753,164 | I need to implement both a onSeekBarChangeListener and an OnClickListerner | <p>I am not sure if i need two classes or not, if I do I need to know how to pass data from one class to another and if not I need to know how to add an onClickListener to a class that already implements onSeekBarChangeListener.
Here's what I have so far:</p>
<pre><code> package com.codeherenow.sicalculator;
i... | I am not sure if i need two classes or not, if I do I need to know how to pass data from one class to another and if not I need to know how to add an onClickListener to a class that already implements onSeekBarChangeListener. Here's what I have so far: [CODE] | android|textview|seekbar | 0 | 2015-02-26T21:33:06.787Z | 2,015 | 2 | 21 | 3 | 763 | 2 | 259 | 74 | 3 | 1 | true | false | false | false | false | false | zero |
28,753,177 | Android Google Maps Create Button | <p>I am making a Google Maps app. I want to create a button, when I click it, map will show my location. I made some research but I couldn't find an answer. I enabled current location button on map but that's not what I want.
This is the button I created in <code>activity_main.xml</code></p>
<pre><code> <Button
... | I am making a Google Maps app. I want to create a button, when I click it, map will show my location. I made some research but I couldn't find an answer. I enabled current location button on map but that's not what I want. This is the button I created in activity_main.xml [CODE] And my method [CODE] I am new at android... | android|google-maps | 0 | 2015-02-26T21:33:56.150Z | 2,015 | 2 | 21 | 3 | 125 | 1 | 344 | 33 | 2 | 2 | true | false | false | false | false | false | zero |
28,753,216 | Accented characters in Android XML | <p>i am developping a multi-lingual android app but i am unable to display the special caracters (ex : é or è). I tried to replace the caracters with their reference (&eacute) but it says "The entity &eacute was referenced, but not declared".</p>
<p>XML with special caracters :
</p>
<pre><code><string na... | i am developping a multi-lingual android app but i am unable to display the special caracters (ex : é or è). I tried to replace the caracters with their reference (é) but it says "The entity é was referenced, but not declared". XML with special caracters : [CODE] When i use the above xml file, the special c... | android|xml|string | 0 | 2015-02-26T21:36:58.123Z | 2,015 | 2 | 21 | 3 | 1,185 | 2 | 568 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
28,753,277 | Cannot set text to TextView in PopupWindow | <p>I created a popup window to show a disclaimer in my app but I can't figure out why i cannot set text to TextView. It is an HTML string so I did this:</p>
<pre><code>private void showPopup(final Activity context) {
final PopupWindow pwindo;
Button btnClosePopup;
try {
LayoutInflater inflater = (... | I created a popup window to show a disclaimer in my app but I can't figure out why i cannot set text to TextView. It is an HTML string so I did this: [CODE] popup_layout.xml [CODE] strings.xml [CODE] It works only if I add android:text="@string/tos_text" in the XML file, but i see the raw html codes. What could be the ... | android|html|popup|textview|window | 0 | 2015-02-26T21:40:13.560Z | 2,015 | 2 | 21 | 3 | 1,866 | 1 | 328 | 42 | 5 | 3 | true | false | false | false | false | false | zero |
28,753,293 | android algorithm blob detection | <p>I'm trying to make a blob detection algorithm by my self, but I have a strange error and I have no idea what i've done wrong . Please ! Help me !
I'm trying to detect dark blobs from a binary image.Jtvvvtfvvv 8884
Hjbi5fh5
Ovihhhiiifbbooog
Iiiiibbbbbbbbv
Iiiiijcbbb
Ijjjjjvvvvvvvvv</p>
<pre><code> for ( i =... | I'm trying to make a blob detection algorithm by my self, but I have a strange error and I have no idea what i've done wrong . Please ! Help me ! I'm trying to detect dark blobs from a binary image.Jtvvvtfvvv 8884 Hjbi5fh5 Ovihhhiiifbbooog Iiiiibbbbbbbbv Iiiiijcbbb Ijjjjjvvvvvvvvv [CODE] | java|android|binary|blob | 0 | 2015-02-26T21:41:20.060Z | 2,015 | 2 | 21 | 3 | 371 | 0 | 288 | 32 | 4 | 1 | true | true | false | false | false | false | zero |
28,753,295 | How do I connect to a local Android Server from a Chromecast? | <p>What I am trying to do is start a local server on my Android Device and from a Chromecast connect to the Android Server so that I can send image data from the android to a Chromecast. </p>
<p>What I've done so far is set up a ServerSocket on the Android that is binded to the 127.0.0.1 and then send the localhost in... | What I am trying to do is start a local server on my Android Device and from a Chromecast connect to the Android Server so that I can send image data from the android to a Chromecast. What I've done so far is set up a ServerSocket on the Android that is binded to the 127.0.0.1 and then send the localhost information (p... | javascript|android|sockets|server|chromecast | 1 | 2015-02-26T21:41:23.563Z | 2,015 | 2 | 21 | 3 | 408 | 0 | 1,695 | 61 | 5 | 4 | true | true | false | false | false | false | low |
28,753,430 | Android Status Bar Prevent Coloring | <p>I am having a problem preventing the status bar from taking on the primaryColor. I want to leave the status bar unstyled but on lollipop it is always taking on the color of the primaryColor defined in my styles.xml</p>
<p>Excerpt from styles:</p>
<pre><code> <style name="AppTheme" parent="Theme.AppCompat.Ligh... | I am having a problem preventing the status bar from taking on the primaryColor. I want to leave the status bar unstyled but on lollipop it is always taking on the color of the primaryColor defined in my styles.xml Excerpt from styles: [CODE] styles/v21 [CODE] | android|colors|android-5.0-lollipop|statusbar | 0 | 2015-02-26T21:50:28.560Z | 2,015 | 2 | 21 | 3 | 1,003 | 1 | 260 | 35 | 4 | 2 | true | false | false | false | false | false | zero |
28,753,505 | Picasso with new Target loads bitmap from second time | <p>Below is my code. During navigating to the screen for the first time onPrepareLoad() gets called. But it does not come to onBitmapLoaded() or onBitmapFailed(). Could some one lighten up. Is it loading only from Cache always? How to handle it. I am using only default Cache mechanism. No external memory involved. Wh... | Below is my code. During navigating to the screen for the first time onPrepareLoad() gets called. But it does not come to onBitmapLoaded() or onBitmapFailed(). Could some one lighten up. Is it loading only from Cache always? How to handle it. I am using only default Cache mechanism. No external memory involved. Where a... | android|android-volley|retrofit|picasso | 1 | 2015-02-26T21:54:50.657Z | 2,015 | 2 | 21 | 3 | 947 | 2 | 433 | 53 | 4 | 1 | true | false | false | false | false | false | low |
28,753,523 | How to use Native Android ImageView in a Xamarin Forms PCL? | <p>I am new to Xamarin, but learning quickly. I have what is hopefully a straightforward question. I know that I can customize Xamarin Forms controls per platform using custom renderers, and I also know that I can use native controls that have 0-param constructors with dependency service.</p>
<p>my question is, how do... | I am new to Xamarin, but learning quickly. I have what is hopefully a straightforward question. I know that I can customize Xamarin Forms controls per platform using custom renderers, and I also know that I can use native controls that have 0-param constructors with dependency service. my question is, how do I use a na... | c#|android|xamarin|xamarin.forms | 2 | 2015-02-26T21:55:50.933Z | 2,015 | 2 | 21 | 3 | 1,486 | 1 | 699 | 59 | 4 | 0 | false | false | false | false | false | false | low |
28,753,540 | Force BarChart Y axis labels to be integers? | <p>I've created a BarChart using MPAndroidChart and I'm entering the data dynamically. This means that I need my Y axis to also be determined dynamically. All of my data is represented as integers, however the Y axis is sometimes displaying the legend as decimal values with 1 decimal point.</p>
<p>I've attempted to us... | I've created a BarChart using MPAndroidChart and I'm entering the data dynamically. This means that I need my Y axis to also be determined dynamically. All of my data is represented as integers, however the Y axis is sometimes displaying the legend as decimal values with 1 decimal point. I've attempted to use a ValueFo... | android|bar-chart|mpandroidchart | 19 | 2015-02-26T21:57:01.323Z | 2,015 | 2 | 21 | 3 | 17,346 | 10 | 1,412 | 44 | 3 | 1 | true | false | true | true | true | false | medium |
28,753,607 | is it posible to compare image at realtime using camera with stored images in db, android java | <p>I am doing image processing, but stuck in. can we implement realtime image processing, like the camera captures videos and also compares the object with stored images in data base, need algorithm for implementing this idea, any tutorial, link or source will be appreciated. </p> | I am doing image processing, but stuck in. can we implement realtime image processing, like the camera captures videos and also compares the object with stored images in data base, need algorithm for implementing this idea, any tutorial, link or source will be appreciated. | java|android|database|image-processing|camera | 0 | 2015-02-26T22:01:55.317Z | 2,015 | 2 | 22 | 3 | 833 | 1 | 273 | 94 | 5 | 0 | false | false | false | false | false | false | zero |
28,753,763 | Specify which activity to resume on if user exits and then returns to app | <p>Is there an easy way to resume an app on a different activity from which it exited? i.e. if user exits app (e.g. press device home button) on a certain activity, when app is resumed I would like to resume on a different activity. </p>
<p>Thanks. </p> | Is there an easy way to resume an app on a different activity from which it exited? i.e. if user exits app (e.g. press device home button) on a certain activity, when app is resumed I would like to resume on a different activity. Thanks. | android|android-activity|exit|resume | 0 | 2015-02-26T22:12:27.843Z | 2,015 | 2 | 22 | 3 | 163 | 1 | 237 | 73 | 4 | 0 | false | false | false | false | false | false | zero |
28,753,773 | Could not write request: no suitable HttpMessageConverter found for request type [org.json.JSONObject] and content type [application/json] | <p>I'm digging myself in trying to send a POST request with a JSON payload to a remote server.</p>
<p>This GET curl command works fine:</p>
<pre><code>curl -H "Accept:application/json" --user aaa@aaa.com:aaa "http://www.aaa.com:8080/aaa-project-rest/api/users/1" -i
</code></pre>
<p>And this POST one works fine too:<... | I'm digging myself in trying to send a POST request with a JSON payload to a remote server. This GET curl command works fine: [CODE] And this POST one works fine too: [CODE] And so I'm trying to mimic it in my Android app. The app works fine on the first GET request but gives a 400 Bad Request on the second POST one. H... | android|post|resttemplate | 21 | 2015-02-26T22:13:14.317Z | 2,015 | 2 | 22 | 3 | 74,632 | 5 | 546 | 138 | 3 | 7 | true | false | true | true | true | false | high |
28,753,801 | Disable escaping in Android Volley | <p>In my Android application I use <a href="http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/StringEscapeUtils.html#escapeJson(java.lang.String)" rel="nofollow">escapeJson</a> on the strings (which are created by the user) I upload to my server using <a href="https://developer... | In my Android application I use escapeJson on the strings (which are created by the user) I upload to my server using StringRequest . If the strings contain a new line then the string on the server contains \\n instead of \n at each new line. [CODE] If I type some lines of text in my textview and send it to the server ... | java|android|escaping|android-volley | 0 | 2015-02-26T22:15:02.093Z | 2,015 | 2 | 22 | 3 | 516 | 1 | 465 | 34 | 4 | 1 | true | false | false | false | false | false | zero |
28,754,038 | Change background color of Android Action Bar | <p>I have an Activity with an action bar. minSdkVersion is 11.</p>
<p>The action bar is a grey color, I would like to change it to a different color so that it matches other colors in my application.</p>
<p>I have created the following styles</p>
<pre><code><style name="MyTheme" parent="@android:style/Theme.Holo.... | I have an Activity with an action bar. minSdkVersion is 11. The action bar is a grey color, I would like to change it to a different color so that it matches other colors in my application. I have created the following styles [CODE] And set this activity's theme in the appmanifest to MyTheme but when I run the applicat... | android | 0 | 2015-02-26T22:30:55.840Z | 2,015 | 2 | 22 | 3 | 76 | 3 | 371 | 45 | 1 | 2 | true | false | false | false | false | false | zero |
28,754,048 | Android fragment order after orientation changed | <p>I have one activity with many fragments.
If I call fragment B from fragment A(A background, B foreground) and then change the orientation of my device, fragments are showed in different order: A is in foreground and B in background.
If I press back, fragment B is detached so I assume that the position into the backs... | I have one activity with many fragments. If I call fragment B from fragment A(A background, B foreground) and then change the orientation of my device, fragments are showed in different order: A is in foreground and B in background. If I press back, fragment B is detached so I assume that the position into the backstac... | android|fragment | 1 | 2015-02-26T22:31:22.677Z | 2,015 | 2 | 22 | 3 | 308 | 1 | 446 | 48 | 2 | 0 | false | false | false | false | false | false | low |
28,754,053 | Getting NullPointerException when trying to hide Actionbar item | <p>I'm getting a NullPointerException when I want to hide a Action Button from my Actionbar.
I've got a simple Actionbar and a Navigationdrawer.
I just want to hide the action login button on the right top of the Actionbar when successfully logging in with a login dialog.</p>
<p><strong>NavigationDrawerFragment:</stro... | I'm getting a NullPointerException when I want to hide a Action Button from my Actionbar. I've got a simple Actionbar and a Navigationdrawer. I just want to hide the action login button on the right top of the Actionbar when successfully logging in with a login dialog. NavigationDrawerFragment: [CODE] The error appears... | android|button|nullpointerexception|android-actionbar|hide | 2 | 2015-02-26T22:31:44.540Z | 2,015 | 2 | 22 | 3 | 4,551 | 1 | 357 | 63 | 5 | 4 | true | false | true | false | false | false | low |
28,754,103 | Android remoteviews in notification | <p>I am developing a music player application. The player is in a service. When a song starts to play i want to show a custom notification with remoteViews.</p>
<p>What i designed for the layout is:</p>
<p><img src="https://i.stack.imgur.com/zWPNc.jpg" alt="android studio screenshot" /></p>
<p>but unfortunately the tex... | I am developing a music player application. The player is in a service. When a song starts to play i want to show a custom notification with remoteViews. What i designed for the layout is: but unfortunately the textviews are gone when the notification is built: the code for the layout is as follows: notification_player... | android|android-layout | 6 | 2015-02-26T22:35:23.140Z | 2,015 | 2 | 22 | 3 | 2,720 | 1 | 642 | 35 | 2 | 2 | true | false | true | false | false | false | medium |
28,754,186 | How do I add a custom picture and title to an activity's top bar | <p>I'm targeting API level 9.</p>
<p>My main activity's top bar looks like this:
<img src="https://i.stack.imgur.com/V1THi.png" alt=""></p>
<p><code>AndroidManifest.xml</code> looks like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/a... | I'm targeting API level 9. My main activity's top bar looks like this: AndroidManifest.xml looks like this: [CODE] res/menu/menu_main.xml looks like this: [CODE] I tried adding @drawable/logo to the Manifest, but no luck. How do I add a custom icon with a custom title next to it for my main activity? | java|android|xml | 0 | 2015-02-26T22:40:19.003Z | 2,015 | 2 | 22 | 3 | 59 | 3 | 301 | 64 | 3 | 2 | true | false | false | false | false | false | zero |
28,754,259 | Close many cursor instances | <p>I have a food table, where for each row I initiate a cursor instance to get the nutrients for the selected unit of measurement. I wonder how I can close the cursors, since they need to be constantly opened, because the user may at any time choose a different unit of measurement for each food. </p>
<p>Any ideas?</p>... | I have a food table, where for each row I initiate a cursor instance to get the nutrients for the selected unit of measurement. I wonder how I can close the cursors, since they need to be constantly opened, because the user may at any time choose a different unit of measurement for each food. Any ideas? EDIT As Quantur... | android|cursor | 0 | 2015-02-26T22:46:01.067Z | 2,015 | 2 | 22 | 3 | 65 | 0 | 406 | 27 | 2 | 1 | true | true | false | false | false | false | zero |
28,754,319 | expandable list view checkbox smaller | <p>Here I have a expandable list view </p>
<p><img src="https://i.stack.imgur.com/NAXUS.jpg" alt="enter image description here"></p>
<p>now i put a Checkbox in it in the childs below</p>
<p><img src="https://i.stack.imgur.com/sfzON.jpg" alt="enter image description here"></p>
<p>and my childview grow bigger - why a... | Here I have a expandable list view now i put a Checkbox in it in the childs below and my childview grow bigger - why and how can I set it smaller? [CODE] | android|checkbox|expandablelistview | 0 | 2015-02-26T22:49:51.550Z | 2,015 | 2 | 22 | 3 | 74 | 1 | 153 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
28,754,360 | How to apply a background only for the drawable portion of a textview in Android? | <p>I have a textview in a layout which has drawable set (leftDrawable). I would like to have a background applied to only the drawable portion and the text should appear outside of the background. Is this possible?</p> | I have a textview in a layout which has drawable set (leftDrawable). I would like to have a background applied to only the drawable portion and the text should appear outside of the background. Is this possible? | android|textview|android-drawable | 1 | 2015-02-26T22:52:20.997Z | 2,015 | 2 | 22 | 3 | 980 | 1 | 211 | 81 | 3 | 0 | false | false | false | false | false | false | low |
28,754,388 | How is Google's App indexing different from Facebook's App links? | <ul>
<li>Both of them seem to provide a way to add the concept of <code>urls</code> to native apps</li>
<li>As far as I understand, Facebook tried to set a standard with App links for the problem</li>
<li>I am not sure where does Google's app indexing diverges from the same idea</li>
</ul>
<p><strong>Android App Index... | Both of them seem to provide a way to add the concept of urls to native apps As far as I understand, Facebook tried to set a standard with App links for the problem I am not sure where does Google's app indexing diverges from the same idea Android App Indexing says way to index app to map corresponding content on the w... | android|facebook|applinks|android-app-indexing|google-search-platform | 6 | 2015-02-26T22:54:24.643Z | 2,015 | 2 | 22 | 3 | 1,163 | 4 | 665 | 65 | 5 | 0 | false | false | false | false | false | false | medium |
28,754,458 | android http get rest database service or asynctask | <p>I have an activity with multiple fragment views (they get replaced with other fragments)</p>
<p>One of these fragments has an ASyncTask.
This ASyncTask queries a webserver, parses the response. Inserts the response data into a database and finally updates the UI using the onPostExecute method.</p>
<p>Now I am plan... | I have an activity with multiple fragment views (they get replaced with other fragments) One of these fragments has an ASyncTask. This ASyncTask queries a webserver, parses the response. Inserts the response data into a database and finally updates the UI using the onPostExecute method. Now I am planning to update the ... | android|user-interface|http|service|android-asynctask | 0 | 2015-02-26T22:59:48.283Z | 2,015 | 2 | 22 | 3 | 118 | 1 | 813 | 51 | 5 | 0 | false | false | false | false | false | false | zero |
28,754,470 | Are these compile statements needed? | <p>I am preparing to launch an Android application and the project gradle script has these lines</p>
<pre><code>compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.google.android.gms:play-services:6.+'
compile 'com.android.support:support-v4:21.0.+'
</code><... | I am preparing to launch an Android application and the project gradle script has these lines [CODE] My question is are they needed? I did not type/code the filetree one, and the others may have been a result of me testing out different libraries. My minSdkVersion is 11 and targetSdkVersion is 21. Secondly in the defau... | android|gradle | 0 | 2015-02-26T23:00:29.797Z | 2,015 | 2 | 23 | 3 | 18 | 1 | 429 | 36 | 2 | 1 | true | false | false | false | false | false | zero |
28,754,499 | How to get Context in an Intent Service | <p>Here's the scenario: I have a WakefulBroadcastReceiver that does a
backup to a network computer or the cloud. It's set to go off in the
middle of the night, when I know the tablet will have access to the
LAN. The backup will store the data to a location and a file that was "picked" by the fragment that instantiated ... | Here's the scenario: I have a WakefulBroadcastReceiver that does a backup to a network computer or the cloud. It's set to go off in the middle of the night, when I know the tablet will have access to the LAN. The backup will store the data to a location and a file that was "picked" by the fragment that instantiated the... | android|intentservice | 46 | 2015-02-26T23:02:40.933Z | 2,015 | 2 | 23 | 3 | 47,370 | 5 | 1,048 | 39 | 2 | 1 | true | false | true | true | true | false | high |
28,754,502 | Binary XML file line #11: Error inflating class fragment Can't find issues at that line though | <p>I am just completely lost at this point. This is my first major attempt at fragments i probably have screwed this up somehow. I am following along with a textbook, but its written for eclipse so some of the stuff does not line up so well.</p>
<p>Any help would be greatly appreciated</p>
<p>LogCat</p>
<pre><code>0... | I am just completely lost at this point. This is my first major attempt at fragments i probably have screwed this up somehow. I am following along with a textbook, but its written for eclipse so some of the stuff does not line up so well. Any help would be greatly appreciated LogCat [CODE] Here is my main activity [COD... | android|android-fragments | 0 | 2015-02-26T23:03:03.283Z | 2,015 | 2 | 23 | 3 | 382 | 0 | 370 | 94 | 2 | 4 | true | true | false | false | false | false | zero |
28,754,557 | How do I know which button is touched from first activity? | <p>I have several buttons which take me to the same activity. And I would that particular counter is increased depending on which button is touched(from the previous activity). How do I know which button is touched without give error:
Example code with only two buttons. Activity A:</p>
<pre><code>btnSi.setOnClickListe... | I have several buttons which take me to the same activity. And I would that particular counter is increased depending on which button is touched(from the previous activity). How do I know which button is touched without give error: Example code with only two buttons. Activity A: [CODE] Activity B (Oncreate): [CODE] Thi... | android|android-intent|android-activity|onclick|boolean | 0 | 2015-02-26T23:06:59.033Z | 2,015 | 2 | 23 | 3 | 42 | 1 | 483 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
28,754,653 | Stop user scroll to set position on RecyclerView | <p>So I've got a problem, i'm quite new to android programming, it's been only 6-8 weeks since i've started programming android apps so i may be blind and not see the easy answer but here's my problem: </p>
<p>I'm making a school project and i'm trying to develop a similar calendar to the one in Today's Calendar split... | So I've got a problem, i'm quite new to android programming, it's been only 6-8 weeks since i've started programming android apps so i may be blind and not see the easy answer but here's my problem: I'm making a school project and i'm trying to develop a similar calendar to the one in Today's Calendar split view (The o... | android|scroll|android-recyclerview | 9 | 2015-02-26T23:15:08.720Z | 2,015 | 2 | 23 | 3 | 13,454 | 1 | 1,497 | 48 | 3 | 0 | false | false | true | true | false | false | medium |
28,754,749 | when i add an image to my app, the AVD won't load and i get this message | <p>'qemu: could not open disk image C:\Users\William.android\avd\Nexus_5_API_21_x86.avd\sdcard.img: Operation not permitted
Error accepting connection, aborting'</p>
<p>how do i fix it? bear in mind i'm an ultimate beginner</p> | 'qemu: could not open disk image C:\Users\William.android\avd\Nexus_5_API_21_x86.avd\sdcard.img: Operation not permitted Error accepting connection, aborting' how do i fix it? bear in mind i'm an ultimate beginner | android | 2 | 2015-02-26T23:22:16.927Z | 2,015 | 2 | 23 | 3 | 2,149 | 3 | 213 | 72 | 1 | 0 | false | false | false | false | false | false | low |
28,754,754 | TaskStackBuilder#startActivities() NullPointerException | <p>I have a crash that keeps occurring on 4.4.2 and 4.4.3 devices (although I'm not sure this is an API issue), where in some <code>ParsePushBroadcastReceiver</code> the following code causes a <code>NullPointerException</code> somewhere deep inside the <code>startActivities</code> call.</p>
<pre><code>Intent intent =... | I have a crash that keeps occurring on 4.4.2 and 4.4.3 devices (although I'm not sure this is an API issue), where in some ParsePushBroadcastReceiver the following code causes a NullPointerException somewhere deep inside the startActivities call. [CODE] I have tried testing to see whether the context was null, however,... | android|android-intent|broadcastreceiver|taskstackbuilder | 9 | 2015-02-26T23:22:42.703Z | 2,015 | 2 | 23 | 3 | 1,795 | 1 | 478 | 55 | 4 | 2 | true | false | false | false | false | false | medium |
28,754,760 | ResultReceiver.send throws nullpointerexception | <p>I have searched for an answer but I couldn't find one. I am reverse geocoding latitude and latitude in IntentService then when I try to ResultReceiver.send it throws nullpointerexception. I debugged the arguments and they contain the address and the result code just like they are supposed to. I searched on any unini... | I have searched for an answer but I couldn't find one. I am reverse geocoding latitude and latitude in IntentService then when I try to ResultReceiver.send it throws nullpointerexception. I debugged the arguments and they contain the address and the result code just like they are supposed to. I searched on any uninitia... | java|android|nullpointerexception|intentservice | 1 | 2015-02-26T23:22:58.197Z | 2,015 | 2 | 23 | 3 | 1,280 | 1 | 494 | 47 | 4 | 2 | true | false | false | false | false | false | low |
28,754,782 | Android Wear Round Emulator inflating Square Layout | <p><i>I first want to say that I know there are already questions like this one on here, but none of them fixed this issue</i></p>
<p>I am using the Round Android Wear Emulator (Android 5.0.1 and x86) on Ubuntu. The screen appears round, and all other features on the emulator (set watch face, cards) appear as they wo... | I first want to say that I know there are already questions like this one on here, but none of them fixed this issue I am using the Round Android Wear Emulator (Android 5.0.1 and x86) on Ubuntu. The screen appears round, and all other features on the emulator (set watch face, cards) appear as they would on a round watc... | android|android-layout|android-emulator|wear-os | 0 | 2015-02-26T23:25:05.777Z | 2,015 | 2 | 23 | 3 | 276 | 1 | 628 | 51 | 4 | 2 | true | false | false | false | false | false | zero |
28,754,794 | Background App Image and partially transparent custom action bar | <p>I'm new in Android.
I have two questions:</p>
<p>I have an application with a first Login view and some others view.</p>
<p>I would like to set an image as background for all views except the login view. Is there a way to set this background view in some way or do I need to have an ImageView into every layouts?</... | I'm new in Android. I have two questions: I have an application with a first Login view and some others view. I would like to set an image as background for all views except the login view. Is there a way to set this background view in some way or do I need to have an ImageView into every layouts? Is it possible to hav... | android|android-activity|android-actionbar|imageview|android-styles | 0 | 2015-02-26T23:26:14.237Z | 2,015 | 2 | 23 | 3 | 348 | 1 | 625 | 64 | 5 | 0 | false | false | false | false | false | false | zero |
28,754,810 | How do you reference the same instance of a class when its passed in as a parameter in another class? | <p>I have extended SQLiteOpenHelper in this one class and have used the following method to update my database.</p>
<pre><code>public void UpDateDataBase(ItemClass itemClass){
SQLiteDatabase db = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(KEY_ItemClass... | I have extended SQLiteOpenHelper in this one class and have used the following method to update my database. [CODE] } And when I try to call the UpdateDataBase() method in my other class using [CODE] It tells me that I'm referencing a null object. How do I reference the same instance of the class? Thank you. Attempt to... | java|android | 0 | 2015-02-26T23:27:46.707Z | 2,015 | 2 | 23 | 3 | 41 | 2 | 509 | 101 | 2 | 2 | true | false | false | false | false | false | zero |
28,754,865 | Switch from one Activity to another one results OOM error on Samsung device | <p>I have one <code>Activity</code> with 3 <code>Fragments</code> and another <code>Activity</code> with 3 <code>Fragments</code>. In each <code>Fragment</code> I have 10 PNG pictures, each about 8kB in size. When I switch from the first <code>Activity</code> to another I get this error:</p>
<pre><code>02-27 00:19:28.... | I have one Activity with 3 Fragments and another Activity with 3 Fragments . In each Fragment I have 10 PNG pictures, each about 8kB in size. When I switch from the first Activity to another I get this error: [CODE] I've tested the app on a Blackberry 7' tablet, Alcatel OT phones and on Samsung phones and only on the S... | java|android|eclipse | -4 | 2015-02-26T23:32:07.473Z | 2,015 | 2 | 23 | 3 | 113 | 1 | 350 | 75 | 3 | 1 | true | false | false | false | false | true | negative |
28,754,881 | How to enable or disable the Notification LED in Android? | <p>How is it possible to enable or disable the Notification LED in Android?
I want to set it default that the LED isn't shown anymore until I enable it again. So the LED is completely turned off.</p> | How is it possible to enable or disable the Notification LED in Android? I want to set it default that the LED isn't shown anymore until I enable it again. So the LED is completely turned off. | android|notifications|android-notifications|led | 2 | 2015-02-26T23:33:01.060Z | 2,015 | 2 | 23 | 3 | 1,290 | 1 | 192 | 57 | 4 | 0 | false | false | false | false | false | false | low |
28,754,882 | Using textbox background color and content as program status indicator | <p>I would like to create an indicator that would clearly show the user whether a certain feature of my application is "ON" or "OFF". Ideally a textbox with white font and black background saying "OFF", that would change to having a green background and black font saying "ON". What is the best way to implement this?
X... | I would like to create an indicator that would clearly show the user whether a certain feature of my application is "ON" or "OFF". Ideally a textbox with white font and black background saying "OFF", that would change to having a green background and black font saying "ON". What is the best way to implement this? XML c... | android|android-layout|visibility | 0 | 2015-02-26T23:33:03.057Z | 2,015 | 2 | 23 | 3 | 55 | 1 | 657 | 70 | 3 | 3 | true | false | false | false | false | false | zero |
28,754,888 | My Simple Interest calculator is crashing with a null pointer exception error | <p>My Simple Interest calculator is crashing with a null pointer exception error, not sure what the problem is, there are no errors in the IDE before I complile, this is new to me. Here is my code and logcat: edit: Icouldn't post a logcat as the editor thinks it's code and I can't get it to format correctly
Code:</p>
... | My Simple Interest calculator is crashing with a null pointer exception error, not sure what the problem is, there are no errors in the IDE before I complile, this is new to me. Here is my code and logcat: edit: Icouldn't post a logcat as the editor thinks it's code and I can't get it to format correctly Code: [CODE] | java|android|logcat | 0 | 2015-02-26T23:33:36.023Z | 2,015 | 2 | 23 | 3 | 151 | 1 | 318 | 77 | 3 | 1 | true | false | false | false | false | false | zero |
28,755,007 | Unable to add Window - token null is not for an Application (Async Task ) | <p>I develop an application for my school. The login screen should show a ProgressDialog, if you click on the Login Button. It works fine, but today i got this Error (with Stacktrace)</p>
<pre><code> android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at ... | I develop an application for my school. The login screen should show a ProgressDialog, if you click on the Login Button. It works fine, but today i got this Error (with Stacktrace) [CODE] I am not really sure what this means. I google some similair questions, but getApplicationContext() or getParent() in the the new Pr... | android|android-asynctask|null|progressdialog | 0 | 2015-02-26T23:45:38.747Z | 2,015 | 2 | 23 | 3 | 1,417 | 1 | 425 | 73 | 4 | 2 | true | false | false | false | false | false | zero |
28,755,011 | How do I store data in my android app? | <p>I'm very new to Android Developing. I made a small 2d game and I was wondering what the easiest way to store the high-score would be, so if the app is exited and returned to the high-score is retrieved from the last session. Any help would be appreciated!</p> | I'm very new to Android Developing. I made a small 2d game and I was wondering what the easiest way to store the high-score would be, so if the app is exited and returned to the high-score is retrieved from the last session. Any help would be appreciated! | java|android|android-studio | -4 | 2015-02-26T23:46:04Z | -1 | -1 | -1 | -1 | 678 | 1 | 255 | 38 | 3 | 0 | false | false | false | false | false | true | negative |
28,755,041 | android: how to customize <select> popup dialog in webview | <p>I'm using html5 to develope android app. In a webpage, I use select tag, like this.</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><!DOCTYPE html>
<html>
<head>
<meta name="... | I'm using html5 to develope android app. In a webpage, I use select tag, like this. [CODE] Using Android to browse, click the dropdown control, it will show a popup window, but I try it with serial mobile, the popup window is not same, how can I customize the style? | android|html|select|popup|window | 6 | 2015-02-26T23:49:06.190Z | 2,015 | 2 | 23 | 3 | 651 | 0 | 266 | 58 | 5 | 1 | true | true | false | false | false | false | medium |
28,755,104 | Android web automation in app | <p>I would like to make a simple android app that can perform some automated behaviour on the web.</p>
<p>I want to be able to input username/password details and gave my app navigate to a website via a web view presumably and fill in my login credentials and navigate to a particular section of the website.</p>
<p>I ... | I would like to make a simple android app that can perform some automated behaviour on the web. I want to be able to input username/password details and gave my app navigate to a website via a web view presumably and fill in my login credentials and navigate to a particular section of the website. I realise selenium wo... | android|selenium|web-testing | 1 | 2015-02-26T23:55:16.950Z | 2,015 | 2 | 23 | 3 | 1,792 | 1 | 608 | 29 | 3 | 0 | false | false | false | false | false | false | low |
28,755,174 | OnMapReadyCallback cannot be resolved to a type | <p>I'm new to Google Maps inside an Android app and I'm trying to test the example that is included in the documentation:
<a href="https://developers.google.com/maps/documentation/android/" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android/</a></p>
<p>I did some research and apparently... | I'm new to Google Maps inside an Android app and I'm trying to test the example that is included in the documentation: https://developers.google.com/maps/documentation/android/ I did some research and apparently this was included in the latest Google Play Services package. I really think I have the last one, but I stil... | java|android|google-maps|google-play-services | 2 | 2015-02-27T00:01:11.177Z | 2,015 | 2 | 0 | 4 | 7,618 | 3 | 428 | 47 | 4 | 0 | false | false | true | false | false | false | low |
28,755,351 | Volley Post Request Failure with Webservice URL | <p>I have a URL in my webservice that responds to the request:</p>
<p><code>http://localhost:3000/setFavoriteSpecial/1/47/190/2</code> in my rails app that acts as a webservice with the method as:</p>
<pre><code>def setFavoriteSpecial
setFavoriteSpecial = "INSERT INTO androidchatterdatabase.users_saved_campai... | I have a URL in my webservice that responds to the request: http://localhost:3000/setFavoriteSpecial/1/47/190/2 in my rails app that acts as a webservice with the method as: [CODE] with route: [CODE] to set a persons favorite special given the four input parameters. However the volley post request, passing in the corre... | android|android-volley | 1 | 2015-02-27T00:18:42.687Z | 2,015 | 2 | 0 | 4 | 499 | 0 | 502 | 47 | 2 | 4 | true | true | false | false | false | false | low |
28,755,475 | C# webservice and volley android | <p>There are simple connections to consume a php page, but lack information on how to get consuming a DotNet webservice. This WebService returns a string in json and the problem is how to Volley call the webservice method. If you try to call a webservice with volley it shows only the xml configuration page, but is not ... | There are simple connections to consume a php page, but lack information on how to get consuming a DotNet webservice. This WebService returns a string in json and the problem is how to Volley call the webservice method. If you try to call a webservice with volley it shows only the xml configuration page, but is not the... | c#|json|web-services|asmx|android-volley | 0 | 2015-02-27T00:31:04.727Z | 2,015 | 2 | 0 | 4 | 892 | 0 | 595 | 32 | 5 | 0 | false | true | false | false | false | false | zero |
28,755,552 | Using custom data files in an android app | <p>I am a fairly good java programmer and am now tackling android app development using the android sdk. I am creating a reader app using java that uses custom java classes to store the reading material. In a normal java program I could save these files to a .dat file as a single array of objects and access them later... | I am a fairly good java programmer and am now tackling android app development using the android sdk. I am creating a reader app using java that uses custom java classes to store the reading material. In a normal java program I could save these files to a .dat file as a single array of objects and access them later wit... | java|android|class|file-io | 0 | 2015-02-27T00:38:38.520Z | 2,015 | 2 | 0 | 4 | 123 | 0 | 557 | 41 | 4 | 0 | false | true | false | false | false | false | zero |
28,755,558 | Android: Getting error when pass an object to an Activity implementing Parceable | <p>I'm passing an object to an Activity implementing Parceable but when I try to get it I get error. I'm following this <a href="https://stackoverflow.com/questions/7400100/android-parcelable-object-return-null">Android Parcelable object return Null</a> but I can't see where is the error. Can you please help me?</p>
<... | I'm passing an object to an Activity implementing Parceable but when I try to get it I get error. I'm following this Android Parcelable object return Null but I can't see where is the error. Can you please help me? Ver_Activity.java [CODE] Ver_Graficos.java [CODE] Grafico.class [CODE] Error: [CODE] | android | 0 | 2015-02-27T00:39:13.920Z | 2,015 | 2 | 0 | 4 | 67 | 1 | 299 | 80 | 1 | 4 | true | false | false | false | false | false | zero |
28,755,675 | free memory reporting when running "shark evolution" | <p>I'm getting this message:</p>
<p>I/Unity ( 8132): Phone Stats - System Memory Free = 2019 Cores 2 Rez 1920</p>
<p>when I try to run Shark Evolution on my Android-L system. Apparently, there isn't that much free memory. /proc/meminfo reports only about 500 MB free. Not sure how the game ends up getting this big n... | I'm getting this message: I/Unity ( 8132): Phone Stats - System Memory Free = 2019 Cores 2 Rez 1920 when I try to run Shark Evolution on my Android-L system. Apparently, there isn't that much free memory. /proc/meminfo reports only about 500 MB free. Not sure how the game ends up getting this big number. Any thoughts? ... | android|unity3d | 0 | 2015-02-27T00:51:15.780Z | 2,015 | 2 | 0 | 4 | 63 | 1 | 326 | 52 | 2 | 0 | false | false | false | false | false | false | zero |
28,755,705 | Callback not being called in Facebook login flow | <p>Ok this is bugging me for couple of hours now...</p>
<p>I have a MainActivity, calling TutorialActivity which is composed of a <code>ViewPager</code> and some other elements.</p>
<p>One of the pages in the <code>ViewPager</code> is a facebook login fragment named LoginFragment, showing the <code>LoginButton</code>... | Ok this is bugging me for couple of hours now... I have a MainActivity, calling TutorialActivity which is composed of a ViewPager and some other elements. One of the pages in the ViewPager is a facebook login fragment named LoginFragment, showing the LoginButton . My problem is that my callback is not being called afte... | android|facebook|authentication | 0 | 2015-02-27T00:55:02.767Z | 2,015 | 2 | 0 | 4 | 248 | 1 | 494 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
28,755,795 | Display Dialog when loading internet | <p>I am trying to create a dialog when loading Httprequest. But it load during the i click to intent from last Activity, but not the start of this Activity.</p>
<p>And the dialog just shown in 0.00001sec then dismiss.</p>
<p>Am i implement it wrongly?</p>
<p>Here is my codes</p>
<pre><code>@Override
public void onC... | I am trying to create a dialog when loading Httprequest. But it load during the i click to intent from last Activity, but not the start of this Activity. And the dialog just shown in 0.00001sec then dismiss. Am i implement it wrongly? Here is my codes [CODE] | android|android-asynctask|dialog|httprequest | 0 | 2015-02-27T01:03:56.780Z | 2,015 | 2 | 1 | 4 | 54 | 1 | 258 | 36 | 4 | 1 | true | false | false | false | false | false | zero |
28,755,825 | Android app naming guidelines, first word as company | <p>I recently received an email from Google Play regarding my apps name. The app is a reader for the webcomic xkcd and it's title is "xkcd Viewer". I learned that new naming conventions state you cannot use a company name (xkcd) as the first word in the app title.</p>
<p>My question is, does this apply to th... | I recently received an email from Google Play regarding my apps name. The app is a reader for the webcomic xkcd and it's title is "xkcd Viewer". I learned that new naming conventions state you cannot use a company name (xkcd) as the first word in the app title. My question is, does this apply to the Play Stor... | android | 3 | 2015-02-27T01:08:10.660Z | 2,015 | 2 | 1 | 4 | 1,664 | 1 | 2,010 | 52 | 1 | 0 | false | false | false | false | false | false | low |
28,755,872 | Android Google Place API java.lang.NullPointerException error | <p>Im trying to add the name of the resturaunt and the category onto a card view via custom adapter. How ever when ever i run the program i keep getting a java null pointer exception. Im a little bit startled by this, i have been looking through the web but have found no luck. Thanks in advance!</p>
<pre><code> //Main... | Im trying to add the name of the resturaunt and the category onto a card view via custom adapter. How ever when ever i run the program i keep getting a java null pointer exception. Im a little bit startled by this, i have been looking through the web but have found no luck. Thanks in advance! [CODE] Heres my Places Cla... | java|android|google-places-api | 0 | 2015-02-27T01:13:38.060Z | 2,015 | 2 | 1 | 4 | 1,152 | 1 | 376 | 61 | 3 | 4 | true | false | false | false | false | false | zero |
28,755,883 | MaterialDesignLibrary FloatButton | <p>I'm updating an old existing app to be 4+ only and am trying to introduce a flavour of Material Design for < Lollipop. To that end, I am using <a href="https://github.com/navasmdc/MaterialDesignLibrary" rel="nofollow noreferrer">MaterialDesignLibrary</a> to add a few elements - in particular, the floating button.... | I'm updating an old existing app to be 4+ only and am trying to introduce a flavour of Material Design for < Lollipop. To that end, I am using MaterialDesignLibrary to add a few elements - in particular, the floating button. The floating button displays OK, along with its animation, but I cannot get its bottom position... | android|android-layout | 0 | 2015-02-27T01:14:47.623Z | 2,015 | 2 | 1 | 4 | 283 | 1 | 1,459 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
28,755,934 | Android Studio - Writing text to a file using a Save button in the menu | <p>I am a beginner to Android apps and I am sorry for wasting your time. But I have struggled for a while on this topic. I am building a text editor, and I have a Save button in a menu. I am trying to figure out how to make the Save button save the contents of a text area to a file. I have only one issue in my code, wh... | I am a beginner to Android apps and I am sorry for wasting your time. But I have struggled for a while on this topic. I am building a text editor, and I have a Save button in a menu. I am trying to figure out how to make the Save button save the contents of a text area to a file. I have only one issue in my code, which... | android|text-editor | -1 | 2015-02-27T01:20:05.307Z | 2,015 | 2 | 1 | 4 | 8,694 | 1 | 401 | 71 | 2 | 1 | true | false | true | false | false | true | negative |
28,756,008 | Combine two bitmaps with newCanvas.drawBitmap | <p>I have 2 ImageViews within a RelativeLayout, one is a background and one is an image the user can scale and move and place on top of the background. I would next like to combine them preserving the size and position of the top image. So when the user clicks save they get a new image. Is this possible? I am new to pr... | I have 2 ImageViews within a RelativeLayout, one is a background and one is an image the user can scale and move and place on top of the background. I would next like to combine them preserving the size and position of the top image. So when the user clicks save they get a new image. Is this possible? I am new to proce... | android|canvas|bitmap|imageview | 0 | 2015-02-27T01:27:48.953Z | 2,015 | 2 | 1 | 4 | 422 | 2 | 602 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
28,756,024 | How is it possible to uninstall the currently deployed app from phone within Android Studio? | <p>I'd like to uninstall the app that I'm working on from within Android Studio instead of having to click SETTINGS -> APPS -> [name of app] -> UNINSTALL -> OK</p>
<p>Can that be done ?</p> | I'd like to uninstall the app that I'm working on from within Android Studio instead of having to click SETTINGS -> APPS -> [name of app] -> UNINSTALL -> OK Can that be done ? | android | 0 | 2015-02-27T01:30:14.470Z | 2,015 | 2 | 1 | 4 | 55 | 2 | 175 | 92 | 1 | 0 | false | false | false | false | false | false | zero |
28,756,035 | How to remove button shadow (android) | <p>I want to remove the shadow from the button to make it seem more flat.</p>
<p>I have this right now: </p>
<p><img src="https://i.stack.imgur.com/ANKfF.png" alt="cancel button with shadow"></p>
<p>But I want this: </p>
<p><img src="https://i.stack.imgur.com/jZfWz.png" alt="cancel button without shadow"></p> | I want to remove the shadow from the button to make it seem more flat. I have this right now: But I want this: | android|button|shadow | 217 | 2015-02-27T01:31:24.957Z | 2,015 | 2 | 1 | 4 | 161,595 | 14 | 110 | 37 | 3 | 0 | false | false | true | true | true | false | high |
28,756,040 | Fragments not changing in Navigation Drawer | <p>Issue that I have is that whenever I try to change from Menu fragment in the navigation drawer <strong>(Which it shows my pageviewer and listview correctly)</strong> to Contacto fragment, it stays in the same page with both pageviewer and listview including a large text I added in <code>lay_contactofragment.xml</cod... | Issue that I have is that whenever I try to change from Menu fragment in the navigation drawer (Which it shows my pageviewer and listview correctly) to Contacto fragment, it stays in the same page with both pageviewer and listview including a large text I added in lay_contactofragment.xml to differentiate both fragment... | android|android-fragments|android-listview|android-pageradapter | 0 | 2015-02-27T01:32:15.450Z | 2,015 | 2 | 1 | 4 | 2,051 | 1 | 843 | 43 | 4 | 8 | true | false | false | false | false | false | zero |
28,756,069 | Android Signature verification of PKCS#1 PSS (RSASSA-PKCS) not working with algorithm SHA256withRSA | <p>Im developing an mobile application which has to verify some signatures that it has received. I have got everything that i need - the input data, public key and the signature. But there is a problem. Im using the method SHA256withRSA for signature verifiation which contains this few lines of code to verify the signa... | Im developing an mobile application which has to verify some signatures that it has received. I have got everything that i need - the input data, public key and the signature. But there is a problem. Im using the method SHA256withRSA for signature verifiation which contains this few lines of code to verify the signatur... | android|signing | 4 | 2015-02-27T01:36:26.950Z | 2,015 | 2 | 1 | 4 | 1,100 | 1 | 537 | 99 | 2 | 1 | true | false | false | false | false | false | low |
28,756,078 | Android colors, fastest? | <p>What is faster android ?</p>
<pre><code>Color.rgb(184, 134, 011);
</code></pre>
<p>or</p>
<pre><code>Color.parseColor("#234181");
</code></pre>
<p>Or somethin else ?</p>
<p><strong>Answer:</strong> The fastest seems to be:</p>
<pre><code>int mycolor = 0xff234181;
</code></pre>
<p>Thanks to samgak and KenWolf.... | What is faster android ? [CODE] or [CODE] Or somethin else ? Answer: The fastest seems to be: [CODE] Thanks to samgak and KenWolf. However now I wonder how common functions handle it, here is the source of 2 View setbackgroundcolor() and TextView settextcolor() and (some) following function: [CODE] and [CODE] setTextCo... | android|performance|colors | 1 | 2015-02-27T01:38:02.730Z | 2,015 | 2 | 1 | 4 | 891 | 3 | 460 | 24 | 3 | 5 | true | false | false | false | false | false | low |
28,756,117 | Android: ScrollView keeps wrapping the content instead of using layout_height | <p>My ScrollView keeps wrapping the content inside of it instead of using the specified height I gave it. </p>
<p>Previewing the ScrollView in eclipse looks like this, and it's what I want:</p>
<p><img src="https://i.stack.imgur.com/YCWFI.png" alt="enter image description here"></p>
<p>But after inflating the Scrol... | My ScrollView keeps wrapping the content inside of it instead of using the specified height I gave it. Previewing the ScrollView in eclipse looks like this, and it's what I want: But after inflating the ScrollView and using addView() to add it to a RelativeLayout, it wraps the content making it look like this: Setting ... | android|xml|scrollview | 0 | 2015-02-27T01:42:44.610Z | 2,015 | 2 | 1 | 4 | 1,069 | 2 | 511 | 77 | 3 | 2 | true | false | false | false | false | false | zero |
28,756,125 | GLSL Fragment shader won't compile with a texture2D call uncommented | <p>I have a N910f note 4 with the last lollipop 5.0.1. Well, the fragment shader isn't compilling, but if i comment out the line of texture sampling (texture2D call) the shader compiles. I don't know what happends to the compiler because of Log.e(TAG, GLES20.glGetShaderInfoLog(shader)) call is not throwing any informa... | I have a N910f note 4 with the last lollipop 5.0.1. Well, the fragment shader isn't compilling, but if i comment out the line of texture sampling (texture2D call) the shader compiles. I don't know what happends to the compiler because of Log.e(TAG, GLES20.glGetShaderInfoLog(shader)) call is not throwing any information... | android|opengl-es|glsl|opengl-es-2.0|glsles | 0 | 2015-02-27T01:43:28.780Z | 2,015 | 2 | 1 | 4 | 343 | 1 | 568 | 68 | 5 | 2 | true | false | false | false | false | false | zero |
28,756,146 | Unable to debug Threads on Samsung Galaxy S5 (Android 5.0) | <p>Since I have updated Galaxy S5 to Lollipop I'm unable to debug only part
of the code that is run in the background.
In cases i put breakpoint somewhere on UI code, execution will normally
halt there. Prior to update debugging threads was possible.</p>
<p>What I have tried:</p>
<ul>
<li>used different cables</li>
<... | Since I have updated Galaxy S5 to Lollipop I'm unable to debug only part of the code that is run in the background. In cases i put breakpoint somewhere on UI code, execution will normally halt there. Prior to update debugging threads was possible. What I have tried: used different cables tested on different computer te... | android|multithreading|debugging|samsung-mobile | 2 | 2015-02-27T01:45:24Z | -1 | -1 | -1 | -1 | 187 | 0 | 971 | 58 | 4 | 0 | false | true | false | false | false | false | low |
28,756,183 | list view on relative layout didn't show | <p>activity_sms.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ListView
android:id="@+id/SMSList"
andro... | activity_sms.xml [CODE] code on SMSActivity.java [CODE] code on fragment_1.java [CODE] I tried to make a program to read SMS from inbox and show it on a ListView. It works when SMSActivity is the only activity there Now, I use MainActivity.java instead of SMSActivity.java as Main Activity. My goal is to invoke SMSActiv... | android-listview|android-studio|sms | 0 | 2015-02-27T01:48:39.047Z | 2,015 | 2 | 1 | 4 | 63 | 1 | 386 | 40 | 3 | 3 | true | false | false | false | false | false | zero |
28,756,233 | How can I read and deserialize this JSON with eclipse? | <p>I'm Newbie in Android Code (with eclipse), How can I read and Deserealize this <a href="https://validafacturas.com/BuzonFacturas/Account/Loginmb.aspx" rel="nofollow">JSON</a> I need some example please.</p>
<p>I tried qith this code, but just work's with arrays and php, is no working with ASPX (.net), when the app ... | I'm Newbie in Android Code (with eclipse), How can I read and Deserealize this JSON I need some example please. I tried qith this code, but just work's with arrays and php, is no working with ASPX (.net), when the app start, just stopped! [CODE] The error code what i have is the next: [CODE] | android|asp.net|json|eclipse|serialization | 0 | 2015-02-27T01:53:53.237Z | 2,015 | 2 | 1 | 4 | 243 | 2 | 292 | 54 | 5 | 2 | true | false | false | false | false | false | zero |
28,756,262 | FragmentStatePager instantiate my Fragment twice | <p>I am using the following the custom viewPager with FragmentStatePagerAdapter to create a set of fragments for user to write the specific profile. The data of the user can be retrieved by SQL with respect to the position of the child page of the viewpager. When it comes to the execution , I see that the fragment is c... | I am using the following the custom viewPager with FragmentStatePagerAdapter to create a set of fragments for user to write the specific profile. The data of the user can be retrieved by SQL with respect to the position of the child page of the viewpager. When it comes to the execution , I see that the fragment is crea... | android-fragments|android-viewpager | 2 | 2015-02-27T01:57:55.487Z | 2,015 | 2 | 1 | 4 | 102 | 0 | 647 | 48 | 2 | 1 | true | true | false | false | false | false | low |
28,756,370 | Prevent site from being viewed in Webview (android) | <p>An unauthorized app on the google play store is utilizing webview to frame our mobile e-commerce site. </p>
<p>Aside from branding impacts, we have concerns over security & pci. </p>
<p>Is there a technical solution to preventing an unauthorized source from utilizing webview on our site?</p> | An unauthorized app on the google play store is utilizing webview to frame our mobile e-commerce site. Aside from branding impacts, we have concerns over security & pci. Is there a technical solution to preventing an unauthorized source from utilizing webview on our site? | android|security|webview|pci-compliance | 0 | 2015-02-27T02:10:08.943Z | 2,015 | 2 | 2 | 4 | 169 | 1 | 272 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
28,756,371 | LibGDX game crashes with "java platform se binary stopped working" | <p>Im having this really weird problem where my LibGDX game, suddently, after a few minutes playing, crashes with no Exceptions thrown, it just freezes and crashes, and I have to force the process down.</p>
<p>I have no idea how to debug this kind if error and google searches are not helping with this particular case.... | Im having this really weird problem where my LibGDX game, suddently, after a few minutes playing, crashes with no Exceptions thrown, it just freezes and crashes, and I have to force the process down. I have no idea how to debug this kind if error and google searches are not helping with this particular case. I tried to... | java|debugging|android-ndk|crash|libgdx | 1 | 2015-02-27T02:10:09.487Z | 2,015 | 2 | 2 | 4 | 1,408 | 2 | 743 | 66 | 5 | 0 | false | false | false | false | false | false | low |
28,756,434 | How to make a custom clickable by index? | <p>I'm following <a href="http://www.androidhive.info/2014/06/android-facebook-like-custom-listview-feed-using-volley/" rel="nofollow noreferrer">this tutorial</a> and trying to make the profile photo's and the pictures posted in the post clickable.</p>
<p>If you visit the link you can see what it basically what it lo... | I'm following this tutorial and trying to make the profile photo's and the pictures posted in the post clickable. If you visit the link you can see what it basically what it looks like. Depending on the id of the image, I wanted to venture to a different activity. Here's what I've discovered that confusing me so much. ... | java|android | -1 | 2015-02-27T02:18:08.423Z | 2,015 | 2 | 2 | 4 | 124 | 1 | 1,640 | 40 | 2 | 6 | true | false | false | false | false | true | negative |
28,756,478 | Android: AbsListView.setItemChecked() cause ActionMode Destroy and Recreate? | <p>If you call <code>AbsListView.setItemChecked()</code> directly, it works well, and the <code>ActionMode</code> will activate and create.</p>
<pre><code>mGridView.setItemChecked(pPosition, true);
</code></pre>
<p>But when you call <code>View.startActionMode()</code> first, then call <code>AbsListView.setItemChecked... | If you call AbsListView.setItemChecked() directly, it works well, and the ActionMode will activate and create. [CODE] But when you call View.startActionMode() first, then call AbsListView.setItemChecked() , the ActionMode create by startActionMode() will destroy, and recreate a new one by setItemChecked() . My question... | android|actionmode | 2 | 2015-02-27T02:23:51.047Z | 2,015 | 2 | 2 | 4 | 608 | 1 | 427 | 76 | 2 | 1 | true | false | false | false | false | false | low |
28,756,494 | 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference | <p>Hi I'm making an app that can download video from link.<br>
But I got NullPointerException <strong>(at kr.co.lenonstudio.kakaovideo.webviewActivity.onCreate(webviewActivity.java:43)</strong> <br><br>
webviewactivity.java:43 is <strong>link=intent.getExtras().getString("link");</strong>
<br>I've Highlighted the ones ... | Hi I'm making an app that can download video from link. But I got NullPointerException (at kr.co.lenonstudio.kakaovideo.webviewActivity.onCreate(webviewActivity.java:43) webviewactivity.java:43 is link=intent.getExtras().getString("link"); I've Highlighted the ones that are making a problem. Thank you. webviewactivity.... | java|android|debugging | 4 | 2015-02-27T02:25:23.030Z | 2,015 | 2 | 2 | 4 | 29,346 | 1 | 370 | 91 | 3 | 3 | true | false | true | true | false | false | low |
28,756,577 | Activity and Fragment Lifecycle, does the onResume fire one after the other? | <p>I am wondering what the proper order goes when a user returns to an <code>Activity</code> from the <code>Home Screen</code>.</p>
<p>Will the <code>Activity's onResume()</code> execute first, and then the <code>Fragment's onResume()</code> execute after? Does it do it in order, or will it do it concurrently?</p>
<p... | I am wondering what the proper order goes when a user returns to an Activity from the Home Screen . Will the Activity's onResume() execute first, and then the Fragment's onResume() execute after? Does it do it in order, or will it do it concurrently? I put some code in my Fragment's onResume() but it doesn't seem to be... | android|android-activity|android-fragments|activity-lifecycle|fragment-lifecycle | 6 | 2015-02-27T02:35:22.990Z | 2,015 | 2 | 2 | 4 | 7,003 | 2 | 360 | 76 | 5 | 0 | false | false | true | false | false | false | medium |
28,756,594 | Scaling Android drawable resource | <p>I'm making a simple board game that uses a table view and a button array as the board squares. My movePlayer takes a destination row and column, places a token in that row and column and replaces its previous position with a button.</p>
<p>My movePlayer method is:</p>
<pre><code>private void movePlayer(int moveToR... | I'm making a simple board game that uses a table view and a button array as the board squares. My movePlayer takes a destination row and column, places a token in that row and column and replaces its previous position with a button. My movePlayer method is: [CODE] I get the error java.lang.NullPointerException: Attempt... | java|android|android-button | 1 | 2015-02-27T02:37:14.700Z | 2,015 | 2 | 2 | 4 | 1,353 | 1 | 971 | 33 | 3 | 1 | true | false | false | false | false | false | low |
28,756,637 | Detecting if a web app is bookmarked to homescreen in Android | <p>I've built a responsive web app which utilises some simple HTML and jQuery. When the app is loaded in a mobile browser, a bootstrap <code>modal()</code> function is called which displays a simple 'bookmark to your homescreen' message.</p>
<p>For iOS I am able to check if the web app is being initialised from the h... | I've built a responsive web app which utilises some simple HTML and jQuery. When the app is loaded in a mobile browser, a bootstrap modal() function is called which displays a simple 'bookmark to your homescreen' message. For iOS I am able to check if the web app is being initialised from the homescreen bookmark via th... | javascript|android|jquery|ios | 3 | 2015-02-27T02:41:15.353Z | 2,015 | 2 | 2 | 4 | 1,950 | 2 | 609 | 61 | 4 | 1 | true | false | false | false | false | false | low |
28,756,653 | Android, How to cancel an alarm? alarmManager.cancel not working | <p>I have an application where you can create 5 alarms where to be created are displayed in a ListView, and assume that when an element of listView the played alarm but should remove the item from the listview but the alarm is removed to reach the scheduled time always sounds.
I have reviewed muchísmos tutorials and gu... | I have an application where you can create 5 alarms where to be created are displayed in a ListView, and assume that when an element of listView the played alarm but should remove the item from the listview but the alarm is removed to reach the scheduled time always sounds. I have reviewed muchísmos tutorials and guide... | android|android-listview|alarmmanager|alarm|android-alarms | 4 | 2015-02-27T02:43:10.163Z | 2,015 | 2 | 2 | 4 | 5,892 | 2 | 1,018 | 64 | 5 | 3 | true | false | true | false | false | false | low |
28,756,709 | Further elaborate of main() method in Android | <p>I konw that many people have asked the question of no main() in Android.
However, no one made the final conclusion. </p>
<p>In browser applets, there is no main().
In Android oncreate(), there is no main().
It is because there is a framework in the middle. </p>
<p>Can I say Android is no main(), but the Android fr... | I konw that many people have asked the question of no main() in Android. However, no one made the final conclusion. In browser applets, there is no main(). In Android oncreate(), there is no main(). It is because there is a framework in the middle. Can I say Android is no main(), but the Android framework will handle t... | java|android|frameworks|program-entry-point | 0 | 2015-02-27T02:51:37.943Z | 2,015 | 2 | 2 | 4 | 67 | 0 | 452 | 45 | 4 | 0 | false | true | false | false | false | false | zero |
28,756,809 | Collision detection between a circle and 2 rectangles? | <p>The way I have set up my code is I have 3 white rectangles that are as tall as the screen and each 1/9 of the screen wide. Each are equally spaced out accross the screen. I also have 3 other black rectangles, 1 on top of each white...same left and right as the white rectangles so to the user it looks like there is a... | The way I have set up my code is I have 3 white rectangles that are as tall as the screen and each 1/9 of the screen wide. Each are equally spaced out accross the screen. I also have 3 other black rectangles, 1 on top of each white...same left and right as the white rectangles so to the user it looks like there is a ga... | java|android|android-canvas | 0 | 2015-02-27T03:03:39.557Z | 2,015 | 2 | 3 | 4 | 44 | 0 | 1,457 | 54 | 3 | 1 | true | true | false | false | false | false | zero |
28,756,830 | <Android> Strange behaviour of "onListItemClick(...)" convenience method | <p>I am implementing a fragment in my program that inherits from "ListFragment". This is because I am planning to show a list of items.</p>
<p>I created an adapter and called the convenience method "setListAdapter(ListAdapter)" to set the adapter:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceStat... | I am implementing a fragment in my program that inherits from "ListFragment". This is because I am planning to show a list of items. I created an adapter and called the convenience method "setListAdapter(ListAdapter)" to set the adapter: [CODE] Now I decided to respond to the user touching any of the views. I achieved ... | java|android|listview|android-listfragment | 0 | 2015-02-27T03:05:00.300Z | 2,015 | 2 | 3 | 4 | 63 | 0 | 1,444 | 72 | 4 | 2 | true | true | false | false | false | false | zero |
28,756,909 | Android SQLite where IN CLAUSE | <p>Just trying to use IN Clause in one of my query but it only returns one row. I know all the id's I am passing in has values for them in the database. cause if I call with the ID the correct row is returned. Here is the code and it only returns one row. No matter what.</p>
<pre><code> List<Deals> tutorInfoL... | Just trying to use IN Clause in one of my query but it only returns one row. I know all the id's I am passing in has values for them in the database. cause if I call with the ID the correct row is returned. Here is the code and it only returns one row. No matter what. [CODE] Wondering if any one knows why this might be... | android|sqlite|where-in | 0 | 2015-02-27T03:12:50.933Z | 2,015 | 2 | 3 | 4 | 143 | 1 | 350 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
28,756,913 | How do I use native C libraries in Android Studio | <p>I created a problem some years back based on <a href="https://ikaruga2.wordpress.com/2011/06/15/video-live-wallpaper-part-1/" rel="noreferrer">https://ikaruga2.wordpress.com/2011/06/15/video-live-wallpaper-part-1/</a>. My project was built in the version of Eclipse provided directly by Google at the time and worked... | I created a problem some years back based on https://ikaruga2.wordpress.com/2011/06/15/video-live-wallpaper-part-1/ . My project was built in the version of Eclipse provided directly by Google at the time and worked fine with a copy of the compiled ffmpeg libraries created with my app name. Now I'm trying to create a n... | java|android|android-studio|android-ndk|ffmpeg | 6 | 2015-02-27T03:13:00.707Z | 2,015 | 2 | 3 | 4 | 11,112 | 1 | 1,721 | 49 | 5 | 4 | true | false | true | false | false | false | medium |
28,757,003 | How to install Google Play app in Android Studio emulator? | <p>I am completely new to using Android Studio and I am trying to install the Google Play app on the emulator. I have installed the <code>Google Repository</code> and <code>Google Play Services</code> as well as a <code>Google APIs x86 Atom System Image</code> from the SDK manager and I am able to set up Google Play Se... | I am completely new to using Android Studio and I am trying to install the Google Play app on the emulator. I have installed the Google Repository and Google Play Services as well as a Google APIs x86 Atom System Image from the SDK manager and I am able to set up Google Play Services for my sample application. I would ... | android|android-studio|google-play | 88 | 2015-02-27T03:24:27.453Z | 2,015 | 2 | 3 | 4 | 134,966 | 5 | 511 | 58 | 3 | 0 | false | false | true | true | true | false | high |
28,757,094 | YouTube API v3 Sample IllegalArgumentException, Android Studio | <p>I am trying to simply run the YouTube API v3 in Android Studio, and the app opens fine with a list of buttons that show each functionality, but clicking on any of them crashes the app with this error: <code>java.lang.IllegalArgumentException: Developer key cannot be null or empty</code>. Mind you, this is not my cod... | I am trying to simply run the YouTube API v3 in Android Studio, and the app opens fine with a list of buttons that show each functionality, but clicking on any of them crashes the app with this error: java.lang.IllegalArgumentException: Developer key cannot be null or empty . Mind you, this is not my code, but the code... | android|android-studio|youtube|illegalargumentexception | 0 | 2015-02-27T03:36:14.647Z | 2,015 | 2 | 3 | 4 | 861 | 1 | 530 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
28,757,126 | android how to make table expand itself as the value gets longer | <p>how to make the textview in the table layout could expand itself, if the value getting longer than the table row?</p>
<p>I've made the look alike table layout(its not table row, but linear layout). And everytime the input get too long the table row somehow will have a weird display, it will looks like it has added ... | how to make the textview in the table layout could expand itself, if the value getting longer than the table row? I've made the look alike table layout(its not table row, but linear layout). And everytime the input get too long the table row somehow will have a weird display, it will looks like it has added margin by i... | android | 1 | 2015-02-27T03:39:39.540Z | 2,015 | 2 | 3 | 4 | 83 | 2 | 443 | 64 | 1 | 2 | true | false | false | false | false | false | low |
28,757,201 | Using Graph View to create graph which the scale is upside down | <p>I am using the <a href="http://www.android-graphview.org/" rel="nofollow">Graph View library</a> to plot graph in Android. I would like to plot a audiogram. Anyone know how to make the Y axis growing downwards and also set the horizontal title above the graph? </p> | I am using the Graph View library to plot graph in Android. I would like to plot a audiogram. Anyone know how to make the Y axis growing downwards and also set the horizontal title above the graph? | android|graph|android-graphview | 0 | 2015-02-27T03:49:07.483Z | 2,015 | 2 | 3 | 4 | 568 | 1 | 197 | 63 | 3 | 0 | false | 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.