Questions tagged as 'android'

1
answer

Error getting RadioGroup Android Id

I'm having difficulty getting the Radio Group ID. Can someone explain to me how it works? public class MainActivity extends AppCompatActivity { private static String TAG = "livro"; private ToggleButton toggleButton; private Button botao; Stri...
asked by 27.01.2018 / 14:20
1
answer

ERROR: this - can not be applied to

error appears in part of code where I have "this" private void sendEmail() { //Getting content for email String email = editTextEmail.getText().toString().trim(); String subject = editTextSubject.getText().toString().trim(); St...
asked by 06.11.2017 / 12:04
1
answer

Android Switch picking up Varialvel

I have a Switch component and would like to get its status if it is on or off. When searching the net for the examples I got it did not work but it worked fine but it only takes the value when I make the on / off change because of the setOnChec...
asked by 18.10.2017 / 16:02
1
answer

image view and text view side by side in linear layout

I have to put the image and the text side by side but I do not know how to do it, my code for now: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/a...
asked by 20.10.2017 / 02:20
1
answer

How to make different versions of an image for different screen densities? [duplicate]

I have an image that will be placed inside my app (just an example), how can I do a hdpi , xhdpi , xxhdpi , etc version of it? I know I should put in their folders, but when I only have one image how can I make these differen...
asked by 28.11.2017 / 19:41
1
answer

Where are the project files developed in Android Studio on Linux?

I'm developing an Android app using Android Studio, but as I have not yet published it, it's my custom to make a backup at the end of the work day. I'm using Linux and I'm not finding where the project files are for me to do this backup. Where e...
asked by 01.02.2018 / 18:54
1
answer

Error adding ListView

I'm bringing the results of Mysql on Android with TextView like this: public class ListarDados extends AppCompatActivity { public static TextView data; @Override protected void onCreate(Bundle savedInstanceState) { super....
asked by 01.02.2018 / 16:35
1
answer

Onclick on android not working

Good people, all right? I'm using a RecyclerView to popular my list on Android and for that I have an adapter and a view holder. Follow Adapter source code with ViewHolder public class MoviesAdapter extends RecyclerView.Adapter<MoviesAda...
asked by 15.12.2017 / 14:10
1
answer

AutoComplete List Position

How to position the list of AutoCompleteTextView below the same ?, I have seen some tutorials and simply the list starts below plus mine is at the top. <AutoCompleteTextViewandroid:id="@+id/actViewEqp" android:layout_width="wrap_conte...
asked by 29.09.2017 / 22:40
1
answer

Summarizing the result of several logical tests in a single result

Good afternoon, I have some strings that come from testing. Example: String teste2 = (nB < 0.0 && m1 <= j ? "OK" : "Não passa!"); String teste3 = (nB < 0.0 && m2 <= j ? "OK" : "Não passa!"...
asked by 01.10.2017 / 19:17