adt:android-fold-adapter

Diagnose and fix Android foldable device configuration and state issues.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/adzcsx2/dev-tools-skills --skill adt-android-fold-adapter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adt:android-fold-adapter
Source: https://github.com/adzcsx2/dev-tools-skills/tree/main/skills/android-fold-adapter
Command: npx skills add https://github.com/adzcsx2/dev-tools-skills --skill adt-android-fold-adapter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill quickly identifies and resolves common Android foldable screen problems such as UI issues, state loss, and configuration changes, improving the user experience on foldable devices.

Core Features & Use Cases

  • Diagnostic Reports: Analyze fold/unfold event-related configuration changes, activity reconstruction, and state preservation.
  • Problem Fixing: Apply fix patterns like Manifest configuration changes, state saving and restoration, and fragment reference repair.
  • Quick Support: Use simple, direct commands to check and solve foldable screen problems efficiently.

Quick Start

Analyze the foldable screen issue on the current page by typing '/adt:android-fold-adapter "问题描述"'.

Frequently Asked Questions about adt:android-fold-adapter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Android activity reconstruction issues on foldable devices?

Fix Android activity reconstruction on foldable devices by applying specific AndroidManifest.xml configuration changes, preserving state, and repairing fragment references during fold and unfold events.

Why does my Android app lose UI state when folding and unfolding the screen?

Android apps lose UI state during screen folding due to unhandled configuration changes. Diagnose and resolve state loss by applying state saving techniques and managing configuration change events properly.

What is the best way to handle configuration changes for Android foldable screen adaptation?

The best way to handle foldable screen configuration changes is declaring specific configurations in AndroidManifest.xml and implementing state restoration to prevent activity reconstruction and fragment reference loss.

How do I diagnose UI issues caused by fold and unfold events in my Android application?

Diagnose fold and unfold UI issues by analyzing diagnostic reports that check activity reconstruction, state preservation, and configuration management to identify the root cause of the problem.

Do I need to update AndroidManifest.xml to prevent state loss on foldable devices?

Yes, updating AndroidManifest.xml with specific configuration changes is required to prevent state loss, manage activity reconstruction, and maintain fragment references on foldable devices.