Questions tagged as 'android'

1
answer

NavigationView not found in android studio 3.0.1

I get this error and I do not know why I was looking and this is the result of my gradle ... dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation...
asked by 27.05.2018 / 22:58
1
answer

Separate a string in Java

I want to separate this string for a spinner. Here I receive my JSON I go through it to only get what I want. JSONObject jsonObject= new JSONObject(responseStrBuilder.toString()); JSONArray jsonArray = jsonObject.getJSONArray("payment_metho...
asked by 24.07.2018 / 19:36
1
answer

Why does not my app show a map when downloading from playstore?

I have an App that shows a map using the Map API, but when you download it from Playstore the map is not displayed. This is what I have configured: An Api key for debug, the SHA-1 I get from google_maps_api.xml (debug) An Api Key for pro...
asked by 24.07.2018 / 18:42
1
answer

Android - Update ArrayAdapter from a new array

I need to know how to update a ListView from an own ArrayAdapter by means of the array that I sent it, I explain: I have this JSON: [{"id":"1","user":"117270122","mensaje":"Mensaje de prueba","condicion_visto":"0"},{"id":"2","user":"117270122...
asked by 16.05.2018 / 00:19
2
answers

set bookmark in google maps android (API V2)

I have these two classes that call my map, and my activity that contains it, the issue is that I need to pass on the parent activity, the coordinates for the child activity, but I do not know how to do it, if I do a new method that go to the fra...
asked by 16.05.2018 / 06:49
2
answers

Fragment setContentView Android

Hello good day today was making an app connected to the database with Firebase the application is already connected and all with some tutorials that I saw on YouTube, but now I wanted to make my app more aesthetic and I added a Bottom Navigation...
asked by 20.05.2018 / 09:23
2
answers

I'm doing a program to encrypt and decrypt files on android, could someone help me?

I can encrypt small files of any type (MP4, MP3, JPG, PDF, DOCX), but when they are large it gives me an error of the type:    "Throwing OutOfMemoryError" Failed to allocate to 150835256 byte allocation with 25165824 free bytes and 121MB unti...
asked by 18.05.2018 / 17:51
1
answer

My App stops before requesting permissions

I have been doing an application in Android Studio which I only get the imei of the device when I press a button. The problem I have is that when you start the application it stops and then asks for permission. after requesting permits works...
asked by 15.10.2018 / 18:22
2
answers

Different types of data in the same Array?

It is possible to have more than one type of data in an arrayOf, a ListOf or an arrayListOf Or is it not possible to have Int and String data, for example, in the same Array?     
asked by 14.10.2018 / 07:05
1
answer

Error requestFeature () AlertDialog

I have an AlerDialog in my App, the main problem is that in versions of Android Nougat and later this works perfectly but in Marshmallow and below the AlertDialog gives me this error: requestFeature() must be called before adding content...
asked by 15.10.2018 / 15:35