Start AIR (mobile) application from Android Service

Hi I'm hoping someone can give me some direction.
I would like my custom Android service to start my AIR application.  An Android Service starting a regular Android application is well-documented... the basic idea is to create an Intent (a system message) that points to the Activity (an application screen, normally a java class), and launch that from the service.  The code looks something like this:
Intent i= new Intent(getBaseContext(), screen.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplication().startActivity(i);
Can the same idea work with an AIR application (made with Flex)?  If so, what is the java class reference for the Activity?  Or what?  Or is there some other method that must be used?

What version of AIR are you using or does it matter?  My apps seem to come back from background or idle with no issue.

Similar Messages

  • Connecting between two Adobe air mobile applications (On Android)

    Hi There,
    Does an Adobe AIR application can connect and pass parameters somehow (Directly or by http) with another android application?
    Can Adobe AIR mobile application open a listening socket?

    Um, I'm pretty sure this is wrong. You cannot use SocketServer on a mobile app platform for some stupid reason.
    From the doc
    "AIR profile support: This feature is supported on all desktop operating systems, but is not supported on mobile devices or AIR for TV devices"

  • Start a WS application from within a java program

    Hi,
    I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
    try {
    Runtime.getRuntime().exec(
    "c:\\java web start\\javaws.exe http://a.b/c.jnlp"
    } catch (Exception e) {
    e.printStackTrace();
    And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
    I tried to do it from a command line with the followinf command:
    java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
    And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
    By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
    Can anybody help me? How may I start a .jnlp program within another java program.
    Kind Regards,
    Tobias Neubert

    Hi,
    I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
    But it seems strange that it does work from the command line and not from your code.
    -Stefan

  • Start an outside application from the database

    Hello,
    is there a way to start an outside application from within the database and pass some field values as arguments?
    Thanks in advance,
    Milos

    is there a way to start an outside application from
    within the database and pass some field values as
    arguments?What do you "within the database"? is it in sqlplus or ...?
    SQL> !ls -ltr 
    -rw-r--r--   1 oracle   dba            2556 Dec 13 10:49 t.txt
    -rw-r--r--   1 oracle   dba            2814 Dec 13 11:51 users.htm
    drwxr-sr-x   2 oracle   dba             512 Jan 16 14:00 test
    -rw-r--r--   1 oracle   dba            5746 Jan 18 06:42 backup.log
    -rw-r--r--   1 oracle   dba            2133 Jan 18 09:58 exlfile.txt

  • Start and manage applications from creative cloud

    Hi, why not be able to start Adobe CC applications from the Creative Cloud itself? Why not manage them from it, to uninstall, additionally to update or install? I've needed this during the switch to CC 2014. Why not re-install option too? In the process of switching to CC 2014, I've installed PS CC 2014 and AI CC 2014, then uninstalled the old CC ones and I've got to uninstall CC 2014 apps and install them again just to get rid of some registry issues done in the process, like file associations lost and AI message that needs to run as administrator in order to fix some registry issues, which it couldn't fix actually (under Windows).
    Regards, Mike.

    Before you remove anything you should sign out of the Creative Cloud so that it is reset for you when you reinstall and sign in again.
    Sign out, Sign in | Creative Cloud desktop app
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Activation & deactivation help
    https://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to

  • I am a beginner programmHow do I start developing mobile applications for iOS?

    I want to start building mobile applications for use on my iPhone.  I have little to no experience in software development.  What do I need to do to get started?

    Learning to program and then becoming familiar with xcode and objective-C is a long road to travel.  If you google for xcode tutorials and objective-c tutorials, you might find some.  Also, books is another way become familiar with programming for iOS and OSX.  Go to Amazon and search for xcode 4 and for objective-c and Cocoa programming - look for the books with high ratings.
    For example, one of the links at the right lead to the following helpful post:
    The three best places to start;
    Read through them in the order listed.
    Apple iOS Developer Library / This includes Frank Caggiano's sugjestion of Start Developing iOS Apps Today.
    http://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topi c=Getting%20Started
    Apples, Programming with Objective-C
    http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Programmi ngWithObjectiveC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011210
    Programming in Objective-C, By Stephen G. Kochan / I read through a tone of books until I found this one.
    http://www.informit.com/store/programming-in-objective-c-9780321887283

  • Flash Builder 4.5: debugging Flex Mobile application on Android Virtual Device

    Hi,
    we are trying without success to debug a flex mobile application in Flash Builder 4.5 on an Android Virtual Device (AVD).
    We can debug with real Android devices via Flash Builder 4.5, by using a standard Mobile Application debug configuration with "On device" launch method, but emulated devices are not listed in the "Choose device" Flash Builder 4.5 window.
    The emulated device is correctly listed by "adb" command line tool, as the following screenshot shows:
    c:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\lib\android\bin\adb" devices
    List of devices attached
    emulator-5554   device
    ("emulator-5554" has been created and started with Android AVD Manager standard Eclipse plug-in)
    By using the adb command-line tool we can also install applications on the emulated device, but we'd like to use Flash Builder 4.5 directly, without manually using adb.
    Many thanks in advance for any direction.
    PS: we can debug with Flash Builder "internal" android emulator (the one used with "On desktop" launch method), but we want to use the more "realistics" android emulated devices provided by Android SDK (Android Virtual Device (AVD)).

    well that's just ... oh what's the word I'm looking for? ... um ... ah yes - inconvenient.
    I've been wrestling with this too. I use VDs with eclipse all the time, I'm wondering why it's not supported in flashbuilder. I mean, it's just a VD that runs on a virtual port, plugs into the editor like a read device would - right?
    I'm going to take a wild stab at this and say it probably has something to do with running a program inside (Air) a virtual machine, running inside a virtual machine inside a virtual device?

  • I get some trouble exporting  mobile  application with Android Adobe Flash Builder Burrito

    Hi, eveybody.
    I make a simple mobile application with Adobe Flash Builder Burrito, and it works well on windows.
    Then I want to export it as a .apk and install on android emulator. But I failed. I got some messages as follow:
    E:\android\a\android-sdk-windows\platform-tools>adb install Twitter.apk
    594 KB/s (875316 bytes in 1.437s)
            pkg: /data/local/tmp/Twitter.apk
    Failure [INSTALL_FAILED_INVALID_APK]
    Then, I download the AdobeAIRSDK2.6, unzip, and copy the files to the sdk(D:\Program Files\Adobe\Adobe Flash Builder Burrito\sdks\4.5.0).
    I change <application xmlns=http://ns.adobe.com/air/application/2.5> to <application xmlns="http://ns.adobe.com/air/application/2.6">.
    Then It can't export it as a .apk...
    Thanks!

    Thanks.
    But why I can't export a .apk as I update the sdk to air2.6?

  • How do you profile AIR mobile applications?

    I'm used to using FlashBuilder to profile an application, take memory snapshots, and find lingering objects from memory leaks.  With AIR mobile, the best I can do is run Adobe Scout to verify that my application has a memory leak.  The list of all ActionScript objects is massive- it's not useful for tracking down a leak.  Is there a way to use the standard FlashBuilder profiler, or another way to track down a memory leak using Adobe Scout?
    Thanks!

    Yes, I've enabled telemetry.  I use object pooling and nulling, but not in the instance that's causing the exception.  It's a simple block that involves a few Parsley commands and an ANE.  I really need the profiler to figure out what part is leaking, and I have to test it on a device because of the ANE.

  • How to print on HP deskjet 100 mobile L411 from android tablet

    How to print on HP deskjet 100 mobile L411 from Asus Transformer android tablet
    Pablo_B

    Hi,
    You can use Printshare app on your tablet. I believe you have to pay a small amount for it:
       https://play.google.com/store/apps/details?id=com.dynamixsoftware.printershare.premium&hl=en
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Convert Air Desktop Application to Android apk Please help!

    I developed an Air Desktop Application by using Flash Builder 4, it's a pure ActionScript 3 application. I used a few PNG image files and mp3 audio files in the application. After I build it, I got the swf file, xml file and all the image mp3 files in the bin-debug folder. If I run the swf file with all other files (png and mp3 files) in the bin-debug folder, it works great. If I run the swf standalone, the application will miss the images and sounds.
    Now I'm converting the swf to apk, and run it on android device, it will NOT show the images or Doesn't play the sounds. I was wondering if there is a way to merge the png and mp3 files into the swf when I build/compile it? Or is there some other way to convert to apk which includes all the image and audio files? Please help.

    Please see adt -package command here
    http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
    in this example icons folder is packaged along with swf and app xml.
    What you can do is that specify each of the mp3 and image files one by one separated by space at the place where icons is used in examples.
    In this case you will find all mp3 and image files in same directory as your swf when you run on android.
    Make sure you use app:// urls for accessing those files

  • How to start a java application from a website

    hey does anyone know how i can start my java application, when a user clicks a button on my website. I dont want to convert to applet because it will be quite hard plus im gonna have to cut down alot of functionalities? thanks!

    [http://java.sun.com/javase/technologies/desktop/javawebstart/index.jsp]
    Kaj

  • How to track devices in Google Universal Analytics from Air mobile application?

    Hello,
    I'm using Google Measurement Protocol to collect analytics data from mobile Air application
    https://developers.google.com/analytics/devguides/collection/protocol/v1/
    I found that Air application running on iPad 3 not detecting device model in google analytics reports.
    I guess it's because Air environment sending incomplete user-agent string.
    This is what it sending:
    Mozilla/5.0 (iOS; U; ru) AppleWebKit/533.19.4 (KHTML, like Gecko) AdobeAIR/3.1
    And this user-agent string sending by Safari on ipad (for comparison):
    Mozilla/5.0 (iPad; CPU OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B329 Safari/8536.25
    So Air application knows much less than Safari.
    My question is: How to create custom user-agent string in Air application so it contains enough data for google analytics to detect device model?
    Is there any solution that will work on most ios and android devices?

    I don't know if you managed to make it work, but it kind of worked for me, I did this:
    var _urlReq:URLRequest = new URLRequest('http://www.google-analytics.com/collect');
                                  var uuid:String = 'my-generated-uuid';
                                  _urlReq.method = URLRequestMethod.POST;
                                  var scName:String = '&v=1&tid='+myTrackingCode+'&cid='+uuid+'&an='+myAppName+'&av=1.0&t=appview&cd='+myScreenName;
                                  _urlReq.data = scName;
                                  var urlLoader: URLLoader = new URLLoader();
                                  urlLoader.load(_urlReq);
    I say "it kind of worked" because I haven't been able to send custom events yet, butI'm on the right track.

  • Locking The Orientation Of The Flex Mobile Application on Android Device

    Hi all,
              I have developed an application using Adobe Flash Builder Burrito and installed it on my android device,Samsung Galaxy Tab.
    I want to lock the orientation of my application to landscape even when the device is in portrait position.
    Can anyone of you help me to implement this.
    Thanks.
    Sujata Jha.

    When you create a new mobile project (actionscript or flex) it asks if you want it to auto-orient. This setting can be edited for existing projects in [project name]-app.xml.
    What I can't figure out is how to fix the application in landscape mode, as it seems to default to portrait.I could rotate the content myself, but the I'd have to convert screen events and previewing on the desktop would mean a lot of head twisting. Anyone know how to do this?
    -Gabriel
    Can you get Rasputin Rabbit back in the hat? Play Houdini's Hat (made with Away3D):
    http://www.pizmogames.com/games/load.php?g=houdinishat

  • TLV Error when using crystal report in application from Terminal Services

    Our accounting software is generating the error:
    Invalid TLV record
    The error is generated from every user except one, for that one user everything works fine.
    i've checked the file permissions on the rpt files as well as the dll, everything is correct and i'm now lost.
    Any ideas on where else to start looking?

    Ah.. I hate when they do that, if you are going to write an application then support it.... At least help figure out why it's failing other than just saying it should work....
    I would get on a call with them and get a Manager involved, someone there should be able to help you...
    In the mean time:
    First easiest way is search for crpe32.dll, there should only be one version and it should match the est of the file versions. Next step will tell you the versions being used.
    OK, download [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip]. what this app will do is list all of the runtime files each user has access to. You can save and then compare the list files between the  one working PC and any other user. Should help determine what is missing or the users profile doesn't have access to or not installed.
    Another option is to use ProfileMonitor from Microsoft, it will list all access issues including the registry keys that all users need to run CR.
    Can you tell me what version you are using?
    Also need to know what version of TS?
    OS it's running on?
    And work station OS?
    One more option, go to this link http://www.sdn.sap.com/irj/scn/advancedsearch?query=boj and search on "invalid tlv" and it will return a bunch of know reasons why you can get that error.
    Thanks
    Don
    Edited by: Don Williams on May 31, 2011 12:52 PM

Maybe you are looking for

  • Web service connection

    Hello! I am developing a JAX-WS web service using EJB 3.0 and Glassfish application server which receives some information from the clients, performs some buisness methods and saves information to a database. The service can write information to data

  • HT1245 how do you sync aol contacts to iphone

    I am an AOL email user and want to sync my contact list to my iphone.  I am looking for the device key or icon on my phone

  • Change of ownership

    2 months ago after numerous calls and multiple different explanations we were told that our one bill account was changed to my wifes name. Now not only is the account not in my wifes name but the one bill account is gone and everything is billed sepa

  • Gnome 3 activity view hangs??

    I am using Gnome 3.2.1-1 If I activate the activity view ( by holding mouse in upper right corner), normally several icons appear to show my applications available.  Nothing appears when I do it now. Also, if I type in the search bar of the activity

  • Cancel Message Mapping...

    Hi, I have an Order Interface to 3rd Party and get SAP value in format header, order, positions. In my Header part their is a flag that indicate if some data have been provided or not. So what I like to do (or like to know) - is their a possibility (