Questions tagged as 'android'

1
answer

How do I know what previous activity the current activity was called?

I have several Activities, which can call a special Activity. I would like to know how to identify which activity you called. It would be something like this: IneedthisbecauseIhaveauserregistrationactivity,whichcanbecalledthroughsevera...
asked by 23.05.2018 / 10:15
2
answers

Test an application's internet connection

I have an app that connects to webservice but the problem is that when I get 3G, it gives error. When the connection is good, with a wi-fi for example it works perfectly. I have some algorithms that test the connection, but everyone validat...
asked by 18.08.2014 / 15:26
4
answers

How to get the current location of the android device?

I'm developing an android application that needs to get the current location of the device (Latitude, Longitude) and use this data in google maps ... how can I do this? If you help me get only the latitude and longitude coordinates, it will be a...
asked by 21.04.2016 / 15:58
1
answer

Open Facebook application via a web link on Android

I have a mobile site that the user can only access by logging in with Facebook. The Facebook SDK for Web (Javascript) works fine, however the user always has to login because it does not always is logged in the Smartphone browser, ie (for some...
asked by 28.04.2014 / 20:31
1
answer

Notification at 0h00 without starting application

I would like to notify the user that he has an expense that expires the next day, but without the need for the application to be running, I currently have a code that notifies me from the moment I enter the application, I would like to do so (wi...
asked by 22.12.2015 / 21:00
1
answer

Daily notifications at a specific time set by the user

I've created a method to send a notification to the user with the name sendNotification() using NotificationCompat.Builder and NotificationManager . I need this notification to be launched every day at 07:30 AM , and th...
asked by 10.03.2017 / 18:16
3
answers

Change CRT file to byte

I need to convert a file .crt to byte so I can send it by socket. This code works in Java, but how would I write it on Android? Path path = Paths.get("sdcard/certificado.crt"); byte[] certificado = Files.readAllBytes(path);     
asked by 16.03.2014 / 13:06
2
answers

Is it efficient to check file modifications for Hash?

Scenery I need to implement a file change check between 2 points of my application. * ¹ Point 1 - Server - I have a folder where are some product images; Point 2 - Mobile Device - I have a catalog application that downloads these imag...
asked by 11.06.2014 / 15:59
1
answer

How does FireMonkey (Delphi) compile for Android?

I did some research but did not get good results, the project folder looks like a common Delphi or C ++ project! VCL - Delphi FMX - Firemonkey Please note: With the exception of the Android folder, where it contains some subf...
asked by 20.01.2016 / 01:55
1
answer

How to move an enlarged image with a finger in ImageView?

Based on in this question answer when you are zoom as you move the image with a finger to see the other part of the image.     
asked by 05.02.2016 / 00:22