让 Adobe Air 在 Android 上隐藏运行

有时候需要Air运行一些功能,但又不需要有界面,要运行的功能又不能用原生service代替。

Air 退出界面方法是(根视图popView已不在起作用)

NativeApplication.nativeApplication.exit();

但是这个方法同时也退出了程序停止运行。

air中是没有什么可用的方法,不过可以借助Android Activity的 moveTaskToBack 方法,Air借助本机扩展ANE(Air Native Extensions)调用原生功能。ANE 使用说明:http://help.adobe.com/zh_CN/air/extensions/index.html

 

public class AS3Function implements FREFunction {

	@Override
	public FREObject call(FREContext airContext, FREObject[] objects) {
                airContext.getActivity().moveTaskToBack(true);
		return null;
	}

}

49 Comments

  1. sex

    You made some decent points there. I looked on the web
    for more information about the issue and found most individuals will go along
    with your views on this web site.

    Reply
  2. Brokers station

    I think everything published was actually
    very reasonable. But, what about this? what if you composed a
    catchier post title? I ain’t saying your information isn’t solid,
    but what if you added a title that makes
    people desire more? I mean 让 Adobe Air 在
    Android 上隐藏运行 – 剑事 Project is kinda plain. You might glance at Yahoo’s front page
    and note how they create news titles to get people interested.

    You might add a related video or a picture or two to get
    readers excited about everything’ve got to say.
    In my opinion, it could bring your website a little bit more interesting.

    Reply
  3. Automotive

    Heya i’m for the first time here. I found this board and I find It really useful & it helped me out much. I hope to give something back and help others like you aided me.

    Reply
  4. pelletant francois

    Now I am ready to do my breakfast, once having my breakfast coming
    over again to read further news.

    Reply
  5. Business Service

    you are actually a excellent webmaster. The website loading pace is amazing. It seems that you are doing any distinctive trick. In addition, The contents are masterpiece. you have performed a fantastic activity in this matter!

    Reply
  6. Business Service

    Unquestionably believe that which you said. Your favorite reason appeared to be on the web the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly do not know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a signal. Will likely be back to get more. Thanks

    Reply
  7. best low light camera under 15000

    Hey There. I found your blog the use of msn. This
    is a very smartly written article. I will be sure to bookmark it
    and come back to learn extra of your helpful information. Thanks for the post.

    I will certainly comeback.

    Reply
  8. FIFA55

    Hello, i believe that i saw you visited my blog thus i got here to return the want?.I’m trying to to find things to improve my web site!I assume
    its good enough to use a few of your ideas!!

    Reply
  9. 장군게임

    바둑이백화점,boss1004.com,바둑이사이트,
    boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,
    boss1004.com,엠엘비게임,boss1004.com,장군게임,
    boss1004.com,MLB게임,바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임
    바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임,바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임
    바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,
    그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,
    boss1004.com,장군게임,boss1004.com,MLB게임,바둑이백화점,boss1004.com,바둑이사이트,
    boss1004.com,임팩트게임,boss1004.com,그랜드게임,
    boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,
    boss1004.com,MLB게임
    바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임,바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,
    boss1004.com,체리게임,boss1004.com,엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임
    바둑이백화점,boss1004.com,바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,
    엠엘비게임,boss1004.com,장군게임,boss1004.com,MLB게임,바둑이백화점,boss1004.com,
    바둑이사이트,boss1004.com,임팩트게임,boss1004.com,그랜드게임,boss1004.com,체리게임,boss1004.com,엠엘비게임,
    boss1004.com,장군게임,boss1004.com,MLB게임

    Reply
  10. Health Education

    Usually I do not learn post on blogs, but I would like to say that this write-up very compelled me to try and do so! Your writing taste has been surprised me. Thank you, quite great post.

    Reply
  11. Legal

    It¡¦s actually a great and helpful piece of information. I am happy that you simply shared this helpful information with us. Please stay us informed like this. Thank you for sharing.

    Reply
  12. Education and Training

    Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a little bit, but other than that, this is great blog. An excellent read. I’ll certainly be back.

    Reply
  13. Travel International

    Somebody essentially help to make critically articles I might state. That is the very first time I frequented your web page and up to now? I amazed with the research you made to make this particular publish incredible. Wonderful task!

    Reply
  14. mp3 Music Downloader

    Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn’t
    show up. Grrrr… well I’m not writing all that over
    again. Anyways, just wanted to say superb blog!

    Reply
  15. Prednisolone pharmacie en ligne

    As the admin of this website is working, no hesitation very shortly it will be renowned,
    due to its quality contents.

    Reply
  16. it outsourcing companies

    Howdy exceptional website! Does running a blog similar to this take a great deal of work? I have very little knowledge of coding however I had been hoping to start my own blog in the near future. Anyway, should you have any ideas or tips for new blog owners please share. I understand this is off subject but I just wanted to ask. Many thanks!

    Reply
  17. xxxxx

    There is definately a lot to learn about this topic. I
    like all the points you’ve made.

    Reply
  18. Delhi

    I all the time emailed this blog post page to all my friends, for the reason that if like to read it after that my contacts will too.

    Reply
  19. ハーバル クリーム

    Hi, I do think this is a great website. I stumbledupon it 😉 I’m going to return once again since i have
    saved as a favorite it. Money and freedom is the best way to change,
    may you be rich and continue to help other people.

    Reply
  20. sepatu

    Pretty section of content. I just stumbled upon your website
    and in accession capital to assert that I get actually enjoyed account
    your blog posts. Anyway I will be subscribing
    to your feeds and even I achievement you
    access consistently fast.

    Reply
  21. Delhi Escort Girl

    Hi, always i used to check weblog posts here early in the
    daylight, for the reason that i enjoy to learn more and more.

    Reply
  22. Education and Training

    I went over this site and I conceive you have a lot of excellent information, saved to fav (:.

    Reply
  23. discover website

    You could definitely see your skills in the article you write.

    The world hopes for even more passionate writers such as you
    who aren’t afraid to mention how they believe.
    Always go after your heart.

    Reply
  24. washington mutal bank

    What’s up to every body, it’s my first pay a quick visit of this weblog;
    this weblog consists of amazing and genuinely excellent stuff in favor of
    readers.

    Reply
  25. flash动画

    I do not leave many remarks, but i did a few searching and wound up
    here 让 Adobe Air 在 Android 上隐藏运行 – 剑事 Project.
    And I actually do have some questions for you if you tend not to mind.
    Is it just me or does it appear like a few of the remarks
    look as if they are left by brain dead folks? 😛 And, if you are posting at
    additional sites, I would like to follow everything new you have to post.
    Would you list of the complete urls of your community pages like
    your linkedin profile, Facebook page or twitter feed?

    Reply
  26. online college universities

    Good answer back in return of this query with real arguments and explaining the whole thing
    concerning that.

    Reply
  27. love music

    Do you have a spam problem on this website; I also am a blogger, and I
    was wondering your situation; we have developed some nice methods and we are looking to exchange methods with other
    folks, be sure to shoot me an e-mail if interested.

    Reply
  28. Auto Care and Service

    I definitely wanted to make a quick remark so as to express gratitude to you for some of the splendid strategies you are sharing on this website. My particularly long internet lookup has now been paid with reputable tips to talk about with my contacts. I ‘d express that we visitors actually are undeniably blessed to exist in a fine community with so many special individuals with good hints. I feel truly lucky to have encountered the website and look forward to really more thrilling times reading here. Thanks once more for everything.

    Reply
  29. Car & Automotive

    I will right away seize your rss as I can not to find your email subscription link or e-newsletter service. Do you have any? Please permit me realize so that I could subscribe. Thanks.

    Reply
  30. apeman wifi action cam

    Hello! I’m at work surfing around your blog from my new iphone 3gs!

    Just wanted to say I love reading your blog and look forward to all your posts!
    Keep up the great work!

    Reply
  31. break down cover

    Hello, I enjoy reading all of your article. I wanted to
    write a little comment to support you.

    Reply
  32. parent plus loans

    Greetings! Very useful advice in this particular article!
    It is the little changes that produce the greatest
    changes. Thanks for sharing!

    Reply
  33. Arts & Entertainments

    I really wanted to construct a brief message so as to appreciate you for these stunning recommendations you are posting on this site. My long internet lookup has now been paid with reasonable content to go over with my friends and family. I would express that most of us website visitors are undeniably lucky to dwell in a fine community with very many wonderful people with beneficial ideas. I feel somewhat fortunate to have encountered the website and look forward to tons of more excellent times reading here. Thanks once again for a lot of things.

    Reply
  34. Michaelbruth

    If you need the mission to get created speedily along with without issues the area to suit your needs. Our reasonably priced tailor made essay composing company are often very helpful for each and every student who may have no time or desire to deal with essays. We understand that students right this moment should offer with considerably more classes, guides, papers and professors. That is definitely why we wish to help make it a little simpler for yourself with our essay crafting assistance. Not everyone is ready to sit for hours and power their creative imagination and creativity to do the things they refuse to undertake.
    custom essay

    Reply
  35. Pingback: My Homepage

  36. Pingback: roofing

  37. Pingback: Children's Hot and Cold Packs

  38. Pingback: Pendaftaran CPNS Kemenkumham

  39. Pingback: sscn.bkd

  40. Pingback: Shemale.UK

  41. Pingback: Christ Gospel Church Cult

  42. Pingback: Sistem Klinik

  43. Pingback: dlan test

  44. Pingback: cosmetic dental specialist Boynton Beach Florida

  45. Pingback: visit website

  46. Pingback: MORE LEARNING

  47. Pingback: Festivales

  48. Pingback: http://soccerphysics.co/

  49. Pingback: mondo sonoro

Leave a Comment

电子邮件地址不会被公开。 必填项已用*标注