<div dir="ltr">Hi.<div><br></div><div>The Android app is not updating the location string, but it can be done.</div><div><br></div><div>You can add this to the <span style="color:rgb(0,0,0);font-family:menlo;font-size:9pt">updateLocation</span> method on MainActivity.java</div><div><pre style="color:rgb(0,0,0);font-family:menlo;font-size:9pt">Geocoder geocoder = <span style="color:rgb(0,0,128);font-weight:bold">new </span>Geocoder(<span style="color:rgb(0,0,128);font-weight:bold">this</span>, Locale.<span style="font-style:italic">getDefault</span>());<br><span style="color:rgb(0,0,128);font-weight:bold">try </span>{<br>    List&lt;Address&gt; addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), <span style="color:rgb(0,0,255)">1</span>);<br>    saleAgent.setLocation(addresses.get(<span style="color:rgb(0,0,255)">0</span>).getLocality());<br>} <span style="color:rgb(0,0,128);font-weight:bold">catch </span>(IOException e) {<br>    <br>}</pre></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 5:40 PM, columfoskin <span dir="ltr">&lt;<a href="mailto:columfoskin@gmail.com" target="_blank">columfoskin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<br>
<br>
I am working on building a node.js version of the backend aerodoc demo<br>
system and I am wondering if anybody knows if the location string for a<br>
sales agent is updated at all?<br>
<br>
I know that the lat/longs are updated when the agent signs into the client<br>
android app.<br>
<br>
I am trying to replicate functionality and I think that the agents location<br>
string is never updated and is just hardcoded on startup.<br>
<br>
Does anybody know if this is the case?<br>
<br>
Thanks,<br>
Colum.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-users.1116366.n5.nabble.com/Aerodoc-sales-agent-location-string-updated-tp1063.html" rel="noreferrer" target="_blank">http://aerogear-users.1116366.<wbr>n5.nabble.com/Aerodoc-sales-<wbr>agent-location-string-updated-<wbr>tp1063.html</a><br>
Sent from the aerogear-users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
</blockquote></div><br></div>