Hi guys. I am a very new guy to Android development world, just two
days, but I love it so far :)

Yusuf --- thanks for the very useful steps describing how to get
around the deprecated MapView.GetZoomControls().

Here a suggestion to android creators --- I would suggest that when
making a function deprecated to provide a link to a substitution in
the documentation, just like Java creators have started doing I think
since Java 1.4. Also useful would be to update tutorials together with
this kind of updates, and to those interested leave a link to older
version.

iñaki --- I had the very same problem of being unable to see the map.
I have solved it by re-reading the tutorial once more and paying
attention to where permissions actually should be. As if you can check
your AndroidManifest.xml file (in your post from Jul 21, 8:58 am), you
have put the Internet permission under the application, it should be
under the manifest, in parent-child context it should be brother/
sister of <application> not its child, see below mine manifest file
that works (at least in my case):

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.examples.HelloMapView"
      android:versionCode="1"
      android:versionName="1.0">
     <uses-permission android:name="android.permission.INTERNET" />

    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <uses-library android:name="com.google.android.maps" />
        <activity android:name=".HelloMapView"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest>

All the best,
BORO

On Jul 22, 10:14 pm, iñaki <inaki.s...@gmail.com> wrote:
> Hi again, in another net my issue is solved. Maybe proxy...
>
> Thanks Yusuf
>
> 2009/7/22 Neilz <neilhorn...@googlemail.com>
>
>
>
> > Well I can't get this working. I've gone as far as step 6 of the
> > tutorial, where it says "You can actually run this now, but all it
> > does is allow you to pan around the map". So my class is very simple:
>
> > public class HelloMapView extends MapActivity {
>
> >        LinearLayout linearLayout;
> >        MapView mapView;
>
> >    /** Called when the activity is first created. */
> >   �...@override
> >    public void onCreate(Bundle savedInstanceState) {;
> >        super.onCreate(savedInstanceState);
> >        setContentView(R.layout.main);
>
> >    }
>
> >   �...@override
> >    protected boolean isRouteDisplayed() {
> >        return false;
> >    }
>
> > }
>
> > ...and the manifest is as already posted above. The error again is:
>
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):
> > java.lang.IllegalAccessError: cross-loader access from pre-verified
> > class
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):     at
> > dalvik.system.DexFile.defineClass(Native Method)
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):     at
> > dalvik.system.DexFile.loadClass(DexFile.java:193)
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):     at
> > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:573)
> > 07-22 09:00:25.421: ERROR/AndroidRuntime(724):     at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:532)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to