Questions tagged as 'android'

1
answer

Put a bold word in an XML text

I've been looking and I've seen several solutions but they all go through something out of TextView , for example to use row separation and I use \n there is not something similar to put a single word (or several different ones) in...
asked by 11.02.2017 / 16:42
1
answer

Can an Activity be saved in a preference?

I'm creating an App, I've already finished it, but I start thinking as a user if I'm browsing and suddenly I'm forced to close the App or minimize it, it starts again with the activity that is predetermined in manifest de android ,...
asked by 06.01.2017 / 23:58
2
answers

Open an Url within an Activity

I have the following question: How to Open an Url in an Activity. This activity is my Activity_ Main, in it I have an image of a cardview with Url, but when I click it opens the browser options, but what I want is for these links to be...
asked by 04.01.2017 / 20:18
2
answers

Behavior of an Activity as Dialog

I want to achieve the following, as you can see a Dialog at the top has a circular icon of close (x) . I have the Dialog but I need the mentioned icon, any ideas to get this or something similar? I have converted a normal...
asked by 11.01.2017 / 14:50
1
answer

Get the dimensions of an image in Android?

I'm trying to work with the width and height of an image. I use this code to get the image, convert it into a Bitmap and then into base64. private void PickFile(){ Intent intent = new Intent(Intent.ACTION_PICK, android.provider.Medi...
asked by 21.11.2016 / 19:03
2
answers

How do I create events in a widget?

I intend to create a widget that would consist of a simple button that, when pressed, executes an action. I've been watching tutorials like this " Widgets SGOliver " , I understand a lot of what they explain there but my problem comes in the...
asked by 20.10.2016 / 00:27
1
answer

Read data from a Custom Dialog generated in a Fragment

By clicking on the "Add Client" button that is seen in the first photo, it generates a dialog (of a layout) where I will enter data. I'm doing the tests to capture that data with a Toast but it returns it as null: "Added clientenull" (I...
asked by 24.10.2016 / 18:43
2
answers

Can I make layouts with the same name and at the same time give them the same id and then call them?

Trying to adapt my application to other devices (tablets) is giving me an error, so my layout (which I have called activity_wine_list) is adapted for different situations, I have created it according to the situation in one way or another, in th...
asked by 27.10.2016 / 22:11
1
answer

Best method for activity detail

I have a recyclerview with 10 items and when I click it opens an activity detail for each one of them. What is the best method to create an Activity details for each item? The xml of the activity detail is the same for all only the content of th...
asked by 08.05.2017 / 21:35
1
answer

Get data from a photo taken with Android, I want the exact time taken

I have an application that takes a picture with an intent and I must obtain the exact time when it is captured, the problem is that when I take the picture with intent , I take the time when I give it ok ( onActivityResult() ) to the...
asked by 25.04.2017 / 22:11