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. Application Crashed

Hi,

My application sometimes crashed silently and not restarted
automatically, it seems happen when switching between activities too
quickly ( start child activity which starts another child activity
then finish both). From the log it saids low memory and stop other
background processes. However, my application only have a small cache
and 3 activities. Anyone knows what is the problem and how to resolve
it?

06-18 00:33:02.546: INFO/NotificationService(75): enqueueToast
pkg=com.imperial.android.heyer
callback=android.app.itransientnotification$stub$pr...@43642f50
duration=0
06-18 00:33:03.236: DEBUG/dalvikvm(31814): GC freed 1813 objects /
414288 bytes in 368ms
06-18 00:33:03.656: INFO/HTCIMEService(228): [finishInput]:
06-18 00:33:03.656: INFO/XT9IME(228): [finishInput]
06-18 00:33:03.656: INFO/HTCIMEService(228): [setWCLText]: wclText=,
candIdx=0
06-18 00:33:03.706: INFO/HTCIMEService(228): [onUpdateCursor]:
cursor=Rect(68, 97 - 68, 123)
06-18 00:33:04.486: INFO/DEBUG(30): *** *** *** *** *** *** *** ***
*** *** *** *** *** *** *** ***
06-18 00:33:04.486: INFO/DEBUG(30): Build fingerprint: 'tmobile/kila/
dream/trout:1.1/PLAT-RC33/126986:user/ota-rel-keys,release-keys'
06-18 00:33:04.496: INFO/DEBUG(30): pid: 31814, tid: 31843  >>>
com.imperial.android.heyer <<<
06-18 00:33:04.496: INFO/DEBUG(30): signal 11 (SIGSEGV), fault addr
00000000
06-18 00:33:04.496: INFO/DEBUG(30):  r0 00000007  r1 411a1d98  r2
411a1d98  r3 00000000
06-18 00:33:04.496: INFO/DEBUG(30):  r4 411a1d98  r5 00149cd8  r6
00000000  r7 44a86ca4
06-18 00:33:04.496: INFO/DEBUG(30):  r8 44a86da0  r9 41046e54  10
41046e40  fp 00000001
06-18 00:33:04.496: INFO/DEBUG(30):  ip 00000011  sp 44a86c68  lr
ad046e4d  pc ad03fef2  cpsr 00000030
06-18 00:33:05.866: INFO/DEBUG(30):          #00  pc 0003fef2  /system/
lib/libdvm.so
06-18 00:33:05.926: INFO/DEBUG(30):          #01  pc 001f4c82  /system/
lib/libwebcore.so
06-18 00:33:05.936: INFO/DEBUG(30):          #02  pc 00262866  /system/
lib/libwebcore.so
06-18 00:33:05.976: INFO/DEBUG(30):          #03  pc 000db2b4  /system/
lib/libwebcore.so
06-18 00:33:05.976: INFO/DEBUG(30):          #04  pc 000ed398  /system/
lib/libwebcore.so
06-18 00:33:05.986: INFO/DEBUG(30):          #05  pc 000e04bc  /system/
lib/libwebcore.so
06-18 00:33:05.996: INFO/DEBUG(30):          #06  pc 00189268  /system/
lib/libwebcore.so
06-18 00:33:05.996: INFO/DEBUG(30):          #07  pc 001893e4  /system/
lib/libwebcore.so
06-18 00:33:05.996: INFO/DEBUG(30):          #08  pc 00189410  /system/
lib/libwebcore.so
06-18 00:33:06.006: INFO/DEBUG(30):          #09  pc 0025b96c  /system/
lib/libwebcore.so
06-18 00:33:06.006: INFO/DEBUG(30):          #10  pc 0000e3b4  /system/
lib/libdvm.so
06-18 00:33:06.006: INFO/DEBUG(30):          #11  pc 00040a8a  /system/
lib/libdvm.so
06-18 00:33:06.016: INFO/DEBUG(30):          #12  pc 00013118  /system/
lib/libdvm.so
06-18 00:33:06.026: INFO/DEBUG(30):          #13  pc 00017b1c  /system/
lib/libdvm.so
06-18 00:33:06.026: INFO/DEBUG(30):          #14  pc 00017560  /system/
lib/libdvm.so
06-18 00:33:06.036: INFO/DEBUG(30):          #15  pc 00052294  /system/
lib/libdvm.so
06-18 00:33:06.036: INFO/DEBUG(30):          #16  pc 000522b2  /system/
lib/libdvm.so
06-18 00:33:06.046: INFO/DEBUG(30):          #17  pc 000472ec  /system/
lib/libdvm.so
06-18 00:33:06.057: INFO/DEBUG(30):          #18  pc 0000f880  /system/
lib/libc.so
06-18 00:33:06.057: INFO/DEBUG(30):          #19  pc 0000f3f4  /system/
lib/libc.so
06-18 00:33:06.066: INFO/DEBUG(30): stack:
06-18 00:33:06.066: INFO/DEBUG(30):     44a86c28  44a86c60
06-18 00:33:06.066: INFO/DEBUG(30):     44a86c2c  00149cd8  [heap]
06-18 00:33:06.066: INFO/DEBUG(30):     44a86c30  418272cd
06-18 00:33:06.066: INFO/DEBUG(30):     44a86c34  418272ce
06-18 00:33:06.076: INFO/DEBUG(30):     44a86c38  00149cd8  [heap]
06-18 00:33:06.076: INFO/DEBUG(30):     44a86c3c  00000001
06-18 00:33:06.076: INFO/DEBUG(30):     44a86c40  00000007
06-18 00:33:06.076: INFO/DEBUG(30):     44a86c44  4106c978
06-18 00:33:06.076: INFO/DEBUG(30):     44a86c48  00149cd8  [heap]
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c4c  00000001
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c50  00000007
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c54  ad046e4d  /system/
lib/libdvm.so
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c58  411a1d98
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c5c  00149cd8  [heap]
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c60  df002777
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c64  e3a070ad
06-18 00:33:06.086: INFO/DEBUG(30): #00 44a86c68  00002bb0
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c6c  ad040729  /system/
lib/libdvm.so
06-18 00:33:06.086: INFO/DEBUG(30):     44a86c70  44a86cb0
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c74  0018b168  [heap]
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c78  aa3de5c8
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c7c  ad03fedd  /system/
lib/libdvm.so
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c80  aa1f4c6d  /system/
lib/libwebcore.so
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c84  0018b168  [heap]
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c88  00000000
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c8c  aa1f4c85  /system/
lib/libwebcore.so
06-18 00:33:06.096: INFO/DEBUG(30): #01 44a86c90  4106c978
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c94  44a86ca4
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c98  ffe166a5
06-18 00:33:06.096: INFO/DEBUG(30):     44a86c9c  aa262869  /system/
lib/libwebcore.so
06-18 00:33:06.096: INFO/DEBUG(30):     44a86ca0  411a1d98
06-18 00:33:06.096: INFO/DEBUG(30):     44a86ca4  00000000
06-18 00:33:08.726: INFO/ActivityManager(75): Process
com.imperial.android.heyer (pid 31814) has died.
06-18 00:33:08.736: INFO/WindowManager(75): WIN DEATH: Window{437f0918
com.imperial.android.heyer/com.imperial.android.heyer.GSDe{*filter*}
paused=false}
06-18 00:33:08.746: DEBUG/Zygote(32): Process 31814 terminated by
signal (11)
06-18 00:33:08.806: INFO/ActivityManager(75): Low Memory: No more
background processes.
06-18 00:33:09.346: DEBUG/dalvikvm(228): GC freed 158 objects / 5784
bytes in 534ms
06-18 00:33:09.396: ERROR/com.meebo.service.Session(434): onLowMemory
()
06-18 00:33:09.476: DEBUG/dalvikvm(75): GC freed 5490 objects / 258504
bytes in 662ms
06-18 00:33:10.136: DEBUG/dalvikvm(434): GC freed 938 objects / 62152
bytes in 737ms
06-18 00:33:10.206: INFO/dalvikvm(434): Uncaught exception thrown by
finalizer (will be discarded):
06-18 00:33:10.216: INFO/dalvikvm(434): Ljava/lang/
IllegalStateException;: Finalizing cursor
android.database.sqlite.sqlitecur...@435bfba8 on accounts that has not
been deactivated or closed
06-18 00:33:10.246: DEBUG/dalvikvm(21107): GC freed 264 objects /
11296 bytes in 819ms
06-18 00:33:10.276: INFO/dalvikvm(434):     at
android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:601)
06-18 00:33:10.286: INFO/dalvikvm(434):     at
dalvik.system.NativeStart.run(Native Method)
06-18 00:33:10.326: DEBUG/dalvikvm(20693): GC freed 46 objects / 2200
bytes in 739ms
06-18 00:33:10.336: DEBUG/dalvikvm(124): GC freed 53 objects / 1576
bytes in 946ms
06-18 00:33:10.356: WARN/InputManagerService(75): Got RemoteException
sending setActive(false) notification to pid 31814 uid 10033
06-18 00:33:10.426: DEBUG/dalvikvm(20503): GC freed 11 objects / 440
bytes in 1040ms

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

2. how to incude include static files(.a) in android jni application?

You need to generate a shared library, not a static one, to be able to use
native code with JNI.

May I recommend you to download and use the Android NDK to do that?





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

3. Testing Power state - Question?

4. how to modify the power manager code

5. create Google map pushpins

6. items can't be selected (or highlighted)

7. Heap size overflow after I loaded audio file in SoundPool!!