Questions tagged as 'android'

1
answer

How to Install Appium

I'm trying to instantiate Appium in Android Studio, but I'm not sure how to do it. How do I install Appium in Android Studio ?     
asked by 29.03.2017 / 15:30
2
answers

How to calculate a value while the user types in an Android application?

Hello everyone, I'm developing an application where the user must enter a quantity and the unit value and the application calculates the total to pay. But if you erase all the value that is in the fields the program aborts. How can I fix this?...
asked by 25.02.2017 / 03:13
1
answer

Get Id onesignal cordova plugin

I'm having trouble getting the onesignal device id. I'm trying to use the following method: var getId = function(){ window.plugins.OneSignal.getIds(function(ids) { alert('getIds: ' + JSON.stringify(ids)); }); } Before that I'm starting...
asked by 26.02.2017 / 15:27
0
answers

When my Json return is an array how can I get this array?

try{ URL urlConection = new URL(caminho); conn = (HttpURLConnection) urlConection.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST");...
asked by 31.03.2017 / 11:54
0
answers

Check the status of SIM cards 1 and SIM 2 on a Dual SIM device

The answer above answered the part of my problem, so now another question has arisen. How do I check the status of SIM 1 and SIM 2 cards in a Dual SIM device? At this point I have the solution implemented as follows: if (phoneType == Tel...
asked by 12.03.2017 / 16:48
0
answers

How does the GPS locker or similar app work? [closed]

I'm developing an Android app, which monitors the path of a machine in the field, so that the GPS points come fixed and more accurate, something that only GPS Locker can do, but would not want to be dependent I'd like to put it inside the app I'...
asked by 22.02.2017 / 20:58
1
answer

App webview session or cookie

Hello, guys! I am creating an (hybrid) app for android, from HTML5, CSS and JAVASCRIPT, such as WebView. I will use API through PHP using MYSQL, exchanging information with JSON. My question is next, where should I save the token to make a...
asked by 12.03.2017 / 04:56
1
answer

How to call Finish () from a separate class?

I have an application where when the user clicks "Back" on the MainActivity it displays a AlertDialog on the onBackPressed() method asking if you really want to quit the application. But I created a new Gerenciar clas...
asked by 23.02.2017 / 14:17
0
answers

Problems compiling in Android Studio

I created my first Project in Android Studio by setting MinimumS SKD to API 23 Android 6.0 (Marshmallow). Then I created a vital device in AVD Manager with the following settings: Nexus 5 API 24 (Nougat). I am trying to run the project on this e...
asked by 22.02.2017 / 17:00
0
answers

How to crop two images in the same Activity?

I'm using this repository to crop images. But I am not able to cut two images in the same activity, being that one cut is oval and the other rectangular. Whenever I click on both, the cut is the same. Here is the code for the oval cut: pr...
asked by 18.03.2017 / 15:52