movePackage
공개 추상 무효 movePackage (문자열 여기서 packageName은, android.content.pm.IPackageMoveObserver 관찰자, INT 플래그)
Attempts to move package resources from internal to external media or vice versa. Since this may take a little while, the result will be posted back to the given observer. This call may fail if the calling context lacks the Manifest.permission.MOVE_PACKAGE permission, if the named package cannot be found, or if the named package is a "system package".
Parameters:
packageName - The name of the package to delete
observer - An observer callback to get notified when the package move is complete. android.content.pm.IPackageMoveObserver#packageMoved(boolean) will be called when that happens. observer may be null to indicate that no callback is desired.
flags - To indicate install location MOVE_INTERNAL or MOVE_EXTERNAL_MEDIA
왜이 방법을 액세스 할 않는다 ? 유스 케이스가 보이지 않으며 패키지를 이동할 수 있어야한다고 생각하지 않습니다. 그것은 OS가 돌봐야 만하는 것처럼 보입니다. –
앱을 대량으로 SD 카드에 옮기고 싶습니다. 그것은 꽤 오랫동안 나를 괴롭혔습니다. – xandy