Questions tagged as 'android-studio'

1
answer

AAPT2 error: check logs for details in Android Studio

I'm doing a basic project in Android Studio in its latest version that I downloaded in May 2018, when I try to compile the project I get the classic error of "AAPT2 error: check logs for details" which the whole Main class me marks errors in the...
asked by 23.05.2018 / 06:41
1
answer

The Most Efficient Way To Create A DatePickerDialog

Which is the most efficient way and with less amount of code to create a DatePickerDialog type object and that returns the date but implemented for a function String CrearDialogoFecha() { //Aqui el objeto tipo DatePickerDialog DatePickerDia...
asked by 17.05.2018 / 03:01
3
answers

Get Button ID

I'm doing an app where I insert a series of buttons programmatically, this is my code and it generates it perfectly well. Where I have doubts is how to get the id of each button and show a msg that has been clicked on that button I hope you can...
asked by 18.05.2018 / 21:26
2
answers

Get content from EditText

How about? A help please, I have this code in which I add 10 EditText to my activity . for(int i=0; i<10; i++) { EditText columna = new EditText(this); columna.setHint("Texto " + i); columna.setId(i); mlayout.ad...
asked by 23.05.2018 / 00:09
2
answers

How can I insert data once Androidstudio SQLite?

I have the following DB manager, where I make selects, etc. What I want to do is to enter the data once in the database. I have already tried several times with the getCount as in the example but it does not work well. Does anyone know...
asked by 12.12.2018 / 21:20
2
answers

how can it be done so that when you click on a menu icon it changes to another icon?

THIS IS THE XML <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context="org.sfaci.agenda.MainActivity"> <item android:id="@+id/action_modificar" a...
asked by 10.11.2017 / 02:56
1
answer

First steps on Android

Recently I started learning a bit about Android and working with AndroidStudio. I have a project that serves as a study, but it was developed in Linux and I use Windows 8.1 when compiling it, it shows me the following error:    Error: (1,...
asked by 05.07.2017 / 16:17
4
answers

make a listview fill the entire screen

I am developing an app where in one of the activities I have a listview. It is a dynamic listview that is completed with an own arrayadapter, so its extension is unknown. I would like it when it exceeds the size of the screen it reaches down and...
asked by 20.10.2016 / 11:46
1
answer

Search for a field in the realm database

Someone knows how to perform a query in Realm where the entire table was scanned and the tuples were taken where the name of a field corresponded to the one I have. That is, if we have a database of a library, and we want to take users with a...
asked by 16.04.2018 / 10:06
3
answers

Can you split a String by a String string with a structure?

I collect the data from an xml that has 200 elements and within those elements is the date of each one, being its structure like this: 2018-05-04 00:00:00.0 2018-02-02 12:00:00.0 But for example there are others who instead of having on...
asked by 08.05.2018 / 12:25