Questions tagged as 'java'

0
answers

How to open a full-screen ImageView using OnClickListener?

I have an application and would like to display a full screen image. The screenshot below shows an example application. How could I put it in full screen, using onClickListener? And how could I do the same thing using intents for a standar...
asked by 25.01.2018 / 23:38
1
answer

Check if current time is in the defined radius in the database

I wanted to know how to do to see if the current system time is within a previously defined radius I currently have this code, but it always returns "Closed at the moment" Calendar calendar = Calendar.getInstance(); final Date horaChe...
asked by 31.01.2018 / 03:00
0
answers

Android Upload image in string to c #

I'm sending images from Android to the server in C # but when I try to do the conversion it makes an error in this conversion. In android I make this conversion: ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmapPhoto.compr...
asked by 31.01.2018 / 02:32
0
answers

WebSocket in java and javascript

I have a simple server made by JAVA that completes a form from a particular web site . I use the JAVA application as the server to send the information and a extension made for Chrome that acts as a client , receiving this information...
asked by 30.01.2018 / 04:34
1
answer

Get the content size returned in the request

Hello, I'm using an interceptor that will intercept before and after the request. The purpose of this is to get the size of the content sent and returned, however, I do not know how to get the answer, it seems that the response does not have a...
asked by 29.01.2018 / 13:32
0
answers

Add scrollbar to select in webBrowser

I need to change the properties of my webBrowser in javaFX so that a scrollbar is made available to a select. By default the HTMLSelectElement is adding 2 arrows one at the beginning of the list and one at the end to move between items...
asked by 05.03.2018 / 13:21
1
answer

How to save image in the database?

I'm developing a web application using the play framework, in which I'm finishing the CRUD of a user, but this is missing only the part where the user saves his profile photos in the registry. As I have little experience with the web, I'm having...
asked by 27.12.2017 / 20:29
0
answers

Search only 1 record in SQLite

I have the following method to fetch the bank records, and use them in a ListView , Spinner , etc: public ArrayList<CRegistros> getRegistros() { sqLiteDatabase = banco.getReadableDatabase(); ArrayList<CRegi...
asked by 05.02.2018 / 15:58
0
answers

itext romaneio pdf for non-fiscal printer

I am developing a romaneio for order separation in java with itext, it is practically ready, however the document standard is like A4, and ideally would be for non-fiscal printers, someone could give a force of how to step convert for 40 columns...
asked by 07.02.2018 / 11:14
1
answer

How to compress a string for sending in a JSON object field

Hello, I'm developing an API in java, which returns a JSON object. One of the final json fields is long text, of unknown size. The text may or may not contain special characters. I am sending the raw information in a string. But as the...
asked by 05.02.2018 / 15:31