Questions tagged as 'android-studio'

1
answer

Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $

I'm new with the retrofit library and I use version 2.4.0 I have an application where I want to show the following Json information in a ListView. Investigating I found that I expect a matrix but I receive a Json object but I have not been able...
asked by 29.03.2018 / 04:26
2
answers

How to remove items from a list

I have a class that creates circles every time I touch the screen and when it meets a certain condition I want to eliminate them from the list. How can I do? Thank you. public class Juego extends SurfaceView implements View.OnTouchListener...
asked by 04.03.2018 / 14:11
2
answers

How to do so that when I click on an Item in a listview in Android studio I opened a new activity

How to do so that when I click on a Item of a ListView in Android Studio I open a new activity.xml ? This is the code I have: package com.example.juan.pruebaprueba; import android.support.v7.app.AppCompatActivity; impo...
asked by 18.04.2017 / 17:02
1
answer

Error with Android Studio 3.0 Build in Windows 10

how are you? I downloaded the Android Studio 3 but I can not get it to work for me. I create a new project in white, and as soon as the first automatic Build does, it throws me some errors. I already tried to restart it and reinstall it but it s...
asked by 28.12.2017 / 21:46
1
answer

Does Spinner OnItemSelectedListener not work?

As such, it does run, but the if and else if statements do not run and I can not find a solution to debug public class MainActivity extends AppCompatActivity implements AdapterView.OnItemSelectedListener { boolean IntersticialBoolean = true;...
asked by 03.12.2017 / 05:43
1
answer

Error assigning to String cursor value

I have a cursor to find the earliest date but I peta by assigning the string Cursor cFechaAntigua = bd.FechaAntigua(); buscarFechaInicio = cFechaAntigua.getString(cFechaAntigua.getColumnIndex(ArticleDataSource.MOVIMENTOS_FECHA)); This is t...
asked by 17.02.2018 / 16:48
2
answers

Exception in thread "Loading Sources" when starting Android SDK Manager

I have installed the Android SDK to create an emulator and try an app and there is no way for the Android SDK Manager to show me the available packages to be able to install them. When opened it only shows me the packages that have been installe...
asked by 11.02.2017 / 16:52
3
answers

Error: android.content.Context.getPackageName () 'on a null object reference

I'm trying to run an Intent but it gives me an error when launching the intent it shows me the following error:    Attempt to invoke virtual method 'java.lang.String   android.content.Context.getPackageName () 'on a null object reference...
asked by 30.11.2018 / 19:54
1
answer

How to update adapter data when editing text from a recyclerview

Good afternoon, I'm new to the forum so I apologize if I'm wrong with the question or it's a very silly question. It turns out that I am making an application and I have a recyclerview where it has a edittext which carries the q...
asked by 08.05.2017 / 23:50
0
answers

Format a String in Android Studio [closed]

I'm trying to format a String that is sent by an attempt to Gmail to send an email ... This is the part of my code that I want to format: Pedido = (Pedido + NombrePedido + "/t " + CantidadProducto + PrefijoEmail + "\n");     
asked by 08.05.2017 / 23:31