Posts by Caique Oliveira • 1,143 points
63 posts
-
0
votes3
answers121
viewsA: How to avoid connection from stopping the application?
You can do it this way. Create a Service to send your files, the service runs in the background. While the Service is sending the data you can display a Progressdialog. When the upload is finished…
androidanswered Caique Oliveira 1,143 -
0
votes7
answers10560
viewsA: How to test if an Edittext is empty?
The most efficient way is by using the class TextUtils as follows: TextUtils.isEmpty(nome_editText.getText().toString()); it checks for example if 2 blank spaces have been inserted. What does not…
-
1
votes1
answer65
viewsA: Alertdialog.Builder with undue space
Remove this line from Linear Layout android:layout_marginLeft="7dp" line 157
-
0
votes2
answers121
viewsA: Erro android studio, error: Error retrieving Parent for item: No Resource found that Matches the Given name 'android:Theme.Holo.Light'
At some point you reference the Holo theme, Parent="@android:style/Theme.Holo" but to use it you need to set the level API to 11 in its manifest. You should also put the.xml style that makes use of…
-
1
votes1
answer335
viewsA: Doubt about the operation of Basedapter and Listview
You can use the getCount method of the Adapter base and check that the current position of getView is equal to the value returned by getCount, if it is the same you will have reached the end of the…
-
0
votes3
answers57
viewsA: How to prevent the user to enter a "." point before any number?
If you enter the data type in the xml of editText can solve your problem? <EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content"…
androidanswered Caique Oliveira 1,143 -
0
votes2
answers37
viewsA: How to change the color of an item or of the entire Backgroud of a listView by onActivityResult?
I believe I answered a question similar to the one you asked. Follow the link: How to change color a Listview item based on the "onActivityResult response"?…
androidanswered Caique Oliveira 1,143 -
1
votes1
answer466
viewsA: How to change color a Listview item based on the "onActivityResult" response?
You will need to customize the Adapter I have something that is roughly what you want to follow the code public class AdapterList extends ArrayAdapter<String> { private String[] values;…
-
0
votes1
answer92
viewsA: Caused by: java.lang.Unsupportedoperationexception: addView(View) is not supported in Adapterview
I found the mistake. The error was that instead of creating a container with using Linearlayout I made use of the tag when I tried to replace the finished Fragment generating the execution:…
androidanswered Caique Oliveira 1,143 -
0
votes1
answer3190
viewsA: How to change the image of an Imageview dynamically
Try to use getResources().getDrawable(R.drawable.nome_imagem). Example: Drawable drawable= getResources().getDrawable(R.drawable.nome_imagem); img.setImageDrawable(drawable);…
androidanswered Caique Oliveira 1,143 -
0
votes2
answers136
viewsA: Android file monitor
You will need a broadcast receiver that will give you information that a new photo has been taken. That is, whenever a photo is taken you will have such information and will call the upload code to…
-
1
votes1
answer92
viewsQ: Caused by: java.lang.Unsupportedoperationexception: addView(View) is not supported in Adapterview
I’m making that mistake: Caused by: java.lang.Unsupportedoperationexception: addView(View) is not supported in Adapterview I researched and the errors that were cited did not solve my problem. I…
androidasked Caique Oliveira 1,143 -
3
votes2
answers834
viewsQ: Getting data between 3 tables in Yii , cgridview
I am using the Yii framework and I need the information that is in the route table. I’m looking for this information from the vehicle table. There is a third table called equipment In vehicle I have…
yiiasked Caique Oliveira 1,143