Questions tagged as 'android'

0
answers

Format a String in Android Studio [closed]

I'm trying to format a String that is sent by an attempt to Gmail to send an email ... This is the part of my code that I want to format: Pedido = (Pedido + NombrePedido + "/t " + CantidadProducto + PrefijoEmail + "\n");     
asked by 08.05.2017 / 21:31
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 / 04:41
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 / 19: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 22.05.2018 / 22:09
2
answers

ImageView button in Fragment does not work

I'm trying to make an ImageView within a fragment that when I clicked send you another Activity. The problem is that when clicking nothing happens, but I do not get any error to know what is happening. This is the code of the Fragment.java...
asked by 09.07.2017 / 23:39
2
answers

Passing data from a broadcastreceiver to an activity

I have the following problem. I'm trying to send data from BroadcastReceiver to an activity. in the onRecive () I have: intent = new Intent(context, MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.putExtra("valo...
asked by 13.06.2017 / 19:28
1
answer

Delete an event scheduled on android

Good afternoon, I'm programming a spinner that comes with a flag that I have. if the user makes a gesture or a click on the screen, I get a progressDialog . My question is how do I cancel the second click so that I do not do...
asked by 29.04.2016 / 17:25
2
answers

Pass and get custom class parameters to Intent

Hi guys, this time I would like to ask you in what way I pass and I receive parameters from a custom class that I created at an intent for example: Intent i = new Intent(this, ValidarCumplimiento.class ); Vehiculo el_vehiculo = new Vehicul...
asked by 15.02.2017 / 15:08
2
answers

Get metadata in images with PNG format in android

Part of an application that I am developing, has to obtain the metadata of the images for its later use in it, until now what I am using is ExifInterface , with something similar to the following: //.. String filename = "DirectorioDondeEstaEl...
asked by 14.01.2016 / 15:07
1
answer

Add in ActionBar

I would like to know how to add an icon in the ActionBar of my application I have the following XML code <menu xmlns:android="http://schemas.android.com/apk/res/android" > <!-- "Mark Favorite", should appear as action button if poss...
asked by 19.11.2016 / 11:02