android
一个热爱bug的程序猿
这个作者很懒,什么都没留下…
展开
-
android中以项目依赖的方式引用其他项目
在j2ee中接触到一个项目管理技术:maven,当时很惊叹于maven管理jar包的那种思想,能够将所有的jar包统一集中管理起来,如果需要用到某些jar包,只需在项目的pom.xml中添加对该jar包的依赖即可,这样不会造成每个人都维护一份自己的jar包资源,还需要区别jar包版本的问题,可以说maven确实给项目管理带来了极大的方便。后面做android后,项目中也逐渐累计了一些通用的代码,比原创 2012-11-29 14:37:32 · 8771 阅读 · 0 评论 -
第十四天(Environment Detection)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/environment_package Environment Detection环境检测Contents 目录Operating System 操作系统Browser 浏览器Features 特性Commonly when buil原创 2013-08-19 23:43:58 · 889 阅读 · 0 评论 -
第七天(Using Device Profiles)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/profilesUsing Device Profiles使用设备配置ContentsSetting Up ProfilesDetermining the Active ProfileThe Launch ProcessSpecializing ViewsS原创 2013-08-08 00:10:52 · 906 阅读 · 0 评论 -
第三天(Intro to Applications with Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/apps_introIntro to Applications with Sencha Touchst应用程序简介ContentsAnatomy of an AppControllersStoresDevice ProfilesLaunch Proces原创 2013-08-02 15:30:20 · 1455 阅读 · 0 评论 -
第十五天(Using AJAX with Sencha Touch)
原文地址:原创 2013-08-21 14:49:10 · 2002 阅读 · 0 评论 -
第八天(Using Models)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/modelsUsing Models使用模型ContentsUsing ProxiesAssociationsValidationsAt its simplest, a Model is only a set of fields原创 2013-08-08 23:57:09 · 920 阅读 · 0 评论 -
第十六天(Theming Sencha Touch)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/themingTheming Sencha TouchContentsPlatformsThemesplatformConfigBase ThemeUpgrading Themes From Sencha Touch 2.1 to 2.2Lis原创 2013-08-21 23:25:42 · 2304 阅读 · 0 评论 -
第九天(How to Use Classes in Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/class_system原创 2013-08-12 13:37:33 · 1228 阅读 · 0 评论 -
第十天(Using Stores)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/stores Using Stores 使用数据存储Models are typically used with a Store, which is basically a collection of model instances. Setting up a store and lo原创 2013-08-12 23:41:39 · 648 阅读 · 0 评论 -
第十二天(Understanding and Using Events in Sencha Touch)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/eventsUnderstanding and Using Events in Sencha TouchContentsWhat Are Events?Listening to EventsConfig-driven EventsAdding Li原创 2013-08-15 11:07:56 · 1374 阅读 · 0 评论 -
st中元素访问
Ext.get:根据组件id来获取元素,返回的是dom节点而并非是组件!Ext.ComponentManager.get:根据组件id来获取组件,返回的是组件而非dom元素!Ext.fly:该方法为节点元素开辟一块内存,下一次使用该方法的元素将占据相同地址的内存,覆盖前一次使用该方法的节点元素。因为这些节点元素公用一块内存,因此可以提高一部分应用程序在使用时的性能。原创 2013-09-06 11:01:08 · 1127 阅读 · 0 评论 -
第十一天(Using Views in Your Applications)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/viewsUsing Views in Your Applications在你的应用中使用视图ContentsUsing Existing ComponentsA Real World ExampleCustom Configurations原创 2013-08-13 23:58:21 · 894 阅读 · 0 评论 -
sencha touch 我的公用类myUtil
/*公共类*/Ext.define('myUtil', { statics: { //store公用加载方法 storeLoadById: function (id) { var store = Ext.getStore(id); this.storeLoad(store); },转载 2013-09-05 11:21:10 · 1554 阅读 · 0 评论 -
sencha touch 自定义cardpanel控件 模仿改进NavigationView 灵活添加按钮组,导航栏,自由隐藏返回按钮
代码:/**模仿且改进NavigationView*返回时自动销毁视图,节约内存*/Ext.define('ux.CardPanel', { extend: 'Ext.Container', xtype: 'cardPanel', requires: ['Ext.TitleBar'], config: { //布局,type不可更改转载 2013-09-05 11:18:05 · 1645 阅读 · 0 评论 -
st build后自动将项目deploy到android project的asset/www目录的方法
最开始想直接修改build输出目录的路径,但是因为st build的时候会根据命令的不同类型(package、production、testing、native)将生成的文件置于不同的目录下,当然默认都是在build/app_name目录下,该目录下又以testing、package、production进行区分,故无法直接修改build输出路劲来达到目的,只能是在构建完后,将生成的目录copy到原创 2013-11-27 15:24:10 · 1612 阅读 · 3 评论 -
第六天(Controllers)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/controllersControllers控制器ContentsRelation to Ext.app.ApplicationLaunchingRefs and ControlRoutesBefore FiltersProfile-Specific Contr原创 2013-08-06 23:42:49 · 1069 阅读 · 0 评论 -
第十三天(Floating Components)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/floating_componentsFloating ComponentsContentsCentering a ComponentAbsolutely Positioning a ComponentModal Components原创 2013-08-19 10:59:20 · 978 阅读 · 0 评论 -
使用adb管理SQLite数据库
运行进入cmd界面,切换到sdk安装目录,进入F:\android\android-sdk-windows\platform-tools,输入adb shell回车,输入ls回车,数据库文件一般存在于data/data/package name/databases目录下,输入cd data回车,ls回车,继续cd data回车,ls下,发现有很多包名组织结构的列表,找到自己应用程序的包名,cd 包原创 2013-07-18 15:46:13 · 589 阅读 · 0 评论 -
解决[...]Could not find XXXXX.apk问题
发布android项目时,console窗口报如下错误:”[...]Could not find XXXXX.apk!“,出现该问题可能是版本的问题,解决方案如下:1、右击项目,properties,build path,libraries,将默认的android包去掉;2、单击左侧android标签,在project build target面板中选择该项目对应的原始target,单击apply原创 2013-07-18 15:45:55 · 966 阅读 · 0 评论 -
ActivityManager: Warning: Activity not started, its current task has been brought to the front
在部署android应用时,报错: ActivityManager: Warning: Activity not started, its current task has been brought to the front ,挺奇怪的,之前一直好好的,中午吃了个饭,睡了会,再启动就突然报这个错,我关掉模拟器,重新启动了下,ok,没问题了,可能是它也休息了下,还没苏醒吧……原创 2013-07-18 15:45:57 · 856 阅读 · 0 评论 -
getApplicationContext()与…activity.this区别
getApplicationContext()返回应用的上下文,其生命周期是整个应用程序,应用程序销毁,它即销毁;activity.this代表当前activity的上下文,其生命周期是该activity,该activity销毁,它即销毁原创 2013-07-18 15:46:06 · 623 阅读 · 0 评论 -
如何设置android模拟器的内存大小
进入C:\Documents and Settings\yananxin\.android\avd\ADT2.2.avd目录,其中yananxin是当前用户名,ADT2.2是当前使用模拟器的名称,该目录下有一个config.ini文件,用UltraEdit打开,找到hw.ramSize,该键用于设置内存大小,默认好像是256M,根据自己机子的内存改为合适的大小,我机子内存为2G,我将该值设为102原创 2013-07-18 15:45:59 · 5678 阅读 · 0 评论 -
在创建表时添加主键及外键关联
android SQLite数据库中创建表时添加主键及外键关联CREATE TABLE pruview( id INTEGER, module_name VARCHAR (50), father_id INTEGER, module_code VARCHAR (10), pruview VARCHAR (2), primar原创 2013-07-18 15:46:04 · 3627 阅读 · 0 评论 -
ERROR: the user data image is used by another emulator. aborting
在启动Android模拟器时出现以下错误,导致启动失败。ERROR: the user data image is used by another emulator. aborting。 原因:系统判断你当前已经启动了另外一个emulator,可能是某些正常操作或异常退出造成的。 解决方法:进入你avd目录下:如:C:\Documents and Settings\Administrator\.a原创 2013-07-18 15:46:08 · 528 阅读 · 0 评论 -
emulator-5554 disconnected!
启动android程序时报错:emulator-5554 disconnected!解决方法如下:window->show view->device->reset adb;原创 2013-07-18 15:46:11 · 483 阅读 · 0 评论 -
android adb管理工具
http://www.apkbus.com/android-17760-1-1.html原创 2013-07-18 15:46:15 · 626 阅读 · 0 评论 -
sencha-touch学习
以后每天翻译一篇sencha-touch api文档,在学习sencha-touch的同时锻炼下自己的英语能力,好长时间没学习英语了,不能扔了!原创 2013-07-30 22:44:25 · 838 阅读 · 0 评论 -
第二天(Using Components in Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/componentsUsing Components in Sencha Touch使用st中的组件ContentsWhat is a Component?What is a Container?Instantiating ComponentsConfigu原创 2013-08-01 11:15:30 · 1490 阅读 · 0 评论 -
第四天(Using Layouts in Sencha Touch)
原文链接:http://docs.sencha.com/touch/2.2.0/#!/guide/layoutsUsing Layouts in Sencha TouchContentsIntro and HBoxVBox LayoutCard LayoutFit LayoutDockingPack and Align (HBox)Pack and Alig原创 2013-08-04 18:32:36 · 905 阅读 · 0 评论 -
第五天(Using the Data Package in Sencha Touch)
Using the Data Package in Sencha Touch使用st中的数据包The data package is responsible for loading and saving all data in a Sencha Touch app. Most of the actions involving the data package are related t原创 2013-08-05 23:40:55 · 913 阅读 · 0 评论 -
第一天(Getting Started with Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/getting_started什么是sencha touch?sencha touch 能够让你快速、容易的构建以html5为基础运行于手机设备上的app应用,并且使运行于浏览器或者混合型脚本中的app具有原生app相似的用户体验。它支持安卓、ios、windows pho原创 2013-07-30 23:48:27 · 1699 阅读 · 4 评论 -
sencha touch的list组件item不能点击了
今天在做一个列表的功能,列表的每一项均可以点击,先试了一下最简单的,单击子项时弹出一个提示,郁闷的是连这个最简单的都出不来,不是因为listener写的不对,因为在点击item项时,该项很明显的没有任何反应,就跟点了页面上的空白位置样,连颜色都没有改变下,实际上,list的item在点击时会有颜色的变化!百思不得其解,打开另一个类似的页面一行行比照,一直以为是config哪里配置的错误导致的,原创 2013-12-09 11:06:02 · 1314 阅读 · 0 评论