Posts by Samanta Silva • 463 points
23 posts
-
0
votes1
answer454
viewsQ: I cannot make Firebase Cloud Messaging notification work in the web browser
I’m really lost on how to make notifications work. I find their documentation very confusing. But following as I understood and some tutorials, I think I managed to solve a good part and should be…
-
1
votes0
answers159
viewsQ: I’m trying to make a vertical multidimencional menu with Vue.js but the subitens aren’t showing up
This is the code I have so far: Vue.component('menu-item', { props: ['cmitens'], template: '#menu-item' }); new Vue({el: '#vuesadminmenu', data: { menuitens:…
-
0
votes1
answer99
viewsA: How to use dynamic key in multidimensional json in v-model in Vue.js?
I asked the same question in the English OS and had the following reply: Use [] Instead of {{}}; mustache ({{}}) is used for text Interpolation, and it cannot be used Inside HTML Attributes, for…
-
0
votes1
answer99
viewsQ: How to use dynamic key in multidimensional json in v-model in Vue.js?
I’m having trouble selecting the options of a select with the data from beginning and end within the dynamic keys of the following multidimensional json: rowsels:…
-
1
votes1
answer81
viewsA: Does my SQL Query not work properly?
You are making an ordination increasing by day and month, and decreasing by only in the year. Your data doesn’t have a time order, so mysql knows which is the latest or oldest date, so I think you…
-
3
votes2
answers164
viewsQ: How to conditional disable a link with bind href in Vue.js?
I have a project where will have an area dynamically populated with Vue.js. But items should be clickable or not depending on the level of each item. I know in Vue, you can use the v-if, but…
-
0
votes1
answer208
viewsQ: How to add a class to a label tag of an input dynamically selected by Vue.js?
I am using Boostrap and have a sector in the form where the client will choose some items, and when clicking on the item the bootstrap adds the class active in the selected item, and with css I make…
-
1
votes2
answers260
viewsQ: Why does Vue.js lose formatting when adding dynamic items? Is it possible to fix this?
I have a form, where the phone fields is dynamic so the user can add as many numbers as they want. But when I click the button to add new item, this created item appears without formatting. Not to…
-
1
votes2
answers1466
viewsA: How to select options from a select dynamically populated by Vue.js?
After the following responses from @bfavaretto: Use according to the example in the manual (second example for selects): https://vuejs.org/v2/guide/forms.html#Select You need an attribute…
-
0
votes1
answer209
viewsA: How to create Divs within Java and use Json
Look how I answered in the question comment, I think Vue.js would be much better for you. Here I give a very easy example of how to use. new Vue({ el: '#v-for-cards', data: { itens:…
-
1
votes2
answers1466
viewsQ: How to select options from a select dynamically populated by Vue.js?
I have a select in a form, and the items in that select are dynamically populated by Vue.js. My problem is that when I open a register saved in the database for editing on this form, I need to make…
-
2
votes1
answer228
viewsQ: How to resolve a synchronization with the server when there is connection drop on Android?
I’m making an application, where has a job registration in Sqlite that should be synchronized with the server in PHP with Mysql. After doing a lot of research, I couldn’t find any answers to my…
-
3
votes1
answer116
viewsQ: How to update two tables in an alternative way that does not return "safe update mode" in Mysql?
I have two tables, one for users, and one for validation codes. I do a code check in PHP and need to do a query in the validation table at the same time that I update this table disabling this code…
mysqlasked Samanta Silva 463 -
7
votes1
answer678
viewsQ: How to know which Activity prior to the current Activity was called?
I have several activities, which can call a special activity. I’d like to know how to identify which Activity called. It would be something like this: I need this because I have a user registration…
-
0
votes2
answers1029
viewsA: How to delete directory from internal storage on Android?
I found an answer in the stack on the following link: https://stackoverflow.com/a/46086062/9441092 In this answer you have the following function: public int removeDirectory(final File folder) {…
-
0
votes2
answers1029
viewsQ: How to delete directory from internal storage on Android?
I have two functions to save files in the internal memory of my application, one for data in Json and the other for Images. With each new app update, I will need to remove these directories so that…
-
3
votes1
answer855
viewsQ: How to make GET and POST requests on android, with a quick and updated tool?
I am currently using the volley for web requests. But I’m finding this tool too slow. I googled looking for alternatives, but all results I find are old, 2017, 2016 down. About the org.apache.http…
-
2
votes1
answer80
viewsA: How to use tabs with items within the same xml without using Fragments?
I ended up solving it this way and it worked: final ConstraintLayout clhistoria = (ConstraintLayout) view.findViewById(R.id.cl_sobre_historia); final GridView gvequipe = (GridView)…
-
1
votes1
answer80
viewsQ: How to use tabs with items within the same xml without using Fragments?
I have a Activity where I’ll just need 2 tabs, one that will open right away telling a story using simple textview, and another about members of a team using gridview. I didn’t want to use Fragments…
-
1
votes1
answer561
viewsA: Button to delete PHP photo with Jquery
Use Ajax in jquery by clicking the button to run the script in php <script type="text/javascript"> $(document).ready(function(){ $('#btn_excluir').click(function(){ $.ajax({method: "POST",…
-
2
votes1
answer77
viewsQ: Some libraries do not appear in the dependency search list
When we go to the Project Structure configuration menu, the app configuration, and Dependencies, we can add some libraries to a list or search. But it is not any library that appears. For example…
android-studioasked Samanta Silva 463 -
0
votes2
answers78
viewsQ: How to simplify clicks on buttons in Java for Android?
I’m starting to have a lot of buttons in the same Activity and as much as they are simple commands, the code is getting big, and it will get even bigger. I wonder if there is a way to simplify by…
-
1
votes2
answers102
viewsQ: How to use the Sharedpreferencesutils.java class?
Sorry about the title, I don’t know how else would be a better way to ask. I’m learning to code on android apps, and I found a JAVA class to facilitate the use of Sharedpreferences. But I don’t…