Questions tagged as 'android'

1
answer

Recyclerview with setVisibility GONE does not delete space from the row

In a fragment I have a list ( RecyclerView ) that comes from a Content Provider (SQLite). I want row 2 not to show, so within onBindViewHolder of the Adapter, set setVisibility(View.GONE) to position 1 (which is row num 2), a...
asked by 03.08.2018 / 22:27
1
answer

Usage of non-SDK interfaces, Google play console

I am currently developing my first app, so I am not an expert on android, the point is that I have uploaded my app to test the google play console, but in the section "Report before launch" (where it is tested the apk in different levels of andr...
asked by 26.10.2018 / 19:10
1
answer

Maintain the position of a RecyclerView when I add data

Good I have a problem that when adding data sends me to the beginning of the recycler when in fact what I want is to keep in the current position. This happens every time the user fills the end of the foot to load more data from volley .. &...
asked by 27.10.2018 / 23:04
1
answer

NavigationBar background color

I have the following NavigationView <android.support.design.widget.NavigationView android:id="@+id/nav_view" android:layout_width="330dp" android:layout_height="match_parent" android:layout_gravity="st...
asked by 09.05.2018 / 19:45
1
answer

How to know the status of my connection?

I have searched and I have not found anything that tells me how to tell the user that he has connected to a network. I know it's something with Broadcast Reciever but I do not know what I have to do. I made one that works for me but it's to list...
asked by 21.05.2018 / 18:52
1
answer

How to solve blank space (Android)?

I have an Android XML that implements an AutoCompleteTextView. The thing is that I would like to put it underneath and if I move it, a blank space is generated between the top bar and the AutoCompleteTextView. Any solution? <?xml version="1...
asked by 25.04.2018 / 16:30
1
answer

Error in storage permission

In the application a file is downloaded and it works in a phone with kitkat, but when I did the test in another phone with Marshmallow, it is truncated, the error that shows in the logcat is:    java.lang.SecurityException: No permission to w...
asked by 29.03.2018 / 01:46
1
answer

Query several fields of a node in firebase

When doing a query in firebase in a node like in this case the document, I want to bring two fields of that node and put them in a variable String, to add information to the database I do not use login, I use the push method ( ). when clickin...
asked by 13.06.2018 / 01:46
1
answer

What is the difference between android: launchMode="singleTask" and android: launchMode="singleInstance"?

Good morning, I'm investigating the launch modes of the activities on android. I am developing an application where there should only be one instance of an activity (A), if it were the case that there were more instances of the activity could...
asked by 20.02.2018 / 04:38
1
answer

Because when I try to run my application on the telophone it closes?

because I am currently using android studio and basically when I add the EditText, Buttons and Textview in the design I do not get any error but when I add code to the Onclick so that this event is executed in a button I close the app on the pho...
asked by 16.03.2018 / 22:53