上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: This is the only code that changes between the first and second code snippets: dlg.ShowModal(procedure(ModalResult: TModalResult) begin if ModalResult = mrOK then // if OK was pressed and an item is selected, pick it if dlg.ListBox1.ItemIndex >= 0 then edit1.Text := dlg.List... 阅读全文
posted @ 2013-10-19 11:15 无悔的勇气 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 用以下代码中的接口实现控制蓝牙的开、关及详细信息unit Androidapi.JNI.BluetoothAdapter;// (c) RedTitan Technology 2013// JNI BLUETOOTH import demo// Note - REQUIRES - PROJECT OPTIONS - USES PERMISSIONS - BLUETOOTHinterfaceusesAndroidapi.JNIBridge,Androidapi.JNI.JavaTypes, Classes;type/////////////////////////// BluetoothDevi 阅读全文
posted @ 2013-10-19 11:11 无悔的勇气 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 本篇文章我们来看一下delphi xe5 在android程序里怎样启动照相机并获取所拍的照片,本代码取自xe自带打sample,路径为:C:\Users\Public\Documents\RAD Studio\12.0\Samples\MobileCodeSnippets\AccessCameraApp1、前两步骤新建firemonkey mobile application 然后 选择blank application2、界面摆放如下: toolbar 、image 、actionlist2、右键点击new standard action然后选择 TakePhotoFromCameraAc 阅读全文
posted @ 2013-10-19 11:10 无悔的勇气 阅读(341) 评论(0) 推荐(0) 编辑
摘要: C:\Users\Public\Documents\RAD Studio\12.0\Samples\FireMonkeyMobile例子中的绑定方式如下图:1、拖拽一个listview到界面上,然后用绑定向导2、选择listview3、选择tprototypebindsource4、点击增加5、选择前九个类型6、在绑定设计界面将 colorname1 拖拽至 item.text 就完成了帮点显示颜色名称了如图7、imagelist 如图:选择listview的itemapperance属性为 imagelistitem然后在绑定向导里 将contactbitmap1 拖拽至 itm.bitma 阅读全文
posted @ 2013-10-19 11:04 无悔的勇气 阅读(240) 评论(0) 推荐(0) 编辑
摘要: procedure SetBack(const AAction : JString); //后台运行。。varIntent: JIntent;beginIntent:= TJIntent.JavaClass.init(AAction);intent.addCategory(TJIntent.JavaClass.CATEGORY_HOME);Intent.setFlags(TJIntent.JavaClass.FLAG_ACTIVITY_NEW_TASK);SharedActivityContext.startActivity(Intent);end;调用SetBack(TJIntent.Jav 阅读全文
posted @ 2013-10-19 11:03 无悔的勇气 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 手机号不是存在SIM卡上的,SIM卡只有一个串号.在运营商的服务器上有手机号和序号对应的一张表.所以你SIM卡办理遗失,运营商只要把新SIM卡的串号和你原来的手机号绑定即可.获取手机号的唯一办法是收个短信,短信里面有你的手机号码.所以很多程序为了获取手机号会要求你注册时发短信,然后它给你回个短信.usesAndroidapi.JNI.GraphicsContentViewText, Androidapi.JNIBridge,Androidapi.JNI.Telephony, Androidapi.JNI.JavaTypes, FMX.Helpers.Android;varTelephonyMa 阅读全文
posted @ 2013-10-19 11:02 无悔的勇气 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 其实都可以通过intent和URI调用系统功能.Windows程序员可以理解成是ShellExecute.这个是万金油.可以有调用各种功能.后面会介绍.1.短信息.很简单方法a.不使用Intent而是直接发短信.smsManager对应的Delphi代码应该是:usesAndroidapi.JNI.JavaTypes,Androidapi.JNI.Telephony;varj: JSmsManager;beginj := tjsmsmanager.Create;j.sendTextMessage(stringtojstring('137114553XX'), nil, stri 阅读全文
posted @ 2013-10-19 11:01 无悔的勇气 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 在VCL中,关闭程序的主窗体也就意味着程序的主循环结束,主程序自然而然结束。所以在主窗体中使用窗体的关闭函数(Close)即可,如下:procedure TfrmMain.btncloseClick(Sender: TObject);begin Close;end;在FMX中,由Activity替代了Form的概念,虽然TForm类仍然存在,但MainForm通过关闭函数无法结束程序,使用Application.Terminate均无效,调整为:uses FMX.Platform.Android;procedure TForm2.SpeedButton1Click(Sender: TObjec 阅读全文
posted @ 2013-10-19 10:56 无悔的勇气 阅读(370) 评论(0) 推荐(0) 编辑
摘要: nc命令详解NetCat,在网络工具中有“瑞士军刀”美誉,其有Windows和Linux的版本。因为它短小精悍(1.84版本也不过25k,旧版本或缩减版甚至更小)、功能实用,被设计为一个简单、可靠的网络工具,可通过TCP或UDP协议传输读写数据。同时,它还是一个网络应用Debug分析器,因为它可以根据需要创建各种不同类型的网络连接。通常的Linux发行版中都带有NetCat(简称nc),但不同的版本,其参数的使用略有差异。NetCat 官方地址:http://netcat.sourceforge.net/安装[root@server ~]# yum install -y nc[root@ser 阅读全文
posted @ 2013-10-18 13:17 无悔的勇气 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 49指定Filter Builder打开/保存过滤文件的默认路径解决:uses ..., cxFilterControlDialog; procedure TForm.GridView1FilterControlDialogShow( Sender: TObject); begin TfmFilterControlDialog(Sender).OpenDialog.InitialDir := 'D:/' end;****************************************************************************50在主从Tab 阅读全文
posted @ 2013-10-15 20:12 无悔的勇气 阅读(375) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页