Posts by Alécio Carvalho • 208 points
7 posts
-
0
votes2
answers132
viewsA: How to get the reference of a dynamically created Edittext when you click it?
The layout of the Views will depend on the type of parent Layout they were added to. As you see only 1 Edittext, please note that you are adding them to one Framelayout, that puts one element on top…
androidanswered Alécio Carvalho 208 -
0
votes1
answer397
viewsA: What is the best strategy to do data synchrony offline/online?
Some points to consider: To allow offline operation (external sales) your application must contain all products in a local database (example: in Sqlite) You need to sync whenever possible, depending…
androidanswered Alécio Carvalho 208 -
2
votes1
answer613
viewsA: Problems with Asynctask crashing the application
Asynctask was made for you to execute "heavy" code in the method doInBackground() and UI code (update screen) in the method onPostExecute() what are you doing while performing this method get() is…
-
2
votes5
answers13518
viewsA: Hide the keyboard
Utility method I use to do this: public static void hideKeyboard(Context context, View editText) { InputMethodManager imm = (InputMethodManager)…
-
0
votes1
answer218
viewsA: How to set position of a cursor in the Onchanged of a Customview in a Listview?
This way of accessing the cursor is unpredictable...basically you access the position whatever the cursor is at that time. For example, when the moment of "onChange" happens, your cursor may be…
-
2
votes1
answer560
viewsA: How to display items from an Arraylist by an array?
several problems in your code, starting with the statement: lista.exibicao(vetorExibir = new String[lista.lista.size()]); list.size() == 0, that is, you are creating an array of zero size. the other…
javaanswered Alécio Carvalho 208 -
0
votes2
answers258
viewsA: App crashing when an image is selected
How are you accessing the getActivity(). startActivityForResult(Intent, 1); I believe you’re accessing this code through a fragment. Note that as you are calling this method via Activity, you should…