Questions tagged as 'android'

1
answer

Error sending pdf to FirebaseStorage

I'm trying to send pdf files to the Firebase Storage and with this code I get to the point of getting the Uri, send, but only falls on onFailure, follow the code @Override public void onClick(View v) { if (Conte...
asked by 18.09.2018 / 08:01
2
answers

How do I stop a sum?

I'm making an app where I have to pull a sensor (I used the accelerometer) and save the sum of the 3 parameters. When I try to save this sum the app hangs, I find that the save command is causing it to crash, does anyone know what's wrong?...
asked by 21.09.2018 / 15:24
1
answer

How to get html code through a url in android studio

I would like to do as I get an html code from a website using android studio. This is the code I made, but it will not return anything. private static String pegarURL(String a) { StringBuilder b = new StringBuilder(); try { UR...
asked by 22.09.2018 / 19:47
1
answer

How to hide system images from android firemonkey gallery applications?

I need the images used in the system not to appear in the android gallery application, because they are images used only by the system and when viewing them some clients delete them.     
asked by 19.09.2018 / 16:34
1
answer

How do I execute the getCity () method with asynctask, and return the value of the string city to use in another method?

public class CadAnuncio extends AppCompatActivity { LocationManager locationManager; private Button btnSalvar; private DatabaseReference databaseAnuncio, databaseUsuario; private String uid, url, url02, url03, url04, url05,...
asked by 19.09.2018 / 14:53
1
answer

Referencing Activity Components

I searched but found no answer. I need to access a TextView that is present in my Activity within a Java Class that is independent of the Java Class of Activity itself. The form I tried was creating a reference: pub...
asked by 18.10.2018 / 20:22
1
answer

Insert Multiple Markers on Maps

I found a code here on the site, I put it in my project but it did not work, does anyone know how I can solve it? The method below is called in onViewCreated() Note: I'm using the Map within a fragment, can that be? public class Maps...
asked by 23.10.2018 / 01:09
1
answer

How to filter to show only the required fields in a class using Gson

I'm using Gson to work with json, let's say it has this class class Track( @SerializedName("id") val id: Long, @SerializedName("name") val name: String, @SerializedName("modality") val modality: String, @SerializedName("paper")...
asked by 13.08.2018 / 23:07
1
answer

Client-Server between APP that tracks real-time location

Hello, we have an app that sends the location of users to the server every 15 seconds. Currently it's a simple (lat / lng) POST in the API, would there be a better way to do this? Any specific architecture?     
asked by 08.08.2018 / 04:04
1
answer

How to reuse a layout?

I want to create a screen with menu of essays, how do I "reuse" a layout to have several essays and less layout (xml) files.     
asked by 24.09.2018 / 18:56