Questions tagged as 'android'

2
answers

How do I check if a String is null and add to an array?

I have a problem, I have several variables (String) with the following names: texttransfer1, texttransfer2 to 73 (texttransfer73). At times the variable textTransfer2 for example may assume an empty value or not, depending on the situation....
asked by 01.06.2017 / 02:34
3
answers

Verify existence of file on the web

Next, I have an Android app, this app wants to verify the existence of a web image to be able to load Picasso, if the image does not exist in an example address www.algumacoisa.com/img/imagem5.png I will show a message . So what I need is to val...
asked by 12.05.2017 / 14:36
2
answers

How to use html tag like b in android

I have a text and I put it in a dialog, how do I not keep appearing the tag, but the effect of it AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context); alertDialogBuilder.setMessage(listenerItem.descricao);...
asked by 26.03.2015 / 19:27
2
answers

Implement Numeric Keypad

I'm moving on an application that needs to enter numbers to do the necessary calculations, but I'd like it when the user selects Text Field to see if the alphabetic keyboard appears, the numeric keypad appears. How do you implement this function...
asked by 22.03.2015 / 23:42
2
answers

JSON handling returned from PHP

I would like to know how to manipulate data from JSON below. If the structure is correct, and if not, how do I change the structure of it? { "postagens":[ { "URLIMG":"1.jpg", "NOME":"Jhonatan", "SOBRENOME...
asked by 04.11.2015 / 01:47
1
answer

Android - Error NullPointerException

I'm getting the following error randomly, that is, it gives error a few times and others do not: Caused by: java.lang.NullPointerException at pt.cartuxa.Login.onCreate(Login.java:62) My 62 line is as follows: password.setImeAc...
asked by 19.11.2014 / 16:29
1
answer

Why does the application stop if the field is left empty?

public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSt...
asked by 24.11.2014 / 20:45
1
answer

How to implement this class in a TextView so that it works correctly?

I found this " self-shrinking " code in the link and would like to know how to implement in TextView. ** * DO WHAT YOU WANT TO PUBLIC LICENSE * Version 2, December 2004 * * Copyright (C) 2004 Sam...
asked by 15.06.2015 / 22:43
1
answer

Why does MainActivity inherit from ActionBarActivity?

I'm creating a new project and my Activity appears as ActionBarActivity: public class MainActivity extends ActionBarActivity Does anyone know why or how to fix it?     
asked by 10.05.2014 / 20:04
1
answer

Error - You must supply a resource ID for a TextView

03-17 08:31:32.283: E/ArrayAdapter(1085): You must supply a resource ID for a TextView 03-17 08:31:32.283: D/AndroidRuntime(1085): Shutting down VM 03-17 08:31:32.283: W/dalvikvm(1085): threadid=1: thread exiting with uncaught exception (group=0x...
asked by 17.03.2014 / 13:46