Saturday, May 4, 2013

[android help] New to Flash and Android

New to Flash and Android - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















I have a .Fla file which i have converted to Swf and I want to Play it on Android tablet is it possible ? It is an interactive swf file . I totally am new to this area kindly help


























Just go to the export settings of you file and select "AIR X.Y for Android". Now, you need to adjust the settings for the project and you should be good to go :)























The best option to run .swf file or any other video files is to load in webview.


Follow the below mentioned code snippet..



webView = (WebView) findViewById(R.id.webview);
webView.setVisibility(View.VISIBLE);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setAllowFileAccess(true);
String url = "file://"
+ this.getFilesDir().getAbsolutePath() + "/"
+ contentData;
webView.loadUrl(url);


Where contentData is your filename.swf stored. url is complete path where your video is stored in your Android phone.


Hope this helps.




















default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...