I have been trying to follow James Ward's instructions in order to access native apis with adobe air. No matter how many times i re read his steps, I cant follow them properly.
I didn't use the eclipse source files offered on his site as I already have an android app using netbeans which accesses and sets up communication with another device via bluetooth.
I also have a previously created air app which read/writes to a socket, displays ui and reponds to button presses.
If i could get the bluetooth-connected socket created in the native app, pass this to the air app and allow the bluetooth communication to be utilised in air it would be a great satisfaction for me as i have been at this for days.
Is this possible and if so can someone help me, i have managed to extract the air apk, get the dex files, but what next??
Regards
You currently cannot access native APIs from Air, but it is currently in the works.
Related
I know that those kind of questions have been asked before, but I couldn't find a topic to help me.
I have been give a HTML5 game and I was asked to verify if I can run it on an Android tablet.
I'm a little bit confused with what I have to do? Should I create an Android project and import the file or is there an easier way to create an apk?
Thanks for your help.
You could look at Apache Cordova. This is a powerful environment made to support app development in HTML5. As such you should be able to literally copy your game resources over, run a build and have a full fledge Android App. Fun fact, provided you have access to OS X, Cordova will produce an iOS compatible app too.
If your game consists of HTML, CSS and JavaScript, such that it can be run off a modern web browser with no special plugins installed, rest assured it can run in an Android tablet.
You could access it directly from the tablet's browser or you can make an app (packaged in an APK and installed from it) which does essentially the same, but with a great benefit: the web page and the app can communicate (via JavaScript), enabling a richer experience.
Example of such communication: you're making an app for a web forum, and the link for "compose new message" opens an Android activity for writing that POSTs the result to the server, instead of constraining you to write in a small web browser form.
For more information on the subject, check out Android API Guides for Web Apps.
I'm trying to find an automation framework for iOS and/or Android that allows me to automate actions on a real device using 3rd party/built-in apps. For example, I want to be able to automate: Browse these websites with Safari, watch these videos with the Youtube app, et al.
The automation frameworks I've encountered in my search seem to be focused on testing out your own app, in which you provide hooks in your own code to the framework in question.
I won't be testing out my own app (I'm testing out a proxy that the devices send traffic through), and thus won't have access to the source code to the apps on the device. I'm new to this, apologies in advance if there's a way obvious answer right under my nose.
For android automation you can use UIAutomator. It doesn't require source code. It uses in built uiautomator jar file which is present in android SDK. For more information you can refer http://developer.android.com/tools/testing-support-library/index.html
So what I want to do is, "develop" an app where it main purpose is just to open a website. I need that on android and ios. Is there an online website to do just that?
I jused to know a website, where you could develop for various platforms (PHP, Java, Object C for iOs) and even test your code online.
Somehow I can't find it anywhere. Thank in advance if you can either show me the website again or find me a new website to do just that.
Regards!
Update:
Found the website: http://www.programmr.com/
I think you're referencing PhoneGap.
PhoneGap allows you to build native applications using HTML/CSS/JS for all mobile operating systems.
If all you want is for your iPhone App and Android App to open up a website "inside" of the application, you will want to use a webView. This will allow you to have your application listed on the iOS App Marketplace and the Android Google Play Store.
EDIT: This will definitely work on Android. You must get pass Apples app approval process to get on iOS of course.
I have to regularly test the availability and functioning of a movie rental website. I wrote a Windows program which is able to automate a web browser according to a script, so this task is basically solved. Now I have to automate the mobile version of this web application: a native iOS app and a native Android app.
These apps are closed source, so cannot be modified in any way. I think the test app should be deployed on the test devices (iPhone, iPad, Galaxy Tab, Galaxy S II), but I must be able to remote control it. I mean, I would like create a connection between the test devices and a PC, upload test scripts from the PC to the devices, run them, and download the test results to the PC. The test script should start the app to be tested, manipulate its GUI (fill editboxes, push buttons etc.), and follow its response somehow, for example by analyzing the GUI (the existence of some GUI elements, their caption, etc.), analyzing screenshots, and/or inspecting IP packets.
I wrote lots of similar test programs for Windows: I used ShellExecute, PostMessage, FindWindow, the WinPcap library etc., so I know how such a program should work. But since I never wrote applications for mobile OS's, I don't even know whether there are similar APIs and libraries for iOS and Android.
I would like to know where to start, I mean, which SDKs and developer tools could be used to write such an application. I'm also interested in commercial solutions. I would really appreciate any help.
I like "Calabash-iOS/Calabash-Android" by LessPainful. That is the best for me.
free
available on iPhone and Android
record and playback
test on native and simulator
They doesn't have a GUI IDE. They are Ruby-based solutions and it is very easy to write test case script, like this:
Then I swipe left
And I wait until I don't see "Please swipe left"
And take picture
Also it can be
Then I touch the "login" button
to tap a button, or
Then I fill in "placeholder" with "text to write"
to write something to a textbox.
And the script can be shared by Calabash-iOS and Calabash-Android. That feature is convenient for developers who make both iPhoneApp and Android App.
I thought MonkeyTalk was nice but actually unstable, at least in my environment.
Sometimes MonkeyIDE crashed, so we have to do debug of MonkeyTalk...
I hope this helps you.
MonkeyTalk looks promising. Features from the Gorilla Logic website:
Free & Open Source
Automated testing of iOS, Android, HTML5 and Adobe Flex applications
Cross-platform recording and playback
Test native, web, or hybrid apps, on iOS simulators, Android
emulators or real devices (no jailbreaking required)
Everything from simple "smoke tests" to sophisticated data-driven
test suites
Packet tracing: iOS, Android, Android
Selenium offers drivers for mobile devices and emulators. It is a Google project. They have good documentation. It has an IDE for rapid prototyping of testing suites and support for many languages like ruby, PHP, c#, etc.,
If scripting is your preffered solution on android you can easily import and run scripts after you install the Scripting Layer for Android. Just download the latest apk file, import the script and run it. This isn't available on iOS but half of your problem may be solved with this.
I know this is an old post but any one reading in 2016 first choice for automation should be Appium ( works on both IOS /Android). All the tools mentioned above have to be built with the App. Appium does require any build up with App code. Its hugely popular with variety of programming language support ( PHP/JAVA/RUBY/PYTHON). [Link]: appium.io and [Link]: https://github.com/appium/appium
As per the Adobe Access 3.0 spec , it seems that it can be supported on Android with flash player or Adobe Air App.
http://www.adobe.com/products/flashaccess/
did anybody has tried this ? looking for some feedback or reference on this.
What is the best/right way to integrate this with existing Android video application ?
1) WebView with flash swf file.
2) Starting the Adobe Air app from the Android app .
3) or I can integrate the adobe air into my existing android app.
1) Your users would have to install Flash Player which is discontinued for Android and the installation would break the user journey of your app (they'll need to go to Play Store and install beforehand). I recommend to not take this route.
2) This might be possible, although I believe it will be quite difficult to get the Adobe Air app receiving some data from your main app, which I understand you will need? In any case other downsides will be: breaking the app in two pieces can cause confusion to user, accessing other state data from your main app, handling activity lifecycle for both apps.
3) This is not possible
Suggestion: 4) Wait for Adobe Access 4 native Android library to be released. I commented about it here:
Android: Adobe Access DRM