我正在构建Android应用程序,我从我的应用程序访问网页时遇到问题

时间:2011-05-05 18:07:33

标签: android hyperlink

我有应用程序,并尝试从我的应用程序访问URL(带视频)...当我单击按钮转到Intent启动时,下一秒它关闭...我尝试了来自SMS的相同URL但没有成功......我已经意识到的一件奇怪的事情是,如果不改变代码,它有时会起作用,有时却不会...

这是网址:LINK

这是我处理它的代码:

Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(LINK));
startActivity(browserIntent);

这是LOG:

05-05 20:15:24.910: DEBUG/TV Spored++(11049): http://www.totaleclips.com/Player/Bounce.aspx?eclipid=e21784&bitrateid=471&vendorid=102&type=.mp4
05-05 20:15:24.917: INFO/ActivityManager(107): Starting: Intent { act=android.intent.action.VIEW dat=http://www.totaleclips.com/Player/Bounce.aspx?eclipid=e21784&bitrateid=471&vendorid=102&type=.mp4 cmp=com.android.browser/.BrowserActivity } from pid 11049    
05-05 20:15:25.347: INFO/ActivityManager(107): Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://progressive.totaleclips.com.edgesuite.net/217/e21784_301.mp4?eclipid=e21784&bitrateid=471&vendorid=102&sp_ubid=746-5916787-1173752 cmp=com.android.browser/.BrowserActivity } from pid 8333
05-05 20:15:26.894: INFO/ActivityManager(107): Starting: Intent { act=android.intent.action.VIEW dat=http://progressive.totaleclips.com.edgesuite.net/217/e21784_301.mp4?eclipid=e21784&bitrateid=471&vendorid=102&sp_ubid=746-5916787-1173752 typ=video/mp4 cmp=com.google.android.gallery3d/com.cooliris.media.MovieView } from pid 8333
05-05 20:15:26.898: DEBUG/webviewglue(8333): nativeDestroy view: 0x6b26a8`

有时它的工作原理有时它不会在日志工作时...

05-05 20:34:43.113: INFO/ActivityManager(107): Starting: Intent { act=android.intent.action.VIEW dat=http://www.totaleclips.com/Player/Bounce.aspx?eclipid=e21784&bitrateid=471&vendorid=102&type=.mp4 typ=video/mp4 cmp=com.google.android.gallery3d/com.cooliris.media.MovieView } from pid 11241
05-05 20:34:43.191: DEBUG/MediaPlayer(11347): Couldn't open file on client side, trying server side
05-05 20:34:43.191: INFO/StagefrightPlayer(75): setDataSource('http://www.totaleclips.com/Player/Bounce.aspx?eclipid=e21784&bitrateid=471&vendorid=102&type=.mp4')
05-05 20:34:43.199: INFO/NuHTTPDataSource(75): connect to www.totaleclips.com:80/Player/Bounce.aspx?eclipid=e21784&bitrateid=471&vendorid=102&type=.mp4 @0
05-05 20:34:43.265: INFO/NuHTTPDataSource(75): connect to progressive.totaleclips.com.edgesuite.net:80/217/e21784_301.mp4?eclipid=e21784&bitrateid=471&vendorid=102&sp_ubid=746-5916787-1173752 @0
05-05 20:34:43.386: INFO/ActivityManager(107): Displayed com.google.android.gallery3d/com.cooliris.media.MovieView: +247ms

05-05 20:34:44.148:DEBUG / ConnectivityService(107):ConnectivityService FeatureUser expire(0,enableSUPL,android.os.Binder @ 407cc2b8),60003 mSec前创建

0 个答案:

没有答案
相关问题