我想使用默认媒体播放器流式播放mp3歌曲.
我使用MIME类型"audio/*".
Intent musicIntent = new Intent(android.content.Intent.ACTION_VIEW);
musicIntent.setType("audio/*");
startActivity(musicIntent);
Run Code Online (Sandbox Code Playgroud)
那么如何通过默认音乐播放器播放音乐?
提前致谢
我在UITableView中工作并尝试让用户使用此代码选择单元格
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSInteger row = [indexPath row];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
if(cell != nil)
{
if(cell.accessoryType == UITableViewCellAccessoryNone)
{
cell.accessoryType = UITableViewCellAccessoryCheckmark;
}
else
{
cell.accessoryType = UITableViewCellAccessoryNone;
}
}
}
Run Code Online (Sandbox Code Playgroud)
但问题是当单元格数超过一页时,如果选择单元格编号1,则每个页面中的行编号1也将被选中.
android ×2
datetime ×1
iphone ×1
java ×1
multilingual ×1
objective-c ×1
php ×1
streaming ×1
uitableview ×1