Ane lagi buat tugas ttg android pke framework phonegap, niat ane mau buat aplikasi yang bisa nampilin posisi ane sekarang sama lokasi yang dituju pke google map, cuman ane dapet kesulitan nih. Pas coding HTMLnya dirunning via browser bisa muncul
Spoiler for judul spoiler:
Tapi pas running di hape, atau di AVD, gx mau muncul petanya,
knp ya gan, mohon bantuannya matabelo
Updated*
Ane share kodingnya nih gan (script=scri_pt)
Spoiler for koding:
<!doctype html>
<html lang="en">
<head>
<title>jQuery mobile with Google maps</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" />
<scri_pt src="jquery-1.8.2.min.js"></scri_pt>
<scri_pt src="jquery.mobile-1.3.2.min.js"></scri_pt>
<scri_pt type="text/javascri_pt" src="http://maps.google.com/maps/api/js?v=2&sensor=false&language=en"></scri_pt>
<scri_pt type="text/javascri_pt">
var map,
currentPosition,
directionsDisplay,
directionsService;
function initialize(lat, lon)
{
directionsDisplay = new google.maps.DirectionsRenderer();
directionsService = new google.maps.DirectionsService();
currentPosition = new google.maps.LatLng(lat, lon);