Questions tagged as 'java'

0
answers

Implement interstitial ads in App

Can someone explain me in a brief tutorial on how to implement Admob interstitial ads in my app that is a simple browser. The problem is that it is giving classes wrong, as I have no experience in java, I can not implement correctly. I need s...
asked by 09.11.2016 / 06:49
1
answer

Finalize all the child threads of an activity

In my activity I instantiate some controls that search server data asynchronously. The control instance is as follows: new controle().executar(new InterfaceRetorno(){...}); But what happens is the following, if the user hit the back butt...
asked by 10.11.2016 / 15:06
1
answer

Error consuming Glassfish + Jersey REST web service with date that returns an xml

I need to consume a web service (WS) REST in my android application. The web service was made with glassfish, jersey and ORM hibernate to communicate with the database. Here is the WS code: Vegetarian Service: @Path("/vegetariano") public c...
asked by 09.11.2016 / 00:54
1
answer

Return physicalDeliveryOfficeName from AD using LDAP with Java

I'm creating a Java application that integrates with the active directory. But I'm having trouble returning a specific data: the Office field (Office - physicalDeliveryOfficeName). Theoretically, its logic should work in a similar way to the...
asked by 23.10.2016 / 00:26
1
answer

Android Studio - Error: (46, 13) Failed to resolve: me.dm7.barcodescanner: zxing: 1.9

Good afternoon, I have a project and I'm trying to implement a QR code reader. so when I include his lib in the project la in gradle it gives the following error    Error: (46, 13) Failed to resolve: me.dm7.barcodescanner: zxing: 1.9 Foll...
asked by 05.11.2016 / 19:44
1
answer

Error in the Change method - Java and MySQL

Java masters, I'm working on a college project, using MVC layers, and I'm having problems with the client-change method. When I click the Change button on the form, it sends a message saying that the client has changed successfully, but when sea...
asked by 13.10.2016 / 03:40
0
answers

Hack video download html5

I would like to make it difficult to download html5 videos from the URL, which the user can inspect (browse with browser functions). Searching the Net saw that there is a 100% way not to allow the power user to download videos. I'm using the...
asked by 11.10.2016 / 16:01
0
answers

Photo taken from camera Android API error 21

When taking a photo with the android camera my app creates a preview of this photo in an Activity where it will be sent by email, however the code below is working perfectly for the android below version 4.4.1 and above it in the moment to captu...
asked by 13.10.2016 / 16:59
1
answer

How to make RequestContext thread-safe?

In a project I'm using the demoiselle-scheduler-quartz component. In this project several threads are fired and executed concurrently. The demoiselle-scheduler-quartz component injects the Demoiselle contexts (RequestContext, SessionContext, Vie...
asked by 11.10.2016 / 22:05
0
answers

Run audio in an Android WebView

How do I run audio from a url using a WebView in this case a URL from a radio, follow the code below. WebView mWebView; mWebView = (WebView)findViewById(R.id.webview); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScrip...
asked by 11.10.2016 / 18:33