How to use the embedded Flash on Android? - android

I know that Flash has been abandoned on the Android platform. But for a special reason, I still need to use Flash (SWF file) on an application that is used internally. So, now is there a way to make my application play Flash(has ActionScript) without installing other APK?
The minimum version of the target device is Android 4.4 (API 19)
Thanks a lot.

I was investigating same thing recently. Adobe AIR seems to be able to do it so I was pretty sure it's possible. After quite a lot of googling I found some useful info and proof of concept on some Chinese website (unfortunately it's already down :( ).
Fortunately they also linked a Github repository with that example. I was able to fork it and add some instructions about which files do you need to update if you want to use latest AIR SDK or see flash traces.
So there you go. You can use SWF file in your Android app (on new Intent) through AIR-runtime, without installing other APK:
android-invoke-adobe-AIR
There's one problem tho. You can pass some parameters from Java to AS3, but I couldn't find easy way for communicating between them later on. In AIR you could do that via ANE's and I was trying to extract some APKs to see how it works, but no luck. I did end up using socket communication (it's on feature/SocketConnection branch).
Hope you find it usefull.

Related

which ide (android development) is suitable for measuring sound in decibels?

I want to make an android app which receives sound from the microphone of the smartphone and converts the value to decibels. I am completely new to android development, so have no idea about which IDE or platform to use for this.
Download the latest version of android studio from here
This answer may not be enough for you as you still need to know a couple of things to start building reasonable android applications. Good luck with that!

Easiest way to simulate Cordova plugins?

I'm a relative PHP newbie (10 months) and Javascript absolute novice, so please go easy on me.
I've just started playing with Cordova and have a couple of small apps for use internally within our small business that I could really do with, but testing my code is causing me grief. I've been using Intel XDK with the built in simulator, but it can't simulate SQLite or the FileTransfer plugin.
At the moment, the only way I can see of doing this in XDK would be to compile the app and transfer it to my Samsung mobile for testing, but this seems very cumbersome and will lead to everything taking much longer. I've just found Apache Ripple, but didn't want to spend a day looking into it to find there's a better tool.
Is anybody able to point me at a tutorial page that gives the easiest method for testing a Cordova app with plugin support, please? I tend to work from about 4 different computers, so something web-based that means I can pull the latest version of my code from Google Drive and start working with no setup hassle would be excellent, if it exists.
Cheers
Andy
The Ripple Emulator has similar coverage as the Cordova Simulator. Unlike Ripple, the Simulator can be extended to support specific plugins, but it will require writing simulation code to make that happen. See the cordova-simulate project for details on how to do that.
Otherwise, the next best option (and the most accurate) is to build the app and use remote Chrome DevTools to debug the app (see this XDK doc page for some help with setting that up). It is not necessary to rebuild your app to make this work. If you structure your code so that you can redefine key functions using the JavaScript console, you can actually debug quite a bit without performing a rebuild and reinstall.
Use the interactive JavaScript console to redefine functions within your app and then run those redefined functions directly from the console or restart your app, in situ, using the window.location.reload() function. An example of using this technique can be seen in this video, starting at about 18:30. The video is demonstrating the use of the weinre debugger, but the debugging technique can also be applied to remote CDT when debugging a built app.

Manually add google cardboard viewer profiles

My question is primarily because of a bug in 4.4 and earlier devices. More on it here and here.
The gist is this
Something changed recently with the goo.gl/ URL shortening service
that breaks the Cardboard app's own QR-code scanner. It only seems to
affect Android 4.4 and older versions.
What Im looking to do is add viewer profiles to these devices either using a script via adb or manually copy pasting needed files.
This is for a hackathon I'm organizing in 2 days so timely help is appreciated. Also if it helps the devices we are developing on will be rooted so changes to the filesystem are possible.
The issue with the shortening was fixed and now its possible to once again get viewer profiles added automatically.
On a side note I'd still like to hear if there is a way to side load this manually.

Is it possible to use native libraries from ICS on older Android versions?

I have to be able to play HLS stream on Android OS starting version 2.2. I have done a research of existing possibilities:
I can use some 3rd party stuff like Vitamio. It works, but the source is closed, performance is rather poor, their plug-in sends some user info somewhere to China and I don't want to bother our users by installing some 3rd party stuff... So that's not a good option from my perspective.
I can try to build some Android port of FFmpeg framework, there are at least three of them, but I haven't been able to build at least one so far. I think it needs more patience and Googling... However, in case of success, there is also a problem with licensing - not as serious as with Vitamio and I am willing to pay license fees to MPEG LA if necessary, but it is still under LGPA.
Finally I got an Idea to use MediaPlayer from ICS, which already supports HLS streaming. My plan was to build the Android Stagefright media engine from the latest sources to get all the native libraries and distribute them together with my application.
I have successfully built all the Android stuff; got all the native libraries I need, but now I have a problem to load them on Froyo. I have placed the libraries into the projects libs folder, but application refuses to load them. It loads the original system libraries instead - if they are present on the current version.
So my question is, if it is possible to use native libraries from higher Android version on old ones. If so, then what I am doing wrong. How can I force my application to load ICS native libraries from its libs folder? Is it even possible?
Any comments, suggestions, ideas are highly appreciated...
You may try some opensource video player, such as VLC or mplayer, which has Android version.
And you can use ICS libraries, buy you need to do many work to modify and compile them with your target Android version. I've used some code from ICS in some of my apps.

How to modify core applications

I want to modify the core applications like Settings.apk and install on my own android phone.I don't want to publish it on market. I have following doubts
Where can I get source code for core applications?
What are the things I need to do this?
Please tell me steps to do this.
You can get the source code here: https://android.googlesource.com
Keep in mind that the packages there might not be the ones on your phone as each vendor can provide a replacement of their own, the Camera for instance is almost never the google app.
You will also have to decide which version you want since each OS version has revisions that take advantage of newer API's etc.
As far as what you need pretty much the same thing you need to build android apps, eclipse, the sdk, tools etc. http://developer.android.com
You will of course have to remove the application from your phone before installing the new one since your signing certificate will not match. There can be difficulties when you swap out your own version so be sure to save the original.

Categories

Resources