I am developing a simple flash arcade application but have run into a snag. I have some html come up in a webview and when you click a game I have it using an intent to open the flash file. The problem is that is crashes! Is it possible to use intent to play a swf file?
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (Uri.parse(url).getHost().equals("www.bobhoil.com")) {
return false;
}
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(url), "flash/*");
startActivity(intent);
return true;
}
Maybe you can open the .swf within your webview, so you can stay inside your application