-1
A
답변
1
음. 소스 코드가 UserManager.java
인 경우이 메소드를 찾을 수 있습니다. Hovewer, android.permission.MANAGE_USERS
이 필요합니다.
MANAGE_USERS
은 응용 프로그램이 플랫폼 키로 서명되어야 함을 의미하는 서명 시스템의 보호 수준을 갖습니다.
/**
* Returns information for all users on this device.
* Requires {@link android.Manifest.permission#MANAGE_USERS} permission.
* @return the list of users that were created.
* @hide
*/
public List<UserInfo> getUsers() {
try {
return mService.getUsers(false);
} catch (RemoteException re) {
Log.w(TAG, "Could not get user list", re);
return null;
}
}
/**
* Returns information for all users on this device.
* Requires {@link android.Manifest.permission#MANAGE_USERS} permission.
* @param excludeDying specify if the list should exclude users being removed.
* @return the list of users that were created.
* @hide
*/
public List<UserInfo> getUsers(boolean excludeDying) {
try {
return mService.getUsers(excludeDying);
} catch (RemoteException re) {
Log.w(TAG, "Could not get user list", re);
return null;
}
}
+0
감사합니다. Gabriele ... 알았어요. – Jey
관련 문제
- 1. 안드로이드에서 사용자 위치 얻기
- 2. 안드로이드에서 pdf의 경로 얻기
- 3. 안드로이드에서 홈 버튼을 사용하지 못함 4.2
- 4. Azure AD - 여러 AAD에서 사용자 목록 얻기
- 5. 안드로이드에서 사용자 데이터 디렉토리 4.3
- 6. Laravel 4.2 사용자 역할 보안
- 7. TableLayout 안드로이드에서 TextView의 위치 얻기
- 8. 안드로이드에서 내 클래스가있는 경로 얻기
- 9. 안드로이드에서 사용자의 Gmail ID 얻기
- 10. 안드로이드에서 핸드폰을 향한 위치 얻기
- 11. 안드로이드에서 신호 강도 목록 얻기
- 12. 안드로이드에서 외부 의도에서 결과 얻기
- 13. 안드로이드에서 현재 손가락 위치 얻기
- 14. 안드로이드에서 잠자기 상태에서 화면을 유지할 수 없습니다. 4.2
- 15. 4.2
- 16. 4.2
- 17. 4.2
- 18. 사용자 정의 필드가 저장되는 탭의 이름 얻기
- 19. 안드로이드에서 여러 이미지 저장
- 20. 안드로이드에서 여러 데이터베이스 만들기
- 21. 안드로이드에서 여러 경로 그리기
- 22. 여러 트랙을 안드로이드에서 동기화
- 23. 안드로이드에서 여러 메시지 보내기
- 24. 여러 화면을 안드로이드에서 지원합니다.
- 25. EF 4.2 DbContext IEntityChangeTracker의 여러 인스턴스 문제
- 26. 여러 줄 도구 모음 Ext JS 4.2
- 27. 안드로이드에서 둥근 모서리가있는 사용자 정의보기
- 28. XCode 4.2 사용자 지정 템플릿 만들기?
- 29. Laravel 4.2 사용자 정의 테이블 이름과의 관계가
- 30. 업데이트 사용자 아바타 프로필 Laravel 4.2
무엇을 의미합니까? –
여러 사용자가 안드로이드 4.2와 함께 제공되는 새로운 기능입니다. 그래서 우리는 Windows OS에서하는 것처럼 하나 이상의 사용자 계정을 가질 수 있습니다. 그래서 나는 장치에 구성된 사용자 목록을 얻고 싶었습니다. http://developer.android.com/about/versions/android-4.2 .html – Jey