So I developed an application for Android of which uses an SWF file. Now, I did this within Eclipse instead of using Flash CS6's native AIR libraries and such. Many devices of which downloaded the app are seeing it break because they can't support flash.
How would I go about including something like the AIR Runtime bundled with the application so all users could use the application?
Many thanks in advance.
Download the AIR SDK from Adobe. Create an application descriptor that references your SWF file and contains the proper settings for an Android mobile app (all documented on Adobe's developer site). Then use the AIR ADT tool to package it into an AIR app. That's all you should need to do assuming your SWF file is otherwise normal.
Related
I am interested in using the ANT Radio Service in my application to be able to communicate to another Android Device. I've seen the ANT Website and read through the documents, I also downloaded the Android API in their software section which contains the jar, javadocs, and some sample applications written using Eclipse.
Also included were apk files of the sample applications. I installed them (Acquire Channels and Background Scan Samples), but those samples seem to just scan for available devices. The Acquire Channels Sample does not seem to work as the Background Scan Sample does not seem to find my device using the Acquire Channels App.
I am also having a difficult time importing the Eclipse Projects properly to Android Studio for some reason.
Does anyone here know how to build Android Applications with the use of the ANT Library for Android to Android communication? There seems to be a lack of examples and tutorials online for such a good technology given its age.
I'm planning to write a software (with GUI and sounds) that should run under Android and Windows 7/8
I guess the best approach for this is to use Java?
I am new to Android and Java development so my questions are:
-So can I use one development platform to create both (APK & JAR), namely Java?
-As far as I understand for Android I need to compile (from same source?) a .APK file and for Windows a .JAR file ?
(The .JAR will run in the Java Runtime that is installed in Windows)
-If I use Java what would be the best IDE, something like Google's Android Studio (will it allow to create .JAR?) or Oracle's JDK (Java SE Development Kit) ?
thank you
I don't think it is possible to write an app that will run on both OS's, since all GUI components are part of different frameworks (Android SDK for Android, SWT/Swing/... on Windows), and not compatible with all OS's.
You best bet is probably a web-based app. You can run it in the browser on dektop and either on a mobile browser on Android, or package it as a fullscreen WebView running your web app. The best part is it would also work on iOS.
You could also write your app for desktop in Swing and then convert it to an Android app, you can find questions on StackOverflow on the subject, such as this one.
Hope this helps ;)
Currently my app is created in Eclipse using GWT and Coded in Java. I have the app hosted on app-engine and all my data is saved in the browser using html5 storage. I want to have this app installable on an iPhone so I included "\<\meta name="apple-mobile-web-app-capable" content="yes" />\ " in my html file, and even included a custom icon etc for the iPhone.
Upon installing the app on my iPhone, everything works fine online but offline the app won't even load. I've been reading about manifests and yaml's but I cant get a clear picture of how to set my app up mobile, and have it save data locally on the phone (app cache).
Please help!
You need to start reading about HTML offline apps for iPhone. There are a lot of resources about this on the net, for example this and this.
mgwt - mobile GWT has a HTML5 Manifest Linker, see: http://code.google.com/p/mgwt/wiki/HTML5Manifest
This can be easily used to store your app locally.
Also stake a look at the mgwt settings class: http://code.google.com/p/mgwt/source/browse/src/main/java/com/googlecode/mgwt/ui/client/MGWTSettings.java
There you can find all the properties described in the tutorials Peter Knego described.
Context
http://news.ycombinator.com/item?id=4125530
Question:
Does this finally mean that Java Apps will be able to be posted to the Mac Store? (Since the JRE is automatically bundled into the application), and the iOS no-JIT clause does not apply since this is for the Mac store, not the iOS store?
Thanks!
Oracle have packaged the JavaFX Ensemble Sample Application for Mac using pre-release JavaFX packaging tools and submitted the application to the Mac App Store. The application was accepted and you can find Ensemble at this location in the Mac App Store.
For JavaFX specifically, using the JavaFX packaging tools which are mentioned in the ycombinator.com news item - not just yet - but potentially soon (e.g. jdk7u10 for Mac release time-frame). For other Java projects the Java application bundler could be used (which is a seperate tool from the JavaFX packaging tools).
There are currently a few quirks in the javafx implementation which prevent an application packaged with the javafx packaging tools from being submittable to the Mac App Store.
How to bundle a Java App and submit it to the Mac App Store:
Write a Java App.
Package the Java App for the Mac.
Submit the Java App to the Mac App Store.
See if Apple accepts it.
Oracle have produced a guide for Packaging a Java App for Distribution on a Mac, which includes information on how to Submitting an App to the Mac App Store.
Update
I asked an Oracle engineer about this on Oct 8, 2012 and got the following responses.
Q. If I want to package a JavaFX application for delivery to the Mac App Store, should I use the AppBundler or the JavaFX packaging tools?
A. JavaFX tools is way to go. At least long term (as you need to use current beta and it might have bugs).
Q. If the JavaFX packaging tools can be used to package an application for distribution to the Mac App Store, what are the steps to do this?
A. See materials from Scott's talk at JavaOne. We will publish blog on this but it may take some time.
Q. Can the JavaFX packaging tools also be used for packaging a non-JavaFX Java application for delivery to the Mac App Store?
A. yes, see the talkingjavadeployment blog.
The answer is now YES. Our app, Moneydance, has been submitted and approved and is now available for sale on the app store: http://infinitekind.com/moneydance-appstore.
One of our developers, Marco Dinacci, has written detailed instructions for how to do this for your app: http://intransitione.com/blog/take-java-to-app-store/
I have developed a Lwuit application and I ported that same app to blackberry bold,curve,storm
but when I gonna port that very same application to blackberry torch it doesnt work and gives
illegal state exception. So I want to know how to port my app to blackberry torch.
Thanks in advance
Use latest LWUIT repository or download LWUIT 1.5. They created separate LWUIT jar file for blackberry domain. you can use that jar file for your blackberry application. More info look here, LWUIT with Blackberry.
Try using the Resource Editor for LWUIT 1.5 to redevelop your app - it will surely make it easier this time around. I suggest this because after development, you can generate a netbeans project, that usually contains sub-projects in 4 platforms - Desktop, MIDP, Blackberry and Blackberry touch. I am sure your problematic platform will be covered as well.