Questions tagged as 'java'

1
answer

StackOverflowError when using a method

Next, I'm developing an application. In it there are two calculation methods, where in the data entry the user chooses the method and inserts the data. One of these methods is working perfectly. The other causes the problem of the following figu...
asked by 25.01.2017 / 00:49
1
answer

Add value of a SET list in MySQL

I want to add values in a 'list' (values separated by ',' which will then be used the 'split' function) in mysql, I am using this code: UPDATE clans SET Admins = concat(Admins, ',', 'NomeDoJogador') WHERE Name = 'NomeDoClan' , but when I a...
asked by 17.01.2017 / 06:11
1
answer

How to display an integer variable in a textView and add +1 to it every time I click on a button in the same activity?

I would like the textView to display the value of the variable I created in MainActivity "int numero = 0". package genesysgeneration.a10; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button;...
asked by 02.01.2017 / 23:08
0
answers

Update dataTable

I am having problems updating a dataTable primafaces after doing a search with filterBy. First, I do a search through a method in the Managedbean to bring the list from the database to the table. So, I search through a column using the filterBy...
asked by 28.12.2016 / 19:56
1
answer

MediaPlayer and Thread

Good evening, I have an activity in which I reproduce a bell x times, during t time, and for this I use a MediaPlayer inside a Thread, as below: public void tocarSino(final int repeticao, final long intervalo,final int audio, final Context...
asked by 24.01.2017 / 08:01
0
answers

Swipe ViewPager Tabs - align, change color of icon, return to page 0 and shrink toolbar

Hello, I made in the code below a ViewPager with Tabs: In the Main code: private TabLayout tabLayout; private ViewPager viewPager; SwipeRefreshLayout refresh; ParseUser currentUser; @Override public void onCreate(Bundle savedInstanceState) {...
asked by 09.12.2016 / 21:06
1
answer

Horizontal Scroll Bar, selectOneMenu - PrimeFaces

Hello, I am developing an academic project using JAVA EE, JSF, PrimeFaces, CDI, Hibernete among other technologies ... The layout is responsive and I'm using PanelGrid to organize the form's comps The situation is .. selectOneMenu contains...
asked by 07.12.2016 / 12:03
1
answer

Send audio file through wpp

I would like to know how to send an audio file through wpp, because when I try it appears "failed to share, please try again" Intent shareIntent = new Intent(Intent.ACTION_SEND); Uri uri = Uri.parse("android.res...
asked by 02.12.2016 / 23:52
2
answers

Restful Angular

I am developing a system with angular, java and restful jersey. However, I can not display the rest data in the view using the angle. The most I can do is generate multiple objects for each letter that contains in the rest XML and not the return...
asked by 02.12.2016 / 19:29
0
answers

OutOfBounds error

Well, I asked you to help me with this mistake! This is part of the code of a game, the idea and print anything like this M M M 123456789012345678901          1 2 The positions of the M will vary with each move, Thank you! Exception in...
asked by 02.12.2016 / 11:48