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
53,584,575
Should I handle a lot of UI on one screen with fragments? [android]
<p>I'm new to android development and I want to know how to properly use fragments and activities. As far as I've learned it's better to make single activity applications and mine is just that. However, I have a lot of UI on my screen. The app is supposed to be a simple 3D editor with basic functionalities where I hav...
I'm new to android development and I want to know how to properly use fragments and activities. As far as I've learned it's better to make single activity applications and mine is just that. However, I have a lot of UI on my screen. The app is supposed to be a simple 3D editor with basic functionalities where I have a ...
android|user-interface|android-activity|fragment
0
2018-12-02T21:00:59.447Z
2,018
12
21
6
40
1
673
67
4
0
false
false
false
false
false
false
zero
53,608,319
Passing data to react-native from native with proguard
<p>Without proguard=true following is WritableMap which is passed to React native.</p> <pre><code>{isDone:true} </code></pre> <p>And I enable obfuscation</p> <pre><code>{a:true} </code></pre> <p>I want pro guard not to touch this class. What to add in proguard file?</p>
Without proguard=true following is WritableMap which is passed to React native. [CODE] And I enable obfuscation [CODE] I want pro guard not to touch this class. What to add in proguard file?
react-native|obfuscation|android-proguard
0
2018-12-04T08:08:24.007Z
2,018
12
8
1
40
1
190
54
3
2
true
false
false
false
false
false
zero
53,707,533
JSONObjectRequest can't fill object with data
<p>I'm trying to fill an object with a data I read from a JSON url. </p> <pre><code> public JSONHandler(final ImageButton canli, final ImageButton indie, final ImageButton easy, final ImageButton karisik, final ImageButton rock) { request = new JsonObjectRequest(Request.Method.GET, url, null, new Re...
I'm trying to fill an object with a data I read from a JSON url. [CODE] I'm using this structure for filling ImageButton and other things. As you can see I can only fill the buttons etc. inside my method. Is it a way to take the channel1 object in my method and save it for use situations later?
java|android|android-volley
0
2018-12-10T14:15:46.460Z
2,018
12
14
0
40
1
295
45
3
1
true
false
false
false
false
false
zero
53,787,603
Can't get data out of method or in other activities on android app
<p>I'm trying to store data from the user that logs into the app in a class so I can use all it's data in all activities.</p> <p>I've followed a couple of guide on serializable but I can't get it to work.</p> <p>This function calls the user object from my api:</p> <pre><code>public void GetGame(String UID){ Stri...
I'm trying to store data from the user that logs into the app in a class so I can use all it's data in all activities. I've followed a couple of guide on serializable but I can't get it to work. This function calls the user object from my api: [CODE] Now when I try to get the username or any other data from my currentu...
java|android|android-volley
0
2018-12-14T22:18:00.983Z
2,018
12
22
4
40
1
635
66
3
2
true
false
false
false
false
false
zero
53,616,213
What's the usage of the observable emitted by retrywhen() in rxjava2?
<p>I know that if the Observable emits a piece of data, it resubscribes, and if the Observable emits an onError notification, it passes that notification to the observer and terminates. The problem is that if I emit a Obervable.just(1,2),but it won't be accept by the observer.So what's the usage of it?Dose it just tell...
I know that if the Observable emits a piece of data, it resubscribes, and if the Observable emits an onError notification, it passes that notification to the observer and terminates. The problem is that if I emit a Obervable.just(1,2),but it won't be accept by the observer.So what's the usage of it?Dose it just tell it...
java|android|rx-java2|retrywhen
1
2018-12-04T15:25:58.653Z
2,018
12
15
1
296
1
462
69
4
1
true
false
false
false
false
false
low
53,681,899
Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference...in Fragment
<p>How to pass data from RecyclerView of fragment to another fragment.i getting error. when I start the app, the app crash within 5 seconds with the message<br> <strong>My RecyclerView of fragment..</strong></p> <pre><code> @Override public void onBindViewHolder(final MyViewHolder holder, final int position) { fi...
How to pass data from RecyclerView of fragment to another fragment.i getting error. when I start the app, the app crash within 5 seconds with the message My RecyclerView of fragment.. [CODE] New Fragment [CODE]
java|android|android-fragments|nullpointerexception
0
2018-12-08T11:05:06.227Z
2,018
12
11
5
808
1
210
138
4
2
true
false
false
false
false
false
zero
53,737,303
Listening to Firestore Websocket
<p>Can we listen to Firestore Web socket that is used by Firestore to connect to internet? The idea is to sense the status of Web socket that helps to identify if internet is working or not?</p> <p>Thanks in advance for your help.</p>
Can we listen to Firestore Web socket that is used by Firestore to connect to internet? The idea is to sense the status of Web socket that helps to identify if internet is working or not? Thanks in advance for your help.
android|google-cloud-firestore
0
2018-12-12T06:31:35.137Z
2,018
12
6
2
1,064
1
220
32
2
0
false
false
false
false
false
false
zero
53,442,314
Ionic 3 android permissions internet
<p>I'm writing an app that sends requests to a REST API.</p> <p>The <strong>API calls work in the web browser</strong>, but not in the emulator and not on a device.</p> <p>Ionic CLI 4.4.0</p> <p>Cordova 8.1.2</p> <p>What i did:</p> <p>I use android-permissions like on this <a href="https://ionicframework.com/docs/...
I'm writing an app that sends requests to a REST API. The API calls work in the web browser , but not in the emulator and not on a device. Ionic CLI 4.4.0 Cordova 8.1.2 What i did: I use android-permissions like on this side : app.modules.ts [CODE] api-call.ts [CODE] The target device (device and emulator in AVD manage...
cordova|ionic-framework|ionic3|android-permissions|ionic-native
1
2018-11-23T07:27:55.037Z
2,018
11
7
4
3,880
1
1,204
36
5
4
true
false
true
false
false
false
low
53,362,022
i want to stop current playing audio when user click on next play button
<p>I am facing problem in my app. All the audios are playing well but the problem is when I press on the first button to start playing audio, it plays it and if I click on next play button that also starts playing but the first audio does not stop. how to stop that. please help</p> <p><a href="https://i.stack.imgur.co...
I am facing problem in my app. All the audios are playing well but the problem is when I press on the first button to start playing audio, it plays it and if I click on next play button that also starts playing but the first audio does not stop. how to stop that. please help Here, my app java code : [CODE] ... [CODE]
java|android
1
2018-11-18T14:37:15.937Z
2,018
11
14
6
41
1
318
72
2
2
true
false
false
false
false
false
low
53,363,285
how to make an android app that downloads dynamic forms from mysql database and uploading them the record after filling them?
<p>im making an android-based data collection app similar to ODKcollect as a college project and im not that good so..</p> <p>1-how to make a web service and connect my app to mysql database and which language is better for a web-service (PS:my data maycontain images)</p> <p>2-how to make dynamic form templates then ...
im making an android-based data collection app similar to ODKcollect as a college project and im not that good so.. 1-how to make a web service and connect my app to mysql database and which language is better for a web-service (PS:my data maycontain images) 2-how to make dynamic form templates then retrieving them fro...
android|mysql
0
2018-11-18T16:53:01.210Z
2,018
11
16
6
41
1
366
125
2
0
false
false
false
false
false
false
zero
53,382,825
Android Project Import to Eclipse does not show Project name in Import Projects window but rather 'PTPlayer' - the project is not importing correctly
<p>I have created a game in Buildbox which I've exported to Android. Upon importing this project to Eclipse (Import -> Existing Android Code into Workspace -> Browse for folder) the project does not appear, but rather the directory under 'Project to Import', and 'PTPlayer' under 'New Project Name' (<a href="https://i.s...
I have created a game in Buildbox which I've exported to Android. Upon importing this project to Eclipse (Import -> Existing Android Code into Workspace -> Browse for folder) the project does not appear, but rather the directory under 'Project to Import', and 'PTPlayer' under 'New Project Name' ( as per this screenshot...
android|eclipse|import|project|buildbox
0
2018-11-19T21:22:24.227Z
2,018
11
21
0
41
1
775
149
5
0
false
false
false
false
false
false
zero
53,428,730
How i can set the Searchbar Inative and User click on this for open a Dialog
<p>My Question is how can i Build in Android C# an SreachView this is off by but Show and any User click on this a Dialog open and asked the User to give her ok.</p> <p>I work in a Fragment</p> <pre><code>SearchView searchView; searchView = (SearchView)View.FindViewById(Resource.Id.MenuSearchitem); searchView.ClearFo...
My Question is how can i Build in Android C# an SreachView this is off by but Show and any User click on this a Dialog open and asked the User to give her ok. I work in a Fragment [CODE] thats all fine, but nothing work for click on the searchbar and no dialog is open. follow ways i have used IOnFocusChangeListener and...
c#|android|searchview
0
2018-11-22T10:21:08.750Z
2,018
11
10
3
41
1
373
76
3
1
true
false
false
false
false
false
zero
53,458,131
Why in specific range same image is duplicating in recyclerview?
<p>I'm trying to develop android application which can load images from the url in to RecyclerView With the help of Picasso library. But the problem comes that after some sequence "in my case after every 6 image" same image is duplicating in recyclerview. I'm added some code </p> <pre><code>@Override public int getIte...
I'm trying to develop android application which can load images from the url in to RecyclerView With the help of Picasso library. But the problem comes that after some sequence "in my case after every 6 image" same image is duplicating in recyclerview. I'm added some code [CODE] in my adapter but this is not working fo...
android|android-recyclerview|picasso|recyclerview-layout
0
2018-11-24T12:26:48.190Z
2,018
11
12
5
41
1
414
64
4
2
true
false
false
false
false
false
zero
53,483,709
RecyclerView-How to know if there is 5 items to scroll?
<p>I load data from internet and i'm doing pagination.</p> <p>I use this code to load more data:</p> <pre><code>recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState) { super.onScro...
I load data from internet and i'm doing pagination. I use this code to load more data: [CODE] But this only works when recycler view reachjes the bottom and i think this might confuse the user. I want to load more data when 5 item left. How to do that?
android|android-recyclerview
0
2018-11-26T14:52:29.053Z
2,018
11
14
0
41
1
252
55
2
1
true
false
false
false
false
false
zero
53,523,611
RecylverView not able to send messages after onClick
<p>I have integrated a simple messaging service in my application. I am the first stage where I can only send messages and not receive. The problem is that when I try to send a message, my <code>send_button</code> does not do anything. I am using a custom <code>MessagesAdapter</code> and sending static <code>messages</...
I have integrated a simple messaging service in my application. I am the first stage where I can only send messages and not receive. The problem is that when I try to send a message, my send_button does not do anything. I am using a custom MessagesAdapter and sending static messages that appear when the user goes to th...
java|android|android-recyclerview
0
2018-11-28T16:06:26.267Z
2,018
11
16
2
41
1
489
52
3
3
true
false
false
false
false
false
zero
53,529,449
Shared Preferences Deleting Data When App Is Reloaded
<p>I am creating my first project using Android Studio, I am aiming to create an app where you can load photos in from the phones memory and display them so people can see. </p> <p>I've managed to get it working sort of how I want it to, the pictures in the gallery stay where they should do when I close out of the app...
I am creating my first project using Android Studio, I am aiming to create an app where you can load photos in from the phones memory and display them so people can see. I've managed to get it working sort of how I want it to, the pictures in the gallery stay where they should do when I close out of the app and then re...
android|android-studio
0
2018-11-28T23:05:30.660Z
2,018
11
23
2
41
1
676
53
2
2
true
false
false
false
false
false
zero
53,575,512
Long time delay receiving volume change notification
<p>I have an app that I'm updating from a very old version to Android Pie. It responds to changes in phone ringer volume when the user presses the side key. My code is below. My targetSdkVersion is 28</p> <p>I've got two hardware devices. On the Marshmallow Galaxy S3, everything works fine, but on the Pie Pixel 2 ...
I have an app that I'm updating from a very old version to Android Pie. It responds to changes in phone ringer volume when the user presses the side key. My code is below. My targetSdkVersion is 28 I've got two hardware devices. On the Marshmallow Galaxy S3, everything works fine, but on the Pie Pixel 2 device, sometim...
android|service
0
2018-12-01T22:14:38.113Z
2,018
12
22
5
41
1
666
52
2
1
true
false
false
false
false
false
zero
53,584,639
How to add all predefined languages into a ListPreference dynamically?
<p>I have ListPreference for selecting languages. The current trnalsations are defined in their own strings.xml as seen in the image. To fill the preference list i include the string-array elements inside the main strings.xml, making it a static configuration. </p> <p>Question: Is there any way to make the Language Li...
I have ListPreference for selecting languages. The current trnalsations are defined in their own strings.xml as seen in the image. To fill the preference list i include the string-array elements inside the main strings.xml, making it a static configuration. Question: Is there any way to make the Language ListPreference...
android|translation
0
2018-12-02T21:08:09.370Z
2,018
12
21
6
41
1
535
70
2
2
true
false
false
false
false
false
zero
53,601,996
CalandarView get user selected date
<p>[enter image description here][1][enter image description here][2]Hey guys I need some help I'm working on a basic calander app and I'm having some trouble retrieving a date. When I save the date it saves the current date, not the user selected date. So my question is: What is the proper way to retrieve a date from ...
[enter image description here][1][enter image description here][2]Hey guys I need some help I'm working on a basic calander app and I'm having some trouble retrieving a date. When I save the date it saves the current date, not the user selected date. So my question is: What is the proper way to retrieve a date from a C...
java|android|android-studio
0
2018-12-03T21:15:47.033Z
2,018
12
21
0
41
1
544
35
3
1
true
false
false
false
false
false
zero
53,604,420
Is there a way to get the list of resources deleted by shrinkResources?
<p>As the title states, is there a way to know what resources was deleted by shrinkResources?</p> <p>Thanks in advance :)</p>
As the title states, is there a way to know what resources was deleted by shrinkResources? Thanks in advance :)
android|shrinkresources
0
2018-12-04T01:31:07.910Z
2,018
12
1
1
41
1
111
71
2
0
false
false
false
false
false
false
zero
53,616,758
How can we call one fragment from another class that doesn't contain that fragment?
<p>I am having one activity class : <strong>IdeaBoxActivity</strong> Here is the layout code of the activity-</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android...
I am having one activity class : IdeaBoxActivity Here is the layout code of the activity- [CODE] I have added some fragments in the IdeaBoxActivity . I have added the fragments using following method- [CODE] Among these fragments one is : IdeasFragment I have another activity which named: HappyWallActivity From this Ac...
java|android|android-activity|fragment|adapter
-1
2018-12-04T15:53:55.243Z
2,018
12
15
1
41
1
589
83
5
3
true
false
false
false
false
true
negative
53,729,665
MergeSort and insertionSort combination Algorithm running slower together than separately but should run faster
<p>I have a mergesort which needs to switch into insertionSort at a specific number, which is my threshold. But my threshold can only be 1, 2 or 3 because in any other cases my mergesort becomes very slow. I cant seem to get the Code to work together.</p> <p>Here is my code:</p> <pre><code>public class InsertionSort ...
I have a mergesort which needs to switch into insertionSort at a specific number, which is my threshold. But my threshold can only be 1, 2 or 3 because in any other cases my mergesort becomes very slow. I cant seem to get the Code to work together. Here is my code: [CODE]
java|android|algorithm|mergesort
0
2018-12-11T17:48:16.927Z
2,018
12
17
1
41
1
272
111
4
1
true
false
false
false
false
false
zero
53,754,883
How to make table width to be just large enough to fit its content
<pre><code>&lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/table1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:stretchColumns="1"&gt; &lt;TableRow&gt; &lt;EditText android:id="@+id/editText" ...
[CODE] This is my xml. when I run the app, the second edit box just ignore its size and fill all width to reach screen boundary. How can I fix editbox sizes in table row and center them like this pic
android|android-layout|android-layout-weight
0
2018-12-13T04:06:51.187Z
2,018
12
4
3
41
1
199
66
3
1
true
false
false
false
false
false
zero
53,574,670
Libgdx Dialog Box is Small
<p>I make a dialog box but it was very small (everything is small (Buttons,texts)) how can I enlarge the dialogue box?</p> <p>My codes:</p> <pre><code> Skin uiSkin = new Skin(Gdx.files.internal("skin/cloud-form-ui.json")); Dialog dialog = new Dialog("Warning", uiSkin, "dialog") { public v...
I make a dialog box but it was very small (everything is small (Buttons,texts)) how can I enlarge the dialogue box? My codes: [CODE]
java|android|libgdx
0
2018-12-01T20:14:32.153Z
2,018
12
20
5
297
1
132
26
3
1
true
false
false
false
false
false
zero
53,733,618
How to get newest SDK version for Buildozer
<p>I rebuilt Ubuntu and I don't have my old SDK files. I used <code>~/.buildozer/android/platform/android-sdk-20/tools/android</code> in my terminal to try downloading them via the SDK manager (as seen in the picture shows) but I only see the SDK targeting APIs of 19 and lower.</p> <p>How do I get the latest SDK? Than...
I rebuilt Ubuntu and I don't have my old SDK files. I used ~/.buildozer/android/platform/android-sdk-20/tools/android in my terminal to try downloading them via the SDK manager (as seen in the picture shows) but I only see the SDK targeting APIs of 19 and lower. How do I get the latest SDK? Thank you in advance!
android|sdk|kivy|buildozer
0
2018-12-11T22:59:37.077Z
2,018
12
22
1
297
1
313
43
4
0
false
false
false
false
false
false
zero
53,451,165
Why crash-free Statistics not appearing in some app flavours?
<p>I'm currently migrating Crashlytics from Fabric to Firebase. I generated some crashes for all my app flavours to test it. When I checked Firebase, the crashes appear listed on all flavours' tables but not all of the crash-free statistics show the graph. Some flavours do, some don't. The ones that don't, show the "ma...
I'm currently migrating Crashlytics from Fabric to Firebase. I generated some crashes for all my app flavours to test it. When I checked Firebase, the crashes appear listed on all flavours' tables but not all of the crash-free statistics show the graph. Some flavours do, some don't. The ones that don't, show the "make ...
android|firebase|crashlytics|crashlytics-android
6
2018-11-23T17:58:58.807Z
2,018
11
17
4
2,089
1
558
61
4
0
false
false
false
false
false
false
medium
53,359,680
Ormlite change order of query
<p>I have create a query in orm lite like this :</p> <pre><code>TAbleA.queryBuilder() .where() .eq("col1", Wait) .or() .eq("col2", Fail) .and() .isNull("col3") ...
I have create a query in orm lite like this : [CODE] it prepare this query : [CODE] but I want to change it to : [CODE] how can I do it ?! I want to change AND and OR order. can Someone help me?
java|android|sqlite|ormlite
0
2018-11-18T10:00:58.193Z
2,018
11
10
6
42
1
194
29
4
3
true
false
false
false
false
false
zero
53,361,846
How do I change the size of the full text of the program?
<p>I have a setting layout to change my appearance app. I want to put a SeekBar to change all of text size in my app. But I don't know what to do to get it done. I would appreciate if you guide me.</p>
I have a setting layout to change my appearance app. I want to put a SeekBar to change all of text size in my app. But I don't know what to do to get it done. I would appreciate if you guide me.
android|android-studio|text-size
0
2018-11-18T14:16:32.803Z
2,018
11
14
6
42
1
194
57
3
0
false
false
false
false
false
false
zero
53,421,985
sqllite database returning only last value multiple times
<p>i've been having some trouble with sql lite where the database returns only the last value entered times the number of rows it currently has when I query for it.</p> <p>I'm trying to retrieve the list of locations from a table that holds them.</p> <pre><code> public List&lt;Location&gt; getSavedLocations() { L...
i've been having some trouble with sql lite where the database returns only the last value entered times the number of rows it currently has when I query for it. I'm trying to retrieve the list of locations from a table that holds them. [CODE] Here is an image of the logcat results Logcat results last location entered ...
android|sqlite
0
2018-11-21T23:41:43.597Z
2,018
11
23
2
42
1
430
57
2
1
true
false
false
false
false
false
zero
53,425,829
How to get All Registered users, not only my contact lists on Firebase in my code
<p>I have this FetchMyUsersService Class, This class gets only users on my contact list, how i can get all Firebase users ? Please Help.</p> <p>This is my Code</p> <p>This is Dont written by me.</p> <p>I Have more classes, but i think this my solution in this class, If not just tell me i share another classes on thi...
I have this FetchMyUsersService Class, This class gets only users on my contact list, how i can get all Firebase users ? Please Help. This is my Code This is Dont written by me. I Have more classes, but i think this my solution in this class, If not just tell me i share another classes on this project [CODE]
android|firebase|firebase-realtime-database
-1
2018-11-22T07:27:39.140Z
2,018
11
7
3
42
1
309
81
3
1
true
false
false
false
false
true
negative
53,456,737
Prevent listView item ImageButton from changing state on scroll. And prevent other ImageButtons from changing state due to one ImageButton
<p>I'm creating a <em>DataSet_Collector</em> kind of app where a user is displayed his conversation threads in <code>ListView</code>. The user selects spam threads. Those Threads will be sent to an excel sheet. Then the rest of the threads(The non spam) are shown and the user selects those threads that he wants to send...
I'm creating a DataSet_Collector kind of app where a user is displayed his conversation threads in ListView . The user selects spam threads. Those Threads will be sent to an excel sheet. Then the rest of the threads(The non spam) are shown and the user selects those threads that he wants to send. So far I've displayed ...
android|listview
0
2018-11-24T09:11:10.157Z
2,018
11
9
5
42
1
1,279
138
2
1
true
false
false
false
false
false
zero
53,493,421
Assigning an android property to an XML file with slight modifications
<p>This might be something basic, but I was unable to find the solution anywhere. So, suppose I had an <code>.xml</code> file called <code>properties.xml</code> in the drawable folder. Say it looks something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;selector xmlns:android="http://schem...
This might be something basic, but I was unable to find the solution anywhere. So, suppose I had an .xml file called properties.xml in the drawable folder. Say it looks something like this: [CODE] If I have multiple buttons in my activity_main.xml , and I want them all to have their background set to properties.xml , i...
android|xml|android-studio|markup
0
2018-11-27T05:42:29.213Z
2,018
11
5
1
42
1
609
70
4
1
true
false
false
false
false
false
zero
53,501,530
Updating resources in installed android application
<p>I've created a webview app which floats a html file that's inserted into the app(assets folder). Is there anyway to update this html file without updating the apk file?</p> <p>I won't be uploading this app to play store. I'll be putting the html file in my web server so that the app can detect if there is a new htm...
I've created a webview app which floats a html file that's inserted into the app(assets folder). Is there anyway to update this html file without updating the apk file? I won't be uploading this app to play store. I'll be putting the html file in my web server so that the app can detect if there is a new html version a...
android|android-studio
-1
2018-11-27T14:07:47.617Z
2,018
11
14
1
42
1
363
51
2
0
false
false
false
false
false
true
negative
53,508,045
SharedPreferences putting in null values inside ValueEventListener
<p>I am trying find the match of right node in my Firebase database and save the values to SharedPreferences. I iterate through each node in Firebase with a ValueEventListener. But when I try to print out the values I have just put into the SharedPreferences, it shows null for all fields. </p> <p>I have already checke...
I am trying find the match of right node in my Firebase database and save the values to SharedPreferences. I iterate through each node in Firebase with a ValueEventListener. But when I try to print out the values I have just put into the SharedPreferences, it shows null for all fields. I have already checked to see if ...
android|firebase|firebase-realtime-database|sharedpreferences|event-listener
0
2018-11-27T20:58:28.653Z
2,018
11
20
1
42
1
1,107
66
5
2
true
false
false
false
false
false
zero
53,523,365
Build a String based on an Object with null values
<p>I have my custom Object "Obersvation". This object has some values that could be null. Now I want to create a String based on those values, ignoring the null ones.</p> <p>Right now I am doing something like this:</p> <pre><code>val myList = arrayListOf&lt;String&gt;() if (observation.country != null) myList.add(o...
I have my custom Object "Obersvation". This object has some values that could be null. Now I want to create a String based on those values, ignoring the null ones. Right now I am doing something like this: [CODE] This way, I check which values are null and only if they are not null I add it to my list. Then I proceed t...
android|kotlin|stringbuilder
1
2018-11-28T15:53:17.390Z
2,018
11
15
2
42
1
512
50
3
1
true
false
false
false
false
false
low
53,577,584
YouTube video won't stop on tab activity in android studio
<p>I created an app with four tabs, Home, Video Channel, Facebook Page and About Us. In video channel tab and Facebook page I used Web View...I choose video channel tab and played some videos, but when I select Facebook page tab, the video in video channel tab did not stop. How to correct this bug? Thank you</p> <p><a...
I created an app with four tabs, Home, Video Channel, Facebook Page and About Us. In video channel tab and Facebook page I used Web View...I choose video channel tab and played some videos, but when I select Facebook page tab, the video in video channel tab did not stop. How to correct this bug? Thank you enter image d...
android
-1
2018-12-02T05:08:31.447Z
2,018
12
5
6
42
1
335
58
1
0
false
false
false
false
false
true
negative
53,599,283
Letting Service class know check permission has been added in Fragment
<p>So now I am developing a program that uses GPS and typically you when requesting a location we need to add <code>requestPermissions</code> . But since I am requesting this location from a service class and one cannot request permission from a service class, I've added it in my fragment class. But now the problem is ...
So now I am developing a program that uses GPS and typically you when requesting a location we need to add requestPermissions . But since I am requesting this location from a service class and one cannot request permission from a service class, I've added it in my fragment class. But now the problem is that how do i le...
java|android|gps|location
0
2018-12-03T17:59:16.940Z
2,018
12
17
0
42
1
475
70
4
2
true
false
false
false
false
false
zero
53,607,585
MediaManager.addCompletionHandler doesn't work on Android
<p>I have another issue with <code>MediaManager</code>, I am trying to implement background music loop, and to achieve that I obviously use <code>addCompletionHandler</code>:</p> <pre><code>backgroundMedia = MediaManager.createBackgroundMedia(mediaPath); MediaManager.addCompletionHandler(backgroundMedia, this); backgr...
I have another issue with MediaManager , I am trying to implement background music loop, and to achieve that I obviously use addCompletionHandler : [CODE] this code works in Simulator but doesn't work on the real Android device (6.0, 8.1) Before that, I have tried to achieve the same with regular MediaManager.createMed...
android|codenameone
1
2018-12-04T07:17:03.463Z
2,018
12
7
1
42
1
709
57
2
1
true
false
false
false
false
false
low
53,655,261
where to save the downloaded data?
<p>I download big json files 8x(2mb) and used Gson to convert them into java objects. Now I need to make these objects available to all the activities. is it safe to save them as static variables? </p>
I download big json files 8x(2mb) and used Gson to convert them into java objects. Now I need to make these objects available to all the activities. is it safe to save them as static variables?
java|android|json|api|static
-2
2018-12-06T16:01:03.130Z
2,018
12
16
3
42
1
193
34
5
0
false
false
false
false
false
true
negative
53,670,854
Changing TextView of individual items in a ListView
<p>I am in the making of a shopping list using a ListView with custom items with the posibility of increasing the amount of that item and also decreasing the amount. </p> <p>At the moment, I get the right amount of items when I load them in to the shopping list, as can seen in the image below:</p> <p><a href="https:/...
I am in the making of a shopping list using a ListView with custom items with the posibility of increasing the amount of that item and also decreasing the amount. At the moment, I get the right amount of items when I load them in to the shopping list, as can seen in the image below: the image of the ListView and proble...
java|android
-1
2018-12-07T13:46:07.753Z
2,018
12
13
4
42
1
1,092
51
2
2
true
false
false
false
false
true
negative
53,675,689
ListView adapter switches seekbars position while scrolling
<p>I am developing chat app with three different chat messages text ,photo and audio messages my problem now with audio message which consists of button , <em>textview</em> and seekbar so when button clicked seekbar and textview get updated.</p> <pre><code> //global variables Context context; ImageLoader imag...
I am developing chat app with three different chat messages text ,photo and audio messages my problem now with audio message which consists of button , textview and seekbar so when button clicked seekbar and textview get updated. [CODE] strong text and i am updating my seekbar like this ... [CODE] strong text Now my se...
android
0
2018-12-07T19:25:23.627Z
2,018
12
19
4
42
1
663
59
1
2
true
false
false
false
false
false
zero
53,504,915
Google Analytics screen views has value while sessions is zero
<p>I am creating a custom report for Behavior -> screens Report. I want to track the Screen views and sessions. I found out that for some screens, the screen has <code>screen views</code> and <code>unique screen views</code>, but the <code>sessions</code> value is zero. </p> <p><a href="https://i.stack.imgur.com/4WbD4...
I am creating a custom report for Behavior -> screens Report. I want to track the Screen views and sessions. I found out that for some screens, the screen has screen views and unique screen views , but the sessions value is zero. Why does this happen? and does it make sense? I want to track the screen views per session...
android|google-analytics|google-analytics-firebase
0
2018-11-27T17:18:47.963Z
2,018
11
17
1
298
1
357
62
3
0
false
false
false
false
false
false
zero
53,530,410
Selector not working on click button effect
<p>I would like to change the background color of an itemviewholder when its clicked. To that I tried to use "selector" and "state_pressed" on it but is not working.</p> <p>In this test code I tried to do that with a button and a linearlayout just to test. I'm doing this way because in my real code the itemviewholder ...
I would like to change the background color of an itemviewholder when its clicked. To that I tried to use "selector" and "state_pressed" on it but is not working. In this test code I tried to do that with a button and a linearlayout just to test. I'm doing this way because in my real code the itemviewholder will be ins...
java|android|android-layout|onclick
1
2018-11-29T01:07:57.313Z
2,018
11
1
3
298
1
602
43
4
4
true
false
false
false
false
false
low
53,428,196
Android menu Item can not be fit to its parent layout
<p>when action_layout_avl layout is calling its width is fit the parent but when it is included in menu as actionLayout, the width just cover half of the parent page.</p> <p><strong>below is menu Item:</strong> </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;menu xmlns:android="http://schemas.andro...
when action_layout_avl layout is calling its width is fit the parent but when it is included in menu as actionLayout, the width just cover half of the parent page. below is menu Item: [CODE] below is action_layout_avl layout [CODE] Normally the behavior of the layout should not change when it is calling inside menu ite...
java|android-studio|layout|menu|drawerlayout
0
2018-11-22T09:53:38.257Z
2,018
11
9
3
810
1
407
53
5
2
true
false
false
false
false
false
zero
53,385,555
how to use json back slash In Android(Java)
<p>I'm new to Android.</p> <p>I want to convert below Swift code to Android(Java). I tryed putting two backSlash in Java but code has error.</p> <p>How can I convert Swift to Java below code? Please help me.</p> <p>In Swift</p> <pre><code>let body = "{\"to\":\"\(token)\",\"notification\":{\"body\":\"\(message)\",\"...
I'm new to Android. I want to convert below Swift code to Android(Java). I tryed putting two backSlash in Java but code has error. How can I convert Swift to Java below code? Please help me. In Swift [CODE]
java|android|ios|swift
2
2018-11-20T02:55:20.753Z
2,018
11
2
1
43
1
206
43
4
1
true
false
false
false
false
false
low
53,466,349
Drag and drop only works on first
<p>I have a map of nodes and a circle that can be moved around the nodes using drag and drop. However, after a node has been used and the circle is moved it can no longer be moved back to the same node unless I rotate the screen, resetting everything. Why is this the case?</p> <p>Secondly on a practical level, do I ne...
I have a map of nodes and a circle that can be moved around the nodes using drag and drop. However, after a node has been used and the circle is moved it can no longer be moved back to the same node unless I rotate the screen, resetting everything. Why is this the case? Secondly on a practical level, do I need to recre...
android|user-interface
0
2018-11-25T09:50:32.967Z
2,018
11
9
6
43
1
720
33
2
2
true
false
false
false
false
false
zero
53,503,150
underlying text in string in android
<p>this is my string.xml</p> <pre><code>&lt;string name="terms_condition"&gt; Accept the &lt;u&gt;Terms &amp;amp; Conditions&lt;/u&gt;&lt;/string&gt; </code></pre> <p>this is mytextview</p> <pre><code>&lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns...
this is my string.xml [CODE] this is mytextview [CODE] i am using this code for display underline text but there is no space between two string. how keep space between two text and how to reduce underline? in below screen you can see underline problem.
android
0
2018-11-27T15:40:23.167Z
2,018
11
15
1
43
1
252
36
1
2
true
false
false
false
false
false
zero
53,609,446
Setting a repeating Alarm by using services
<p>As i want to implement the set repeat alarm in my project,I didn't get proper code.Please suggest some links.</p> <p>I referred many links, but just single alarm only showing selecting date and time.</p> <p>Even application in background also i want to implement the alarm repeat.</p> <p><a href="https://i.stack.i...
As i want to implement the set repeat alarm in my project,I didn't get proper code.Please suggest some links. I referred many links, but just single alarm only showing selecting date and time. Even application in background also i want to implement the alarm repeat. Attached images
android|alarm
-2
2018-12-04T09:20:14.127Z
2,018
12
9
1
43
1
282
43
2
0
false
false
false
false
false
true
negative
53,663,776
Recycle view adapter how i highlighted single item on click
<p>I'm using recycler view and I implement this functionality as per project requirement. But in my case item is highlighted but not unhighlighted again. I was confused where I click the item for creating the clicking functionality, and how to unhighlighted the item. Please suggest me the right way to solve the code</p...
I'm using recycler view and I implement this functionality as per project requirement. But in my case item is highlighted but not unhighlighted again. I was confused where I click the item for creating the clicking functionality, and how to unhighlighted the item. Please suggest me the right way to solve the code [CODE...
java|android|android-recyclerview
0
2018-12-07T05:30:37.960Z
2,018
12
5
4
43
1
321
59
3
1
true
false
false
false
false
false
zero
53,679,035
adding to recyclerview from fragment and deleting from recyclerview from inside recyclerview
<p>hello everyone I have a fragment and I can add all of the elements into the recyclerview with no problem. Then if I delete from inside the recyclerview everything is fine. but then after I delete something it seems that the item that I deleted from the adapters list isn't deleted from the fragments list that I passe...
hello everyone I have a fragment and I can add all of the elements into the recyclerview with no problem. Then if I delete from inside the recyclerview everything is fine. but then after I delete something it seems that the item that I deleted from the adapters list isn't deleted from the fragments list that I passed i...
java|android|android-recyclerview
0
2018-12-08T02:39:50.333Z
2,018
12
2
5
43
1
906
92
3
2
true
false
false
false
false
false
zero
53,703,639
I am new In android here is my CustomAdaptor for listview with search option to show three column without api only connected with server
<p>I am new in android. I am connecting with server Mysql not using any API. This is my <code>MachineSearch</code> code. In this <code>list3.get(position)</code> gives me previous list like without filter old data.</p> <p>Everythings works perfect, but when I search, I got Previous <code>List3</code> data. On search,...
I am new in android. I am connecting with server Mysql not using any API. This is my MachineSearch code. In this list3.get(position) gives me previous list like without filter old data. Everythings works perfect, but when I search, I got Previous List3 data. On search, I got new filter data, but When I click I get old....
android
0
2018-12-10T10:22:14.170Z
2,018
12
10
0
43
1
435
136
1
2
true
false
false
false
false
false
zero
53,741,951
Picasso image does not display in circle view
<p>The user profile-picture does not display in Circle Image View inside the Fragment. When a user uploads image, the upload and crop image features work, and the image also gets uploaded onto the Firebase database. But it does not display in the user's profile. </p> <p>Here is the code of the class in which the imag...
The user profile-picture does not display in Circle Image View inside the Fragment. When a user uploads image, the upload and crop image features work, and the image also gets uploaded onto the Firebase database. But it does not display in the user's profile. Here is the code of the class in which the image is uploaded...
android-fragments|picasso|android-image|circleimage
1
2018-12-12T11:21:40.060Z
2,018
12
11
2
43
1
328
45
4
1
true
false
false
false
false
false
low
53,778,976
How to get a toggle button from saved preferences and save states twice?
<p>I'm having trouble trying to get my sound to play, the code the play the second boolean value, and im wondering if the save is having trouble or something.. I have a variable set as a private static int that can be changed between 1 and 2. After then I have a SharedPreferences editor changing the values, then third ...
I'm having trouble trying to get my sound to play, the code the play the second boolean value, and im wondering if the save is having trouble or something.. I have a variable set as a private static int that can be changed between 1 and 2. After then I have a SharedPreferences editor changing the values, then third I h...
java|android|save|toggle
0
2018-12-14T11:34:34.100Z
2,018
12
11
4
43
1
967
72
4
4
true
false
false
false
false
false
zero
53,421,321
What is the purpose of this code in Firebase auth?
<p>I looked at the FirebaseUI sign-in methods. on the first page of the explanation there is a "Sign in with a pre-built UI" as shown here: <a href="https://firebase.google.com/docs/auth/android/firebaseui" rel="nofollow noreferrer">Easily add sign-in to your Android app with FirebaseUI</a>. This page contains the foll...
I looked at the FirebaseUI sign-in methods. on the first page of the explanation there is a "Sign in with a pre-built UI" as shown here: Easily add sign-in to your Android app with FirebaseUI . This page contains the following code: [CODE] And then [CODE] But, when I look at their example of the how to authenticate wit...
android|firebase|firebase-authentication
0
2018-11-21T22:28:11.640Z
2,018
11
22
2
299
1
564
50
3
2
true
false
false
false
false
false
zero
53,757,665
Runtime app localization doesn't work with app bundles
<p>I have different string values for different languages. At runtime, the user can choose another language. minSdkVersion 21</p> <p>I am updating the Locale with these methods</p> <pre><code>public static Context setNewLocale(Context c, String language) { persistLanguage(c, language); // persists new language in...
I have different string values for different languages. At runtime, the user can choose another language. minSdkVersion 21 I am updating the Locale with these methods [CODE] And have a BaseActivity where I've overridden attachBaseContext , every activity extends it. [CODE] And also have overridden in BaseApplication [C...
android
2
2018-12-13T08:21:44.427Z
2,018
12
8
3
299
1
554
54
1
3
true
false
false
false
false
false
low
53,791,571
androidx FILE_PROVIDER_PATHS
<p>How to migrate FileProvider to androidx?</p> <p>In the manifest file, how to specify the FileProvider?</p> <pre><code>&lt;provider android:authorities="${applicationId}.FileProvider" android:name="which.package.to.put.here.FileProvider" android:enabled="true" android:...
How to migrate FileProvider to androidx? In the manifest file, how to specify the FileProvider? [CODE] I tried to use androidx.core.content.FileProvider, but I got this error: [CODE]
android-fileprovider|androidx
2
2018-12-15T10:41:05.500Z
2,018
12
10
5
5,931
1
182
28
2
2
true
false
true
false
false
false
low
53,383,643
How to assure that a button is only clicked a "n" times?! android studio
<p>this is a game, and this game have a certain number of rounds, i want to click that button only the number of rounds the player selected.</p> <p>this is my function, that saves the last 2 words from a input string, and shows on a textfield, i just want to run this function the number of "introndas"... i tried addin...
this is a game, and this game have a certain number of rounds, i want to click that button only the number of rounds the player selected. this is my function, that saves the last 2 words from a input string, and shows on a textfield, i just want to run this function the number of "introndas"... i tried adding that last...
java|android|android-studio|button
1
2018-11-19T22:36:45.530Z
2,018
11
22
0
44
1
437
72
4
1
true
false
false
false
false
false
low
53,475,710
How to create a list of spinners?
<p>I have a list that dynamically grows with the push of a button. Inside each list item I would like to have spinners (drop down menu's). I have already created the dynamic list (code below) but am not sure how to make a list of spinners. Also, how would I retrieve the selected data from all the spinners?</p> <pre><c...
I have a list that dynamically grows with the push of a button. Inside each list item I would like to have spinners (drop down menu's). I have already created the dynamic list (code below) but am not sure how to make a list of spinners. Also, how would I retrieve the selected data from all the spinners? [CODE] XML [COD...
android|android-studio|android-spinner
-1
2018-11-26T06:23:47.540Z
2,018
11
6
0
44
1
375
33
3
2
true
false
false
false
false
true
negative
53,481,820
When changing the background of app from java when a menu is clicked it doesn't take the right color
<p>I am trying to change the color of the background app when I click a menu for example change background black. The color it is changing for the first time into transparent so like grey and than stays blue.</p> <p>I want if the color is red to take red and other colors. This is my code.</p> <pre><code> mPopupMenu =...
I am trying to change the color of the background app when I click a menu for example change background black. The color it is changing for the first time into transparent so like grey and than stays blue. I want if the color is red to take red and other colors. This is my code. [CODE] colors [CODE] styles [CODE]
java|android|xml
0
2018-11-26T13:08:00.310Z
2,018
11
13
0
44
1
314
100
3
3
true
false
false
false
false
false
zero
53,550,507
Sleep function not lagging in front of AI's turn
<p>I need to add an artificial pause before my AI plays its turn on the tic tac toe board. However, when I try to use something like Thread.sleep, in the location where I have the comment, the entire onClick function lags. What I mean by lagging is that the ((Button) v).setText("0") does not set the button text to 0 fo...
I need to add an artificial pause before my AI plays its turn on the tic tac toe board. However, when I try to use something like Thread.sleep, in the location where I have the comment, the entire onClick function lags. What I mean by lagging is that the ((Button) v).setText("0") does not set the button text to 0 for t...
java|android|android-studio|tic-tac-toe
0
2018-11-30T02:45:15.680Z
2,018
11
2
4
44
1
658
48
4
1
true
false
false
false
false
false
zero
53,558,307
Can I remove Assignable attribute from an id field in ObjectBox
<p>The question is about ObjectBox db version 2.2.0</p> <p>Can I remove <code>assignable = true</code> attribute from the field that is already in prod in case if we haven't put any custom numbers there and basically they are auto-assignable? Will it migrate correctly? What are the risks?</p> <pre><code>@Id(assignabl...
The question is about ObjectBox db version 2.2.0 Can I remove assignable = true attribute from the field that is already in prod in case if we haven't put any custom numbers there and basically they are auto-assignable? Will it migrate correctly? What are the risks? [CODE] to [CODE]
android|objectbox
0
2018-11-30T13:15:28.667Z
2,018
11
13
4
44
1
283
63
2
2
true
false
false
false
false
false
zero
53,587,260
AndroidStudio about HttpURLConnection
<p>This is my method!</p> <pre><code>private String logInActivity() { String userID = idText.getText().toString(); String userPW = pwText.getText().toString(); final String SERVER = "http://115.145.241.151:8080/AndroidCommunication/LoginActivity.jsp"; if (userID != null &amp;&amp; userPW != null) {...
This is my method! [CODE] I'm just practicing HttpURLConnection( by GET METHOD). I know i shouldn't send passwords or ids like this way but i'm just practicing my exercise. But I just don't get why this goes to an Exception. Please help! I didn't type my addresses or anything wrong because I tried it, and server was on...
android-studio|httpurlconnection
0
2018-12-03T03:58:04.203Z
2,018
12
3
0
44
1
413
37
2
2
true
false
false
false
false
false
zero
53,624,139
bluetooth beacon still running in background even the app is closed android
<p>I'm using library from <a href="https://github.com/adriancretu/beacons-android" rel="nofollow noreferrer">https://github.com/adriancretu/beacons-android</a>. The beacon still running on background even I close the app. Pls help!</p>
I'm using library from https://github.com/adriancretu/beacons-android . The beacon still running on background even I close the app. Pls help!
android
0
2018-12-05T02:08:27.437Z
2,018
12
2
2
44
1
142
75
1
0
false
false
false
false
false
false
zero
53,673,078
Problem with scrolling listview and custom adapter
<p>I try create a scrollable <code>listview</code> with one button. </p> <p>This is my <code>lis_issue.xml</code> file.</p> <pre><code> &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" andr...
I try create a scrollable listview with one button. This is my lis_issue.xml file. [CODE] And here is activity with this listview [CODE] I create custom adapter class for my listview . [CODE] In onCreate method for activity I wrote [CODE] And I wrote an observer for listview changes [CODE] When I was using listview wit...
android|scroll|android-listview
0
2018-12-07T16:06:10.100Z
2,018
12
16
4
44
1
462
50
3
5
true
false
false
false
false
false
zero
53,725,212
Nested LinearLayout does not align to parent ScrollView?
<p>I have a fragment with two horizontal Buttons (<strong>yellow</strong> = <em>fragment_test_button_container</em>) at the bottom of my fragment. I would like to use the remaining area (<strong>red</strong> = <em>fragment_test_scrollview</em>) for a ScrollView <a href="https://i.stack.imgur.com/vnbab.png" rel="nofollo...
I have a fragment with two horizontal Buttons ( yellow = fragment_test_button_container ) at the bottom of my fragment. I would like to use the remaining area ( red = fragment_test_scrollview ) for a ScrollView It is reuiqred that my ScrollView consist of one layout ( turquoise = fragment_test_check ) only . This can t...
android-layout|android-fragments|android-linearlayout|android-constraintlayout
0
2018-12-11T13:31:53.270Z
2,018
12
13
1
44
1
665
56
4
1
true
false
false
false
false
false
zero
53,738,209
How to show income in intent string array at recyclerview android?
<p>In my application I have draft messages which I can edit. Some of my drafts include attachments which I try to send to my edit activity and show it at recyclerview. In general I have managed to send my string arraylist and get it at my activity. But I can't show my attached files, especially their names at the recyc...
In my application I have draft messages which I can edit. Some of my drafts include attachments which I try to send to my edit activity and show it at recyclerview. In general I have managed to send my string arraylist and get it at my activity. But I can't show my attached files, especially their names at the recycler...
java|android|android-intent|android-recyclerview
0
2018-12-12T07:41:51.027Z
2,018
12
7
2
44
1
1,741
66
4
12
true
false
false
false
false
false
zero
53,786,522
I have a custom edittext I made with XML only that in the KITKAT version it gets with the black background
<p>This is the custom edittext XML code</p> <pre><code>&lt;shape xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;stroke android:width="1dp" android:color="@android:color/darker_gray"/&gt; &lt;corners android:radius="90dp"/&gt; &lt;padding android:top="5dp" android:bottom="5dp" android:le...
This is the custom edittext XML code [CODE] edittext xml code [CODE] follows the style being used in edittext [CODE] Above the Android Lollipop it stays as it has to be, like this: click here to see the image In android kitkat it gets all bugged the edittext bakground turns black: click here to see the image
android|xml|android-studio|android-layout|android-4.4-kitkat
1
2018-12-14T20:31:17.150Z
2,018
12
20
4
44
1
309
106
5
3
true
false
false
false
false
false
low
53,506,359
Add a new table with different sqlhelper class file in helper in android studio
<p>I have already created a database and a table in it. Now I want to add another table in the database with new table in it.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><co...
I have already created a database and a table in it. Now I want to add another table in the database with new table in it. [CODE] Another one is:- [CODE] I want to know how to add the table with this in the existing database. It includes some upgrade section to be modified and I am not able to find it. I am new to andr...
android|sqlite
0
2018-11-27T18:54:44.107Z
2,018
11
18
1
300
1
439
79
2
2
true
false
false
false
false
false
zero
53,601,743
Appium: Having a single test for Android and iOS
<p>I'm using Ionic 3 to write a small mobile app. Currently, it only builds an apk for Android. I would like to write Appium tests for it, but it seems that you cannot write one test for both platforms, Android and iOS, because the only way to select element from an Android app is via something like driver.findElements...
I'm using Ionic 3 to write a small mobile app. Currently, it only builds an apk for Android. I would like to write Appium tests for it, but it seems that you cannot write one test for both platforms, Android and iOS, because the only way to select element from an Android app is via something like driver.findElementsByC...
android|ios|ionic3|appium
2
2018-12-03T20:56:33.990Z
2,018
12
20
0
300
1
637
48
4
0
false
false
false
false
false
false
low
53,768,598
SQLite query to select one row and return it with 2 next rows
<p>my database looks like this</p> <pre><code>ID SSID BSSID RSSI 1. ABCD ab:cd:17 -68 2. efgh cd:as:25 -60 3. ijkl cs:gb:d6 -75 4. abcd dc:5g:f4 -72 .... 518. ABCD ab:cd:17 -68 519. asfd ag:4g:32 -60 520. aasd...
my database looks like this [CODE] I'm trying to create a function which selects row based on the input parameters of the function and return this row with 2 next rows. What I've done so far is that the function returns the record with matching parameters. [CODE] The result I'm looking for is, for example if mac parame...
android|sql|sqlite
1
2018-12-13T19:10:46.413Z
2,018
12
19
3
1,068
1
743
61
3
3
true
false
false
false
false
false
low
53,391,692
How to View Adapter1, Adapter2, Adapter3 in a Single ListView Note I use Xamarin
<p>How to View Adapter1, Adapter2, Adapter3 in a Single ListView Note I use Xamarin</p> <pre><code>listViewDrInfo.Adapter = new HomeScreenAdapter(this, tableItems); listViewDrInfo.Adapter = new HomeScreenAdapter3(this, tableItemsWorkTime); listViewDrInfo.Adapter = new HomeScreenAdapter2(this, tableItemsInfo)...
How to View Adapter1, Adapter2, Adapter3 in a Single ListView Note I use Xamarin [CODE]
c#|xamarin|xamarin.android
0
2018-11-20T11:09:26.587Z
2,018
11
11
1
45
1
87
80
3
1
true
false
false
false
false
false
zero
53,535,068
Android - fragments/custom views and layout width/height
<p>When I create a layout for my fragment or my custom view I must define <code>layout_width</code> and <code>layout_height</code>. When I use this fragment or view in another layout, I must also define <code>layout_width</code> and <code>layout_height</code>.</p> <p>Let's say that the root element of my fragment/view...
When I create a layout for my fragment or my custom view I must define layout_width and layout_height . When I use this fragment or view in another layout, I must also define layout_width and layout_height . Let's say that the root element of my fragment/view layout has layout_height="match_parent" and when I use this ...
android
0
2018-11-29T08:54:14.180Z
2,018
11
8
3
45
1
745
56
1
0
false
false
false
false
false
false
zero
53,557,385
Close Activity on closing PlacePicker
<p>As I understand, PlacePicker is a widget that comes on top of an Activity or Fragment. <br/><br/> I want to handle the back button to close the activity as well as the PlacePicker when I click on it. <br/></p> <p><a href="https://i.stack.imgur.com/tgFZB.png" rel="nofollow noreferrer">PlacePicker with Default Androi...
As I understand, PlacePicker is a widget that comes on top of an Activity or Fragment. I want to handle the back button to close the activity as well as the PlacePicker when I click on it. PlacePicker with Default Android Navigation at the bottom Right now, when I press the back button the PlacePicker closes first and ...
android|google-places-api|google-places
0
2018-11-30T12:13:46.627Z
2,018
11
12
4
45
1
496
37
3
1
true
false
false
false
false
false
zero
53,612,981
rawQuery Android development
<p>I created my database and I am trying to get from my table the count of all fields in which the boolean value is true, count them and group them by key. When I run this query in mysql, it works. Also if I run the query as <code>String query = "SELECT "+LATITUDE+", "+LONGIT...
I created my database and I am trying to get from my table the count of all fields in which the boolean value is true, count them and group them by key. When I run this query in mysql, it works. Also if I run the query as String query = "SELECT "+LATITUDE+", "+LONGITUDE+", COUNT(*) FROM "+CHECKED_IN_TABLE+" GROUP BY "+...
android|sqlite
1
2018-12-04T12:25:44.657Z
2,018
12
12
1
45
1
537
28
2
1
true
false
false
false
false
false
low
53,616,227
Rating() is not public in 'android.media.Rating.' Cannot be assessed from outside package
<pre><code>@Override public void onPositiveButtonClicked(int value, @NotNull String comments) { Rating rating = new Rating(String.valueOf(value), comments); } </code></pre> <p>I have a red color word Rating. It tells me: </p> <blockquote> <p>Rating() is not public in `android.media.Rating.' Cannot be assessed f...
[CODE] I have a red color word Rating. It tells me: Rating() is not public in `android.media.Rating.' Cannot be assessed from outside package in onPositiveButtonClicked method. How can I solve this ?
android
1
2018-12-04T15:26:35.990Z
2,018
12
15
1
45
1
199
89
1
1
true
false
false
false
false
false
low
53,667,465
Uncaught Error: Can't resolve all parameters for UpdatePasswordPage: ([object Object], [object Object], [object Object], [object Object], ?)
<p>All These imported correctly, in </p> <pre><code>import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { Config } from '../../config/config'; import { LoadingController } from 'ionic-angular'; import { MenuController } from 'ionic-angular'; import { ...
All These imported correctly, in [CODE] Page Constructor is, [CODE] Now, In the Error, the ? is for the last object which dbService. there are some other pages which coded similarly and working file. every provider is working well, only this is not working on this particular page. Note, Page is included in app.module.t...
android|cordova|ionic-framework
0
2018-12-07T10:17:01.997Z
2,018
12
10
4
45
1
541
140
3
5
true
false
false
false
false
false
zero
53,711,099
Android HttpGet deprecated how to login to aspx site with HttpURLConnection
<p>I have an app which makes a login to a aspx website. The app worked fine with HTTPGet. But if I try to login with HttpURLConnection, I cannot get it working. What do I do wrong.</p> <p>Thanks in advance for your help</p> <pre><code>public String getViewState( String viewStateUrl) throws URISyntaxException, IOExce...
I have an app which makes a login to a aspx website. The app worked fine with HTTPGet. But if I try to login with HttpURLConnection, I cannot get it working. What do I do wrong. Thanks in advance for your help [CODE]
android
0
2018-12-10T17:54:42.180Z
2,018
12
17
0
45
1
216
75
1
1
true
false
false
false
false
false
zero
53,763,998
individual activities include API call can I use fragment to reduce the activity
<p>In my App for Tablet! welcome activity, login activity, registration activity, password activity, starter activity with viewPager, Message to send activity, scanning activity, fill in form details activity, payment activity its about 25 activities with 25 layouts, 30 XML in Drawable for components background and fe...
In my App for Tablet! welcome activity, login activity, registration activity, password activity, starter activity with viewPager, Message to send activity, scanning activity, fill in form details activity, payment activity its about 25 activities with 25 layouts, 30 XML in Drawable for components background and few im...
android|android-layout|android-fragments|android-activity
0
2018-12-13T14:23:49.237Z
2,018
12
14
3
45
1
623
80
4
0
false
false
false
false
false
false
zero
53,735,579
android lint false alarm on missing permissions
<p>Android lint keep reporting Missing Permissions even though I added @RequiresPermission on my method. Code is:</p> <pre><code> @NonNull @RequiresPermission(Manifest.permission.READ_CONTACTS) public static Map&lt;String, Integer&gt; selectContactVersions(@Nullable Collection&lt;String&gt; contactIds) { ...
Android lint keep reporting Missing Permissions even though I added @RequiresPermission on my method. Code is: [CODE] Error report is: [CODE] Did I miss something here?
java|android|android-permissions|android-lint|android-securityexception
0
2018-12-12T03:21:41.610Z
2,018
12
3
2
813
1
168
47
5
2
true
false
false
false
false
false
zero
53,426,342
AWS AmazonSNSClient instance fails to perform any work
<p>I have web services running on Elastic Beanstalk. I am trying to add SNS to it for mobile push notification. I have successfully tested it from AWS console.</p> <p>I instantiated AmazonSNSClient and it is not null. However any method call such as listEndpointsByPlatformApplication, createPlatformEndpoint, publish e...
I have web services running on Elastic Beanstalk. I am trying to add SNS to it for mobile push notification. I have successfully tested it from AWS console. I instantiated AmazonSNSClient and it is not null. However any method call such as listEndpointsByPlatformApplication, createPlatformEndpoint, publish etc. appears...
amazon-web-services|firebase-cloud-messaging|publish|android-push-notification
0
2018-11-22T08:05:07.497Z
2,018
11
8
3
46
1
490
54
4
1
true
false
false
false
false
false
zero
53,449,555
Method injection dagger2 null exception when asking for the dependency
<p>Hi i'm trying to use method injection with dagger 2 and im getting null pointer exception when using the injected dependency i tried removing the @provide annotation and extracted the DialogManger in separate module here</p> <pre><code>@Module </code></pre> <p>public class DialogManagerModule {</p> <pre><code>Con...
Hi i'm trying to use method injection with dagger 2 and im getting null pointer exception when using the injected dependency i tried removing the @provide annotation and extracted the DialogManger in separate module here [CODE] public class DialogManagerModule { [CODE] } [CODE] } and here how i called the component [CO...
android|dagger-2
0
2018-11-23T15:45:54.510Z
2,018
11
15
4
46
1
323
70
2
4
true
false
false
false
false
false
zero
53,492,795
Recylerview with header showing data but minus 1
<p>So i have three records, but when i trying to show it via my android app it is only showing two . </p> <p>Here is my adapter for my recylerview</p> <pre><code> public class Sales_header_adapter extends RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt; { private static final int TYPE_HEADER = 0; privat...
So i have three records, but when i trying to show it via my android app it is only showing two . Here is my adapter for my recylerview [CODE] from my getItemCount i get 3 . how can i fix it , thanks in advance . Reference Is there an addHeaderView equivalent for RecyclerView?
android
-1
2018-11-27T04:31:33.783Z
2,018
11
4
1
46
1
277
48
1
1
true
false
false
false
false
true
negative
53,573,379
Xamarin: How to Reference a ScrollView Inside OnPageFinished?
<p>I'm trying to listen for a WebView finishing LoadUrl using OnPageFinished inside a WebViewClient class and then fire ScrollTo on a ScrollView. The code compiles but my app crashes when it loads, and there's no exception thrown in debug.</p> <pre><code>public class MyWebViewClient : WebViewClient { public overr...
I'm trying to listen for a WebView finishing LoadUrl using OnPageFinished inside a WebViewClient class and then fire ScrollTo on a ScrollView. The code compiles but my app crashes when it loads, and there's no exception thrown in debug. [CODE] and here's how my Activity looks: [CODE] What am I doing wrong? The whole pr...
android|class|user-interface|xamarin.android|scrollview
0
2018-12-01T17:37:27.330Z
2,018
12
17
5
46
1
398
61
5
2
true
false
false
false
false
false
zero
53,576,370
Spinner not filled with ArrayAdapter
<p>So my spinner isn't being filled programatically:</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_first_boot__language_selection, container, false); setupSpin...
So my spinner isn't being filled programatically: [CODE] However I cannot for the life of me figure out why not? I would fill it via XML, however this code doesn't include other functions that I had added. For instance, in setupSpinner, I had added the onClickListener event, which wasn't working.
android|android-spinner
1
2018-12-02T00:45:47.173Z
2,018
12
0
6
46
1
297
36
2
1
true
false
false
false
false
false
low
53,592,656
How to fix an app from continuously requesting to be updated
<p>I have uploaded an update to my app on Play and as soon as I update it, it asks to update again.</p> <p>The app comprises a few button on an otherwise simple <code>WebView</code> app, and Google Play keeps wanting to update the app. I cannot find any errors causing this.</p> <p>I would appreciate heads-up as so wh...
I have uploaded an update to my app on Play and as soon as I update it, it asks to update again. The app comprises a few button on an otherwise simple WebView app, and Google Play keeps wanting to update the app. I cannot find any errors causing this. I would appreciate heads-up as so what could be causing this. [CODE]...
java|android
0
2018-12-03T11:15:01.627Z
2,018
12
11
0
46
1
359
60
2
2
true
false
false
false
false
false
zero
53,637,480
How to color the EditText focus color for API < 21?
<p>I have EditTexts and they color the bottom line in primary color as you can <a href="https://i.stack.imgur.com/f4Rcj.png" rel="nofollow noreferrer">see here</a></p> <p>I want to leave it black, so I set in my layout for the EditText:</p> <pre><code>android:backgroundTint=&quot;@android:color/black&quot; </code></pre...
I have EditTexts and they color the bottom line in primary color as you can see here I want to leave it black, so I set in my layout for the EditText: [CODE] This works nice, but I have minSDK set to 19. So I immediately get a warning that this would not work for API < 21 How can I solve this for API 19 and API 20 as w...
android|android-edittext|android-api-levels
0
2018-12-05T17:13:34.420Z
2,018
12
17
2
46
1
324
51
3
1
true
false
false
false
false
false
zero
53,797,531
Clicking on an image should open the image in a new Activity
<p>I have a <code>ListView</code> with images. I took these images by URL using Retrofit. Now I am trying to set an <code>OnClick</code> for my adapter to pass each photo to the new activity, but I'm having some trouble with the intent and I don't know which intent I must use.</p> <p>When I run the app, it shows me a ...
I have a ListView with images. I took these images by URL using Retrofit. Now I am trying to set an OnClick for my adapter to pass each photo to the new activity, but I'm having some trouble with the intent and I don't know which intent I must use. When I run the app, it shows me a blank page, and the debugger says my ...
android|android-intent|android-imageview
0
2018-12-15T21:45:23.430Z
2,018
12
21
5
46
1
549
60
3
3
true
false
false
false
false
false
zero
53,798,146
java.lang.RuntimeException: Unable to start activity ComponentInfo, syntax error near "," while compiling
<p>With public List getArzt() I try to get every "Arzt" from my SQ Lite Database. Each Object from "Arzt" as you can see, has a name, arzttyp, straße+hsnr. etc... When I try to run my project, the app crashes and the error in the title occurs.</p> <p>For clearence: My intention with this project is to create an applic...
With public List getArzt() I try to get every "Arzt" from my SQ Lite Database. Each Object from "Arzt" as you can see, has a name, arzttyp, straße+hsnr. etc... When I try to run my project, the app crashes and the error in the title occurs. For clearence: My intention with this project is to create an application where...
android-studio
0
2018-12-15T23:32:20.843Z
2,018
12
23
5
46
1
572
105
1
2
true
false
false
false
false
false
zero
53,364,678
Change background color effect in a item viewholder
<p>I have a viewholder to show a list of items. So, when I click in an item I want to change the background color of this item. And when I unclick this element I want to go back to that default background color(white).</p> <p>I tried the following code but it has two problems:</p> <p>1- When I unclick an item it keep...
I have a viewholder to show a list of items. So, when I click in an item I want to change the background color of this item. And when I unclick this element I want to go back to that default background color(white). I tried the following code but it has two problems: 1- When I unclick an item it keeps the same color(gr...
java|android|android-adapter|android-viewholder
0
2018-11-18T19:30:41.713Z
2,018
11
19
6
302
1
502
51
4
1
true
false
false
false
false
false
zero
53,653,155
ViewFlipper triggers OnLayoutChangeListener multiple times problem
<p>My Application tends to be an Activity and some pages. There is a navigation view in the main activity. The first view in Main activity is a sign in page. after sign in success, this page flips to the 2nd one. Here is the problem. After this flip, OnLayoutChangeListener triggers multiple times and I don't know why....
My Application tends to be an Activity and some pages. There is a navigation view in the main activity. The first view in Main activity is a sign in page. after sign in success, this page flips to the 2nd one. Here is the problem. After this flip, OnLayoutChangeListener triggers multiple times and I don't know why. Bec...
android|listener|drawerlayout|viewflipper|navigationview
0
2018-12-06T14:04:37.073Z
2,018
12
14
3
302
1
728
66
5
5
true
false
false
false
false
false
zero
53,620,446
Where to store API access token?
<p>I am using an API (<a href="https://developers.gfycat.com/api/" rel="nofollow noreferrer">https://developers.gfycat.com/api/</a>) that uses the typical OAuth flow to grant developers access to API requests. I am able to successfully simulate the entire process of getting an access token and using it in an API reques...
I am using an API ( https://developers.gfycat.com/api/ ) that uses the typical OAuth flow to grant developers access to API requests. I am able to successfully simulate the entire process of getting an access token and using it in an API request by manually plugging in the values throughout my code. Now that I have all...
android|rest|api|android-webservice
0
2018-12-04T19:51:47.873Z
2,018
12
19
1
558
1
964
32
4
1
true
false
false
false
false
false
zero
53,693,478
override onCreateAnimation FATAL EXCEPTION to java.lang.IllegalStateException : must not be null
<p>I have overrided the onCreateAnimation method of the Fragment class with default implementation and this leads to FATAL EXCEPTION. Why?</p> <blockquote> <p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.developer.pocviewmodel/com.developer.pocviewmodel.MainActivity}: java.lang.IllegalS...
I have overrided the onCreateAnimation method of the Fragment class with default implementation and this leads to FATAL EXCEPTION. Why? java.lang.RuntimeException: Unable to start activity ComponentInfo{com.developer.pocviewmodel/com.developer.pocviewmodel.MainActivity}: java.lang.IllegalStateException: super.onCreateA...
android|kotlin
0
2018-12-09T14:47:07.613Z
2,018
12
14
6
558
1
378
96
2
1
true
false
false
false
false
false
zero
53,683,533
How to declare constants in kotlin similar to Java
<ul> <li>In Java class, I usually declare all my constants in a single constant file and access across the project</li> <li>How to achieve the same in kotlin</li> </ul> <hr> <p><strong>Java Code:</strong></p> <pre><code>public class LinksAndKeys { public static String BASE_URL = "http://11.111.111.11:8000/"; ...
In Java class, I usually declare all my constants in a single constant file and access across the project How to achieve the same in kotlin Java Code: [CODE] *What is Equivalent Kotlin code ? *
android|kotlin
3
2018-12-08T14:32:17.997Z
2,018
12
14
5
814
1
193
50
2
1
true
false
false
false
false
false
low
53,716,392
ionic - read android assets file
<p>I'm trying to read file in android assets subfolder, I had trying using file.checkDir and file.checkFile but it seems nothing is working. Here's some checkDir code :</p> <pre><code> this.file.checkDir( this.file.dataDirectory, 'file:///android_asset/xl72.png').then( _ =&gt; alert('Directory exists') ).catc...
I'm trying to read file in android assets subfolder, I had trying using file.checkDir and file.checkFile but it seems nothing is working. Here's some checkDir code : [CODE] checkFile code : [CODE] Anyone know how to? Thank you.
android|ionic-framework|ionic3
1
2018-12-11T02:10:07.683Z
2,018
12
2
1
814
1
227
32
3
2
true
false
false
false
false
false
low
53,354,365
How do I get the last one click button player1 or player2
<pre><code>class MainActivity : AppCompatActivity() { enum class PLAYINGPLAYER { FIRST_PLAYER, SECOND_PLAYER } var playingplayer: PLAYINGPLAYER? = null var buttonClicked:ArrayList&lt;Int&gt; = ArrayList() override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(s...
[CODE] I have two players and several buttons. Player1 clicks on a button and player2 clicks on another button. When the players press several specific ?, I want to change the background of imageButton. In (btnLast = ???) what I have put to get last one click in (buttonClicked.contains(1) && buttonClicked.contains(2)) ...
android|kotlin
0
2018-11-17T18:43:01.643Z
2,018
11
18
5
47
1
342
57
2
1
true
false
false
false
false
false
zero
53,381,432
onChildAdded in FirebaseRecyclerAdapter
<p><code>mMessages</code> is a method. I have an SQLite table, and every time a new message is received I want to add +1 to a column. That's what the <code>mMessages()</code> method does, but instead of adding +1 every time a new child is added, it adds all the existing children every time I open the activity. </p> <p...
mMessages is a method. I have an SQLite table, and every time a new message is received I want to add +1 to a column. That's what the mMessages() method does, but instead of adding +1 every time a new child is added, it adds all the existing children every time I open the activity. Say, support in table, the value is 1...
java|android|database|firebase|firebase-realtime-database
1
2018-11-19T19:32:21.250Z
2,018
11
19
0
47
1
600
39
5
1
true
false
false
false
false
false
low
53,528,260
Android Studio Emulator Not Displaying NDK hello-libs sample app - says ADB binary obsolete
<p>Trying to get an Android Studio (running Studio in Oracle Virtualbox) phone emulator working on a system with "AMD Turion" processor, 64-bit OS. Failing so far, i.e., <strong>Android NDK hello-libs sample app does not show in emulator</strong>. Since I have an AMD CPU vs. Intel CPU, I am getting "your CPU does not s...
Trying to get an Android Studio (running Studio in Oracle Virtualbox) phone emulator working on a system with "AMD Turion" processor, 64-bit OS. Failing so far, i.e., Android NDK hello-libs sample app does not show in emulator . Since I have an AMD CPU vs. Intel CPU, I am getting "your CPU does not support VT-X or SVM"...
android|android-studio|adb|android-sdk-tools
0
2018-11-28T21:18:55.780Z
2,018
11
21
2
47
1
1,146
91
4
0
false
false
false
false
false
false
zero
53,581,428
How to implement onClickListener on imageList
<p>I have <code>ArrayList&lt;ImageView&gt;</code> in a fragment. That list contains some images that animate over a period of time. I want to increment my score each time user clicks on the image. How can i achieve that?</p> <p><strong>ImageArray</strong></p> <pre><code>private fun getArray() = arrayListOf(kennyPos0,...
I have ArrayList<ImageView> in a fragment. That list contains some images that animate over a period of time. I want to increment my score each time user clicks on the image. How can i achieve that? ImageArray [CODE] This function animates it. [CODE] How do i write the onClickListener? [CODE]
android|kotlin
0
2018-12-02T14:57:46.653Z
2,018
12
14
6
47
1
293
45
2
3
true
false
false
false
false
false
zero
53,622,421
Changing the color of the SearchView in android
<p>So my app has a dark background all over, <code>#272822</code> And i want to use the SearchView, But the issue with the SearchView is the search icon on it is also dark (almost black) so it is not visible clearly. How can i change the color of this icon and also the color of the text in the SearchView ? </p> <pre><...
So my app has a dark background all over, #272822 And i want to use the SearchView, But the issue with the SearchView is the search icon on it is also dark (almost black) so it is not visible clearly. How can i change the color of this icon and also the color of the text in the SearchView ? [CODE]
android|searchview
0
2018-12-04T22:29:58.487Z
2,018
12
22
1
47
1
298
47
2
1
true
false
false
false
false
false
zero
53,674,133
finding the amount of child nodes in a database structure
<p>hi guys is there a way to count the amount children in firebase?</p> <p>i have a database structure like this</p> <pre><code>Testitem1{ test: "" }, Testitem2{ test: "" } </code></pre> <blockquote> <p>i want to count only the Testitem nodes</p> </blockquote>
hi guys is there a way to count the amount children in firebase? i have a database structure like this [CODE] i want to count only the Testitem nodes
java|android|firebase|firebase-realtime-database
1
2018-12-07T17:16:32.720Z
2,018
12
17
4
47
1
149
57
4
1
true
false
false
false
false
false
low