Questions tagged as 'java'

1
answer

How to plot a route using maps API

I'm making an application in Android Studio for an event and would like it to: When you open a specific screen, the app would use mobile phone gps to acquire the source coordinates and open the google maps app to create a route with the desti...
asked by 30.09.2016 / 18:52
2
answers

Reloading an activity

I have the following problem, in my application I have a ListView in act 1 , and I make a register in act 2 , however when I finish the registration I also end act 2 , with this return to act 1 , the problem is tha...
asked by 22.09.2016 / 05:03
4
answers

Error using Collections.sort ()

Studying collections, I tried to use the following example in Eclipse: public class TestaLista { public static void main(String[] args) { List <Conta> list = new ArrayList<Conta>(); Conta cc1 = new ContaCorren...
asked by 01.11.2016 / 18:01
1
answer

How to implement voice and video calls in my apps [closed]

I'd like to know how I can implement video and voice calls (similar to WhatsApp's) in my Apps written in JAVA for Android. Is there any open source SDK that makes this easy?     
asked by 07.01.2017 / 04:57
1
answer

Display dialog box on the foreground screen even if the window is in the background

I'm developing an application where it works with schedules, the user will leave the problem running and will continue to use the pc normally and when you give a certain time will play a sound (already is done) and a dialog box would appear warn...
asked by 11.01.2017 / 14:25
1
answer

How to make banner AdMob preecher wide width?

Hello, I made the padding of XML and put wrap_content , but the AdMob Code: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http:...
asked by 10.01.2017 / 15:19
2
answers

Hide screen options if user is not allowed

I'm having a difficulty in a web application I'm creating here, I'm using spring security to do access control, session and login, with backend java with restful and frontend with primefaces . I would like to know if y...
asked by 28.04.2016 / 15:56
2
answers

Picking the first and last date of the previous month

I'm using Selenium in Eclipse to automate the sending of commands to a website through JAVA files. On this site, I need to check dates. I did so to test: element = driver.findElement(By.name("form:dtEmissao_input")); element.sendKeys("01/04/20...
asked by 12.04.2016 / 16:30
1
answer

How to add to the build path a folder via maven

I have an application using Jhipster, to make queries I added querydsl, I configured in maven to generate Q classes, these classes are being generated in the path: target / generated-sources This folder is not in my buildpath so the project g...
asked by 16.04.2016 / 12:23
1
answer

How to adapt Hibernate to the DAO standard?

I'm starting to study Hibernate and wanted to "start right". The doubt is as follows: For the entire transaction I need to use the following code: Session session = HibernateUtil.getSessionFactory().openSession(); session.beginTr...
asked by 18.02.2016 / 14:19