CERCA
PER MODELLO
FullScreen Chatbox! :)

Utente del giorno: Q.dino con ben 1 Thanks ricevuti nelle ultime 24 ore
Utente della settimana: 9mm con ben 7 Thanks ricevuti negli ultimi sette giorni
Utente del mese: 9mm con ben 31 Thanks ricevuti nell'ultimo mese

Visualizzazione dei risultati da 1 a 6 su 6
Discussione:

andnav2

Se questa discussione ti è stata utile, ti preghiamo di lasciare un messaggio di feedback in modo che possa essere preziosa in futuro anche per altri utenti come te!
  1. #1
    Baby Droid


    Registrato dal
    Apr 2009
    Messaggi
    12

    Ringraziamenti
    0
    Ringraziato 2 volte in 2 Posts
    Predefinito

    andnav2

    ciao a tutti,

    qualcuno sa come scrivere un pezzo di codice che richiama andnav2 da un altra applicazione?

    grazie

  2.  
  3. #2
    Administrator L'avatar di Andrea


    Registrato dal
    Nov 2008
    Messaggi
    3,368
    Smartphone
    Nexus S, myTouch Slide 4g

    Ringraziamenti
    143
    Ringraziato 880 volte in 323 Posts
    Predefinito

    Quote Originariamente inviato da tanjian Visualizza il messaggio
    ciao a tutti,

    qualcuno sa come scrivere un pezzo di codice che richiama andnav2 da un altra applicazione?

    grazie
    codice:
     // Only AndNav2 will react!
    public static final String ANDNAV2_VIEW_ACTION =
       "org.andnav2.intent.ACTION_VIEW";
    private void sampleLocationRequest() {
        // Create a bundle that will transfer the location-information
        final Bundle b = new Bundle();
    
        final ArrayList locations = new ArrayList();
        // Add as many locations as you want here
    
        // "Latitude,Longitude;Title;Description"
        locations.add("50.119539,8.658031;Frankfurt;City Center"); 
        // "Latitude,Longitude;Title;Description"
        locations.add("50.133089,8.66729;Frankfurt (title is optional);" 
            + "Just an optional description.. put anything here =) !!");
        // "Latitude,Longitude;Title"
        locations.add("50.133089,8.63729;Just a title, no decription");
        // "Latitude,Longitude"
        locations.add("50.124089,8.64729"); 
    
        // Add the locations to the bungle using "locations" as the key
        b.putStringArrayList("locations", locations);
    
        // Create and broadcast an Intent that will 
        // start an AndNav-Map with the locations marked
        final Intent locationIntent = new Intent(ANDNAV2_VIEW_ACTION);
        locationIntent.putExtras(b);
        sendBroadcast(locationIntent);
    }
    L'ho preso direttamente dal sito di andnav : AndNav.org - Android Navigation System

    Twitter @veke87

  4. #3
    Baby Droid


    Registrato dal
    Apr 2009
    Messaggi
    12

    Ringraziamenti
    0
    Ringraziato 2 volte in 2 Posts
    Predefinito

    ciao andrea,
    ma tu l hai provato questo codice?

  5. #4
    Administrator L'avatar di Andrea


    Registrato dal
    Nov 2008
    Messaggi
    3,368
    Smartphone
    Nexus S, myTouch Slide 4g

    Ringraziamenti
    143
    Ringraziato 880 volte in 323 Posts
    Predefinito

    No, infatti ti ho linkato la risorsa..


    A quanto c'è scritto però funziona solamente se è installato andnav2

    Twitter @veke87

  6. #5
    Baby Droid


    Registrato dal
    Apr 2009
    Messaggi
    12

    Ringraziamenti
    0
    Ringraziato 2 volte in 2 Posts
    Predefinito

    beh andnav2 deve essere installato per forza.è che non ci sono le classi java da poter utilizzare e modificare

  7. #6
    Baby Droid


    Registrato dal
    Apr 2009
    Messaggi
    12

    Ringraziamenti
    0
    Ringraziato 2 volte in 2 Posts
    Predefinito

    ho provato il codice java con l emulatore android ma mi da una schermata nera e basta

Discussioni simili

  1. ...Installare correttamente AndNav2
    Da Valtox nel forum HTC Magic
    Risposte: 1
    Ultimo messaggio: 29-12-09, 18:04
  2. AndNav2 Su dream Tim
    Da lory749 nel forum HTC Dream / Tmobile G1
    Risposte: 2
    Ultimo messaggio: 12-08-09, 19:02
  3. mappe offline x andnav2
    Da nabbi87 nel forum HTC Dream / Tmobile G1
    Risposte: 3
    Ultimo messaggio: 21-07-09, 01:15
  4. mappa roma andnav2
    Da pitpit nel forum Le Applicazioni per Android
    Risposte: 14
    Ultimo messaggio: 28-06-09, 20:05
  5. problemi andnav2
    Da tanjian nel forum HTC Dream / Tmobile G1
    Risposte: 7
    Ultimo messaggio: 14-04-09, 12:54

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire risposte
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Torna su
Privacy Policy