Posts by Rafael • 410 points
18 posts
-
1
votes1
answer1422
viewsA: Password validation saved in Sqlite
Good if you have to perform password validation with the user email you can use a method that returns if the password and the user exist in the database, for example: private boolean…
-
1
votes0
answers303
viewsQ: Autocompletetextview display items that have accent when typed without accent
I own a AutoCompleteTextView, defined as your Adapter I have a list that receives the name of cities as, for example, São Paulo, but if I inform you in the field the value Sao Paulo, without the…
-
1
votes1
answer582
viewsA: Dynamically add new views
After receiving a great help from the user Wakin, he suggested me change my top layout for a RelativeLayout, what worked very well and then to recover the values of Edittext I created an Arraylist…
-
0
votes1
answer582
viewsQ: Dynamically add new views
I have an Activity that contains the cardView of the image at the end of the question that has 3 edittext. I was wondering how I can do so that when I click on some button, a new cardview with the…
-
2
votes1
answer457
viewsQ: How to make a menu item visible on Toolbar by clicking an existing one?
I have a menu on my Toolbar, it has the following actions: R.id.action_editar R.id.action_salvar How can I make so that when I click the edit action, the save action button becomes visible? This…
-
0
votes1
answer1038
viewsQ: Sqlite android query() / like with accents and without
How to make a query in Sqlite for Android that searches both accented and not accented words? For example: String[]ARGUMENTOS = {"%"+argumento+"%"} query(TABELA_CIDADES, COLUNA_NOME, NOME + " like…
-
6
votes1
answer10799
viewsQ: CPF/Cnpj Mask in Edittext
I have an Edittext field, I want to know how I can define a mask for it to format the text inserted in the corresponding format, CPF or CNPJ, I tried using the method described in this other…
-
2
votes1
answer3080
viewsQ: With filling a spinner with an object field
I have a Spinner in my Activity, need to make your items to be the names (field) of a Arraylist of objects, and that when selected, I be returned the id of the same to be able to perform a new…
-
0
votes0
answers41
viewsQ: How to know when the Sqlite query ended?
In my app I have a synchronization method, this method downloads several entries from my webservice and inserts them into the local Sqlite database through a for loop. I need to know when the Sqlite…
-
2
votes0
answers121
viewsQ: Retrofit response coming in as null
I am trying to make a retrofit call from a list of objects (Registrations) and in Httploggininterceptor the answer is appearing normally. What might be going on? My call: CadastroApi cadastroApi =…
-
0
votes2
answers1877
viewsA: How to check if there is any sqlite database in the application?
I decided to create a standard database containing the name and id of the user, whenever the application is opened I check in this database, if it is populated -> Login screen, if not ->…
-
2
votes2
answers1877
viewsQ: How to check if there is any sqlite database in the application?
I have the following dilemma: I’m setting up an app where I perform a synchronization between a Mysqle database and Sqlite using a Webservice. My database is already available in Mysql, and in my…
-
1
votes1
answer267
viewsQ: Error sending Arraylist via POST in Retrofit 2: java.lang.Illegalstateexception: Expected BEGIN_ARRAY but was STRING
When I try to send an Arraylist via @POST to be saved to my webserver with Retrofit2, Arraylist is saved, but I am getting the following error: java.lang.Illegalstateexception: Expected BEGIN_ARRAY…
-
0
votes1
answer297
viewsQ: Toolbar toggle(burger) button does not work on Android Pre Lollipop
I created a NavigationDrawer same as the image It works perfectly on Android 5.0 or higher, equal to image. But when I run the application on Android less than 5.0, the button does not work and when…
-
0
votes2
answers800
viewsA: Navigation Drawer calling Activity - Close the menu by clicking on the Activity item if it is the current one
I used this code to test before I called Intent: if (id == R.id.home) { if(this.getClass().getSimpleName().equals("HomeActivity")){ drawer = (DrawerLayout) findViewById(R.id.drawer_layout); }else{…
-
3
votes2
answers800
viewsQ: Navigation Drawer calling Activity - Close the menu by clicking on the Activity item if it is the current one
I created a navigation Drawer. To use in several Activities using a standard class for it (DrawerBase.java) and Xtendo her in Activities where I want Navigation Drawer to open, but I have the…
-
2
votes1
answer1139
viewsQ: How to create a class with a Navigationdrawer to use in multiple Activities?
I started studying Android development a little while ago, I saw that to use a Navigationdrawer the recommended is to use fragments to change a Framelayout in the main Activity, but in the new…
-
5
votes1
answer6498
viewsQ: How to Build a Webservice to Synchronize Android and Mysql Sqlite Database
I built an android app that stores basic information about a contact in Sqlite: Name, Telephone, E-mail, Address among others. I searched a little and from what I understood, what I can do is use a…