ActivityLauncher icon indicating copy to clipboard operation
ActivityLauncher copied to clipboard

Support `setData()`

Open opk12 opened this issue 2 years ago • 1 comments

I want to work around a Matrix Element bug in making shortcuts; I want to choose a custom icon for a shortcut to Firefox Fennec.

I can do both with this app, if it lets me setData() to a custom URI (and supports custom icons per #153).

// im.vector.app.features.link.LinkHandlerActivity - mozilla.components.feature.pwa.WebAppLauncherActivity
Intent intent = new Intent();
intent.setClassName(packageName, activityName);
intent.setData(android.net.Uri.parse(permalink));
ctx.startActivity(intent);

opk12 avatar Apr 14 '22 13:04 opk12

// im.vector.app.features.link.LinkHandlerActivity - mozilla.components.feature.pwa.WebAppLauncherActivity Intent intent = new Intent(); intent.setClassName(packageName, activityName); intent.setData(android.net.Uri.parse(permalink)); ctx.startActivity(intent);

chityin222 avatar Nov 27 '23 01:11 chityin222