Questions tagged as 'android'

1
answer

Is an instrumentation test an integration test?

I've seen some videos where they explain how to test the call of an activity for another activity. I did the following test and, after a reflection, I was not sure if the test I performed was integration, instrumentation or functional testing...
asked by 27.09.2017 / 12:36
1
answer

Change HTTP User Agent

When an Android app sends a post to a Web server (type for a PHP page), this page receives an HTTP-UserAgent type "Apache-HttpClient / UNAVAILABLE (Java 1.4)". I want to know if you have a solution to change this value on the Android side? Th...
asked by 16.10.2014 / 16:28
1
answer

How to remove notification when user kills application

I have a notification that appears when a service is running and disappears when it stops running. If the user kills the application with the service running, the notification stays there forever. Is there a way to tell when the user kille...
asked by 21.11.2014 / 14:41
2
answers

AlarmManager only stores an Alarm

I have a problem with AlarmManager , for example, if I set an Alarm to 16:00 and another to 16:30 only the second is generating the notification, different from the second. I made some rather confusing conversions to manipulate the schedul...
asked by 10.12.2014 / 00:45
1
answer

Code Metrics, Analysis and Clone for Android Studio

Well, is there anything similar to Visual Studio's Code Metrics, Analysis and Clone for Android Studio? I know Lint exists, but as far as I know it does not measure code complexity, duplicate code, and so on.     
asked by 20.08.2014 / 15:46
4
answers

How do I know if it's a tablet or a smartphone?

How can I tell if I'm working on a tablet or smartphone with the Android API? Nowadays the resolutions, dpi are almost the same between tablets and smartphones and it's tricky to know which device I'm working on. The idea is for my...
asked by 07.08.2014 / 11:48
1
answer

Android application closes as soon as it loads (NoClassDefFoundError)

I installed the Android SDK all right, I installed the USB drivers of my Motorola Moto G. It's all right, so much so that when I run the application directly from Eclipse, it finds my device connected. USB debugging is enabled. Just when I ru...
asked by 29.04.2014 / 03:24
1
answer

Android Performance Comparison: Canvas vs OpenGL ES

Is there a benchmark for performance, or some listing with rules / guidelines, to tell me which time to use OpenGL ES on Android instead of the Canvas + Activity pair configured as hardwareAccelerated="true" to make constant drawings , fo...
asked by 03.05.2014 / 22:30
1
answer

Is it possible to make spatial orientation with magnetic sensor only?

Can you determine the spatial orientation of the smartphone using only the x , y , and z values of the magnetic sensor?     
asked by 26.09.2014 / 18:52
2
answers

FireBase Google

Currently I use Google's Firebase database, (and other components like, auth, FCM, etc.) for my project. I would like to know if there is how to create server side routines. For example: after a period of days the routine searches for users acco...
asked by 15.09.2016 / 15:41