Questions tagged as 'android'

1
answer

How do I uninstall an app automatically before installing again?

I'm using Android Studio to test and debug my application with% s of% s, but the application does not overlap properly, so I need to remove it before installing it. I tested it with library and :app:uninstallDebug as described...
asked by 26.08.2016 / 22:37
3
answers

How to use GestureDetector?

I would like a practical example for this method, as I want it to detect motion to the left executes a command and if it is to the right executes another command. Searching the net found this code seems to be working, however it does not sens...
asked by 14.05.2015 / 19:51
3
answers

Map show current location

I would like to know how to make the map show the user's current location. I created this code that was apparently working, but sometimes it can not pick up the location and application of the error. public class VisualizarMapa extends Frag...
asked by 03.02.2015 / 02:04
3
answers

How to override connection to stop the application? [closed]

I have an Android application that sends data to a server via wireless, when sending changes from Activity B to A. It turns out that when the connection is weak the application stops and gives the error below. So I understand what I read i...
asked by 17.09.2015 / 17:50
1
answer

YouTube in WebView for Android app

Does anyone know how to view a YouTube video or some streaming of video through a WebView ? In the code below, there are three buttons. The first one takes the user to the link he typed, the second is fixed to go to Google's website a...
asked by 02.01.2015 / 00:10
1
answer

Passport Session Authentication on Android

I have a web app running with NodeJS, Express and authentication with Passport-JS, and everything works perfectly. Now I'm developing an Android app and I need to authenticate my users using the same API. From what I understand by reading...
asked by 14.12.2016 / 13:05
1
answer

How to crop an image from the gallery or photo taken by the camera, save and load an imageView

I would like to know how to crop an image from the gallery or photo taken by the camera, save and load a imageView , as I can do this for the intent gallery option, but for the camera option it returns me a data = null below...
asked by 04.02.2016 / 23:17
1
answer

Open map at user's current location

I'm trying to open GoogleMaps in the user's current position, I've already researched a lot and still can not make it work in my project. I'm using Fragments to manage the layout. In the current project the map already opens without problems, ho...
asked by 13.07.2017 / 18:46
5
answers

Return null in method?

I have a method in which the function of it is, read a file and store the value written to the file in a variable and return the variable, here's the method: public String addItemCreative(File f){ String line = null; try{ Buffe...
asked by 24.11.2015 / 11:57
1
answer

how to open the android camera and take the photo and upload the photo to the server?

I have a problem with the application it opens the camera but it does not upload aguem can see where I'm going wrong follow the code public class MainActivity extends Activity{ //chamar quando a atividade é a primeira criada @Overrid...
asked by 13.10.2016 / 21:42