- 浏览: 77947 次
- 性别:
- 来自: 苏州
最新评论
-
skying007:
,very good example. thank you ...
JMS WITH WEBSPHERE -
ycljf86:
magicalboy 写道 我想搞个Flex桌面录像程序,一定 ...
Flash Media Server 概念 -
ycljf86:
不好意思,最近忙,好久没来博客了,用免费的red5也可以的。
Flash Media Server 概念 -
magicalboy:
我想搞个Flex桌面录像程序,一定要用到FMS?
Flash Media Server 概念
文章列表
一个layout 里面有个imageview,之前的代码里我给imageview加入了onclick事件,但是里面啥也没做,然后我又给layout加了onclick事件,测试了下 一点反应都没有,这是因为 事件被imageview 消费了,但是因为里面啥都没做,所以没反应, 开始我以为哪里出错了,这些愚蠢的错误有时能耗费你半天,特记于此,以此为鉴!!!
最近集成chromcast 到项目里,总是在不停的报错,后来发现我theme用的不对,要得用
Theme.AppCompat 下面的theme, 之前我的activity 用的是 @android:style/Theme.NoTitleBar,
我也看了源码,这估计是因为inflate在加载xml的时候,用不同的theme来画view,然后不同的theme 有不同的写法
正确的theme
<style name="AppThemeCast"
parent="Theme.AppCompat.NoActionBar"&g ...
http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html
The "static" keyword has different meanings when it comes to "static variables" vs. "static classes" in Java.
A static variable is a variable that belongs to all instances of a particular ...
No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
这是因为你的progject structer 是选的 API22 ,但是某个库需要23来编译,所以你改成23就行了
http://stackoverflow.com/questions/32075498/error-retrieving-parent-for-item-no-resource-found-that-matches-the-given-name
我项目用了c ...
项目里要用 chromcast,所以集成了一个CastCompanionLibrary-android ,里面的build.gradle 有 compile 'com.google.android.gms:play-services-cast:7.8.+'
然后 在我的主项目里 有个 compile 'com.google.android.gms:play-services-analytics:7.5.0'
主项目依赖 cast项目
...
之前是api22,前阵换了api23 去编译,发现了不少错,先记录如下
http://stackoverflow.com/questions/32153318/httpclient-wont-import-in-android-studio
HttpClient was deprecated in API Level 22 and removed in API Level 23. You can still use it in API Level 23 and onwards if you must, however it is best to move to supported metho ...
android studio 上传项目到svn,你先要share 下你的项目。share完,你要update你的这个目录,否则会说this is not a working copy,导致不能提交,share其实就是在svn server上建个新的目录 (等同于你用svn mkdir -m "init project folder" http"//svnurl,然后svn checkout 这个url到本地目录,然后再把你的项目copy到这个目录里),然后和你本地的目录联系起来,这样你的所有的文件都变成红色的了,然后 再切换到project view 模式,然后右击 ...
RxJava/eventbus 事件处理
glide/picasso 图片处理
http://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en
greenDAO ORM
OKhttp/Volley 网络访问
代码架构风格
http://gold.xitu.io/entry/56964ebc60b2bb63891646d3/view
http://kaedea.com/2015/10/11/android-mvp-pattern/
记得之前 create 一个dialog , 点击外部是不会消失的,从4.0开始 默认给我自动消失了,
我们可以这样设置
在你的dialog 所用的 theme里加
<item name="android:windowCloseOnTouchOutside">false</item>
比如 super(context, R.style.accountsSetupDialog);
那么在accountsSetupDialog 加上这句就好了。
还有就是在new dialog(); 或者
AlertDialog.Builder.cr ...
由于项目需要
EJB3获取spring的上下文然后访问其中定义的bean
在调ejb方法前放置一个拦截器,他会读对应的配置文件然后咱如spring的上下文。这样我们就可以在ejb中用spring的bean了。获得的上下文是singleton的。
待会附上源代码。。。
spring3.0.5
spring2.5.6会有bug跑不起来。
跑下ant文件,会在build文件夹中打个ear的包。部署到websphere中就可以了。
开发环境:
websphere application server 7.0
websphere portal sever 6.1.5
websphere RAD
这三个相当的耗资源差不多直接占去1.5G内存
portal server和app server应该是两个不同的JVM吧。在管理控制台中看到的是两个java进程
我要在app server中部署ejb模块 或者portal service。在portal server中部署portlet。那么portlet要想访问ejb,只能通过remote来调用。下面就是我写的几个例子和步骤。
portlet生成的jsp的那些form属性都是一 ...
EJB3中
在同一个ear中,war中的web模块要想调用ear中的EJB模块(在ear中是一个jar包),那么你的客户端(war包)的JNDI方式得有点变化,不能像remote那样直接去lookup类的全路径,而是要在之前加一段(ejblocal:),以下是remote和local的调用方式
Remote:
context.lookup("com.test.HelloRemote")
Local:
context.lookup("ejblocal:com.test.HelloLocal")
要是你在local中直接调用类的全路径那么会报错的,这也是我在日 ...
not> and> or
where (A=1 or B=2) and C is not null
上面查的是 C不是null 并且 A=1or B=2
where A=1or B=2 and C is not null
上面查的是 C不是null 或则 A=1 或则 B=2
第一句不会查出 C=null的情况的。
第二句就会查出 C=null (只要符合A=1就能被查出)
第二句 会先查 B=2 and C is not null 的结果。然后再与 A=1运算。因为and>or
在log4j中,可以用JDBCAppender将log的内容存贮到数据库中.但是,只能将内容整体放到数据库的一个字段中,如果想将log的内容分开来存贮到不同的字段中,就要对JDBCAppender重写做扩展了.这几天看了一下log4j的源码.做了一下简单的扩展.
...
今天遇到个郁闷的问题。。我的项目中有错。classpath的一个错 但是不影响运行,就是运行一个app时 eclipse提示有错 问你是否继续,可以我配置的log4j却么有用了。 后来把这错改了。log4j居然有用了。