2010-11-22 4 views
0

Ich habe eine Anwendung, die das Passwort beim Klicken auf das Anwendungssymbol (dh während der Eingabe der Anwendung) fragen. Dann habe ich UiApplication.getUiApplication() gesetzt. RequestBackground(); wo Anwendung im Hintergrund ausgeführt wird.Wie identifiziert man, ob die Anwendung im Hintergrund läuft oder nicht?

Jetzt, wenn ich wieder in die Anwendung eintrage bedeutet es habe Passwort gefragt.

Hilf mir pl.

Mit Grüßen, Sampath

Antwort

0

Ich glaube, Sie in der Application.activate() Methode interessieren:

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. 

Die UiApplication verläuft Application so dass diese Methode auch in Ihrer UiApplication Unterklasse zur Verfügung steht.

Verwandte Themen