Questions tagged as 'android'

1
answer

Referencing main class variable in an @Override

We can reference a variable of the main class, for example within the method onCreate of the 2 forms (with or without this ): public class NovoRegistro extends AppCompatActivity { TextView data, horario; int dia, mes, ano; @O...
asked by 24.01.2018 / 19:42
1
answer

Is it possible to edit the name of a project?

Is it possible to change the name of an application after the project has already been created in Android Studio, by Manifest something like this?     
asked by 25.01.2018 / 14:43
1
answer

Get data from 2 fragments by clicking an Action Button (Toolbar)

Come on! I was searching the internet for how I could get the EditText values of 2 Fragments by clicking an Action Button from the Toolbar , but I did not find anything related. What I found was passing the Fragment data to Activ...
asked by 28.10.2017 / 09:13
1
answer

My notifications are not coming and I think my code may be correct

I made several attempts to send Push Notification and none of them I could see in my App. I always thought until now, that I was wrong. But I followed two step by step and I saw that with the guys it was working and not with me. So I started to...
asked by 27.09.2017 / 20:42
1
answer

How to close the keyboard?

When I step into this fragment with the keyboard already open, it remains open, what breaks my layout, how to hide it, or not to open it?     
asked by 25.11.2017 / 16:46
1
answer

Return list from a child in firebase

Good morning! I have a situation in which I want to return a list of all the data whose children are equal to the id, in the image below I have the structures of the nodes of my bank in firebase and I want to return, for example, the number of a...
asked by 25.09.2017 / 15:35
1
answer

non static method write can not be referenced from a static context

I'm a beginner in android and in general programming, I was following a video lesson to write a string to a txt file, when I came across the following error:    Error: (49, 31) error: non-static method write (String) can not be   referenced...
asked by 18.11.2017 / 13:57
1
answer

How to put the 3 buttons at the bottom of the screen?

I want to put 2 buttons at the bottom and 1 button above the 2 buttons. Something like this: ( but with the image turned upside down ) These2buttonsbelowandabuttonabovethe2andallthese3buttonsshouldbeatthebottomofthescreenandacentralizedte...
asked by 20.03.2018 / 15:17
1
answer

How to quickly scale a bitmap

I am making a game using SurfaceView and I need a bitmap to have, for example, a size of 20x20, but this bitmap is reused in other parts of the code in different sizes, ie it would not be viable to have it already the proper dimensions because i...
asked by 21.06.2018 / 17:25
1
answer

Register user with photo on firebase

Good evening!   Personally, I am making a user registry in my app and would like in addition to the personal data that I will save in the realtime database I would like to save the profile photo and a cover photo (or it can be just the profile p...
asked by 02.09.2017 / 01:20