Questions tagged as 'android'

1
answer

How to get the return of this method

I'm using lib betterpickers , I tried to make a class to get its information in OO form, but the method does not have a return, it's a void, is there a way to get that return? / p> public class Inflate implements CalendarDatePickerDialogFragme...
asked by 05.04.2018 / 15:06
1
answer

How to use the AS operator with the Library Room?

I'm not able to retrieve the variable total , how do I? @Query("SELECT SUM(item_valor) AS total FROM Itens WHERE total =>:data") Itens getMes(String data); The IDE warns syntax error in the WHERE clause's total variable. My Enti...
asked by 05.05.2018 / 17:24
1
answer

Capture the radio button and save the Text in the bank

Galera is able to capture the selected RadioButon to save in the bank, I need to capture the radio button in 3 methods, these 2 radiobutons are in a RadioGroup, the radioButton is the type. private Adicionar setAdicionar(Cursor cursor) {...
asked by 30.05.2018 / 21:20
1
answer

What is the difference in terms of UIViewController and SFSafariViewController navigation?

I would like to know the advantages and disadvantages of webview controllers SFSafariViewController and UIViewController , for the questions below:  - performance  - compatibility  - usability     
asked by 23.04.2018 / 20:42
1
answer

Login Error on an Android System (MakeToast) [duplicate]

I'm creating a login system with json on android but when I'm going to submit a message through maketoast it gives an error:    Process: imm.pt.videoclube, PID: 11853                                                                      java...
asked by 06.03.2018 / 23:01
1
answer

Chronometer display value greater than 60 minutes in MM: SS format

Hello, is there a possibility of a chronometer displaying more than 60 minutes without entering the time format? My chronometer receives data from a String to set the initial value. private long minutesAndSecondsToMilliseconds(String minu...
asked by 18.03.2018 / 02:38
2
answers

How do I get the name of the Wi-Fi network (SSID)?

I want to make an app that takes the information of the Wi-Fi connection, that the cell phone is connected, being more specific I want to make an app that takes the name (SSID) of the Wi-Fi network where the phone is connected . Is it possible t...
asked by 16.05.2018 / 05:53
2
answers

Required field, fill in before saving

I am trying to validate the fields so that it is mandatory before saving the data beforehand. Follow the code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity...
asked by 04.03.2018 / 16:00
1
answer

Generate JSON from SQLite

I have a table with several records in SQLite , and also other data in SharedPreferences . I would like to generate a JSON by pulling those records, and together that SharedPreferences data. But in search, I barel...
asked by 23.02.2018 / 17:21
1
answer

Get String from strings.xml file

I'm trying to retrieve a String from the strings.xml file for this SQL_CID variable. <string name="insert_cid">" INTO 'CID' ('COD_CID', 'NOME_CID', 'CODIGO_CID') VALUES(1, 'CÓLERA DEVIDA A VIBRIO CHOLERAE 01, BIÓ...
asked by 22.02.2018 / 22:28