android


Update Google Maps Navigation, on Location Change within the app


I am working on an application that has to do with location change notifications. Scenario is stated in steps:
User gets a location notification in app.
To get best route, Presses a button that starts intent for Google Maps app.
Now, since user is outside of my app, it gets a notification for new location, from notification goes into app again meanwhile previous route is set in Maps app.
Now, user have a new location, again presses the button for best route and this time when Maps app start, it asks about Exit the current navigation.
User has to cancel the already running navigation first and then it starts again with new best route. It makes things longer and complex for user.
I want is it as that whenever Maps app start form my app, it starts with new route automatically instead of asking for previous navigation. As user presses the maps button and Google Map app starts it starts with route to new location.
I am using following script in order to open up Google Maps app so that user can find best route.
String muri="google.navigation:q="+apntLat+","+apntLong;
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(muri));
intent.setClassName("com.google.android.apps.maps","com.google.android.maps.MapsActivity");
startActivity(intent);
Is there any possibility to achieve this and skip this step of exiting the previous navigation first and then starting a new one? so that every time the Google Maps intent is called, it starts with finding route to New Location, regardless of the fact it had any previous navigation running. Please update. Any suggestions or feedback is welcomed.

Related Links

No emulator image found while creating a cordova mobile app
How to get the UUID from MAC address for Bluetooth Connectivity?
Animate circle in Android with data
Indexing of moveToPosition of Cursor in Android
How to make a widget work on the click of a button?
Implementing android:choiceMode in a RecyclerView
Download the latest android SDK documentation (when SDK manager version is lagging behind)
ViewPager with FragmentPagerAdapter
WebView Video FullScreen Mode Crash in some of Android Device When using application context
Dagger 2 lifecycle of a component, module and scope
Send sensing data on Android to Amazon Web Services
java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
Draw on SurfaceView with Bitmap as background
Android Handling orientation changes - no change if rotation occurs
Google Sign in Error -Firebase android codelab
How to do Firebase query(.equalTo(key))on childListener and map to String

Categories

HOME
cygwin
phantom-dsl
grok
twitter-bootstrap-3
checkstyle
ng-idle
ecmascript-6
mysql-workbench
obfuscation
mstest
can
database-normalization
vert.x
odoo-8
extjs4.2
google-chrome-app
android-securityexception
tput
supervisor
internationalization
firefox-addon
red5
google-picker
nim
solrcloud
joptionpane
displaytag
asymptotic-complexity
openmdao
recurring-events
weather
database-comparison
dumpbin
login-script
vue-chartjs
pdw-file-browser
imx6
servicestack-text
video-capture
hivemq
parse-tree
openproject
metawidget
urlsession
linqpad
print-css
puredata
pom.xml
httrack
yii2-api
video-conferencing
boxing
ampps
renaming
branch-prediction
restore
choice
mapxtreme
winusb
latin
adafruit
jclouds
php-socket
fink
jnlua
inf
directdraw
file-move
wiredep
poppler
zscript
broadband
execve
addressing-mode
metatrader5
universal-image-loader
gii
personalization
wxformbuilder
buffering
renderer
mt4j
neos-server
poker
composite-component
alice
midlet
monotouch.dialog
uimanageddocument
objectquery
window-decoration
floating-point-exceptions
android-holo-everywhere
listactivity
creole
commerceserver2007
addchild
zen
tabpanel
sun
xpsdocument
linfu-dynamicproxy
wcf-proxy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App