Questions tagged as 'android'

1
answer

RecyclerView scroll position with Firebase

I'm listing Firebase data in a RecyclerView , but when adding data or removing, the data repeats in the list. I used clear(); or lista.removeAll(lista); to clear before filling only that the list is updated and returns the s...
asked by 11.12.2017 / 22:27
2
answers

How does the firebase for sending notifications work?

This question does not have to be with codes, but to understand the operation of the firebase. I want to set up a system that notifies the user to an Android app through a PHP web service. From what I researched, the easiest way is to use fir...
asked by 07.12.2017 / 01:44
1
answer

Remove an ImageView

Is there any way to remove an image in an ImageView or leave it empty via code? For example: I "hedge" img1.setImageResource(R.drawable.icon_circpreto); How do you remove it via code?     
asked by 31.10.2017 / 04:52
1
answer

An unhandled exception occured. I can not understand this message, no detail comes

Personal this message:    An unhandled exception occured. It always happens when I try to consume my service REST . I first made an example, copying it from Macoratti and it worked. So I adapted to my service and it did not work,...
asked by 03.09.2017 / 15:25
1
answer

Doubt about the operation of the AudioRecord class

I am a beginner and I was trying to understand how to record an audio using android and how it processes that audio. And during the searches I found this site: Audio Record The example works perfectly. But I did not really understand how this...
asked by 22.09.2017 / 02:04
1
answer

Site or PHP or HTML System Conversion for Android and iOS application

What is the best way to 'convert' a website or PHP or HTML system to an Android and iOS app ? I have a PHP script with MySQL DB and HTML site, and I heard that it can generate the site or system version in PHP or HTML for Android and iOS app...
asked by 14.01.2018 / 18:17
1
answer

How to set a minimum date in the datapicker?

I would like to put a minimum date in my datapicker, because I can not do it yet: Here is the code for you to help me. In my layout, there is only one edit text and the datapicker only appears when I click on the text box. <?xml version="1....
asked by 08.09.2017 / 12:11
1
answer

how to know the latest version of a library (dependency) from Google for Android Studio

Generally, when we use features in Android Studio, you need to include libraries, example of a build.gradle (Module: app) file: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.suppor...
asked by 28.01.2018 / 23:17
3
answers

Position Button in the center of a LinearLayout with layout_gravity

I would like to know why I can not center the button, I would like to center vertically and horizontally, but it seems to me center only centered horizontally on vertical layout and vice versa. <?xml version="1.0" encoding="utf-8"?> <...
asked by 03.02.2018 / 15:09
1
answer

Android Gradle - Error: Unsupported method: BaseConfig.getApplicationIdSuffix ()

When importing a Github project using < strong> Android Studio 3.0.1 I got the following error in Gradle:    Error: Unsupported method: BaseConfig.getApplicationIdSuffix (). The   version of Gradle you connect to does not support that meth...
asked by 27.01.2018 / 04:18