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
44,286,422
Change color of one LinearLayout to two colors by using canvas
<p>I'm trying to change background color of one LinearLayout to two colors for some reasons like the following pic:</p> <p><a href="https://i.stack.imgur.com/ivs9V.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ivs9V.jpg" alt="two colors"></a></p> <p>I'm writing this code but the problem this Line...
I'm trying to change background color of one LinearLayout to two colors for some reasons like the following pic: I'm writing this code but the problem this LinearLayout take third different color for the two parts like this pic: What is the problem in the logic of my code I don't know or I can not do something like tha...
java|android|android-canvas|android-paint
0
2017-05-31T13:41:17.977Z
2,017
5
13
2
54
1
346
62
4
1
true
false
false
false
false
false
zero
44,333,635
android.database.sqlite.SQLiteException: near "": syntax error (code 1): error while reading from database by matching two differ keywords
<p>I am trying to get/read data by matching an Integer ID and a specific String, But while compiling the code I am getting this error : </p> <pre><code>&gt; android.database.sqlite.SQLiteException: near "Computing": syntax &gt; error (code 1): , while compiling: SELE...
I am trying to get/read data by matching an Integer ID and a specific String, But while compiling the code I am getting this error : [CODE] Here's what I'm trying : [CODE] what's the proper query to read data by matching two keywords?
java|android|sql|database|sqlite
-3
2017-06-02T16:33:33.970Z
2,017
6
16
4
54
1
234
138
5
2
true
false
false
false
false
true
negative
44,341,141
Chose correct firebase app type for the Ionic app
<p>When we go to the firebase console we can see below screen.Normally I create a <code>web</code> app when I need to use real time database on the firebase.But I have seen some Ionic apps are using Android and iOS app types.Can you tell me when to use which application type on firebase console?</p> <p>If we use <code...
When we go to the firebase console we can see below screen.Normally I create a web app when I need to use real time database on the firebase.But I have seen some Ionic apps are using Android and iOS app types.Can you tell me when to use which application type on firebase console? If we use Android or iOS I cannot see b...
android|ios|firebase|ionic-framework|ionic3
0
2017-06-03T06:42:20.057Z
2,017
6
6
5
54
1
593
49
5
1
true
false
false
false
false
false
zero
44,095,859
Noise Reduction in pocketsphinx android
<p>I am currently working on my bachelor thesis and I want to use pocketsphinx for hotword detection including noise reduction to make it work in noisy environment.</p> <p>For that I downloaded the up to date pocketsphinx-android-demo, modified some things like the hotword and tested the Accuracy in a car while drivin...
I am currently working on my bachelor thesis and I want to use pocketsphinx for hotword detection including noise reduction to make it work in noisy environment. For that I downloaded the up to date pocketsphinx-android-demo, modified some things like the hotword and tested the Accuracy in a car while driving. The Accu...
android|pocketsphinx|pocketsphinx-android
0
2017-05-21T10:39:22.887Z
2,017
5
10
6
310
1
984
39
3
0
false
false
false
false
false
false
zero
44,290,679
Implementing searchview custom toolbar
<p>I have a toolbar that i created by myself, a custom toolbar and want to place a searchview above so everytime i click the icon it replaces my toolbar.</p> <p><strong>My Custom toolbar:</strong></p> <pre><code>&lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" a...
I have a toolbar that i created by myself, a custom toolbar and want to place a searchview above so everytime i click the icon it replaces my toolbar. My Custom toolbar: [CODE] i include it on other activities like this: [CODE] now i want to use the searchview on this custom toolbar, but i can't even add it, any help?
java|android|xml|android-layout|toolbar
0
2017-05-31T16:58:35.193Z
2,017
5
16
2
1,334
1
319
38
5
2
true
false
false
false
false
false
zero
44,112,930
'Cordova/CDV.h' file not found when building ios app Cordova
<p>I am having trouble building an iOS version of my app using cordova on a Mac. When I run this command for android on the same machine, I get a success message, </p> <pre><code>cordova build android BUILD SUCCESSFUL Total time: 1 mins 53.473 secs Built the following apk(s): /Volumes/data/app/webapp/cordova/p...
I am having trouble building an iOS version of my app using cordova on a Mac. When I run this command for android on the same machine, I get a success message, [CODE] But if I try to generated for iOS with this command, I get an error a shown below. cordova build ios [CODE] Any help would be highly appreciated, Thanks.
android|ios|cordova|extjs
0
2017-05-22T12:31:05.140Z
2,017
5
12
0
1,846
1
320
60
4
2
true
false
false
false
false
false
zero
44,113,278
How to cancel pending publication in Google Play Developer Console?
<p>I don't know why by small mistake I pressed published app in google play store, and now the state is released app is <code>'pending publication'</code> <a href="https://i.stack.imgur.com/kg4Y0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kg4Y0.png" alt="enter image description here"></a> </p> ...
I don't know why by small mistake I pressed published app in google play store, and now the state is released app is 'pending publication' My question is how to cancel pending publication?
android|google-play|apk
3
2017-05-22T12:48:33.033Z
2,017
5
12
0
7,734
1
188
67
3
0
false
false
true
false
false
false
low
44,024,627
How to draw route line between pointers
<p>I have many location pointers on my map now i want to connect all these pointers to one another through route line my map is like this screenshot see this screenshot<a href="https://i.stack.imgur.com/XPmmR.png" rel="nofollow noreferrer">enter image description here</a></p> <p>above is the screenshot of my map now i...
I have many location pointers on my map now i want to connect all these pointers to one another through route line my map is like this screenshot see this screenshot enter image description here above is the screenshot of my map now i want to draw lines with pointers i want to make like this enter image description her...
android|google-maps
0
2017-05-17T12:17:19.293Z
2,017
5
12
2
55
1
394
39
2
1
true
false
false
false
false
false
zero
44,032,088
Android: Notification cancels it's repeating alarm
<p>I want my notification to cancel it's own repeating alarm. However, I don't know how to pass pendingIntent (to cancel it later) before it is even created.</p> <p>Alarms sets here:</p> <pre><code>public class Schedule extends BroadcastReceiver { @Override public void onReceive(Context context, Intent inten...
I want my notification to cancel it's own repeating alarm. However, I don't know how to pass pendingIntent (to cancel it later) before it is even created. Alarms sets here: [CODE] The key problem is that I want to cancel the repeating alarm on notification click (intent in onRecieve method), but canceling alarms requir...
android|notifications|alarmmanager
0
2017-05-17T18:11:45.170Z
2,017
5
18
2
55
1
399
50
3
1
true
false
false
false
false
false
zero
44,079,997
Android newbie, button text not changing
<p>I'm trying to teach myself android and I'm completely stuck. I've got an array of 9 buttons, whose default text is "button", and a TextView whose default text is "Hello World!". </p> <pre><code>I can get the TextView's text to change to Lorem Ipsum, but I can't get the button array text to change to "Btn something...
I'm trying to teach myself android and I'm completely stuck. I've got an array of 9 buttons, whose default text is "button", and a TextView whose default text is "Hello World!". [CODE] And the XML file: [CODE] The buttons are out of order but that shouldn't matter, I hope. They're placed in the right spots, anyhow.
java|android
-1
2017-05-19T22:48:13.567Z
2,017
5
22
4
55
1
316
40
2
2
true
false
false
false
false
true
negative
44,156,285
Android Studio 2017 - how to close row under editor tabs
<p>How to disable row with tabs under editor tabs (You can see it on the screenshot)?</p> <p>Row under editor tabs: <img src="https://i.stack.imgur.com/qKrjR.png" alt="Row under editor tabs"></p>
How to disable row with tabs under editor tabs (You can see it on the screenshot)? Row under editor tabs:
android|android-studio|androidstudio-settings
0
2017-05-24T10:53:40.013Z
2,017
5
10
2
55
1
105
56
3
0
false
false
false
false
false
false
zero
44,233,048
use library in android library project and avoid dependency issue for my consumer
<p>I am working on a project and so far in order to provide minimal integration effort for my consumers, I was forced to use all core Android framework APIs. That being said, I did not use any additional dependencies although there are alot of android library available out there to make my life easier. But recently I'v...
I am working on a project and so far in order to provide minimal integration effort for my consumers, I was forced to use all core Android framework APIs. That being said, I did not use any additional dependencies although there are alot of android library available out there to make my life easier. But recently I've b...
android|android-gradle-plugin
1
2017-05-28T23:48:05.527Z
2,017
5
23
6
55
1
1,269
81
2
0
false
false
false
false
false
false
low
44,292,519
Button not moving from top-left to bottom-right when user touch screen
<p>I want button to change its size and move from top left to bottom right when user touches screen.But my app stop running when i touch screen.If i delete part of code that change position of the button everything is ok and the button change its size.</p> <p>Here is MainActivity.java</p> <pre><code>package com.examp...
I want button to change its size and move from top left to bottom right when user touches screen.But my app stop running when i touch screen.If i delete part of code that change position of the button everything is ok and the button change its size. Here is MainActivity.java [CODE] and here is activity_main.xml [CODE]
java|android
0
2017-05-31T18:46:16.327Z
2,017
5
18
2
55
1
319
70
2
2
true
false
false
false
false
false
zero
44,349,941
Rendering tiles that are seen on screen
<p>everybody, I'm making an android game using java and libgdx. I'm also using Tiled to render my tiles on the screen. I hava the camera set up already, all I need is to figure out how to not render tiles that are not shown on the screen. Here is the code </p> <pre><code>testRenderer.setView(main.getOrthographicCamera...
everybody, I'm making an android game using java and libgdx. I'm also using Tiled to render my tiles on the screen. I hava the camera set up already, all I need is to figure out how to not render tiles that are not shown on the screen. Here is the code [CODE]
java|android|libgdx|render|tiled
2
2017-06-04T01:20:56.897Z
2,017
6
1
6
55
1
259
39
5
1
true
false
false
false
false
false
low
44,363,498
Custom shaped buttons in Android layout
<p>How would one achieve these type of buttons? <a href="https://i.stack.imgur.com/eaeNr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eaeNr.png" alt="Custom buttons"></a></p> <p>Can selector and shapes achieve this (the buttons clickable area should have the shape of the button) or are there any ...
How would one achieve these type of buttons? Can selector and shapes achieve this (the buttons clickable area should have the shape of the button) or are there any libraries and custom widgets for this?
android|button|custom-controls
2
2017-06-05T07:08:32.963Z
2,017
6
7
0
55
1
202
39
3
0
false
false
false
false
false
false
low
44,004,361
JNI_OnLoad get Java caller package+class name
<p>Is there a way to get Java package and classname from which native library was initialized from JNI_OnLoad? I want to reuse my native library in multiple Java projects and don't know in advance classname and package from where LoadLibrary("mynativelibrary") is called. Then I could use JNI RegisterNatives with dynami...
Is there a way to get Java package and classname from which native library was initialized from JNI_OnLoad? I want to reuse my native library in multiple Java projects and don't know in advance classname and package from where LoadLibrary("mynativelibrary") is called. Then I could use JNI RegisterNatives with dynamic c...
java|android|c++|android-ndk|java-native-interface
0
2017-05-16T14:31:33.137Z
2,017
5
14
1
311
1
329
45
5
0
false
false
false
false
false
false
zero
44,281,590
Xamarin.Forms: DependencyService to get Firebase Android data
<p>I'm using Xamarin.Forms to implement the same UI to iOS and Android but I have to implement functions that read and write data to Firebase separately (they are different).</p> <p>I want to put all the data from Firebase to an ObservableCollection, like this:</p> <pre><code>ObservableCollection&lt;Post&gt; posts; p...
I'm using Xamarin.Forms to implement the same UI to iOS and Android but I have to implement functions that read and write data to Firebase separately (they are different). I want to put all the data from Firebase to an ObservableCollection, like this: [CODE] And the Android code that is called is: [CODE] But this doesn...
android|firebase|firebase-realtime-database|xamarin.forms
1
2017-05-31T09:58:08.480Z
2,017
5
9
2
567
1
352
61
4
2
true
false
false
false
false
false
low
44,317,187
Android gradle apk splits, getting versionCode & versionName in code
<p>We start splitting APKs to reduce APK size. And we cannot figure out why the <code>versionCode</code> we get in code (Java) is always the default one. </p> <p>Here is the relevant gradle: </p> <pre><code>defaultConfig { applicationId applicationIdPrefix versionCode 1000 versionName "3.3.0" // This is ...
We start splitting APKs to reduce APK size. And we cannot figure out why the versionCode we get in code (Java) is always the default one. Here is the relevant gradle: [CODE] And this is how to retrieve the versionName and versionCode : [CODE] They are always 3.3.0 and 1000. Why? We want to get these values because we w...
android|gradle
3
2017-06-01T21:15:04.987Z
2,017
6
21
3
567
1
355
68
2
2
true
false
false
false
false
false
low
43,933,602
ANDROID Recieve message that another activity is destroyed
<p>I have simple app with 2 activities. One of them is transparent. All process looks like :</p> <p>1) I lunch my app, at start displayed is my MainActivity </p> <p>2) I click button "show transparent activity" and after that displayed is my TransparentActivity (under it still a little bit visible is my MainActivity)...
I have simple app with 2 activities. One of them is transparent. All process looks like : 1) I lunch my app, at start displayed is my MainActivity 2) I click button "show transparent activity" and after that displayed is my TransparentActivity (under it still a little bit visible is my MainActivity) 3) I click button "...
android|dialog|android-lifecycle|activity-finish|ondestroy
-1
2017-05-12T09:02:14.357Z
2,017
5
9
4
56
1
705
58
5
0
false
false
false
false
false
true
negative
43,933,618
Nav menu for DrawerLayout and tabs for Tablayout next to each other in the app bar?
<p>Im using both a <a href="https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html" rel="nofollow noreferrer">DrawerLayout</a> and a <a href="https://developer.android.com/reference/android/support/design/widget/TabLayout.html" rel="nofollow noreferrer">TabLayout</a> in my <code>Activity</c...
Im using both a DrawerLayout and a TabLayout in my Activity . However, the TabLayout aligns below the AppBar and Nav menu . I want to get rid of the App name and replace it with the Tabs , as the images below show. How can I achieve this? Here are my xml files for the activity activity_main.xml [CODE] app_bar_main.xml ...
android
-1
2017-05-12T09:03:08.887Z
2,017
5
9
4
56
1
385
83
1
4
true
false
false
false
false
true
negative
44,008,499
Change ListView item color on click back and forth
<p>The situation is, that I have listview, which the user can update by entering name and pressing button and delete the item with a long-click. What I want to do, is to change the ListView's selected items text color on click.</p> <p>I have searched quite alot for answer, but I see people making a new "color" directo...
The situation is, that I have listview, which the user can update by entering name and pressing button and delete the item with a long-click. What I want to do, is to change the ListView's selected items text color on click. I have searched quite alot for answer, but I see people making a new "color" directory, adding ...
java|android|listview
0
2017-05-16T17:59:32.530Z
2,017
5
17
1
56
1
616
50
3
1
true
false
false
false
false
false
zero
44,061,448
when ever i rum my appilication i get this error
<p>Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check.</p> <blockquote> <p>Failed to create MD5 hash for file 'D:\Workspace\18.05.2017\cloudfy_B2B\app\build\intermediates\transforms\dex\debug\folders\1000\10000\instant-run...
Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check. Failed to create MD5 hash for file 'D:\Workspace\18.05.2017\cloudfy_B2B\app\build\intermediates\transforms\dex\debug\folders\1000\10000\instant-run_9af49a37f5fd0a1122f7dcfc3...
android
-2
2017-05-19T04:25:06.487Z
2,017
5
4
4
56
1
350
48
1
0
false
false
false
false
false
true
negative
44,120,800
Get calendar events from google business account
<p>At this moment I can get events from a calendar using a Gmail account without any inconvenience. For this I use a <code>AccountChooser</code> and <code>GoogleAccountCredential</code> to obtain the information and permissions necessary to synchronize correctly in an android application. But when I try to use a google...
At this moment I can get events from a calendar using a Gmail account without any inconvenience. For this I use a AccountChooser and GoogleAccountCredential to obtain the information and permissions necessary to synchronize correctly in an android application. But when I try to use a google business account (xxxxx@busi...
java|android|google-calendar-api
0
2017-05-22T19:33:42.417Z
2,017
5
19
0
56
1
588
48
3
0
false
false
false
false
false
false
zero
44,198,007
using camera.hardware reduces image quality
<p>I have been following two links to create custom camera for my application. I have been successful in opening the camera. The problem is that it reduces that image quality. The links I have been following are these:</p> <p><a href="http://www.coderzheaven.com/2011/12/28/how-to-create-a-custom-layout-for-your-camera...
I have been following two links to create custom camera for my application. I have been successful in opening the camera. The problem is that it reduces that image quality. The links I have been following are these: http://www.coderzheaven.com/2011/12/28/how-to-create-a-custom-layout-for-your-camera-in-android/ http://...
android|camera|android-camera|android-image
0
2017-05-26T09:23:17.520Z
2,017
5
9
4
56
1
567
43
4
2
true
false
false
false
false
false
zero
44,224,920
How android application and web application working?
<p>I'm a little confused because I couldn't understand how android application working at the same time with web application . for example I have a web site and I wanna have a android app for my website and how can i programming at the same time , can i build my android app with php ?? this is the main question i have ...
I'm a little confused because I couldn't understand how android application working at the same time with web application . for example I have a web site and I wanna have a android app for my website and how can i programming at the same time , can i build my android app with php ?? this is the main question i have and...
android
-5
2017-05-28T07:42:13.267Z
2,017
5
7
6
56
1
520
52
1
0
false
false
false
false
false
true
negative
44,246,789
SharedPreferences not updated on change, only with app reset?
<p>I am developing an app that displays a rule in relation to card being drawn. The user can set custom rules in the <code>SettingsActivity</code> and this is loaded into the <code>GameActivity</code>. </p> <p>This works no problem, however, if the user decides to change their rules, or reset to default, the only way ...
I am developing an app that displays a rule in relation to card being drawn. The user can set custom rules in the SettingsActivity and this is loaded into the GameActivity . This works no problem, however, if the user decides to change their rules, or reset to default, the only way for this to update in the GameActivit...
android|sharedpreferences
0
2017-05-29T16:18:20.060Z
2,017
5
16
0
56
1
1,086
61
2
2
true
false
false
false
false
false
zero
44,248,646
Whats the name of this UI element
<p>What is the name of the grey, oval notice that is present in the attached screenshot, I'd be willing to bet this is a duplicate but I have not way of checking because I do not know what the design element is called</p> <p><a href="https://i.stack.imgur.com/FD2jX.png" rel="nofollow noreferrer"><img src="https://i.st...
What is the name of the grey, oval notice that is present in the attached screenshot, I'd be willing to bet this is a duplicate but I have not way of checking because I do not know what the design element is called
android|notifications|material-design
0
2017-05-29T18:34:56.233Z
2,017
5
18
0
56
1
214
33
3
0
false
false
false
false
false
false
zero
44,258,644
setOnItemSelectedListener seems to work only the first time the app is launched
<p>I'm using a spinner in the menu of a fragment, load its data in the onCreateView. It works fine when the app is launched,however, the spinner disappears when the user navigates to a different fragment and comes back or when the app is opened the next time.</p> <pre><code> @Override public View onCreateView(LayoutIn...
I'm using a spinner in the menu of a fragment, load its data in the onCreateView. It works fine when the app is launched,however, the spinner disappears when the user navigates to a different fragment and comes back or when the app is opened the next time. [CODE] The moment it goes blank, the onItemSelected isn't getti...
android-fragments|drop-down-menu|android-spinner
0
2017-05-30T09:36:49.177Z
2,017
5
9
1
56
1
445
79
3
1
true
false
false
false
false
false
zero
44,250,339
Android firebase user_dim.user_id==null
<p>why is it always null? why <code>FirebaseAnalytics.getInstance(ctx).setUserId("lalala id's");</code> do not set the id to base? </p> <p>Anyway, I have unique ID's for accounts and I want to sort bigQ firebase analytics by those ID's, but I cant manage to record those ID's somewhere except event it self (which makes...
why is it always null? why FirebaseAnalytics.getInstance(ctx).setUserId("lalala id's"); do not set the id to base? Anyway, I have unique ID's for accounts and I want to sort bigQ firebase analytics by those ID's, but I cant manage to record those ID's somewhere except event it self (which makes query a hell then). What...
android|firebase|firebase-analytics
1
2017-05-29T21:12:05.703Z
2,017
5
21
0
312
1
361
39
3
0
false
false
false
false
false
false
low
44,300,228
JavascriptInterface Android passing arguments
<p>I have a question if i call android function from javascript file and pass arguments to it, all arguments will be passed as Strings?</p> <p>for example </p> <p>Javascript</p> <pre><code>var cars = ["Saab", "Volvo", "BMW"]; API.CreateCars(cars); </code></pre> <p>Android site</p> <pre><code>CreateCars(String[] ca...
I have a question if i call android function from javascript file and pass arguments to it, all arguments will be passed as Strings? for example Javascript [CODE] Android site [CODE] It will be working? Or i should pass cars array as one string and next parse it on android site to array?
javascript|android|interface
2
2017-06-01T06:39:59.187Z
2,017
6
6
3
312
1
288
45
3
2
true
false
false
false
false
false
low
44,250,090
How to store images for android/ios backend
<p>I am trying to implement an api for my dummy mobile app and I am using MySQL and Laravel 5 for that. I want to store images that user posts from mobile client. I wonder, what is the best practice for storing these images. Any help would be appreciated.</p>
I am trying to implement an api for my dummy mobile app and I am using MySQL and Laravel 5 for that. I want to store images that user posts from mobile client. I wonder, what is the best practice for storing these images. Any help would be appreciated.
android|ios|image|laravel-5|backend
0
2017-05-29T20:46:32.763Z
2,017
5
20
0
824
1
252
43
5
0
false
false
false
false
false
false
zero
44,151,644
Android ProgressDialog inside Asynctask and RecyclerView Adapter
<p>guys i have a little problem with my progressDialog. It doesn't work in correct way. My progressDialog is inside RecylerView Adapter because i load many pictures using Glide. It was only way to show progressDialog when i use Glide - if i move progressDialog to Asynctask proExecute and postExecute it only show when d...
guys i have a little problem with my progressDialog. It doesn't work in correct way. My progressDialog is inside RecylerView Adapter because i load many pictures using Glide. It was only way to show progressDialog when i use Glide - if i move progressDialog to Asynctask proExecute and postExecute it only show when doin...
android|android-asynctask|android-recyclerview|progressdialog
1
2017-05-24T07:23:36.983Z
2,017
5
7
2
1,080
1
724
64
4
2
true
false
false
false
false
false
low
44,368,242
GraphView with Date Lables and scrollable
<p>I'm trying to use GraphView library to make the X-axis having data labels and Y-axis having numbers.The problem is I can't make the X-axis to be scrollable when using dates as label. This is the code:</p> <pre><code> Calendar calendar = Calendar.getInstance(); DataPoint[] points = new DataPoint[31]; Rand...
I'm trying to use GraphView library to make the X-axis having data labels and Y-axis having numbers.The problem is I can't make the X-axis to be scrollable when using dates as label. This is the code: [CODE] Any idea what it's wrong?
android|graph|android-graphview
0
2017-06-05T11:45:54.873Z
2,017
6
11
0
1,080
1
233
41
3
1
true
false
false
false
false
false
zero
44,202,260
A lot of spacing between views and margin doesn't do the stuff
<p>I have a HorizontalScrollView with a vertical LinearLayout in it. There I add some custom views of the same type. By default there is a lot of spacing between the views. So I guessed I have to set the margin of my views to 0 or something. But there ist absolutely no result.<br> First I tried to change the margin in ...
I have a HorizontalScrollView with a vertical LinearLayout in it. There I add some custom views of the same type. By default there is a lot of spacing between the views. So I guessed I have to set the margin of my views to 0 or something. But there ist absolutely no result. First I tried to change the margin in the xml...
android|layout|android-linearlayout|margin
0
2017-05-26T12:58:29.963Z
2,017
5
12
4
57
1
472
62
4
2
true
false
false
false
false
false
zero
44,220,443
Visual Studio Creating Android project Error
<p>I am new on Xamarin visual studio and I want to develop an android project but I got this error " Object reference not set to an instance of an object" Actually, I see the error JUST for the C# project and JUST for Android! I can create the project for IOS and Android under F# project!! but For C# Android I got the...
I am new on Xamarin visual studio and I want to develop an android project but I got this error " Object reference not set to an instance of an object" Actually, I see the error JUST for the C# project and JUST for Android! I can create the project for IOS and Android under F# project!! but For C# Android I got the err...
c#|android|visual-studio|visual-studio-2012|xamarin
0
2017-05-27T18:40:49.227Z
2,017
5
18
5
57
1
589
44
5
0
false
false
false
false
false
false
zero
44,275,866
Android- Set time on TimePicker from SharedPrefs ints
<p>I have a TimePicker set in the 24 hour format. I have tried something like this in the onCreate() method of my activity class that uses it, but it doesn't seem to keep the time I change when I back out and reload the activity. Is something wrong with this? Do I need to "submit" the time, if so how?</p> <pre><code>f...
I have a TimePicker set in the 24 hour format. I have tried something like this in the onCreate() method of my activity class that uses it, but it doesn't seem to keep the time I change when I back out and reload the activity. Is something wrong with this? Do I need to "submit" the time, if so how? [CODE]
java|android|sharedpreferences|timepicker|android-sharedpreferences
-1
2017-05-31T04:48:33.727Z
2,017
5
4
2
57
1
306
53
5
1
true
false
false
false
false
true
negative
44,276,046
Timer countdown in Android
<p>Im new to android application development, sorry if i had made any mistakes. How can i start the timer countdown each time when i visit homeActivity as per my code.I appreciate everyone who tried to help me. Thank you.</p> <pre><code>public class homeActivity extends AppCompatActivity { private TextView userEma...
Im new to android application development, sorry if i had made any mistakes. How can i start the timer countdown each time when i visit homeActivity as per my code.I appreciate everyone who tried to help me. Thank you. [CODE]
java|android
-1
2017-05-31T05:02:23.787Z
2,017
5
5
2
57
1
225
26
2
1
true
false
false
false
false
true
negative
44,288,257
Stuck with this issue of eventlistener with list
<p>Have been trying to solve this problem for so long</p> <p>I have a list called datalist in which I am storing data from firebase in order to use it in the recyclerview.</p> <p>But the problem is inside childeventlistener the list is getting updated but before this happens return call is made and it ends up in a nu...
Have been trying to solve this problem for so long I have a list called datalist in which I am storing data from firebase in order to use it in the recyclerview. But the problem is inside childeventlistener the list is getting updated but before this happens return call is made and it ends up in a null list. What shoul...
android|firebase|firebase-realtime-database
-2
2017-05-31T15:02:12.110Z
2,017
5
15
2
57
1
337
48
3
1
true
false
false
false
false
true
negative
44,368,954
Imageview not following finger touch
<p>I want to build an app that has an imageview and it simply follows the finger touch. In other words, the imageview follows the touch of the finger. I have partially achieved this, in the sense that the imageview is following the touch of the finger but the problem is that it is at some offset. The imageview is about...
I want to build an app that has an imageview and it simply follows the finger touch. In other words, the imageview follows the touch of the finger. I have partially achieved this, in the sense that the imageview is following the touch of the finger but the problem is that it is at some offset. The imageview is about an...
android|touch-event|motionevent
0
2017-06-05T12:27:59.463Z
2,017
6
12
0
57
1
515
36
3
2
true
false
false
false
false
false
zero
44,048,045
Difference between: ./gradlew lint and Analyze -> Inspect Code
<p>I have different results from running ./gradlew lint and different ones when I click Analyze -> Inspect Code. Do you know why these differences and how to make it consistent?</p>
I have different results from running ./gradlew lint and different ones when I click Analyze -> Inspect Code. Do you know why these differences and how to make it consistent?
android|android-studio|lint
2
2017-05-18T12:40:08.107Z
2,017
5
12
3
313
1
174
62
3
0
false
false
false
false
false
false
low
44,096,156
Share a Kotlin module with an Android and Desktop project
<p>I have a game that I am working on that uses the LibGDX game framework. Currently the platforms I am targeting are Desktop (PC, Mac, Linux) via a platform independent jar and Android.</p> <p>The project is hosted at <a href="https://github.com/NoxHarmonium/project-whiplash" rel="nofollow noreferrer">https://github....
I have a game that I am working on that uses the LibGDX game framework. Currently the platforms I am targeting are Desktop (PC, Mac, Linux) via a platform independent jar and Android. The project is hosted at https://github.com/NoxHarmonium/project-whiplash Feel free to take a look if you need to. The bulk of the code ...
android|intellij-idea|gradle|libgdx|kotlin
1
2017-05-21T11:10:07.897Z
2,017
5
11
6
569
1
2,961
57
5
1
true
false
false
false
false
false
low
44,200,430
Implement GPS Navigation in Android Application while moving user
<h3>Actually, I want to Add GPS navigation</h3> <p><P>Which shows the direction while User will move with locations in android application, but no source found and I am new to this topic, Please Give me some suggestion or hint for this task, how to use in the application </p></p>
Actually, I want to Add GPS navigation Which shows the direction while User will move with locations in android application, but no source found and I am new to this topic, Please Give me some suggestion or hint for this task, how to use in the application
android|google-maps|mobile|navigation|android-gps
-1
2017-05-26T11:27:14.547Z
2,017
5
11
4
825
1
256
65
5
0
false
false
false
false
false
true
negative
44,061,954
Plot LineChart with the Dynamic Data?
<p>This is the First time i am working with the Graph and its not working.I am able to plot the Static Line Chart but i am not able to plot the Line Chart with the Dynamic Data.How can the Chart be PLotted with the Dynamic Data?</p> <p><strong>fragment_dashboard</strong></p> <pre><code> &lt;com.github.mikephil...
This is the First time i am working with the Graph and its not working.I am able to plot the Static Line Chart but i am not able to plot the Line Chart with the Dynamic Data.How can the Chart be PLotted with the Dynamic Data? fragment_dashboard [CODE] Dashboard [CODE] JSON [CODE] How can the Dynamic Data be plotted in ...
java|android|plot|mpandroidchart
-2
2017-05-19T05:15:34.690Z
2,017
5
5
4
1,081
1
349
37
4
3
true
false
false
false
false
true
negative
44,000,752
sending data from dialogfragment to mysql dataabse using volley
<p>I have a fragement with dialogfragment</p> <p>In the dialogfragment there is an Edit Text and and button</p> <p>I want to send informations from the Edittext of dialogfragment to mysql database when he push the buttom "send" can anyone help me this the code of the fragment m php file works fine and my server als...
I have a fragement with dialogfragment In the dialogfragment there is an Edit Text and and button I want to send informations from the Edittext of dialogfragment to mysql database when he push the buttom "send" can anyone help me this the code of the fragment m php file works fine and my server also i test it with the ...
php|android|mysql
0
2017-05-16T11:54:12.377Z
2,017
5
11
1
58
1
406
63
3
1
true
false
false
false
false
false
zero
44,165,434
Sending string from AndroidLauncher to MyGdxGame
<p>I am trying to create a chess app, I get move information from Bluetooth, then I need to send it to method located in the core class. Also, I need to start a function that is in <code>AndroidLauncher</code> when a button from core class has been clicked.</p> <p><strong>AndroidLauncher:</strong></p> <pre><code>publ...
I am trying to create a chess app, I get move information from Bluetooth, then I need to send it to method located in the core class. Also, I need to start a function that is in AndroidLauncher when a button from core class has been clicked. AndroidLauncher: [CODE] MyGdxGame [CODE] What I need to do is call movefig met...
java|android|libgdx|native
0
2017-05-24T17:53:05.580Z
2,017
5
17
2
58
1
421
48
4
2
true
false
false
false
false
false
zero
44,241,051
When set default card application stop
<p>I have problem with set default card view my application. When I create my card I set go to list with my card. Next click my menu set option default my app is stopped.</p> <p>My error log </p> <blockquote> <p>android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class ...
I have problem with set default card view my application. When I create my card I set go to list with my card. Next click my menu set option default my app is stopped. My error log android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class at android.view.LayoutInflater.infla...
android|xml|android-cardview
1
2017-05-29T11:08:41.867Z
2,017
5
11
0
58
1
1,027
38
3
2
true
false
false
false
false
false
low
44,264,107
Get Team Code from ViewHolder through Intent
<p>I'm trying to get team codes for each Premier League team when I click on a particular team in the League Table in a viewHolder. I've successfully been able to send over the team name and team position through intents from one activity to another. I've hardcoded the team codes to each team in a my Configs Class</p>...
I'm trying to get team codes for each Premier League team when I click on a particular team in the League Table in a viewHolder. I've successfully been able to send over the team name and team position through intents from one activity to another. I've hardcoded the team codes to each team in a my Configs Class I'm not...
android|android-intent|android-viewholder
1
2017-05-30T13:47:52.470Z
2,017
5
13
1
58
1
534
44
3
4
true
false
false
false
false
false
low
44,329,041
<Tag> is not supported in Kitkat version
<p>I'm using <code>&lt;tag&gt;</code> for <code>View</code> in Android. I tried to add multiple tags for Button.</p> <pre><code> &lt;Button android:id="@+id/button" android:layout_width="368dp" android:layout_height="wrap_content" android:text="CLOSE" &gt; ...
I'm using <tag> for View in Android. I tried to add multiple tags for Button. [CODE] I executed my application in Kitkat tablet and Marshmallow tablet. In marshmallow it works fine. But In kitkat it doesn't run. So, I searched on internet related to this topic. In stackoverflow I found one answer that <tag> is supporte...
android|android-layout|android-4.4-kitkat
0
2017-06-02T12:31:22.807Z
2,017
6
12
4
58
1
508
40
3
1
true
false
false
false
false
false
zero
44,233,043
View on top of TextureView: Only Portrait mode works
<p>I'm making an app that overlays a transparent View (CustomView2) over Camera2 video texture view, allowing to draw with fingers on top of camera view.</p> <p>Drawing works when in portrait mode, but nothing happens on landscape mode.</p> <p>I figure my XML is bad.. Can anyone help me with this?</p> <p>here it is:...
I'm making an app that overlays a transparent View (CustomView2) over Camera2 video texture view, allowing to draw with fingers on top of camera view. Drawing works when in portrait mode, but nothing happens on landscape mode. I figure my XML is bad.. Can anyone help me with this? here it is: [CODE]
android|xml|layout|screen-orientation
0
2017-05-28T23:47:17.037Z
2,017
5
23
6
314
1
300
52
4
1
true
false
false
false
false
false
zero
44,340,746
How to filter the logcat by application package name in Android pragmatically?
<p>I have tried following command:</p> <pre><code>// private final String LOGCAT_CMD = "logcat :V *:S"; // private final String LOGCAT_CMD = "logcat | grep "; // private final String LOGCAT_CMD = "logcat :I com.*****.filterlogcat:V *:S"; </code></pre> <p>but its not filter by application package name.</p>
I have tried following command: [CODE] but its not filter by application package name.
android|process|adb|logcat|android-logcat
-2
2017-06-03T05:41:34.003Z
2,017
6
5
5
314
1
86
78
5
1
true
false
false
false
false
true
negative
44,242,475
How to use both the top and the bottom mics of Samsung Galaxy s4?
<p>I am developing and testing an app which does playing a pcm file and recording the sound to a new pcm file at the same time on galaxy s4. I want to use both mics of this phone, but I have found that the data I got in my way are the same. This means the data I get are just replication of the same mic.</p> <p>I used ...
I am developing and testing an app which does playing a pcm file and recording the sound to a new pcm file at the same time on galaxy s4. I want to use both mics of this phone, but I have found that the data I got in my way are the same. This means the data I get are just replication of the same mic. I used the AudioRe...
android
0
2017-05-29T12:26:25.827Z
2,017
5
12
0
570
1
705
65
1
0
false
false
false
false
false
false
zero
44,023,786
How to set AppCompatRadioButton with text on top and change the tint color programatically?
<p>I tried to align text on top in <code>AppCompatRadioButton</code> and changing <code>setSupportButtonTintList</code> programatically. I got successfully aligned the text top with customizing the AppCompatRadioButton. But now setSupportButtonTintList is not working with this, without customizing the setSupportButtonT...
I tried to align text on top in AppCompatRadioButton and changing setSupportButtonTintList programatically. I got successfully aligned the text top with customizing the AppCompatRadioButton. But now setSupportButtonTintList is not working with this, without customizing the setSupportButtonTintList is working properly. ...
android|android-appcompat
0
2017-05-17T11:38:27.480Z
2,017
5
11
2
826
1
374
91
2
2
true
false
false
false
false
false
zero
44,173,839
What is appWidgetIds[] for WidgetProvider? Why always get it's value 0?
<p>my simple code: </p> <pre><code>int[] appWidgetIds= AppWidgetManager.getInstance(getApplication()).getAppWidgetIds(new ComponentName(getApplication(), MyWidgetProvider.class)); Toast.makeText(mContext,"ids:size:"+appWidgetIds.length,Toast.LENGTH_SHORT).show(); MyWidgetProvider myWidget = new MyWidg...
my simple code: [CODE] I run it. but always i get appWidgetIds.length=0; What is appWidgetIds for widget Provider. I am confused about this. If anybody help me. I am very helpful for this. Thanks.
android|widget|android-widget|appwidgetprovider
0
2017-05-25T06:35:06.657Z
2,017
5
6
3
826
1
196
71
4
1
true
false
false
false
false
false
zero
43,951,093
Resources not visible (Xamarin.Android)
<p>I have Xamarin. Android app and after I open project, I don't see any resources </p> <p><a href="https://i.stack.imgur.com/w63AW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w63AW.png" alt="enter image description here"></a></p> <p>I have no idea why so. </p> <p>I make Clean and Rebuild</p> ...
I have Xamarin. Android app and after I open project, I don't see any resources I have no idea why so. I make Clean and Rebuild Maybe someone faced this problem? How I can solve it?
c#|android|xamarin|xamarin.android
0
2017-05-13T08:45:37.693Z
2,017
5
8
5
59
1
181
39
4
0
false
false
false
false
false
false
zero
43,990,016
Robospice as replacement for Async Tasks
<p>I am new to android development, I tried understanding the Robospice library which is very much useful for network tasks, But I am trying to use the Robospice as a replacement for Async Task due to their weak binding to Activity lifecycle.</p> <p>I have created the SpiceService as said in their starter guide: <a hr...
I am new to android development, I tried understanding the Robospice library which is very much useful for network tasks, But I am trying to use the Robospice as a replacement for Async Task due to their weak binding to Activity lifecycle. I have created the SpiceService as said in their starter guide: https://github.c...
android|robospice
0
2017-05-15T22:55:39.157Z
2,017
5
22
0
59
1
605
40
2
0
false
false
false
false
false
false
zero
44,099,120
Google Play 0 supported device
<p>I am trying to upload an update to google play store but after uploading the apk it says 0 supported device.</p> <p>Some of the similar questions are caused by 3rd party libraries but i don't use any new library.</p> <p>I am using v7 appcompat support library. I was using v4 previously and it had no problem with G...
I am trying to upload an update to google play store but after uploading the apk it says 0 supported device. Some of the similar questions are caused by 3rd party libraries but i don't use any new library. I am using v7 appcompat support library. I was using v4 previously and it had no problem with Google Play. I don't...
android|google-play
0
2017-05-21T16:20:21.930Z
2,017
5
16
6
59
1
485
30
2
1
true
false
false
false
false
false
zero
44,109,424
Crouton: use Builder to set custom font and textSize
<p>Crouton library has <code>Builder</code> class that has some methods such as <code>setTextSize()</code>, <code>setFontName()</code> and etc. How can I use this class to change default this library configuration?</p> <p>For example:</p> <pre><code>Crouton.makeText(activity, "HELLO" , Style.ALERT, rootLayout).show()...
Crouton library has Builder class that has some methods such as setTextSize() , setFontName() and etc. How can I use this class to change default this library configuration? For example: [CODE] How can I use a builder for this line?
android|crouton
0
2017-05-22T09:30:09.110Z
2,017
5
9
0
59
1
232
52
2
1
true
false
false
false
false
false
zero
44,126,269
Is there any way to get Google Auth Token, without taking user's permission android
<p>I want to take out the GoogleAuthToken, of the user using following method:</p> <p>private class RetrieveTokenTask extends AsyncTask {</p> <pre><code> @Override protected String doInBackground(String... params) { String accountName = params[0]; String scopes = "oauth2:openid"; String...
I want to take out the GoogleAuthToken, of the user using following method: private class RetrieveTokenTask extends AsyncTask { [CODE] Note: This method successfully gives me the token, BUT THE PROBLEM IS: It asks for user's permission with Allow and Deny for the first time. (which I dont want). Is there any way I can ...
android|google-authentication
-2
2017-05-23T05:11:46.443Z
2,017
5
5
1
59
1
368
83
2
1
true
false
false
false
false
true
negative
44,157,235
Update all content inside Dialog.
<p>I created GridView Gallery inside my Dialog. This gallery have some pages but for now for each one I create separated Dialog. All this Dialogs (gallery pages) different from each other by current progress (for example that I'm on 4/12 page) title and by photos (for each page i load different images). I'm thinking th...
I created GridView Gallery inside my Dialog. This gallery have some pages but for now for each one I create separated Dialog. All this Dialogs (gallery pages) different from each other by current progress (for example that I'm on 4/12 page) title and by photos (for each page i load different images). I'm thinking that ...
android|gridview|dialog|updates|android-gridview
-1
2017-05-24T11:34:55.870Z
2,017
5
11
2
59
1
447
33
5
1
true
false
false
false
false
true
negative
44,221,429
Android Google Play TurnBasedMatch unable to create match from second machine
<p>I am working on a version-controlled Google TurnBasedMatch Android application on two separate machines. </p> <p>What works:</p> <ul> <li><p>Creating matches and taking turns between Gmail 1 and Gmail 2 from devices running the debug app from Machine 1 </p></li> <li><p>Viewing in-progress matches between Gmail 1 ...
I am working on a version-controlled Google TurnBasedMatch Android application on two separate machines. What works: Creating matches and taking turns between Gmail 1 and Gmail 2 from devices running the debug app from Machine 1 Viewing in-progress matches between Gmail 1 and Gmail 2 from devices running the debug app ...
android|google-play-services|google-play-games
0
2017-05-27T20:41:25.843Z
2,017
5
20
5
59
1
1,079
77
3
0
false
false
false
false
false
false
zero
44,230,027
Access phpMyAdmin from every network in Android
<p>I have written an Android code and connected with webserver (phpMyAdmin). Now the problem comes I can only access the server from only one network i.e my own internet,whenever I try to access it from other network it gives me volley.timeout error.</p> <p>Some suggests me to make your server address public and some ...
I have written an Android code and connected with webserver (phpMyAdmin). Now the problem comes I can only access the server from only one network i.e my own internet,whenever I try to access it from other network it gives me volley.timeout error. Some suggests me to make your server address public and some suggests me...
android|phpmyadmin
-1
2017-05-28T17:20:57.667Z
2,017
5
17
6
59
1
472
47
2
1
true
false
false
false
false
true
negative
44,240,667
What kind of animations are there in Android? Precise classification
<p>I am messed with classification and distinguish of Android animation types. Android official site says there are 3 types of animation: property, view and drawable. But I have discovered, that there is 4th kind: transition animation, with its transition framework. And for example, if we apply animation to Activity sc...
I am messed with classification and distinguish of Android animation types. Android official site says there are 3 types of animation: property, view and drawable. But I have discovered, that there is 4th kind: transition animation, with its transition framework. And for example, if we apply animation to Activity scree...
android|animation
-4
2017-05-29T10:49:56.240Z
2,017
5
10
0
59
1
377
68
2
0
false
false
false
false
false
true
negative
44,247,190
Simultaneous execution of several Asynctask not working properly
<p><strong>CURRENT SCENARIO</strong></p> <p>I have a requirement that I have to run an <code>asynctask</code> on click of a button and send some data to the server and don't show any progress to the user. Now if user press the button again a new instance of asynctask will execute without waiting for the previous versi...
CURRENT SCENARIO I have a requirement that I have to run an asynctask on click of a button and send some data to the server and don't show any progress to the user. Now if user press the button again a new instance of asynctask will execute without waiting for the previous version to finish. This I am able to achieve u...
java|android|android-asynctask
0
2017-05-29T16:46:29.427Z
2,017
5
16
0
59
1
1,126
64
3
3
true
false
false
false
false
false
zero
44,337,961
Android: how to call methods of the activity from a listener
<p>I'm using <a href="https://github.com/roughike/BottomBar" rel="nofollow noreferrer">BottomBar</a> in my main activity and I'm following the example code from github where he adds listeners to the tabs:</p> <pre><code>this.bottomBar = (BottomBar) findViewById(R.id.bottomBar); bottomBar.setOnTabSelectListener(new OnT...
I'm using BottomBar in my main activity and I'm following the example code from github where he adds listeners to the tabs: [CODE] It's working perfectly and I see all the toasts. My problem: in my main activity I have two methods which I would like to call depending on the selected tab: [CODE] To do so I trying this, ...
java|android|listener|bottombar
1
2017-06-02T21:56:57.977Z
2,017
6
21
4
59
1
465
60
4
3
true
false
false
false
false
false
low
44,224,688
Android's ViewModel and MVVM
<p>There is a design pattern called MVVM (Model-View-View Model), in which a <strong>View Model</strong> is used as an abstraction of a View. The View Model supposed to expose streams of data to the View and interact with Model's data.</p> <p>However there is a <a href="https://developer.android.com/topic/libraries/ar...
There is a design pattern called MVVM (Model-View-View Model), in which a View Model is used as an abstraction of a View. The View Model supposed to expose streams of data to the View and interact with Model's data. However there is a ViewModel class in Android's framework. Question: does Android's ViewModel have somet...
android|mvvm
5
2017-05-28T07:05:16.380Z
2,017
5
7
6
571
1
369
28
2
0
false
false
false
false
false
false
low
44,237,806
In an Android ConstraintLayout, what is the tools:layout_constraintTop_creator attribute for?
<p>In this code snippet, what does it mean to have the <code>tools:layout_constraintTop_creator</code> attribute set to "1"?</p> <pre><code>&lt;TextView android:text="@string/passenger_label" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/textViewPassengerLabe...
In this code snippet, what does it mean to have the tools:layout_constraintTop_creator attribute set to "1"? [CODE]
android|android-constraintlayout
4
2017-05-29T08:23:20.793Z
2,017
5
8
0
1,595
1
115
93
2
1
true
false
false
false
false
false
low
43,984,186
Why app is not crashing on 6.0 (API23) platform for deprecated getResources().getColor() without support library?
<p>I decided to check what will happen if to run the app for deprecated method excluding support library. I expected it have to crash. I use deprecated <code>getResources().getColor()</code> method for my device's Android 6.0 (API23) platform. Why doesn't it crash? (It's like support library in later platforms to s...
I decided to check what will happen if to run the app for deprecated method excluding support library. I expected it have to crash. I use deprecated getResources().getColor() method for my device's Android 6.0 (API23) platform. Why doesn't it crash? (It's like support library in later platforms to support earlier ones)...
android|deprecated
0
2017-05-15T16:08:50.340Z
2,017
5
16
0
60
1
348
113
2
2
true
false
false
false
false
false
zero
44,006,897
Open activity after log in
<p>Good evening every one</p> <p>I am creating my first android studio app I did sign in part but I have no idea how to open new activity after successful log in. can any one help me </p> <p>this is background task:</p> <pre><code>import android.content.Intent; import android.os.Bundle; import android.support.design...
Good evening every one I am creating my first android studio app I did sign in part but I have no idea how to open new activity after successful log in. can any one help me this is background task: [CODE] this is log in page: [CODE]
android|mysqli|phpmyadmin
0
2017-05-16T16:29:41.883Z
2,017
5
16
1
60
1
232
26
3
2
true
false
false
false
false
false
zero
44,144,140
Android permissions: asking options guide
<p>I apologize in advance for my language and if this thread is a duplicate.</p> <p>I would like to ask for a 'mini-guide' on android permission asking for 6.0+. The problem that I am personally having is some applications I recently released require permissions like <code>internet</code> and <code>external storage</...
I apologize in advance for my language and if this thread is a duplicate. I would like to ask for a 'mini-guide' on android permission asking for 6.0+. The problem that I am personally having is some applications I recently released require permissions like internet and external storage . But the only way I could 'help...
java|android|permissions
1
2017-05-23T20:09:37.593Z
2,017
5
20
1
60
1
1,270
41
3
0
false
false
false
false
false
false
low
44,216,331
Image thumbnails not setting correctly
<p>I am trying to make a file explorer. I achieved it all except that my image thumbnails were loading too slow. So I read that I must move to asynctask and then in post execute update the ui. Before running asynctask I provide a default thumbnail to all my files. In asynctask I take position as parameter because I set...
I am trying to make a file explorer. I achieved it all except that my image thumbnails were loading too slow. So I read that I must move to asynctask and then in post execute update the ui. Before running asynctask I provide a default thumbnail to all my files. In asynctask I take position as parameter because I set ta...
android|image|listview|android-asynctask
-1
2017-05-27T11:31:28.123Z
2,017
5
11
5
60
1
894
38
4
1
true
false
false
false
false
true
negative
44,267,069
Android HttpUrlConnection no error and no result
<p>I did like this. I want to call rest api. 'urlString' is url example. But I can't see anything. No error and No result. How can I do? ( LogManager prints String in Android Monitor logcat).</p> <pre><code>btnCar.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ...
I did like this. I want to call rest api. 'urlString' is url example. But I can't see anything. No error and No result. How can I do? ( LogManager prints String in Android Monitor logcat). [CODE]
android|httpurlconnection
1
2017-05-30T16:07:38.573Z
2,017
5
16
1
60
1
195
48
2
1
true
false
false
false
false
false
low
44,304,845
React native debug logging stucks
<p>I have a link in the back-end, so I fetch a post request to that link and receive a response. When I alert that response it gives a body init and body text in which I receive datas I need. Everything is good. But.. When I enable remote debugging and console.log that response, it gives body init and body blob (and bo...
I have a link in the back-end, so I fetch a post request to that link and receive a response. When I alert that response it gives a body init and body text in which I receive datas I need. Everything is good. But.. When I enable remote debugging and console.log that response, it gives body init and body blob (and both ...
android|debugging|react-native
-1
2017-06-01T10:18:38.757Z
2,017
6
10
3
60
1
409
33
3
1
true
false
false
false
false
true
negative
44,324,304
Host Verifier issue with com.paytm.pgsdk.i
<p>I am facing a Hostname Verifier issue when i upload my app in android playstore.and it says i am using a vulnerable class com.paytm.pgsdk.i. So can anyone tell me what to do now?</p>
I am facing a Hostname Verifier issue when i upload my app in android playstore.and it says i am using a vulnerable class com.paytm.pgsdk.i. So can anyone tell me what to do now?
android|security|hostname|paytm
1
2017-06-02T08:31:09.013Z
2,017
6
8
4
60
1
178
42
4
0
false
false
false
false
false
false
low
43,971,518
Error while installing java in ubuntu 16.04 having Cyberoam Client installed
<p>I'm using <code>Ubuntu 16.04 OS</code> and also linked my pc with <code>Cyberoam</code> client for the security purpose.</p> <p>I'm trying to install java for Android Studio in it and I'm getting following error in terminal :</p> <blockquote> <p>Reading package lists... Done Building dependency tree Readi...
I'm using Ubuntu 16.04 OS and also linked my pc with Cyberoam client for the security purpose. I'm trying to install java for Android Studio in it and I'm getting following error in terminal : Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f inst...
java|android|ubuntu
0
2017-05-15T04:21:12.093Z
2,017
5
4
0
316
1
8,971
76
3
0
false
false
false
false
false
false
zero
44,162,982
EOFException at GsonResponseBodyConverter with errorBody()
<p>I'm following <a href="https://github.com/square/retrofit/blob/master/samples/src/main/java/com/example/retrofit/DeserializeErrorBody.java" rel="nofollow noreferrer">DeserializeErrorBody.java</a> as a guide </p> <p>When I use <code>Converter&lt;ResponseBody, Error&gt; errorConverter</code>, Error being a POJO class...
I'm following DeserializeErrorBody.java as a guide When I use Converter<ResponseBody, Error> errorConverter , Error being a POJO class for my errors, I would get an EOFException trying to do errorConverter.convert(response.errorBody()); with the log being: java.io.EOFException: End of input at line 1 column 1 path$... ...
error-handling|httpresponse|retrofit2|eofexception|android|gson
-1
2017-05-24T15:41:37.983Z
2,017
5
15
2
316
1
573
58
6
0
false
false
false
false
false
true
negative
44,295,245
How can I find the telegram api link?
<p>I want to create a <strong>telegram client</strong> in c# but i can’t find the api link. The bot api has no use for me! It would be really great if somebody could help me and tell me, where i can find it. Thank you! </p>
I want to create a telegram client in c# but i can’t find the api link. The bot api has no use for me! It would be really great if somebody could help me and tell me, where i can find it. Thank you!
c#|xamarin.android|telegram
-2
2017-05-31T21:52:56.230Z
2,017
5
21
2
316
1
198
37
3
0
false
false
false
false
false
true
negative
44,230,465
How to change support package's preferences dialog colors?
<p>I was able to customize the preference's dialog theme without the support package. Since I switched to the support package (my preferences fragment now extends <code>PreferenceFragmentCompat</code> instead of <code>PreferencesFragment</code>) I'm not being able to change the colors.</p> <p>So far I added this to my...
I was able to customize the preference's dialog theme without the support package. Since I switched to the support package (my preferences fragment now extends PreferenceFragmentCompat instead of PreferencesFragment ) I'm not being able to change the colors. So far I added this to my theme: [CODE] // ... [CODE] All I w...
android|android-preferences|android-theme
2
2017-05-28T18:09:11.597Z
2,017
5
18
6
572
1
1,947
58
3
2
true
false
false
false
false
false
low
44,001,645
Google Play App Questions
<p>1) Does google put limit number of downloads for every app ? if no, Will it be more money paid for more downloads?<br> Example :<br> 1000 Downloads --> 1$ here no Taxes from google 1000000 Downloads --> 1000$<br> - Is there any taxes from google 2% for example? 1000000000 Downloads --> 1000000$ - Is there any taxe...
1) Does google put limit number of downloads for every app ? if no, Will it be more money paid for more downloads? Example : 1000 Downloads --> 1$ here no Taxes from google 1000000 Downloads --> 1000$ - Is there any taxes from google 2% for example? 1000000000 Downloads --> 1000000$ - Is there any taxes from google 10%...
android|google-play|publish
-1
2017-05-16T12:35:20.857Z
2,017
5
12
1
61
1
680
25
3
0
false
false
false
false
false
true
negative
44,028,447
Android some time my code give not accurate distance in android?
<p>I have android app in which i am getting distance travelled speed and time some time the app works fine but sometime the app does not give accurate result i am using fused API in locationService class. any suggestions are welcomed. Thanks</p>
I have android app in which i am getting distance travelled speed and time some time the app works fine but sometime the app does not give accurate result i am using fused API in locationService class. any suggestions are welcomed. Thanks
android|google-maps|locationmanager|locationlistener|android-fusedlocation
0
2017-05-17T15:00:18.387Z
2,017
5
15
2
61
1
238
64
5
0
false
false
false
false
false
false
zero
44,086,629
How to implement Serializable using toggle button in android?
<p>I've created a toggle button in my cardView and when the toggle button is pressed it should copy the cardItem to another fragment. I've done this for toggleButton:</p> <pre><code> holder.favButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener(){ @Override public void ...
I've created a toggle button in my cardView and when the toggle button is pressed it should copy the cardItem to another fragment. I've done this for toggleButton: [CODE] and this is where i want to retrieve the values that I've put. [CODE] With what I should replace this to initialize the cardItems? (* only showing ca...
android|android-fragments|pass-by-value|serializable
0
2017-05-20T13:44:43.633Z
2,017
5
13
5
61
1
358
61
4
2
true
false
false
false
false
false
zero
44,118,451
not showing anything in toolbar android app
<p>i want to add items in toolbar but any item that adding, not showing in my app. please help me to solve this</p> <p>my app screenshot: <a href="https://i.stack.imgur.com/E4rDB.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>menu_map.xml is here:</p> <pre><code>&lt;?xml version="1.0"?&gt; &l...
i want to add items in toolbar but any item that adding, not showing in my app. please help me to solve this my app screenshot: enter image description here menu_map.xml is here: [CODE] a part of MapActivity: [CODE] in other activity this toolbar is correct but this activity is not correct and show toolbar without any ...
android|toolbar
0
2017-05-22T17:04:19.097Z
2,017
5
17
0
61
1
352
43
2
2
true
false
false
false
false
false
zero
44,240,846
Key hash not getting verified to login with facebook sdk
<p>I want to use facebook sdk. I have created an app in fb developers console, also created a hash key using </p> <pre><code> C:\Program Files (x86)\Java\jre1.8.0_131\bin&gt;keytool -exportcert -alias androiddebugkey -keystore C:\Users\siddhi jambhale\.android\debug.keystore | "C:\Program Files (x86)\openssl-0.9.8k_X6...
I want to use facebook sdk. I have created an app in fb developers console, also created a hash key using [CODE] Above its showing illegal option but got the key, tried to use this key but not working. As showing illegal option I tried to cut down space between username i.e siddhijambhale. And tried the key I got. But ...
java|android|facebook|key
0
2017-05-29T10:58:39.160Z
2,017
5
10
0
61
1
572
56
4
2
true
false
false
false
false
false
zero
44,334,245
Moving back, then forward to a previous activity: How to maintain contents of editText fields
<p>I've found what looks like the answer to this here - <a href="https://stackoverflow.com/questions/9147981/how-to-maintain-the-previous-state-of-an-activity">How to maintain the previous state of an activity</a> - but I'm looking for a solution which works using OnClickListener code. The code I'm currently using to c...
I've found what looks like the answer to this here - How to maintain the previous state of an activity - but I'm looking for a solution which works using OnClickListener code. The code I'm currently using to call Activities is: [CODE] Here's what I'm doing. The user is taken through four different screens where they in...
java|android|android-activity
0
2017-06-02T17:15:12.407Z
2,017
6
17
4
61
1
1,042
93
3
1
true
false
false
false
false
false
zero
44,344,931
Is it possible to add @Override keyword with conditional define (I mean on some API version only)
<p>I want to override the actionmode. However the base class have now starting at API 23+ the public method onWindowFocusChanged. in my code I override like this </p> <pre><code>@Override public void onWindowFocusChanged(boolean hasWindowFocus) { } </code></pre> <p>but i want also to target api &lt; 23, and in api &...
I want to override the actionmode. However the base class have now starting at API 23+ the public method onWindowFocusChanged. in my code I override like this [CODE] but i want also to target api < 23, and in api < 23 if i call MyObject.onWindowFocusChanged i will receive a E/AndroidRuntime(23165): java.lang.NoSuchMeth...
java|android|methods|overriding
2
2017-06-03T14:25:44.103Z
2,017
6
14
5
61
1
457
97
4
1
true
false
false
false
false
false
low
44,166,829
Flurry Analytics in Xamarin Android
<p>So a bit confused here, it seems as if Flurry does not provide a <code>LogPageView</code> method like the iOS counterpart does. I was wondering how I can achieve the same logic? </p> <p>Here's my iOS code that obviously works: </p> <pre><code> private void FlurryLogPageView() { Flurry.Analytics....
So a bit confused here, it seems as if Flurry does not provide a LogPageView method like the iOS counterpart does. I was wondering how I can achieve the same logic? Here's my iOS code that obviously works: [CODE] We're now porting our app to Android, and upon surprise when I moved these methods to MainActivity , It see...
xamarin.android|flurry|flurry-analytics
0
2017-05-24T19:17:58.650Z
2,017
5
19
2
317
1
724
35
3
1
true
false
false
false
false
false
zero
44,342,485
How can i use two web service methods in the same activity?
<p>I have two methods which are from soap webservice. I am calling them in asyntask that is a superclass of info.java page and tring to get the results in onPost method of asyntask. The calling code of info.java/onCreate is below.</p> <pre><code> try{ PropertyInfo propertyInfo1 = new PropertyInfo(); ...
I have two methods which are from soap webservice. I am calling them in asyntask that is a superclass of info.java page and tring to get the results in onPost method of asyntask. The calling code of info.java/onCreate is below. [CODE] Both of the service methods takes the same properties thats why i gave them same prop...
java|android|web-services|android-asynctask|ksoap2
0
2017-06-03T09:34:42.027Z
2,017
6
9
5
317
1
574
59
5
2
true
false
false
false
false
false
zero
44,177,828
How to figure out which version of com.android.support.test dependencies I need?
<p>I need to write some automated tests in the project I'm working on. So I just copied the required dependencies from some Google's example: </p> <pre><code>androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:runner:0.5' androidTestCompile 'com.android.support.test:ru...
I need to write some automated tests in the project I'm working on. So I just copied the required dependencies from some Google's example: [CODE] The problem I ran into was something you could find in a million questions on SO: [CODE] Here I am not asking about the required versions of the test runner, test rules, and ...
android|android-gradle-plugin|build.gradle|android-support-library|android-espresso
0
2017-05-25T10:09:53.513Z
2,017
5
10
3
573
1
687
80
5
2
true
false
false
false
false
false
zero
44,217,228
Mix-blend-mode: weird (temp) black background during SVG animation on android
<p>I'm spinning a few rectangles atop each other, and their colors interact with using the css's mix-blend-mode. </p> <p>In all browsers it's fine, but on chrome on Android there is a black background that is generated around the svg's rectangle shape while it's rotating. Once it settles into position, the black backg...
I'm spinning a few rectangles atop each other, and their colors interact with using the css's mix-blend-mode. In all browsers it's fine, but on chrome on Android there is a black background that is generated around the svg's rectangle shape while it's rotating. Once it settles into position, the black background disapp...
android|animation|blend|gsap|mix-blend-mode
0
2017-05-27T13:05:19.760Z
2,017
5
13
5
1,085
1
442
77
5
3
true
false
false
false
false
false
zero
43,958,510
Dialog view animates "manually" but not when using an animation
<p>I am trying to apply a custom animation to show and hide a <code>Dialog</code> and have come across a certain problem.</p> <p>A <code>View</code> provides two method for animation which are <code>.animate()</code> which I call a "manual" animation and <code>.startAnimation(Animation animation)</code> which receives...
I am trying to apply a custom animation to show and hide a Dialog and have come across a certain problem. A View provides two method for animation which are .animate() which I call a "manual" animation and .startAnimation(Animation animation) which receives an Animation object. I access the dialog's view by calling ale...
android|animation
0
2017-05-13T22:19:18.037Z
2,017
5
22
5
62
1
844
63
2
1
true
false
false
false
false
false
zero
43,990,022
MaterialDialog won't show after 2nd invokation
<p>I am having issues to comprehend why this, in general, great library called <a href="https://github.com/afollestad/material-dialogs" rel="nofollow noreferrer">Material Dialogs</a> is failing me:</p> <pre><code>private MaterialDialog wifiDialog; @Override public void showWiFiDialog() { if (wifiDialog != null) ...
I am having issues to comprehend why this, in general, great library called Material Dialogs is failing me: [CODE] When calling: showWiFiDialog() -> shows as expected hideWifiDialog() -> hides as expected showWifiDialog() -> sometimes, with a bit of luck hideWifiDialog() -> sometimes, but requires even more luck To sum...
android|android-dialog
0
2017-05-15T22:56:37.340Z
2,017
5
22
0
62
1
487
46
2
1
true
false
false
false
false
false
zero
44,080,211
Android highlight component on rotate
<p>I have a layout in portrait mode with a textview and some buttons that customize the font style of the textview. I would like that by changing the layout orientation to landscape mode, the textview would fill the entire screen.</p> <p>I definitely do not know how to do it. Alternating two activities? Rotate activit...
I have a layout in portrait mode with a textview and some buttons that customize the font style of the textview. I would like that by changing the layout orientation to landscape mode, the textview would fill the entire screen. I definitely do not know how to do it. Alternating two activities? Rotate activity by code a...
android|android-layout|android-studio
1
2017-05-19T23:16:12.577Z
2,017
5
23
4
62
1
385
37
3
0
false
false
false
false
false
false
low
44,089,561
Display output Using Arraylist from string in Android
<p>In this application I need to display check or uncheck name from. I am able to do that successfully. But my output has starting and closing square bracket and commas with every output as shown in figure. I want it to be only name without any square brackets**[]** and commas**,** <a href="https://i.stack.imgur.com/P...
In this application I need to display check or uncheck name from. I am able to do that successfully. But my output has starting and closing square bracket and commas with every output as shown in figure. I want it to be only name without any square brackets**[]** and commas**,** screenshot [CODE]
android|arraylist|textview
0
2017-05-20T18:40:40.403Z
2,017
5
18
5
62
1
297
53
3
1
true
false
false
false
false
false
zero
44,196,996
Google play console.Add new apk.menu publish this app not found
<p><a href="https://i.stack.imgur.com/gCslw.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>i'm added new apk file.when click ready to publish but not found menu publish this app.</p>
enter image description here i'm added new apk file.when click ready to publish but not found menu publish this app.
android|google-play|app-store|apk|publish
-1
2017-05-26T08:29:28.343Z
2,017
5
8
4
62
1
116
63
5
0
false
false
false
false
false
true
negative
44,244,661
Android virtual device cannot start on Windows 7
<p>Whenever I try to create a virtual device in <code>Android Studio</code> it always returns this error:</p> <pre><code>Intel HAXM is required to run this AVD.Enable VT-x in your BIOS security settings. </code></pre> <p>I have installed <code>haxm 6.1.2</code> and it's not working. My computer is with Intel Core i5-...
Whenever I try to create a virtual device in Android Studio it always returns this error: [CODE] I have installed haxm 6.1.2 and it's not working. My computer is with Intel Core i5-2450m CPU. From Intel's website, it shows that it supports virtualization. But I have not been able to figure out how to enable the virtual...
android-studio
0
2017-05-29T14:15:07.553Z
2,017
5
14
0
62
1
328
48
1
1
true
false
false
false
false
false
zero
44,016,057
Which javascript framework works best in mobile app development
<p>I want to know about for the native app development which framework should i choose Reactjs or Tabrisjs.</p> <p>Please explain the advantage and disadvantage of both the frameworks.</p>
I want to know about for the native app development which framework should i choose Reactjs or Tabrisjs. Please explain the advantage and disadvantage of both the frameworks.
android|reactjs|tabris-js
2
2017-05-17T05:08:20.863Z
2,017
5
5
2
318
1
174
63
3
0
false
false
false
false
false
false
low
43,963,729
Adding default widget in android launcher
<p>I am trying launcher3 OSP from git . i have added an widget in default_workspace.xml file but widgets are not shown in home screen by default . Are there any other thing should i do for that ?</p> <p>default_workspace.xml</p> <pre><code>&lt;favorites xmlns:launcher="http://schemas.android.com/apk/res-auto/com.an...
I am trying launcher3 OSP from git . i have added an widget in default_workspace.xml file but widgets are not shown in home screen by default . Are there any other thing should i do for that ? default_workspace.xml [CODE]
android|android-widget|android-launcher
2
2017-05-14T12:11:35.107Z
2,017
5
12
6
574
1
221
41
3
1
true
false
false
false
false
false
low
44,343,646
Issue sending arabic text notification
<p>I am sending notification from my app server. When i am sending english text it s ok but when i send arabic words i got this:</p> <p><a href="https://i.stack.imgur.com/ynAD8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ynAD8.png" alt="enter image description here"></a></p> <p>This is my code ...
I am sending notification from my app server. When i am sending english text it s ok but when i send arabic words i got this: This is my code : [CODE] I have tried to update Content-type to : 'Content-Type: application/json; charset-utf8 ' and added JSON_UNESCAPED_UNICODE to json_encode() But still getting result as th...
php|android|push-notification|arabic
0
2017-06-03T11:54:36.107Z
2,017
6
11
5
574
1
501
38
4
1
true
false
false
false
false
false
zero
44,256,360
Integration test on Gradle 4.0-milestone2
<p>I am migrating a Java library to Gradle <code>4.0-milestone2</code> and I encountered some issues with the integration task defined below.</p> <p>This task allows me to have two different source directories <code>src/test</code> and <code>src/integration</code> and have separate gradle tasks to run them, <code>./gr...
I am migrating a Java library to Gradle 4.0-milestone2 and I encountered some issues with the integration task defined below. This task allows me to have two different source directories src/test and src/integration and have separate gradle tasks to run them, ./gradlew test and ./gradlew integration . Contents of integ...
gradle|android-gradle-plugin|build.gradle|gradlew
2
2017-05-30T07:42:16.947Z
2,017
5
7
1
830
1
688
41
4
3
true
false
false
false
false
false
low
44,363,870
When I change the page orientation it come at the beginning of page
<p>I am using <a href="https://github.com/barteksc/AndroidPdfViewer" rel="nofollow noreferrer">barteksc-AndroidPdfViewer</a>. I am using this code </p> <pre><code>package com.epubtest.hxfy.epubtest; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Canvas; import androi...
I am using barteksc-AndroidPdfViewer . I am using this code [CODE] to change the orientation of the page. But if I have to assume if the portrait mode and page number 15 in change page orientation of the page when we started the landscape. SharedPreferences is not working. It can't keep record last page where we were. ...
java|android|sharedpreferences|pdf-reader
0
2017-06-05T07:30:10.577Z
2,017
6
7
0
830
1
377
67
4
1
true
false
false
false
false
false
zero
44,095,869
ListView missing random values when using 2 different String languages in adapter
<p>I'm using AutoCompleteTextView to make the search easier for the user.</p> <p>The search is possible at any language, but for this example I'll use English and Hebrew (RTL language).</p> <p>As long as I'm using just one language (English or Hebrew) it's work fine, but when the suggestion pop up box has values of b...
I'm using AutoCompleteTextView to make the search easier for the user. The search is possible at any language, but for this example I'll use English and Hebrew (RTL language). As long as I'm using just one language (English or Hebrew) it's work fine, but when the suggestion pop up box has values of both languages it be...
android|right-to-left|android-filterable
0
2017-05-21T10:40:48.050Z
2,017
5
10
6
63
1
953
81
3
1
true
false
false
false
false
false
zero