ActivityLauncher
ActivityLauncher copied to clipboard
Support `setData()`
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);
// 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);