Questions tagged as 'android'

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
0
answers

List data from an android API

Hello, I'm trying to list data from a web API, as I've never listed it so I'm having trouble understanding the listing solution, the API url returns a few values that I want to list in the Main activity, but when I enter the row with the followin...
asked by 16.01.2018 / 01:23
0
answers

I can not call an Activity through a Fragment

First of all I'm sorry for the mistakes (bugged keyboard). Well I'm trying to call an Activity through the code below, this code is in my MainActivity.java. I created the fragments to be called through the Drawer Menu and it works perfectly....
asked by 15.01.2018 / 20:49
2
answers

Problems handling Vector Asset

Android Studio is returning this error when I add images to my project, but the selected images are the IDE's native icons.     
asked by 22.01.2018 / 17:50
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

List of all files that are inside the Resource.Raw folder

How to get all the files that are in the Resource folder and move to a list. I'm doing it manually, but now I need to dynamically pick up and move to a list all the files that are in the Resource.Raw folder string[] caminho = new string[2];...
asked by 26.01.2018 / 03:28
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