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,616,911
How to set an ImageView to match_parent and horizontally scale accordingly?
<p>I have a RelativeLayout in a section of my activity that includes a button and an ImageView. The size of the RelativeLayout is ListPreferredItemHeight and what I would like to do is have the ImageView span from top to bottom of that layout and be scaled accordingly.</p> <p>Currently, without implementing any scalin...
I have a RelativeLayout in a section of my activity that includes a button and an ImageView. The size of the RelativeLayout is ListPreferredItemHeight and what I would like to do is have the ImageView span from top to bottom of that layout and be scaled accordingly. Currently, without implementing any scaling attribute...
android|xml|android-layout|imageview|android-ui
1
2015-02-19T21:07:44.967Z
2,015
2
21
3
268
1
634
75
5
2
true
false
false
false
false
false
low
28,616,942
Uploading files (video files) to S3 server from android using signed URL’s generated from server side application
<p>I am trying to upload video files to a Bucket in S3 server from android app using a signed URLs which is generated from server side (coded in python) application. We are making a PUT request to the signed URL but we are getting </p> <blockquote> <p><code>connection reset by peer exception</code>.</p> </blockquot...
I am trying to upload video files to a Bucket in S3 server from android app using a signed URLs which is generated from server side (coded in python) application. We are making a PUT request to the signed URL but we are getting connection reset by peer exception . But when I try the same URL on the POSTMAN REST CLIENT ...
android|file-upload|amazon-s3|pre-signed-url
5
2015-02-19T21:09:12.273Z
2,015
2
21
3
3,043
2
372
113
4
0
false
false
true
false
false
false
low
28,616,945
How does the phone scan LTE signal
<p>I have a cellphone (HTC desire 510, an android phone) that works with band 5 of LTE, However when I build my own base station with OpeanAirInterface, and send signals at a frequency of 881Mhz(downlink), the mobile phone cannot detect my signals. </p> <p>I wonder if a phone will scan all the frequencies within the b...
I have a cellphone (HTC desire 510, an android phone) that works with band 5 of LTE, However when I build my own base station with OpeanAirInterface, and send signals at a frequency of 881Mhz(downlink), the mobile phone cannot detect my signals. I wonder if a phone will scan all the frequencies within the band 5 (which...
android|telecommunication|lte|4g
-2
2015-02-19T21:09:27.667Z
2,015
2
21
3
1,475
2
506
34
4
0
false
false
false
false
false
true
negative
28,616,984
Android large scrollable canvas
<p>I want to make a large scrollable canvas where I would like to put some buttons which can be viewed by scrolling on the screen <img src="https://i.stack.imgur.com/kplCK.png" alt=""></p> <p>as you can see in the image, only two buttons are available at a time, but other buttons can be viewed by panning on the screen...
I want to make a large scrollable canvas where I would like to put some buttons which can be viewed by scrolling on the screen as you can see in the image, only two buttons are available at a time, but other buttons can be viewed by panning on the screen. Any suggestions to implement such interface on Android would be ...
android|canvas|scroll
1
2015-02-19T21:12:00.957Z
2,015
2
21
3
208
0
339
31
3
0
false
true
false
false
false
false
low
28,617,007
Does getGsmBitErrorRate() actually work?
<p>There are multiple old threads about <a href="http://developer.android.com/reference/android/telephony/SignalStrength.html#getGsmBitErrorRate%28%29" rel="nofollow noreferrer"><code>SignalStrength#getGsmBitErrorRate()</code></a> returning bogus values like <a href="https://stackoverflow.com/questions/22864624/getgsmb...
There are multiple old threads about SignalStrength#getGsmBitErrorRate() returning bogus values like -1 or 255 . It always returns 0 in my tests on a Motorola Moto G (4.4.2), which is at least a valid value, but possibly still fake. Is there any evidence that this method actually works at all?
android|gsm
1
2015-02-19T21:13:16.750Z
2,015
2
21
3
197
0
294
40
2
0
false
true
false
false
false
false
low
28,617,043
OkHTTP code not working
<p>I have the current under my MainActivity class and i cannot see why s and post are returning errors?</p> <pre><code>public class MainActivity extends ActionBarActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout....
I have the current under my MainActivity class and i cannot see why s and post are returning errors? [CODE] I am not sure why its not working
java|android|okhttp
1
2015-02-19T21:15:46.683Z
2,015
2
21
3
272
0
141
23
3
1
true
true
false
false
false
false
low
28,617,095
Strikethrough in cell using itext in Android/Java
<p>I have two numbers one above the other, but the first one must have an Strikethrough, I'm using a table and cell to put both numbers in the table, is there a way to make what I need?</p>
I have two numbers one above the other, but the first one must have an Strikethrough, I'm using a table and cell to put both numbers in the table, is there a way to make what I need?
java|android|itext|cell
0
2015-02-19T21:18:36.710Z
2,015
2
21
3
457
2
182
49
4
0
false
false
false
false
false
false
zero
28,617,192
Android: Properly handling PUSH Notification
<p>I'm porting an app from iOS to Android. We use Parse as our back end. I'm currently working on the implementation of PUSH notifications.</p> <p>All is going well in that I am able to receive PUSH notifications in the Android app. Now, I want to code the app so that it acts correctly depending upon the current state...
I'm porting an app from iOS to Android. We use Parse as our back end. I'm currently working on the implementation of PUSH notifications. All is going well in that I am able to receive PUSH notifications in the Android app. Now, I want to code the app so that it acts correctly depending upon the current state of the app...
android|notifications|push-notification|google-cloud-messaging
2
2015-02-19T21:24:24.347Z
2,015
2
21
3
922
0
2,637
44
4
1
true
true
false
false
false
false
low
28,617,253
Android accessory displays splash screen instead of launching app
<p>I'm developing an Android app to interface with a custom accessory, using a Moto X 1st-gen and a Galaxy S5 for testing. On both of these phones, when the accessory is connected, instead of prompting the user to launch the app, it simply displays a gray modal with the accessory company's logo. The strange thing is th...
I'm developing an Android app to interface with a custom accessory, using a Moto X 1st-gen and a Galaxy S5 for testing. On both of these phones, when the accessory is connected, instead of prompting the user to launch the app, it simply displays a gray modal with the accessory company's logo. The strange thing is that ...
android|android-intent|accessory
0
2015-02-19T21:28:01.577Z
2,015
2
21
3
106
1
874
65
3
2
true
false
false
false
false
false
zero
28,617,304
Android - NumberPicker doesn't show + and - buttons
<p>I wanna take an hour as input from user using a Number Picker, but it doesn't show the + and - buttons, it's just a values wheel</p>
I wanna take an hour as input from user using a Number Picker, but it doesn't show the + and - buttons, it's just a values wheel
android|time
0
2015-02-19T21:30:35.473Z
2,015
2
21
3
532
1
128
51
2
0
false
false
false
false
false
false
zero
28,617,318
How to call an item only for the first time of running
<p>I would like to show a "png" image to the user, but only for the first time the app runs, so for subsequent runs it will not appear.</p> <p>I normally do it like this:</p> <pre><code>helpimg.setVisibility(View.VISIBLE); </code></pre> <p>Then, by using the <code>OnTouchlistener</code> function I can make it disap...
I would like to show a "png" image to the user, but only for the first time the app runs, so for subsequent runs it will not appear. I normally do it like this: [CODE] Then, by using the OnTouchlistener function I can make it disappear, but this method would have to be used every time the user runs my app. I need to do...
java|android|visibility
0
2015-02-19T21:31:26.017Z
2,015
2
21
3
38
1
479
54
3
1
true
false
false
false
false
false
zero
28,617,356
Multiple Android projects using Crashlytics in the same Eclipse workspace
<p>I have installed Fabric (Crashlytics) plugin for Eclipse, set up single project to use Crashlytics. 4 dependency projects were created under that project, they got imported to the workspace, everything worked fine.</p> <p>I wanted to set up second project, which is in the same workspace, to use Crashlytics. Did the...
I have installed Fabric (Crashlytics) plugin for Eclipse, set up single project to use Crashlytics. 4 dependency projects were created under that project, they got imported to the workspace, everything worked fine. I wanted to set up second project, which is in the same workspace, to use Crashlytics. Did the Crashlytic...
android|eclipse|crashlytics|twitter-fabric
1
2015-02-19T21:33:37.170Z
2,015
2
21
3
621
1
962
73
4
0
false
false
false
false
false
false
low
28,617,369
what is the difference between the time of android animatorSet and the animation time it contains?
<p>I have a animatorSet with x animations playing together, i don't understand the deference between the time in animationSet.setDuration(<strong>duration</strong>) and the time in Glider.glide(easing, <strong>duration</strong>, objAnimation());</p> <p>what's the difference? please.</p> <p>code sample:</p> <pre><cod...
I have a animatorSet with x animations playing together, i don't understand the deference between the time in animationSet.setDuration( duration ) and the time in Glider.glide(easing, duration , objAnimation()); what's the difference? please. code sample: [CODE]
android|animation|timing
1
2015-02-19T21:34:28.420Z
2,015
2
21
3
712
0
262
98
3
1
true
true
false
false
false
false
low
28,617,479
Picasso Main Errored
<p>I am trying to use Picasso Android library but i'm not able to get it working.</p> <p>For starting, i am trying the simplest of the things:</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_basic_view); mImageView =...
I am trying to use Picasso Android library but i'm not able to get it working. For starting, i am trying the simplest of the things: [CODE] the activity layout is: [CODE] The view remains completely red. If i set a resource in the view via setImageResource, it correctly displays. The only relevant clue that something w...
android|picasso
-1
2015-02-19T21:41:08.057Z
2,015
2
21
3
702
1
584
20
2
2
true
false
false
false
false
true
negative
28,617,509
Px and dp to position a view
<p>I read so much about dp and px and the using dp should be the right way. My question is, lets say you want to load a an image.png into an imageview using wrap content parameter. Lets say that this you want to place a text in a specific part of the image. I add a text view on top of the image view. Now my question, i...
I read so much about dp and px and the using dp should be the right way. My question is, lets say you want to load a an image.png into an imageview using wrap content parameter. Lets say that this you want to place a text in a specific part of the image. I add a text view on top of the image view. Now my question, in o...
android
0
2015-02-19T21:42:59.580Z
2,015
2
21
3
74
0
942
28
1
0
false
true
false
false
false
false
zero
28,617,514
How to scroll one-way only with Libgdx gesture detection
<p>I've managed to make a simple game, where the main element is to scroll the background upwards. However I can't figure out how to make the application to scroll one-way only. The background should not be able to scroll downwards. WorldScreen.camera.y is the camera that scrolls trough the background.</p> <p>Here is ...
I've managed to make a simple game, where the main element is to scroll the background upwards. However I can't figure out how to make the application to scroll one-way only. The background should not be able to scroll downwards. WorldScreen.camera.y is the camera that scrolls trough the background. Here is what my cod...
java|android|libgdx|gesturedetector
0
2015-02-19T21:43:23.983Z
2,015
2
21
3
209
0
342
56
4
1
true
true
false
false
false
false
zero
28,617,516
step, min, and max HTML5 attributes don't work in iOS Safari on a time input
<p>I'm writing a time picker for an application, and I want to use the native iOS and Android time pickers. I'm using a simple html input:</p> <pre><code>&lt;input type="time" step="1800" min="08:00" max="23:30"&gt; </code></pre> <p>I have a <a href="http://jsfiddle.net/jradakov/efeL1e8k/1/" rel="nofollow">link</a> ...
I'm writing a time picker for an application, and I want to use the native iOS and Android time pickers. I'm using a simple html input: [CODE] I have a link to a very simple JSFiddle that I used to test on my iPhone. All I'm really interested in is specifying a minimum time. A step would be nice, but not necessary. Goo...
android|ios|html
4
2015-02-19T21:43:38.620Z
2,015
2
21
3
826
0
474
76
3
1
true
true
false
false
false
false
low
28,617,564
Android: pass message forward and back between activities
<p>I have 4 activities A,B,C,D. A startsActivityForResult B, B startsActivityForResult C, and C startsActivityForResult D. I want to do task X (dependent on result from activity B) on activity A. Currently, I use <code>setResult()</code>/<code>onActivityResult()</code> to pass forward and back the message between activ...
I have 4 activities A,B,C,D. A startsActivityForResult B, B startsActivityForResult C, and C startsActivityForResult D. I want to do task X (dependent on result from activity B) on activity A. Currently, I use setResult() / onActivityResult() to pass forward and back the message between activities. This is fragile as a...
android|android-activity|android-lifecycle
1
2015-02-19T21:46:00.780Z
2,015
2
21
3
293
3
524
57
3
0
false
false
false
false
false
false
low
28,617,655
Circle ImageView Android
<p>I am using Picasso to set circle image sources to my ImageView and it is working fine. The problem is that I am using <code>android:background=?selectableItemBackground</code>, and the ripple effect (or the touch effect for previous version) fill the square (because the imageView is really a square, only the source ...
I am using Picasso to set circle image sources to my ImageView and it is working fine. The problem is that I am using android:background=?selectableItemBackground , and the ripple effect (or the touch effect for previous version) fill the square (because the imageView is really a square, only the source is a circle). C...
android|imageview|geometry
0
2015-02-19T21:51:51.563Z
2,015
2
21
3
614
0
379
24
3
0
false
true
false
false
false
false
zero
28,617,774
Android: Thread Runnable and Handler
<p>I run into a bit of a problem, I'm learning android and what to use a Runnable Thread and a Handler to change the UI Thread i already know how to do this using an AsynkTask i'm just trying to learn how to do it both ways, the problem is that my app freezes and then crashes i think the solution is to use postDelayed ...
I run into a bit of a problem, I'm learning android and what to use a Runnable Thread and a Handler to change the UI Thread i already know how to do this using an AsynkTask i'm just trying to learn how to do it both ways, the problem is that my app freezes and then crashes i think the solution is to use postDelayed but...
java|android|multithreading
0
2015-02-19T21:57:51.557Z
2,015
2
21
3
242
1
753
36
3
5
true
false
false
false
false
false
zero
28,617,847
SQLite Exception: no such column in Android
<p>I wrote an application to update rows in SQlite Db, below is the code for update in data handler:</p> <pre><code>public long updatedata(String ID, String NAME,String NUMBER) { ContentValues content = new ContentValues(); content.put(name, NAME); content.put(number,NUMBER); return...
I wrote an application to update rows in SQlite Db, below is the code for update in data handler: [CODE] now when i need to update a row i used below code: [CODE] Also assume that the above provided value is exist and valid and also i am sure that there is an id = jo_2 in my database, the problem is when i run the code...
java|android|sqlite|android-activity|android-sqlite
2
2015-02-19T22:01:56.847Z
2,015
2
22
3
8,078
3
357
43
5
3
true
false
true
false
false
false
low
28,617,910
How to scan and compare images in different flipperView?
<p>I'm doing a game in words. The meaning of the game is as follows:</p> <ol> <li>There is a picture of designating word. eg word - ball</li> <li>We offer an letter.</li> </ol> <p>I have 4 flipper. </p> <pre><code>reels[0] = (ViewFlipper)v.findViewById(R.id.oneFlipper); reels[1] = (ViewFlipper)v.findViewById(R.id.tw...
I'm doing a game in words. The meaning of the game is as follows: There is a picture of designating word. eg word - ball We offer an letter. I have 4 flipper. [CODE] Each flipper has 4 pictures with letters. At the bottom I made a button with the letters. [CODE] When you press the button with the letter, the flipper is...
java|android
1
2015-02-19T22:05:44.883Z
2,015
2
22
3
89
0
723
56
2
2
true
true
false
false
false
false
low
28,617,964
confused about how Android handles the activities
<p>I am a bit confused about how Android handles the activities. I am involved in a project with 3 main activities:</p> <ul> <li>A.- A splash / welcome screen </li> <li>B.- A list view about news </li> <li>C.- A news description that is shown when the user touches the new in the list view</li> </ul> <p>If I am at C a...
I am a bit confused about how Android handles the activities. I am involved in a project with 3 main activities: A.- A splash / welcome screen B.- A list view about news C.- A news description that is shown when the user touches the new in the list view If I am at C and OnDestroyed() is called, for example because an o...
android|android-listview|android-lifecycle
1
2015-02-19T22:08:47.843Z
2,015
2
22
3
53
3
614
49
3
0
false
false
false
false
false
false
low
28,617,992
Why do Android browsers (Chrome/stock) force twitter intents to close then open in the same window, even when _blank or window.open are used?
<p>Example of what I mean:</p> <p><a href="http://jsfiddle.net/dtipson/ttebddd5/2/" rel="nofollow">http://jsfiddle.net/dtipson/ttebddd5/2/</a></p> <p>In all other browsers, and in cases not linking to twitter's intents pages, when you open a new window or target blank, it opens in a new tab. But with android, even on...
Example of what I mean: http://jsfiddle.net/dtipson/ttebddd5/2/ In all other browsers, and in cases not linking to twitter's intents pages, when you open a new window or target blank, it opens in a new tab. But with android, even once you've set the browser to handle links to twitter.com, the new window opens, then imm...
javascript|android|google-chrome|twitter|webintents
1
2015-02-19T22:10:10.167Z
2,015
2
22
3
456
0
1,543
141
5
1
true
true
false
false
false
false
low
28,618,009
Localytics - Programmatically set app key
<p>Is it possible to programmatically set the app key for Localytics? From the integration guide (<a href="https://support.localytics.com/Android_SDK_integration" rel="nofollow noreferrer">https://support.localytics.com/Android_SDK_integration</a>), it seems like you must set it in the Manifest file as meta-data. </p> ...
Is it possible to programmatically set the app key for Localytics? From the integration guide ( https://support.localytics.com/Android_SDK_integration ), it seems like you must set it in the Manifest file as meta-data. [CODE] From the following post, it also seems like it's impossible to dynamically set Android meta-da...
android|manifest|localytics
6
2015-02-19T22:11:25.553Z
2,015
2
22
3
1,624
3
520
41
3
1
true
false
false
false
false
false
medium
28,618,068
On tap open a listview that is hidden at first
<p>I have a map,using google maps api2 on android studio,when I tap anywhere, I want to open a listview where there would be radio buttons and other kind of stuff. I dont know how to do that,how to use intent,how to use listeners,can anyone help me? Here is the code I got so far:</p> <pre><code>public class MainActivi...
I have a map,using google maps api2 on android studio,when I tap anywhere, I want to open a listview where there would be radio buttons and other kind of stuff. I dont know how to do that,how to use intent,how to use listeners,can anyone help me? Here is the code I got so far: [CODE] XML file: [CODE]
java|android|android-intent|listener|google-maps-api-2
0
2015-02-19T22:15:04.877Z
2,015
2
22
3
86
2
301
46
5
2
true
false
false
false
false
false
zero
28,618,269
App appearance changed after migration from Eclipse to Android Studio
<p>We have recently migrated our app from Eclipse to Android Studio, as Eclipse was having more and more issues as it stopped being adequately supported.</p> <p>We are using the AppCompat libraries and themes (min SDK 9; target SDK 21). However, the app background is now dark grey instead of black, and the appearance ...
We have recently migrated our app from Eclipse to Android Studio, as Eclipse was having more and more issues as it stopped being adequately supported. We are using the AppCompat libraries and themes (min SDK 9; target SDK 21). However, the app background is now dark grey instead of black, and the appearance of the Chec...
android|eclipse|android-studio|android-theme|android-styles
0
2015-02-19T22:27:46.203Z
2,015
2
22
3
96
1
952
69
5
0
false
false
false
false
false
false
zero
28,618,311
Fragment not attached to Activity NewPermissionsRequest facebook
<p>I am working on my first android app and am trying to request addtional publish_actions permissions. Following the documentation I am request them only when needed. </p> <p>However I am receiving this error:</p> <pre><code>02-19 16:19:19.544: E/AndroidRuntime(12456): FATAL EXCEPTION: main 02-19 16:19:19.544: E/An...
I am working on my first android app and am trying to request addtional publish_actions permissions. Following the documentation I am request them only when needed. However I am receiving this error: [CODE] I've been reading on here about fragments but I can't seem to figure this out. Here is the code that is calling m...
java|android|facebook|android-fragments
0
2015-02-19T22:31:12.920Z
2,015
2
22
3
539
0
522
64
4
3
true
true
false
false
false
false
zero
28,618,321
Obtaining a List from Parse without auto-selecting when obtained in Android Studio
<p>The title says it all, I'm trying to do that because I obtain a list from parse and the user must choose one of them from a spinner and based on the user's choice it responds and sets another filter to another spinner. The problem I'm having (really not much of a deal, but it's something that I'd like to do) is that...
The title says it all, I'm trying to do that because I obtain a list from parse and the user must choose one of them from a spinner and based on the user's choice it responds and sets another filter to another spinner. The problem I'm having (really not much of a deal, but it's something that I'd like to do) is that wh...
java|android|list|parse-platform|spinner
0
2015-02-19T22:32:33.723Z
2,015
2
22
3
47
1
757
82
5
1
true
false
false
false
false
false
zero
28,618,405
DatePicker crashes on my device when clicked (with personal app)
<p><strong>Edit : I checked that the issue only appears when the phone is set with "French" language.</strong></p> <p>I'm currently building my own app and I have an issue when using the DatePicker widget on my phone (debug mode phone : Samsung S5).</p> <p>The error gather is : java.util.IllegalFormatConversionExcept...
Edit : I checked that the issue only appears when the phone is set with "French" language. I'm currently building my own app and I have an issue when using the DatePicker widget on my phone (debug mode phone : Samsung S5). The error gather is : java.util.IllegalFormatConversionException I add more details about the iss...
android|datepicker|crash|device
42
2015-02-19T22:38:25.110Z
2,015
2
22
3
16,295
7
1,183
64
4
3
true
false
true
true
true
false
high
28,618,444
How to set a path for a class that extends View in xml? Android-Studio
<p>I found the following class <a href="https://android.googlesource.com/device/google/accessory/demokit/+/4de77996b19a3851675080072f029b0c7d0865ff/app/src/com/google/android/DemoKit/ColorWheel.java" rel="nofollow">https://android.googlesource.com/device/google/accessory/demokit/+/4de77996b19a3851675080072f029b0c7d0865...
I found the following class https://android.googlesource.com/device/google/accessory/demokit/+/4de77996b19a3851675080072f029b0c7d0865ff/app/src/com/google/android/DemoKit/ColorWheel.java , but I don't really know how to display it. I am quite new to android and I haven't used something like this until now. Could you te...
java|android|android-studio
-1
2015-02-19T22:41:12.707Z
2,015
2
22
3
283
1
395
70
3
1
true
false
false
false
false
true
negative
28,618,529
Android: setText from button, where button text is given by string
<p>I've just started out with android (and java, yes I am learning the two simultaneously). As a basic project to develop skills I've been trying to write code for a calculator.</p> <p>The keypad is formed of buttons, I have opted to put text on these through use of strings (I have read this is good practice to use st...
I've just started out with android (and java, yes I am learning the two simultaneously). As a basic project to develop skills I've been trying to write code for a calculator. The keypad is formed of buttons, I have opted to put text on these through use of strings (I have read this is good practice to use strings over ...
java|android|string|button|settext
1
2015-02-19T22:48:47.970Z
2,015
2
22
3
4,607
2
762
66
5
1
true
false
true
false
false
false
low
28,618,558
SQLITE cant upgrade read-only database from version 1 to 2
<p>I know there's loads of other posts about this but cant find an answer. I'm following the asset helper guide on github <a href="https://github.com/jgilfelt/android-sqlite-asset-helper/tree/master/samples/database-v2-upgrade" rel="nofollow">HERE</a></p> <p>I suspect its an SQL syntax error</p> <p><strong>LOG</stron...
I know there's loads of other posts about this but cant find an answer. I'm following the asset helper guide on github HERE I suspect its an SQL syntax error LOG [CODE] SQL To update [CODE] DBHelper Class [CODE] changing the version number auto calls the assethelper to trigger the update EDIT I've just done it the lazy...
android|sqlite|android-studio|android-sqlite
2
2015-02-19T22:51:22.863Z
2,015
2
22
3
2,010
1
395
58
4
3
true
false
false
false
false
false
low
28,618,609
achartengine pie chart not rendered in scrollview
<p>I have problems displaying a <code>pie chart</code> created by <code>achartengine</code>.</p> <p>My Layout XML:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_...
I have problems displaying a pie chart created by achartengine . My Layout XML: [CODE] My Activity: [CODE] There is no exception, there is no log message but all objects are created correctly. What I get is this: the chart is not displayed in my scrollview . Could anybody give me a hint? Thx Stefan
java|android|scrollview|achartengine
0
2015-02-19T22:55:25.693Z
2,015
2
22
3
359
1
299
49
4
2
true
false
false
false
false
false
zero
28,618,656
Package name changing improperly
<p>I changed my package name using the method of refractor > rename after deselecting 'compact empty middle package' in project window as shown in this video : <a href="https://www.youtube.com/watch?v=A-rITYZQj0A" rel="nofollow">https://www.youtube.com/watch?v=A-rITYZQj0A</a></p> <p>Now my project window shows the cha...
I changed my package name using the method of refractor > rename after deselecting 'compact empty middle package' in project window as shown in this video : https://www.youtube.com/watch?v=A-rITYZQj0A Now my project window shows the changed name, each of my java files show changed name, even my manifest also shows the ...
android|android-package-managers
0
2015-02-19T22:58:52.137Z
2,015
2
22
3
34
1
549
32
2
0
false
false
false
false
false
false
zero
28,618,662
Ripple and selectableItemBackgroundBorderless
<p>I am using a button that show the normal ripple, but if I change to the borderless ripple is not working. Where should be the position of the button inside of the layout to get always this ripple working? It is now inside of relative layout and over other relative layout that content images, buttons and other things...
I am using a button that show the normal ripple, but if I change to the borderless ripple is not working. Where should be the position of the button inside of the layout to get always this ripple working? It is now inside of relative layout and over other relative layout that content images, buttons and other things.
android|background|ripple|selectable|borderless
1
2015-02-19T22:59:18.707Z
2,015
2
22
3
3,391
1
318
45
5
0
false
false
true
false
false
false
low
28,618,682
Obtain InfoWindow dimensions to pan map
<p>I'm trying to obtain this behaviour with Google Maps:</p> <p>When a user clicks a Marker on a MapView, the InfoWindow is displayed with location details. If the InfoWindow is not fully on screen, for example, the Marker is close to the screen edge of the map, pan the map enough to make the InfoWindow fully visible...
I'm trying to obtain this behaviour with Google Maps: When a user clicks a Marker on a MapView, the InfoWindow is displayed with location details. If the InfoWindow is not fully on screen, for example, the Marker is close to the screen edge of the map, pan the map enough to make the InfoWindow fully visible. The proble...
java|android|google-maps
0
2015-02-19T23:00:33.527Z
2,015
2
23
3
42
0
513
39
3
0
false
true
false
false
false
false
zero
28,618,685
Posting to Handler tied to current thread
<p>I have a Handler, <code>mHandler</code>, tied to the main thread. <code>mHandler</code> resides in a <code>Service</code>. Say I now post a <code>Runnable</code> to <code>mHandler</code> from the main thread like so:</p> <pre><code>public class SomeService extends Service { // Handler is created on the main thr...
I have a Handler, mHandler , tied to the main thread. mHandler resides in a Service . Say I now post a Runnable to mHandler from the main thread like so: [CODE] I know the example is a little silly as the Handler is unnecessary. However, it is a good example for this question. Now my questions are: Will the code statem...
android|android-handler
1
2015-02-19T23:00:46.260Z
2,015
2
23
3
1,207
1
876
41
2
1
true
false
false
false
false
false
low
28,618,869
Android NullPointerException on cursor adapter while populating data from sqlite
<p>I'm getting NullpointerException. the follwing are my classes:</p> <pre><code>public class showrecordsBetweenDates extends Activity { SQLiteDatabase db; DBAdapter dbh; ......... ......... ......... public Cursor getMeterRecords(){ dbh = new DBAdapter(showrecordsBetweenDates.this); db = dbh.getWritabl...
I'm getting NullpointerException. the follwing are my classes: [CODE] My adapter class is public class MeterAdapter extends Activity { [CODE] here is my error [CODE] I populate listview from a method in DBAdapter class but now i need that method in another class(showrecordsBetweenDates) and i'm getting that error Thank...
android|android-listview|nullpointerexception|android-cursor
0
2015-02-19T23:16:15.410Z
2,015
2
23
3
72
0
332
80
4
3
true
true
false
false
false
false
zero
28,618,891
android changing button colors turns button orange when clicking... why?
<p>I've got some buttons that I want to change background colors upon clicking. As a quiz app, they'll turn red if the wrong one is clicked and green if the right one is clicked. I also wanted to reset the buttons back to default when the question is switched to repeat the process of selecting an answer.</p> <p>My p...
I've got some buttons that I want to change background colors upon clicking. As a quiz app, they'll turn red if the wrong one is clicked and green if the right one is clicked. I also wanted to reset the buttons back to default when the question is switched to repeat the process of selecting an answer. My problem is whe...
java|android|button|colors
2
2015-02-19T23:18:35.773Z
2,015
2
23
3
1,713
3
597
72
4
1
true
false
false
false
false
false
low
28,618,911
ViewPager and preserving faded button in same state in next page
<p>I am creating a slideshow where I show some buttons. When the user taps on the screen, the buttons fade away. I use a state variable to figure out what state the buttons should be in. However, it seems like the next page gets created and cached. Hence, when I fade the buttons and move to the next page, the buttons a...
I am creating a slideshow where I show some buttons. When the user taps on the screen, the buttons fade away. I use a state variable to figure out what state the buttons should be in. However, it seems like the next page gets created and cached. Hence, when I fade the buttons and move to the next page, the buttons are ...
android|android-viewpager
0
2015-02-19T23:19:27.613Z
2,015
2
23
3
68
0
690
64
2
1
true
true
false
false
false
false
zero
28,618,914
andengine remove AnimatedSprite in LoopEntityModifier
<p>I have an AnimatedSprite element, I want to apply some modifiers to this (AlphaModifier, ScaleModifier, ...)</p> <p>After the modifier finished, the AnimatedSprite element should removed. removeFace() method working properly when calling normally. However I am calling it in onModifierFinished() method, then I am ge...
I have an AnimatedSprite element, I want to apply some modifiers to this (AlphaModifier, ScaleModifier, ...) After the modifier finished, the AnimatedSprite element should removed. removeFace() method working properly when calling normally. However I am calling it in onModifierFinished() method, then I am getting error...
android|andengine
0
2015-02-19T23:19:46.510Z
2,015
2
23
3
103
1
378
53
2
2
true
false
false
false
false
false
zero
28,619,113
Start a new Activity from Fragment
<p>Using Android Studio, I have my MainActiviy class with a Placeholder fragment. This fragment has buttons, but one has to load an Activity. How does one do this? I was told to try something like the below, but the new Intent does not work.</p> <pre><code>Button button = (Button) rootView.findViewById(R.id.button1...
Using Android Studio, I have my MainActiviy class with a Placeholder fragment. This fragment has buttons, but one has to load an Activity. How does one do this? I was told to try something like the below, but the new Intent does not work. [CODE]
android|android-activity
18
2015-02-19T23:36:05.597Z
2,015
2
23
3
69,769
7
245
34
2
1
true
false
true
true
true
false
medium
28,619,123
HAX is working and emulator runs in fast virt mode
<p>I have a problem in Android Studio emulator, I've got this message when I run the project</p> <pre><code> C:\Users\User\AppData\Local\Android\sdk\tools\emulator.exe -avd smth -netspeed full -netdelay none Creating filesystem with parameters: Size: 69206016 Block size: 4096 Blocks per group: 32768 Inodes per group: ...
I have a problem in Android Studio emulator, I've got this message when I run the project [CODE] build.gardle [CODE] I tried run my project using Android 2.3.3 and Android 4.4.4 and I've got this error message in both cases. Any help please?
android|emulation
2
2015-02-19T23:36:53.613Z
2,015
2
23
3
15,919
1
241
50
2
2
true
false
true
true
false
false
low
28,619,159
How do I display a web page in a WebView?
<p>In my simple app I have three ListItems in the ListView. One of the item from the list is called <em>Homepage</em>. The purpose of the creation of this item is I want that once a user click on that item, it should display a webpage in the WebView section. Let's say, after clicking on the <em>Homepage</em> the facebo...
In my simple app I have three ListItems in the ListView. One of the item from the list is called Homepage . The purpose of the creation of this item is I want that once a user click on that item, it should display a webpage in the WebView section. Let's say, after clicking on the Homepage the facebook website (facebook...
android|android-layout|listview|android-webview|android-adapter
0
2015-02-19T23:39:40.983Z
2,015
2
23
3
111
1
471
41
5
2
true
false
false
false
false
false
zero
28,619,191
Toggle Button with borderless button style - how to get background in checked state?
<p>I am trying to get a standard Android ToggleButton to take on a somewhat custom style: in the unchecked state no border/background fill is displayed, in the checked state a background fill is displayed, when pressed (checked or unchecked) a ripple effect is displayed to transition from one state to another.</p> <p>...
I am trying to get a standard Android ToggleButton to take on a somewhat custom style: in the unchecked state no border/background fill is displayed, in the checked state a background fill is displayed, when pressed (checked or unchecked) a ripple effect is displayed to transition from one state to another. I've got th...
android|button|android-5.0-lollipop|rippledrawable
5
2015-02-19T23:42:32.740Z
2,015
2
23
3
1,155
0
1,456
84
4
3
true
true
false
false
false
false
low
28,619,244
Why can't I send a spooky scary skeleton SMS?
<p>I'm making an app to text this string:</p> <pre><code> ░░░░░░░░░░░░▄▐ ░░░░░░▄▄▄░░▄██▄ ░░░░░▐▀█▀▌░░░░▀█▄ ░░░░░▐█▄█▌░░░░░░▀█▄ ░░░░░░▀▄▀░░░▄▄▄▄▄▀▀ ░░░░▄▄▄██▀▀▀▀ ░░░█▀▄▄▄█░▀▀ ░░░▌░▄▄▄▐▌▀▀▀ ▄░▐░░░▄▄░█░▀▀ ▀█▌░░░▄░▀█▀░▀ ░░░░░░░▄▄▐▌▄▄ ░░░░░░░▀███▀█░▄ ░░░░░░▐▌▀▄▀▄▀▐▄ ░░...
I'm making an app to text this string: [CODE] This method sends the text: [CODE] If msg is "test", and I run sendSMSMessage , I get the string "test" on my phone a few minutes later. If msg is the spooky skeleton, the method goes, but I don't get the text, and the console shows no errors -- the "SMS sent" toast pops up...
java|android|string|sms
3
2015-02-19T23:46:30.653Z
2,015
2
23
3
315
1
614
45
4
2
true
false
false
false
false
false
low
28,619,329
Trying to setText() crashes Android app
<p>When I try to populate the 'lightName' TextView in the code below this works fine, but when I try to do the same with the 'pressureName' then my app crashes</p> <pre><code>public class ViewSensorData extends ActionBarActivity { TextView lightName; TextView pressureName; @Override protected void on...
When I try to populate the 'lightName' TextView in the code below this works fine, but when I try to do the same with the 'pressureName' then my app crashes [CODE] The activity_sensor_data.xml file looks ilke this [CODE] Finally, my logcat looks like this [CODE]
android|textview
1
2015-02-19T23:53:58.837Z
2,015
2
23
3
124
2
262
39
2
3
true
false
false
false
false
false
low
28,619,353
Java and SQLite and Android: Array of different objects
<p>I'm developing in Android (SQLite) but I think this is a Java issue. I want to update a Table, TABLE_GASTOS, my WHERE clause is "(col_MES+" =? AND " +col_ANO+"=?")" and the problem is on the args.</p> <pre><code>db.update(TABLE_GASTOS, values, (col_MES+" =? AND " +col_ANO+"=?"), args); </code></pre> <p>How can I d...
I'm developing in Android (SQLite) but I think this is a Java issue. I want to update a Table, TABLE_GASTOS, my WHERE clause is "(col_MES+" =? AND " +col_ANO+"=?")" and the problem is on the args. [CODE] How can I do something like (have an array of diferent types of objects): [CODE] If gasto.getAno returns an Integer....
java|android|sqlite
1
2015-02-19T23:56:28.533Z
2,015
2
23
3
108
1
405
55
3
2
true
false
false
false
false
false
low
28,619,393
How to check if my phone entered the Estimote beacon's range?
<p>I'm trying to make an app in Android Studio using <a href="http://estimote.com/" rel="nofollow">Estimote</a> beacon. I need a check like this. When my phone entered my beacon's range.</p> <p>My application will be display a message like "you entered the beacon area!"</p> <p>Thank you.</p>
I'm trying to make an app in Android Studio using Estimote beacon. I need a check like this. When my phone entered my beacon's range. My application will be display a message like "you entered the beacon area!" Thank you.
java|android|ibeacon|ibeacon-android|estimote
-1
2015-02-20T00:00:06.760Z
2,015
2
0
4
553
2
221
61
5
0
false
false
false
false
false
true
negative
28,619,400
How to parse IP Packet in java
<p>I want to parse a ip packet received in a ByteBuffer from the Tun device on a Android device. My aim is to extract the source and destination ip information from that ip packet.</p> <p>Any pointers will be appreciated</p>
I want to parse a ip packet received in a ByteBuffer from the Tun device on a Android device. My aim is to extract the source and destination ip information from that ip packet. Any pointers will be appreciated
java|android|networking|ip
1
2015-02-20T00:00:57.147Z
2,015
2
0
4
1,665
1
210
30
4
0
false
false
false
false
false
false
low
28,619,463
How to use two emulators at the same time in the same project in Android Studio?
<p>I working in Android Studio and I need some help regarding the emulators.</p> <p>I want to start two emulators so I can use them the same time to test my application. Right now the problem is that when the second emulator loads everything just crashes.</p> <p>How can I solve this?</p> <p>Please help!</p>
I working in Android Studio and I need some help regarding the emulators. I want to start two emulators so I can use them the same time to test my application. Right now the problem is that when the second emulator loads everything just crashes. How can I solve this? Please help!
java|android|android-studio|android-emulator|smsmanager
9
2015-02-20T00:09:22.463Z
2,015
2
0
4
30,529
2
280
80
5
0
false
false
true
true
false
false
medium
28,619,487
Android: Resources.getSystem().getIdentifier returns java.lang.IllegalArgumentException
<p>I'm tring to get an id of the picture by name <code>someId = "hd_2"</code> <code>Resources.getSystem().getIdentifier(someId, "drawable", getPackageName());</code></p> <pre><code>public static final class drawable { ... public static final int hd_2=0x7f020088; ... } </code></pre> <p>Why it might return ...
I'm tring to get an id of the picture by name someId = "hd_2" Resources.getSystem().getIdentifier(someId, "drawable", getPackageName()); [CODE] Why it might return java.lang.IllegalArgumentException : Invalid method? update: I moved Resources.getSystem().getIdentifier from onCreate to onStart, now it returns 0.
java|android|resources
0
2015-02-20T00:10:54.887Z
2,015
2
0
4
1,048
2
312
87
3
1
true
false
false
false
false
false
zero
28,619,504
How to move View of PhotoView
<p>I'm using uk.co.senab.photoview.PhotoView.<br> When zoom-in, the image of photoview will larger than mobile screen.<br> So, I want to make button that move mobile screen to center of the image, and the image still zoomed. I have no idea which variable I have to set in OnClickListener.<br> I try these but nothing hap...
I'm using uk.co.senab.photoview.PhotoView. When zoom-in, the image of photoview will larger than mobile screen. So, I want to make button that move mobile screen to center of the image, and the image still zoomed. I have no idea which variable I have to set in OnClickListener. I try these but nothing happen. [CODE]
android|view|photoviewer
1
2015-02-20T00:11:53.643Z
2,015
2
0
4
297
1
316
29
3
1
true
false
false
false
false
false
low
28,619,511
How can I solve java.lang.ClassNotFoundException in Android Studio?
<p>I found this post <a href="https://stackoverflow.com/questions/19523167/android-classnotfoundexception-didnt-find-class-on-path">Android ClassNotFoundException: Didn&#39;t find class on path</a>. But I don't know how to do that in android studio. I get the same error as he did : <code>Caused by: java.lang.ClassNotFo...
I found this post Android ClassNotFoundException: Didn&#39;t find class on path . But I don't know how to do that in android studio. I get the same error as he did : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.packageName.ClassName" on path: DexPathList[[zip file "/data/app/packageName-58...
java|android|android-studio
0
2015-02-20T00:13:02.587Z
2,015
2
0
4
54
0
410
67
3
0
false
true
false
false
false
false
zero
28,619,583
Way to ensure delivery of Action HEADSET_PLUG for ZTE T815 Android phone
<p>I have registered a BroadcastReceiver to receive ACTION_HEADSET_PLUG which works fine for most devices, ie it is called whenever the headset is plugged or unplugged. But on others eg the ZTE T815, the Intent is never sent/received when the headset is plugged/unplugged.</p> <p>For reference here is the code for the ...
I have registered a BroadcastReceiver to receive ACTION_HEADSET_PLUG which works fine for most devices, ie it is called whenever the headset is plugged or unplugged. But on others eg the ZTE T815, the Intent is never sent/received when the headset is plugged/unplugged. For reference here is the code for the receiver re...
android|broadcastreceiver|headset
0
2015-02-20T00:19:54.400Z
2,015
2
0
4
213
1
673
72
3
2
true
false
false
false
false
false
zero
28,619,672
Add a custom action in ShareActionProvider menu
<p>Putting a <code>ShareActioProvider</code> in an action bar and setting an intent on it is an easy way to share content on Android.</p> <p>I would like to add my own action (e.g. "Add Bookmark", "Save for Later" etc) in the drop down menu that appears on screen when you tap on the share menu item. Is this possible?<...
Putting a ShareActioProvider in an action bar and setting an intent on it is an easy way to share content on Android. I would like to add my own action (e.g. "Add Bookmark", "Save for Later" etc) in the drop down menu that appears on screen when you tap on the share menu item. Is this possible? I thought about creating...
android
1
2015-02-20T00:28:06.297Z
2,015
2
0
4
386
1
436
47
1
0
false
false
false
false
false
false
low
28,619,694
Android Studio: How do I create sliding tab navigation?
<p>I'm fairly new to Android Development so I'm a little lost. I am trying to make a app with a sliding tab type navigation to get to different screens. </p> <p>I've been googling it for like hours and I can't seem to find anything that breaks it down enough for me to understand. From what I read, I would have to use ...
I'm fairly new to Android Development so I'm a little lost. I am trying to make a app with a sliding tab type navigation to get to different screens. I've been googling it for like hours and I can't seem to find anything that breaks it down enough for me to understand. From what I read, I would have to use fragments? R...
java|android|android-studio
0
2015-02-20T00:30:44.883Z
2,015
2
0
4
3,732
2
629
55
3
0
false
false
true
false
false
false
zero
28,619,804
get lenghths and angles of detected straight Lines
<p>I am working on an android app. I can detect lines using Canny and Hough transform but I don't know how to get the angles and lengths of the detected lines, can you help please? Here's the code:</p> <pre><code>public void countStraightLines(View view) { try{ int iCannyLowerThreshold = 45; int ...
I am working on an android app. I can detect lines using Canny and Hough transform but I don't know how to get the angles and lengths of the detected lines, can you help please? Here's the code: [CODE] Thank you!
android|opencv
0
2015-02-20T00:43:19.017Z
2,015
2
0
4
23
1
212
50
2
1
true
false
false
false
false
false
zero
28,619,863
ImageView onlongclick called twice for a medium length press
<p>I am trying to implement an imageview that calls a fullscreen image viewer activity when the imageview receives a longclick. The code and the imageview's xml declaration are below. If the image is pressed and held, the image viewer activity is started as I expect, and if the image is clicked briefly it does nothing,...
I am trying to implement an imageview that calls a fullscreen image viewer activity when the imageview receives a longclick. The code and the imageview's xml declaration are below. If the image is pressed and held, the image viewer activity is started as I expect, and if the image is clicked briefly it does nothing, al...
android
0
2015-02-20T00:49:40.137Z
2,015
2
0
4
170
0
504
60
1
1
true
true
false
false
false
false
zero
28,619,956
MediaPlayer with Internal Files
<p>I'm trying to select an audio file from internal storage, which I then create a media player from.</p> <pre><code>public void openPressed(View view) { Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Audio.Media.INTERNAL_CONTENT_URI); startActivityForResult(intent, 1); } @Override protected void o...
I'm trying to select an audio file from internal storage, which I then create a media player from. [CODE] All of this is in my main activity, but after selecting a file, the app crashes. [CODE]
java|android
0
2015-02-20T01:00:24.147Z
2,015
2
1
4
1,229
1
193
31
2
2
true
false
false
false
false
false
zero
28,620,023
How to send and recover data from a SQL database in Android
<p>I'm developing an app that gets the location of one cellphone, sends the coordinates to a database and a second cellphone can access that location and display it in a map along with its own location, I already have the code for the first cellphone but I don't know how to send the coordinates to a SQL database and th...
I'm developing an app that gets the location of one cellphone, sends the coordinates to a database and a second cellphone can access that location and display it in a map along with its own location, I already have the code for the first cellphone but I don't know how to send the coordinates to a SQL database and then ...
android|sql|database|gps|location
0
2015-02-20T01:07:23.063Z
2,015
2
1
4
164
2
449
59
5
0
false
false
false
false
false
false
zero
28,620,026
Implement DialogFragment interface in OnClickListener
<p>I need to build a DialogFragment which returns user input from the dialog to an activity. The dialog needs to be called in an OnClickListener which gets called when an element in a listview gets clicked.<br> The return value of the DialogFragment (the input of the user) should be directly available in the OnClickLis...
I need to build a DialogFragment which returns user input from the dialog to an activity. The dialog needs to be called in an OnClickListener which gets called when an element in a listview gets clicked. The return value of the DialogFragment (the input of the user) should be directly available in the OnClickListener i...
java|android|android-listview|onclicklistener|android-dialogfragment
3
2015-02-20T01:07:33.437Z
2,015
2
1
4
15,931
5
849
53
5
2
true
false
true
true
false
false
low
28,620,090
How to make this animation on Android?
<p><a href="http://1.bp.blogspot.com/-Vv4SxVSI2DY/VEqQxAf3PWI/AAAAAAAAA7c/mfq7XBrIGgo/s1600/activity_transitions%2B(1).gif" rel="nofollow">http://1.bp.blogspot.com/-Vv4SxVSI2DY/VEqQxAf3PWI/AAAAAAAAA7c/mfq7XBrIGgo/s1600/activity_transitions%2B(1).gif</a></p> <p>I was reading about Material Design and I fall in love wit...
http://1.bp.blogspot.com/-Vv4SxVSI2DY/VEqQxAf3PWI/AAAAAAAAA7c/mfq7XBrIGgo/s1600/activity_transitions%2B(1).gif I was reading about Material Design and I fall in love with this transition. Its named "Activity + Fragment Transitions" on the post. Has anyone a tutorial or a name so I can search more precise?
android|material-design
2
2015-02-20T01:14:14.327Z
2,015
2
1
4
69
1
306
38
2
0
false
false
false
false
false
false
low
28,620,131
Trouble getting video to play on Recyclerview
<p>I have a VideoView inside a RecyclerView. I want to eventually have a list of videos to play on a Recyclerview. I decided to start out with one video, then move on to having multiple videos. I can't seem to get one video to play in the Recyclerview. When I start the app on my phone, all I get is the progress bar. Th...
I have a VideoView inside a RecyclerView. I want to eventually have a list of videos to play on a Recyclerview. I decided to start out with one video, then move on to having multiple videos. I can't seem to get one video to play in the Recyclerview. When I start the app on my phone, all I get is the progress bar. The o...
java|android|mobile|android-videoview|android-recyclerview
6
2015-02-20T01:18:28.660Z
2,015
2
1
4
4,005
2
553
45
5
4
true
false
true
false
false
false
medium
28,620,138
How to open a new activity to show results from a SearchView?
<p>I've been working in an application that uses a <code>SearchView</code> Widget as an <code>ActionView</code> in the <code>ActionBar</code>.</p> <p>The problem occurs when I type a search and hit the search button, it opens the same activity, what I want to do is to open a new Activity and show the results on a List...
I've been working in an application that uses a SearchView Widget as an ActionView in the ActionBar . The problem occurs when I type a search and hit the search button, it opens the same activity, what I want to do is to open a new Activity and show the results on a ListView, how can this be fixed? This is my AndroidMa...
android|searchview
1
2015-02-20T01:19:43.920Z
2,015
2
1
4
4,014
3
343
61
2
1
true
false
true
false
false
false
low
28,620,158
How to properly have camera preview in viewpager tab for Android?
<p>I am using a viewpager with tab navigation for an Android project. One of my tabs has a surfaceview with a camera preview. The problem is that whenever I navigate to a neighboring tab, the preview in the camera tab starts even though the camera tab is not visible. Not only does this slow my app down, but if I the...
I am using a viewpager with tab navigation for an Android project. One of my tabs has a surfaceview with a camera preview. The problem is that whenever I navigate to a neighboring tab, the preview in the camera tab starts even though the camera tab is not visible. Not only does this slow my app down, but if I then navi...
android|android-camera|surfaceview
2
2015-02-20T01:22:23.060Z
2,015
2
1
4
1,117
0
602
65
3
0
false
true
false
false
false
false
low
28,620,246
Android PageViewer - Hiding Status Bar for Specific Fragments
<p>This is my first time posting here, so I'll try to be as specific as possible. </p> <h2>Background</h2> <p>I'm currently building an android app and I've come across a problem with hiding the Status Bar. Let me set this up. I'm using a <code>ViewPager</code> to allow the user to swipe between two full-screen pages...
This is my first time posting here, so I'll try to be as specific as possible. Background I'm currently building an android app and I've come across a problem with hiding the Status Bar. Let me set this up. I'm using a ViewPager to allow the user to swipe between two full-screen pages. In each page is a unique Fragment...
android|android-fragments|android-viewpager|statusbar
0
2015-02-20T01:32:05.123Z
2,015
2
1
4
892
0
1,346
61
4
3
true
true
false
false
false
false
zero
28,620,306
Alert dialog not working correctly - android
<p>I am using an alert dialog to ask the user for confirmation of an item addition to an array. I am printing the array size before and after the alert dialog and it seems that both printings are done before the alert dialog shows up. </p> <pre><code>Log.d("before", ""+wayPoints.length); AlertDialog.Builder ab = new ...
I am using an alert dialog to ask the user for confirmation of an item addition to an array. I am printing the array size before and after the alert dialog and it seems that both printings are done before the alert dialog shows up. [CODE] The ArrayHandler.addAtIndex method handles the addition of a new item to the prov...
java|android|button|alert
-2
2015-02-20T01:37:45.170Z
2,015
2
1
4
799
3
488
44
4
1
true
false
false
false
false
true
negative
28,620,331
Google Analytics Avg. Session duration is 00:00:00
<p>I was finished my first app in which I was integrated Google Analytics v3 (easy to integrate for beginners, I think).</p> <p>But there is a problem. All my stats about session duration is 00:00:01 or 00:00:00...but I using app sure for about 3 minutes. </p> <p>I have ActivityStart(this); in onCreate and ActivitySt...
I was finished my first app in which I was integrated Google Analytics v3 (easy to integrate for beginners, I think). But there is a problem. All my stats about session duration is 00:00:01 or 00:00:00...but I using app sure for about 3 minutes. I have ActivityStart(this); in onCreate and ActivityStop(this); in onDestr...
java|android|android-activity|google-analytics|analytics
2
2015-02-20T01:41:02.687Z
2,015
2
1
4
534
1
576
50
5
0
false
false
false
false
false
false
low
28,620,370
EOFException handling gzip response with Retrofit + OkHttp
<p>I'm trying to process a gzipped response from my web services but I'm always getting <strong><em>EOFException: source exhausted prematurely</em></strong>. </p> <p>These are the versions of my libraries:</p> <pre><code>retrofit: 1.9.0 okhttp: 2.2.0 okhttp-urlconnection: 2.2.0 gson: 2.3.1 </code></pre> <p>Below my ...
I'm trying to process a gzipped response from my web services but I'm always getting EOFException: source exhausted prematurely . These are the versions of my libraries: [CODE] Below my code and outputs: [CODE] Request registered by Charles (debugging proxy) [CODE] Response registered by Charles [CODE] Retrofit log out...
android|rest|retrofit|okhttp
2
2015-02-20T01:45:34.820Z
2,015
2
1
4
2,009
2
369
58
4
5
true
false
false
false
false
false
low
28,620,382
Android navigation drawer troubles
<p>I have attempted to create a navigation drawer by following this <a href="https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer" rel="nofollow">tutorial</a>. When I build and ran, It just crashed.<br> Here is my logcat:</p> <pre><code>at com.infintro.keondrae.everythingminecraft.FragmentNavigat...
I have attempted to create a navigation drawer by following this tutorial . When I build and ran, It just crashed. Here is my logcat: [CODE] From the logcat I got that there is a error on line 22 of the MainActivity and line 63 of the FragmentNavigationDrawer. Line 22 of the MainActivity is the onCreate for the layouts...
java|android|android-fragments|navigation-drawer
0
2015-02-20T01:47:29.607Z
2,015
2
1
4
176
0
538
34
4
5
true
true
false
false
false
false
zero
28,620,398
Gradle + Netbeans
<p>I'm trying to open an android project using NetBeans portable (8.0), but I keep getting this error message "Failed to load gradle project". I have gradle plugin installed and I'm on win7. This is my stacktrace: </p> <pre><code> Issue 1 -------- Requested project: C:\Users\nlstudent\Desktop\giraff-android-master...
I'm trying to open an android project using NetBeans portable (8.0), but I keep getting this error message "Failed to load gradle project". I have gradle plugin installed and I'm on win7. This is my stacktrace: [CODE]
java|android|netbeans
3
2015-02-20T01:49:21.750Z
2,015
2
1
4
1,658
1
217
17
3
1
true
false
false
false
false
false
low
28,620,402
How do I install android libraries with Android Studio?
<p>I'm new to Android app development, and I want to install <a href="https://github.com/klinker41/android-smsmms" rel="nofollow">this library</a> with my app.</p> <p>I'm using Android Studio, but I can't find the right option to let me install the library.</p> <p>What do I do?</p>
I'm new to Android app development, and I want to install this library with my app. I'm using Android Studio, but I can't find the right option to let me install the library. What do I do?
java|android
0
2015-02-20T01:49:41.880Z
2,015
2
1
4
82
2
188
55
2
0
false
false
false
false
false
false
zero
28,620,412
AttachCurrentThread crash in multi threads JNI after moving to Android L release
<p>I have implemented a service which is invoked by system server during the boot-up.</p> <p>My service has JNI implementation which creates another thread. The reason for having another thread is to have the capability of canceling operation while monitoring the call back.</p> <p>This mechanism worked well in Androi...
I have implemented a service which is invoked by system server during the boot-up. My service has JNI implementation which creates another thread. The reason for having another thread is to have the capability of canceling operation while monitoring the call back. This mechanism worked well in Android Kitkat release bu...
android|multithreading|service|android-ndk|java-native-interface
0
2015-02-20T01:50:54.160Z
2,015
2
1
4
1,634
1
1,449
80
5
0
false
false
false
false
false
false
zero
28,620,688
Why is my bundle of data not being sent to my other activity?
<p>I am trying to pass some data from one activity to the second activity once the user clicks on the "Place your order button". I want the data to show up on the second activity but is is giving me either null or zero values. Only explanation is that the data being passed through the bundle is not being set, or is not...
I am trying to pass some data from one activity to the second activity once the user clicks on the "Place your order button". I want the data to show up on the second activity but is is giving me either null or zero values. Only explanation is that the data being passed through the bundle is not being set, or is not be...
java|android|android-intent|android-activity|bundle
0
2015-02-20T02:25:47.287Z
2,015
2
2
4
78
2
625
61
5
3
true
false
false
false
false
false
zero
28,620,727
android SDK drawing on a picture and then saving the file as a image
<p>Hello I am trying to implement code in my android app that gets a <code>2D</code> drawing from a user and then saves it as a image file. there will be a background in this. I also want it to work aside other things in my code(e.g. number picker). most examples I have seen have the entire screen dedicated to it I jus...
Hello I am trying to implement code in my android app that gets a 2D drawing from a user and then saves it as a image file. there will be a background in this. I also want it to work aside other things in my code(e.g. number picker). most examples I have seen have the entire screen dedicated to it I just want a portion...
android
1
2015-02-20T02:30:34.807Z
2,015
2
2
4
33
0
543
68
1
0
false
true
false
false
false
false
low
28,620,733
Loading from web & cropping image
<p>Trying to load a image from a website and crop the center of that particular image into a circle. I currently am trying to us the below code. There are two things wrong with the code... One is I cannot use net functions in my main method. And two I am cropping it correctly? </p> <pre><code>private Drawable getAvata...
Trying to load a image from a website and crop the center of that particular image into a circle. I currently am trying to us the below code. There are two things wrong with the code... One is I cannot use net functions in my main method. And two I am cropping it correctly? [CODE] I think my options are to either make ...
java|android|bitmap
0
2015-02-20T02:31:04.770Z
2,015
2
2
4
145
1
523
33
3
1
true
false
false
false
false
false
zero
28,620,765
Android- Pixel color matcing estimate
<p>I'm making an Android app in which a color is shown on the screen, and within 30 secs, player has to take a picture of something that includes the shown color before the time runs out. Points (up to 1000 per round!) are awarded based on how close the match is</p> <p>I just want to know how to measure the closeness ...
I'm making an Android app in which a color is shown on the screen, and within 30 secs, player has to take a picture of something that includes the shown color before the time runs out. Points (up to 1000 per round!) are awarded based on how close the match is I just want to know how to measure the closeness in color be...
android
0
2015-02-20T02:34:22.703Z
2,015
2
2
4
18
1
511
37
1
0
false
false
false
false
false
false
zero
28,620,790
Converting specialized NV12 video frames to RGB
<p>I have an H264 stream that's decoded using an Android MediaCodec. When I query the output MediaFormat, the color format is 2141391875. Apparently, that's a specialized NV12 variant known as HAL_PIXEL_FORMAT_NV12_ADRENO_TILED. This is on a Nexus 7 (2013).</p> <p>I want to take this data and convert it to RGB so I ca...
I have an H264 stream that's decoded using an Android MediaCodec. When I query the output MediaFormat, the color format is 2141391875. Apparently, that's a specialized NV12 variant known as HAL_PIXEL_FORMAT_NV12_ADRENO_TILED. This is on a Nexus 7 (2013). I want to take this data and convert it to RGB so I can create a ...
android|bitmap|rgb|android-mediacodec
3
2015-02-20T02:37:14.020Z
2,015
2
2
4
1,702
1
676
47
4
0
false
false
false
false
false
false
low
28,620,806
How do I change the rate or period of a repeating task using ScheduledExecutorService?
<p>I have a modified version of the bluetooth chat sample app. I have set up a <code>ScheduledExecutorService</code> which sends a command over bluetooth at a predefined rate using <code>scheduleAtFixedRate</code>.</p> <p>I have set up a <code>PreferenceActivity</code> to allow the period to be modified by the user. ...
I have a modified version of the bluetooth chat sample app. I have set up a ScheduledExecutorService which sends a command over bluetooth at a predefined rate using scheduleAtFixedRate . I have set up a PreferenceActivity to allow the period to be modified by the user. But I'm unsure how to get the actual recurring tas...
java|android|runnable|recurring|scheduledexecutorservice
12
2015-02-20T02:38:43.677Z
2,015
2
2
4
11,950
1
616
86
5
2
true
false
true
true
true
false
medium
28,620,855
How to access a file from network in Android?
<p>How do you access a plain text file on a home network (the file is kept on a Windows 7 computer). I have found several solutions on Stackoverflow for appending a string to a text file. But what I really want to do is append string to the file in the network.</p> <p>Thanks!</p>
How do you access a plain text file on a home network (the file is kept on a Windows 7 computer). I have found several solutions on Stackoverflow for appending a string to a text file. But what I really want to do is append string to the file in the network. Thanks!
android|text-files
0
2015-02-20T02:45:25.377Z
2,015
2
2
4
83
1
266
45
2
0
false
false
false
false
false
false
zero
28,620,862
Get a Signed Request from Facebook Android SDK
<p>I'm trying to get a signed request from Facebook's Android SDK in order to securely pass it to the server side, but so far I could not find a way to do that.</p> <p>I've found a similar question for iOS (<a href="https://stackoverflow.com/questions/7874091/facebook-ios-sdk-to-return-a-signed-request-object-upon-log...
I'm trying to get a signed request from Facebook's Android SDK in order to securely pass it to the server side, but so far I could not find a way to do that. I've found a similar question for iOS ( Facebook iOS SDK to return a signed request object upon login ) but with no (useful) answer there. Does anyone have any id...
android|facebook|encryption|sdk
1
2015-02-20T02:46:31.197Z
2,015
2
2
4
596
0
442
46
4
0
false
true
false
false
false
false
low
28,620,883
How to change Toolbar home icon color
<p>I am using a android.support.v7.widget.Toolbar and learned from <a href="https://stackoverflow.com/a/27152138/335640">this post</a> how to change the color of the hamburger icon to white, but the up/back arrow remains a dark color when I call</p> <pre><code>setDisplayHomeAsUpEnabled(true); </code></pre> <p>How can...
I am using a android.support.v7.widget.Toolbar and learned from this post how to change the color of the hamburger icon to white, but the up/back arrow remains a dark color when I call [CODE] How can I make the arrow white as well? Here is what my toolbar looks like when I call setDisplayHomeAsUpEnabled(): ...and here ...
android|icons|toolbar|android-support-library
118
2015-02-20T02:49:05.797Z
2,015
2
2
4
158,009
14
373
37
4
2
true
false
true
true
true
false
high
28,620,987
Android HashMap Extract Different Objects
<p>I have a method (below) that accepts a HashMap to insert into a database. The objects in the HashMap are a mixture of Strings, ints and doubles. I don't really care if they all go in the database as Strings because the work is finished with them. </p> <p>The following code just doesn't work. I get a NullPointerE...
I have a method (below) that accepts a HashMap to insert into a database. The objects in the HashMap are a mixture of Strings, ints and doubles. I don't really care if they all go in the database as Strings because the work is finished with them. The following code just doesn't work. I get a NullPointerException as soo...
java|android|object|hashmap
0
2015-02-20T03:02:36.940Z
2,015
2
3
4
167
2
879
41
4
2
true
false
false
false
false
false
zero
28,621,012
Is it possible to make two buttons with same id in one layout?
<p>Is it possible to make two buttons with same id in one layout?</p> <p>I tried to do through the tag <code>&lt;include&gt;</code>, but does not work for the listener one of the buttons</p>
Is it possible to make two buttons with same id in one layout? I tried to do through the tag <include> , but does not work for the listener one of the buttons
android|android-layout|android-button
3
2015-02-20T03:06:06.640Z
2,015
2
3
4
2,386
3
158
62
3
0
false
false
false
false
false
false
low
28,621,045
How do I add a button to a fragment?
<p>How can I add a button to my fragment that makes the main activity switch to a different fragment when you touch it. I looked online for tutorials but they were unclear. Thank you for any help!</p>
How can I add a button to my fragment that makes the main activity switch to a different fragment when you touch it. I looked online for tutorials but they were unclear. Thank you for any help!
android|button|android-fragments
0
2015-02-20T03:10:20.830Z
2,015
2
3
4
201
2
193
36
3
0
false
false
false
false
false
false
zero
28,621,047
Using Tabbed Activity, how do I add new fragments?
<p>I used the built-in Tabbed Activity. I'm trying to add another fragment but it doesn't seem to be working correctly. When I run it, it switches fragments but then it crashes. I don't really know what the issue is since I'm pretty new to Android Development.</p> <pre><code>import android.os.Bundle; import android.su...
I used the built-in Tabbed Activity. I'm trying to add another fragment but it doesn't seem to be working correctly. When I run it, it switches fragments but then it crashes. I don't really know what the issue is since I'm pretty new to Android Development. [CODE]
android|android-fragments|android-studio
0
2015-02-20T03:10:37.140Z
2,015
2
3
4
1,994
1
264
50
3
1
true
false
false
false
false
false
zero
28,621,067
Array of Parcelable objects that each contains a few strings and ArrayList of parcelable objects
<p>Hey guys im having alot of troubles getting the following code to work. I am trying to setup an array of parcelable objects named <code>Topic</code> which each contain 3 strings and an ArrayList of <code>Issue</code> objects that are created by parsing an XML file.</p> <p>The issue is that when im sending a specifi...
Hey guys im having alot of troubles getting the following code to work. I am trying to setup an array of parcelable objects named Topic which each contain 3 strings and an ArrayList of Issue objects that are created by parsing an XML file. The issue is that when im sending a specific Topic object via the following inte...
android|arraylist|parcelable
0
2015-02-20T03:12:38.510Z
2,015
2
3
4
252
1
891
96
3
6
true
false
false
false
false
false
zero
28,621,100
Text width in a textview android
<p>I am new to Android.. I have a textview with size 250dp.. I am trying to calculate the text width inside it.. But I could not find any API that returns the actual content width.. Can someone help how it can be done. Thanks in advance. </p>
I am new to Android.. I have a textview with size 250dp.. I am trying to calculate the text width inside it.. But I could not find any API that returns the actual content width.. Can someone help how it can be done. Thanks in advance.
android|android-layout|android-edittext|textview
1
2015-02-20T03:16:21.900Z
2,015
2
3
4
3,409
3
234
32
4
0
false
false
true
false
false
false
low
28,621,372
findViewById is not working
<p>I have a TextView in my app and I want to change its textSize programmatically using the setTextSize method, but everytime I ran my code, I got an error message : "java.lang.NullPointerException". I tried to print the value of the TextView and it got NULL value. </p> <p>Here's my code:</p> <p>LoadActivity.java</p>...
I have a TextView in my app and I want to change its textSize programmatically using the setTextSize method, but everytime I ran my code, I got an error message : "java.lang.NullPointerException". I tried to print the value of the TextView and it got NULL value. Here's my code: LoadActivity.java [CODE] activity_load.xm...
android
-4
2015-02-20T03:56:39.790Z
2,015
2
3
4
1,318
3
362
27
1
2
true
false
false
false
false
true
negative
28,621,435
Updating DB from onLoadFinished calls onLoadFinished again and again
<p>I have a situation in which I need to insert a row at a date and update all the entries after a particular date in an activity.</p> <p>For this, I thought I'll load the entries after the date with a <code>LoaderManager</code> Callback and use a <code>ContentProviderOperation</code> array to update all of it in batc...
I have a situation in which I need to insert a row at a date and update all the entries after a particular date in an activity. For this, I thought I'll load the entries after the date with a LoaderManager Callback and use a ContentProviderOperation array to update all of it in batch from the onLoadFinished() method. T...
android|cursor|android-contentprovider|loader|android-cursorloader
1
2015-02-20T04:04:03.287Z
2,015
2
4
4
405
4
694
68
5
1
true
false
false
false
false
false
low
28,621,455
Setting the resource of an ImageView using a CursorLoader
<p>Sorry for such an open-ended question, but I'm new to Android and I genuinely looked all over for an answer and couldn't find anything. I'm wanting to store some sort of information that references an image in a SQLite table, and then use a SimpleCursorAdapter to move that data to an ImageView. I thought that, if I ...
Sorry for such an open-ended question, but I'm new to Android and I genuinely looked all over for an answer and couldn't find anything. I'm wanting to store some sort of information that references an image in a SQLite table, and then use a SimpleCursorAdapter to move that data to an ImageView. I thought that, if I sto...
android|android-sqlite|simplecursoradapter
0
2015-02-20T04:06:31.947Z
2,015
2
4
4
59
1
1,055
57
3
2
true
false
false
false
false
false
zero
28,621,479
How to handle retrive a data from two bundle in single form
<p>Hello everyone if you would kindly help me. I'm stuck on how to retrieve the bundle data from another activity. Basically I have two activities which is that when I pressed a button on the first activity, it will go on the second activity and then sets the string values which is later on to be passed on the first ac...
Hello everyone if you would kindly help me. I'm stuck on how to retrieve the bundle data from another activity. Basically I have two activities which is that when I pressed a button on the first activity, it will go on the second activity and then sets the string values which is later on to be passed on the first activ...
java|android
-2
2015-02-20T04:08:31.287Z
2,015
2
4
4
75
2
593
59
2
0
false
false
false
false
false
true
negative
28,621,580
Position ImageViews with an offset programmatically
<p>I have to create a stack of images programmatically (because they have to be dynamic).</p> <p>I want to stack <code>ImageView</code>s like this: <img src="https://i.stack.imgur.com/PtXYm.png" alt="stack of images"></p> <p>I've tried this, but the images all land up on top of each other:</p> <pre><code>for(int i=0...
I have to create a stack of images programmatically (because they have to be dynamic). I want to stack ImageView s like this: I've tried this, but the images all land up on top of each other: [CODE] I've even removed the android:gravity="center" from my xml layout file. I've also tried to add the layout params on the I...
android|android-relativelayout
0
2015-02-20T04:21:06.473Z
2,015
2
4
4
1,167
1
1,018
51
2
2
true
false
false
false
false
false
zero
28,621,699
when button is clicked many times, application becomes un-responsive
<p>I'm working on a android application in which one button is there which is used for fetching data from server and show into <code>TextView</code>, but the problem is, <strong>if a user is clicking many times on a same button the application becomes un-responsive</strong> in Android.</p>
I'm working on a android application in which one button is there which is used for fetching data from server and show into TextView , but the problem is, if a user is clicking many times on a same button the application becomes un-responsive in Android.
java|android|jakarta-ee|android-button|android-networking
0
2015-02-20T04:35:51.050Z
2,015
2
4
4
121
3
254
68
5
0
false
false
false
false
false
false
zero
28,621,755
How to fix Profile image like instagram in android
<p>I am developing an application which is required fixed profile image like instagram.. is it possible? if anyone have idea plz help... </p>
I am developing an application which is required fixed profile image like instagram.. is it possible? if anyone have idea plz help...
android|imageview
-1
2015-02-20T04:41:24.397Z
2,015
2
4
4
1,212
4
133
50
2
0
false
false
false
false
false
true
negative
28,621,791
Late initialisation of RegionBootstrap
<p>In the reference application, RegionBootstrap is initialised in a <strong>custom application class</strong> on it's <strong>onCreate method</strong> and of course, the application class is called before any activity is called. </p> <p>Is there a way to initialise RegionBootstrap inside an activity? I already tried ...
In the reference application, RegionBootstrap is initialised in a custom application class on it's onCreate method and of course, the application class is called before any activity is called. Is there a way to initialise RegionBootstrap inside an activity? I already tried making a static variable of RegionBootstrap so...
android|altbeacon|android-ibeacon
0
2015-02-20T04:45:24.080Z
2,015
2
4
4
740
1
651
38
3
4
true
false
false
false
false
false
zero
28,621,821
Rails - Google Cloud Messaging server side with Rails
<p>I am building a sample android app with notifications and live chatting, i am trying to use GCM so that the server (Ruby on Rails) can talk to the clients (Android).</p> <p>For the Android part, I'm following this <a href="http://hmkcode.com/android-google-cloud-messaging-tutorial/" rel="nofollow">tutorial</a>, but...
I am building a sample android app with notifications and live chatting, i am trying to use GCM so that the server (Ruby on Rails) can talk to the clients (Android). For the Android part, I'm following this tutorial , but for Rails, I found many gems like rpush , pushmeup and more, but I am new to Rails so I couldn't f...
android|ruby-on-rails|ruby|push-notification|google-cloud-messaging
0
2015-02-20T04:49:25.180Z
2,015
2
4
4
159
0
477
53
5
0
false
true
false
false
false
false
zero
28,621,822
Android Wearable Passing DataMap in AsyncTask
<p>I am developing an app where communication needs to occur constantly between a wearable running Android Wear and the phone. The basic progression of events involving communication between the two are as follows:</p> <ol> <li>Phone sends wearable a piece of data in a DataMap and waits for a DataLayerListener event.<...
I am developing an app where communication needs to occur constantly between a wearable running Android Wear and the phone. The basic progression of events involving communication between the two are as follows: Phone sends wearable a piece of data in a DataMap and waits for a DataLayerListener event. Wearable waits to...
android|android-asynctask|wear-os
0
2015-02-20T04:49:33.927Z
2,015
2
4
4
297
1
831
45
3
0
false
false
false
false
false
false
zero