Questions tagged as 'android'

2
answers

Android Studio problems when sharing mp3

This is my code: peroperoperopero.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { Intent compartirAudio = new Intent(android.content.Intent.ACTION_SEND); co...
asked by 05.10.2018 / 07:32
2
answers

Android LocationManager using getLastKnownLocation () value is not obtained

I make this query, even before it worked and I think (at least I think) have not deleted anything but I stop working. Can not find the location of the device to store latitude and longitude. The permissions in the Manifesto are, I'm telling y...
asked by 01.08.2018 / 16:54
0
answers

How to recycle images

I have declared a couple of images and I draw them with the canvas. My question is what would be the correct way to recycle or delete an image that I am no longer using or do not want to be seen to free memory. Thank you. public class Juego...
asked by 30.07.2018 / 16:31
1
answer

How to change or update an image of an ImageView already loaded with Glide? [duplicate]

I have a Activity that loads the profile image of the user using Glide perfectly, the problem comes when the user selects an image from their gallery. When I receive the image with ActivityForResult , I charge the new profile image t...
asked by 20.07.2018 / 01:03
1
answer

Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!

I get this error when running the android emulator, the weird thing is that it is not the typical error that the IDE has to install HAX, because I checked it and I already have it installed, so I do not know why the error keeps coming, ¿? What i...
asked by 15.07.2018 / 00:28
1
answer

Pass between activities, Fragments

I've been working with Activity and Fragments , of which I know how to move from one activity to another and from one fragment to another, ..... But how do I go from a fragment to an activity? Here I leave the code:) 1.- Move fro...
asked by 02.08.2018 / 23:50
0
answers

Personalized Spinner on android

I have a drop-down in my application with a style. A part within a relative layout I put a EditText so that an arrow appears as if it were a drop-down, oriented to the right and that occupies the height of the drop-down presses the drop-d...
asked by 03.08.2018 / 14:53
2
answers

Android Studio executed and nothing appears

Hi, I have Android Studio and it's giving me all kinds of problems, I could not do anything. I installed genymotion and made the arrangements to run the mobile application on my cell phone, but it does not work. In my cell phone opens the app bu...
asked by 11.09.2018 / 02:32
0
answers

Click RecyclerView - Item

I need to click on an item in a RecyclerView but when I try to do it it shows me the following message: java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.zero.test.Interface.ItemClickListener.onClick (androi...
asked by 14.10.2018 / 06:10
0
answers

Access the variables / data of adjustments in android referring to the utility as hotspot (share internet)

I was trying to print the internet sharing data of my Android system by a Textview but I am not finding any information on how to access them. My idea is to pass to the tex a string with the name assigned to the Internet sharing network, but...
asked by 06.11.2018 / 12:15