Questions tagged as 'android'

3
answers

Problem creating project [closed]

Every time I try to create a project in Eclipse Luna for Android in the Console of several error messages. I have already installed ADT and the normal SDK. Now I can not do anything anymore because the project gets error and does not compile...
asked by 08.06.2015 / 06:58
1
answer

Notification - Custom Actions

I wonder if you can customize a Notification with your Actions. Example: RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.customnotification); Notification.Builder builder = new Notification.Builder(this) .setSmall...
asked by 05.06.2015 / 05:59
3
answers

Android how to remove the "Photos" option from the options selector and leave only "Camera" and "Gallery"

I would like to know how to remove the option "Photos" from the options selector and leave only the "Camera" and "Gallery" options. Because it does not work, it is unnecessary since the "Gallery" does the same and better. Here is my code and the...
asked by 31.01.2016 / 02:11
1
answer

Check Available SD card space on Android 5.1.1

I need to check the amount of space available on the memory card, I currently use this method for verification: public static float megabytesAvailable() { File f = Environment.getExternalStorageDirectory() StatFs stat = new Sta...
asked by 01.02.2016 / 19:15
1
answer

Accents EditText Android

Someone there knows how I can and can do the following, in my EditText I wanted the user could not put accents. Should it be better to treat the text and remove it after typing?     
asked by 06.05.2015 / 15:24
1
answer

Change background color of TextView

I would like to know how to change a background of a text view , as I am pulling the data from the parse.com site, but I am not can do, what I'm trying is this: public class Pizzarias extends ActionBarActivity { // Declare V...
asked by 30.04.2015 / 14:03
1
answer

Error in the validation of the CPF

I'm trying to do a validation in the CPF and I'm encountering problems. When I type any number that is not in if , it inserts in the bank normally, but when I type numbers from within if I would like it to display the invalid cpf me...
asked by 14.04.2015 / 17:47
1
answer

Correctly change text using TextSwitcher

I need to use a TextSwitcher component with the intention that when the user moves this TextSwitcher to the right as well as to the left the text of the same will be changed. For this I created a variable of type String[]...
asked by 10.08.2015 / 01:48
1
answer

Using View Animation

I would like to know how you would use View Animation to simulate a GIF. For example: I have a photo of a sword, this sword is up, so do something like that to go right, clockwise, going around and going back to its original position....
asked by 06.08.2015 / 15:20
1
answer

Problem with bank data view

In each code I explain the problem. public void onCreate(SQLiteDatabase bd) { bd.execSQL("create table tabela(_id integer primary key autoincrement, data text not null, orcamento text not null);"); } My bank has a table and the id, date...
asked by 27.04.2015 / 20:16