Questions tagged as 'java'

0
answers

How to call another screen via MenuItem

I'm trying to call another screen (include) through a MenuItem, but it's not working. At first, I can call my Login screen through Main.java, then I can also log in and call the Menu screen with a button. I think the MenuItem method is dif...
asked by 26.02.2018 / 17:44
0
answers

When to use AsyncTask, ThreadPoolExecutor or Service?

About how to run long runs on Android , I'd like to know basically for use of classes: AsyncTask ThreadPoolExecutor Executor FutureTask Service
asked by 27.02.2018 / 20:43
0
answers

Android application closes when performing calculation

I'm making an app that has a very specific medical calculator. In the ADL, the calculation appears divinely well. On real devices, it gives error and the application is closed. Can anyone help me there? CalcActivity: package unicatolic...
asked by 15.01.2018 / 23:39
1
answer

Catch hidden extension of Uri

I have an application to watch and download videos online, my code detects the mimetype by url to use as an extension of the downloaded video. However, some websites have the hidden extension, such as this url: http://www.animeplus.org/inc...
asked by 16.01.2018 / 14:15
0
answers

Express Test on Android returns null for mActivityRule.getActivity (). getWindowManager ()

I get an error when I try to access the property of the activity mActivityRule.getActivity (). getWindowManager (). getDefaultDisplay (); I tried to change IntentsTestRule instead of ActivityTestRule and nothing. I tried calling Instructio...
asked by 15.01.2018 / 21:37
2
answers

Discover the format of files without extension

I have thousands of photos on my computer but without the extension. Because the extension has been deleted, I would like some Java library to manipulate those files / photos that are without extension and then discover its format in order to...
asked by 23.01.2018 / 04:48
1
answer

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url

Hello, I'm trying to compile my project using sbt , but it causes an SSL error: ServeraccessError:sun.security.validator.ValidatorException:PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindval...
asked by 11.01.2018 / 18:44
1
answer

Glitch with JPopupMenu in Java Swing

I created a small application to test a JPopupMenu along with a JTextField, the problem I encountered is that when I click very fast, repeatedly following together selecting the items one time or another from a glitch / bug on the screen, it lea...
asked by 12.01.2018 / 20:38
2
answers

How do I refer to a String using multiple values in Java (Android)?

I've done a chatbot / virtual assistant and I want it to answer the same thing for different words, example: if I write "Hello" or write "hello" it returns the same response: "hello how can I help". public void assistente(View view) { if (...
asked by 25.01.2018 / 19:07
1
answer

Spinner - List line break

When you open Spinner , you have some options that are large, so by default it places ".." points at the end of the item. Is there a% of% for wrapping or would a opção padrão do Spinner be created for this?     
asked by 25.01.2018 / 17:34