In my desperation, trying to get LiveFolders to work, I tried the following in my own LiveFolder ContentProvider:
public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
MatrixCursor mc = new MatrixCursor(new String[] { LiveFolders._ID, LiveFolders.NAME, LiveFolders.INTENT } );
Intent i = null;
for (int j=0; j < 5; j++) {
i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com/"));
mc.addRow(new Object[] { j, "hello", i} );
}
return mc;
}
Which, in any case, should launch a browser and display the Google homepage when you click on an item in LiveFolder. But this is not so. He gives an error Application is not installed on your phone. No, I do not define the underlying intention for my LiveFolder.
logcat He speaks:
I/ActivityManager( 74): Starting activity: Intent { act=android.intent.action.VIEW dat=Intent { act=android.intent.action.VIEW dat=http://www.google.com/ } flg=0x10000000 }
It seems that it is inserting Intent, I give it in the section dataactually running Intent. Why is he doing this? I am really starting to believe this is a platform bug.
: LiveFolders. , , , . , , .
: , 3 . ?:)
04/25/2010: Android . , - , , , .