Resultados 1 al 2 de 2

Tema: Starting TwoNav with a track programmatically

  1. #1
    Fecha de ingreso
    15 Dec, 11
    Mensajes
    18

    Predeterminado Starting TwoNav with a track programmatically

    I'm developing an app for Android where there is a "TWONAV" button clicking which starts TwoNav (vers. 3.3.4) . All right !
    Here is the code
    Código:
    sub BotTwoNav_click
      Dim Intent1 As Intent
     Dim pm As PackageManager
     Intent1 = pm.GetApplicationIntent ("com.compegps.twonavfull")
     StartActivity (Intent1)
     end Sub
    Now I would like to start TwoNav and simultaneously load a track (TRK or PLT or GPX).
    For example /TwoNavData/PersonalTracks/OneTracks.TRK
    It is possible to pass any parameters to the above code ?
    Thanks for the attention.

  2. #2
    Fecha de ingreso
    28 Apr, 10
    Ubicación
    D
    Mensajes
    1,250

    Predeterminado

    Hi,

    i actually only can test it with Twonav PC-Version.
    This i can start for example with ....TwoNav_Windows.exe f:\GPS_Daten\Tracks\My_tracks\Sonnaalp.trk
    So name of Twonav executable is followed by path name of track i wish to load.

    Another possibilty could be to manipulate the file default.cjt, which includes the last loaded files.
    If option "reload last loaded data" in advanced options is checked, automatically all data noted in this file will be loaded.
    Última edición por papaluna; 29/02/2016 a las 17:30 Razón: spelling
    ----------------------
    Gruss
    regards
    saludos
    cordialement

    Gert

    www.Twonav-gps.de - - - www.garda-gps.de for Twonav

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  


About us

    CompeGPS Team SL All rights reserved © 2012

Follow us on

Twitter Facebook youtube Google Plus Flickr