Questions tagged as 'android'

1
answer

Select and calculate columns - SQLite

Hello ... //selecionar valores da tabela: public Cursor IMC(){ Cursor cursor; String[] campos = {"SELECT (peso/(altura*altura)) FROM medidas WHERE codigo = (SELECT codigo FROM medidas ORDER BY codigo DESC LIMIT 1)...
asked by 02.12.2016 / 15:50
1
answer

Android soapFault Parser

Well I'm starting to make error handling that the webService soap returns me, for example if the user enters login or wrong password the web service returns a SoapFault error: user or invalid password. Only I can not get this message and show in...
asked by 02.12.2016 / 11:59
1
answer

Extract JSON data within JSON that comes from a Web Service serving an Android APP

Good evening, how are you? I'm developing an Android APP and it consumes data from a webservice, however I'm having trouble getting some information into the APP. This is the JSON that I return to my APP: { "cod":1 ,"dados":...
asked by 18.01.2017 / 06:39
1
answer

Click on the FAB but do not go to the new Intent

I'm getting the click of a list and moving on to another Intent. But when I click on add it gives error. Code; Button cadastrar = (Button) findViewById(R.id.fab); cadastrar.setOnClickListener(new View.OnClickListener() { @Over...
asked by 28.10.2016 / 17:08
1
answer

Gson: JsonObject conversion error for JsonArray (JsonPrivate can not be cast to com.google.gson.JsonArray)

I'm trying to convert a JSONObject item to an ArrayList and for this I created this function from an example I saw here in the forum: public static ArrayList<Produto> converte(JSONObject jsonObject){ ArrayList<ArrayList>...
asked by 05.11.2016 / 16:43
1
answer

"Please configure your build for VectorDrawableCompat"

I created an application that uses the database and it is not running. When I open it, it shows the following message    "Beta Database application stopped" So I went to see LogCat and it shows that the error is in the onCreate of my acti...
asked by 12.10.2016 / 16:04
1
answer

How to know if it is a fragment that is on the screen, in interface test?

I would like to know, in automated interface tests, how to know if a fragment is on screen or not. If it's a fragment, for example, ratingfragment, I'll "perform" a "click". If it is another, I'll do another action. Thank you! Code belo...
asked by 29.09.2016 / 19:36
1
answer

Android error - Must specify preferenceTheme in theme

I created a layout (preferences.xml) in the res / xml directory based on the PreferenceScreen. Implemented a class derived from PreferencesFragmentCompat public class PrefsFragment extends PreferenceFragmentCompat { @Override publi...
asked by 30.09.2016 / 21:08
1
answer

How to set a Boolean value of a RadioGroup

Example: EditText etNome = (EditText) findViewById(R.id.etName); EditText etAge = (EditText) findViewById(R.id.etAge); RadioGroup rgClienteVivo = (RadioGroup) findViewById(R.id.rgClienteVivo); If I wanted to set these two value...
asked by 02.10.2016 / 03:37
1
answer

Map does not work anymore

I'm developing an application that used the Google Maps API. It was running normally, until I upgraded Android Studio from 2.1 to 2.2, and from then on, it stopped working. What do I do to get back to using it?     
asked by 21.09.2016 / 20:47