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,704,574
Porting JUnit tests to Android Testing Framework
<p>I'm planning to port my JUnit tests to Android Testing framework. </p> <p>Some of the tests only involve the JVM but not the Android system, is it still necessary to port them? Android is using Dalvik and will replace it with ART(Android Runtime) in Lollipop, both of which are different from the JVM (Please correct...
I'm planning to port my JUnit tests to Android Testing framework. Some of the tests only involve the JVM but not the Android system, is it still necessary to port them? Android is using Dalvik and will replace it with ART(Android Runtime) in Lollipop, both of which are different from the JVM (Please correct if I'm wron...
android|junit|dalvik|android-testing
1
2015-02-24T19:30:10.110Z
2,015
2
19
1
218
2
891
48
4
0
false
false
false
false
false
false
low
28,704,601
My app crashes when trying to load new activity page
<p>The Error message is telling me that there is no onButton1Click method, but I never got this other in my previous activity while using onButton1Click, so idk what makes this scenario any different.</p> <pre><code>java.lang.IllegalStateException: Could not find a method onButton1Click(View) in the activity class com...
The Error message is telling me that there is no onButton1Click method, but I never got this other in my previous activity while using onButton1Click, so idk what makes this scenario any different. [CODE] Here is the Class file with the corresponding error [CODE]
android|onclick
0
2015-02-24T19:31:29.327Z
2,015
2
19
1
138
3
263
52
2
2
true
false
false
false
false
false
zero
28,704,628
How to delete overlay in an Android modified Holo button?
<p>I have this style for Buttons in my Android app, but I don't want that little shadow. </p> <pre><code>&lt;style name="AppTheme.Button.Primary" parent="@android:style/Widget.Holo.Button"&gt; &lt;item name="android:background"&gt;@color/primary_dark&lt;/item&gt; &lt;item name="android:textColor"&gt;@color/pri...
I have this style for Buttons in my Android app, but I don't want that little shadow. [CODE] The button looks like this: Button image Which item have to add in order to delete the overlay? Thanks a lot!
android|button|styles|overlay|android-theme
0
2015-02-24T19:32:18.897Z
2,015
2
19
1
159
1
202
57
5
1
true
false
false
false
false
false
zero
28,704,636
Insufficient permissions for device in Android Studio Workspace running in openSUSE 13.2
<p>I have a rooted Motorola Defy+ running a Cyanogenmod v11 custom ROM (nightly build) created by <a href="http://quarx2k.ru/">Quarx</a>. Using Android Studio Workspace,(ASW) v.1.1.0, when I try and debug on this device, I get </p> <pre><code>????????????[null] </code></pre> <p>listed in the <em>Choose Device</em> wi...
I have a rooted Motorola Defy+ running a Cyanogenmod v11 custom ROM (nightly build) created by Quarx . Using Android Studio Workspace,(ASW) v.1.1.0, when I try and debug on this device, I get [CODE] listed in the Choose Device window, with the Logcat window showing [CODE] I would really like to use this device and ROM ...
android|android-studio|opensuse|cyanogenmod
103
2015-02-24T19:32:40.990Z
2,015
2
19
1
118,651
21
1,596
88
4
4
true
false
true
true
true
false
high
28,704,737
Memory of imageviews from on activity to another
<p>If I go from one activity to another (so activity is put onPause), what happens all the memory used by the image views of the previous activity? does it get recycled? IF not , what should be done?</p> <p>Thanks</p>
If I go from one activity to another (so activity is put onPause), what happens all the memory used by the image views of the previous activity? does it get recycled? IF not , what should be done? Thanks
android
1
2015-02-24T19:38:10.297Z
2,015
2
19
1
14
1
203
48
1
0
false
false
false
false
false
false
low
28,704,829
How can I convert RGB to HSV?
<p>I want to convert RGB pixel colors to HSV. I successfully retrived the red, green, and blue colors of a bitmap. How can I convert this 3 value for an HSV value?</p> <p>Detail of my code (which retrive the RGB color):</p> <pre><code> public View.OnTouchListener ivOnTouchListener = new View.OnTouchListener() { p...
I want to convert RGB pixel colors to HSV. I successfully retrived the red, green, and blue colors of a bitmap. How can I convert this 3 value for an HSV value? Detail of my code (which retrive the RGB color): [CODE] I tried to set the current textView's text to hsv, but my program has crashed. What should I do?
android|text|colors|textview|hsv
0
2015-02-24T19:43:23.577Z
2,015
2
19
1
836
1
313
29
5
1
true
false
false
false
false
false
zero
28,704,865
Android extend ViewGroup to draw chart
<p>Hello i try to create custom chart. So i try smth like this. But i can't see something at my screen. What i am do wrong? Thank you for help. I call <code>init</code> fucntion in constructor. </p> <pre><code>public class HorizontalBarChart extends ViewGroup { private void init(){ textPaint = new Paint(Paint.ANT...
Hello i try to create custom chart. So i try smth like this. But i can't see something at my screen. What i am do wrong? Thank you for help. I call init fucntion in constructor. [CODE] in activity_main.xml [CODE]
android
0
2015-02-24T19:45:20.863Z
2,015
2
19
1
60
1
212
38
1
2
true
false
false
false
false
false
zero
28,704,875
Processing gesture while screen off (Android)
<p>Is there anyway to keep a service running which while the screen is off and device is locked, can still process gestures and respond to them accordingly? (Such as muting device, manipulating volume,etc) particularly on Android 5.0 (I know the LG G3 has a knockcode feature, so I guess it's possible...maybe something ...
Is there anyway to keep a service running which while the screen is off and device is locked, can still process gestures and respond to them accordingly? (Such as muting device, manipulating volume,etc) particularly on Android 5.0 (I know the LG G3 has a knockcode feature, so I guess it's possible...maybe something sim...
java|android
0
2015-02-24T19:45:45.630Z
2,015
2
19
1
117
1
333
45
2
0
false
false
false
false
false
false
zero
28,704,920
Why does the method count goes up not down when switching from android-support-v4 to v13
<p>When switching from support library v4 to v13 I expected the method count number to go down because now all the methods which are in the SDK version 13+ don't have to be in the support jar anymore. Well I checked what happens when I exchange the v7 against the v13 and here are the method count numbers per package.</...
When switching from support library v4 to v13 I expected the method count number to go down because now all the methods which are in the SDK version 13+ don't have to be in the support jar anymore. Well I checked what happens when I exchange the v7 against the v13 and here are the method count numbers per package. When...
android|android-support-library
1
2015-02-24T19:48:24.533Z
2,015
2
19
1
147
1
623
88
2
2
true
false
false
false
false
false
low
28,704,986
Android NDK use .so library from c code inside JNI
<p>I found similar questions on SO but none of them were with the same workflow.</p> <p>I have a .so library (libcurl) in my project. The project builds but I need to get a hold of curl.h in my c code inside JNI.</p> <p>Here's my Android.mk file:</p> <pre><code>LOCAL_PATH:= $(call my-dir) LIBS_PATH := libs/$(TARGET...
I found similar questions on SO but none of them were with the same workflow. I have a .so library (libcurl) in my project. The project builds but I need to get a hold of curl.h in my c code inside JNI. Here's my Android.mk file: [CODE] Here's my c class: [CODE] The issue is with the "curl/curl.h" include command. I ha...
android|c|curl|android-ndk
1
2015-02-24T19:51:45.797Z
2,015
2
19
1
1,698
1
679
50
4
3
true
false
false
false
false
false
low
28,704,996
Different ways to retrieve a string form R.java file (Android)
<p>Let's imagine we had this text inside <em>values/strings.xml</em></p> <pre><code>&lt;string name="some_text"&gt;HELLO WORLD&lt;/string&gt; </code></pre> <p>I can call this string from anywhere inside my project like so:</p> <pre><code>String s = String.valueOf(R.string.some_text); </code></pre> <p>Today I learnt...
Let's imagine we had this text inside values/strings.xml [CODE] I can call this string from anywhere inside my project like so: [CODE] Today I learnt this other way to do exactly the same job: [CODE] Does anyone know if there is any advantage in using the second way? The first one seems shorter and easier to remember. ...
java|android|string
1
2015-02-24T19:52:10.643Z
2,015
2
19
1
84
2
326
62
3
3
true
false
false
false
false
false
low
28,705,000
Multiple Android AVDs hang on start-up
<p>I tried a few AVDs, several APIs and several versions of Android, but it always does the same thing. The AVD starts but it never shows the Android Home Screen, only the logo and it never advances. I am using Ubuntu 12.04 on x86 hardware. I have been searching for info about this problem, but I have not found a sol...
I tried a few AVDs, several APIs and several versions of Android, but it always does the same thing. The AVD starts but it never shows the Android Home Screen, only the logo and it never advances. I am using Ubuntu 12.04 on x86 hardware. I have been searching for info about this problem, but I have not found a solution...
android|avd
0
2015-02-24T19:52:22.093Z
2,015
2
19
1
94
2
404
38
2
0
false
false
false
false
false
false
zero
28,705,011
Google Maps, Add Markers in Callback method works only once (Android)
<p>I've a trouble when i try to add Markers to GoogleMap</p> <p>story: I open the app, then open the activity that have the Google map. The HTTP request was executed correctly and the markers are added perfectly without any problem. I can click each one, etc. But if i press back button, then entered again in the activ...
I've a trouble when i try to add Markers to GoogleMap story: I open the app, then open the activity that have the Google map. The HTTP request was executed correctly and the markers are added perfectly without any problem. I can click each one, etc. But if i press back button, then entered again in the activity, all ma...
android|google-maps|google-maps-markers
0
2015-02-24T19:52:50.097Z
2,015
2
19
1
642
0
917
69
3
4
true
true
false
false
false
false
zero
28,705,025
how do I change my apk-file to another Name
<p>I'm making my own App and reached the point of uploading Apk - file. But it did not succeed, I'm told, to use a different package name, how do I do it? Vh melanie</p>
I'm making my own App and reached the point of uploading Apk - file. But it did not succeed, I'm told, to use a different package name, how do I do it? Vh melanie
android
0
2015-02-24T19:53:41.547Z
2,015
2
19
1
32
2
162
43
1
0
false
false
false
false
false
false
zero
28,705,100
How do I get a Palette for my bitmap once Picasso Loads it?
<p>In October 2014, Jake Wharton wrote <a href="http://jakewharton.com/coercing-picasso-to-play-with-palette/" rel="nofollow" title="Coercing Picasso to Play With Palette">Coercing Picasso to Play With Palette</a>. In it, there are 2 methods being pondered:</p> <ol> <li><p><strong>Using a Transformation</strong> that ...
In October 2014, Jake Wharton wrote Coercing Picasso to Play With Palette . In it, there are 2 methods being pondered: Using a Transformation that generates the palette. The advantage of this is that the palette is generated on Picasso's worker thread and is ready when the image is loaded. The disadvantage, however, se...
android|picasso|android-palette
3
2015-02-24T19:57:32.893Z
2,015
2
19
1
1,595
2
981
59
3
1
true
false
false
false
false
false
low
28,705,256
Facebook API User Request graphObject is null
<p>So I have an application that is currently using the facebook api to get a users info from facebook. The application has been working 100% until today when suddenly, certain info wouldnt load. I traced it back to the Facebook me request foor getting into from the current user. This is the Log of the request:</p> <p...
So I have an application that is currently using the facebook api to get a users info from facebook. The application has been working 100% until today when suddenly, certain info wouldnt load. I traced it back to the Facebook me request foor getting into from the current user. This is the Log of the request: [CODE] The...
android|facebook-graph-api|request|facebook-android-sdk|facebook-requests
0
2015-02-24T20:06:02.033Z
2,015
2
20
1
629
1
561
45
5
2
true
false
false
false
false
false
zero
28,705,263
Java AES decryption causing BadPaddingException
<p>I'm trying to create AES encryption/decryption methods, but I cant seem to get my original input without using AES/ECB/NoPadding. Now I am trying to use AES/CBC/PKCS7Padding. I have confirmed that reading and writing the byte to/from the file works fine. With PKCS7 padding I get a BadPaddingException from </p> <pre...
I'm trying to create AES encryption/decryption methods, but I cant seem to get my original input without using AES/ECB/NoPadding. Now I am trying to use AES/CBC/PKCS7Padding. I have confirmed that reading and writing the byte to/from the file works fine. With PKCS7 padding I get a BadPaddingException from [CODE] in the...
java|android|encryption|aes|badpaddingexception
0
2015-02-24T20:06:36.967Z
2,015
2
20
1
1,291
1
714
47
5
2
true
false
false
false
false
false
zero
28,705,318
Android Service not stopping self
<p>Here's my code:</p> <pre><code> @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: // Get current time in nano seconds. long pressTime = System.currentTimeMillis(); ...
Here's my code: [CODE] And here's my onDestroy() [CODE] Where safe is a LinearLayout the I attach with windowmanager object in my oncreate The service starts and runs fine. When I call stopService(new Intent(MainActivity.this, ServiceFloating.class)); on a button's on click from my main activity I can stop the service ...
android|service|android-windowmanager
1
2015-02-24T20:09:07.240Z
2,015
2
20
1
513
1
476
33
3
2
true
false
false
false
false
false
low
28,705,366
Module per Fragment / Activity in Dagger
<p>I'm wondering if it is better to have a <code>Module</code> per <code>Activity</code> than a <code>Module</code> per <code>Fragment</code>? In one of my projects, I have an architecture to have a <code>Module</code> per <code>Fragment</code> because I use <code>Activity</code> just to hold and swap <code>Fragments</...
I'm wondering if it is better to have a Module per Activity than a Module per Fragment ? In one of my projects, I have an architecture to have a Module per Fragment because I use Activity just to hold and swap Fragments and nothing more. I only create Presenters and Interactors when I need them, i.e. when Fragment.onCr...
android|dagger
0
2015-02-24T20:11:58.027Z
2,015
2
20
1
463
1
851
40
2
0
false
false
false
false
false
false
zero
28,705,379
get all facebook likes without pagination in android
<p>I am using this code which returns only 25 pges I like .How can I get more ?</p> <pre><code>new Request(facebook.getSession(), "/me/likes", null, HttpMethod.GET, new Request.Callback() { @Override public void onCompleted(Response response) { JSONArray arr = null; ...
I am using this code which returns only 25 pges I like .How can I get more ? [CODE] I tried : [CODE] This gives me null value.
android|facebook-graph-api|facebook-android-sdk
1
2015-02-24T20:12:48.623Z
2,015
2
20
1
797
1
126
52
3
2
true
false
false
false
false
false
low
28,705,484
Android Studios - Adjusting VideoView Size in Layout Editor
<p>I've only ever seen questions asking how to full screen the VideoView but what I'm trying to do is have a video playing as only a part of the activity, with some additional elements on the page. How would I go about doing that? It doesn't seem that I have control of the size of the VideoView, I can only shift it aro...
I've only ever seen questions asking how to full screen the VideoView but what I'm trying to do is have a video playing as only a part of the activity, with some additional elements on the page. How would I go about doing that? It doesn't seem that I have control of the size of the VideoView, I can only shift it around...
android|android-studio|android-videoview
0
2015-02-24T20:18:12.887Z
2,015
2
20
1
1,713
1
489
59
3
1
true
false
false
false
false
false
zero
28,705,507
Android - Call backspace without firing onTextChanged
<p>So I am currently working on an application which takes the user input, fires a backspace to delete the input, and then adds some other text. (So yes I am basically overriding their input using a TextWatcher)</p> <p>No the problem: when I call <code>text.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent....
So I am currently working on an application which takes the user input, fires a backspace to delete the input, and then adds some other text. (So yes I am basically overriding their input using a TextWatcher) No the problem: when I call text.dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL)); , ...
java|android|textwatcher
1
2015-02-24T20:19:24.963Z
2,015
2
20
1
557
3
457
53
3
0
false
false
false
false
false
false
low
28,705,581
Broadcast reciever not working from service
<p>I am trying to use <code>BroadcastReceiver</code> inside my service but it is not working properly.</p> <p>I am starting my service in an onCreate in my activity. Then in the services onCreate I am calling the following to register the Broadcast reciever:</p> <pre><code> IntentFilter filter = new IntentFilter()...
I am trying to use BroadcastReceiver inside my service but it is not working properly. I am starting my service in an onCreate in my activity. Then in the services onCreate I am calling the following to register the Broadcast reciever: [CODE] Here's the broadcast receiver i am trying to register: [CODE] Then else where...
android|broadcastreceiver|android-service
0
2015-02-24T20:24:35.307Z
2,015
2
20
1
732
2
568
43
3
3
true
false
false
false
false
false
zero
28,705,584
Array adapter and listview issues after launching Intent Service
<p>I have a list view being populated by my array adapter. Now everything works fine until i click on a row which launches an async task.</p> <p>My async task is supposed to download some image urls and launch an intent service in it's onPostExecute to download the images and store them on the SDcard. </p> <p>All thi...
I have a list view being populated by my array adapter. Now everything works fine until i click on a row which launches an async task. My async task is supposed to download some image urls and launch an intent service in it's onPostExecute to download the images and store them on the SDcard. All this works fine but onc...
android|android-listview|android-arrayadapter
0
2015-02-24T20:24:43.260Z
2,015
2
20
1
251
1
605
64
3
0
false
false
false
false
false
false
zero
28,705,603
Android Admob banner not viewing only in a certain context
<p>I have an activity that i'm trying to display admob banner in but it would never appear specially in this activity, i have revised the parameter with other activites and xml files and there is nothing different except of coarse in the java code logic behind and the xml designs , anything else related to calling an a...
I have an activity that i'm trying to display admob banner in but it would never appear specially in this activity, i have revised the parameter with other activites and xml files and there is nothing different except of coarse in the java code logic behind and the xml designs , anything else related to calling an admo...
android|xml|layout|admob
0
2015-02-24T20:26:03.903Z
2,015
2
20
1
189
0
541
58
4
2
true
true
false
false
false
false
zero
28,705,637
Tabbed Activity template in Android Studio not working on Lollipop
<p>I'm running Android Studio 1.1.0.</p> <p>I created a new project using the Android Studio Wizard and selected MinimumSDK: API 15, and Tabbed Activity.</p> <p>The target SDK is automatically set to API 21.</p> <p>When I run this project (with no modifications) on a Genymotion Nexus 5, API19 (4.4.4) emulator everyt...
I'm running Android Studio 1.1.0. I created a new project using the Android Studio Wizard and selected MinimumSDK: API 15, and Tabbed Activity. The target SDK is automatically set to API 21. When I run this project (with no modifications) on a Genymotion Nexus 5, API19 (4.4.4) emulator everything looks as expected. Whe...
android|android-studio
3
2015-02-24T20:28:13.810Z
2,015
2
20
1
609
1
764
66
2
2
true
false
false
false
false
false
low
28,705,690
replace a container with viewPager
<p>I made a navigation drawer, as you know the navigation drawer will have a container where all layouts are inflated. I need to have a scrollable tabs on one of the pages. I am having problem with inflating the viewPager layout into the container which is implemented in the following fragment class:</p> <pre><code>pu...
I made a navigation drawer, as you know the navigation drawer will have a container where all layouts are inflated. I need to have a scrollable tabs on one of the pages. I am having problem with inflating the viewPager layout into the container which is implemented in the following fragment class: [CODE] } layout fragm...
android|android-fragments
0
2015-02-24T20:31:57.160Z
2,015
2
20
1
834
1
548
34
2
4
true
false
false
false
false
false
zero
28,705,717
Why does this code loop around with "Socket setup caught IOexception"
<p>I am trying to troubleshoot an Android server/client set of software which appears to be logging vast amounts of logcat messages containing "Socket setup caught IOexception", so Im guessing its in a loop. For troubleshooting purposes I installed the server and client on the same physical device and experience the sa...
I am trying to troubleshoot an Android server/client set of software which appears to be logging vast amounts of logcat messages containing "Socket setup caught IOexception", so Im guessing its in a loop. For troubleshooting purposes I installed the server and client on the same physical device and experience the same ...
java|android
0
2015-02-24T20:33:46.900Z
2,015
2
20
1
49
1
811
69
2
1
true
false
false
false
false
false
zero
28,705,766
Android application process
<p>I have some very basic questions, Great to get answer.</p> <p>Q 1. Whenever anyone creates android application which generates *.apk file and installed this apk on device, can we surely say that android has created new process for this apk ?</p> <p>Q 2. If Android app manifest file has tag for application and insi...
I have some very basic questions, Great to get answer. Q 1. Whenever anyone creates android application which generates *.apk file and installed this apk on device, can we surely say that android has created new process for this apk ? Q 2. If Android app manifest file has tag for application and inside it has service o...
android|android-framework
1
2015-02-24T20:37:12.240Z
2,015
2
20
1
500
2
1,174
27
2
0
false
false
false
false
false
false
low
28,705,776
How do I change the dimensions of a View programmatically?
<p>I just want an empty view with certain dimensions. I declare the reference variable here:</p> <pre><code>public static View sv; </code></pre> <p>I instantiate the view in the onCreate method of my activity:</p> <pre><code>sv = new View(this); </code></pre> <p>and then attempt to set the dimensions right below i...
I just want an empty view with certain dimensions. I declare the reference variable here: [CODE] I instantiate the view in the onCreate method of my activity: [CODE] and then attempt to set the dimensions right below it: [CODE] but when I call sv.getWidth() and sv.getHeight(), they still return 0
android|view
0
2015-02-24T20:37:44.267Z
2,015
2
20
1
58
1
297
58
2
3
true
false
false
false
false
false
zero
28,705,786
How do I get rid of the action bar?
<p>Alright so I've tried practically every method possible. I've developed a Image Button to open a new activity but it had the title of something I didn't want. </p> <p>The usual method:</p> <pre><code>android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" ...
Alright so I've tried practically every method possible. I've developed a Image Button to open a new activity but it had the title of something I didn't want. The usual method: [CODE] But it comes up with an Error. What do I do??? Whole Manifest File: [CODE]
android|sdk
-2
2015-02-24T20:38:39.747Z
2,015
2
20
1
70
1
258
35
2
2
true
false
false
false
false
true
negative
28,705,791
How can I add a button to the native Android call info screen?
<p>I'd like to add a button to this native Android view:</p> <p><img src="https://i.stack.imgur.com/frFzm.png" alt="enter image description here"></p> <p>I've seen a solution for <a href="http://www.piwai.info/chatheads-basics/" rel="nofollow noreferrer">drawing on top of all apps</a> via the <code>SYSTEM_ALERT_WINDO...
I'd like to add a button to this native Android view: I've seen a solution for drawing on top of all apps via the SYSTEM_ALERT_WINDOW permission, but what if I only want to draw on top of this specific window? Does Android even allow such a thing?
android|android-layout|android-intent|android-activity
-1
2015-02-24T20:39:14.083Z
2,015
2
20
1
138
1
247
62
4
0
false
false
false
false
false
true
negative
28,705,822
how to fix SurfaceView and android camera size
<p>I write program, camera for android. I use next code</p> <pre><code>package camera; public class SurfaceCamera extends Activity implements SurfaceHolder.Callback { TextView testView; Camera camera; SurfaceView surfaceView; SurfaceHolder surfaceHolder; PictureCallback rawCallback; Shutte...
I write program, camera for android. I use next code [CODE] layout [CODE] Where I see on surface image (on surface) the picture is distorted, stretched at the corners https://www.dropbox.com/s/ul5enua7tb07zkr/shot_000002.png?dl=0 but if I capture photo all ok https://www.dropbox.com/s/zibn89tl38a8eur/1424809721079.jpg?...
java|android|camera|surface
1
2015-02-24T20:41:40.253Z
2,015
2
20
1
1,590
0
386
46
4
2
true
true
false
false
false
false
low
28,705,870
fatal error using android shared preference
<p>I am working on my first android project and I am using android studio. The project was running fine on my test device and then I chose to clean project and now the app won't run, the exception that is thrown is: </p> <pre><code>Unable to instantiate activity ComponentInfo{com.lonerganonline.league_of_ireland/com.l...
I am working on my first android project and I am using android studio. The project was running fine on my test device and then I chose to clean project and now the app won't run, the exception that is thrown is: [CODE] as i have no idea of where the error is orrignating i do not know what code to post. Main Activity: ...
android|android-activity|android-studio|nullpointerexception|fatal-error
0
2015-02-24T20:44:22.633Z
2,015
2
20
1
126
2
340
43
5
3
true
false
false
false
false
false
zero
28,705,970
How to convert Strings and a Bitmap to a byte array?
<p>I'm using a GoogleApiClient MessageApi method which accepts an arbitrary payload specified as a byte array.</p> <p>For my payload I have some strings and a Bitmap that I want to transfer all together in one go.</p> <p>What options are there available for packaging the strings and bitmaps and converting to a byte a...
I'm using a GoogleApiClient MessageApi method which accepts an arbitrary payload specified as a byte array. For my payload I have some strings and a Bitmap that I want to transfer all together in one go. What options are there available for packaging the strings and bitmaps and converting to a byte array?
java|android
0
2015-02-24T20:49:57.817Z
2,015
2
20
1
258
1
306
52
2
0
false
false
false
false
false
false
zero
28,705,981
Android GraphView 4.x - Bar Graph Not Fitting
<p>I am using the 4.x version of GraphView in my Android app. I have a bar graph with 7 data points and the first and last bars are being cut off.</p> <p>Here is my code</p> <pre><code>private static final String[] WEEK_DAYS = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; private void showChartData() { Ch...
I am using the 4.x version of GraphView in my Android app. I have a bar graph with 7 data points and the first and last bars are being cut off. Here is my code [CODE] Here is a screen shot of the bar chart
android|android-graphview
1
2015-02-24T20:50:33.723Z
2,015
2
20
1
1,774
1
205
45
2
1
true
false
false
false
false
false
low
28,706,149
Where should I store data that can be accessed outside of the view thread?
<p>I'm using IntentServices to call a restful service and then turn over the result to a receiver. The back-end requires a user id and authentication token, which I stored in a singleton class. I've run into issues with this singleton being cleaned up when the process is terminated, and its data isn't around when And...
I'm using IntentServices to call a restful service and then turn over the result to a receiver. The back-end requires a user id and authentication token, which I stored in a singleton class. I've run into issues with this singleton being cleaned up when the process is terminated, and its data isn't around when Android ...
android|android-preferences|android-intentservice
0
2015-02-24T21:01:24.913Z
2,015
2
21
1
34
3
668
74
3
0
false
false
false
false
false
false
zero
28,706,160
Android transition from RIGHT-TOP to LEFT-BOTTOM?
<p>Im question if are possible create a transition from RIGHT-TOP to LEFT-BOTTOM?</p> <p>have a examples for </p> <p>for right </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;translate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="100" android:fromX...
Im question if are possible create a transition from RIGHT-TOP to LEFT-BOTTOM? have a examples for for right [CODE] to left [CODE] any example?
android|android-transitions
1
2015-02-24T21:01:50.357Z
2,015
2
21
1
101
0
143
49
2
2
true
true
false
false
false
false
low
28,706,204
Adding dynamic items to listview
<p>Hi I want to add an item to a listview.</p> <p>This is my New message activity in which I wan to pass an item to my Main Activity. I'm not quite sure how to pass this data through an intent any help would be greatly appreciated.</p> <pre><code>public class NewMessage extends ActionBarActivity { EditText new_...
Hi I want to add an item to a listview. This is my New message activity in which I wan to pass an item to my Main Activity. I'm not quite sure how to pass this data through an intent any help would be greatly appreciated. [CODE] This is my main activity I want to pass in the data public class MainActivity extends Actio...
android
0
2015-02-24T21:04:01.317Z
2,015
2
21
1
47
1
341
32
1
2
true
false
false
false
false
false
zero
28,706,210
Android using 9-patch works for some buttons but not others?
<p>In my main activity, I was able to use my 9-patch images for the backgrounds of the 4 main buttons by coding into the XML.</p> <p>main activity xml</p> <pre><code>&lt;button style="@style/button_default"/&gt; </code></pre> <p>^ This works, and the buttons on the main activity use the button_default.xml images...
In my main activity, I was able to use my 9-patch images for the backgrounds of the 4 main buttons by coding into the XML. main activity xml [CODE] ^ This works, and the buttons on the main activity use the button_default.xml images for the button states. Then, I try to do the exact same thing in another activity using...
java|android|button|background|nine-patch
0
2015-02-24T21:04:22.507Z
2,015
2
21
1
76
0
803
60
5
3
true
true
false
false
false
false
zero
28,706,237
Android Camera Application: How to display picture after it is saved internally?
<p>So I want to build an Android app that uses the camera and saves the image internally (within the app) and then displays the picture that you just took in the next activity...but I'm having trouble outputting the image. I believe I've saved the picture correctly...but I'm not sure how to read the data. I looked at m...
So I want to build an Android app that uses the camera and saves the image internally (within the app) and then displays the picture that you just took in the next activity...but I'm having trouble outputting the image. I believe I've saved the picture correctly...but I'm not sure how to read the data. I looked at many...
java|android|android-camera|storage|preview
0
2015-02-24T21:05:46.960Z
2,015
2
21
1
425
3
475
80
5
1
true
false
false
false
false
false
zero
28,706,331
AutoCompleteTextView: Suggest new completions after a suggestion is selected
<p>My <code>AutoCompleteTextView</code> is kind of "word-based". Suppose a valid completion would be:</p> <p>This is a valid phrase.</p> <p>When the user enters "T", I don't want to suggest the whole phrase immediately. Rather I want to suggesst only "This ".</p> <p>Next, when the input is "This ", the next suggesti...
My AutoCompleteTextView is kind of "word-based". Suppose a valid completion would be: This is a valid phrase. When the user enters "T", I don't want to suggest the whole phrase immediately. Rather I want to suggesst only "This ". Next, when the input is "This ", the next suggestion is "This is ", and so on. This works ...
android|autocompletetextview
2
2015-02-24T21:10:45.527Z
2,015
2
21
1
89
0
654
76
2
0
false
true
false
false
false
false
low
28,706,457
Overlapping Overlay Image with Image Taken from camera
<p>I am doing a project where I need to OverLay few custom images, where option to add faces taken from camera will be given. Considering the following image <img src="https://i.stack.imgur.com/EsZ4l.png" alt="overlayImage"></p> <p>I will take faces from camera and I want to fit in the face into this overlay.</p> <p...
I am doing a project where I need to OverLay few custom images, where option to add faces taken from camera will be given. Considering the following image I will take faces from camera and I want to fit in the face into this overlay. I have used following layout structure FrameLayout SurfaceView // For Displaying custo...
android
1
2015-02-24T21:16:29.917Z
2,015
2
21
1
201
0
792
54
1
0
false
true
false
false
false
false
low
28,706,537
Start Android Service with no Activity using an intent
<p>i created an android application with no activity. I want to start a service using a system intent like BOOT_COMPLETED. I use the following receiver:</p> <pre><code>&lt;receiver android:name=".autostart" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.ACTION_POWER_CONNE...
i created an android application with no activity. I want to start a service using a system intent like BOOT_COMPLETED. I use the following receiver: [CODE] I got the problem, that the intent is not received when power is connected/disconnect or boot completed. Is an Application with no Activity even in stopped mode af...
android|android-intent|service|receiver
0
2015-02-24T21:20:46.797Z
2,015
2
21
1
697
2
423
54
4
1
true
false
false
false
false
false
zero
28,706,688
Google Maps V2 into fragment cause cast error
<p>I have created an app that view the google v2 maps succesfully into fragment; I see the map.</p> <p>If I try to add this code:</p> <pre><code>MapView mapView = (MapView) inflatedView .findViewById(R.id.map); </code></pre> <p>i get this error</p> <pre><code>android.support.v4.app.NoSaveStateFrameLayout cannot be ...
I have created an app that view the google v2 maps succesfully into fragment; I see the map. If I try to add this code: [CODE] i get this error [CODE] My file Fragment5.java is: [CODE] My layout file is [CODE] Detailed error: [CODE] someone could tell where he is the problem? very very very thanks :-)
android|android-fragments|google-maps-android-api-2
0
2015-02-24T21:29:21.570Z
2,015
2
21
1
949
2
302
45
3
5
true
false
false
false
false
false
zero
28,706,700
Converting YUV to YUV420 Android onPreview
<p>a)I was wondering what is the difference between YUV and YUV420? b)I want to use the raw frames from Camera and convert them into YUV420 in real time. What is the fastest way to do this? I used bitmap factory to convert from yuv to jpg and I used onDraw() method to draw the bitmap. However, this takes some time to p...
a)I was wondering what is the difference between YUV and YUV420? b)I want to use the raw frames from Camera and convert them into YUV420 in real time. What is the fastest way to do this? I used bitmap factory to convert from yuv to jpg and I used onDraw() method to draw the bitmap. However, this takes some time to proc...
android|image-processing|canvas|bitmap|surfaceview
1
2015-02-24T21:30:08.130Z
2,015
2
21
1
1,583
1
415
42
5
0
false
false
false
false
false
false
low
28,706,802
JSON load issue with angular.js in phonegap
<p>I'm trying to load JSON from my wordpress-based website. I'm using phonegap to create an app on android, ios and windows. I'm using this js for the JSON, calling for business hours (shours1, shours2, shours3):</p> <pre><code>(function(){ 'use strict'; var app = angular.module('app', ['onsen', 'angular-images-load...
I'm trying to load JSON from my wordpress-based website. I'm using phonegap to create an app on android, ios and windows. I'm using this js for the JSON, calling for business hours (shours1, shours2, shours3): [CODE] Here is my html: [CODE] It seems to be working partially. The shours do load, but only after I rotate m...
android|jquery|json|angularjs
0
2015-02-24T21:36:26.470Z
2,015
2
21
1
199
1
510
43
4
2
true
false
false
false
false
false
zero
28,706,838
onListItemClick doesnt work with my ListView
<p>i try to make a list with Clickable strings from my string array. By clicking on any String i want to get to a classes named after this string. I tried with onListItemClick... but it doesnt work :S .. any suggestions for a solution?</p> <p>Thank you for your time :)</p> <p>I've got some Strings for example called ...
i try to make a list with Clickable strings from my string array. By clicking on any String i want to get to a classes named after this string. I tried with onListItemClick... but it doesnt work :S .. any suggestions for a solution? Thank you for your time :) I've got some Strings for example called "Title 1", "Title 2...
android|eclipse|onclick
0
2015-02-24T21:38:43.677Z
2,015
2
21
1
539
3
651
44
3
2
true
false
false
false
false
false
zero
28,706,865
NullPointerException - Android Google Maps Street View
<p>I am trying to display a street view in a fragment. </p> <pre><code>public class StreetDisplay extends Fragment implements OnStreetViewPanoramaReadyCallback{ SupportStreetViewPanoramaFragment streetFrag; static final LatLng PosOne = new LatLng(43.771925, -79.512460); @Override public View onCreateView(LayoutInfl...
I am trying to display a street view in a fragment. [CODE] Here's the error message I get when I run my app [CODE] Line 33 is [CODE] Line 43 is [CODE] I am not sure what the problem is - Can you help?
java|android|google-maps|nullpointerexception|google-street-view
1
2015-02-24T21:40:12.300Z
2,015
2
21
1
1,546
3
200
54
5
4
true
false
false
false
false
false
low
28,706,887
Android: unable to change color of back arrow navigation icon
<p>I'm using new android appcompat toolbar. I need to set the same custom color to both burger icon and back arrow icons. Using drawerArrowStyle allows me to change burger icon but not the arrow. The issue is only on Lollipop devices, anything pre-lollipop is fine. </p> <p><img src="https://i.stack.imgur.com/N1Xmq....
I'm using new android appcompat toolbar. I need to set the same custom color to both burger icon and back arrow icons. Using drawerArrowStyle allows me to change burger icon but not the arrow. The issue is only on Lollipop devices, anything pre-lollipop is fine. Here is the code: Toolbar: [CODE] Style.xml: [CODE] I've ...
android|android-5.0-lollipop|android-appcompat|android-toolbar
5
2015-02-24T21:41:23.543Z
2,015
2
21
1
11,534
4
392
61
4
2
true
false
true
true
false
false
low
28,706,892
How can I publish to play store the x86 and ARM apks of my cordova-crosswalk app?
<p>My app is developped/published with Cordova and Crosswalk. Crosswalk generates an apk for ARM cpus and another one for x86 cpus.</p> <p>At the moment, when I upload my ARM apk to the play store and then try to upload the x86 one, it prevents me from doing so and display a message that says that I cannot have two ap...
My app is developped/published with Cordova and Crosswalk. Crosswalk generates an apk for ARM cpus and another one for x86 cpus. At the moment, when I upload my ARM apk to the play store and then try to upload the x86 one, it prevents me from doing so and display a message that says that I cannot have two apk with the ...
android|cordova|app-store|crosswalk-runtime
10
2015-02-24T21:41:40.493Z
2,015
2
21
1
15,335
4
789
81
4
0
false
false
true
true
true
false
medium
28,706,990
How to insert foreign key into MySQL database using PHP?
<p>I have two tables: <code>users</code> and <code>orders</code>. I want to insert a foreign key (<code>unique_id</code> from users) to the table orders so that each order is represented by a different user.</p> <p>PHP statement:</p> <pre><code>$result = mysql_query("INSERT INTO orders(id, unique_id, p...
I have two tables: users and orders . I want to insert a foreign key ( unique_id from users) to the table orders so that each order is represented by a different user. PHP statement: [CODE] unique_id is the foreign key.
php|android|mysql|foreign-keys
-3
2015-02-24T21:48:18.597Z
2,015
2
21
1
559
1
219
56
4
1
true
false
false
false
false
true
negative
28,707,019
Animate android activity change
<p>I'm trying to animate an activity transition. Basically what I want to do is the following:</p> <p>1.) Perform a circular clip of a specific view</p> <p>2.) Begin a fade transition</p> <p>3.) perform a circular reveal on the new activity of a specific view.</p> <p>My knee jerk reaction was to use the </p> <pre>...
I'm trying to animate an activity transition. Basically what I want to do is the following: 1.) Perform a circular clip of a specific view 2.) Begin a fade transition 3.) perform a circular reveal on the new activity of a specific view. My knee jerk reaction was to use the [CODE] method and pass that bundle into my sta...
android|animation|android-5.0-lollipop
0
2015-02-24T21:49:59.513Z
2,015
2
21
1
947
1
757
31
3
2
true
false
false
false
false
false
zero
28,707,132
Pre-Loading Google Glass with .apk
<p>So I work as a developer for a startup where we load our inspection software on a pair of Google Glass then we ship the Glass off to a company for them to use. </p> <p>Our current flow is: setup placeholder account -> setup glass w/ that account -> turn on debug mode -> load .apk -> ship Glass to user, where they r...
So I work as a developer for a startup where we load our inspection software on a pair of Google Glass then we ship the Glass off to a company for them to use. Our current flow is: setup placeholder account -> setup glass w/ that account -> turn on debug mode -> load .apk -> ship Glass to user, where they replace the a...
java|android|android-studio|apk|google-glass
0
2015-02-24T21:57:13.823Z
2,015
2
21
1
60
1
873
34
5
0
false
false
false
false
false
false
zero
28,707,139
Android studio error in java main activity?
<p>I am dealing with a problem with compile errors in my java code which I cannot understand how to correct. </p> <p>First error: </p> <blockquote> <p>main cannot be resolved or is not a field .... </p> </blockquote> <p>Second error:</p> <blockquote> <p>The method OnKeyListener(new MainActivity.OnKeyListener()...
I am dealing with a problem with compile errors in my java code which I cannot understand how to correct. First error: main cannot be resolved or is not a field .... Second error: The method OnKeyListener(new MainActivity.OnKeyListener(){}) is undefined for the type EditText [CODE]
java|android|eclipse
-1
2015-02-24T21:57:46.927Z
2,015
2
21
1
2,607
1
282
43
3
1
true
false
true
false
false
true
negative
28,707,184
ASyncTask and returning an ArrayList
<p>Im trying to return an ArrayList from the AsyncTask class back to the MainAcitivity class and then use this arraylist to fill the gridview in MainActivity.</p> <p>The parseURL takes a String paramater to parse the url. And parseURL is executed when the user clicks the button. The code i have compiles and run but th...
Im trying to return an ArrayList from the AsyncTask class back to the MainAcitivity class and then use this arraylist to fill the gridview in MainActivity. The parseURL takes a String paramater to parse the url. And parseURL is executed when the user clicks the button. The code i have compiles and run but the gridview ...
java|android|android-asynctask
0
2015-02-24T22:00:06.723Z
2,015
2
22
1
2,253
4
698
36
3
2
true
false
false
false
false
false
zero
28,707,288
How to change blue color of CardView on click events on pre-Lollipop phones
<p>I set CardView and inside of it I put RelativeLayout. </p> <p>Layout looks something like this:</p> <pre><code>&lt;android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/row_basket_list_card_view" android:orientation="horizontal" android:layout_width="match_p...
I set CardView and inside of it I put RelativeLayout. Layout looks something like this: [CODE] ... When I click on CardView on Lollipop phones, I get a nice ripple effect and everyone is happy. But, when I click on that CardView on pre-Lollipop phones, it only gets colored with some blue semi-transparent color. It look...
android|android-5.0-lollipop|android-appcompat|android-cardview
3
2015-02-24T22:06:59.230Z
2,015
2
22
1
1,886
1
404
75
4
1
true
false
false
false
false
false
low
28,707,336
Why am I unable to click on a phone number in Android WebView?
<p>I am following <a href="https://developer.chrome.com/multidevice/webview/gettingstarted" rel="nofollow">this tutorial.</a> I am making an android app for one of my domains, it is a very basic viewer that shows the homepage, users can navigate to other pages staying within the app (instead of the popup asking them wi...
I am following this tutorial. I am making an android app for one of my domains, it is a very basic viewer that shows the homepage, users can navigate to other pages staying within the app (instead of the popup asking them witch browser to use) but, I also have telephone numbers in the site as links, for example in this...
javascript|android|webview
0
2015-02-24T22:10:11.013Z
2,015
2
22
1
981
1
1,111
62
3
3
true
false
false
false
false
false
zero
28,707,391
sed does not quit when used along with adb logcat in a script
<p><a href="https://stackoverflow.com/questions/28690899/using-grep-to-read-a-log-for-pattern1-in-the-file-and-print-only-lines-containin">This is a follow-up question to the solution provided in this page</a></p> <p>This is the code in my script:</p> <pre><code>cmd = "adb logcat | sed -n '/pattern1/p;/pattern2/q'" ...
This is a follow-up question to the solution provided in this page This is the code in my script: [CODE] adb logcat | sed -n '/pattern1/p;/pattern2/q' works fine in the terminal, but sed does not quit when the same code is used in the script. I dont want to use ' adb logcat -d | ' here because I want the script to run ...
android|sed|adb|android-logcat
0
2015-02-24T22:13:06.913Z
2,015
2
22
1
301
1
412
61
4
1
true
false
false
false
false
false
zero
28,707,414
How to support private dependency management in Android Studio?
<p>I have built a project as a JAR+.SO with the intent that it can be shared in multiple projects and worked on in parallel. Now, however, I am not sure what the Android Studio way of supporting private dependency management is.</p> <p>For reference, the project I am building is in Git and is actually an Eclipse proje...
I have built a project as a JAR+.SO with the intent that it can be shared in multiple projects and worked on in parallel. Now, however, I am not sure what the Android Studio way of supporting private dependency management is. For reference, the project I am building is in Git and is actually an Eclipse project that pro...
java|android|eclipse|android-studio
0
2015-02-24T22:14:41.023Z
2,015
2
22
1
231
1
469
63
4
0
false
false
false
false
false
false
zero
28,707,454
Android - Not able to get object modified from ListView
<p>My <code>Radio_Cabinet_Defect_Activity</code>:</p> <pre><code>public class Radio_Cabinet_Defect_Activity extends Activity { private ListView mList; private CabinetDefectAdapter mCabinetDefectAdapter; private RadioSiteSubsection mRadioSiteSubsection; @Override protected void onCreate(Bundle sa...
My Radio_Cabinet_Defect_Activity : [CODE] I passed the object list to the following Adapter : [CODE] This adapter is linked with a ListView backed by the custom view R.layout.radio__cabinet_defect_item . When I press on the checkbox, I update the corresponding checkbox flag on my object. But on Radio_Cabinet_Defect_Act...
android|android-listview|android-arrayadapter|parcelable
0
2015-02-24T22:16:45.857Z
2,015
2
22
1
110
1
1,849
55
4
4
true
false
false
false
false
false
zero
28,707,643
Android bitmap tint, getPixel error
<p>So, what I am trying to do is if I click the button, it will tint a image that is on the same screen with orange color (70%).</p> <pre><code> Button OrangeButton= (Button) findViewById(R.id.OButton); OrangeButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(V...
So, what I am trying to do is if I click the button, it will tint a image that is on the same screen with orange color (70%). [CODE] Here is my orange method. [CODE] I am pretty sure that I have a problem, here. [CODE] I tried bmpOriginal.setPixel(5, 5, Color.Red) outside of this loob, and it made an error too. So I kn...
android|colors|bitmap|pixel|getpixel
0
2015-02-24T22:30:08.220Z
2,015
2
22
1
166
1
384
35
5
3
true
false
false
false
false
false
zero
28,707,652
How to pause and unpause thread in a game?
<p>I am new in developing games, i trying to develop a simple shooting space game and everything works perfect. now, i want to create a Dialog popup when the user click on the back button and the game should pause until the user press resume. the game is paused but when i click the resume button the game still on pause...
I am new in developing games, i trying to develop a simple shooting space game and everything works perfect. now, i want to create a Dialog popup when the user click on the back button and the game should pause until the user press resume. the game is paused but when i click the resume button the game still on pause he...
java|android|multithreading
3
2015-02-24T22:30:42.677Z
2,015
2
22
1
1,462
1
721
42
3
3
true
false
false
false
false
false
low
28,707,670
setOnRefreshListener fragment error
<p>I'm following this <a href="http://androidchef.blogspot.in/2014/09/recipe-37-swipe-refresh-layout.html?m=1" rel="nofollow">tutorial</a>, and I'm trying to implement this on my Fragment witch is a ListFragment that contains a ListViewAdapter. The thing is that I'm executing the APP and it gives to me error.</p> <p>T...
I'm following this tutorial , and I'm trying to implement this on my Fragment witch is a ListFragment that contains a ListViewAdapter. The thing is that I'm executing the APP and it gives to me error. This is my ListView adapter XML: [CODE] Where I put the SwipeRefreshLayout , and then on my ListFragment I put this : [...
android|android-fragments
0
2015-02-24T22:31:39.737Z
2,015
2
22
1
1,888
1
572
35
2
3
true
false
false
false
false
false
zero
28,707,712
Android: Is there a way to change an image without using a Custom Adapter?
<p>My activity extends ListActivity. This is how I set the list to the Adapter:</p> <pre><code>this.setListAdapter(new ArrayAdapter&lt;String&gt;( this, R.layout.imgTxtView, R.id.items,retrievedTasks)); </code></pre> <p>RetrivedTasks is a String of tasks/items stored in shared pref.</p> <p>I have this Lis...
My activity extends ListActivity. This is how I set the list to the Adapter: [CODE] RetrivedTasks is a String of tasks/items stored in shared pref. I have this List in a Linear Layout [CODE] And this is another Linear Layout (imgTxtView) that serves as a row in the List [CODE] The idea is when you click on just the ima...
android|image|listview|custom-adapter
0
2015-02-24T22:34:43.997Z
2,015
2
22
1
101
3
775
74
4
4
true
false
false
false
false
false
zero
28,707,733
Populate multiple TextView from data SQLite
<p>I have this code to populate a TextView from a db : </p> <pre><code>String ingredients = ""; ArrayList&lt;Map&lt;String, Object&gt;&gt; recipeIngredients = db .getRecipeIngredients(recipeId); for (Map&lt;String, Object&gt; ingredient : recipeIngredients) ingredients += "\n" ...
I have this code to populate a TextView from a db : [CODE] It works great, but the problem is that, all the ingredients and units are shown in the same textview, i can't get the code to work to show ingredients and units in separate textviews. Any help is appreciated. Thanks
android|sqlite|textview
0
2015-02-24T22:36:24.900Z
2,015
2
22
1
658
1
275
43
3
1
true
false
false
false
false
false
zero
28,707,742
List View Fragment Won't Display
<p>I am trying to display a list in my main activity using a ListFragment. The list is populated by my custom ArrayAdapter that uses a custom object. I am having trouble getting this list to show in the app. When I debug, it doesn't show any errors but the app immediately crashes.</p> <p>Here is my fragment</p> <p>Ed...
I am trying to display a list in my main activity using a ListFragment. The list is populated by my custom ArrayAdapter that uses a custom object. I am having trouble getting this list to show in the app. When I debug, it doesn't show any errors but the app immediately crashes. Here is my fragment Edit: I have tried se...
android|listview|android-fragments|android-listview|android-arrayadapter
0
2015-02-24T22:37:06.847Z
2,015
2
22
1
469
4
934
32
5
6
true
false
false
false
false
false
zero
28,707,797
Map is not centered when displayed in a Fragment
<p>I have an app displaying a map using OSM droid.</p> <p>When I call </p> <pre><code>mapView.setCenter(new GeoPoint(foo,bar)); </code></pre> <p>from the mapvies <code>onCreateView()</code> and the map is displayed in an activity containing the required <code>&lt;MapView&gt;</code> it centers fine. But when that <co...
I have an app displaying a map using OSM droid. When I call [CODE] from the mapvies onCreateView() and the map is displayed in an activity containing the required <MapView> it centers fine. But when that <MapView> is inside a fragment that then is loaded into a layout programatically, it centers with an offset that pla...
android|android-fragments|osmdroid
0
2015-02-24T22:40:49.340Z
2,015
2
22
1
134
1
527
48
3
1
true
false
false
false
false
false
zero
28,707,805
How is ShowVirtualKeyboard run on the Delphi FireMonkey Android platform?
<p>Consider:</p> <pre><code>Uses FMX.VirtualKeyboard, FMX.Platform; procedure TForm1.Button1Click(Sender: TObject); var Keyboard: IFMXVirtualKeyboardService; begin keyboard := TPlatformServices.Current.GetPlatformService(IFMXVirtualKeyboardService) as IFMXVirtualKeyboardService; if TVirtualKe...
Consider: [CODE] HideVirtualKeyboard is running with this code, but how is ShowVirtualKeyboard run on the Delphi FireMonkey Android platform? Because for the same code, ShowVirtualKeyboard is giving: not enough actual parameters error in code page
android|delphi|firemonkey|delphi-xe6|virtual-keyboard
2
2015-02-24T22:41:30.777Z
2,015
2
22
1
2,773
1
247
73
5
1
true
false
true
false
false
false
low
28,707,949
Creating a basic adapter for searchview that uses asynctask
<p>So I'm making this student project Android app that I use to search movies online.</p> <p>The problem I'm having is that even though there is tons of material to read, I don't quite comprehend how adapters for searchview results are supposed to be made. I know what kind of data the query returns, but I still don't ...
So I'm making this student project Android app that I use to search movies online. The problem I'm having is that even though there is tons of material to read, I don't quite comprehend how adapters for searchview results are supposed to be made. I know what kind of data the query returns, but I still don't know how to...
java|android|json|android-asynctask|searchview
0
2015-02-24T22:52:02.923Z
2,015
2
22
1
485
1
935
59
5
1
true
false
false
false
false
false
zero
28,707,979
"Hidden" Form fields won't hide on Android or iOS with CSS or JavaScript
<p>I have a form with a number of fields. Some of the fields are visible and some have a class (hidefield) which sets them to to "display:none;". The problem is that on some iOS devices (iPhone 5) and some android devices, the calculation form fields that are supposed to be hidden are visible. </p> <p>I have tried a) ...
I have a form with a number of fields. Some of the fields are visible and some have a class (hidefield) which sets them to to "display:none;". The problem is that on some iOS devices (iPhone 5) and some android devices, the calculation form fields that are supposed to be hidden are visible. I have tried a) adding the !...
android|ios|css|mobile
0
2015-02-24T22:54:53.363Z
2,015
2
22
1
127
0
1,101
72
4
0
false
true
false
false
false
false
zero
28,707,985
Complete beginner following Androids tutorial for first app - Fatal Java error
<p>So I'm on Mac osx, downloaded Android studio, downloaded intel HAXM, started scripting and got to the end of this tutorial:</p> <p><a href="https://developer.android.com/training/basics/firstapp/building-ui.html" rel="nofollow">https://developer.android.com/training/basics/firstapp/building-ui.html</a></p> <p>The ...
So I'm on Mac osx, downloaded Android studio, downloaded intel HAXM, started scripting and got to the end of this tutorial: https://developer.android.com/training/basics/firstapp/building-ui.html The script actually runs, but when I go to run it through my emulator the emulator says "My First App has stopped working" a...
android
0
2015-02-24T22:55:32.920Z
2,015
2
22
1
58
1
568
78
1
1
true
false
false
false
false
false
zero
28,708,042
Android play and record radio stream simultaneously
<p>I have Android application, which stream radio stream with m3u extension. It is playing this stream in MediaPlayer through method <strong>setDatasource(url)</strong>. Of course, this works greaet because I don't need to take a care about reading inputstream, buffer that, repeatedly send to the MediaPlayer with seeki...
I have Android application, which stream radio stream with m3u extension. It is playing this stream in MediaPlayer through method setDatasource(url) . Of course, this works greaet because I don't need to take a care about reading inputstream, buffer that, repeatedly send to the MediaPlayer with seeking the last positio...
java|android|websocket|stream|webserver
0
2015-02-24T22:59:37.303Z
2,015
2
22
1
308
0
646
51
5
0
false
true
false
false
false
false
zero
28,708,047
Async ContentProvider
<p>I have an special image format that must be processed for a thumbnail before it is displayed. I have a solid disk cache/mem cache/asynctask framework in place. I want to migrate to using ContentProviders with the ability to process that thumbnail asynchronously. </p> <p>Now most examples involve a single query l...
I have an special image format that must be processed for a thumbnail before it is displayed. I have a solid disk cache/mem cache/asynctask framework in place. I want to migrate to using ContentProviders with the ability to process that thumbnail asynchronously. Now most examples involve a single query loading data (ne...
android|asynchronous|android-asynctask|android-contentprovider
1
2015-02-24T23:00:27.517Z
2,015
2
23
1
242
0
1,443
21
4
0
false
true
false
false
false
false
low
28,708,057
layer-list shape + bitmap on top with padding
<p>I Try to center a drawable bitmap within a shape with padding, using layer-list. But i can't get padding around the image. THis is not working:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item&gt; &lt;shape...
I Try to center a drawable bitmap within a shape with padding, using layer-list. But i can't get padding around the image. THis is not working: [CODE] Does someone have an idea how to center a bitmap (for scaling) with padding? Right now the bottom,left,... parameters are just ignored. The bitmap is scaled 100% within ...
java|android|bitmap|layer-list
1
2015-02-24T23:01:21.313Z
2,015
2
23
1
2,151
2
536
45
4
1
true
false
false
false
false
false
low
28,708,059
How to change the location and size of Action Buttons?
<p>I have a problem with the design of my ActionBar.</p> <p>The problem is that I want to create an Action Button on my Action Bar that is a text only button an then I want move it around with margins and make the text bigger then the default (Not programmatically).</p> <p>I tried to achive this using a style but it ...
I have a problem with the design of my ActionBar. The problem is that I want to create an Action Button on my Action Bar that is a text only button an then I want move it around with margins and make the text bigger then the default (Not programmatically). I tried to achive this using a style but it did not work and th...
android|android-actionbar
0
2015-02-24T23:01:29.780Z
2,015
2
23
1
68
0
418
54
2
0
false
true
false
false
false
false
zero
28,708,095
Pebble Watchapp for Data Logging Example
<p>I am new to Pebble and it's SDK. I have installed the Data Logging Demo example app on my Android phone (Nexus 5 running Lollilop). I have paired and connected that with my Pebble watch (Kickstarted Edition).</p> <p>I want to install the corresponding watchapp on the pebble device. And i need help understanding how...
I am new to Pebble and it's SDK. I have installed the Data Logging Demo example app on my Android phone (Nexus 5 running Lollilop). I have paired and connected that with my Pebble watch (Kickstarted Edition). I want to install the corresponding watchapp on the pebble device. And i need help understanding how to build a...
android|pebble-watch|pebble-sdk
0
2015-02-24T23:04:08.760Z
2,015
2
23
1
170
1
492
40
3
0
false
false
false
false
false
false
zero
28,708,099
How do I exclude AndroidTest/assets from Gradle builds when not testing?
<p>My unit tests require some large assets in order to test parsing complex media files. I'm noticing that Gradle includes the entire androidTest/assets folder in both debug and release builds. This is resulting in needless APK file size bloat.</p> <p>I tried setting android { aaptOptions { ignoreAssetsPattern "!*.ext...
My unit tests require some large assets in order to test parsing complex media files. I'm noticing that Gradle includes the entire androidTest/assets folder in both debug and release builds. This is resulting in needless APK file size bloat. I tried setting android { aaptOptions { ignoreAssetsPattern "!*.ext"} } in bui...
android|unit-testing|android-studio|gradle|android-assets
1
2015-02-24T23:04:34.780Z
2,015
2
23
1
1,810
1
1,122
72
5
0
false
false
false
false
false
false
low
28,708,139
Android Shared Preferences Not Comitting
<p>I have a switch i am toggling in the app. When i close the app i want the last toggle state to save. When the app opens it will set the toggle state to the last saved state. I am using SharedPreferences to do this. For some reason my preferences are not saving. I have looked over my code and could not find any probl...
I have a switch i am toggling in the app. When i close the app i want the last toggle state to save. When the app opens it will set the toggle state to the last saved state. I am using SharedPreferences to do this. For some reason my preferences are not saving. I have looked over my code and could not find any problems...
java|android|android-activity|sharedpreferences
1
2015-02-24T23:07:17.257Z
2,015
2
23
1
64
3
397
40
4
2
true
false
false
false
false
false
low
28,708,149
Android MD5 checksum of sqlite Db changes after copying
<p>I am providing an SQLite Db packaged with the app which is copied to the /data/data/ folder on the first launch. The contents of this Db are meant for reading only and are never changed.</p> <p>If the Db is modified, it is supposed to be provided with the next App Update. So, I want to implement a procedure where, ...
I am providing an SQLite Db packaged with the app which is copied to the /data/data/ folder on the first launch. The contents of this Db are meant for reading only and are never changed. If the Db is modified, it is supposed to be provided with the next App Update. So, I want to implement a procedure where, I was think...
android|sqlite|compare|md5|checksum
1
2015-02-24T23:07:44.170Z
2,015
2
23
1
768
1
942
55
5
0
false
false
false
false
false
false
low
28,708,151
How to set adapter for spinner in alert dialog
<p>i´m making Android app and i found a problem. I have activity and i have to make alert dialog from it. That wokrs fine, but i need a spinner in that dialog too and i cant set up adapter properly. App crashes with NullPointer ex. Piece of Dialog xml with spinner:</p> <pre><code> &lt;Spinner android:id="@+id/...
i´m making Android app and i found a problem. I have activity and i have to make alert dialog from it. That wokrs fine, but i need a spinner in that dialog too and i cant set up adapter properly. App crashes with NullPointer ex. Piece of Dialog xml with spinner: [CODE] And here is code: [CODE] And Dialog code: [CODE] H...
java|android|android-spinner
1
2015-02-24T23:07:44.770Z
2,015
2
23
1
1,713
2
429
46
3
3
true
false
false
false
false
false
low
28,708,166
Android how set a clicked TextView with the input data
<p>i have a Table of <code>TextView</code> (60 TextView), the user can touch them and set the text and the background of the clicked <code>TextView</code>. When one <code>TextView</code> is clicked this event open a <code>DialogActivity</code> with <code>startActivityForResult</code> and take back two variables (string...
i have a Table of TextView (60 TextView), the user can touch them and set the text and the background of the clicked TextView . When one TextView is clicked this event open a DialogActivity with startActivityForResult and take back two variables (string and color). My problem is how set the text and the background of t...
android|textview
0
2015-02-24T23:09:25.303Z
2,015
2
23
1
220
1
468
54
2
2
true
false
false
false
false
false
zero
28,708,347
Best way to authenticate user
<p>I'm searching best way to sign up, log in in my app. There will be three ways to log in: facebook, g+ and my website. When user log in by facebook, app sends fb auth token to my website which creates an account in my server db with informations from fb acc. When app starts the same thing is going.. its checking if u...
I'm searching best way to sign up, log in in my app. There will be three ways to log in: facebook, g+ and my website. When user log in by facebook, app sends fb auth token to my website which creates an account in my server db with informations from fb acc. When app starts the same thing is going.. its checking if user...
java|android|authentication|oauth
-1
2015-02-24T23:22:07.300Z
2,015
2
23
1
711
2
636
29
4
0
false
false
false
false
false
true
negative
28,708,386
onTouchEvent Override in Android Wear
<p>I am trying to capture onTouchEvent in a completely basic Android Wear app that uses watch view stub. The onTouchEvent doesn't seem to get called by the MainActivity. </p> <p>If I put a break in the function onTouchEvent below, it never hits the break point. </p> <pre><code>public class MainActivity extends Act...
I am trying to capture onTouchEvent in a completely basic Android Wear app that uses watch view stub. The onTouchEvent doesn't seem to get called by the MainActivity. If I put a break in the function onTouchEvent below, it never hits the break point. [CODE] }
android|wear-os
1
2015-02-24T23:25:21.343Z
2,015
2
23
1
559
1
259
37
2
1
true
false
false
false
false
false
low
28,708,415
How to create a notification for other apps in android?
<p>I'd like to know if it is possible in Android 4.3+ to have an app which can create a notification of <strong>another</strong> app.</p> <p><em>For example:</em> I develop an app, say myApp, with a button. Every time I tap on that button a new notification from another app, say Telegram, is triggered.</p> <p>I'm sor...
I'd like to know if it is possible in Android 4.3+ to have an app which can create a notification of another app. For example: I develop an app, say myApp, with a button. Every time I tap on that button a new notification from another app, say Telegram, is triggered. I'm sorry I don't have any code to show you as a sta...
android|android-notifications
0
2015-02-24T23:27:36.830Z
2,015
2
23
1
216
2
391
55
2
0
false
false
false
false
false
false
zero
28,708,651
Multiple Queries Parse Javascript
<p>I have been developing a mock up android app and want to write Parse Background job. My Parse users are customers and I <code>sell</code> services that customers can subscribe to. The <code>_User</code> class is for customers and the <code>CustomerSubscriptions</code> class is for subscriptions. I'm trying to upda...
I have been developing a mock up android app and want to write Parse Background job. My Parse users are customers and I sell services that customers can subscribe to. The _User class is for customers and the CustomerSubscriptions class is for subscriptions. I'm trying to update all the customers' bills but I can't. Can...
javascript|android|database|parse-platform
1
2015-02-24T23:52:04.357Z
2,015
2
23
1
423
1
376
33
4
1
true
false
false
false
false
false
low
28,708,714
Implementing an application-wide cache in android
<p>I am using an extension of an <a href="http://developer.android.com/reference/android/util/LruCache.html" rel="nofollow">LruCache</a> to store the results of network calls. Currently the cache is an instance variable in a fragment (the only place it is needed), and is recreated every time the app is rotated or pause...
I am using an extension of an LruCache to store the results of network calls. Currently the cache is an instance variable in a fragment (the only place it is needed), and is recreated every time the app is rotated or paused. How can I make the cache persist through rotations and pausing/resuming the app? I read that I ...
java|android|caching
0
2015-02-24T23:58:11.007Z
2,015
2
23
1
217
1
859
49
3
0
false
false
false
false
false
false
zero
28,708,746
Sometimes intent returns null
<p>In login activity,I have following lines:</p> <pre><code>public final static String APPV = "com.impact.pack.APPV"; private void startMainActivity() { Intent intent = new Intent(context, MainActivity.class); intent.putExtra(APPVT,getAppVersion(context)); intent.setFlags(Intent.FLAG_ACTIVITY_...
In login activity,I have following lines: [CODE] I am calling startMainActivity method from onCreate in Login Activity. And this is my main activity's onCreate method: [CODE] My app version is 17 but sometimes Log.w is writing 1 for App version .I mean sometimes intent is getting null value.But why ? How can I resolve ...
android
0
2015-02-25T00:01:11.483Z
2,015
2
0
2
112
1
326
29
1
2
true
false
false
false
false
false
zero
28,708,862
Android Studio use shared library in NDK code
<p>Basically, I want to know how to use a c++ shared library in Android Studio <em>in NDK code (inside jni part)</em>. There is quite a lot of questions about that but they all are based on changing Android.mk which is not a way to go because in AS it's generated automatically.</p>
Basically, I want to know how to use a c++ shared library in Android Studio in NDK code (inside jni part) . There is quite a lot of questions about that but they all are based on changing Android.mk which is not a way to go because in AS it's generated automatically.
android|c++|android-studio|android-ndk|shared-libraries
0
2015-02-25T00:13:11Z
-1
-1
-1
-1
1,312
1
267
45
5
0
false
false
false
false
false
false
zero
28,708,871
Does the Android Gradle plugin support loading native libraries via Maven?
<p>Let's say I have setup the following for all architectures:</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;de.ch-werner&lt;/groupId&gt; &lt;artifactId&gt;sqlite-jdbc&lt;/artifactId&gt; &lt;version&gt;3.7.9&lt;/version&gt; &lt;type&gt;so&lt;/type&gt; &lt;classifier&gt;linux-x86_64&lt;/classifie...
Let's say I have setup the following for all architectures: [CODE] I have an Android Studio project with a jniLibs dir under the main directory in my app module. Is it possible for the Android Studio plugin to download the so's artifacts from a Maven repo and install them, or is that not yet supported?
android|maven|android-studio|android-ndk
0
2015-02-25T00:14:14.257Z
2,015
2
0
2
177
1
303
74
4
1
true
false
false
false
false
false
zero
28,708,883
Having issues with Android app opening a web page
<p>I am having a bit of an issue with my Android app. Everything else is working except when I go to try the list that is supposed to take me to a website, the emulator stops working.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprin...
I am having a bit of an issue with my Android app. Everything else is working except when I go to try the list that is supposed to take me to a website, the emulator stops working. [CODE] That's the main activity code, and the error I'm getting on the log is [CODE] I'm not 100% sure how I'm supposed to add the error lo...
android
0
2015-02-25T00:15:13.980Z
2,015
2
0
2
49
1
341
49
1
2
true
false
false
false
false
false
zero
28,708,927
ListView and ViewPager within Fragment with Navigation Drawer
<p>I am trying to implement both of these features into a Fragment but so far no success. It shows me error <code>Cannot resolve method findViewById</code>in both <code>ListView</code> and <code>ViewPager</code> also a <code>Cannot resolve constructor ArrayAdapter(this, android.R.layout.simple_list_item_1, categoria)</...
I am trying to implement both of these features into a Fragment but so far no success. It shows me error Cannot resolve method findViewById in both ListView and ViewPager also a Cannot resolve constructor ArrayAdapter(this, android.R.layout.simple_list_item_1, categoria) What I am trying to do is enter from my IntroAct...
android|android-fragments|android-listview|android-viewpager
0
2015-02-25T00:19:17.320Z
2,015
2
0
2
471
1
578
61
4
2
true
false
false
false
false
false
zero
28,709,009
Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
<p>i'm completely new on android and this is my first project. I'm trying to make an android program that takes input from the user and perform some operations on mysql database, I ran the program but I got these errors:</p> <pre><code> java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Str...
i'm completely new on android and this is my first project. I'm trying to make an android program that takes input from the user and perform some operations on mysql database, I ran the program but I got these errors: [CODE] can anyone tell me where is the error and how to fix it please? i'm attaching my code here: mai...
android|mysql|nullpointerexception
1
2015-02-25T00:26:52.087Z
2,015
2
0
2
42,210
1
404
106
3
3
true
false
true
true
false
false
low
28,709,022
Rotating a captured video
<p>My app takes a video capture from the front camera and saves it to SD. Although the preview is just fine (after being rotated 90 degrees), the end result is tilt sideways.</p> <p>Is there a way to save it properly?</p>
My app takes a video capture from the front camera and saves it to SD. Although the preview is just fine (after being rotated 90 degrees), the end result is tilt sideways. Is there a way to save it properly?
android|android-camera|android-capture
1
2015-02-25T00:29:00.290Z
2,015
2
0
2
44
1
207
25
3
0
false
false
false
false
false
false
low
28,709,104
Gradle Java Compile: "Implicitly compiled files were not subject to annotation processing"
<p>I use the gradle java plugin. My Java code contains annotation processing. When I execute the <code>compileJava</code> task I get the following warning: </p> <pre><code>:compileJavawarning: Implicitly compiled files were not subject to annotation processing. Use -implicit to specify a policy for implicit compil...
I use the gradle java plugin. My Java code contains annotation processing. When I execute the compileJava task I get the following warning: [CODE] How can I prevent this warning and what does it mean?
java|android|gradle|annotations
12
2015-02-25T00:37:07.893Z
2,015
2
0
2
1,857
0
200
90
4
1
true
true
false
false
true
false
medium
28,709,121
Android AsyncTask execute every x minutes
<p>I have an AsyncTask what ping some server, I also create a Timer but when I try to execute I had an error</p> <pre><code>02-25 02:13:42.645 22313-22313/info.senyk.ustat E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: info.senyk.ustat, PID: 22313 java.lang.IllegalStateException: Cannot execute task: the task has a...
I have an AsyncTask what ping some server, I also create a Timer but when I try to execute I had an error [CODE] My Activity [CODE] As I understand that AsyncTask already executed but if I use InfoPing.setText(ping.ping(Hostname)); instead pingasync.execute(); my Activity freeze executing ping.ping(Hostname) Any ideas ...
android|android-asynctask|timertask
0
2015-02-25T00:38:43.747Z
2,015
2
0
2
939
2
336
41
3
2
true
false
false
false
false
false
zero
28,709,134
How to add fonts folder on Android Studio?
<p>I'm developing an android app using Android Studio IDE, and i want to use customized fonts in this app.</p> <p>I know that i have to create a folder called <strong>'fonts'</strong> under the folder <strong>'assets'</strong>, but i can't.<br> All the time that i try, i have this: <br> <strong>res<br> -assets.fonts</...
I'm developing an android app using Android Studio IDE, and i want to use customized fonts in this app. I know that i have to create a folder called 'fonts' under the folder 'assets' , but i can't. All the time that i try, i have this: res -assets.fonts Instead off: res -assets --fonts How can i create this folder? I'm...
android|fonts|android-studio|directory-structure
6
2015-02-25T00:40:38.273Z
2,015
2
0
2
12,142
1
377
42
4
0
false
false
true
true
false
false
medium
28,709,142
Unable to retrieve and set pixels
<p>I am attempting to set the pixel values of an ALPHA_8 bitmap directly, and find that I am unable to set any pixels.</p> <pre><code>Bitmap b = Bitmap.createBitmap(2, 2, Bitmap.Config.ALPHA_8); b.setPixel(0, 0, Color.TRANSPARENT); b.setPixel(1, 0, Color.WHITE); System.out.println("0, 0 is " + b.getPixel(0, 0)); // 0,...
I am attempting to set the pixel values of an ALPHA_8 bitmap directly, and find that I am unable to set any pixels. [CODE] Is there a way to be able to get and set pixel values on an ALPHA_8 bitmap?
android|bitmap
1
2015-02-25T00:41:24.707Z
2,015
2
0
2
107
0
198
33
2
1
true
true
false
false
false
false
low
28,709,219
Sending alarm broadcast to a dynamically registered receiver
<p>I have an anonymous class broadcast receiver:</p> <pre><code>private BroadcastReceiver mMyReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { updateStuff(); } }; </code></pre> <p>I register it and create a pending intent:</p> <p>Creating pendi...
I have an anonymous class broadcast receiver: [CODE] I register it and create a pending intent: Creating pending intent and registering the receiver [CODE] And set alarm (in update stuff '): [CODE] The intent is never delivered to the receiver. The alarm is set and targets receiver MyClass$1 (which is the only anon cla...
android|broadcastreceiver|alarmmanager
1
2015-02-25T00:49:05.733Z
2,015
2
0
2
1,639
4
434
60
3
3
true
false
false
false
false
false
low
28,709,220
Understanding RecyclerView setHasFixedSize
<p>I'm having some trouble understanding <code>setHasFixedSize()</code>. I know that it is used for optimization when the size of <code>RecyclerView</code> doesn't change, from the docs.</p> <p>What does that mean though? In most common cases a <code>ListView</code> almost always has a fixed size. In what cases would ...
I'm having some trouble understanding setHasFixedSize() . I know that it is used for optimization when the size of RecyclerView doesn't change, from the docs. What does that mean though? In most common cases a ListView almost always has a fixed size. In what cases would it not be a fixed size? Does it mean that the act...
android|android-5.0-lollipop|android-recyclerview
181
2015-02-25T00:49:16.960Z
2,015
2
0
2
107,709
10
386
42
3
0
false
false
true
true
true
false
high