English 中文(简体)
在《土著权利法》申请本身存在之后,我能否保留一份《土著权利法》?
原标题:Can I keep an AIR NativeProcess running after the AIR application itself exists?
  • 时间:2011-10-17 19:10:36
  •  标签:
  • air

我的需要很简单——我希望从我的AIR申请中启动外部应用,使外部应用在AIR申请本身退出时运作。

The scenario is an "Install" button inside the application, that launches the 3rd party installer - the AIR application needs to close during this process.

我实际上发射土著文物的守则是罚款、程序发射和使用。 然而,如果用户手工关闭AIR应用系统,或者如果我在通过行动文本启动外部程序之后试图关闭AIR应用程序,则外部应用几乎立即存在。

Some example code:

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = File.applicationDirectory.resolvePath("My Great Application");
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);

// Either one of the two calls following will fail with the same result
NativeApplication.nativeApplication.exit()
this.nativeWindow.close();

我也尝试了另一种做法,即利用某种代理,在AIR申请存在之后,保持外部应用的开放。 在Mac,使用<代码>/usr/bin/open的Im,/usr/bin/open的Im, 开放外部应用,并在AIR申请出现后离开,然而,终端窗口正在采用这种办法的屏幕上,而且两者都是不能接受的。

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = new File("/usr/bin/open");
var args:Vector.<String> = new Vector.<String>();
args.push(file.nativePath);
nativeProcessStartupInfo.arguments = args;
var process:NativeProcess = new NativeProcess();
process.start(nativeProcessStartupInfo);

对这一问题有何看法? 我只想直接启动外部应用,而不是使用代理,因为这将缩小部署平台之间的复杂程度。

问题回答

如何尽量减少适用?

NativeApplication.nativeApplication.activeWindow.minimize();




相关问题
Can an AIR application access its own digital signature?

All AIR installation files must be digitally signed (http://help.adobe.com/...). Is there a way for an AIR application to access this signature information at runtime? Say, I m distributing client-...

What are the best development tools to use in this project?

I am currently devising 3 database desktop applications for different users in a manufacturing company (one for the accounting department, sales department, production department). All applications ...

Authenticating and tracking users in a JSON webservice

I have contact management / CRM application used in-house by our company, It is a web based app and thus uses a lot of Ajax. Most of the data is JSON, and the backend server uses PHP with MySQL as the ...

Adobe AIR: detect en_GB locale

Is there a way to detect if the user is running the AIR application under en_GB locale on Windows? Capabilities.language returns only "en" and Capabilities.languages[0] returns "en_US" :(

AIR评估业绩缓慢的原因?

我试图用Windows XP(SP3)Adobe AIR的表现来缓解一个奇怪的问题。 我们从遥远的服务器到当地QLQ数据库的同yn数据,以及某些机器的数据,这一过程需要......。

xmlHttpRequest and returned url

With help of xmlHttpRequest I make a server query. After that the server is redirecting to another page (e.g. "http://site.com/index.html;var=123") The question is - how can I get full url(side.com/...

热门标签