I have created a LiveFolder which displays a few lineitems and I am
trying to supply my own intents to each individual line item to be
started when they are selected.  I am doing this by inserting them
into the column "INTENT" of a MatrixCursor in my ContentProvider
class.

I created another application all together, and executed the following
as a test:

Intent launch = new Intent(Intent.ACTION_MAIN);
launch.setClassName("com.example.package",
"com.example.package.SomeActivity");
startActivity(launch);

which started the other application's activity as expected, and
logcat's output was as follows:
ActivityManager  I  Starting activity: Intent
{ act=android.intent.action.MAIN
cmp=com.example.package/.SomeActivity }

However, when using the same Intent object as above, a Toast is
displayed with the message "Application is not installed on your
phone."

What is interesting is that Logcat's output differs from the test case
as follows:

  563         ActivityManager  I  Starting activity: Intent
{ act=android.intent.action.VIEW dat=Intent
{ act=android.intent.action.MAIN
cmp=com.example.package/.SomeActivity } flg=0x10000000 }
  563     NotificationService  I  enqueueToast
pkg=com.android.launcher callback=android.app.ITransientNotification
$stub$pr...@43918d10 duration=0

I'm not sure that the original intent being wrapped in this other
intent since it is invoked by the LiveFolder in this way is the
cause ...

If anybody has a solution, sample or workaround for this issue it
would be greatly appreciated

Cheers,

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

Reply via email to