Icon pack integration for Win-X Launcher
Let users apply your icon pack from your Android dashboard.
Use the same Apply action for Standard, Ultimate, and Foldables. Check whether the installed edition handles it so your dashboard also works with older builds.
Launcher package IDs
Pass the chosen edition’s application ID to Intent.setPackage(). Use the exact capitalization shown.
Direct Apply is planned to become available starting with the versions below. Check whether the intent resolves on the user’s device before offering Direct Apply, including during the rollout.
| Edition | Application ID | Planned first supported version |
|---|---|---|
| Win-X Launcher (Standard) | com.InternityLabs.Launcher.WinX | 34.1 |
| Win-X Launcher Ultimate | com.InternityLabs.Launcher.WinX.Ultimate | 11.7 |
| Win-X Launcher for Foldables | com.InternityLabs.Launcher.WinX.Foldables | 11.7 |
Apply intent
- Action
com.InternityLabs.Launcher.WinX.intent.action.APPLY_ICON_PACK- Required String extra
com.InternityLabs.Launcher.WinX.intent.extra.ICON_PACK_PACKAGE- Extra value
- Your installed icon pack app’s application ID, typically
getPackageName()in its dashboard activity.
Win-X shows its confirmation over the dashboard. RESULT_OK means the requested pack is selected and returns its package ID in the same String extra. RESULT_CANCELED covers dismissal, an invalid pack, or an unsuccessful apply. Keep the dashboard’s existing status when the request is canceled.
Apply an icon pack manually
You can show these steps in your dashboard for any Win-X edition when Direct Apply is unavailable.
- Install the icon pack on the same device as Win-X Launcher.
- Open the Win-X Launcher edition you use.
- Open Start → Personalize → Icon packs.
- Select the icon pack by name, then confirm the launcher restart if prompted.
Integrate your dashboard
- Declare package visibility. Add these entries under
<manifest>for package lookup on Android 11 and later. Merge the package entries into an existing<queries>element if you have one. - Check support for that edition. Build the intent with the action and target package, then call
PackageManager.resolveActivity()withMATCH_DEFAULT_ONLY. The lookup only checks Android’s registered activities. Use the result to choose which button or instructions to show. - Launch on the user’s tap. If the action resolves, add the pack package extra and launch the activity for a result. Handle a launch failure in case the launcher changes after the lookup.
- Offer manual setup if needed. Show the instructions in your dashboard if the intent doesn’t resolve for the selected edition or if the activity fails to launch.
Manifest entries
<queries>
<package android:name="com.InternityLabs.Launcher.WinX" />
<package android:name="com.InternityLabs.Launcher.WinX.Ultimate" />
<package android:name="com.InternityLabs.Launcher.WinX.Foldables" />
</queries>
For Win-X to list your pack, keep a supported icon-pack activity filter and usable appfilter.xml mappings with matching drawables. For example, Win-X recognizes the org.adw.launcher.THEMES action declared by a pack activity.
Copyable Java example
Save this as WinXIconPackExampleActivity.java under com/example/iconpack/integration in your icon pack app. The package declared in this Java file is just its source namespace. The request reads the actual app ID from Android.
Add the manifest queries above and register this sample inside your app’s <application>. To try it from your dashboard activity, import com.example.iconpack.integration.WinXIconPackExampleActivity and call startActivity(new Intent(this, WinXIconPackExampleActivity.class)). If you already have an Apply screen, you can reuse the lookup, launch, and result logic there.
<activity
android:name="com.example.iconpack.integration.WinXIconPackExampleActivity"
android:exported="false" />
package com.example.iconpack.integration;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
@SuppressWarnings("deprecation") // Framework activity results keep this example dependency-free.
public final class WinXIconPackExampleActivity extends Activity {
private static final String ACTION =
"com.InternityLabs.Launcher.WinX.intent.action.APPLY_ICON_PACK";
private static final String PACK_EXTRA =
"com.InternityLabs.Launcher.WinX.intent.extra.ICON_PACK_PACKAGE";
private static final String STANDARD = "com.InternityLabs.Launcher.WinX";
private static final String ULTIMATE = "com.InternityLabs.Launcher.WinX.Ultimate";
private static final String FOLDABLES = "com.InternityLabs.Launcher.WinX.Foldables";
private static final int APPLY_REQUEST = 100;
private TextView status;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
LinearLayout content = new LinearLayout(this);
content.setOrientation(LinearLayout.VERTICAL);
addEdition(content, "Standard", STANDARD);
addEdition(content, "Ultimate", ULTIMATE);
addEdition(content, "Foldables", FOLDABLES);
status = new TextView(this);
content.addView(status);
ScrollView scroll = new ScrollView(this);
scroll.addView(content);
setContentView(scroll);
}
private void addEdition(LinearLayout content, String name, String launcherPackage) {
Button button = new Button(this);
boolean supported = resolves(newApplyIntent(launcherPackage));
button.setText(supported ? "Apply to " + name : "Manual setup for " + name);
button.setOnClickListener(view -> applyTo(launcherPackage));
content.addView(button);
}
private Intent newApplyIntent(String launcherPackage) {
return new Intent(ACTION).setPackage(launcherPackage);
}
private boolean resolves(Intent intent) {
return getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY)
!= null;
}
private void applyTo(String launcherPackage) {
Intent request = newApplyIntent(launcherPackage);
if (resolves(request)) {
request.putExtra(PACK_EXTRA, getPackageName());
try {
startActivityForResult(request, APPLY_REQUEST);
return;
} catch (ActivityNotFoundException | SecurityException unavailable) {
// The launcher may have changed since the lookup.
}
}
new AlertDialog.Builder(this)
.setTitle("Apply the icon pack manually")
.setMessage("Open the Win-X edition you use, then go to Start → Personalize "
+ "→ Icon packs, select this pack, and confirm a restart if prompted.")
.setPositiveButton(android.R.string.ok, null)
.show();
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == APPLY_REQUEST && resultCode == RESULT_OK && data != null) {
String appliedPack = data.getStringExtra(PACK_EXTRA);
if (getPackageName().equals(appliedPack)) {
status.setText("Applied " + appliedPack);
}
}
}
}
The example uses framework activity results for easy copying. If your app already uses AndroidX, you can send the same intent with ActivityResultContracts.StartActivityForResult. Android activity results documentation.