Porting 1.0 to 1.5, Street view intent (also broken in Google Maps)

by JP » Thu, 30 Apr 2009 10:09:51 GMT


Sponsored Links
 id I say in an earlier post everything checks out porting from 1.0 to
1.5? Correction. Invoking the Street View activity crashes in the
emulator. Both in ported app and Google Maps app (there by clicking on
an address bubble) Stack dump:

04-30 02:00:27.757: ERROR/AndroidRuntime(665): Uncaught handler:
thread main exiting due to uncaught exception
04-30 02:00:27.785: ERROR/AndroidRuntime(665):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.VIEW
data=google.streetview:cbll=47.625476,-122.356021&cbp=1,268.72,,0,0&mz=17 }
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.app.Instrumentation.checkStartActivityResult
(Instrumentation.java:1484)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:
1454)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.app.Activity.startActivityForResult(Activity.java:2656)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.app.Activity.startActivity(Activity.java:2700)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.google.android.maps.StreetViewOverlay.startStreetViewActivity
(StreetViewOverlay.java:697)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.google.android.maps.StreetViewOverlay.startStreetView
(StreetViewOverlay.java:686)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.google.android.maps.StreetViewOverlay.access$1200
(StreetViewOverlay.java:55)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.google.android.maps.StreetViewOverlay$5.onClick
(StreetViewOverlay.java:201)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.View.performClick(View.java:2179)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.View.onTouchEvent(View.java:3828)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.View.dispatchTouchEvent(View.java:3368)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1707)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1197)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.app.Activity.dispatchTouchEvent(Activity.java:1993)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.os.Handler.dispatchMessage(Handler.java:99)
04-30 02:00:27.785: ERROR/AndroidRuntime(665): at
android.os.Looper.loop(Looper.java:123)
04-30 02:00:27.785:



Other Threads

1. Reading back one of my own parcelables?

Hi,

I implemented Parcelable on two of my classes, and one class contains
instances of the other. I'm not sure how to read them back in. Here's
an example:

   public class Farm implements Parcelable {
       ArrayList<Horse> mHorses; // Horse implements parcelable too.

      @Override
      public void writeToParcel(Parcel out, int flags) {
          out.writeInt(mHorses.size());
          for (Horse it : mHorses) {
              out.writeParcelable(it, flags);
          }
      }

      private Farm(Parcel in) {
          mHorses = new ArrayList<Horse>();

          int numHorses = in.readInt();
          for (int i = 0; i < numHorses; i++) {
              Horse horse = Horse.CREATOR.createFromParcel(in);
              mHorses.add(horse);
          }
      }
}

Is the way I'm reading them back in correct?

Thanks

-- 

2. to get/generate nonce. error in random, getBytes Options



There has not been a getBytes() method on Random or SecureRandom going
back at least to Java 1.4.2, and perhaps earlier. I suggest you find a
better sample of using SecureRandom -- that forum post is incorrect.

I would recommend you consider posting on StackOverflow, with the #java tag.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in NYC: 1-2 May 2010: http://guruloft.com

-- 

3. Google Checkout Order System Not Updating

4. Why can't I post

5. Creating DEMO and FULL versions

6. Android, send me logs! - code library for detecting force-close and sending logs

7. Display images