Questions tagged as 'java'

1
answer

Problem displaying AlertDialog

I'm getting an error message when trying to show AlertDialog using Android Studio. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_registrar_pagamento_ma...
asked by 04.11.2018 / 06:39
1
answer

Error deserializing a Json List in Java

This is as follows, I get a list in JSON format. But it seems that there is some kind of nonconformity in the way the JSON is mounted. Follow the code ... I have a client class that looks like this. public final class Cliente { private In...
asked by 04.11.2018 / 01:57
0
answers

How to use socket with JSON-RPC?

I have a class in which I am trying to send a request to the server and receive a json response to handle, but nothing happens. I do not know if I sent the request correctly or when it was time to get it. Follow the code: import java.io....
asked by 03.11.2018 / 21:02
1
answer

Convert URI to Bitmap

Good afternoon, I am a doubt, how can I convert a URI to Bitmap and then convert to Base64 so I can send it to the Database. private void abrirCamera() { fileUri = getOutputPictureUri("GRP"); if (fileUri != null) { // Cria...
asked by 04.11.2018 / 19:49
0
answers

Button back to the application after opening browser

I have a webview that loads a particular site in it the user has to do a validation that can only be done by the browser, the user clicks on the link and opens the android browser and does this validation, it is possible to create a button back...
asked by 08.11.2018 / 23:17
0
answers

Webservice Restfull + Jersey + Tomcat 9 return from Json without content-length

I'm developing a Webservice application with restfull + Jersey and Tomcat 9. In this system I need to return a Json from a class (Product) to an android application and use contentLength (android) to retrieve the file size and use in progress ba...
asked by 03.11.2018 / 12:47
0
answers

How to pass multiple webview in an AsyncTask

I need to pass several webview, to AsyncTask and they need to run in the same woe, but I'm not getting a return, I do not know how. My application has several AnyChart (Graphics) in the same layout and always returns error of Skip frame or says...
asked by 02.11.2018 / 22:28
0
answers

Syntax error in Java JDBC MySql

I have a syntax error here in the mySql query inside the Java code in the repository. The error is both in the ALTER method and in the EXCLUDE method. package com.leporonitech.agenda.repositorios.impl; import java.io.IOException; import java....
asked by 31.10.2018 / 19:40
0
answers

Error filling in The datafile PrimeFaces Jsf

My Entity: package Entidades; public class Aluno { private String nome; private int idade; public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public...
asked by 31.10.2018 / 16:24
0
answers

How to pass an array from angular to servlet

Non-Angled Method $ scope.saveListItem = function () { var params = {}; params.idLista = localStorage.lista; params.precoTotalLista = $scope.PrecoTotalLista; params.nomesItens = []; params.qtdItens = []; params.preco...
asked by 11.11.2018 / 02:49