02 2012 档案
(原创)批处理中变量的用法
摘要:批处理中变量的用法@echo off:SEcho Please input the start partset/p start=if "%start%"=="" goto SEcho Please input the middle partSet /p middle=Echo Please input the end partSet /p end=Set /p all= the above three part =%start%%middle%%end%@echo %all%pause 阅读全文
posted @ 2012-02-29 15:38 higirle 阅读(426) 评论(0) 推荐(0)
批处理文章集锦
摘要:http://www.5dmail.net/html/2005-10-17/20051017181702.htmhttp://www.cnblogs.com/glaivelee/archive/2009/10/07/1578737.html 阅读全文
posted @ 2012-02-29 10:41 higirle 阅读(156) 评论(0) 推荐(0)
(批处理之二):setlocal enabledelayedexpansion (详解)
摘要:setlocal enabledelayedexpansion 设置本地为延迟扩展。其实也就是:延迟变量,全称"延迟环境变量扩展",在cmd执行命令前会对脚本进行预处理,其中有一个过程是变量识别过程,在这个过程中,如果有两个%括起来的如%value%类似这样的变量,就会对其进行识别,并且查找这个变量对应的值,再而将值替换掉这个变量,这个替换值的过程,就叫做变量扩展,然后再执行命令。在解释之前,先看几个例子的区别:例一:set value=kkkkkkkecho %value%将这段代码保存到一个后缀为bat的文本文件中。然后打开dos,进到对应目录下,执行这个文件,结果如下 阅读全文
posted @ 2012-02-29 10:37 higirle 阅读(1100) 评论(0) 推荐(0)
【原创】我的批处理命令例子
摘要:@echooff:Startchoice/cSR/m"Startthebrandingwork(S),rollback(R)"iferrorlevel2gotoRiferrorlevel1gotoSREM==========================================================================================================:SEchopleaseinputyourMobilityfolderandenter,like:E:\Bob_Code\Mobilityset/paa=cd/d% 阅读全文
posted @ 2012-02-29 10:31 higirle 阅读(404) 评论(0) 推荐(0)
(收藏)Android 的各种listener and states event
摘要:1. Android Listeners:http://developer.android.com/reference/android/view/View.html 2. States event:1). http://stackoverflow.com/questions/8411418/android-button-states-programmatically-in-java-not-xml2). http://stackoverflow.com/questions/5092649/android-how-to-update-the-selectorstatelistdrawable-. 阅读全文
posted @ 2012-02-24 11:12 higirle 阅读(237) 评论(0) 推荐(0)
(转)Android 、BlackBerry 文本对齐方式对比
摘要:http://tech.cncms.com/shouji/android/77024_2.htmlAndroid和BlackBerry文本对齐方式的写法不一样。首先Android文本对齐有相对的概念,也就是说当使用文本对齐,你还需要设定相对哪个坐标点才能进行,否则的话就不能达到想要的效果,而BlackBerry则不需要,只要设置对齐方式,就会相对于所画区域的大小自动对齐。Android是使用Paint和Canvas共同控制绘图,而BlackBerry只要Graphics就可以了。请看Android的代码:Java代码intimageWidth=200;intimageHeight=200;B. 阅读全文
posted @ 2012-02-22 17:44 higirle 阅读(950) 评论(0) 推荐(0)
(转)androd之绘制文本(FontMetrics)
摘要:转:http://fonter.iteye.com/blog/474526Canvas 作为绘制文本时,使用FontMetrics对象,计算位置的坐标。 它的思路和java.awt.FontMetrics的基本相同。 FontMetrics对象它以四个基本坐标为基准,分别为:・FontMetrics.top・FontMetrics.ascent・FontMetrics.descent・FontMetrics.bottom 该图片将如下 PainttextPaint=newPaint(Paint.ANTI_ALIAS_FLAG);textPaint.setTextSize(35);textPa. 阅读全文
posted @ 2012-02-21 17:00 higirle 阅读(402) 评论(0) 推荐(0)
(转)Android中尺寸单位杂谈
摘要:转: http://blog.csdn.net/muyu114/article/details/6393295 http://blog.csdn.net/zhangqijie001/article/details/5894872讲解一在android系统中单位DP也就是DIP:device independent pixels(设备独立像素). dip : device independent pixels(设备独立像素). 不同设备有不同的显示效果,这个和设备硬件有关,一般我们为了支持WVGA、HVGA和 QVGA 推荐使用这个,不依赖像素。 px : pixels(像素). 不同... 阅读全文
posted @ 2012-02-21 16:54 higirle 阅读(285) 评论(0) 推荐(0)
Android文字居中
摘要:在宽width高height的画布上画一字符串,使字符串水平竖直居中:水平居中很简单,paint.setTextAlign(Align.CENTER);然后drawText的x坐标设置为width / 2即可,竖直居中稍显麻烦,可以使用FontMetrics对象计算文字高度,然后计算baseline,使文字垂直居中,代码如下:Paint paint = new Paint();paint.setColor(Color.BLUE);paint.setTextSize(18);paint.setTextAlign(Align.CENTER);FontMetrics fontMetrics = p. 阅读全文
posted @ 2012-02-21 16:50 higirle 阅读(655) 评论(0) 推荐(0)
Setting Text to Image On Android and Adjudt the text font size based on the android resolution
摘要:1. Setting Text to Image On Android2. Adjudt the text font size based on the android resolution3. 文字居中: paint.setTextAlign(Align.CENTER);然后drawText的x坐标设置为width / 2即可privatefloattoPixel(Resourcesres,intdip){floatpx=TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,dip,res.getDisplayMetrics());re. 阅读全文
posted @ 2012-02-21 16:47 higirle 阅读(364) 评论(0) 推荐(0)
How to get the android resolution
摘要:1.方法一Displaydisplay=getWindowManager().getDefaultDisplay();Config.screenWidth=display.getWidth();Config.screenHeight=display.getHeight();2. 方法二:DisplayMetricsmetrics=newDisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(metrics);intscreenWidth=metrics.widthPixels;intscreenHeight=met. 阅读全文
posted @ 2012-02-21 16:42 higirle 阅读(304) 评论(0) 推荐(0)
Image
摘要:<Button android:id ="@+id/Image_Button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableTop="@drawable/ic_launcher" android:drawablePadding="-40px" android:text="OK" />One lightweight way of do 阅读全文
posted @ 2012-02-17 18:04 higirle 阅读(147) 评论(0) 推荐(0)
How to set location in BlackBerry simulator
摘要:Options->Typing and Language ->Language and Input method ->Display language. 阅读全文
posted @ 2012-02-17 12:55 higirle 阅读(241) 评论(0) 推荐(0)
BlackBerry JDE (Java development Environment)
摘要:http://swdownloads.blackberry.com/Downloads/contactFormPreload.do?code=DC727151E5D55DDE1E950767CF861CA5&dl=9C589A7D215D5454FB860AB26550B88D&check1=A# 阅读全文
posted @ 2012-02-17 12:47 higirle 阅读(245) 评论(0) 推荐(0)
BlackBerry: Sample Application Overview
摘要:1.Java Sample Appshttp://docs.blackberry.com/en/developers/subcategories/?userType=21&category=Java+Sample+Apps2. Localization demohttp://docs.blackberry.com/en/developers/deliverables/33805/BlackBerry Java Application DevelopmentLocalization demo Sample Application OverviewTo view a complete li 阅读全文
posted @ 2012-02-17 09:35 higirle 阅读(172) 评论(0) 推荐(0)
How to import sample Android projects to Eclipse
摘要:Technical ResourcesFilter: Showing technical resources tagged with Sample:http://developer.android.com/resources/browser.html?tag=sampleHow to import sample Android projects to Eclipse For those beginners like me these are the steps we need to follow:1- In Eclipse->Window->Preferences->Andr 阅读全文
posted @ 2012-02-17 09:30 higirle 阅读(486) 评论(0) 推荐(0)
BlackBerry Localization sample (2): Localizing a Blackberry Java application
摘要:http://blog.boris-wach.de/permalink/61Localizing a Blackberry Java application IT-Stuff Add commentsNov 272011 IntroductionWhen writing an application you should consider localizing it. Especially when planning to roll it out in different coutries. The Blackberry OS supports this as a built in feat. 阅读全文
posted @ 2012-02-16 17:46 higirle 阅读(301) 评论(0) 推荐(0)
BlackBerry Localization sample (1)
摘要:http://us.blackberry.com/devjournals/resources/journals/sep_2006/localization.jspLocalization is the process by which an application's user interface is adapted to meet the default language that is currently set on a BlackBerry® device. The concept of localization is becoming more important 阅读全文
posted @ 2012-02-16 17:45 higirle 阅读(512) 评论(0) 推荐(0)
Android Localization
摘要:1. Localization:http://developer.android.com/guide/topics/resources/localization.html2. demo: http://developer.android.com/resources/tutorials/localization/index.html3. For testing, just need to set the Settings ->Language & keyBoard ->select language(the language is combined both the lang 阅读全文
posted @ 2012-02-16 15:09 higirle 阅读(236) 评论(0) 推荐(0)
BlackBerry Localiztion Websites
摘要:1). http://docs.blackberry.com/zh-cn/developers/deliverables/12002/Localizing_BlackBerry_Application_projects_655976_11.jsp2). http://stackoverflow.com/questions/568079/blackberry-localization-resource-bundle3).http://www.blackberry.com/developers/startpages/java/1.5.0/Java/guide/index.html 4). Loc. 阅读全文
posted @ 2012-02-13 18:14 higirle 阅读(173) 评论(0) 推荐(0)
主要的智能手机商店
摘要:https://market.android.com/appsIpone :app store WP7: Market placeBlackBerry App World 阅读全文
posted @ 2012-02-10 15:26 higirle 阅读(158) 评论(0) 推荐(0)
How to deploy on BlackBerry
摘要:How to deploy on BlackBerry1. BlackBerry ->sign ->import existing keys2. BlackBerry ->Package ->Project(s)3. BlackBerry ->sign ->Sign withe signature tool4. BlackBerry ->Load project on DeviceNote: 1. it's very difficulity to debug on device, try to reproduce it on emulaor i 阅读全文
posted @ 2012-02-10 13:28 higirle 阅读(348) 评论(0) 推荐(0)
How to access the folder of Android
摘要:1. download the 豌豆荚2. install it and search the "Root Explorer" (or OI File Manager")3. Click the IO.., you can explorer the folder you are using. 阅读全文
posted @ 2012-02-09 14:09 higirle 阅读(244) 评论(0) 推荐(0)
(转) Android 数字签名
摘要:http://xusaomaiss.iteye.com/blog/1396324 Android 数字签名 在Android系统中,所有安装到系统的应用程序都必有一个数字证书,此数字证书用于 标识应用程序的作者和在应用程序之间建立信任关系,如果一个permission的protectionLevel为signature,那么就只有那些 跟该permission所在的程序拥有同一个数字证书的应用程序才能取得该权限。Android使用Java的数字证书相关的机制来给apk加盖数字证 书,要理解android的数字证书,需要先了解以下数字证书的概念和java的数字证书机制。Android系统要求.. 阅读全文
posted @ 2012-02-08 15:24 higirle 阅读(305) 评论(0) 推荐(0)
Debug Android with Android phone.
摘要:1. 根据不同的Phone,你可能需要设置(setting or 设置) =》Applications= >Development=>USB debugging must be enabled, other wise, the device can not be found when you want to debug and attach it. 阅读全文
posted @ 2012-02-08 12:53 higirle 阅读(251) 评论(0) 推荐(0)
BlackBerry device debug
摘要:If you want to debug with really device you have to download and install the Desktop Software for black berry, the following is the download link.https://swdownloads.blackberry.com/Downloads/quickdownload.do 阅读全文
posted @ 2012-02-08 12:50 higirle 阅读(274) 评论(0) 推荐(0)
(原创)如何导入android中的sample例子到eclipse中
摘要:将android中的sample例子导入到eclipse中 SDK中带有很多的例子,那么我们怎么样导入到eclipse中呢?方法很简单,如下:1. 新建android工程,选择Create project from existing sample,2. 选择sdk的version,click Next.3. 这时你会看到很多samples, 从下拉列表中选择你要导入的例子,finish.注意:前提是你已经下载了samples,并且选择的是对应的sdk版本。 阅读全文
posted @ 2012-02-07 17:30 higirle 阅读(3424) 评论(0) 推荐(0)
(收藏)Android VoIP
摘要:http://www.voipvoip.com/android/ 阅读全文
posted @ 2012-02-07 16:38 higirle 阅读(198) 评论(0) 推荐(0)
Android学习笔记(1) Android 布局管理器 之 LinearLayout
摘要:<?xmlversion="1.0"encoding="utf-8"?><RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="fill_parent"android:layout_height="fill_parent"android:padding="10dp"android:orientation="verti 阅读全文
posted @ 2012-02-07 10:22 higirle 阅读(342) 评论(0) 推荐(0)
如何在logcat中显示log内容及其filter
摘要:1. 1). eclipse->windows->show view->Devices->点一下debug 2).如何设置 filter来只显示我们所关心的log信息。首先log有很多类型log.v(String tag,String msg); // 冗余消息log.d(String tag,String msg); // 调试消息log.i(String tag,String msg); // 普通消息log.w(String tag,String msg); //警告消息log.e(String tag,String msg); // 错误消息 关于您说的建立一个 阅读全文
posted @ 2012-02-06 13:52 higirle 阅读(2633) 评论(0) 推荐(0)
(转)在eclipse中查看android SDK的源代码
摘要:在eclipse中查看android SDK的源代码2010年12月3日 iStar 发表评论 阅读评论 刚开始学习Android,总是习惯在类名上按下F3(eclipse下)查看源代码,而下载Android SDK时默认是不下载源代码的,如何才能方便地在eclipse查看android的源代码呢?其实很简单:首先下载SDK的源代码,可以在http://rgruet.free.fr/public/下载到:android-1.5-cupcake-src.zip 04-Oct-2009 03:07 21.6Mandroid-1.6_r1-donut-src.zip 04-Oct-2009 03:. 阅读全文
posted @ 2012-02-06 13:48 higirle 阅读(245) 评论(0) 推荐(0)
[经验技巧] 利用WindowsPhone7_SDK_Full.rar_for_xp,在xp下安装sdk,部署xap软件的教程
摘要:很多朋友都在苦恼xp下无法安装sdk,进而无法在xp下部署软件。结合本人实测经验,总结了一下最简单的方法。1、下载dotNetFx40_Full_setup,并安装。官方下载地址:本帖隐藏的内容http://www.microsoft.com/downloa ... &displaylang=en2、下载WindowsPhone7_SDK_Full.rar_for_xp,解压后直接安装。下载地址:本帖隐藏的内容http://115.com/file/efmk4n9s本帖隐藏的内容http://dl.dbank.com/c0af5h9qwf[url]PS:安装过程中会出现一些错误提示,不 阅读全文
posted @ 2012-02-04 21:53 higirle 阅读(499) 评论(0) 推荐(0)
在XP 下搭建windows phone 7开发环境
摘要:确保在此之前,以安装了vs2010引用:http://www.coolxap.com/thread-16898-1-1.html在xp下部署xap软件的方法只需要修改一个文件就能简单完成。第一步:安装 dotNetFx40_Full_setup。官方下载地址: http://www.microsoft.com/downloa ... &displaylang=en第二步:安装SDK1. 下载 Windows Phone 7 Sdk 的安装包vm_web.exe微软官方下载地址:http://www.microsoft.com/downloads/en/details.aspx?Fami 阅读全文
posted @ 2012-02-04 15:29 higirle 阅读(358) 评论(0) 推荐(0)
(收藏)深入理解Android中的消息机制
摘要:1. http://www.cnblogs.com/Greenwood/archive/2011/02/27/1966472.html2.http://www.linuxidc.com/Linux/2011-07/39301.htm3.http://www.2cto.com/kf/201201/117906.html4.http://blog.sina.com.cn/s/blog_5688414b0100wgt7.html5.http://my.unix-center.net/~Simon_fu/?p=652 阅读全文
posted @ 2012-02-03 18:07 higirle 阅读(289) 评论(0) 推荐(0)
Android: 如何利用Handler处理和发送消息来实现页面刷新的功能
摘要:Class OverviewA Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that thread's message queue. When you create a new Handler, it is bound to the thread / message queue of t 阅读全文
posted @ 2012-02-03 17:39 higirle 阅读(5918) 评论(0) 推荐(0)
(收藏)智能手机开发
摘要:http://disanji.net/ http://tech.it168.com/focus/201011/winphone7/index.html 阅读全文
posted @ 2012-02-03 13:06 higirle 阅读(321) 评论(0) 推荐(0)
Html5相关文章链接
摘要:1. html5,andriod相关教程http://www.cnmsdn.com/2. W3C Schoolhttp://www.w3school.com.cn/xml/xml_intro.asp 3. disanji.nethttp://disanji.net/category/html5-doc/ 阅读全文
posted @ 2012-02-03 12:56 higirle 阅读(249) 评论(0) 推荐(0)
Eclipse快捷键大全(转载)
摘要:Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后)Shift+Ctrl+Enter 在当前行. 阅读全文
posted @ 2012-02-03 12:24 higirle 阅读(240) 评论(0) 推荐(0)
(转)Android最简单的图片裁剪方法
摘要:Android最简单的图片裁剪方法,非使用系统裁切功能网上搜了很多,都要使用Canvas,这个绝对是绕远了……经实验,图片裁切只要一句就可以 ,下面是我写的一个按正方形区域裁剪的方法 /** * 按正方形裁切图片 */ public static Bitmap ImageCrop(Bitmap bitmap) { int w = bitmap.getWidth(); // 得到图片的宽,高 int h = bitmap.getHeight(); int wh = w > h ? h : w;// 裁切后所取的正方形区域边长 int retX = w > h ? (w - h) / 阅读全文
posted @ 2012-02-03 11:31 higirle 阅读(19541) 评论(1) 推荐(2)
Andriod中的数据绑定 :SimpleCursorAdapter篇
摘要:public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags) Since: API Level 11Standard constructor.Parameterscontext The context where the ListView associated with thisSimpleListItemFactory is runninglayout resource identifier of a layout file that defines 阅读全文
posted @ 2012-02-03 09:31 higirle 阅读(987) 评论(0) 推荐(0)
Andriod升级到4.0 带来的编译问题“'Must Override a Superclass Method' ”
摘要:'Must Override a Superclass Method' Errors after importing a project into Eclipsehttp://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips1. Eclipse Galileo you go to Eclipse -> Preferences menu item, then select Java and Com 阅读全文
posted @ 2012-02-01 13:09 higirle 阅读(229) 评论(0) 推荐(0)