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. Avoiding String allocation in TextView.setText()

Hi,

on Android 1.5, using the Allocation Tracker I see that every time I call
TextView.setText() with a StringBuilder as first argument, a String gets
allocated from the following call stack (first line is last call):

java.lang.AbstractStringBuilder toString        
java.lang.StringBuilder         toString        
android.text.TextUtils          stringOrSpannedString   
android.widget.TextView         setText

I tried specifying the buffer type with setText(strBuilder,
TextView.BufferType.NORMAL) but it doesn't change anything.

Is there a way to avoid this allocation ?

--
  Olivier

-- 

2. who created these "Binder Thread" ?

After this thread run dozens of loops. The Binder Threads are created,
and can be seen in the eclipse debug window. And these Binder Threads
will never get terminated / released. Where does theme come from? How
to prevent this from happening? Or how to get it teminated / released?



public class TServer {

        static final int HTTP_PORT = 7788;
        private static Context FContext = null;

        static class RequestListenerThread extends Thread {

                private final ServerSocket serversocket;
                private final HttpParams params;

                public RequestListenerThread(Context AContext) throws 
IOException {
                        FContext = AContext;

                        this.serversocket = new ServerSocket(HTTP_PORT);
                        this.params = new BasicHttpParams();
                        this.params
                                        
.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, 5000)
                                        
.setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE,
                                                        8 * 1024)
                                        .setBooleanParameter(
                                                        
CoreConnectionPNames.STALE_CONNECTION_CHECK, false)
                                        
.setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true);
                        // .setParameter(CoreProtocolPNames.ORIGIN_SERVER,
                        // "HttpComponents/1.1");

                }

                public void terminate() {
                        try {
                                serversocket.close();
                                this.interrupt();
                        } catch (Throwable e) {
                                e.printStackTrace();
                        }
                }

                public void run() {
                        while (!Thread.interrupted()) {
                                try {
                                        // Set up HTTP connection
                                        Socket socket = 
this.serversocket.accept();
                                        DefaultHttpServerConnection conn = new 
DefaultHttpServerConnection
();
                                        conn.bind(socket, this.params);

                                        try {
                                                String aUrl = "";
                                                String aRequest = "";
                                                HttpRequest request = 
conn.receiveRequestHeader();
                                                if (request instanceof 
HttpEntityEnclosingRequest) {
                                                        conn
                                                                        
.receiveRequestEntity((HttpEntityEnclosingRequest) request);
                                                        HttpEntity entity = 
((HttpEntityEnclosingRequest) request)
                                                                        
.getEntity();
                                                        if (entity != null) {
                                                                aRequest = 
EntityUtils
                                                                                
.toString(entity, "UTF-8");
                                                                
entity.consumeContent();
                                                        }
                                                }
                                                aUrl = 
request.getRequestLine().getUri();

                                                String aResponse = 
"";

                                                ContentResolver r = 
FContext.getContentResolver();
                                                Cursor c = 
r.query(Contacts.People.CONTENT_URI, null,
                                                                null, null, 
null);
                                                try {
                                                        while (c.moveToNext()) {
                                                                aResponse = 
aResponse.concat(c.getString(c
                                                                                
.getColumnIndex(Contacts.People.NAME)));
                                                                if 
(c.getPosition() > 30) {
                                                                        break;
                                                                }
                                                        }
                                                } finally {
                                                        c.close();
                                                }

                                                HttpResponse response = new 
BasicHttpResponse(
                                                                
HttpVersion.HTTP_1_0, 200, "OK");
                                                response
                                                                .setEntity(new 
StringEntity(aResponse, "UTF-8"));
                                                
conn.sendResponseHeader(response);
                                                
conn.sendResponseEntity(response);
                                        } catch (Throwable e) {
                                                e.printStackTrace();
                                        } finally {
                                                try {
                                                        conn.shutdown();
                                                } catch (Throwable ignore) {
                                                }
                                        }

                                } catch (InterruptedIOException ex) {
                                        ex.printStackTrace();
                                        // break;
                                } catch (IOException e) {
                                        e.printStackTrace();
                                        // break;
                                } catch (Throwable e) {
                                        e.printStackTrace();
                                        // break;
                                }
                        }
                }
        }

}

-- 

3. Cannot view saved image until reboot

4. How to perform Web Search without requiring UI

5. Android market developer fee - annual or forever?

6. window27

7. Build Log Errors In Ubuntu 9.10