Posts by Gustavo Bitencourt • 714 points
22 posts
-
0
votes1
answer242
viewsA: Recycler view does not load when the app first opens
Your problem is related to the life cycle of a Fragment. Note that you are creating the Recyclerview component in the onViewCreated() method, but the right thing for the list to appear from the…
-
2
votes0
answers63
viewsQ: Is it possible to save a file to "Downloads" using Totalcross?
To put it in context.. Initially I was trying to implement the opening of a PDF using Totalcross as can be seen in this issue: How to open a PDF using Totalcross? However, there is no solution to…
-
2
votes0
answers101
viewsQ: How to open a PDF using Totalcross?
In my application made in Totalcross, I make a call REST and the same returns a byte[] where I convert it to a PDF and save it to a specific directory within the device. In this flow, everything is…
-
1
votes1
answer65
viewsQ: Convert a custom Object to JSON in Totalcross
It is possible to serialize a Custom Object for JSON without having to insert field-by-field, for example: JSONObject jsonObject = new JSONObject(); jsonObject.put("id", meuObjeto.id);…
-
2
votes2
answers238
viewsA: Firebase Google
If the doubt still persists for someone, Google provides crons creation using Cloud Functions (Firebase). Some links that explain how it works:…
-
17
votes3
answers5190
viewsQ: What is the difference between Graphql and REST?
People have commented a lot about the use of Graphql and with that, some comments that will replace this rise that we have of REST API’s. What is the difference between the two (Graphql and REST)?…
-
4
votes1
answer836
viewsQ: How to read a local json file using retrofit 2.0?
For API testing purposes, I need to read json files that would be my answer in API requests. Well, with Retrofit 1.9 it was possible to implement a "Client" and overwrite the "execute()" method to…
-
3
votes2
answers2043
viewsA: How do I implement ?Sign in with google' in my android app?
Until a few weeks ago, I was using Google Plus for authentication in our app. However, Google recently released an excellent Toolkit for application authentication. It’s called Google Identity…
-
0
votes6
answers922
viewsA: Listview very long
The factor is not only decrease the listview, but put the size you want. We know that match_parent, causes it to extend from the size of the parent component, and wrap_content, makes the component…
-
2
votes1
answer222
viewsA: System Calls on Android
Take a look at these links: http://syscalls.kernelgrok.com/ http://shadowwhowalks.blogspot.it/2013/01/android-hacking-hooking-system.html http://www.opersys.com/blog/android-system-calls I hope I…
-
1
votes1
answer248
viewsA: Optimize the movement of the marker in Maps
Take a look at this project. They reimplemented the use of Marker with drag and drop. Another option is to implement the method onMapClick of the interface OnMapClickListener and in it you add a…
-
2
votes1
answer1534
viewsA: How to change the text color of Actionbar menu items?
I recommend you migrate from Actionbar to Toolbar. In Toolbar, you can change the popup theme that the menu item will open as action. Take a look at:…
-
1
votes2
answers934
viewsA: Insert selected SPINNER item into SQLITE
You failed to copy the method you had to implement, onItemSelected. You must implement the following in this method: @Override public void onItemSelected(AdapterView<?> parent, View view, int…
-
0
votes2
answers791
viewsA: How to display GPS coordinates
In this book you will find example using GPS on Android (And is a book aimed at beginners on the platform, in my view): http://www.casadocodigo.com.br/pages/sumario-android It also has the following…
-
-1
votes2
answers1863
viewsA: Android - How to export the database in a csv file?
Take a look at this link: https://www.sqlite.org/cli.html CSV Export To export an Sqlite table (or part of a table) as CSV, Simply set the "mode" to "csv" and then run a query to Extract the desired…
-
1
votes2
answers189
viewsA: Does anyone have any information about Google no longer making ADT available for download? Have they fixed Android Studio as a tool?
I never saw an official note and I believe that there would be on the part of Google for now, not to scare the developers. However, it is what can be noted is traces of a possible abandonment of the…
-
3
votes1
answer1095
viewsA: Biometric readers output standard on fingerprint
I worked with some models like Fujitsu’s Digitalpersona and Palmsecure. All usually comes with an interface for integration. Usually, they have implementation for Java, C++ among other languages.…
-
4
votes2
answers772
viewsA: How to implement a chat in an Android app with backend Webapi
I recommend these articles to answer a question: http://quickblox.com/developers/Android_XMPP_Chat_Sample http://www.appsrox.com/android/tutorials/instachat/ https://github.com/Pirngruber/AndroidIM…
-
4
votes2
answers3895
viewsA: Drawable or Mipmap?? What’s the difference?
The mipmap folder is exclusively for placing icons that will be used in the application. Here is an explanation from Google about this case: It’s best Practice to place your app icons in…
-
2
votes2
answers3516
viewsA: What is the right way to authenticate to a REST API used by mobile applications?
Like Abraham, I also believe that currently the most used method for authentication in mobile applications is with pre-registered accounts on the devices (read use of Social Media accounts or the…
-
0
votes2
answers243
viewsA: How to cache a bitmap on android?
I recommend the following links, where you have examples of how to work with bitmap caching: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html…
androidanswered Gustavo Bitencourt 714 -
1
votes2
answers2944
viewsA: How to use the string created string.xml via code
I recommend reading this topic: http://developer.android.com/guide/topics/resources/string-resource.html But to refer to a String located in Resources/values, this is how: String string =…