Posts by Diego Bezerra • 121 points
5 posts
-
2
votes2
answers4969
viewsA: Android: read JSON data
You’re trying to do parse website. However, you should do parse the answer (data) this URL gives you. For example" JSONObject obj = new JSONObject(resposta); String to = obj.getString("to"); Note…
-
1
votes1
answer83
viewsA: Problem sending notification with parameters
The problem is that you are sending a String and expect to receive a Store type object. What you send as String is the Store ID. You can probably recover that Store from the sent ID. Try to change…
-
4
votes1
answer13850
viewsA: Working with Radiobutton and Radiogroup
You can use the method setOnCheckedChangeListener of Radiogroup as follows: final RadioGroup group = (RadioGroup) findViewById(R.id.group); group.setOnCheckedChangeListener(new…
-
0
votes1
answer148
viewsA: On Android is possible to inflate a layout inside a gridview
The best solution in this case is to use Recyclerview and Gridlayoutmanager. Recyclerview works as a Listview, that is, you will need an Adapter. This Tutorial in English shows how you can use…
-
2
votes2
answers444
viewsA: What is the correct way to call a method from a class that inherits from an Activity?
You can create a Utils class, for example. In this class you create a method to verify the connection. You probably need a Context object to check. You can receive Context as a method parameter. For…