Questions tagged as 'android'

1
answer

How to adapt my code to Android 4.1?

I'm making an application using Materialize. But there is a mistake. The MENU is to work as in the second image. It is hidden with TranslateX(-100%) . And when I click on the MENU icon it opens the MENU. But when I open the applicati...
asked by 22.11.2016 / 12:14
2
answers

Adding new fields dynamically

I'm creating an app that calculates credits from a school report. DUVIDA : How to add a new EditText when the user clicks the next "+" button and sums the values of each EditText .     
asked by 11.09.2016 / 05:17
2
answers

When and why should we use SVG?

I develop for Android already has enough time, program natively, to be more specific. But lately I have had some doubts about using in-app images. At some point we will make some application that uses a vast amount of images and then a problem a...
asked by 15.12.2016 / 15:04
1
answer

What are extended functions?

I'm writing an article on programming in Kotlin, I came across this name, what are extended functions?     
asked by 25.10.2017 / 19:58
2
answers

What is the best (faster) way to read a file from a web server?

I need to read a file on a web server, but when I need to store the content in an array of bytes it's taking too long. Does anyone know a faster way to do this? follow my code. Thank you in advance. try { url = new URL(surl);...
asked by 26.10.2015 / 15:15
2
answers

block the "erase" of the screen by time of inactivity

My application works as a guide for a professional illuminator, it works passively (responds via Bluetooth to user commands in your working tool) or offline where the user can operate it manually in parallel with their tool , the issue is that o...
asked by 24.10.2014 / 18:39
1
answer

Why use implements?

What's the difference between using btn.setOnClickListener(new OnClickListener() { and public class MainActivity extends Activity implements OnClickListener{ I've been doing an Android course and my teacher said that implements only...
asked by 27.06.2014 / 02:31
2
answers

How to detect USB connection via application?

Is it possible for me to detect a USB connection in my Android application and how do I do this? I have a sync menu that is performed via USB and FTP, however I want to leave the USB option accessible only when the device is connected to the...
asked by 29.12.2014 / 15:11
1
answer

What's the difference between AppCompatActivity and Activity?

What's the difference between AppCompatActivity and Activity ? From which version did AppCompatActivity be added to Android ?
asked by 18.03.2016 / 11:04
1
answer

Fullscreen Video on Android Webview

I have an application made in Android Studio that uses webview and runs a remote web application. The video is displayed perfectly in the webview. However, the fullscreen option is not available in the embedded player on the page. See the...
asked by 10.08.2017 / 17:53