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,657,345
Rest API Android Application
<p>I am creating an Android Application that will need to use HTTP to get data from a Web API. It will most likely be JSON that it retrieves, processes, and then updates TextViews in my application. I am running a MVC Web API application (localhost) with a SQL Server Database. I want to retrieve the data and output to ...
I am creating an Android Application that will need to use HTTP to get data from a Web API. It will most likely be JSON that it retrieves, processes, and then updates TextViews in my application. I am running a MVC Web API application (localhost) with a SQL Server Database. I want to retrieve the data and output to Tex...
android|json|api|http|model-view-controller
2
2015-02-22T11:35:30.220Z
2,015
2
11
6
548
2
658
28
5
3
true
false
false
false
false
false
low
28,657,348
how to make a ios dial pad interface in android
<p>i want to make a dial pad just like IOS 7 in android with circle button. Any one can help me to make a circle button dial pad interface with different mobile screen supported in android.</p>
i want to make a dial pad just like IOS 7 in android with circle button. Any one can help me to make a circle button dial pad interface with different mobile screen supported in android.
android|android-layout|android-xml|android-button
0
2015-02-22T11:35:50.333Z
2,015
2
11
6
1,221
1
186
47
4
0
false
false
false
false
false
false
zero
28,657,366
Eclipse Won't Start - JVM incompatibility
<p>I'm trying to open my Eclipse - and nothing happens, no window is opening. this is the warnings I got in D:\Eclipse\adt-bundle-windows-x86_64-20140702\eclipse\configuration\1424604493775.log</p> <p>I understand that my JVM is incompatible with my version - but how do i fix it? Thank you!</p> <pre><code>!SESSION 20...
I'm trying to open my Eclipse - and nothing happens, no window is opening. this is the warnings I got in D:\Eclipse\adt-bundle-windows-x86_64-20140702\eclipse\configuration\1424604493775.log I understand that my JVM is incompatible with my version - but how do i fix it? Thank you! [CODE]
java|android|eclipse
0
2015-02-22T11:38:21.750Z
2,015
2
11
6
563
3
288
41
3
1
true
false
false
false
false
false
zero
28,657,456
Unable to understand meaning of 'Partially visible'
<p>I am trying to understand android activity life cycle.</p> <p>Official documentation states:</p> <p>Pause Your Activity:</p> <p>When the system calls onPause() for your activity, it technically means your activity is still partially visible.</p> <p>I created an activity and then moved to another activity using i...
I am trying to understand android activity life cycle. Official documentation states: Pause Your Activity: When the system calls onPause() for your activity, it technically means your activity is still partially visible. I created an activity and then moved to another activity using intent.During debugging I see that f...
android|android-activity|android-lifecycle
6
2015-02-22T11:50:45.413Z
2,015
2
11
6
1,588
1
572
51
3
0
false
false
false
false
false
false
medium
28,657,500
Best way to make swipe tabs
<p>I've just decided to add swipe views on my android application. I searched for them on the web for tutorials but I found nothing but deprecated actionBar tutorials. Event in official <a href="http://developer.android.com/training/implementing-navigation/lateral.html" rel="nofollow">Creating Swipe View</a> from andro...
I've just decided to add swipe views on my android application. I searched for them on the web for tutorials but I found nothing but deprecated actionBar tutorials. Event in official Creating Swipe View from android developer is showing me that this is deprecated method for this purpose. So tell me guys - what's the be...
android|layout
0
2015-02-22T11:56:30.573Z
2,015
2
11
6
867
3
352
27
2
0
false
false
false
false
false
false
zero
28,657,509
cordova receiving GCM registrationId = null
<p>I am trying to get a RegistrationID from the GCM service. All i can see in Logcat is an empty string: "registrationId = null". Does the Project name of the Google API have to match the apps name? The documentation says: </p> <blockquote> <p>For example, an Android app is identified by the package name from the ma...
I am trying to get a RegistrationID from the GCM service. All i can see in Logcat is an empty string: "registrationId = null". Does the Project name of the Google API have to match the apps name? The documentation says: For example, an Android app is identified by the package name from the manifest. This ensures that t...
android|cordova|push-notification|google-cloud-messaging|cordova-plugins
0
2015-02-22T11:57:07.497Z
2,015
2
11
6
670
1
501
43
5
1
true
false
false
false
false
false
zero
28,657,532
deactivateApp(MainActivity) is undefined for the type AppEventsLogger
<p>I am using Facebook SDK to create a simple Facebook log in application. I created a new app and added Facebook SDK in library. According to instruction given by Facebook i have added this code : </p> <pre><code>@Override protected void onResume() { super.onResume(); AppEventsLogger.activateApp(t...
I am using Facebook SDK to create a simple Facebook log in application. I created a new app and added Facebook SDK in library. According to instruction given by Facebook i have added this code : [CODE] but along with this i need to add deactivation code as well, so i added this code : [CODE] Here 'AppEventsLogger.deact...
android|facebook
2
2015-02-22T11:59:19.117Z
2,015
2
11
6
576
1
457
69
2
2
true
false
false
false
false
false
low
28,657,562
Adding Icon to ListView with out a CustomListview
<p>This has been boggling me for a while , i searched all over stackoverflow but couldn't find a similar sitiuation as mine , so what i am working on is a filemanager in android and this is my activity </p> <pre><code>package com.example.androidexplorer; import java.io.File; import java.util.ArrayList; import java.ut...
This has been boggling me for a while , i searched all over stackoverflow but couldn't find a similar sitiuation as mine , so what i am working on is a filemanager in android and this is my activity [CODE] after this here is my activity_main.xml [CODE] in layman terms , for example i have folder in my sdcard and when i...
java|android|listview|file-manager
1
2015-02-22T12:02:29Z
-1
-1
-1
-1
70
0
408
49
4
2
true
true
false
false
false
false
low
28,657,589
Rotate ImageView when user scroll (ViewPager)
<p>I have ViewPager with 2 Fragments in my android application. The second Fragment(Page) has ImageView. Is it possible to twist(rotate) ImageView as in picture below when user scroll pages from one to another!</p> <p>Thanks for any help<img src="https://i.stack.imgur.com/0KvSH.jpg" alt="enter image description here">...
I have ViewPager with 2 Fragments in my android application. The second Fragment(Page) has ImageView. Is it possible to twist(rotate) ImageView as in picture below when user scroll pages from one to another! Thanks for any help .
android|android-activity|android-fragments|android-viewpager|android-animation
0
2015-02-22T12:05:56.477Z
2,015
2
12
6
1,280
1
229
45
5
0
false
false
false
false
false
false
zero
28,657,651
Animating a pie chart in android
<p>I want to make a circle in a color, say red. And overtime that red makes way for another color, say blue. Unfortunately, I'm no native English speaker, so I don't really know how to explain it :) I do have created a rough mockup though. (<a href="https://imgur.com/a/vPJU9#0" rel="nofollow noreferrer">imgur.com</a>)....
I want to make a circle in a color, say red. And overtime that red makes way for another color, say blue. Unfortunately, I'm no native English speaker, so I don't really know how to explain it :) I do have created a rough mockup though. ( imgur.com ). I have seen an answer here on SO on creating a pie chart ( stackover...
java|android|android-animation|pie-chart
0
2015-02-22T12:12:26.883Z
2,015
2
12
6
497
1
520
32
4
0
false
false
false
false
false
false
zero
28,657,655
four buttons from one button,depending on click location
<p>Screen shot: <img src="https://i.stack.imgur.com/GoZHc.jpg" alt="enter image description here"></p> <p>I'm turning this Nokia phone into an android app(when you open the app the app shows the phone and you can do whatever you want with the phone,move around,send messages, etc...)</p> <p>I cut each button with Phot...
Screen shot: I'm turning this Nokia phone into an android app(when you open the app the app shows the phone and you can do whatever you want with the phone,move around,send messages, etc...) I cut each button with Photoshop and then placed them in the layout and ended up with this: [CODE] The problem I'm having is with...
java|android|xml
0
2015-02-22T12:12:59.617Z
2,015
2
12
6
46
0
661
56
3
1
true
true
false
false
false
false
zero
28,657,705
How to hide action items on Toolbar
<p>I have replaced the Actionbar with Toolbar. My minSDK-17 and TargetSDK-21. So here is the issue. I have 2 activities and 4 action items.</p> <ul> <li>A</li> <li>B</li> <li>C</li> <li>D</li> </ul> <p>All the 4 action items are maintained in toolbar_actions.xml</p> <p>Currently all the 4 action items are displayed ...
I have replaced the Actionbar with Toolbar. My minSDK-17 and TargetSDK-21. So here is the issue. I have 2 activities and 4 action items. A B C D All the 4 action items are maintained in toolbar_actions.xml Currently all the 4 action items are displayed in both the activities. However, I would like to display only the a...
android-layout|android-activity|android-fragments
1
2015-02-22T12:18:26.353Z
2,015
2
12
6
882
2
975
35
3
0
false
false
false
false
false
false
low
28,657,722
How to pause an Android Media Player during a setNextMediaPlayer-Loop?
<p>I am using this Media-Player-Looping concept: <a href="https://stackoverflow.com/a/26725942/4565322">loop-concept</a> I dont know how to pause this loop. When i am using setNextMediaPlayer(null) it will pause after finishing the current audio-file. But that is too late. Has anybody a hint for me?</p> <p><strong>Edi...
I am using this Media-Player-Looping concept: loop-concept I dont know how to pause this loop. When i am using setNextMediaPlayer(null) it will pause after finishing the current audio-file. But that is too late. Has anybody a hint for me? Edit: Here is my code: [CODE]
android|loops|android-mediaplayer
0
2015-02-22T12:20:15.863Z
2,015
2
12
6
863
1
268
70
3
1
true
false
false
false
false
false
zero
28,657,723
Making immersive mode working with softkeyboard
<p>I use immersive mode to hide navigation bar it works well But If the keyboard is shown the navigation bar appears with keyboard! There is anyway to handle this issue public void hideSystemUI() { final View dm = getWindow().getDecorView();</p> <pre><code> dm.setOnSystemUiVisibilityChangeListener(n...
I use immersive mode to hide navigation bar it works well But If the keyboard is shown the navigation bar appears with keyboard! There is anyway to handle this issue public void hideSystemUI() { final View dm = getWindow().getDecorView(); [CODE]
android|keyboard
3
2015-02-22T12:20:15.910Z
2,015
2
12
6
883
0
245
47
2
1
true
true
false
false
false
false
low
28,657,812
How to change tab indicator color in android
<p>I want to change tab indicator color in android. Default color for tab host in android app is blue. I want to change to some other color. Please help me.</p> <p>My code is as follows:</p> <p>`</p> <pre><code>&lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" androi...
I want to change tab indicator color in android. Default color for tab host in android app is blue. I want to change to some other color. Please help me. My code is as follows: ` [CODE] ` My java code is as follows: ` public class TabHostActivity extends TabActivity { /** Called when the activity is first created. */ [...
android|android-tabhost|indicator
1
2015-02-22T12:30:04.643Z
2,015
2
12
6
5,342
4
425
44
3
2
true
false
true
false
false
false
low
28,657,874
Error and have no clue why :(
<p>i have been trying to figure out how to make a simple search button. I found this (<a href="https://stackoverflow.com/questions/21585326/implementing-searchview-in-action-bar">Implementing SearchView in action bar</a>) which i thought would help and i guess it did, i just cant figure out why there is an error here:<...
i have been trying to figure out how to make a simple search button. I found this ( Implementing SearchView in action bar ) which i thought would help and i guess it did, i just cant figure out why there is an error here: SearchableActivity.java [CODE] here is my searchable.xml file: [CODE] And here is my AndroidManife...
java|android|xml
1
2015-02-22T12:36:10.253Z
2,015
2
12
6
101
0
339
29
3
3
true
true
false
false
false
false
low
28,657,892
Grafika CameraCaptureActivity not working
<p>I'm trying to test this sample in my galaxy S3 and everything seems to work well but when i try to play the recorded file, no player can play the file. I send the video to my computer and tried with VLC, gom player, etc and always get an error like " entry format no recognized" The file has the right size. What is ...
I'm trying to test this sample in my galaxy S3 and everything seems to work well but when i try to play the recorded file, no player can play the file. I send the video to my computer and tried with VLC, gom player, etc and always get an error like " entry format no recognized" The file has the right size. What is happ...
android|android-mediacodec|grafika
0
2015-02-22T12:39:07.133Z
2,015
2
12
6
214
1
424
41
3
0
false
false
false
false
false
false
zero
28,657,914
Show logs written with EventLog.writeEvent in Android Studio
<p>In Android Studio how do I view logs written using the </p> <pre><code>EventLog.writeEvent(5,"WHY CANT I SEE THIS"); </code></pre> <p>The reason being I want to monitor system events being written by the platform itself and according to the source it's using EventLog.writeEvent to log these events. I'm not sure wh...
In Android Studio how do I view logs written using the [CODE] The reason being I want to monitor system events being written by the platform itself and according to the source it's using EventLog.writeEvent to log these events. I'm not sure where they are being shown. Any assistance would be appreciated. Thanks!
java|android|android-studio|android-logcat|android-log
1
2015-02-22T12:42:21.397Z
2,015
2
12
6
496
0
313
60
5
1
true
true
false
false
false
false
low
28,657,922
After several successful runs, progress dialog suddenly returns null pointer exception
<p>I'm developing an app in which the user inputs his/her voice and the app will calculate its features. so I put a progress dialog to inform the user that the app is calculating its features. At first, the application runs perfectly, then on third run, the progress dialog returns null pointer exception. I don't know h...
I'm developing an app in which the user inputs his/her voice and the app will calculate its features. so I put a progress dialog to inform the user that the app is calculating its features. At first, the application runs perfectly, then on third run, the progress dialog returns null pointer exception. I don't know how ...
android|progressdialog
0
2015-02-22T12:42:56.040Z
2,015
2
12
6
250
1
444
86
2
3
true
false
false
false
false
false
zero
28,657,927
Android Studio Lint check for Unnecessary Module Dependency
<p>When running a Lint check on files in my project I often come across an error that looks like this (actual names of files redacted, but you'll get the idea):</p> <blockquote> <p>Dependency from module 'name_of_my_project' on module 'some_3rd_party_library' could be probably be removed when complementary scope...
When running a Lint check on files in my project I often come across an error that looks like this (actual names of files redacted, but you'll get the idea): Dependency from module 'name_of_my_project' on module 'some_3rd_party_library' could be probably be removed when complementary scope to 'File 'filepath_to_the_cla...
intellij-idea|android-studio|module|dependencies|lint
24
2015-02-22T12:43:21.443Z
2,015
2
12
6
2,127
2
1,282
59
5
0
false
false
false
false
true
false
high
28,657,956
onManagerConnected status returning value 2 [Market error]
<pre><code> public class MainActivity2 extends ActionBarActivity { private static final String TAG = "Test Opencv Loadback"; public static String imgPath; private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) { @Override public void onManagerConnected(int status) { switch (status) { ...
[CODE] The status value is getting set to 2, even though the OpenCV manager is installed on the phone. Need help in resolving the issue.When prompted to install opencv manager, it returns package installation failed
java|android|opencv|java-native-interface|opencv4android
0
2015-02-22T12:46:12.573Z
2,015
2
12
6
177
1
215
58
5
1
true
false
false
false
false
false
zero
28,657,977
ListView inside Fragment gives me null
<p>In the onCreate method of my fragment I'm trying to set up a ListView. The problem is that i write this line, </p> <pre><code>ListView listViewEmployees = (ListView) getActivity().findViewById(R.id.listViewEmployees); </code></pre> <p>and It seems to not be able to find the ListView because it allways gets the val...
In the onCreate method of my fragment I'm trying to set up a ListView. The problem is that i write this line, [CODE] and It seems to not be able to find the ListView because it allways gets the value null. [CODE] Code for the fragment: [CODE] }
android|listview|android-fragments
-3
2015-02-22T12:48:57.007Z
2,015
2
12
6
203
1
244
38
3
3
true
false
false
false
false
true
negative
28,658,040
MPAndroidChart removing data set issue
<p>I have implemented to simple methods:</p> <pre><code>@Override protected void addDataSet(int day) { LineData lineData = this.lineChart.getData(); if(lineData != null) { ArrayList&lt;Entry&gt; yValues = new ArrayList&lt;Entry&gt;(); for(int i = 0; i &lt; this.measureDataListEntries.size(); ...
I have implemented to simple methods: [CODE] At startup i add seven different datasets: monday, tuesday, wednesday, thursday, friday, saturday, sunday. The adding and removing of datasets works for all days except the day at the first position of the dataset in this case it is monday. the remove method gets called corr...
android|mpandroidchart
0
2015-02-22T12:57:25.087Z
2,015
2
12
6
2,081
1
736
38
2
2
true
false
false
false
false
false
zero
28,658,059
Android Studio Enter key not making new line
<p>I don't know if I have changed something, but I can't make a new line when pressing <code>Enter</code>, it just goes to the next line. To insert a new line, I have to press <code>Insert</code> first.... How can I change that?</p>
I don't know if I have changed something, but I can't make a new line when pressing Enter , it just goes to the next line. To insert a new line, I have to press Insert first.... How can I change that?
android-studio
9
2015-02-22T12:59:10.270Z
2,015
2
12
6
15,386
2
200
44
1
0
false
false
true
true
false
false
medium
28,658,113
Implementing SQLite into Android App
<p>I am new to Android and I am making a simple Log in/Register app. At the moment my problem is that the SQLite database create is not executing meaning that it wont make my table. I have made:</p> <p>Register.java</p> <pre><code>public class Register extends Activity implements View.OnClickListener { EditText ...
I am new to Android and I am making a simple Log in/Register app. At the moment my problem is that the SQLite database create is not executing meaning that it wont make my table. I have made: Register.java [CODE] LoginAdapter. [CODE] What have I done wrong? I had the project at one point pass the username, name and pas...
java|android|sql
0
2015-02-22T13:04:57.603Z
2,015
2
13
6
142
3
463
36
3
2
true
false
false
false
false
false
zero
28,658,115
Input.deviceOrientation always Unknown
<p>I've created a scene with a Canvas with some UI elements. The Canvas has a C# script attached where I check the device orientation.</p> <pre><code>if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft || Input.deviceOrientation == DeviceOrientation.LandscapeRight) { // Do something... } </code></pr...
I've created a scene with a Canvas with some UI elements. The Canvas has a C# script attached where I check the device orientation. [CODE] Everything works fine on my Android device, but when I import the Google Cardboard SDK (I need to use it in another scene) , Input.deviceOrientation is always Unknown . It seems tha...
c#|android|unity3d|google-cardboard
1
2015-02-22T13:05:18.163Z
2,015
2
13
6
470
0
433
38
4
2
true
true
false
false
false
false
low
28,658,186
Jsoup - How to query this?
<p>this is probably fairly easy in Jsoup, but I haven't found anything about that in jsoup cookbook so I am asking here.</p> <pre><code>&lt;div class="team" style="float: right; background: url('http://teampage.com')"&gt;&lt;/div&gt; </code></pre> <p>How to get content of url using Jsoup? </p>
this is probably fairly easy in Jsoup, but I haven't found anything about that in jsoup cookbook so I am asking here. [CODE] How to get content of url using Jsoup?
android|jsoup
0
2015-02-22T13:13:37.600Z
2,015
2
13
6
48
1
163
26
2
1
true
false
false
false
false
false
zero
28,658,206
Facebook login session with a second login
<p>I'm developing an android app that performs a two-stages login.</p> <p>First the user logs in using a Facebook account, and then he logs in a party giving party name and party password which are stored in our server's database. The log-in with Facebook is handled by integrating the Facebook API both in android and...
I'm developing an android app that performs a two-stages login. First the user logs in using a Facebook account, and then he logs in a party giving party name and party password which are stored in our server's database. The log-in with Facebook is handled by integrating the Facebook API both in android and in our serv...
php|android|facebook|session
-4
2015-02-22T13:15:38.873Z
2,015
2
13
6
337
1
905
42
4
0
false
false
false
false
false
true
negative
28,658,242
Can a handler object in Android be forced to finish execution of runnables in its queue?
<p>I'm using a handler object to perform delayed actions, giving the user an option to cancel the task. But if the user closes the app before the delay, the runnables are not executed. </p> <p>Is there a reliable way to ensure that the handler calls the runnables before the app finishes?</p> <pre><code> runnable =...
I'm using a handler object to perform delayed actions, giving the user an option to cancel the task. But if the user closes the app before the delay, the runnables are not executed. Is there a reliable way to ensure that the handler calls the runnables before the app finishes? [CODE] Also note that I'm doing all this o...
java|android|multithreading|android-handler
0
2015-02-22T13:18:57.097Z
2,015
2
13
6
65
0
338
88
4
1
true
true
false
false
false
false
zero
28,658,277
why do I need super() in Android?
<p>From a Activity I am passing data to: </p> <pre><code>public FoodAdapter(BaseActivity activity, int ResoruceId, ArrayList &lt;food&gt; cake) { } </code></pre> <p>However this gives me a error. To fix this I need super() with activity, ResoruceId and cake inside of it. Why do I need to have this s...
From a Activity I am passing data to: [CODE] However this gives me a error. To fix this I need super() with activity, ResoruceId and cake inside of it. Why do I need to have this super() and what does it do?? Thanks
java|android
0
2015-02-22T13:22:19.013Z
2,015
2
13
6
52
1
215
33
2
1
true
false
false
false
false
false
zero
28,658,278
How to get id of front facing camera using Camera2?
<p>How can I get id of front facing camera using new Camera2 library? I can't find it anywhere in documentation. </p>
How can I get id of front facing camera using new Camera2 library? I can't find it anywhere in documentation.
android|android-camera
16
2015-02-22T13:22:21.503Z
2,015
2
13
6
18,291
2
109
51
2
0
false
false
true
true
true
false
medium
28,658,286
rounding corners of textview android
<p>The following codes do not round the corners of textview in my app.. </p> <p>Here's my res/drawable/round_corners.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" &gt; &lt;corners android:radius=...
The following codes do not round the corners of textview in my app.. Here's my res/drawable/round_corners.xml [CODE] Here's my layout.xml [CODE]
java|android|eclipse
4
2015-02-22T13:23:02.353Z
2,015
2
13
6
3,829
1
144
36
3
2
true
false
true
false
false
false
low
28,658,287
Replace the action bar's title with a spinner (drop down)
<p>I am trying to display a spinner in the same position where the action bar's default title appear. I followed the instruction of the similar <a href="https://stackoverflow.com/questions/11983120/remove-the-title-text-from-the-action-bar-in-one-single-activity?lq=1">SO case here</a> , so I managed to eliminate the ti...
I am trying to display a spinner in the same position where the action bar's default title appear. I followed the instruction of the similar SO case here , so I managed to eliminate the title but still the spinner's position is not aligned to the left, as you can see from this screen-shot Here are the main definitions ...
android|android-actionbar|alignment|android-ui|android-actionbar-compat
11
2015-02-22T13:23:40.303Z
2,015
2
13
6
5,236
1
617
57
5
3
true
false
true
false
true
false
medium
28,658,303
is overriding onActivityResult mandatory after startActivityForResult
<p>can I call <code>startActivityForResult</code> then return a result from activity, and when Im back in the first activity, can I not override <code>onActivityResult</code>?</p>
can I call startActivityForResult then return a result from activity, and when Im back in the first activity, can I not override onActivityResult ?
android
0
2015-02-22T13:25:15.120Z
2,015
2
13
6
51
1
147
69
1
0
false
false
false
false
false
false
zero
28,658,319
ActionBarDrawerToggle doesn't understand appcompat attributes when used with non-appcompat Theme.Material
<p>I'm on minSdk=21 and using android.support.v7.app.ActionBarDrawerToggle. I want to disable the spinning animation, and I do it like this:</p> <pre><code>&lt;style name="MyTheme" parent="android:Theme.Material.NoActionBar"&gt; &lt;item name="drawerArrowStyle"&gt;@style/MyDrawerArrowToggleStyle&lt;/item&gt; &lt;/...
I'm on minSdk=21 and using android.support.v7.app.ActionBarDrawerToggle. I want to disable the spinning animation, and I do it like this: [CODE] This results in the following exception: [CODE] When I add this to the style: [CODE] (which is exactly copied over from the parent style Widget.AppCompat.DrawerArrowToggle), t...
android
0
2015-02-22T13:26:07.203Z
2,015
2
13
6
359
1
956
105
1
4
true
false
false
false
false
false
zero
28,658,354
Populating a ListView with data from Parse.com
<p>I'm trying to populate my ListView with data retrieved from Parse.com using the <code>findInBackground</code> method. My list is not being populated and I know the culprit is this background method, but I don't know of a solution.</p> <p>Code: </p> <pre><code>private void getData() { ParseQuery&lt;ParseObject&...
I'm trying to populate my ListView with data retrieved from Parse.com using the findInBackground method. My list is not being populated and I know the culprit is this background method, but I don't know of a solution. Code: [CODE] I basically use this method shown above in the adapter constructor to populate the ArrayL...
android|listview|parse-platform
0
2015-02-22T13:29:19.480Z
2,015
2
13
6
78
1
460
46
3
1
true
false
false
false
false
false
zero
28,658,391
Can't find any registered devices yet Android
<p>I have created the Parse account and downloaded the SDK and replaced the API Key and Secret Key. I try to run the application and the ParseStarterProject runs with no errors for Android. But when I try to send a push message I get the message "Can't find any registered devices yet".How do I register my device in pa...
I have created the Parse account and downloaded the SDK and replaced the API Key and Secret Key. I try to run the application and the ParseStarterProject runs with no errors for Android. But when I try to send a push message I get the message "Can't find any registered devices yet".How do I register my device in parse....
android|parse-platform
0
2015-02-22T13:33:01.103Z
2,015
2
13
6
1,429
1
523
45
2
2
true
false
false
false
false
false
zero
28,658,402
Cannot resolve PendingIntent.getActivity()
<p>I am trying to make a custom notification and cannot resolve this.</p> <pre><code>public void remNotifyClicked (View view){ notification.setSmallIcon(R.drawable.ic_launcher); notification.setTicker("Ticker"); notification.setContentTitle("Notification"); notification.setContentText("Congratulation!"...
I am trying to make a custom notification and cannot resolve this. [CODE] The problem here is, "getActivity" is showing as error(red colored) and it says it cannot resolve the symbol(when hovered over it). Thanks. PS: I use Android Studio.
android|notifications|android-notifications
8
2015-02-22T13:34:44.530Z
2,015
2
13
6
4,906
1
239
42
3
1
true
false
true
false
false
false
medium
28,658,473
my android code does not connect to mysql in my computer ...iam running my app in emulator
<p>i try so much times.....i cant connect to mysql database in my local host....when i run this coding in emulator-android</p> <p>this is my java coding</p> <pre><code>package com.example.pravien.madattendence; import android.app.Activity; import android.os.Bundle; import android.widget.EditText; import android.widge...
i try so much times.....i cant connect to mysql database in my local host....when i run this coding in emulator-android this is my java coding [CODE] and this is my xml [CODE] this my android manifest [CODE] this is my error show in log [CODE] pls help me.......
android|mysql
0
2015-02-22T13:41:46.640Z
2,015
2
13
6
55
1
262
90
2
4
true
false
false
false
false
false
zero
28,658,524
How to save login credentials to shared preferences after successful login to web service[Struts2]
<p>I have gone thorugh no. of posts about shared preferences and web services in android but none of them is explaining about - how to save login credential after successful login to any web service (Mine is based on struts2 framework).</p> <p>Any suggestion will be much helpful to me ..</p> <p>M using [AyncTask] mec...
I have gone thorugh no. of posts about shared preferences and web services in android but none of them is explaining about - how to save login credential after successful login to any web service (Mine is based on struts2 framework). Any suggestion will be much helpful to me .. M using [AyncTask] mechanism to send logi...
java|android|struts2
0
2015-02-22T13:47:22.983Z
2,015
2
13
6
500
0
457
98
3
0
false
true
false
false
false
false
zero
28,658,567
Rotate a marker in MapBox SDK for Android
<p>I'm using <a href="https://github.com/mapbox/mapbox-android-sdk" rel="nofollow">Mapbox Android SDK</a>, I'm going to show a marker on map which is a car location and the marker drawable is a car from top view (head to north) <a href="https://lh6.ggpht.com/CSJNAqePgrCCsP4RIPZmAB2RKPv4h6EzfzEQc20RVlSLyNygIAYOxEpWiVm6R...
I'm using Mapbox Android SDK , I'm going to show a marker on map which is a car location and the marker drawable is a car from top view (head to north) just like uber app . My main question is how can i rotate the car marker to show the bearing ? ! [CODE]
android|mapbox
4
2015-02-22T13:51:35.987Z
2,015
2
13
6
1,463
1
255
41
2
1
true
false
false
false
false
false
low
28,658,574
Android Studio - How to make modules inside a subdirectory?
<p>Suppose that I had 3 modules: mod1, mod2 and mod3.</p> <p>In normal case, the file system hierarchy should be:</p> <pre><code>[android_root_dir] build.gradle # list this file just to make it clear. ----mod1 ----mod2 ----mod3 </code></pre> <p>But what I want is:</p> <pre><code>[android_root_dir] build.gradle # li...
Suppose that I had 3 modules: mod1, mod2 and mod3. In normal case, the file system hierarchy should be: [CODE] But what I want is: [CODE] how to do it in Android Studio 1.1.0? PS: I find this article but it does not seem to work, or it works for earlier versions of AS, not 1.1.0: How can I move a module inside a subdir...
android|android-studio|module|android-gradle-plugin|build.gradle
36
2015-02-22T13:52:14.543Z
2,015
2
13
6
15,076
4
327
59
5
2
true
false
true
true
true
false
high
28,658,579
Refreshing data in RecyclerView and keeping its scroll position
<p>How does one refresh the data displayed in <code>RecyclerView</code> (calling <code>notifyDataSetChanged</code> on its adapter) and make sure that the scroll position is reset to exactly where it was? </p> <p>In case of good ol' <code>ListView</code> all it takes is retrieving <code>getChildAt(0)</code>, checking i...
How does one refresh the data displayed in RecyclerView (calling notifyDataSetChanged on its adapter) and make sure that the scroll position is reset to exactly where it was? In case of good ol' ListView all it takes is retrieving getChildAt(0) , checking its getTop() and calling setSelectionFromTop with the same exact...
android|android-recyclerview
125
2015-02-22T13:52:51Z
-1
-1
-1
-1
150,830
17
724
63
2
0
false
false
true
true
true
false
high
28,658,594
How to fetch from mysql table an img and encode it and send it as a JSON to android
<p>I want to fetch an imgs from mysql records . i've read how to send it to android i realized that it must to encode it to base64 then decode it in android so i just want to know how to fetch the img from the table and decode it ? i don't want to use url() and send it ! i just want to send decode string to android ??...
I want to fetch an imgs from mysql records . i've read how to send it to android i realized that it must to encode it to base64 then decode it in android so i just want to know how to fetch the img from the table and decode it ? i don't want to use url() and send it ! i just want to send decode string to android ?? her...
php|android|image|encode
0
2015-02-22T13:54:14.903Z
2,015
2
13
6
47
1
341
83
4
1
true
false
false
false
false
false
zero
28,658,596
How to use spinner list in database
<p>Now, i create a spinner list which show in programme and there are several choices. If i want to use an spinner list to select an item then the selected item will add into database by using SQLite code. Also, how to show the selected item in next line after "Amount"?</p> <pre><code>protected void onCreate(Bundle sa...
Now, i create a spinner list which show in programme and there are several choices. If i want to use an spinner list to select an item then the selected item will add into database by using SQLite code. Also, how to show the selected item in next line after "Amount"? [CODE] }
android|database|list|sqlite|spinner
0
2015-02-22T13:54:31.177Z
2,015
2
13
6
224
1
276
35
5
1
true
false
false
false
false
false
zero
28,658,603
Why broadcast receiver is called even no intent filter specified?
<p>As in title, broadcast receiver get called even no intent filter is specified in android manifest or in code. Even I specify concrete intent action in manifest like:</p> <pre><code> &lt;receiver android:icon="@drawable/ic_action_network_wifi_on" android:name=".receivers.WifiReceiver"&gt; ...
As in title, broadcast receiver get called even no intent filter is specified in android manifest or in code. Even I specify concrete intent action in manifest like: [CODE] The receiver get called when no airplane mode change. Any ideas appreciated.
android|android-intent|broadcastreceiver|android-manifest|broadcast
0
2015-02-22T13:55:10.483Z
2,015
2
13
6
118
0
249
65
5
1
true
true
false
false
false
false
zero
28,658,625
Let user set a password for application, Android
<p>I want to let the user set a password for my Android app. So i want to show the Loginpage just once when the user starts the app and only if there is a password set.</p> <p>My Problem is, when i start the Activity in onCreate() of the MainActivity i won't be able to close the Loginpage because it will start again...
I want to let the user set a password for my Android app. So i want to show the Loginpage just once when the user starts the app and only if there is a password set. My Problem is, when i start the Activity in onCreate() of the MainActivity i won't be able to close the Loginpage because it will start again. If i save a...
android|android-activity|authentication
0
2015-02-22T13:57:19.290Z
2,015
2
13
6
45
1
602
48
3
0
false
false
false
false
false
false
zero
28,658,683
Call Recorder Issue Unsolved
<p>I have created a Call Recorder app in android. Only problem is it started recording call from the moment I press the call button, although it take some time to get call connected and some more time to get call started. I want it to get recorded right from the moment when call is received, not from where the call is ...
I have created a Call Recorder app in android. Only problem is it started recording call from the moment I press the call button, although it take some time to get call connected and some more time to get call started. I want it to get recorded right from the moment when call is received, not from where the call is rin...
android|telephonymanager
2
2015-02-22T14:03:13.553Z
2,015
2
14
6
210
1
586
28
2
2
true
false
false
false
false
false
low
28,658,728
Android Toolbar - How to implement Spinner for navigation mode?
<p>What is <em>currently</em> the correct way to implement the View Control (<strong>No. 2</strong> from the below screenshot taken from <a href="http://developer.android.com/design/patterns/actionbar.html" rel="nofollow noreferrer">Android's design guide</a>): <img src="https://i.stack.imgur.com/ObUnO.png" alt="Actio...
What is currently the correct way to implement the View Control ( No. 2 from the below screenshot taken from Android's design guide ): I found this example but when I tried to replicate it, I noticed that methods like: actionBar.setNavigationMode() are already deprecated. So how should I implement it? I thought at firs...
android|android-layout|android-actionbar|android-toolbar
4
2015-02-22T14:08:31.830Z
2,015
2
14
6
514
1
486
63
4
0
false
false
false
false
false
false
low
28,658,820
New Activity from ListView
<p>I'm working on a music sheet app, and have a bunch of songs in a <code>ListView</code>.</p> <p>I'm using an <code>onItemClick</code> method, but the problem is, I don't know how to open an activity depending on what subitem is selected.</p> <p>The array of songs is <code>uta[]</code>, so I can find the specific St...
I'm working on a music sheet app, and have a bunch of songs in a ListView . I'm using an onItemClick method, but the problem is, I don't know how to open an activity depending on what subitem is selected. The array of songs is uta[] , so I can find the specific String with uta[position] , but how can I open a specific ...
java|android|arrays|android-activity|android-studio
0
2015-02-22T14:16:08.733Z
2,015
2
14
6
268
4
399
26
5
0
false
false
false
false
false
false
zero
28,658,850
Error in android documentation 'Stopping and Restarting an Activity'
<p>Above mentioned documentation at(<a href="http://developer.android.com/training/basics/activity-lifecycle/stopping.html" rel="nofollow">http://developer.android.com/training/basics/activity-lifecycle/stopping.html</a>) states following:</p> <blockquote> <p>There are a few of key scenarios in which your activity i...
Above mentioned documentation at( http://developer.android.com/training/basics/activity-lifecycle/stopping.html ) states following: There are a few of key scenarios in which your activity is stopped and restarted: The user opens the Recent Apps window and switches from your app to another app. The activity in your app ...
android
1
2015-02-22T14:19:17.090Z
2,015
2
14
6
61
1
779
68
1
0
false
false
false
false
false
false
low
28,658,902
Can't find Genymotion.app
<p>I am unable to test my application on Android studio via genymotion.</p> <p>Genymotion warning: You must specify the path to the Genymotion folder to use this feature.</p> <p>when trying to location Genymotion.app I get this error: "Cannot find Genymotion in the specified path" </p> <p>this is the path I entered ...
I am unable to test my application on Android studio via genymotion. Genymotion warning: You must specify the path to the Genymotion folder to use this feature. when trying to location Genymotion.app I get this error: "Cannot find Genymotion in the specified path" this is the path I entered for genymotion.app: C:\Users...
android-studio|android-emulator|genymotion
6
2015-02-22T14:24:03.117Z
2,015
2
14
6
11,345
4
360
25
3
0
false
false
true
false
false
false
medium
28,658,904
center crop not cropping photo in relativelayout
<p>I want to center crop an image but its not doing anything just stretching my photo - can someone please help.</p> <p>Thanks in advance</p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:i...
I want to center crop an image but its not doing anything just stretching my photo - can someone please help. Thanks in advance [CODE]
android
2
2015-02-22T14:24:38.333Z
2,015
2
14
6
772
2
134
48
1
1
true
false
false
false
false
false
low
28,658,906
Android Maps - how to manage a large number of markers (1 million+)
<p>Managing a large number of markers for Google Maps in Android is all fine and dandy when you have 20-50K markers.</p> <p>But how do you manage hundreds of thousands or even millions? What's better - performance wise - storing them in a JSON file locally on the device or retrieving a very large number of markers rem...
Managing a large number of markers for Google Maps in Android is all fine and dandy when you have 20-50K markers. But how do you manage hundreds of thousands or even millions? What's better - performance wise - storing them in a JSON file locally on the device or retrieving a very large number of markers remotely? I be...
android|json|google-maps-api-3|markerclusterer
1
2015-02-22T14:24:42.917Z
2,015
2
14
6
968
1
521
67
4
0
false
false
false
false
false
false
low
28,658,945
android on click listener issue with sending sms
<p>get right to the point i need to make push a button to send the edittext as sms and i have problem with the onclicklistner right after the new it is marked with red under line </p> <pre><code>buttonSms.setOnClickListener (new OnClickListener() </code></pre> <p>i would be really thankfull if any one could manage t...
get right to the point i need to make push a button to send the edittext as sms and i have problem with the onclicklistner right after the new it is marked with red under line [CODE] i would be really thankfull if any one could manage to help me here is the full code code: [CODE]
android
0
2015-02-22T14:28:11.153Z
2,015
2
14
6
183
2
280
48
1
2
true
false
false
false
false
false
zero
28,658,966
How can i set an onAreaTouched listener to a TiledSprite or ButtonSprite after initialized it?
<p>i know i can set this listener initializing like this:</p> <pre><code>buttonSprite = new ButtonSprite(X, Y, mITextureRegion, mEngine.getVertexBufferObjectManager()) { @Override public boolean onAreaTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchA...
i know i can set this listener initializing like this: [CODE] This works. But i want something like this: [CODE] first create it, and then set the onAreaTouched (i guess must be something like this, but doesn't work because not exists this setter) [CODE] And i don't find any mode to do it. it's possible?
android|button|sprite|andengine
0
2015-02-22T14:30:04.853Z
2,015
2
14
6
94
1
305
94
4
3
true
false
false
false
false
false
zero
28,658,978
Why does Android launch multiple instances on singleTask or singleInstance?
<p>What I want to achieve:</p> <p>The MainActivity should be reused, in other words, I don't want to run <code>onCreate()</code> over again, but only <code>onResume()</code> on the same Activity, but I have a strange behaviour. It seems that the <code>launchMode</code> in AndroidManifest is ignored. Whatever I set (<c...
What I want to achieve: The MainActivity should be reused, in other words, I don't want to run onCreate() over again, but only onResume() on the same Activity, but I have a strange behaviour. It seems that the launchMode in AndroidManifest is ignored. Whatever I set ( singleTask , singleInstance ), it always creates a ...
android|android-activity|launchmode
4
2015-02-22T14:31:26.500Z
2,015
2
14
6
1,368
1
1,382
75
3
1
true
false
false
false
false
false
low
28,659,078
Can not see my Android HTC even though it is connected
<p>I have an HTC and I plugged it in a Mac running Yosemite. I can see in my phone "USB tethering". However, I cannot see it in my "devices" view in Eclipse.</p> <p>I tried to restart adb, but I got a failure. I see this in the console: </p> <pre><code>[2015-02-22 15:35:57 - DeviceMonitor] Adb connection Error:EOF [...
I have an HTC and I plugged it in a Mac running Yosemite. I can see in my phone "USB tethering". However, I cannot see it in my "devices" view in Eclipse. I tried to restart adb, but I got a failure. I see this in the console: [CODE] How can I see my phone listed in the devices so that I can run an application?
android|eclipse|debugging|adt
0
2015-02-22T14:40:43.460Z
2,015
2
14
6
110
1
312
54
4
1
true
false
false
false
false
false
zero
28,659,165
Toast in AsyncTask in non Activity class
<p>I have a non Activity class which contains an AsyncTask which calls an URL. If the Connection Timeouts for some reasons, I want to let the user know this by posting a Toast. But I just can't get any Context.</p> <p>How can achive this?</p> <p><strong>RPIcall.class</strong></p> <pre><code>import android.os.AsyncTa...
I have a non Activity class which contains an AsyncTask which calls an URL. If the Connection Timeouts for some reasons, I want to let the user know this by posting a Toast. But I just can't get any Context. How can achive this? RPIcall.class [CODE]
android|android-asynctask|toast|android-context
5
2015-02-22T14:49:25.047Z
2,015
2
14
6
817
2
249
40
4
1
true
false
false
false
false
false
low
28,659,168
How to validate input from edit text with integer
<p>I am newbie to android programing , currently am designing an app to display table from second activity.For that i made a edit text view and create a button to link second activity. can anyone tell me how to set condition while clicking button to check weather text input with integer declared in main activity, if th...
I am newbie to android programing , currently am designing an app to display table from second activity.For that i made a edit text view and create a button to link second activity. can anyone tell me how to set condition while clicking button to check weather text input with integer declared in main activity, if the i...
java|android|authentication
1
2015-02-22T14:49:50.853Z
2,015
2
14
6
46
1
394
49
3
1
true
false
false
false
false
false
low
28,659,175
Improve speed of android app
<p>In my android program, I have 3 functions that will be continuously repeated until the user exits the app. Currently, it is able to update a value(position) <strong>every second</strong>.</p> <p>I was wondering if having lots of if else condition in one of the function will slow down the performance of my app i.e. ...
In my android program, I have 3 functions that will be continuously repeated until the user exits the app. Currently, it is able to update a value(position) every second . I was wondering if having lots of if else condition in one of the function will slow down the performance of my app i.e. it might take way longer th...
android
0
2015-02-22T14:50:12.753Z
2,015
2
14
6
72
1
559
28
1
1
true
false
false
false
false
false
zero
28,659,196
Navigation drawer opens blank activity
<p>I am developing an application where i use navigation drawer. I am calling navigation drawer by clicking on button. but problem is that i get blank page when i press button, my first item is not chosen as main, even i indicated it as main.</p> <p>here is my code, this is my mainActivity:</p> <pre><code> package...
I am developing an application where i use navigation drawer. I am calling navigation drawer by clicking on button. but problem is that i get blank page when i press button, my first item is not chosen as main, even i indicated it as main. here is my code, this is my mainActivity: [CODE] and this is one of the items in...
android|android-fragments|android-activity|navigation-drawer
0
2015-02-22T14:51:50.577Z
2,015
2
14
6
1,406
1
676
38
4
2
true
false
false
false
false
false
zero
28,659,199
Color background cannot be set to single cell in GridView Android
<p>I have weird problem with setting color of single cell in GridView. </p> <p>Problem description : My gridview constains a lot of single cells which contains simple text. I have set ViewHolder to maintain certain position for each cell. User can click on each item and then it should change its color to other. Chang...
I have weird problem with setting color of single cell in GridView. Problem description : My gridview constains a lot of single cells which contains simple text. I have set ViewHolder to maintain certain position for each cell. User can click on each item and then it should change its color to other. Changing color wor...
android|gridview
0
2015-02-22T14:52:00Z
-1
-1
-1
-1
543
1
685
65
2
3
true
false
false
false
false
false
zero
28,659,209
Rotate ImageView in Sliding Up Panel
<p>In my android application I used <strong>umano`s sliding up panel</strong> (Click <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer" title="link in github">here</a>)</p> <p>I am tring to twist(rotate) ImageView as in the picture below. The changes of ImageView depends on how far pane...
In my android application I used umano`s sliding up panel (Click here ) I am tring to twist(rotate) ImageView as in the picture below. The changes of ImageView depends on how far panel opened. Is it possible to twist(rotate) ImageView by sliding of panel? Here is the method in which slideOffset shows how much panel was...
android|android-activity|android-fragments|android-animation|android-sliding
1
2015-02-22T14:52:25.987Z
2,015
2
14
6
2,041
2
510
36
5
1
true
false
false
false
false
false
low
28,659,220
How to push files to sbin folder on the Android device?
<p>I'm not able to turn on recovery mode, just the factory mode.</p> <p>Communication between PC (Windows) and Android phone works fine over ADB, but the phone is not storing files after reboot.</p> <p>Script in which I'm trying to transfer certain files ((sd)parted) to /sbin directory:</p> <pre><code>adb -d shell s...
I'm not able to turn on recovery mode, just the factory mode. Communication between PC (Windows) and Android phone works fine over ADB, but the phone is not storing files after reboot. Script in which I'm trying to transfer certain files ((sd)parted) to /sbin directory: [CODE] Why files aren't stored on the device. Wha...
android|root
1
2015-02-22T14:53:19.610Z
2,015
2
14
6
2,654
1
472
55
2
2
true
false
true
false
false
false
low
28,659,233
Gradle: force use of a repository for a dependency
<p>I would like to know if there is a way to force gradle to use a repository for one dependency. For instance with:</p> <pre><code>buildscript { repositories { jcenter() mavenCentral() maven { url 'https://www.testfairy.com/maven' } maven { url 'https://maven.fabric.io/repo' } maven { url "https:/...
I would like to know if there is a way to force gradle to use a repository for one dependency. For instance with: [CODE] I want com.google.dagger to be checked out from https://oss.sonatype.org/content/repositories/snapshots because for now it tries to check it out from https://maven.fabric.io/repo which result in the ...
android|gradle|dagger-2
14
2015-02-22T14:54:47.687Z
2,015
2
14
6
10,077
2
354
50
3
2
true
false
true
false
true
false
medium
28,659,286
400 BadRequest while loginning in to website on Android
<p>whenever I try to login to a website on my app I recieve a 400 BadRequest error. But when I do the same with a normal javaprogramm it works fine. </p> <p>The login-methode:</p> <pre><code>public void sendPost(String url, String postParams) throws Exception { URL obj = new URL(url); conn = (HttpsURLConnect...
whenever I try to login to a website on my app I recieve a 400 BadRequest error. But when I do the same with a normal javaprogramm it works fine. The login-methode: [CODE] Before I start sendPost() I always download at first the page (without BadRequest): [CODE]
java|android
0
2015-02-22T15:00:04.950Z
2,015
2
15
6
51
1
262
55
2
2
true
false
false
false
false
false
zero
28,659,310
identify on what widgets the fling gesture is detected?
<p>MY Screen is filled with different group of buttons, and i implemented gestures for the entire view. How can i identify, the buttons and these are considered as selected , fling gesture path across the buttons/widgets?</p>
MY Screen is filled with different group of buttons, and i implemented gestures for the entire view. How can i identify, the buttons and these are considered as selected , fling gesture path across the buttons/widgets?
android|gestures
0
2015-02-22T15:02:19.693Z
2,015
2
15
6
29
1
218
55
2
0
false
false
false
false
false
false
zero
28,659,333
How to call fragment from searchview search text in android?
<p>i want to open a new fragment on text submitting in searchview in android i have try this</p> <pre><code>@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); MenuItem searchItem = menu.findItem(R.id.action_search); SearchView searchView = (SearchVi...
i want to open a new fragment on text submitting in searchview in android i have try this [CODE] I have to pass that onQueryTextSubmit(String query) "query" to that fragment page Thanks
android|searchview
1
2015-02-22T15:04:33.167Z
2,015
2
15
6
546
0
185
60
2
1
true
true
false
false
false
false
low
28,659,345
Ring with gradient in Android
<p>I want to create a ring with gradient which starts from the inner edge of the ring. I tried to do that in this way but then I get a gradient which starts from the center of the ring.</p> <p>Picture: <a href="http://s1.postimg.org/tw5htbxxb/Untitled_1.jpg" rel="nofollow">http://s1.postimg.org/tw5htbxxb/Untitled_1.jp...
I want to create a ring with gradient which starts from the inner edge of the ring. I tried to do that in this way but then I get a gradient which starts from the center of the ring. Picture: http://s1.postimg.org/tw5htbxxb/Untitled_1.jpg Left picture shows what I want to do and right picture shows what I get from the ...
android|xml|radial-gradients
4
2015-02-22T15:05:25.963Z
2,015
2
15
6
4,677
1
361
29
3
1
true
false
true
false
false
false
low
28,659,400
Parse Android Studio ListView
<p>Well guys, i'm just trying to creat a listView of Objects from a Parse query. So i don't know too much about list views in android but someone can tell me how to implement that? Or do you have an tutorial that can explain what should I do?</p> <p>Thank you very much!</p>
Well guys, i'm just trying to creat a listView of Objects from a Parse query. So i don't know too much about list views in android but someone can tell me how to implement that? Or do you have an tutorial that can explain what should I do? Thank you very much!
android|android-listview|parse-platform|android-parsequeryadapter
1
2015-02-22T15:10:17.220Z
2,015
2
15
6
1,962
2
260
29
4
0
false
false
false
false
false
false
low
28,659,451
Test running failed: Permission Denial: starting instrumentation ComponentInfo
<p>Test running failed:</p> <blockquote> <p>Permission Denial: starting instrumentation ComponentInfo{com.xxx.taskmanager.warehouse.tests/android.test.InstrumentationTestRunner} from pid=766, uid=766 not allowed because package com.xxx.taskmanager.warehouse.tests does not have a signature matching the target com.xxx...
Test running failed: Permission Denial: starting instrumentation ComponentInfo{com.xxx.taskmanager.warehouse.tests/android.test.InstrumentationTestRunner} from pid=766, uid=766 not allowed because package com.xxx.taskmanager.warehouse.tests does not have a signature matching the target com.xxx.taskmanager.warehouse Emp...
android-studio|robotium
13
2015-02-22T15:14:51.230Z
2,015
2
15
6
7,258
5
510
78
2
1
true
false
true
false
true
false
medium
28,659,467
listview item cannot be click in android
<p>i have created Custom listview and i add a onclick listener to it but it was not working.the below is my code</p> <p>This is my MainActivity Class:</p> <pre><code>public class MainActivity extends Activity { public boolean[] status; ListView listView; @Override protected void onCreate(Bundle save...
i have created Custom listview and i add a onclick listener to it but it was not working.the below is my code This is my MainActivity Class: [CODE] this is my adapter class: [CODE] i want to get the value from listview when the appropriate toggle button is checked .and want to save the value of toggle button and the ap...
android|listview|togglebutton
0
2015-02-22T15:16:01.843Z
2,015
2
15
6
216
3
400
40
3
4
true
false
false
false
false
false
zero
28,659,536
keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified)
<p>I am to trying to create a signed app in Android Studio, but i am stuck at this error which says</p> <blockquote> <p>keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified)</p> </blockquote> <p>I get this error when i am creating a new k...
I am to trying to create a signed app in Android Studio, but i am stuck at this error which says keytool error: java.io.FileNotFoundException: C:\AndroidWorkspace\androidKey\public.jks (The system cannot find the path specified) I get this error when i am creating a new key store. i am confused, why would it search for...
android|android-studio|google-play|apk
11
2015-02-22T15:23:43.660Z
2,015
2
15
6
24,250
10
416
131
4
0
false
false
true
true
true
false
medium
28,659,542
AWS Android Sample crash because of wrong identityPoolId
<p>I try to run S3 TransferManager sample. I have problem replacing these values. I am not sure where I can get COGNITO_POOL_ID. When it is run, I can see the UI for a second, then it stopped. I need someone to help me pointing out how to find COGNITO_POOL_ID and other values in Constant class. Please provide screensh...
I try to run S3 TransferManager sample. I have problem replacing these values. I am not sure where I can get COGNITO_POOL_ID. When it is run, I can see the UI for a second, then it stopped. I need someone to help me pointing out how to find COGNITO_POOL_ID and other values in Constant class. Please provide screenshot a...
android|amazon-web-services|amazon-s3
1
2015-02-22T15:24:44.903Z
2,015
2
15
6
1,579
2
391
56
3
2
true
false
false
false
false
false
low
28,659,589
android lollipop and socket.io not working together
<p>I have a simple chat application on nodejs with socket.io@0.9.16 module.<code>The chat app works fine with android 4.x</code>.But I tried on android 5.0.I got some errors. <br> <strong><em>errors on server log:</em></strong><br> <img src="https://i.stack.imgur.com/wZWE9.png" alt="errors on server log"></p> <blockqu...
I have a simple chat application on nodejs with socket.io@0.9.16 module. The chat app works fine with android 4.x .But I tried on android 5.0.I got some errors. errors on server log: What is the relationship of this error with android version differences? This error may be releated to the json.I saw.There are experienc...
android|node.js|socket.io|android-5.0-lollipop|gottox
1
2015-02-22T15:28:42.070Z
2,015
2
15
6
335
1
540
51
5
1
true
false
false
false
false
false
low
28,659,617
NullPointerException on getResources() for a CardView
<p>I have a problem that bugs me a lot... I need to call a string array in a normal java class in an Android project, but for the love of God I can't figure out how to getResources() over here... I tried some getContext ideas from Google but to no avail... The java file is used to load a CardView's elements with data.....
I have a problem that bugs me a lot... I need to call a string array in a normal java class in an Android project, but for the love of God I can't figure out how to getResources() over here... I tried some getContext ideas from Google but to no avail... The java file is used to load a CardView's elements with data... P...
java|android|nullpointerexception|android-cardview
-1
2015-02-22T15:30:35.333Z
2,015
2
15
6
245
1
369
53
4
1
true
false
false
false
false
true
negative
28,659,660
Adding event with reminders to calendar with 'Intent.putExtra()' way of doing
<p>I'm trying to add events to calendar with the following code :</p> <pre><code>public Intent calPopulation() { Intent calIntent = new Intent(Intent.ACTION_INSERT); calIntent.setType("vnd.android.cursor.item/event"); calIntent.putExtra(CalendarContract.Events.TITLE, this._title); Greg...
I'm trying to add events to calendar with the following code : [CODE] And then launch the action with : startActivity(mTask.calPopulation()); I don't have any issue, the calendar app event launched with the correct information I entered into my app, except that it does not fill in the event the reminder I would like to...
android|events|calendar|reminders
7
2015-02-22T15:34:45.247Z
2,015
2
15
6
16,330
2
640
77
4
1
true
false
true
true
false
false
medium
28,659,672
BLE speeds with different versions of Android
<p>I need to pass files over BLE and have made a protocol using writes with no response from Android to some hardware that I have designed. </p> <p>In this test, I used my phone running Lolipop and with write without response, got good results of about 3.1Kb/s. I then tried it on a tablet running Android 4.3 and the ...
I need to pass files over BLE and have made a protocol using writes with no response from Android to some hardware that I have designed. In this test, I used my phone running Lolipop and with write without response, got good results of about 3.1Kb/s. I then tried it on a tablet running Android 4.3 and the speed was 1.1...
android|bluetooth-lowenergy
0
2015-02-22T15:35:50.883Z
2,015
2
15
6
790
0
736
45
2
0
false
true
false
false
false
false
zero
28,659,707
How to capture Click event of button when its overlapped with Bitmap object
<p>I am trying to capture click even on button when the button and a bitmap objects are overlapped but unable to do so.</p> <p>Here is how my object looks like <img src="https://i.stack.imgur.com/CnLbC.png" alt="button and bitmap overlapped"></p> <p>The green and red portion are part of bitmap image and the blue (Add...
I am trying to capture click even on button when the button and a bitmap objects are overlapped but unable to do so. Here is how my object looks like The green and red portion are part of bitmap image and the blue (Add) is button both have similar properties like android:layout_centerInParent="true" hence they overlap ...
android|onclicklistener
0
2015-02-22T15:39:01.357Z
2,015
2
15
6
153
1
710
75
2
1
true
false
false
false
false
false
zero
28,659,709
Android Error 961 during install
<p>A user of my Android application called RouterCheck has reported receiving a 961 error during the installation. Going to Google, it isn't difficult to find info on how to solve this - mainly by clearing data and/or cache.</p> <p>The app itself isn't big. The APK is under 3MB and it unzips into a bit over 6Mb.</p> ...
A user of my Android application called RouterCheck has reported receiving a 961 error during the installation. Going to Google, it isn't difficult to find info on how to solve this - mainly by clearing data and/or cache. The app itself isn't big. The APK is under 3MB and it unzips into a bit over 6Mb. So my question i...
android|installation
3
2015-02-22T15:39:53.670Z
2,015
2
15
6
17,678
1
539
32
2
0
false
false
true
true
false
false
low
28,659,746
Contact chooser returning null value
<p>I am trying to implement contact pciker in android, i am able to launch contact picker in android, but when i select the contact i get back null value, i.e. no number in my textfield. What am i doing wrong ?</p> <p>Here is my code.</p> <p>mainactivity.java</p> <pre><code>package com.example.textmessage; import ja...
I am trying to implement contact pciker in android, i am able to launch contact picker in android, but when i select the contact i get back null value, i.e. no number in my textfield. What am i doing wrong ? Here is my code. mainactivity.java [CODE] P.S. i have mentioned the permission in manifest.
android|android-contacts
0
2015-02-22T15:44:36.730Z
2,015
2
15
6
117
1
299
36
2
1
true
false
false
false
false
false
zero
28,659,820
Port iOS game to Android
<p>I have my iOS game and I would like to upload it to the Google Play Store but I have no experience with Java/Android programming so I ask if anybody knows a faster way to port an iOS game to Android without having to program all again.</p> <p>Note: My game uses the Sprite Kit framework.</p> <p>Thanks</p>
I have my iOS game and I would like to upload it to the Google Play Store but I have no experience with Java/Android programming so I ask if anybody knows a faster way to port an iOS game to Android without having to program all again. Note: My game uses the Sprite Kit framework. Thanks
android|ios|sprite-kit
0
2015-02-22T15:50:40.097Z
2,015
2
15
6
702
1
287
24
3
0
false
false
false
false
false
false
zero
28,659,868
Open a SQLite file and read it with `openDatabase`
<p>I tried to open a new database like that : </p> <pre><code>localFileName = 'open-streets-dc.mbtiles'; db = window.openDatabase(localFileName, '1', 'my', 1024 * 1024 * 100); </code></pre> <p>It will create a new db in Web SQL and I can browse on it with chrome. In my case, I have to read an exisiting SQLite file bu...
I tried to open a new database like that : [CODE] It will create a new db in Web SQL and I can browse on it with chrome. In my case, I have to read an exisiting SQLite file but I did not found the solution. I tried sql.js but I need to make it works with an Android, with ionic and it does not work as you can see in thi...
javascript|android|sqlite|cordova|ionic-framework
1
2015-02-22T15:54:13.893Z
2,015
2
15
6
2,539
3
362
50
5
1
true
false
false
false
false
false
low
28,659,871
Cannot draw on surfaceview because Canvas is null
<p>I am making an app like Snapchat where you can take a photo, preview it, and during the preview draw on it. To implement this, I am using a surface view.</p> <p>Here is my code for taking a photo and drawing to it</p> <p><code>CameraActivity.java:</code></p> <pre><code>public class CameraActivity extends Activity...
I am making an app like Snapchat where you can take a photo, preview it, and during the preview draw on it. To implement this, I am using a surface view. Here is my code for taking a photo and drawing to it CameraActivity.java: [CODE] CameraPreview.java: [CODE] This works great for taking a picture and previewing it, h...
android|android-camera|android-canvas|surfaceview
1
2015-02-22T15:54:30.573Z
2,015
2
15
6
1,331
1
893
49
4
3
true
false
false
false
false
false
low
28,659,914
Sharing classes between android client and GAE Endpoints
<p>1)I made a dependency out of model module, inside it there's a <code>UserModel</code> class. But I can't import it to client side because my endpoints api <code>getUser</code> method returns <code>com.example.serjsmor.backend.userModelApi.model.UserModel</code>, and not <code>com.serjsmor.digitalpheromone.module.Use...
1)I made a dependency out of model module, inside it there's a UserModel class. But I can't import it to client side because my endpoints api getUser method returns com.example.serjsmor.backend.userModelApi.model.UserModel , and not com.serjsmor.digitalpheromone.module.UserModel . I can import this generated class to m...
java|android|google-app-engine|client-server|google-cloud-endpoints
2
2015-02-22T15:58:58.713Z
2,015
2
15
6
250
2
691
56
5
3
true
false
false
false
false
false
low
28,659,915
Draw view outside of RecyclerView item
<p>I have a <code>RecyclerView</code> consisting of header and list items, and for each header I want to add a floating action button along the edge of it. However my button is clipped by the header view:</p> <p><img src="https://i.stack.imgur.com/gjgco.png" alt="Clipped action button"></p> <p>How do I remedy this si...
I have a RecyclerView consisting of header and list items, and for each header I want to add a floating action button along the edge of it. However my button is clipped by the header view: How do I remedy this situation? I've tried setting android:clipChildren="false" on the header views. But this did not do anything f...
android|clipping
2
2015-02-22T15:59:00.263Z
2,015
2
15
6
2,414
1
500
38
2
0
false
false
false
false
false
false
low
28,660,166
Change colour of a shape in Java for Android after user input
<p>I have a simple shape that is stored in rect.xml, and included in an other xml as a 'background' attribute of a 'View'. The two codes are:</p> <p>\res\layout\rect.xml:</p> <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/shape" android:shape="rectangle" &gt; &lt;stro...
I have a simple shape that is stored in rect.xml, and included in an other xml as a 'background' attribute of a 'View'. The two codes are: \res\layout\rect.xml: [CODE] my other view, that is displayed as content of an activity includes this: [CODE] I would like to set the android:endColor attribute to another colour, t...
java|android|xml|colors|shapes
0
2015-02-22T16:23:57.480Z
2,015
2
16
6
690
1
388
61
5
2
true
false
false
false
false
false
zero
28,660,185
ERROR parsing data value of type org.json.JSONArray cannot be converted to JSONObject
<p>While Running the code (given after the error msg) throws the error as</p> <p>Coding follows: </p> <pre><code> public class Slide extends ActionBarActivity { private ProgressDialog pDialog; JSONParser jParser = new JSONParser(); ArrayList&lt;HashMap&lt;String, String&gt;&gt; detailsList; //Creating a Arrayli...
While Running the code (given after the error msg) throws the error as Coding follows: [CODE] Shown above is my java code.. Function of this code is to fetch Book title (more than 10 books title is available in database)from the online database and view it in an scroll view activity .. my php code is working am getting...
java|php|android|json
-2
2015-02-22T16:25:26.290Z
2,015
2
16
6
1,206
1
435
85
4
2
true
false
false
false
false
true
negative
28,660,194
open failed: ENOENT (No such file or directory) getting image to display on thumbnail
<p>I am trying to display BitMapImage on <code>ImageView</code> I was able to get Camera to work, but accessing image from directory keeps giving me <code>E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /external/images/media/15126: open failed: ENOENT (No such file or directory)</code></p> <...
I am trying to display BitMapImage on ImageView I was able to get Camera to work, but accessing image from directory keeps giving me E/BitmapFactory﹕ Unable to decode stream: java.io.FileNotFoundException: /external/images/media/15126: open failed: ENOENT (No such file or directory) My code is below [CODE] And in onAct...
android|android-imageview|android-bitmap
0
2015-02-22T16:26:39.130Z
2,015
2
16
6
1,169
1
424
85
3
2
true
false
false
false
false
false
zero
28,660,196
Android- in quiz game generating random
<p>I am learning android and creating a quiz game. In the game there are different level novice,Easy,medium,hard and there is part where I have to generate random arithmetic maths questions which I have managed to do which appears as some thing like this 20+7,20-3,10*2,20/2(all of them are random as in the game.)I need...
I am learning android and creating a quiz game. In the game there are different level novice,Easy,medium,hard and there is part where I have to generate random arithmetic maths questions which I have managed to do which appears as some thing like this 20+7,20-3,10*2,20/2(all of them are random as in the game.)I need he...
java|android|arrays
0
2015-02-22T16:27:00.453Z
2,015
2
16
6
201
1
446
39
3
1
true
false
false
false
false
false
zero
28,660,226
Unable to start ios simulator of libgdx
<p>I'm using <a href="http://libgdx.badlogicgames.com/" rel="nofollow">libgdx</a> in Android Studio, i can run Android and Desktop Launcher of my project properly, but run IOSLauncher makes this error : </p> <pre><code> Exception in thread "main" java.lang.UnsatisfiedLinkError: org.robovm.rt.VM.getStackClasses(II)[Lja...
I'm using libgdx in Android Studio, i can run Android and Desktop Launcher of my project properly, but run IOSLauncher makes this error : [CODE] and i can't run IOS simulator of libgdx properly.
java|ios|android-studio|libgdx
0
2015-02-22T16:29:48.780Z
2,015
2
16
6
376
1
194
39
4
1
true
false
false
false
false
false
zero
28,660,361
Errors in appcompat v7r21 file in eclipse android sdk.
<p>The errors in appcompat file isn't getting sorted out by any manner. </p> <p>Description Resource Path Location Type error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'. themes_base.xml /appcompat_v7/res/values-v14 line 29 Android AAPT Problem</p> <p>E...
The errors in appcompat file isn't getting sorted out by any manner. Description Resource Path Location Type error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'. themes_base.xml /appcompat_v7/res/values-v14 line 29 Android AAPT Problem Errors like above are shown in conso...
android|eclipse|sdk|android-appcompat
0
2015-02-22T16:40:20.893Z
2,015
2
16
6
57
1
330
54
4
0
false
false
false
false
false
false
zero
28,660,390
How come my cursor is throwing a null pointer in my Android Contact Picker?
<p>My source repository is available here <a href="https://github.com/jackygrahamez/MayDay/tree/gradle2" rel="nofollow">https://github.com/jackygrahamez/MayDay/tree/gradle2</a></p> <p>I'm having trouble with the Android Contact picker. I have tried a few approaches to getting contact phone number. I seem to get a null...
My source repository is available here https://github.com/jackygrahamez/MayDay/tree/gradle2 I'm having trouble with the Android Contact picker. I have tried a few approaches to getting contact phone number. I seem to get a null when I try to return a string. I put my code in an activity otherwise I was getting errors i...
android|android-contacts|android-cursor
0
2015-02-22T16:42:30.603Z
2,015
2
16
6
557
2
508
75
3
3
true
false
false
false
false
false
zero
28,660,417
Android Aruco library usage
<p>Evening,</p> <p>I have been trying to use ARuco library to detect a marker. Downloaded all the Aruco libraries (aruco itself and min3d) and OpenCV 4 Android library. Set them up as libraries and imported them to ARuco sample code. All looks fine, no errors found here. The application starts fine, but if I start usi...
Evening, I have been trying to use ARuco library to detect a marker. Downloaded all the Aruco libraries (aruco itself and min3d) and OpenCV 4 Android library. Set them up as libraries and imported them to ARuco sample code. All looks fine, no errors found here. The application starts fine, but if I start using any func...
android|opencv|min3d|aruco
0
2015-02-22T16:44:39.577Z
2,015
2
16
6
1,700
0
1,005
27
4
0
false
true
false
false
false
false
zero
28,660,429
How to display a GIF in a Service?
<p>I'm building an app similar to Facebook Messenger on Android and I would like to display a GIF as the chat head/bubble. I know the chat head operates as a service and found a way to display GIFs on activities (<a href="http://android-er.blogspot.ca/2014/03/play-animated-gif-with.html" rel="nofollow">http://android-e...
I'm building an app similar to Facebook Messenger on Android and I would like to display a GIF as the chat head/bubble. I know the chat head operates as a service and found a way to display GIFs on activities ( http://android-er.blogspot.ca/2014/03/play-animated-gif-with.html ), but can't get it to work for a service. ...
android|service|animated-gif|facebook-messenger
1
2015-02-22T16:45:37.760Z
2,015
2
16
6
199
1
438
34
4
0
false
false
false
false
false
false
low
28,660,467
JAVA (Android) bitwise operator on strings
<p>I am getting mad, i need to create a token using this operator <br /></p> <p>PHP</p> <pre><code>a = "hello"; b = "world"; token = a | b; </code></pre> <p>well i need create the same in java [android] but i ever get error.<br /> I alredy try to:<br /> - cast the 2 strings to long but obvisuly i get an error on c...
I am getting mad, i need to create a token using this operator PHP [CODE] well i need create the same in java [android] but i ever get error. I alredy try to: - cast the 2 strings to long but obvisuly i get an error on casting - cast the 2 string in BitSet - cast the 2 strings in Bit Array but the final result was ever...
java|android|bit-manipulation|bitwise-operators
-3
2015-02-22T16:48:28.050Z
2,015
2
16
6
587
2
372
42
4
1
true
false
false
false
false
true
negative
28,660,468
No back button in virtual device
<p>I am starting into Android I managed to start a simple app I made in a virtual device. Problem: There is no back button in the device. I am using eclipse ADT and the device says on top: emulator64-arm. Not sure what other information are needed to provide to help me</p>
I am starting into Android I managed to start a simple app I made in a virtual device. Problem: There is no back button in the device. I am using eclipse ADT and the device says on top: emulator64-arm. Not sure what other information are needed to provide to help me
java|android|eclipse
0
2015-02-22T16:48:28.453Z
2,015
2
16
6
906
2
266
32
3
0
false
false
false
false
false
false
zero
28,660,482
Android layout_weight not avalible
<p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;i&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" ...
[CODE] android:layout_weight="50" for both the button and toggle the code of bold code gives the warning of "invalid layout param in a enter code here`linearlayout: layout_weight" solution ..?
android
-1
2015-02-22T16:49:22.823Z
2,015
2
16
6
142
2
192
34
1
1
true
false
false
false
false
true
negative
28,660,507
How to mock Bundle method in Android Unit-Test?
<p>I have one controller class that handle Fragment creation. Let's say like below:</p> <pre><code>public class FragmentController { public static Fragment newInstance(String title, int total) { return total &gt; 0? MultipleDataFragment.newInstance(title, total) : SingleDataFragment.newInsta...
I have one controller class that handle Fragment creation. Let's say like below: [CODE] [CODE] [CODE] In my test (standard Junit4 test class) I have: [CODE] Since I didn't mock the Bundle, I'm getting. [CODE] The question is how do I mock the Bundle object so the test can be executed? Do I need static method inside eac...
java|android|unit-testing
4
2015-02-22T16:52:08.810Z
2,015
2
16
6
5,058
2
449
47
3
5
true
false
true
false
false
false
low