I've been digging around for days looking for a way to do analytic tracking in a pure AS3 Adobe AIR for mobile project. Does anyone have a solution?
I've tried looking at gaforflash http://code.google.com/p/gaforflash/
but it looks like AIR isn't supported:
http://code.google.com/p/gaforflash/wiki/Roadmap (see comments)
I've tried looking at http://www.appanalyticshq.com/
But this looks to be Flex dependent.
http://getsatisfaction.com/app_analytics/topics/where_can_i_get_a_flash_pro_swc
I also looked at straight up Google Analytics http://code.google.com/apis/analytics/docs/tracking/home.html
But it says on this page: http://code.google.com/apis/analytics/docs/tracking/flashTrackingIntro.html
"Note: Currently, Flash tracking is available for any Flash content embedded in a web page. Tracking of data sent from Adobe Air, Shockwave, or via the Flash IDE (e.g. using Test Movie) is not supported at this time."
Anything else out there? Has anyone got this to work?
Thank Jevgenij and pkyeck.
I was able to get GA working with my project and I verified it is working on both iphones and on Android.
See this example: http://code.google.com/p/gaforflash/
you can get free google analytics ane from http://www.devactionscript.com/. This one is based on the latest Google Analytics SDK v3
you can consider gaforflash obsolete and legacy
there is a new library
Google Universal Analytics for ActionScript 3.0
as3-universal-analytics v0.8
https://github.com/zwetan/as3-universal-analytics/releases/tag/0.8
full support for: Flash Player, AIR, Redtamarin
it just works everywhere or almost everywhere :)
for example
var config:Configuration = new Configuration();
config.forcePOST = true;
var tracker:WebTracker = new WebTracker( "UA-12345-67", config );
tracker.pageview( "/hello/world", "Hello World" );
Related
I want to implement Unity ads into Android game which is created with Libgdx engine.
I searched for solutions on net but i didn't find anything useful, so every help is welcome: Code samples, links with explanations...
Unity provides instructions on integrating Unity ads into any Android application built in the Eclipse IDE here.
Unity ads are not specific to a specific graphics/application framework, so they should work with the provided instructions for any Android app. You might have to wrap your LibGDX in a bit of native Android UI, using the second answer here.
I am new to Windows Phone app development and I would like to know what is the best way to embed YouTube videos in Windows Phone 8 App? I would like to provide a list of videos with thumbnails and user should be able to click and watch the video just like any typical app.
Thanks a lot.
I had tried some third party SDKs while I was doing this for Windows 8 but was not happy with any of the solutions.
Finally I resorted to embedding the video in a Web View control and the output was pretty desirable. I have not tried this on Windows Phone but should work as it did on Windows 8 since the underlying browser is the same. Try it out:-
string html = #"<style> body{margin:0; padding:0;} iframe{width:100%;height:480px;}#media screen and (max-width:300px) { iframe{width:100%;height:180px;}} </style><iframe style=""padding:0px;margin-bottom:-20px;"" src=""http://www.youtube.com/embed/" + videoId + #"?rel=0"" frameborder=""0"" allowfullscreen></iframe>";
videoView.NavigateToString(html);
Let me know if this worked for you
First try creating sample video application in Windows Phone App Studio which uses YouTube API services and display videos in application.
Download the source code and refer, How it uses YouTube API services and gets video. Source code will be in MVVM pattern and its the best way to implement. You may get some basic knowledge on how to develop apps that uses YouTube services.
You can refer the source code which uses YouTube API services, which I generated for more information.
Seen many posts on this around the web but no nearer finding out if it's possible to do...
Have seen http://www.webqr.com/ recommended but I tried uploading the .zip from github (https://github.com/LazarSoft/jsqrcode) for this to phonegap and the compiled app fails on android with "Sorry, native web camera streaming (getusermedia) is not supported by this browser"
Well, I'm not trying to use the webcam really, I want to access the camera on the phone/ipad if possible.
Is it actually possible to do this from HTML5 or does it require a proper native app? (so xcode for the ipad app I have in mind)
I've also seen some plugins for "phonegap" (as opposed to phonegap build) which would also require a mac/xcode so that's not the angle I want to approach it from as I'm trying to do this all from windows if possible.
This may help. it a js plugin. search the phonegap plugin page for 'scanners'
https://build.phonegap.com/plugins/2421
https://github.com/wildabeast/BarcodeScanner/tree/c74e37a
I am developing project using GWT2.5 and I need to use the User’s webcam to capture
images/video.
How it is possible in GWT?
GWT 2.5 comes with a new library called Elemental, it is thought as a wrapper of the browser API. It just works with chrome, but in a future it could support more browsers.
If you are confortable supporting in your app chrome for this feature, you can take a look to this example. The source code of the demo is in googlecode.
If you wanted to support other browsers, you could take the elemental classes as base and modify them to match other browsers.
Here is a video introducing elemental during the google I/O 2012
A GWT based API to capture webcam snapshots from the browser. This API is a GWT wrapper for the jpegcam JavaScript library.
Samples and Source code.
Hope that helps.
I have setup a starling project and added stagewebview to embed Google maps. I have tested the project using Facebook and it seems to load http://facebook.com correctly. The issue I am having is I am unable to access the page (click links, log in etc).
I don't know if I understand the use of stagewebview or if something else is stopping me from accessing the content. My understanding is you can load an external page into the project/device.
The project will be used in a mobile app that uses maps. If someone knows of a better way to using Google maps (or any other mapping software) in a mobile (iOS and Android) I am all ears.
Thanks
Loading Google maps into a stageWebView certainly is possible. Although I used StageWebViewBridge as I needed communication both ways between ActionScript and JavaScript.
StageWebViewBridge loading and communicating with online page
Be aware though that the stageWebView won't be on the Starling (Stage3D) display list. It will need to sit above on the Flash NativeStage.
For mobile you could look into using an ANE to access mapping APIs.
http://sleepydesign.blogspot.co.uk/2012/07/ane-free-air-native-extensions.html
http://code.google.com/p/air-maps-ane/
Or Distriqt sell a range of ANE's, mapping included.
http://labs.distriqt.com/native-extensions