I have created a Live Folder which should fire a custom intent when an
item is clicked. The custom intent should be picked up by a Broadcast
receiver which is defined in my androidmanifest.xml file.
The custom intent is created and passed to the live folder using a
matrix cursor.
However when the intent is fired, it appears to be contained as data
within another intent (android.action.VIEW) and a toast displays the
message "application is not installed on your phone".
intent created:
MatrixCursor c;
String[] columnHeadings =
{LiveFolders._ID,LiveFolders.NAME,LiveFolders.DESCRIPTION,LiveFolders.INTENT};
c = new MatrixCursor(columnHeadings);
for(int i=0; i<L.size(); i++){
Intent intent = new Intent();
intent.setAction("com.tubfish.example.START");
intent.putExtra("dataBundle",L.get(i));
Object[] row =
{String.valueOf(i),L.get(i).getString("name"),L.get(i).getString("address"),intent};
c.addRow(row);
}
Intent actually fired:
01-26 23:59:56.633: INFO/ActivityManager(58): Starting activity:
Intent { act=android.intent.action.VIEW dat=Intent
{ act=com.tubfish.example.START (has extras) } flg=0x10000000 }
Is this the correct way to be setting up the intent or am I doing
something wrong?
--
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