Posts by Luiz dev • 96 points
4 posts
-
3
votes4
answers1275
viewsA: How to identify changing the state of connectivity to the Internet to perform a method when connecting?
You can add in your tbReceiver a method to check the connection as follows: private boolean isNetworkAvaliable() { ConnectivityManager connectivityManager = (ConnectivityManager)…
-
1
votes2
answers199
viewsA: I’m not able to exbir a listview that uses an Arrayadapter<String>
In your Adapter I saw that you are returning 0 in the getCount method in this snippet of your code: @Override public int getCount() { // TODO Auto-generated method stub return 0; } Try returning the…
-
3
votes2
answers2831
viewsA: How to inflate a button inside a Listview Item?
To do everything dynamically and using a custom list it is necessary to create an xml only for an item of this listview that will be used in all other fields of the list. The second step needed to…
-
1
votes1
answer1024
viewsA: Filter Edittext from listview on android
In that part of your code: lv.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, lst)); it is better to use a variable and use the Arrayadapter getfilter method,…