Questions tagged as 'android'

1
answer

Android Studio - Generate a single Dynamic ListView

Good morning, My question is this, I have a Database with a table "Books" to which I loaded about 10 books at random, with their respective fields. One of those fields is the genre of the book (horror, romance, etc). What I have then is a Lis...
asked by 17.12.2018 / 19:11
2
answers

Closure of application [closed]

When I add this part of the code the application is closed, the code works because I have it in another application which can be the error WebView view = (WebView) this .findViewById (R.id.webView); view.getSettings (). setJavaScri...
asked by 05.09.2016 / 03:24
2
answers

RECORRER JSONOBJECT, ANDROID

I need to take the values that are within REGION "addresses":[{ "id":2, "customer_id":2, "region":{ "region_code":"NY", "region":"New York", "r...
asked by 12.12.2018 / 13:42
1
answer

Get data in Firebase Android

I would like to know how I can obtain data from a firebase database, I can now add the data, but I do not know how to consult that data. This is my node in firebase: If I wanted to bring the field "name" of that user, what would I have...
asked by 12.12.2018 / 16:37
1
answer

android ListView OnItemClickListener sqlite

I have created a query using a ListView from a local database, I do not need to show all the information in the registry, only the basics, since I have also created an OnitemClickListener so that when you press a data of the existing ones in the...
asked by 01.12.2018 / 02:37
1
answer

Know the application that is in first or second plane in Android

I need to know the application that is in the foreground in android, that is to say, to know the app that is at a given moment open, showing on the screen, let's say.     
asked by 31.08.2016 / 14:03
1
answer

Date and Time on Android

Hi, I'm trying to send a datetime format to the Mysql database. I'm using this snippet of code: SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()); Date date = new Date(); String fecha = dateFo...
asked by 13.12.2018 / 18:31
2
answers

Spaces in query SEARCH_ACTIONS Android

How do I add spaces to the query field with SEARCH_ACTION in android? Example: IT WORKS: adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query "enviar" <nombre_paquete> IT DOES NOT WORK adb shell am start -...
asked by 10.12.2018 / 19:28
1
answer

Close activities Android studio

I have an app with a side menu. The doubt I have that every time I use one of the menu options opens a new window. } else if (id == R.id.cine) { Intent intent = new Intent(this.getApplication(), Cine.class); startActivityForR...
asked by 27.12.2018 / 14:58
3
answers

change of value of textView depending on the selection of a spinner

The problem is the following, in the activity I have a textView and a spinner what I'm looking for is that when you select an option in spinner the value of textView change. This is the code public class longitud...
asked by 16.04.2017 / 14:09