1. Show a web page.
Uri uri= Uri.parse("Your URL wana navigate");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
2. Show position on the map
Uri uriLocaltionOnGPS = Uri.parse("geo:[coordinate.x],[coordinate.y]");
Intent intent = new Intent(Intent.ACTION_VIEW, uriLocaltionOnGPS);
startActivity(intent);
3. Phone call
Uri uri = Uri.parse("tel:Tel number you wana call");
Intent intent = new Intent(Intent.ACTION_DIAL, uri);
startActivity(intent);
4. Phone Call directly
Uri uri = Uri.parse("tel:Tel number you wana call");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
5 Uninstall application
Uri uri = Uri.fromParts("package", "xxx", null);
Intent intent = new Intent(Intent.ACTION_DELETE, uninstallUri);
startActivity(intent);
6. Install app
Uri uri = Uri.fromParts("package", "xxx", null);
Intent intent = new Intent(Intent.ACTION_PACKAGE_ADDED, uri);
startActivity(intent);
7. Play media file
Uri uri = Uri.parse("file:///sdcard/Music/1.mp3");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
8. Send mail to
Uri emailUri = Uri.parse("mailto:xxxx@gmail.com");
Intent intent = new Intent(Intent.ACTION_SENDTO, emailUri);
startActivity(intent);
9 Send mail
Intent intent = new Intent(Intent.ACTION_SEND);
String[] tos = { "xxxx@gmail.com" };
String[] ccs = { "xxxx@gmail.com" };
intent.putExtra(Intent.EXTRA_EMAIL, tos);
intent.putExtra(Intent.EXTRA_CC, ccs);
intent.putExtra(Intent.EXTRA_TEXT, "body");
intent.putExtra(Intent.EXTRA_SUBJECT, "subject");
intent.setType("message/rfc882");
Intent.createChooser(intent, "Choose Email Client");
startActivity(intent);
10. Send SMS
Uri uri = Uri.parse("tel:Phone number");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.putExtra("sms_body", "Mail content");
intent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
11. Send SMS directly
Uri smsToUri = Uri.parse("smsto://Phone number");
Intent intent = new Intent(Intent.ACTION_SENDTO, smsToUri);
intent.putExtra("sms_body", "yyyy");
startActivity(intent);
12. Send Ritch SMS
Uri uri = Uri.parse("content://media/external/images/media/23");
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra("sms_body", "yyyy");
intent.putExtra(Intent.EXTRA_STREAM, uri);
intent.setType("image/png");
startActivity(intent);
2.2.2 Media Box
aligned(8) class MediaHeaderBox extends FullBox(‘mdhd’, version, 0) { if (version==1) { unsigned int(64) creation_time; unsigned int(64) modification_time; unsigned int(32) timescale; unsigned int(64) duration; } else { // version==0 unsigned int(32) creation_time; unsigned int(32) modification_time; unsigned int(32) timescale; unsigned int(32) duration; } bit(1) pad = 0; unsigned int(5)[3] language; // ISO-639-2/T language code unsigned int(16) pre_defined = 0; }
Field
Type
Comment
box size
4
box大小
box type
4
box类型
version
1
box版本,0或1,一般为0。
creation time
4
创建时间(相对于UTC时间1904-01-01零点的秒数)
modification time
4
修改时间
time scale
4
文件媒体在1秒时间内的刻度值,可以理解为1秒长度的时间单元数
一般情况下视频的 都是90000
duration
4
该track的时间长度
language
2
媒体语言码
pre-defined
2
2.2.2.2 Handler Reference Box
aligned(8) class HandlerBox extends FullBox(‘hdlr’, version = 0, 0) { unsigned int(32) pre_defined = 0; unsigned int(32) handler_type; const unsigned int(32)[3] reserved = 0; string name; }
Field
Type
Comment
box size
4
box大小
box type
4
box类型
version
1
box版本,0或1,一般为0。
flags
3
pre-defined
4
handler_type
4
‘vide’ Video track
‘soun’ Audio track
‘hint’ Hint track
reserved
12
0
name
string
字符串 track type name
例子
00 00 00 2168 64 6C 7200 00 00 00 00 00 00 00 ; ...!hdlr........
76 69 64 65 00 00 00 00 00 00 00 00 00 00 00 00 ; vide............
00aligned(8) class VideoMediaHeaderBox extends FullBox(‘vmhd’, version = 0, 1) { template unsigned int(16) graphicsmode = 0; // copy, see below template unsigned int(16)[3] opcolor = {0, 0, 0}; }
Field
Type
Comment
box size
4
box大小
box type
4
box类型
version
1
box版本,0或1,一般为0。
flags3
flags
graphicsmode
2
specifies a composition mode for this video track, from the following enumerated set,
which may be extended by derived specifications:
copy = 0 copy over the existing image
opcolor
2*3
is a set of 3 colour values (red, green, blue) available for use by graphics modes
例子:
00 00 00 14 76 6D 68 640000 00 01 00 00 00 00 ; ....vmhd........
00 00 00 00 ; ....
Sound Media Header Box(smhd)
aligned(8) class SoundMediaHeaderBox extends FullBox(‘smhd’, version = 0, 0) { template int(16) balance = 0; const unsigned int(16) reserved = 0; }
Field
Type
Comment
box size
4
box大小
box type
4
box类型
version
1
box版本,0或1,一般为0。
flags
3
flags
balance
2
立体声平衡,[8.8]格式值,一般为0,-1.0表示全部左声道,1.0表示全部右声道
reserved
2
0
例子:
00 00 00 10 73 6D 68 64 00 00 00 0000 0000 00 ; ....smhd........
Hint Media Header Box(hmhd)
aligned(8) class HintMediaHeaderBox extends FullBox(‘hmhd’, version = 0, 0) { unsigned int(16) maxPDUsize; unsigned int(16) avgPDUsize; unsigned int(32) maxbitrate; unsigned int(32) avgbitrate; unsigned int(32) reserved = 0; }
aligned(8) class DataEntryUrlBox (bit(24) flags) extends FullBox(‘url ’, version = 0, flags) { string location; } aligned(8) class DataEntryUrnBox (bit(24) flags) extends FullBox(‘urn ’, version = 0, flags) { string name; string location; } aligned(8) class DataReferenceBox extends FullBox(‘dref’, version = 0, 0) { unsigned int(32) entry_count; for (i=1; i • entry_count; i++) { DataEntryBox(entry_version, entry_flags) data_entry; } }
1、分割列表项,只需在分割的位置添加一个<li>元素,并将该元素的data-role属性值设为list-divider,表示该<li>元素是一个分割列表项。在默认情况下,普通列表项的主题颜色为浅灰色,分割列表项的主题颜色为蓝色。
2、示例代码:
<!DOCTYPE HTML >
<HTML>
<TITLE> New Document </TITLE>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<link href="/blog_article/Css/jquery.mobile-1.2.0.min.css" rel="Stylesheet" type="text/css"/>
<script src="/blog_article/Js/jquery-1.8.3.min.js" type"text/javascript"></script>
<script src="/blog_article/Js/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
</HEAD>
<BODY>
<div data-role="page">
<div data-role="header"><h1>头部栏</h1></div>
<ul data-role="listview" >
<li data-role="list-divider">图书 </li>
<li><a href="#">计算机</a></li>
<li><a href="#">社科</a></li>
<li><a href="#">文艺</a></li>
<li data-role="list-divider">音乐 </li>
<li><a href="#">流行</a></li>
<li><a href="#">摇滚</a></li>
</ul>
</div>
</BODY>
</HTML>
3、效果图预览: