Questions tagged as 'android'

1
answer

How to find out the mobile operator of Android?

I'm developing an application in eclipse and I want it to work only on devices from a particular carrier. Any ideas how to check the carrier?     
asked by 31.01.2015 / 09:50
0
answers

CardView does not display information from a JSON [closed]

I am trying to set some information in a CardView, where these are obtained from a JSON, however, it does not display, the information search is ok, it returns the values normally but does not display in the app .. @Override public void onCre...
asked by 12.06.2015 / 20:28
2
answers

Error message: "java.lang.IllegalStateException: package not installed?"

Situation I'm getting this type of error in my logcat and I do not know exactly what it can be. Although this error is not compromising the functioning of the application (so it is perceived) being compiled from Eclipse , the project still...
asked by 26.08.2016 / 22:21
2
answers

What is the difference between ListView and RecyclerView?

What is the difference between ListView and RecyclerView on Android? From what APi RecyclerView is available? Is it valid to use RecyclerView and not ListView ?     
asked by 19.10.2016 / 20:56
3
answers

JSON string conversion for Java object

I'm trying to convert a JSON string to a Java object used by Gson. This is the json I get from webservice: {"concurso": { "numero":1499, "data_sorteio":"01\/06\/2013", "dezenas":[8,22,26,33,37,54] } } Here...
asked by 17.02.2014 / 01:05
1
answer

Android Studio does not open new project (becomes transpatent)

When I installed and tried to open it for the first time, it worked perfectly, however, when I tried to open it again later, when I click on "Start a new Android Studio project", the window opens but it stays transparent forever (as you can see...
asked by 17.01.2016 / 19:09
1
answer

How to handle exception in a Webview?

I wanted to know how to handle exceptions in my Webview, because sometimes the site is off, and the page does not load, and sometimes crashes the application. I tried a try catch on load, but it does not enter the exception, I want it...
asked by 24.10.2014 / 22:15
1
answer

How to translate the Android application?

I created the values-es folder, with the file strings.xml with items in the string array. But when I put the translation into Spanish on the phone, I open the application and nothing happens, continues Portuguese.     
asked by 29.11.2014 / 19:12
2
answers

Identify if coordinate set is within a radius in Android

I want to delimit a radius from a central coordinate (the red marker in the figure) and, from a set of coordinates (the green markers), check if they are within the area delimited by this radius. > How to identify, from a set of coordinates (...
asked by 25.03.2015 / 02:11
3
answers

Extend classes with private constructor

Why can not I extend classes with private constructor? Getting the A: classes public class A { private A(){} public static void limao(){} } and B: public class B extends A { private B(){} public static void banana()...
asked by 25.02.2014 / 00:23