Questions tagged as 'android'

1
answer

How to copy a file that is in the Assets folder?

I ask this question to know how to copy the contents of a file that is in the Assets folder but my error method because I should at least return a true value, but it does not return anything nor does it come to load My code: //Este es el m...
asked by 06.02.2017 / 22:12
1
answer

Different classes for layout, layout-large, layout-xlarge

I have three layout for each activity: layout, layout-large and layout-xlarge to be able to adapt my application to all the screens, the problem is that I use a custom listview with my ListViewAdapter class and its xml, but the xml measures of m...
asked by 27.01.2017 / 01:19
1
answer

How not to copy the content that already exists in a file?

I have asked this question in order to help with this topic: I am trying to create a copying process, but not complete, that is, only update the contents of one file with the changes made in another. I explain: I have created two txt...
asked by 21.01.2017 / 23:40
2
answers

Spinner in Fragment

I have a Spinner in a Fragment , that when I click on an item of Spinner leads me to another Fragment . But when I run the app, it goes directly to the first item in Fragment . It does not show me the Fragment...
asked by 24.01.2017 / 02:53
1
answer

Do a Split to TextView when calculating age

I have my code to calculate the age taking into account the months and day of the date of birth, but I want to make a split to send only the number of the age to a TextView, I give example: In the TextView that I want to come out is thi...
asked by 23.01.2017 / 15:10
1
answer

Error in FileProvider: java.lang.NullPointerException when using FileProvider.getUriForFile ()

I have a problem when trying to share a file with other applications using FileProvider, the problem comes when I use FileContent.getUriForFile() because it gives me the following error: java.lang.NullPointerException: Attempt to invok...
asked by 14.02.2017 / 20:41
1
answer

Problem with accents and special characters [duplicate]

I'm doing an app that consumes the information of a php and I have a problem with the accents and special characters. The code works perfectly but when I get the information returned from the php in json the characters and accents are returned...
asked by 11.06.2017 / 21:31
1
answer

Problem when capturing a time in the timepicker

I have a fragment which should save an hour, after doing all the code it simply generates an error when executing it Alerter.java ( fragment that will capture the alarms) package company.viral.organizadorjec.FragmentMenu.Per...
asked by 28.01.2017 / 20:04
1
answer

AdMob missin adSize on Android

I want to add an adMob ad banner to my app and it tells me that the adSize attribute was missin but it's all apparently correct: My XML code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.androi...
asked by 01.02.2017 / 22:52
1
answer

Image is not shown in the corresponding item

I am using a RecyclerView to show a list in which each item contains text and images (I will search for the image from a url with the ImageLoader in the method private void setImageNews(final ImageView view, String url) ). Wh...
asked by 09.03.2017 / 00:26