Questions tagged as 'android'

2
answers

What is the difference between android: layout_gravity and android: gravity?

When you design, for example, a TextView view in Android, you can assign the properties android:layout_gravity="left" and / or android:gravity="left" What is the difference between using layout_gravity or gravit...
asked by 05.07.2016 / 01:08
2
answers

TextView Multiline with horizontal and vertical scroll

Well, so that we are in tune, my idea is to create a logger I've already managed to make it scroll vertically but as I do not fit the text in TextView I share the code: <?xml version="1.0" encoding="utf-8"?> <android.suppo...
asked by 27.10.2018 / 21:07
2
answers

Receive URL in my App, when you click share in the Browser

When I browse with the Internet browser on my mobile phone, I have the possibility to share the url, by clicking on the button < some applications appear (Gmail, linkedin ...) How can I make my application appear? When you press sh...
asked by 28.09.2017 / 13:40
4
answers

Google Maps Android is displayed blank in Release

I have an app that uses google maps, in debug everything works fine, but when you move to release, the map is not displayed the file google_maps.api.xml I created it outside of debug, that is to say I have it in main/res/values/goog...
asked by 20.09.2017 / 22:17
1
answer

How can I return the value of a method that is within another method

I am making a request with Okhttp and in the onResponse() method I am storing in variable myResponse the result of that request, my question is, how can I make the method peticion() return the value of the Variable...
asked by 27.04.2018 / 12:41
2
answers

Can I delete these files without anything happening?

I have an application on Android that is very busy and 90% of the total is because of 3 files that I do not know if they can be deleted or what would happen if I erase them. The first one is fileSnapShots.bin, located in .gradle / 2.10 / task...
asked by 11.09.2016 / 16:48
4
answers

phonegap, android, iOS and web browsers

Do applications developed in Phonegap serve both mobile (Android, iOS) and web browsers (Firefox, Chrome, iExplore, etc.)? to have no code for mobile phones and independent desktop.     
asked by 19.04.2016 / 22:24
2
answers

What a difference there is between the Res folder and the Assets folder in Android

I wonder if assets and res are the same in Android, is that sometimes I find examples that refer to resources in assets and others in res, is messing me up a bit.     
asked by 14.04.2016 / 19:12
2
answers

Solve error has leaked IntentReceiver on Android

I have an extended class of BroadcastReceiver in MainActivity.java I launch the listener registerReceiver( new ConnectivityChangeReceiver(), new IntentFilter( ConnectivityManager.CONNECTIVITY_ACTION));...
asked by 29.06.2016 / 11:38
2
answers

Can I prevent my app from taking the font of the operating system in android studio?

What happens is that if the user changes the source of his device, he also changes the source of my app. Can you avoid this? This is the textview that I want to put, but when I simulate it in my phone, the font appears different, and this is...
asked by 25.10.2018 / 19:17