Posts by Ighor Augusto • 453 points
13 posts
-
1
votes1
answer83
viewsA: error when comparing C-torque
When specified sizeof(binaries_1) as substring length of binaries to be searched in the buffer, includes the zero on the right (string terminator). So just switch to sizeof(binaries_1)-1 that the…
-
1
votes1
answer83
viewsQ: error when comparing C-torque
I have a Perl program that connects to a socket, receives binaries in this socket, reads the incoming binaries, compares them with other binaries in a buffer so I know if there are these binaries in…
-
1
votes1
answer421
viewsA: ERROR findViewById Listview Fragment
Have you inflated your view on onCreateView, but the method has not yet returned the inflated view. So the method getView() will return null, as there is no view to return. That’s why…
-
1
votes1
answer79
viewsA: Onmylocationchangelistener Google maps android
Yes this is possible. You must declare an Intentservice and use a Broadcast to communicate with the app. You can always keep your location data up to date, even if the app isn’t running. Here you…
-
1
votes2
answers94
viewsA: GCM interacting with google maps
When you use GCM, you declare your GcmIntentService and your GcmBroadCastReceiver as described HERE But you can also declare a Broadcastreceiver in your Activity: private BroadcastReceiver…
-
2
votes1
answer2177
viewsA: Refresh Listview
Soon after deleting the data from the local Torage, you update your view, but for that you must be sure that the data was deleted from the Torage. To update your view you can do in a few ways, I’ll…
-
1
votes1
answer701
viewsA: color/opacity in selected view
I managed to solve the problem. Here is the solution: In the Android Developers sample app, the following functions are used to select an item: mDrawerList.setItemChecked(position, true);…
-
0
votes1
answer701
viewsQ: color/opacity in selected view
I implemented a Navigation Drawer (no modifications to the Android Developers example) I only changed the background colors of Listview and Text of the items: layout/activity_main.xml:…
-
9
votes1
answer5046
viewsA: Client/Server (Windows) with C Sockets
You should read the MSDN: Winsock 2 There you find the tutorials Using Winsock (I recommend using C++ for these Microsoft Apis) There’s this tutorial from my friend Felix_poison: Click Here (This…
-
1
votes2
answers5630
viewsA: Keep image next to text inside a button
Try to put: android:paddingLeft="100dp" android:drawablePadding="-60dp" I just tested here and it worked!!! I hope I’ve helped!
androidanswered Ighor Augusto 453 -
2
votes3
answers3288
viewsA: Working with delay’s on Android. Best approach?
I advise you to use an Asynctask. It would be interesting to do something like this: new AsyncTask<String, Void, String>() { @Override protected void onPreExecute() { // aqui vc pode bloquear…
-
4
votes1
answer2236
viewsA: How to leave my app open waiting for the server to send information
William, Actually letting apps and threads run in the background with open connections is not recommended. Can you imagine if every app had an open port and an established connection waiting for a…
-
2
votes1
answer327
viewsQ: Android: Improper layout change due to animation
Guys, I have a problem here and I’ve posted on international stackoverflow, but no one answered me, so I’m posting here to see if you have any charitable soul to help me. Come on!! I simply wanted…