Questions tagged as 'android'

1
answer

How to change the state of a ToggleButton in java?

I've created this Drawable to set as Background of the 6 ToggleButton . How do I get the ToggleButton to switch between them without being clicked? <selector xmlns:android="http://schemas.android.com/apk/res/android"> <it...
asked by 02.01.2017 / 22:21
1
answer

Collect User Data Facebook SDK

I have the following code to log in to Facebook: final FacebookCallback facebookCallback = new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { Toast.makeText(getAp...
asked by 04.01.2017 / 17:24
1
answer

Comparison of an edttext with a SQLite Bank value

I am developing an android application but I do not know how to prevent the user from registering two equal times. Bank: String sql4 ="CREATE TABLE "+TABELAAGE+"(" +IDAGE+ " integer primary key autoincrement,"...
asked by 05.12.2016 / 21:09
2
answers

Creating more than one Android Studio table (SQLite)

I'm trying to develop a mobile application for a final job in my college, it's quite simple! The application has to save the information registered in the database. But I would have to create 4 different tables to store the data, the table...
asked by 05.12.2016 / 20:35
1
answer

Select items with LongClick, imagebutton

I have the items in a list, which when clicking the imagebutton, sends a message to the user. I would like to implement longclick so that you can select multiple and send messages to multiple users at once. Thanks and follow the codes:...
asked by 05.12.2016 / 17:29
1
answer

Why does this FAB disappear, but does not reappear?

I'm trying to animate an FAB so that when it scrolls up, it hides the FAB and when it scrolls down, it reappears. I'm following the example of these tutorials that are very similar: FAB: Codepath Hide the FloatingActionButton when sc...
asked by 27.02.2017 / 19:36
1
answer

Update a textview for a few seconds

I wanted to implement a transition between two Activitys, where the user would see a Progress Bar (already implemented) and a textview where every 2 seconds, a new phrase appears to me, for example: Loading information ... Implementing the...
asked by 28.02.2017 / 20:14
1
answer

Multiple data in an ArrayAdapter

To make a list with a data with ArrayAdapter I do so: ArrayList<String> palavras = new ArrayList<>(); int a = 0; for(int i = 0;i<50;i++) { a++; palavras.add(Integer.toString(a)); } ArrayAdapter<String> adapter = n...
asked by 27.02.2017 / 18:07
1
answer

Push Button Effect

I have several buttons in an application and I wanted them to have the same effect of Button when pressed, because they are several buttons, I would like to create a code in JAVA for this and not by the States into XML as it would have...
asked by 23.12.2016 / 21:48
1
answer

Error "Unable to instantiate activity" when executing Activity

My application has a home screen, where the user can select the registration screen. However, it is only me because of the gets that it stops working with this error below, it does not even show the registration activity. The error is...
asked by 21.11.2016 / 00:56