Posts by Eric123 • 180 points
5 posts
-
1
votes1
answer1294
viewsA: How to transform the observable of json into datasource for Angular Material 2
It worked for me this way: @ViewChild(MatTable) public matTable; updateDataSource(data) { this.dataSource = new MatTableDataSource<any>(data); this.matTable.renderRows(); }…
-
13
votes2
answers641
viewsQ: Doubts with relationships in Eloquent
Guys I’m making a belongsToMany to recover several Users that are related to a Item. It returns me in the all array Users correctly, but I need to make a hasOne of each User(created on the model…
-
1
votes0
answers929
viewsQ: Alertdialog ANDROID accent error
I’m having problems with the AlertDialog, when opened it exhibits the accents and neither cedilla, in the place appears that old "triangle with interrogation in". What to do to solve? public void…
-
0
votes2
answers409
viewsA: How to find specific point coordinates
Code for calculation of distance between 2 points: public double distanciaEmMetros(double lat1, double long1, double lat2, double long2) { final Location start = new Location("Start Point");…
-
1
votes2
answers409
viewsQ: How to find specific point coordinates
I need the coordinates of a specific point in Google Maps. Kind of like I click on a point and somehow the API shows me the string of mnsm. Because I need to calculate distance between 2 points…