1

画像を開いてフルスクリーンで表示したいのでContentHandler、次のコードを使用して、選択した画像をフルスクリーンで表示しました

Invocation invocation = new Invocation(imageFilePath);  
invocation.setAction(ContentHandler.ACTION_OPEN);
Registry _registry = Registry .getRegistry(mypackagename.myuiapplication);
_registry.invoke(invocation);

上記のコードは完全に機能します。しかし、フルスクリーンで画像を表示してアプリケーションを終了すると。しかし、私のアプリケーションはそれ自体を再開します。

アプリケーションがこのような有線動作を示すのはなぜですか?

4

1 に答える 1

1

解決策が得られたことを願っています。アプリケーションは Invocation の応答を待ちます。解決策は次のとおりです。

Invocation invocation = new Invocation(imageFilePath);  
invocation.setAction(ContentHandler.ACTION_OPEN);
Registry _registry = Registry .getRegistry(mypackagename.myuiapplication);
_registry.setListener(responseListener);
registry.cancelGetResponse();
_registry.invoke(invocation);


private ResponseListener responseListener = new ResponseListener() {

    public void invocationResponseNotify(Registry registry) {
        registry.getResponse(false);
    }
};
于 2014-04-25T13:20:22.783 に答える