Questions tagged as 'android-studio'

1
answer

Fragments are created with a Gray background and not white as default

In my project, when I create a fragment, it creates them and the backgrounds instead of being White or Transparent creates it with a gray color, which at the time of executing any component of type gridLayout, for example, shows a gray color at...
asked by 19.05.2017 / 17:58
2
answers

Error SQLiteException: foreign key mismatch

I was doing a database, but after hours of review I could not reach a resolution to my problem, so I come to you in search of an answer. I wanted to make a query of a database, whose tables are the following: db=this.openOrCreateDatabas...
asked by 12.06.2017 / 10:25
1
answer

Use different strings.xml files regardless of Locale

I would like to know if, without changing the Locale of the app, there is some possibility to choose which file of strings.xml to use in the app. For example, if I have a file of strings.xml and when translating this I ha...
asked by 25.07.2017 / 10:01
1
answer

Memory error in Android app when consulting more than 500 contacts

I have an app about to go to the market but I have a problem that I do not know how to solve.    When I make an inquiry from the contacts of the phone from the app, if the user has more than 500 contacts, the app remains frozen. Do you kn...
asked by 06.04.2017 / 20:45
1
answer

Error with the Android Studio Gradle

It's been a few days since I installed the version 2.3 of Android Studio that the projects do not compile me for Gradle , I've reinstalled several sometimes, even delete the hidden folders with a . in front, but everything remains th...
asked by 24.03.2017 / 18:38
1
answer

Help with AndroidLoginyRegistro with PHP

I downloaded an Android project that consists of a login and registration, it's the easiest and easiest one I found. The issue is that this project to register requires user, mail, age and sex but I only need username and mail. I ask for your he...
asked by 21.04.2017 / 15:45
1
answer

PlainText (); Can it go empty?

Hi, I've been seeing examples of an Drag&Drop from android studio but in an example I saw, this appears: View.OnLongClickListener longClickListener = new View.OnLongClickListener() { @Override public boolean onLong...
asked by 20.04.2017 / 03:06
2
answers

JSON in android (Value of type java.lang.String can not be converted to JSONObject)

<?php /** ESTA ES MI Database.php * Clase que envuelve una instancia de la clase PDO * para el manejo de la base de datos */ require_once 'mysql_login.php'; class Database { /** * Única instancia de la clase */ private st...
asked by 09.08.2017 / 08:52
1
answer

Google Sign-In for Android does not work with the Signed APK

When I use the credentials generated with the SHA1 certificate with the debug.keystore everything works correctly in debug mode with the Android Studio, the google-service.json is generated and everything works perfectly. Howeve...
asked by 30.12.2016 / 18:53
2
answers

android: error when trying to use java 8

I'm trying to upload the java version (to java 8), in my build.gradle(Module:app) I added the following: apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig {...
asked by 01.12.2016 / 21:24