This is the exception

07-04 20:38:19.969: WARN/System.err(2861): java.io.IOException: Unable
to parse response from server
07-04 20:38:19.979: WARN/System.err(2861):     at
android.location.Geocoder.getFromLocationName(Geocoder.java:159)
07-04 20:38:19.979: WARN/System.err(2861):     at
com.coolfone.hmm.onCreate(hmm.java:24)
07-04 20:38:19.989: WARN/System.err(2861):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
07-04 20:38:19.989: WARN/System.err(2861):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
07-04 20:38:19.999: WARN/System.err(2861):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
07-04 20:38:19.999: WARN/System.err(2861):     at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-04 20:38:20.009: WARN/System.err(2861):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-04 20:38:20.009: WARN/System.err(2861):     at
android.os.Handler.dispatchMessage(Handler.java:99)
07-04 20:38:20.019: WARN/System.err(2861):     at
android.os.Looper.loop(Looper.java:123)
07-04 20:38:20.019: WARN/System.err(2861):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
07-04 20:38:20.029: WARN/System.err(2861):     at
java.lang.reflect.Method.invokeNative(Native Method)
07-04 20:38:20.029: WARN/System.err(2861):     at
java.lang.reflect.Method.invoke(Method.java:521)
07-04 20:38:20.029: WARN/System.err(2861):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
07-04 20:38:20.039: WARN/System.err(2861):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
07-04 20:38:20.039: WARN/System.err(2861):     at
dalvik.system.NativeStart.main(Native Method)


Here's what I read about 7 and 8

http://s1190.photobucket.com/albums/z449/m75214/?action=view&current=bookiread.jpg


On Jul 4, 9:43 am, Fina Perez <[email protected]> wrote:
> which exception do you have?
> And about the thing with the AVD 7 and 8, I use 8 and for me it works.
> Of course, check the manifest and the internet connection.
>
> On Jul 3, 9:56 pm, bob <[email protected]> wrote:
>
>
>
>
>
>
>
> > Yes, I did this.
>
> > I read in a book that geocoding doesn't work in AVD 7 and 8.  It said
> > to use AVD 6.
>
> > I'm going to try AVD 6 in a bit.
>
> > On Jul 3, 1:53 am, Ali Chousein <[email protected]> wrote:
>
> > > Your code should work without problems. I use very similar code in my
> > > application and it just works.
>
> > > ForGeocoderyou need to set android.permission.INTERNET in your
> > > manifest file. Did you do this?
>
> > > ----------
> > > Ali Chousein
> > > Geo-Filtered Assistanthttp://geo-filtered-assistant.blogspot.com/
>
> > > On Jul 2, 6:53 pm, bob <[email protected]> wrote:
>
> > > > I've been playing around withGeocoderstuff, and it is anightmare.
> > > > Nothing works.
>
> > > > Is there any version of the emulator where this code does not give a
> > > > weird exception?
>
> > > > import java.io.IOException;
> > > > import java.util.List;
>
> > > > import android.app.Activity;
> > > > import android.location.Address;
> > > > import android.location.Geocoder;
> > > > import android.os.Bundle;
>
> > > > public class hmm extends Activity {
> > > >     /** Called when the activity is first created. */
> > > >     @Override
> > > >     public void onCreate(Bundle savedInstanceState) {
> > > >         super.onCreate(savedInstanceState);
> > > >         setContentView(R.layout.main);
> > > >         boolean ok=Geocoder.isPresent();
> > > >         finalGeocodergeocoder= newGeocoder(this);
> > > >         final String locName = "1600 Amphitheatre Parkway, Mountain
> > > > View, CA";
> > > >         try {
> > > >                         final List<Address> list 
> > > > =geocoder.getFromLocationName(locName,
> > > > 1);
> > > >                 } catch (IOException e) {
> > > >                         // TODO Auto-generated catch block
> > > >                         e.printStackTrace();
> > > >                 }
>
> > > >     }
>
> > > > }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to