Questions tagged as 'android'

1
answer

How to read fixes within JSON objects with retrofit 2 in android? error: "java.net.ConnectException: Failed to connect to"

I am trying to consume a api of a localhost , once created generate the following JSON {"Users":[ {"id":1, "username":"pepe123", "fname":"pepe", "lname":"jose", "dispositivo"...
asked by 31.10.2018 / 20:53
4
answers

Disable the functions of the three buttons (Back, Home, change app) android [closed]

I am looking for some way to disable the functions of the navigation bar buttons so that my app can not be closed. Thank you very much.     
asked by 27.01.2017 / 21:46
2
answers

Place StringRequest / JSONRequest of Volley within a class to be called

I would like to ask about how to place a StringRequest inside a class, because it usually shows an error showing that it needs a Context to be able to work. I do not seem to ask for a Context context as a parameter. To be able to call a class th...
asked by 01.06.2016 / 07:10
1
answer

Problem when inserting data into a database

I have some data that I want to insert in my BD, but the problem is that they are not inserted. Table creation in BD: public class DB extends SQLiteOpenHelper{ String tabla ="CREATE TABLE Datos (Id INTEGER PRIMARY KEY AUTOINCREMENT...
asked by 08.03.2017 / 23:19
1
answer

Data is not displayed in the ListView but if it is seen that it is full

public class FillList extends AsyncTask<String, String, String> { String z = ""; ListView lstpoints = (ListView) findViewById(R.id.lstpoints); List<Map<String, String>> pointslist = new ArrayList<Map&...
asked by 26.05.2016 / 00:15
1
answer

OnBackPressed in NavigationView

I'm using the Android Studio template and adding this method to the main class: @Override public void onBackPressed() { DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); if (drawer.isDrawerOpen(GravityC...
asked by 04.06.2016 / 19:54
1
answer

How to use for example this method public static boolean isConnectedWifi (Context context) in another class?

In a class I am validating the connection to the network in Android, and I would like to validate if the true value of that method in another class is executed by another method. Class 1 public static boolean isConnectedWifi(Context context...
asked by 22.06.2016 / 22:49
1
answer

Bluetooth connection with android [closed]

I am working on building a platform that allows to connect via bluetooth and until now I have worked with an AND device but it is very tiring. Does anyone have any suggestions for a device that they can use for this case?     
asked by 03.03.2016 / 22:09
1
answer

read / write mp4 metadata on Android

I want to read and edit (write) the mp4 metadata. In particular, I want to read / write metadata tags in Android as shown in the following image. I searched this on the Internet and found mp4Parser, but I do not think you write mp4Parse...
asked by 30.04.2016 / 17:37
2
answers

Parser Json volley request

You see, I have a Json that works correctly for me being this: { "codCompeticion": "284", "nomCompeticion": "2ª.Cadete I \"Copa Coca Cola\" Valencia", "jornadas": [ { "jornada": "1", "idClubLocal": "020121...
asked by 10.04.2016 / 22:50