Comment by Nahuel Barrios on Is there a way to get references for all...
Yes, that's true but I'm sure the Android team has a good reason to restrict that method usage so I think it's not a good decision ignoring that error. By the way the RestrictedApi is considered as an...
View ArticleComment by Nahuel Barrios on Android: Intent- FLAG_ACTIVITY_NO_HISTORY not...
Hi, are you testing this on Android 7? Or you're getting the same behavior in any OS version? I'm facing this problem but on Android 7 only.
View ArticleComment by Nahuel Barrios on post data to server on android
My fault! I wasn't clear enough. The AsyncTask by itself it's ok, but what I'm trying to explain is that the way people generally use it can generate problems if you don't decouple your code correctly...
View ArticleComment by Nahuel Barrios on How to provide different Android app icons for...
If you want to use this way and stop adding both icons to the production APK, you can set the manifestPlaceholders only in the execution phase or behind and if statement. I'm doing this because I have...
View ArticleComment by Nahuel Barrios on Unknown sources settings android
I don't know now for the newest API Levels, but in that moment that wasn't necessary. Why do you thik that? Regards!
View ArticleComment by Nahuel Barrios on Android: Fragment overlay another fragment with...
Hi! No, ListViewFragment is just the name of my LisView (I don't have the code [2014] but it has no special behavior. About the required API level, try using the Support Library. Regards!
View ArticleComment by Nahuel Barrios on How to use Postman Interceptor
if you want to add the User-Agent header for instance you don't have to turn on the interceptor in Chrome. It's enough with installing the extension and turning on the interceptor in the Postman...
View ArticleComment by Nahuel Barrios on noHistory Intent flag doesn't work on Android 7
Hi! No, I'm using the hotfix nº 2 for the moment. Please let me know if you find any other solution! Regards!
View ArticleComment by Nahuel Barrios on dependencies/AndroidManifest error
If you modify/delete any file under /build/* the next time it will be regenerated exactly as the previous time because you're not modifying the original one. You should update /src/*
View ArticleComment by Nahuel Barrios on Add and remove action bar depending on fragment
Have you tried with getSupportActionBar() instead of getActionBar()? Please also add the exception you're getting, that will let others have a better idea of your problem. Regards!
View ArticleComment by Nahuel Barrios on Include an external aar library in android for...
Possible duplicate of stackoverflow.com/questions/24506648/…
View ArticleComment by Nahuel Barrios on Opening new gnome-terminal (v3.28+) with...
Do you have any update on this?
View ArticleComment by Nahuel Barrios on Multiple entries with same key:...
From my experience is better to find the change that suddenly broke a stable project and try to understand what the problem is. Adding this kind of iron bullets increase build times and can also hide...
View ArticleComment by Nahuel Barrios on can't call kotlin module from java module
For others with the same error, note that if your library is a pure Java library then they have to use apply plugin: 'kotlin' instead
View ArticleComment by Nahuel Barrios on Is there a way to check whether an apk is the...
Have you checked this answer? security.stackexchange.com/a/220562; Also, what about running sha256sum each.apk and compare those values? You should consider using different signing keys for...
View ArticleAnswer by Nahuel Barrios for Can I perform this operation faster with regex...
I've created the following implementation (it tranforms values from the original String array):for (int index = 0; index < strings.length; index++) { String eachString = strings[index]; int...
View ArticleAnswer by Nahuel Barrios for Android: Share Text & Image (URL) Via Intent
You won't be able to share on Facebook in that way because of Facebook's policy as it says in a known bug:API does not support pre-filling the message for users
View ArticleAnswer by Nahuel Barrios for Why is my location constantly changing, is my...
Which is the value of your constant MINIMUM_DISTANCECHANGE_FOR_UPDATE?I've assigned 50 meters to it and it's ok for my app. I also assigned 2 minutes to MINIMUM_TIME_BETWEEN_UPDATE.Source code of my...
View ArticleAnswer by Nahuel Barrios for How to prettily format GPS data in java/android?
In this Wikipedia link you've got a Java implementation to do that conversion.// Input a double latitude or longitude in the decimal format// e.g. 87.728056String decimalToDMS(double coord) { String...
View ArticleAnswer by Nahuel Barrios for Set android focus on touch?
You can hide the keyboard simple by overriding onBackPressed in your Activity and using the following code:InputMethodManager inputMethodManager =...
View Article