2010-11-22 5 views
0

응용 프로그램 아이콘을 클릭하는 동안 (즉, 응용 프로그램을 시작할 때) 암호를 묻는 응용 프로그램이 있습니다. 그런 다음 UiApplication.getUiApplication()을 설정했습니다. requestBackground(); 여기서 응용 프로그램은 백그라운드에서 실행됩니다.응용 프로그램이 백그라운드에서 실행 중인지 여부를 식별하는 방법

이제 응용 프로그램에 다시 들어가면 암호를 묻습니다.

도움말 pl.

안부

, Sampath

답변

0

나는 당신이 Application.activate() 방법에 관심이있을 수 있습니다 생각 :

public void activate() 

// Handles foregrounding event. 

// The system invokes this method when it brings this application 
// to the foreground. By default, this method does nothing. 
// Override this method to perform additional processing 
// when being brought to the foreground. 

UiApplicationApplication를 확장 그래서이 방법은 또한 UiApplication 서브 클래스에서 사용할 수 있습니다.

관련 문제