All Questions

1
answer

FacebookOperationCanceledException error in Facebook game sample SDK Friend Smash

I followed the Facebook tutorial SDK to implement the game Friend Smash . In Activity Home you have a button to view the Scores. However, clicking on it displays a connection error on the screen:    Please check your network connection - Fa...
asked on 31.01.2014 / 21:31
6
answers

ListView too long

I created a ListView that shows the songs of my sdcard, but as you can see in the image below it is very long regardless of the quantity of items, I want the height of it to be smaller to display more names, so that the list not too long,...
asked on 13.05.2015 / 15:53
2
answers

PrimaryKey, ForeignKey and Unique With JPA

I have the following situation: Entity Student (id and so on) Evaluation Entity (id and others) Entity NoteEvaluationAlumni (assessmentId, studentId) I want to transform the evaluation attributes, alunoId that have relations with enti...
asked on 13.08.2014 / 16:23
2
answers

App failing when an image is selected

I'm trying to get an image using an Intent, but when I select the image, my application closes immediately. This is my current code: private void capturarFoto() { String nameFoto = DateFormat.format("yyyy-MM-dd_hhmmss", new Date()).toStri...
asked on 04.02.2014 / 20:51
1
answer

Is it possible to create a foreign key from another database?

I want to reference a foreign key from a different bank, I have seen in some forums that it is only necessary to 'nome_database'.'nome_tabela' , but it is not working. My code is as follows: ALTER TABLE 'relatorio_gestao'.'usuario_setore...
asked on 25.04.2014 / 21:30
1
answer

dynamic path out of context in servlet

To get the dynamic path within the project is easy, just run the code: String path = this.getServletContext().getRealPath(""); Here it is returned: /home/pedro-pazello/development/servers/apache-tomcat-7.0.42/wtpwebapps/img_uploader/...
asked on 23.02.2014 / 16:45
4
answers

How to leave all items in a menu with equal size regardless of quantity?

I want to make a menu that always leaves the items with proportional sizes, occupying all available width and adapting. .top-menu ul { width: 100%; } .top-menu ul li { display: inline; list-style: none; } .top-menu ul li a...
asked on 05.02.2014 / 20:27
1
answer

How can I extract only the PID of a process?

My idea is to create a simple script that can search the PID of a process and kill it for example. This is what I have done so far but has the problem of running 'ps' will not extract the PID. echo "nome do processo : " read $matança ps -ax...
asked on 17.02.2017 / 00:02
1
answer

Refresh DB table when clicking on a li element

I'm developing a mobile application using jqMobile and Ruby. How to update a database table by clicking on an item in a list. My list is generated like this: <ul data-role="listview" data-filter="true" data-filter-theme="a" data-divider-...
asked on 01.06.2014 / 17:42
2
answers

How to put an external source in my application?

I'm trying to put a custom font in my app, but I'm having a lot of errors. I have tried to use PixlUI, I have tried several different codes and always the error, or the application runs, but crash (app stopped) . This is the code I'm try...
asked on 14.06.2014 / 00:20