Dear all
The streetview snippet below, which was working in prior version is
crashing in Android SDK 1.6. The dev platform is Eclipse on Ubuntu.
I've made minor changes to the URI based on the information at
http://developer.android.com/guide/appendix/g-app-intents.html

TIA

s.b.
------------
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;

public class Street extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse
 
("google.streetview:cbll=40.75859,-73.98509&cbp=1,,180,0&mz=1.0"));
                startActivity(myIntent);
    }
}

--~--~---------~--~----~------------~-------~--~----~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to