Questions tagged as 'android'

1
answer

Change the Hint's gravity - EditText

In the xml of my edittext I put the gravity property to leave the cursor always at the end, however I needed to leave the text hint at the beginning. Is it possible to set a gravity property for the text and another property for the hint? Here i...
asked by 17.10.2017 / 17:00
1
answer

Do not install xamarin.googleplayservices.base

Not praying, we are able to install the plugin via NuGet:    xamarin.googleplayservices.base The message is:    The package 'Xamarin.GooglePlayServices.Base could not be installed   42.1021.1 '. You are trying to install this package i...
asked by 26.09.2017 / 23:14
2
answers

How to get value from a RadioButon inside a RadioGroup to save in the bank

I wanted to know how I get the value of a RadioButton to save it to the sqlite bank. In the example below the instructor does as follows: public class FormularioHelper { private Aluno aluno; public FormularioHelper(FormularioActivity activit...
asked by 27.09.2017 / 23:05
2
answers

Button in Fragment android

I have a Fragment and this fragment has a FloatingActionButton . I call the onClickListener method: FloatingActionButton floatingActionButton = (FloatingActionButton) view.findViewById(R.id.fabAddEventos); floatingActionButton.setO...
asked by 27.09.2017 / 19:55
2
answers

Recover and calculate programmatically generated EditText values

I'm creating an app to calculate an arithmetic mean of N values. There is an add button, when it is clicked it will generate EditText programmatically. And it will have a calculate button, when it is clicked, it should show the average...
asked by 01.11.2017 / 05:07
1
answer

BigDecimal - Error NumberFormatException

If an editText is not populated the APK stops working and returns the error: 10-31 15:06:54.340 4152-4152/com.wms.www.calccred E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wms.www.calccred, PID: 4152 java.lang.NumberFormatException...
asked by 31.10.2017 / 17:44
2
answers

Consuming Webservices with Android - Retrofit or Volley? [closed]

The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation seemed to me that retrofit might be somewhat less complicated. What do you suggest?     
asked by 02.11.2017 / 03:15
2
answers

Simple doubts back web view

I'm creating a simple application in android studio 3.0 , but I do not know anything about programming and with a lot of effort I was able to add the webview and display my page. But when I click the back button the application closes,...
asked by 01.11.2017 / 17:57
1
answer

Convert String encoded to byte

I am the AES-GCM encryption user on my server, and decrypt it on my android client. However I'm having a conversion problem. We assume that: 1- Encrypted text generates value in bytes: [B@541fe858 2- This value is embedded in...
asked by 19.12.2017 / 18:55
1
answer

Return value in string with firebase

In Android Studio I have the following code in MainActivity package br.alan.com.firebaseapp; import android.support.annotation.IdRes; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget....
asked by 31.08.2017 / 19:43