Questions tagged as 'android'

1
answer

Retrieve data from a map in another activity - Android Studio

Hello! I have a class called Maps, with which I can know the location of the phone: public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { Button siguiente; TextView messageTextView; private GoogleMap mMap; privat...
asked by 24.05.2017 / 01:17
1
answer

Collect an Image next to some data that I upload to Firebase and display it in a RecyclerView

I have a program that collects the data of a Warning (Name, description and location) then I would have to pick up the photo that was uploaded to Firebase Storage. How could I relate the image I upload to when I show the Warning data? I leave th...
asked by 23.05.2017 / 08:02
1
answer

Convert from hexadecimal to decimal in Java [closed]

I want to convert from hexadecimal to decimal. I'm developing in Android Studio, and here is the fragment of the method. public void calcularDec() { EditText numero1 = (EditText) findViewById(R.id.etNumero1); int n = Integer.parseInt(...
asked by 23.05.2017 / 04:24
1
answer

Fragment error: Error: (55, 85) error: incompatible types: FragmentCu can not be converted to FragmentActivity

I have a problem with a fragment showing me this error:    Wrong 1st argument type. Found:   'com.bicicletas.Fragments.FragmentCuenta', required:   'android.support.v4.app.FragmentActivity' In this line I marked the error in the first...
asked by 07.06.2017 / 17:37
1
answer

Call class inside another in PendingIntent

I have this class that plays a song through MediaPlayer . This is working well. Now I want to implement playback controls in the notification area, but I'm having trouble calling the class I have in NotificationReturnSlot where I grab the cor...
asked by 28.05.2017 / 01:34
0
answers

Error in Activity2 of exercise of course android studio

I am following the exercises of an Android Studio course. The exercise that gives me an error is about two screens. In the first one a website address is entered and in the second one the site should appear. When I run it, it only gives me an...
asked by 27.05.2017 / 15:20
0
answers

Android Studio Error: The specified child already has a parent. You must call removeView () on the child's parent first

Java Class: public class ApuntesFragment extends Fragment { private MenuItem v; public ApuntesFragment() { //Constructor vacío requerido } //Creacion Variables botones y Editor del texto Button nuevoButton, guardarButton, abrirButton; Ed...
asked by 20.05.2017 / 17:24
1
answer

Show Images Camera / Gallery and Upload them to FireBase

I have an APP with which I can choose to take a photo with the Camera or choose it from the Gallery. If I choose it from the gallery, the image is uploaded and displayed correctly, but if I use the option to make an image with the camera, the...
asked by 18.05.2017 / 09:19
4
answers

Random array Android

I have an array in String and I want to extract several values from it and show them in a textview when I press a button but I do not know how to get several data from the array. Here is what I have protected void onCreate(Bundle savedInstance...
asked by 20.05.2017 / 19:29
0
answers

Insert buttons and editText in an Android FragmentPagerAdapter

I have a FragmentPagerAdapter that loads in an activity of the app that I am developing. Right now what happened is the values of the background color that the adapter will have. Even that my intention is to make two Adapters where it contains a...
asked by 18.05.2017 / 16:51