Questions tagged as 'java'

2
answers

Android: Send data via POST

I know how to do this in other programming languages, however, when looking for examples of how to send data using POST in Android , I only find examples that use discontinued classes, such as: HttpClient HttpPost...
asked by 22.03.2016 / 04:45
1
answer

Convert binary to hexadecimal

Is there any function equivalent to bin2hex () of php for Java? I need to convert a binary to hexadecimal.     
asked by 08.12.2015 / 13:41
1
answer

how to simply put an icon in actionBar?

I want to put an icon in my ActionBar I already looked for this information here in StackOverFlow, but the answers I found are very complicated (I'm a beginner) and so I wanted to know if it has a very simple form.     
asked by 07.12.2015 / 21:47
1
answer

Clear a Bean variable from the JSF page

I have a page with some iteration loops inside my JSF page and here I would like to know how I can clean up this page attribute after each loop. To be clearer, I know that when rendering a page sometimes a method is called a few times,...
asked by 08.12.2015 / 11:02
1
answer

Comparison of values with SELECT

Hello, I'm creating a search project and need to make a commit in my database. I have an "establishments" table in my SQLite database, with the following columns: id, name and category . And a String variable named " nameStab " I need to...
asked by 08.11.2015 / 00:39
1
answer

Hibernate Multitenant problem with current tenancy ID

I'm using the hibernate multitenant for schemas, I use the Postgresql database. My problem is the following I have a service where I do a select in a public schema table, then for each item returned I have to go to the client schema and make...
asked by 17.11.2015 / 23:51
1
answer

Format TextArea JavaFX

I'm creating a kind of notepad, and I'm trying to find some way, so that the user can format their letter, size, color, etc. in a JavaFX TextArea. Would anyone know if JavaFX has a specific library for this? so I can insert above the TextArea a...
asked by 13.11.2015 / 19:45
2
answers

When to validate fields of a form in swing?

I would like to know if anyone could help me on validating form fields in java desktop. When should I perform the validations, at the field's focusLost or keyPressed, or another more appropriate way. For example: I have a field of type...
asked by 25.07.2016 / 13:50
2
answers

Format Cell Phone Number in TextView - android

I have TextView that displays the user's phone number, I would like to display in my application a mask that would leave the phone number in (xx) xxxx-xxxxx format. How could I do that?     
asked by 07.10.2015 / 20:22
1
answer

How to create an Android application that uses native mobile software such as camera, gallery, etc. [closed]

How do I use my phone features? For example: I create an app, that when the user clicks "Such" button, open the camera of the mobile ... or the gallery ... or alarm clock. I wanted to learn this, but I do not even know what to search for.     
asked by 18.11.2015 / 21:52