oh boy... I have figured out what went wrong...

I used the "geo" command to send location fixes, but this thing takes
GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related
API that I have ever seen does), so the map dropped me in some
uncharted lands (which were gray...).

Great, one more wasted day thanks to terrible user interface
design. :-/

On Oct 17, 4:08 pm, Matthias <[EMAIL PROTECTED]> wrote:
> darn, nevermind... the Maps demo in ApiDemos is also missing that
> file, produces the same error, but it does show a map.
>
> this is getting more obscure with every minute.
>
> On Oct 17, 3:56 pm, Matthias <[EMAIL PROTECTED]> wrote:
>
> > Yes, I do have a location set.
>
> > I think I know where the problem originates from though. As has
> > appeared in the log traces before, the gray map thing seems to happen
> > when the error "Couldn't find file /data/data/<your-app-package>/
> > DATA_Tiles" occurs; from my understanding, this file holds the map
> > tile data from which a map is constructed. If that file is missing,
> > well, then no map will be rendered of course.
>
> > I don't know why my application package is missing that file. This
> > should be handled by the runtime of course. I will now try to manually
> > copy that file over from another (working) package to my package and
> > check if that'll fix it.
>
> > On Oct 17, 3:10 pm, Ludwig <[EMAIL PROTECTED]> wrote:
>
> > > Do you actually have a location set? I vaguely remember that I once had 
> > > the
> > > grey screen, where it was not the permission to get the data off the net,
> > > but the fact that the view did not know what/where to view.
> > > Ludwig
>
> > > 2008/10/17 Matthias <[EMAIL PROTECTED]>
>
> > > > That didn't work for me. I am still getting a grey plane where the map
> > > > should be. :-/
>
> > > > Any other ideas?
>
> > > > On Aug 20, 9:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> > > > > Move the uses-permission tags above the application tag:
>
> > > > >  <uses-permission
> > > > android:name="android.permission.ACCESS_COARSE_LOCATION"
> > > > > />
> > > > >    <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" />
>
> > > > > On Wed, Aug 20, 2008 at 3:44 AM, dapper <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi there,
>
> > > > > > I am just starting out with android and for my first app after the
> > > > > > tutorial I would like to display a Map. I have basically taken the
> > > > > > Sample code and put it into my own project. However I only seem to 
> > > > > > get
> > > > > > the grey grid and no map. Can anyone help (banging my head here). I 
> > > > > > am
> > > > > > using 0.9.
>
> > > > > > I know it is something stupid but can't see it.
>
> > > > > > Thanks
>
> > > > > > This is my main.xml
>
> > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> > > > > > android"
> > > > > >        android:layout_width="fill_parent"
> > > > > >    android:layout_height="fill_parent">
> > > > > >    <com.google.android.maps.MapView
> > > > > >        android:id="@+id/map"
> > > > > >        android:layout_width="fill_parent"
> > > > > >        android:layout_height="fill_parent"
> > > > > >        android:enabled="true"
> > > > > >        android:clickable="true"
> > > > > >        android:apiKey="mymapkey"
> > > > > >        />
> > > > > > </LinearLayout>
>
> > > > > > My code
>
> > > > > > public class HotelCompanion extends MapActivity {
>
> > > > > >        MapView mMapView;
>
> > > > > >   [EMAIL PROTECTED]
> > > > > >    public void onCreate(Bundle savedInstanceState) {
> > > > > >        super.onCreate(savedInstanceState);
> > > > > >        setContentView(R.layout.main);
> > > > > >        MapView map = (MapView) findViewById(R.id.map);
> > > > > >        MapController mc = map.getController();
> > > > > >        mc.setZoom(9);
> > > > > >    }
>
> > > > > >       [EMAIL PROTECTED]
> > > > > >        protected boolean isRouteDisplayed() {
> > > > > >                return false;
> > > > > >        }
> > > > > > }
>
> > > > > > and my manifest
>
> > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> > > > > >    package="dharmesh.android.hotel">
> > > > > >    <application android:icon="@drawable/icon" 
> > > > > > android:label="@string/
> > > > > > app_name">
> > > > > >    <uses-library android:name="com.google.android.maps" />
>
> > > > > >    <uses-permission
> > > > > > android:name="android.permission.ACCESS_COARSE_LOCATION" />
> > > > > >    <uses-permission android:name="android.permission.INTERNET" />
>
> > > > > >        <activity android:name=".HotelCompanion"
> > > > > > 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>
> > > > > > </manifest>
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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