Establish UDP Connection from SWF File - actionscript-3

I created a sample application to test UDP speed from my local machine to server.
to achieve same i created Action Script Project for Web using Adobe flash Builder where i am unable to get class flash.net.DataGramSocket.
and same package is available in Window based Action Script Project.
Why DataGramSocket is not available for web based project ?
is there any restriction ?

In the flash.net package description there is an AIR icon near the DatagramSocket link meaning
Only available in AIR runtime
Also the reference says:
AIR profile support: This feature is supported on all desktop operating systems, on iOS (starting with AIR 3.8), and on Android (starting with AIR 3.8). This feature is not supported on AIR for TV devices. You can test for support at run time using the DatagramSocket.isSupported property. See AIR Profile Support for more information regarding API support across multiple profiles.

Related

Desktop App Converter win32 Application conversion

I have a classical win32 Application in which I have a WMI call to get installed win32 application in the system.
I converted that win32 application into appx using Desktop App Converter.
The same WMI calls Works fine in the converted Appx. Normally in uwp we are unable to make WMI calls.
I don't know how those WMI calls are converted. Can anyone please explain?
Correct, The WMI calls is not available in the UWP app. When you convert your Win32 application to UWP app, you have permissions to access the WMI calls via the authorization.
A key goal of the Desktop to UWP Bridge is to separate application state from system state as much as possible while maintaining compatibility with other apps. The bridge accomplishes this by placing the application inside a Universal Windows Platform (UWP) package, and then detecting and redirecting some changes it makes to the file system and registry at runtime.
Converted app packages are desktop-only, full-trust applications and are not virtualized or sandboxed. This allows them to interact with other apps the same way classic desktop applications do.
So you can understand that the application packages it as an APPX and adds a UWP component. The app is still a win32 app.

AIR App Crashing with Adobe Scout

I am trying to profile my mobile game with Adobe Scout. It is based on Starling, AIR 4.0 and currently it is live on Play Store. Since it gives poor performance on iPhone4, I decided to profile using Adobe Scout. I am getting a release build with -advanced-telemetry option and I have set up my .telemetry.cfg on my PC as described here. I have installed Adobe Scout app on the device I am testing. I managed to connect my device with the PC having Scout, however, after receiving some data (like 20-30 frames), application crashes on the phone.
What may be the cause of this?
Thanks.

Is there a way to distribute your Chrome app with Chrome Browser?

I'm working on a Chrome app, and I'm wondering if there is a way to offer customers a single downloadable package that will provide both Chrome (the browser) and my app.
You sometimes see this with Java and Adobe AIR apps. You can either download just the app (if you already have the JVM or AIR, respectively), or you can download a package that includes the app plus the runtime.
In this case, Chrome is the runtime. Is there a way to offer a single download that will install Chrome along with my app? I can offer that as an option for users who do not already have Chrome installed.
This is something that is being actively developed now. The bug to follow is https://code.google.com/p/chromium/issues/detail?id=341353, but there isn't much visible there as it is being developed in an internal repository at Google.

Doubts on Phonegap.js, Phonegap Build and Intel XDK

I am very new to mobile application development. Now I am into a mobile application project which should work on IOS, Android, BB and WP.
After googling to learn what can I do on this, I felt Phonegap fulfils my requirement. I have downloaded and installed phonegap on eclipse to start develop for Android.
I have downloaded, SDK, AVD, eclipse etc to get started with Phonegap for Android.I followed the procedures in the Getting Started Guide.
For User Interface, I took Intel App Framework as my tool of choice.
Everything goes fine with me, other than my doubts in Cross Platform mobile application development.
1) I have read about PhoneGap build, it just requires html,css and js file to wrap up an application for different platforms. So downloading and linking phonegap.js in an the application is not required unless I need to access the device's native function ?
And just create a responsive HTML5 application and build with PhoneGap Build is all I have to do ?
2) If I can just do like above, then why I should install eclipse and android SDK to create for android when I can just make HTML5 application and build with phonegap build and put it on google play.
3) I have came across Intel XDK and they have similar service like phonegap, if I use Intel XDK then I don't have to use any assets of phonegap ?
Please answer these question as these things are confusing me a lot.
As per my knowledge these are the answers,
1) I have read about PhoneGap build, it just requires html,css and js
file to wrap up an application for different platforms. So downloading
and linking phonegap.js in an the application is not required unless I
need to access the device's native function ?
Yes, until your application need to access devices's native function or any inbuilt or custom plugins, no need of phonegap.js.
And just create a responsive HTML5 application and build with PhoneGap
Build is all I have to do ?
2) If I can just do like above, then why I should install eclipse and
android SDK to create for android when I can just make HTML5
application and build with phonegap build and put it on google play.
Phonegap applications need to be developed as native applications using web technologies,
ex: IOS apps need to developed on MAC (using IOS SDK) etc.
3) I have came across Intel XDK and they have similar service like
phonegap, if I use Intel XDK then I don't have to use any assets of
phonegap ?
Intel XDK using cloud based development where your html,css etc are uploaded into the Intel server and the application will build their and give your the final build. In this case you no need of MAC for IOS application development.
In my experience developing with Phonegap and its Build service I generally use a plain web IDE which is based on eclipse called Aptana. It's primary use is for just HTML web development. I never install iOS or Android SDK's since the whole reason you use Phonegap's online build service is so you can be free from having to set up multiple development environments.
All my project specifications are configured in the config.xml. I don't include a copy of Phonegap's libraries since they are bundled at the time of compilation in via Phonegap's online build service.
For general testing and debugging I use either the Chrome debug inspector or Chrome and the Ripple emulator. When I've finished testing and need to compile the binaries I send my code up to Phonegap's build service using maven and Chris Price's Phonegap build maven plugin.
This allows me to :
Unlock the signing keys (maven-ant-plugin and an http get call)
Upload my project for compilation to Phonegap's Build service
Sign my project with a specified signing key
Download a compiled binary for a specified platform
All from one single command. When I develop on my Mac Mini I installed a ruby script which will deploy the downloaded binary straight to my iOS device as final step.
I came up with this solution with the idea that I wanted to be able to checkout my code and be able to compile it online using only maven on any machine. This achieves that.
To answer #2. For phonegap you only need to download eclipse and android SDK or Xcode(iOS) if you are NOT using phone gap build. If you use Phonegap Build (included with Photoshop subscription) you can build with their servers and download the app straight to the device through the phonegap site. Its real simple for Android, a bit harder for iOS.
My understanding is that you have to subscribe to iOS Developer Program (US$99pa) to generate an iOS-installable app (even just for testing it), and publishing/distribution is also a bit more complicated than e.g. Android as well. That is completely regardless of what tool you use to build it, you need an Apple key code to install it. Of course, you can always just build and publish it as a a web application that be viewed in any browser. Then you don't need the iOS developer sub.

Is there any certification toolkit for WP8 apps?

I am developing a new application that will target the new WP8 platform.
Previous versions of Phone SDK, like WP7.1 or WP7.5 SDK contained special toolkit to test you XAP before submission for some obvious problems (like some mandatory image files missing).
A similar function is fulfilled by the WACK for Win8 Desktop Apps.
But I can't find any toolkit for testing my WP8 applications. The only option I found is to "Windows Phone Application Analysis" provides me with some performance information but there seem to be no static rule-based check of the XAP package performed.
Am I missing some software installation?
For WP8 apps, right click on your project in VS2012 Solution Explorer ---> Click "Open Store Test Kit". You can read more about what's being tested for on MSDN # http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394032(v=vs.105).aspx