Questions tagged as 'java'

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

Transitions of elements between activities

Is there any way to make transitions between activities other than as follows? ActivityOptions transitionActivityOptions; transitionActivityOptions = makeSceneTransitionAnimation(activity, sharedView, "shared_image"); v.getContext().startActiv...
asked by 08.11.2016 / 11:58
1
answer

Deeplink deeplinks on Android

How can you implement a system of Deeplink style the tinder app. That is, in the share with ... option, a url style http://go.tinder.com/md5 is added The one who receives the message in whatsapp, telegram etc ... if you click...
asked by 04.11.2016 / 11:16
1
answer

java.net.MalformedURLException

I'm having a horrible problem and worst of all is that on the web I find almost nothing about this! I'm doing a report in java with jaspersoft studio. I made the template already (it has two parameters) and followed the guide of the following p...
asked by 01.11.2016 / 19:14
2
answers

String entered using EditText is deleted when leaving the Activity

I'm making an application where you press a button, open a AlertDialog and enter in a EditText a text, which will be entered in the same button that has been pressed. So far so good, the problem is that when you leave the Activi...
asked by 07.12.2016 / 20:43
2
answers

Comments on android

How can I put comments for the classes imported into the gradle to read them as a description when implementing a method of that class?    The question is from android, although I suppose it also applies to Intellij IDEA.     
asked by 30.11.2016 / 16:56
2
answers

Eclipse create new combination keys

I would like to create a keyword like sysout + Control + Spacebar , so that System.out.println is automated. The case would be to write public static final , or with a combination type psf + Ctrl + Space or directly with...
asked by 05.12.2016 / 10:43