Questions tagged as 'android'

1
answer

How to create Banners with Admob?

My problem is that they do not appear or show the banner on the screen, now my code that is from the official website of admob does not work, the page is: this . The code is this: private void crear(){ SurfaceView gameView = new Su...
asked by 17.03.2017 / 18:20
2
answers

How to copy the contents of one folder to another?

Hello everyone. I have tried to copy the data from one folder to another using the input and output data implementing this method: public boolean creaArchivo1(String ruta, InputStream is) throws IOException { final int C...
asked by 01.02.2017 / 17:54
1
answer

A different MenuContextual for each ImageButton

How can I have a different context menu for different ImageButtons? For example, to be concrete:    Image 1 - Contextual Menu 1       Image 2 - Contextual Menu 2       ... This is what I do to have a contextual menu in an ImageButton:...
asked by 27.01.2017 / 23:58
2
answers

How to instantiate a class of type SQLiteOpenHelper in another simple class

I have two classes one of type SQLiteOpenHelper and another normal one public class dbdata extends SQLiteOpenHelper{} and another public class parsers {} The Parsers class, reads a json, and I want it to read when I save to the sqlite...
asked by 26.04.2017 / 22:12
2
answers

How to extract the text from a custom listview?

Hello everyone My current problem is how to extract a text from a custom listview. Instead of extracting the text it extracts a numerical value but in String, an example the text is chocolate and instead of extracting chocolate it extracts...
asked by 10.03.2017 / 20:35
3
answers

Error in Android Studio

I am developing an application in Android Studio but at the time of executing it by the emulator I am getting the following error:    Error: can not find symbol variable fab FloatingActionButton fab = (FloatingActionButton) findViewById(...
asked by 11.03.2017 / 14:53
2
answers

Error with geolocation in android studio Unable to get provider

This is my MapsActivity class package com.example.em645.prueba; import android.content.Context; import android.content.pm.PackageManager; import android.location.Location; import and...
asked by 05.12.2016 / 17:13
1
answer

Android: When calling and closing an activity from a fragment, the fragment context is null?

Good morning. I have a fragment that calls an activity, when I close the activity and return to my fragment the context is zero. How can I solve this situation? This is what I find when I close the activity, I do not have access to t...
asked by 29.11.2016 / 21:01
1
answer

Android: Upload images to the server asynchronously

I'm sending a JSON of images with some data, my question is how I have to do to send the images asincron, so I do not have to wait for all the images to load so they can be sent but they are finished to upload that they are sent. @Override pro...
asked by 12.12.2016 / 18:35
2
answers

How to save the visibility of a button

I wanted to know what would be the best way to save the visibility of a button in shared preferences. I have several buttons and I need that some are visible others not according to what is chosen and when re-entering they stay that way This...
asked by 08.12.2016 / 00:32