Can a desktop AIR app be run on an Android device? - android

I have an Adobe AIR desktop application, built in Flex Builder 3, that I want to run on an android device, specifically a Samsung Galaxy Tablet. I have put the application on an emulator, going through the steps of installing AIR on the emulator, packaging the application as an APK, and installing the application on the emulator. However, when I click the application, it does not run.
Here is my question: is this even possible? Can a desktop application be run on a mobile device with no changes to the code, or does it need to be converted to a mobile application before compiling? Thanks for any and all input,
T

So the answer is yes you can deploy that to a mobile device. As far as changes to the code is concerned, the answer is it depends. If it's a simple application, you shouldn't have to change anything.
Since there is no way (from what I understand) to create .apk files in Flex Builder 3, I am assuming you are going through the ADT command line to package it?
And you are following all the steps on
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
Once we have that covered, other questions would be: Are you using any modules or a framework? Any error messages?
From what I understand, Android doesn't support mx components, so depending on what you are doing there, yes you might have to change the code in order to make it work for Android.
Hopefully that helps.

Related

How to debug on an Android device with Air and captive runtime?

I've never deployed an app before on an Android device, I've always worked on iOS devices, and it seems like you can't run/debug an app directly to the device with captive runtime, like in iOS at least.
When I click on run/debug to install the app directly to the device (I'm using IDEA) and the app gets installed, the moment the apps starts a message appears saying that I have to install Air, this didn't happen in iOS.
I wonder if I'm missing some configuration maybe.
Any ideas?
Yes this is certainly possible. It sounds like you aren't actually including the captive runtime (although I realise you think you are).
Unfortunately I don't use IDEA so I can't give you any specifics on that.
I use Flash Pro CC 2014 but it should be possible regardless of the IDE being used. Make sure you're using an upto date version of the AIR SDK.

iOS and Android Installation (direct testing)

Is is possible to directly deploy apps on ios or android devices just for testing?
My Background:
I am currently developing iOS and Android apps but using only emulators.
Maybe you can consider me as an intermediate mobile developer but newbie in direct installation of application created.
Also, I'm afraid my iPhone or my android devices get destroyed if I will try some of the blogs tutorials found on the net.
You can try your application on actual mobile devices on both platforms.
With Android is pretty straightforward: just plugin your device to your computer's USB port. If you happen to have proper drivers for it, whenever you run your application from Eclipse IDE, you will be asked if you want to run your application directly on the device. Make sure you enable debugging on your device.
With iOS, it's also fairly easy. Just plug your iPhone/iPad/iPodTouch to your Mac, launch XCode and select device before pressing run. You might need to create a provisioning profile for it (you will need a Apple iOS Developer Account for this).
I don't think you will ruin any device just by following (and installing) tutorials from the net.
For Android: Yes, you can run the apps directly from Eclipse or Netbeans on your device, works exactly as with the emulator. To make real apps you have to test them on real devices!
You wont destroy your device. Read the Android SDK "getting started" stuff.
Can't really say about iOS though.
You can always buy a second hand cheap phone and use it.
I started developing apps in the Android emulator and I was surprised about the big difference between the emulator en a real device, which really made it worth to buy one of these terminals.

Debugging native apps on Android, with GDB

I'd like to debug a native application for Android, like, for example, the standard browser app. How can I do that, with GDB (or any other debugger). I would prefer a solution for a real device, not an emulator, but the latter is fine too, if the first option is too complicated/impossible (?). Android version I'm interested in is 2.3.4 (latest).
You would have to get the source of the application and build/debug it just like any other app.
https://android.googlesource.com/platform/packages/apps/Browser

actionscript 3 flash - put game on android device?

I made a small game in actionscript 3, tested in device central and it works fine. I would like to know how i can install it on my phone - android htc? Does anyone know how i could achieve this, or know of any tutorials? thanks.
http://gotoandlearn.com/play.php?id=123 and http://gotoandlearn.com/play.php?id=124.
If your Phone processor is 1Ghz, sure you can.
You need to install Adobe AIR 2.7(latest version) in your HTC
Publish your .fla file with the AIR for Android(For this you need not to buy any certificates)For this I recommend Flash professional in CS5.5
Transfer the result .apk file to your device.(If you face trouble sending .apk into your device since android doesn't support transferring .apk files(I am facing this), change the extension of .apk like .jpg(only for testing purpose).
When transferred, change the extension again back to .apk and install.
Thats it, you can run your application in your device.

Complete Development using the Motorola XOOM

I really want to get into Android programming but I only have access to company resources right now. I have the money right now to purchase a XOOM or a development laptop. Is it possible to compile Android apps using the command line on the Xoom while using other apps to write the program files.
What would seem like a dream environment would be if I purchased a XOOM and a BlueTooth Keyboard. Am I dreaming? Developing using older Android devices was naturally limited by the screen space of the device and the underlying hardware also.
No, as far as I know, you cannot develop Android applications from within Android. You will need a Windows, Mac, or Linux desktop environment to develop Android applications. Visit the Android Developer site for additional info on the SDK.
Go for the development laptop, and test your applications on the emulator. Initially you can get friends to test them out on their android for you, and hopefully by the time you make something important enough you will be able to afford your own android.
Check out AIDE. It can build and deploy apps natively on Android.
Google doesn't have a version of the SDK that runs on an android device, although as devices become more powerful this would be a pretty awesome thing to have.
You'll want the laptop, since it can emulate different android devices.
Buy the laptop and get a cheap phone on craigslists.
Although, the XOOM emulator doesn't work at all, so if you want to develop specifically for that tablet it's a good idea to buy it. It's impossible to emulate android 3.0 on any computer on earth :)

Categories

Resources