0
点赞
收藏
分享

微信扫一扫

android支持flash在g3hero上以及intent的实例


今天偶尔看了一个文章 受益匪浅,g3开始支持flash了,只是不幸的是模拟机不支持,是hero上特有的吧,不过对他的原理还是瞒有兴趣的。开始猜测而言要观看flash,肯定要发起一个与之关联的程序,而要发起他一定的用到intent了,至于用哪个参数自己没有想出来不过关键高手的代码 明白了这里直接奉献给大家:
1.发起一个关联提示程序 打开flash
[img]http://www.flashmobileblog.com/wp-content/uploads/2009/08/Picture-61.png[/img]

2.用特定程序打开具体的的flash
[img]http://www.flashmobileblog.com/wp-content/uploads/2009/08/Picture-7.png[/img]
很简单吧 通过这个程序我们可以知道 要想发起一个系统自带的组建只要知道他的名字就可以了,这个很有用的啊 比如你可以发起模拟机上的日程功能 而模拟机里面没有给出具体的api功能

Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); 

intent.setType(People.CONTENT_ITEM_TYPE); 

intent.putExtra(Contacts.Intents.Insert.PHONE, "+1234567890"); 

intent.putExtra(Contacts.Intents.Insert.PHONE_TYPE, Contacts.PhonesColumns.TYPE_MOBILE



3.直接发送短信 带有图片

Intent sendIntent = new Intent(Intent.ACTION_SEND); 

sendIntent.putExtra("sms_body", "some text"); 

sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url)); 

sendIntent.setType("image/png"); 

uri 如content://media/external/images/media/23.

举报

相关推荐

0 条评论