ActivityNotFoundException when trying to start another Activity from Preferences via Intent

by Dentharg » Wed, 29 Apr 2009 01:07:48 GMT


Sponsored Links
 Hi!

I've seen this example in API demos:

<PreferenceScreen android:title="@string/title_intent_preference"
android:summary="@string/summary_intent_preference">
  <intent android:action="android.intent.action.VIEW"
android:data=" http://www.android.com " />
</PreferenceScreen>

I'm trying to start another activity I made. I've added it to manifest
however each time I try to get to it from preferences screen I get
ActivityNotFoundException.

How should I define manifest or prefs xml to this activity is started?

Thanks!

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Developer does't see comments on android market from other countries

On Cyrket only comments published by phones with English locale are
visible.





--~--~---------~--~----~------------~-------~--~----~

2. GLSurfaceView Renderer problem

I've been working through some of the OpenGL stuff, but I've hit a bit
of a snag. I'd like to use the RENDERMODE_WHEN_DIRTY renderMode, but
it doesn't seem to recover from an incoming call properly -
onSurfaceCreated() and onSurfaceChanged() are not being called. The
docs say to call onPause() and onResume() at the appropriate times and
I've done that, but still no go.

I put in some debug prints and when RENDERMODE_CONTINUOUSLY is set, it
works fine - in fact, everything works fine either way until the app
is paused and resumed with RENDERMODE_WHEN_DIRTY. I'm really new to
OpenGL, so perhaps there's some black magic I'm missing. Any hints?

I should mention I'm using android-sdk-windows-1.5_r2, jdk1.6.0_14,
with Eclipse version 3.4.2. I've only seen this on the emulator so far
- I don't have a device yet.

--~--~---------~--~----~------------~-------~--~----~

3. PPC based development

4. how to install Android build on a g1

5. GLSurfaceView.Renderer onSurfaceCreated/onSurfaceChanged not called if RENDERMODE_WHEN_DIRTY

6. pressing menu key slows down surfaceview

7. Map problem