Questions tagged as 'android'

1
answer

AsyncTask Android

I have a "Runnable" method that executes on a new Thread a certain method to update my list. Every time I call this "Runnable", I'm creating a new Thread, which for me is not very positive ... How can I do the same thing using an AsyncTask...
asked by 29.06.2015 / 21:11
1
answer

How to work safely on an API + Android?

I need to develop an API that will receive the data of a user in json via $ _GET with PHP, which will do the verification of the data and return a true or false value for the Android application. I am currently using AES encryption to send js...
asked by 17.10.2014 / 19:09
1
answer

Prevent change of orientation update Activity

I have a problem, an Activity my has a list of multi-selectable objects, with the long click I can select several of these objects and click the remove button, when I click to remove, a progress dialog appears that is executed by an AssyncTask ....
asked by 19.10.2014 / 08:01
1
answer

Atomic operations in ARM without Visual Studio

When programming in C / C ++ on the x86 and x86-64 (AMD64) architecture and using the Microsoft compiler that comes with Visual Studio, there are two intrinsic functions to perform atomic operations, _InterlockedCompareExchange32 and _I...
asked by 20.06.2014 / 17:31
3
answers

Android service runs only the first time

I'm developing an application where synchronization with web services is done. The application is very simple, it makes a list of questions, the user responds, clicking on finalizes, writes this data in the cellular database, and does the replic...
asked by 28.06.2014 / 17:34
1
answer

What is the Journal file for Android

When I created a database in SQLite on Android, I noticed a file with the name of the table, followed by -journal. What is this and what is it for? I've been curious about this file having different permissions and using a table icon in an ex...
asked by 17.09.2014 / 09:36
2
answers

Problems using Phonegap

I'm trying to use Phonegap for the first time, but I'm having problems. I already had NodeJS installed, I was able to install Phonegap with npm install phonegap with no problems. Then, as suggests , I created an app with phonegap c...
asked by 27.08.2014 / 20:54
1
answer

Best way to store images in a database

I have an android application that uses a mysql database, to store profile information for my users, but I would like to know how best to store each user's photos, as I thought of uploading the imgs when he took it out and save only the url, but...
asked by 24.07.2014 / 07:01
4
answers

Bluetooth connection Arduino and Android (Java) - InputStream storing old data

I'm making a very simple Java class just to simulate Android's communication with the Arduino via Bluetooth. The idea is as follows: The Arduino every 5 seconds will turn on and off an LED. If the LED is lit, String "1" will be sent to the se...
asked by 13.07.2014 / 18:48
1
answer

Draw triangles with OpenGL ES 2.0

I'm learning OpenGL ES 2.0 for Android, and after some familiarization with the programming order I'm trying to draw 2 triangles on the screen, from 2 different objects. It's very simple, but it's not working, only my "triangle2" is drawn on the...
asked by 09.03.2014 / 15:35