Questions tagged as 'android'

2
answers

Error in build.gradle "should not contain a package statement

Yesterday I saved everything and today when I open the project it tells me this error. I never saw it and I do not know what it could be. I think that fontprovidercerts is missing some characters but the truth is that I do not know what t...
asked by 04.12.2018 / 13:13
1
answer

Help - Extract url number to pause it to integer

I have been trying to extract from this url the number in the section of the image file to be able to load them with glide in android studio Example: link however, I do not know how to do it I've done this until now: public int getNumb...
asked by 06.12.2018 / 01:31
1
answer

Scrolling a ViewPager

I have an app that contains a ViewPager with its 3 Tabs. When going from the first to the second it is normal, but from the second to the third it gets a bit slow, it should be noted that in the third one I have a gallery of images that a...
asked by 29.03.2016 / 02:14
1
answer

Stop media player android, when receiving calls or another application uses the audio

I hope I have been specific, the detail is that I am doing an audio streaming with media player, and I would like to know if there is any way to know if another application is using the audio from the phone, and if so, I interrupt the service (...
asked by 25.08.2016 / 23:29
2
answers

Why do I return to the previous activity when I press backspace on the serchview?

I do not understand how it works, I have 3 activities with the same characteristics, all have a listiew, they all have a searchview, one of them works correctly, the detail is when in two of them when I'm in the searchview I press Backspace (del...
asked by 15.08.2016 / 19:42
1
answer

How to create an online multiplayer game [closed]

Good community, I made a small game for android which I would like to add an online game mode against another person, I would like to be guided as this would be done, if I have to create a database etc, I do not need to Explain step by step but...
asked by 15.08.2016 / 05:53
1
answer

Can I use open source code from another developer for commercial use?

I am making an application for commercial purposes on android and I want to know if I can use a modified version of the examples that are available at developer.android.com or I have to write original code I want to know about these legal issues...
asked by 30.08.2016 / 20:45
1
answer

Force language to test Android applications

Change the language of the device to test if the application works correctly in different languages, I found the following code in Java String languageToLoad = "en"; // your language Locale locale = new Locale(languageToLoad); Loc...
asked by 14.01.2016 / 19:40
1
answer

Click on recyclerview does not work and does not give an error

I am in full development of an application, I use fragments and one of them loaded a layout with a RecyclerView , at the beginning the click and long click were made, it does not give me any error, since the application works perfectly but...
asked by 08.01.2016 / 14:02
2
answers

I can not get the actual path of the SD on my android device in Xamarin.forms

I am developing an App in Xamarin.forms in which I must generate a PDF inside the SD card of the device. The problem I have is that every time I try to access the SD it always returns the same result:    /storage/emulated/0/HolaMundo.pdf...
asked by 03.04.2018 / 17:02