Questions tagged as 'android-studio'

1
answer

Multiple foreign keys within a field of another table?

Good morning, I am developing an Android application where I have this database. -Tables Food: ID Primary Key char (15) Name char (25) Description char (35) Tags char (35) -Tables Tags: ID Primary Key char (15) Name char (1...
asked by 06.06.2018 / 23:49
1
answer

Problem with a CustomAdapter

public class Adaptador_calidades extends SimpleCursorAdapter { private Context mContext; private Context appContext; private int layout; private Cursor c; private final LayoutInflater inflater; int xCajas, xPeso; double xPrecio,xFinal; public Ad...
asked by 22.11.2017 / 21:25
1
answer

Random between certain numbers

Hi, I wanted to know if it is possible to generate a random number between specific numbers. For example I have a board of 9 numbers (1,2,3,4,5,6,7,8,9) but the squares (2,6,8) are already occupied. Is it possible to create a random where only t...
asked by 17.11.2017 / 14:56
0
answers

Error in Values.xml

I have a small error in values.xml Tell me this. And in the values.xml I have this: I also have an error in setContentView(R.layout.activity_registro_usuarios); Sure it is very easy to solve the error, but I can not find...
asked by 03.12.2017 / 04:02
2
answers

Error Long Log Tags (Java Android Studio)

I have an error but I have not found how to solve it as such if not just how to cover the problem. Log.e("APIComm:AssetsPropertyReader", e.toString()); Mark me the error,    The loggin tag can be at most 23 characters, was 26     
asked by 13.09.2017 / 17:08
1
answer

Open browser in webView

I have developed an app with a WebView in which a login page is displayed. However, as the login is no way to know which will be the next page to show, so it opens the browser outside the app. Would there be any chance that this new page could b...
asked by 27.06.2017 / 08:13
2
answers

I have a problem with the screen dimensions in android?

I am developing an app, but I do not know how I can make it adapt to all the screens of the existing telephones, although it is programmed only to layout that my viewer of android studio, in this case the phone of 4 "by default , it looks good,...
asked by 09.01.2017 / 06:11
1
answer

How to open an activity when a push arrives in Backgroud

I want to consult, how to make the Notifications.class activity open when a push message arrives with the background application. I have a main.class that is my main main and launcher in the manifest. and a notifications.class that opens for...
asked by 14.01.2017 / 18:00
1
answer

Pass Json Object to List [duplicate]

I have this method that is from a list of products public String ProductosFacturas() { float montoTotalf = 0; int productsize = ctPagar.getProductArraylistsize(onGo); //Crear Array de productos del carrito para pasarlos al se...
asked by 08.10.2018 / 18:11
2
answers

Problems with obtaining location in android studio

Good afternoon friends I have a problem, Well I have been doing tests and I would like to know where I am failing, as I see when I do debugeo, location returns null and therefore can not return the get Altitude or any other property, I would lik...
asked by 31.08.2018 / 19:58