当前位置: 编程技术>移动开发
本页文章导读:
▪监听是不是卸载成功 监听是否卸载成功
DeleteReceiver mDeleteReceiver = new DeleteReceiver();//自定义的广播接收类,接收到结果后的操作
IntentFilter filter = new IntentFilter(
Intent.ACTION_PACKAGE_DATA_CLEARED);
filter.addAction(I.........
▪ sap 有关问题 sap 问题
sap代码:DATA : BEGIN OF man, name(20) TYPE C, high TYPE p DECIMALS 2, weight TYPE p DECIMALS 2,END OF man.DATA : man1 LIKE TABLE OF man.DATA : name TYPE rlgrap-filename, typa TYPE rlgrap-filetype.man-name = '张叁.........
▪ 两种小提示信观 两种小提示信看
第一种:
Toast.makeText(Calculator.this
,
"The buttonface was 1."
, Toast.LENGTH_SHORT).show();
第二种
private
void
openOptionsDialog() {
new
Aler.........
[1]监听是不是卸载成功
来源: 互联网 发布时间: 2014-02-18
监听是否卸载成功
DeleteReceiver mDeleteReceiver = new DeleteReceiver();//自定义的广播接收类,接收到结果后的操作
IntentFilter filter = new IntentFilter(
Intent.ACTION_PACKAGE_DATA_CLEARED);
filter.addAction(Intent.ACTION_PACKAGE_REMOVED);
filter.addDataScheme("package");
registerReceiver(mDeleteReceiver, filter); //注册广播和过滤
Intent undeleteIntent = new Intent(Intent.ACTION_DELETE, packageURI);
startActivity(undeleteIntent);
[2] sap 有关问题
来源: 互联网 发布时间: 2014-02-18
sap 问题
sap代码:
DATA : BEGIN OF man,
name(20) TYPE C,
high TYPE p DECIMALS 2,
weight TYPE p DECIMALS 2,
END OF man.
DATA : man1 LIKE TABLE OF man.
DATA : name TYPE rlgrap-filename,
typa TYPE rlgrap-filetype.
man-name = '张叁'.
man-high = '1.68'.
man-weight = 120.
INSERT man INTO TABLE man1.
man-name = '刘志'.
man-high ='1.78'.
man-weight = 160.
INSERT man INTO TABLE man1.
man-name = '李志'.
man-high = '1.58'.
man-weight = 110.
INSERT man INTO man1 INDEX 2.
name = 'c:\temp\testa.txt'.
typa = 'dat'.
call function 'DOWNLOAD'
EXPORTING
"codepage = 'testa'
filename = name
filetype = typa
item = '文件测试'
TABLES
data_tab = man1
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
others = 7.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
ENDIF.
错误信息: 如下error.jpg图片
sap代码:
DATA : BEGIN OF man,
name(20) TYPE C,
high TYPE p DECIMALS 2,
weight TYPE p DECIMALS 2,
END OF man.
DATA : man1 LIKE TABLE OF man.
DATA : name TYPE rlgrap-filename,
typa TYPE rlgrap-filetype.
man-name = '张叁'.
man-high = '1.68'.
man-weight = 120.
INSERT man INTO TABLE man1.
man-name = '刘志'.
man-high ='1.78'.
man-weight = 160.
INSERT man INTO TABLE man1.
man-name = '李志'.
man-high = '1.58'.
man-weight = 110.
INSERT man INTO man1 INDEX 2.
name = 'c:\temp\testa.txt'.
typa = 'dat'.
call function 'DOWNLOAD'
EXPORTING
"codepage = 'testa'
filename = name
filetype = typa
item = '文件测试'
TABLES
data_tab = man1
EXCEPTIONS
invalid_filesize = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
others = 7.
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
ENDIF.
错误信息: 如下error.jpg图片
[3] 两种小提示信观
来源: 互联网 发布时间: 2014-02-18
两种小提示信看
第一种:
Toast.makeText(Calculator.this
,
"The buttonface was 1."
, Toast.LENGTH_SHORT).show();
第二种
private
void
openOptionsDialog() {
new
AlertDialog.Builder(
this
)
.setTitle("weight / (height * height) is :"
+ BMI)
.setMessage("Android BMI Calc"
)
.show();
}
openOptionsDialog();
最新技术文章: