I wonder How can I get or Import com.google.googlenav package

by [EMAIL PROTECTED] » Sat, 01 Nov 2008 07:15:21 GMT


Sponsored Links
 I found this package out in  http://www.anddev.org/ as a tutorial 

But I can't import com.google.googlenav package in my class (SDK 1.0)

so I looked up (SDK 0.9) an android.jar file I could see this package
then I thought there would be replaced package or something in SDK 1.0
but I couldn't find it

How can i sort it out this problem.
I want a draw a route or direction which follows a road in map from A
to B on my map App.




--~--~---------~--~----~------------~-------~--~----~



I wonder How can I get or Import com.google.googlenav package

by [EMAIL PROTECTED] » Sat, 01 Nov 2008 08:11:06 GMT


 Is there any other way of implementing this Functions?

O.M.G
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


I wonder How can I get or Import com.google.googlenav package

by JP » Sun, 02 Nov 2008 02:43:31 GMT


 I was looking for this myself until I read up on the updated Android
Maps API ToS. Right there in the first paragraph we read: "The Android
Maps APIs explicitly do not include any driving directions data or
local search data that may be owned or licensed by Google". Although
not a direct link I concluded that Google (quietly) took location
based search off the table.

Time to think about alternatives...I haven't figured anything out
(yet). One could perhaps kick up maps.google.com in the browser, using
the location in question. Unless app users complain, I don't feel like
necessarily handing eyeballs to Google like that however. Any ideas?



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. attempting to insert a contact

I've looked at the other code fragments in this forum, and at the
sample code in the "Accessing Content Providers" document, but I'm
still having problems.  The following code fragment dies with an
IOException at
     uri = getContentResolver().insert(Contacts.People.CONTENT_URI,
contact);

Can someone please point out where I am going astray?

Thanks, Robert O'Hara

----------------------

import android.app.Activity;
import android.content.ContentValues;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Contacts;
import android.provider.Contacts.Phones;
import android.view.KeyEvent;

public class Testbed extends Activity {
//
*************************************************************************************************
// Testbed is used to try out new program fragments.
//
*************************************************************************************************

public void onCreate(Bundle savedInstanceState) {
//
-------------------------------------------------------------------------------------------------
// Create our activity.
//
-------------------------------------------------------------------------------------------------
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

InsertContact("Harry Ijen", "+18142386651", 1);
}

public void InsertContact(String name, String phoneNumber, int
favorite) {
//
-------------------------------------------------------------------------------------------------
// Insert a new contact into the contacts application.
//
-------------------------------------------------------------------------------------------------
Uri phoneUri = null;
Uri uri = null;

ContentValues contact = new ContentValues();
contact.put(Contacts.People.NAME, name);
contact.put(Contacts.People.STARRED, favorite);
uri = getContentResolver().insert(Contacts.People.CONTENT_URI,
contact);

// Now get the CONTENT_URI of the contact we just inserted & build the
URI for the phone num.
phoneUri = Uri.withAppendedPath(uri,
Contacts.People.Phones.CONTENT_DIRECTORY);
contact.clear();
contact.put(Contacts.Phones.TYPE, Phones.TYPE_MOBILE);
contact.put(Contacts.Phones.NUMBER, phoneNumber);
getContentResolver().insert(phoneUri, contact);
}

public boolean onKeyUp(int keyCode, KeyEvent keyMsg) {
//
-------------------------------------------------------------------------------------------------
// Terminate the application if the user presses the Q key.
//
-------------------------------------------------------------------------------------------------
if (keyCode == KeyEvent.KEYCODE_Q) finish();
return true;
}

}

--~--~---------~--~----~------------~-------~--~----~

2. Design decision on Local Service versus Remote Service

I understand that local service runs in the same process as the app
and remote service runs in a separate process as the app.  Also,
Remote service requires IPC to communicate with client.  But can
someone give me concrete examples of when local service service should
be used (and remote service)?
--~--~---------~--~----~------------~-------~--~----~

3. first Map app getting "stopped unexpectedly" error - how to get more info?

4. intent for sent message

5. Listview click event with button

6. keytool usage different, can't generate debug MD5 fingerprint - resolved

7. eclipse debug keystore and google maps api key problem