Hi there...
my latest tries and thoughts at webapps coming to "full" our day
So in a scenario - that we have a server and keeps "tracking" of users locations (that changing realtime)... without the users having android apps but only browser supports ofcourse running HTML5/webapps... (i think the most can do)...
How it is is possible using ABMaterial and B4j Jetty to get the client location every second or two...
is just a scenario - not a ready project...
at the side of server... running a b4j project with ABMaterial, jServer and a page builded properly that will include somehow a javascript (? is it possible at ABMaterial?) like this and refresh (may be with a timer from b4j asking for it) every 1-2 seconds...
the javascript needed to included at the page:
1. So here comes the question ... as i understand the BANano is closer to those solutions - but can we pass this javascript with ABMaterial somehow ?
2. Anyones know the quality(accurate) of Location will get with the java at a browser...
is somehow like FusedLocation (if we have open GPS or not using at all the GPS)... can we use it every second or will have any problem - anyone tried it ?
Thanks in advance
my latest tries and thoughts at webapps coming to "full" our day
So in a scenario - that we have a server and keeps "tracking" of users locations (that changing realtime)... without the users having android apps but only browser supports ofcourse running HTML5/webapps... (i think the most can do)...
How it is is possible using ABMaterial and B4j Jetty to get the client location every second or two...
is just a scenario - not a ready project...
at the side of server... running a b4j project with ABMaterial, jServer and a page builded properly that will include somehow a javascript (? is it possible at ABMaterial?) like this and refresh (may be with a timer from b4j asking for it) every 1-2 seconds...
the javascript needed to included at the page:
B4X:
<script>
var x = document.getElementById("inp1"); 'coords will be get into input box...
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
1. So here comes the question ... as i understand the BANano is closer to those solutions - but can we pass this javascript with ABMaterial somehow ?
2. Anyones know the quality(accurate) of Location will get with the java at a browser...
is somehow like FusedLocation (if we have open GPS or not using at all the GPS)... can we use it every second or will have any problem - anyone tried it ?
Thanks in advance