Questions tagged as 'android'

1
answer

Firebase, how to play audio in firebase storage at the click of a button?

I'm developing an application, which when clicking a button it plays an audio, but if I put all the audios in the application, it will get very heavy, I would have to put those audios in the firebase, and make clicking button does it play using...
asked by 20.05.2017 / 18:17
1
answer

JSON parse class java

I'm having some doubts, how do I make a parse of a JSON coming from webservice. My class comentarios looks like this: public class Comentarios extends BaseEntity { private Integer avaliacao; private String observacaoAvaliacao; pr...
asked by 23.05.2017 / 19:53
1
answer

Error performing findviewbyid

Hello, I want to find the id of two Textviews, but they are returning NULL. Here is my code: private TextView nomeUser; private TextView cargoUser; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInst...
asked by 27.06.2017 / 17:11
1
answer

White screen in transition between activities

I have a project in which I developed a method to save a reference of the current activity and when I used the HOME of the next screen, it returned to activity using that saved reference. But when I press it back, the scr...
asked by 02.05.2018 / 19:42
1
answer

java.lang.NullPointerException: button returning null

Good morning, How do I reference a button in another activity? In main, I'm using another layout to inflate my list, and the button event is obviously returning null because it's not finding the view. Help. private static String pesquisarDa...
asked by 04.05.2017 / 17:33
1
answer

How to call initLoader within OnClickListener

Hi, Is it possible to call an initLoader inside an OnClickListener? I need it to be started after the editText data entry, because the network request returns error 400, URL enters without the user query, because the variable was not passed i...
asked by 05.05.2017 / 19:16
1
answer

How to get the reference to the ListView from a ListFragment?

I have a ListFragment trying to access the ListView where Adapter has inserted the objects, but findViewById is returning null , does anyone have any ideas? The fragment code in XML: <?xml version="1.0...
asked by 04.05.2017 / 17:15
1
answer

Android Application Incompatible with Tablet (PlayStore Information)

I recently developed an app that I published in google play store with all the necessary requirements, however when trying to download on an Asus Zenpad 3S 10 Z500M tablet this appears incompatible and does not allow downloading. I've been se...
asked by 05.05.2017 / 16:27
1
answer

How not to use so many Activities?

Hello, I'm starting to program something on android a few days ago (a simple but extensive shell identification program, in it you have 5 options, within these 5 plus a few depending on the species, and inside more options until you reach in a sp...
asked by 04.04.2017 / 13:12
1
answer

Android / Firebase - NullPointerException when defining Query object

Hello, I have a problem reading the data in Firebase. I use Android Studio 3.0 and Java. I can connect to the database, get the instance, the user logged in, but I can not read the attributes of the selected node. The bank structure is this...
asked by 31.10.2017 / 17:09