Posts by Gustavo Almeida Cavalcante • 189 points
20 posts
-
0
votes1
answer695
viewsA: Android: How to create an external Sqlite database dynamically?
Well, after doing a lot of research I decided to study the parent class Sqliteopenhelper and discovered that it uses the context to define the path where the database will be created. Based on this…
-
0
votes1
answer695
viewsQ: Android: How to create an external Sqlite database dynamically?
I have researched this thoroughly and all the examples I have found and tested have not worked. To make the code more organized I would like to do this using the Openhelper class but I have already…
-
0
votes2
answers117
viewsA: How to pass a java object array to Asynctask? My problem is that when I use this looping in Asynctask pq only comes first user [0]
I managed to solve the problem, first of all I thank @Samuel Ives for the answer. But the problem was in the organicTable() method that was not returning the full array because for each object that…
-
-1
votes2
answers117
viewsQ: How to pass a java object array to Asynctask? My problem is that when I use this looping in Asynctask pq only comes first user [0]
ControlaBanco bd = new ControlaBanco(contexto); int indice = 0; indice = bd.contaUsuarios(); Usuario[ ] tabela = bd.organizaTabela(); String tabelaOrganizada = ""; if ( indice > 0 ) { for (int i…
-
0
votes1
answer6022
viewsA: How to crop a gallery image or photo taken by the camera, save and upload to an imageView
Well I solved the problem, but I don’t know if it works for most devices. In the Android 2.3.3 API(10) emulator, the camera changes the orientation of the screen and causes a small problem of not…
-
7
votes1
answer6022
viewsQ: How to crop a gallery image or photo taken by the camera, save and upload to an imageView
I would like to know how to cut an image from the gallery or photo taken by the camera, save and upload to a imageView, to be able to do that for the gallery option of intent, but for the camera…
-
0
votes3
answers96
viewsA: Android how to remove "Photos" option from the options selector and leave only "Camera" and "Gallery" options
Well, with the help of the reply and @Pablo comments I have come to the conclusion that the best practice is to make it work, but there must be some way to check if one of the options that the app…
-
2
votes3
answers96
viewsQ: Android how to remove "Photos" option from the options selector and leave only "Camera" and "Gallery" options
I would like to know how to remove the option "Photos" from the options selector and leave only the options "Camera" and "Gallery". As well as not working, it is unnecessary since the "Gallery" does…
-
2
votes1
answer1502
viewsA: How to save a gallery image and click on Activity?
Good, personal problem solved altogether, now it does not cause any error and the images are displayed in exactly the same size as the previous image had before. Of course, the code is not yet well…
-
3
votes1
answer1502
viewsQ: How to save a gallery image and click on Activity?
I would like to know how to save a gallery image and click on Activity in version 2.3.3 of the Eclipse emulator, because my code only works when I test on my Android device 4.1 and even then when I…
-
1
votes1
answer109
viewsA: Android how to optimize a large chain of ifs
By reflecting on the comments and do some research. For this specific case, the only way to optimize ifs would be to place a Listener on each button in the onCreate() method thus:…
-
1
votes1
answer109
viewsQ: Android how to optimize a large chain of ifs
I would like to know how to optimize a large chain of ifs so that the code becomes more efficient and readable. My Android application uses version 2.3.3 (API 10), in this application I have an…
-
0
votes2
answers1965
viewsA: Encrypt passwords as securely as possible
After some research I found a ready example using AES on this site: http://www.iai.art.br/radar/android-development-criptografia-baseada-em-senha/ It worked well it encryption and decryption too,…
-
1
votes2
answers1965
viewsQ: Encrypt passwords as securely as possible
I wonder how to encrypt passwords on Android and what are the best practices. I am using Eclipse, Sqlite database to store the password locally and Mysql with PHP to store on the server via…
-
0
votes1
answer105
viewsQ: Error when using activities in a child package
I have a problem in my Android project on Eclipse. After implementing the functionalities, I reached a total of 10 activities and 8 other classes. From there I realized the need to structure the…
-
0
votes2
answers285
viewsA: Android do authentication constantly with external server
Good with my researches I found a way that at first I found an exaggeration for a simple task, but as I did not find any better way so I will use this. I will use the Sync Adapter class along with…
-
1
votes2
answers285
viewsQ: Android do authentication constantly with external server
Staff would like to know how to do for the application I’m developing make authentication constantly. For example the watts if you don’t have access to the internet and try to send a message it is…
-
3
votes1
answer980
viewsQ: Android save user profile image
I am with a question what is the best method to save the profile image of the user of the app I am developing, where on the login screen will load the image of the user profile and home screen as…
-
0
votes1
answer480
viewsQ: Wamp Server how to send an email using a gmail account using a php on the localhost?
I’m having a problem sending an email with user registration validation code from my localhost. On my localhost I have Wamp Server installed configured to use port 80, I have redirected all external…
wampasked Gustavo Almeida Cavalcante 189 -
2
votes1
answer1035
viewsQ: How do I remove a view created in java code by the id of this view?
How do I remove a view by Id. Because in my application it has an "add" button to add a group of components that "group" is a LinearLayout has a field and a delete "X" button. When the "X" button is…