Questions tagged as 'android'

1
answer

What is RecyclerView?

I saw the class in the Andorid documentation , but I did not quite understand its functionality , where it should be used and for which purpose. The name referred to something that does not seem to be what it actually represents. Is there an...
asked by 02.08.2018 / 13:49
2
answers

How to insert EMOJI - SMARTFONES in MySQL database with PHP? [duplicate]

Well, as the question is very self explanatory, I will only reinforce the question. I have an APP system of conversation, which through HTML , I command for PHP with Ajax , but if the user tries to insert some emoji in> (emotion)...
asked by 03.08.2015 / 18:16
1
answer

No geolocation return using Phonegap

I'm using the code to get geolocation from Phonegap , but even then, when I emulate the app, it does not return anything to me. Is there anything wrong with the code? index.html <html> <head> <meta charset="utf-8" />...
asked by 21.02.2014 / 15:29
3
answers

What best practices when implementing requisitions?

When implementing calls to a webservice I have worked with the following schema: implement a class that extends AsynkTask and within method doInBackground() I make the call to my service. One particularity here is that instead of...
asked by 22.08.2015 / 03:57
1
answer

Difference between Handler and Thread

I made a test app where I would like to see a ProgressBar being updated by simulating a long-running task. I initially tried to use Handler because after some research I saw that its use was recommended: final int tempoDe...
asked by 07.04.2014 / 19:27
3
answers

Importing library in Android Studio

How to import a library into Android Studio? I have a project in Eclipse that uses the libraries: zip_file library downloader_library You need to add APK Expansion Files to an application that is larger than 50MB. The project...
asked by 16.12.2013 / 19:18
5
answers

How to manage a SQLite connection between multiple concurrent threads?

So I'm having some problems with my connection to SQLite, where I'm not finding a workaround. Scenery My scenario is as follows: I synchronize the data of my application with a legacy system through a WebService; Synchronization is...
asked by 20.02.2014 / 14:35
3
answers

What is the difference between return and break in a switch case?

In some situations you need to practice switch case for optimization and improvement of code. I have an application developed for Android using Java, which in the case is used in both situations. Below I have an example using return...
asked by 05.01.2017 / 17:56
2
answers

Priority in progressdialog

Is it possible to prioritize progressdialog vs. Thread ? In my app, after clicking a button, I need to freeze progressdialog for 2 seconds. After that, I generate a query to my webservice , and as soon as I return the d...
asked by 26.02.2015 / 18:41
1
answer

How to send an audio file from Android phone to computer?

I'm working on an Android app that makes phone call recording on a mobile device. I just need to send a copy of the audio file to the computer via TCP / IP. I already have a function that sends text to the computer. But how to send an audio f...
asked by 20.09.2016 / 04:00