Hi everybody,
I am trying to call another activity using the method
StartSubActivity(action, URI).
The reason that I am calling the method with URI instead of direct
class is because I am using content provider and I don't want to pass
additional data using bundle (at least, I hope so).
However, when I run the application it returns error "No activity
found to handle Intent".
It seems that the intent is not defined correctly (probably in the
manifest.xml file), but i couldn't find the problem.
Does anyone know what is the problem?
Did anyone succeeded in starting sub activity using URI?
The full error text is: "An error occurred in com.test.Cashdroid. No
actvity found to handle Intent { action=android.intent.action.INSERT
data=content://com.test.Cashdroid/BudgetPlans }.
The mainfest.xml code:
XML:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.Cashdroid">
<application android:icon="@drawable/icon">
<activity android:name=".BudgetPlans" android:label="@string/
app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category
android:name="android.intent.category.LAUNCHER" />
<type android:value="vnd.android.cursor.dir/
com.test.Cashdroid.BudgetPlans" />
</intent-filter>
</activity>
<activity android:name=".BudgetPlan" android:label="@string/
app_name">
<intent-filter>
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.INSERT" /
>
<category
android:name="android.intent.category.DEFAULT" />
<type android:value="vnd.android.cursor.item/
com.test.Cashdroid.BudgetPlans" />
</intent-filter>
</activity>
</application>
</manifest>
Thanks in advance,
Shai
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---