Questions tagged as 'android'

1
answer

Database Query on Android

I'd like some help from you to check out what's wrong with this query: int raioKm = 10; String latitude = "CONVERT(" + "NUMERIC(10,7)...
asked by 16.06.2017 / 01:12
1
answer

Pass values from FirebaseRecyclerAdapter

How do I pass an object when I click on a recycler view item and am using a FirebaseRecyclerAdapter ? The way I'm doing is working, I create a list, and in the populateViewHolder method I add the object I want to pass in a list,...
asked by 06.06.2017 / 05:29
2
answers

Pick programmatically generated EditText values

I have an APP, which preencho a quantidade de jogadores will have the championship and I click on a botão to create the championship. This button plays for a activity that takes the amount that was set and gera N EditText...
asked by 04.10.2017 / 20:44
1
answer

How does content-type work in java?

I saw a video of a guy using the connection.setRequestProperty("content-type", "aplication/x-www-urlencoded"); But I did not understand how it works, especially "aplication/x-www-urlencoded" .     
asked by 07.10.2017 / 03:35
2
answers

Advantage of nulling a variable in Android

Assigning the value of null to a variable in Android can improve application performance? As far as I know, in Java we have the Garbage Collector, and on Android the activity cycle of Activities and Fragments. Problem: In a cla...
asked by 27.07.2017 / 14:05
2
answers

How to prevent the user from typing in EditText, but allow clicking on it to open a DatePicker?

I have an EditText that when clicking it opens a DatePicker, how do I prevent the user from typing in EditText? I tried to use edtData.setEnable (false) but when clicking on editText nothing happens.     
asked by 15.10.2017 / 00:46
2
answers

Textview with scratched letter

How can I get this result ̶W̶a̶l̶l̶a̶c̶e̶ ̶R̶o̶b̶e̶r̶t̶o̶c̶ equal in the name of the first list below ... the list is scratched because I did it on the server side .. the intention and leave the result of the table of the middle scratched...
asked by 18.10.2017 / 21:50
1
answer

Is it possible to select all text in EditText when it is in focus?

I have a EditText and when I use: editText.requestFocus(); I would like you to select the whole text, is it possible?     
asked by 28.09.2017 / 19:19
1
answer

Android App Icon Size

I have noticed that when I install my app on my mobile the app icon is smaller than most other apps. I set the icon for the android studio itself using a png image. How to make the icon get bigger like most other two applications? I use an...
asked by 22.02.2017 / 18:49
1
answer

How to pause the chronometer and continue from where did it stop?

Android has view Chronometer , which automatically boots when it enters ativity . To restart the timer from 0 I use the following code: chronometer.setBase(SystemClock.elapsedRealtime()); chronometer.start(); When I use...
asked by 28.04.2017 / 17:21