Posts by Diego Venâncio • 183 points
9 posts
-
0
votes2
answers2517
viewsA: Pass Data Via Ajax to the ASP.NET CORE C#MVC Controller
In the example below I have a selector that when changing the selected item activates ajax. No . cshtml <script…
-
0
votes2
answers2966
viewsA: Error starting IIS Express Web Server - Error 0x80070020
In my case it was the default website that was running and using the application port. Just stopped the site, I took advantage to run the VS in administrator mode.…
-
3
votes4
answers4547
viewsA: What’s the difference between Promises and Observables?
Observable By definition it is a collection that works one-way, IE, it sends notifications whenever a change occurs in one of your items and from this we can perform an action. But what are the…
javascriptanswered Diego Venâncio 183 -
1
votes2
answers8139
viewsA: Shortcut to create constructor with parameters
Digital (ctor + TAB + TAB) is the shortcut to the default constructor. Don’t forget to use private security using getters and setters. shortcut to encapsulation (get/set) is: (Control + .) Selecting…
-
1
votes2
answers3895
viewsA: Drawable or Mipmap?? What’s the difference?
They have been changed to mipmaps, leaving drawable nomenclature only for PNG, JPEG, GIF or image files, 9-Patch, and XML files that describe Drawable shapes or Drawable objects that contain…
-
0
votes2
answers2456
viewsA: How to call a sound when clicking the android button
Then add this code: private void playSound() { MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.beep); mediaPlayer.start(); } I put your audio in the raw folder with the name beep or change…
-
1
votes2
answers5551
viewsA: How to play sound on android
Then add this code: private void playSound() { MediaPlayer mediaPlayer = MediaPlayer.create(this, R.raw.beep); mediaPlayer.start(); } I put your audio in the raw folder with the name beep or change…
-
1
votes2
answers556
viewsA: Persistence and reading of Firebase data
You can add a user with setValue() as follows: Using the data of your class above, it would look like this: private void novaConsulta(int codigo, DateTime data, Usuario usuario) { Usuario usuario=…
-
1
votes1
answer228
viewsA: Using the json from firebase
First we have the routes afterward -> Subroutes -> ID_ROTA 3 levels. { "Rotas": [ { "sub_rota1":[ "ID_ROTA" ] }, { "sub_rota2":[ "ID_ROTA" ] }, { "sub_rota3":[ "ID_ROTA" ] } ] }…
firebaseanswered Diego Venâncio 183