Questions tagged as 'java'

1
answer

An unhandled exception has been detected. Generated code: [68MJGTMV] and [XJEL5QC6] - Expected Exception

Caught an unhandled exception. Generated code: [68MJGTMV]:: javax.faces.FacesException: # {classBean.save ()}: I checked the specified class to expect an exception value, but it does not. The problem occurred when I migrated from pc. The code...
asked by 30.01.2014 / 18:08
0
answers

How to use TabLayout with Fragment and Navigation Drawer?

I'm trying to develop an application with a Navigation Drawer and Fragments, where each one represents a specific screen (Start, Events, Participations, Library & About), I initially thought of using an activity for each "theme", but after a res...
asked by 03.01.2019 / 03:33
2
answers

How to decode a JSON array [{}, {}] on my android

How do I transform this string into an array on my Android so that I can manipulate it? [{"id":"1","login":"Admin","senha":"Admin","nome":"Admin","msg":"Eba","logado":"0"}, {"id":"7","login":"Daniel","senha":"1234","nome":"Daniel","msg":"","...
asked by 20.05.2014 / 18:17
1
answer

Android SMS sending

I'm developing an android app for sending automatic SMSs. When I send many SMSs around 200 at the same time the mobile phone turns off and displays the following error in the log:    display event receiver pipe was closed or an error occurre...
asked by 04.06.2014 / 18:38
1
answer

Problem when updating ListActivity using a custom adapter

I'm working on an application where populo a ListActivity using data of a SQLite created by the program itself. When you add items to the database, the list is updated automatically, but when you remove it, the list is not updated....
asked by 01.06.2014 / 06:42
1
answer

Create Foreign Key hibernate

Solved and edited correctly: I can not include an invoice with the customer id. In this case the customer may have multiple invoices assigned to it. I am able to register the NF correctly, but does not show the customer number that this in...
asked by 28.12.2018 / 11:07
0
answers

Get the percentage of Web Streaming upload

I have the following code below, private void contaBuffer () { textView2.setText(Integer.toString(mPlayer.getDuration())); mPlayer.setOnBufferingUpdateListener( new MediaPlayer.OnBufferingUpdateListener() {...
asked by 28.12.2018 / 15:26
0
answers

loading percentage MediaPlayer

How do I know the percentage loading MediaPlayer ? Since the load is delayed, I would like to know the percentage to inform the user. I am loading on AssynTask class Play extends AsyncTask<String, Boolean, Boolean> {...
asked by 27.12.2018 / 15:40
0
answers

The actual use of this [duplicate]

I recently entered object-oriented programming and I'm taking my first steps in JAVA, but it's still quite abstract that using this() when referring to metadata and attributes would be equivalent to C pointers? class Carro { Strin...
asked by 27.12.2018 / 22:08
1
answer

java.lang.NullPointerException on chat system

I'm doing a HelpDesk chat project with JSF 2.0 and Primefaces, but an error is thrown when I try to connect the Attendant or user in the chat. In atendente.xhtml and index.xhtml has a form that sends the information to...
asked by 08.02.2014 / 16:59