Questions tagged as 'java'

1
answer

Leverage Android API in Desktop Applications

Can I take advantage of the codes of an API made for Android and use it in a java desktop application? PS: I do not handle anything from Java, I'm willing to learn. I only know Delphi and C ++ ... In delphi for example, I can take advantage of t...
asked by 25.07.2014 / 15:57
2
answers

Correct structure for working with java (JSP)

I'm starting to develop with java (jsp). And I would like to know the correct structure of working (only with "pure" java). It would be this: model (Classes with get and set)    dao (classes that extends the connection class) (for each cla...
asked by 27.07.2014 / 02:19
1
answer

Java Android Merging Projects

Sometimes I need to use a project in another such as a UI framework in my application or something and most of them are available in repositories like github etc, I usually download and extract the files to my project folder but soon the eclipse...
asked by 23.07.2014 / 23:17
1
answer

Giving permission to another application to access my package

I have an application that has a certain audio file, which is in /data/data/meu_pacote/audio_anexo/audio.mp3 , so that's fine, the problem is that the MediaPlayer class of Android can not execute the file, and when I put the same file on...
asked by 28.05.2014 / 14:24
1
answer

Sax parser xml string Java Android

I'd like some help on a problem I'm having in Java Android . I first read a String XML to get the values for each tag. When getting the values reads the tags well, only 9 out of 9 Strings received reads in parts, if anyone knows how t...
asked by 29.05.2014 / 10:23
2
answers

Transfer .class files to the / web-inf folder in Eclipse

I am developing a web project for a final college job. When creating .jsp files for the application, it fails because it does not find the servlet class. Classes and .class files must be inside a hidden folder called classes. Do I have to cre...
asked by 21.05.2014 / 01:24
1
answer

How to make connections to a php work in the background on Android

I have a small chat that logs in and sends messages to the server through php + JSON , but every query will crash the app for a couple of seconds, which is really annoying. I heard something called Backgroundworker , but I do not kno...
asked by 20.05.2014 / 21:20
2
answers

Return of select objects (ComboBox) with Hibernate + JSP + VRaptor. Does not fill relationship between tables

I have an object TabelaPrecoItem with all the structure formed and almost everything working, follows the model model. @Entity @Table(name = "fov_tabela_preco_itens") public class TabelaPrecoItem implements Serializable {...
asked by 16.05.2014 / 15:15
2
answers

Error executing java program for printing through PHP

I have a web application that generates an image for a badge and to be able to send it automatically to print, I created a program in java that does this. The program runs perfectly, I generated a jar, pasted together with the php files insid...
asked by 01.04.2014 / 21:39
1
answer

Map Hibernate classes with composite-id and joined-subclass

How can I map a class with composite-id and extend another class? I'm using the example in: http://www.javacodegeeks.com/2012/08/hibernate-composite-ids-with.html I have tried to change the code, but when I try to insert data using this m...
asked by 28.03.2014 / 14:31