Questions tagged as 'android'

1
answer

Android, Internal Persistence offline

I'm currently using sqlLite for some things, but I was wondering if there is any simple way to save for example a STRING in the internal base of the phone without the need to use external libraries,?     
asked by 25.01.2018 / 14:55
1
answer

Am I configuring something wrong? - Locationlistener generates erroneous locations

Good morning, I am developing an application where I get the user's location through the LocationListener class of Android Java, the problem is that sometimes it locates me correctly, sometimes it locates me to more or less 10 or 20 meters of er...
asked by 24.01.2018 / 20:21
2
answers

Problems installing an application

I was trying some things in android studio and I realize that it does not run on Android 5.0 or 6.0, it only runs on 7.0. I am using compileSdkVersion 26, minSdkVersion 21 and targetSdkVersion 26 so it should not have any problem. The error of t...
asked by 14.04.2018 / 18:56
1
answer

Show Difference of 2 instants in SimpleDateFormat format ("yyyy-MM-dd HH: mm: ss.SSS") android

I have 2 buttons that get the start, end and duration timestamp of an event, but they look like java.text.SimpleDateFormat@f17b4ca5, but I do not know how to calculate the difference between them. I would like it to look like this: "2018-04-1...
asked by 15.04.2018 / 21:08
1
answer

Certified Self-signed Volley Android

I have the following method that makes a call to a service by volley public GenericController(boolean flag) { if(flag) { objectRequest = new ObjetRequest(1, "", BaseRequest.class, "", new Response.Listener<BaseRequest>...
asked by 10.01.2018 / 17:33
1
answer

How to link material buttons desing to social networks?

My problem is as follows, create a menu with Material desing and I do not know how to link the url of my profiles to the buttons that are displayed BELOW I LEAVE MY CODE <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:...
asked by 14.03.2018 / 20:56
1
answer

Service does not work on android 7+

I have a background service that lasts approximately 5 minutes and executes X methods every X time each, it is necessary that those times are fulfilled and go consecutive. The problem is that Android 7 kills the service by "turning off the sc...
asked by 15.03.2018 / 20:40
1
answer

Problem with Google Maps: java.lang.ClassCastException: android.app.Application can not be cast to android.app.Activity

I am practicing with the example of a videoturorial, I have reviewed the code several times, but the application does not work, in the video tutorial if it is seen to work, but when I show the map the application closes. I try to see the oper...
asked by 28.12.2017 / 15:25
1
answer

Add key value in HEADER HTTP VOLLEY ANDROID

I have the following code public void servicio_GET_MOVS(final Context context, String request, final Response.Listener<GetMovements> listener, final Response.ErrorListener errorListener) { HashMap<String, String> headerParams...
asked by 28.12.2017 / 14:26
1
answer

I want to change the cell of a color ListView according to an Android Studio paramenter

I have a couple of problems with the ListView 1) In the ListView there are subjects and I want that if they have a warning they are marked with a different color, either changing the background or the colored letters. I receive the parameter...
asked by 17.01.2018 / 15:20