摘要: private function buttonClick():void{ //弹窗在全局居中 slideImagePop2Change= SlideImagePop2Change( PopUpManager.createPopUp(this.root,SlideImagePop2Change,true)); PopUpManager.centerPopUp(slideImagePop2Ch... 阅读全文
posted @ 2011-05-16 23:06 lovecd 阅读(209) 评论(0) 推荐(0) 编辑
摘要: _level0.myTextArea.depthChild0._alpha=0 阅读全文
posted @ 2011-05-16 23:06 lovecd 阅读(130) 评论(0) 推荐(0) 编辑
摘要: <?xml version=”1.0″ encoding=”utf-8″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” addedToStage=”stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler)” xmlns:ns... 阅读全文
posted @ 2011-05-16 22:56 lovecd 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 假设有如下类: com.aya.ispp.UserMgmt; 该类含有deleteAll()方法 var a:Class=getDefinitionByName("com.aya.ispp.UserMgmt") as Class; var b:ClassFactory=new ClassFactory(a); (b.newInstance() as UserMgmt).deleteAll(); 要... 阅读全文
posted @ 2011-05-16 22:51 lovecd 阅读(351) 评论(0) 推荐(0) 编辑
摘要: <mx:TabNavigator xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"> <mx:Move id="hideEffect" xTo="{-this.stage.width}" /> <mx:Move id="showEffect" xFrom="{this.stage.width}"/>... 阅读全文
posted @ 2011-05-16 22:51 lovecd 阅读(275) 评论(0) 推荐(0) 编辑
摘要: public String getLocalIpAddress() { try { for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface intf = en.nextElement(); for (... 阅读全文
posted @ 2011-05-15 10:35 lovecd 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 如果您在开发一个需要实时更新数据的应用程序,当有新的数据的时候提醒用户查看新的数据,那么您需要在后台开起一个Service,然后实时的去网 络上获取数据,但是如果用户关机重启,您的Service可能就消失了!那么怎么样保证开机后你的Service还活跃的在用户的手机里偷偷的从网络上获 取数据呢? 很简单,我们只要实现开机自启动即可,android实现开机自启动可能是移动操作系统中最简单的了,我们只... 阅读全文
posted @ 2011-05-15 10:34 lovecd 阅读(271) 评论(0) 推荐(0) 编辑
摘要: ConnectivityManager con=(ConnectivityManager)getSystemService(Activity.CONNECTIVITY_SERVICE); boolean wifi=con.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnectedOrConnecting(); boolean internet... 阅读全文
posted @ 2011-05-15 10:29 lovecd 阅读(257) 评论(0) 推荐(0) 编辑
摘要: import android.provider.Settings.Secure; private String android_id = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); 阅读全文
posted @ 2011-05-15 10:27 lovecd 阅读(257) 评论(0) 推荐(0) 编辑
摘要: public void getInstalledApps(){ try { /*列出当前设备的所有安装程序*/ List<ApplicationInfo> appInfos = getPackageManager().getInstalledApplications(0); for(ApplicationInfo appInfo : appInfos){ boolean flag = ... 阅读全文
posted @ 2011-05-15 10:19 lovecd 阅读(396) 评论(0) 推荐(0) 编辑