2014.9.11
回头看看,从开始编程到现在差不多一年半了。从一开始什么都不会,对编软件毫无概念的小白,成长为小弱弱。这一年主要编了iOS、Android视频下载,抓特务,guitartuner,遇到非常多的困难,也慢慢一一化解。作为一个小渣渣,新学到什么知识,解决了什么难题,没有记录下来,这太不好了,不是个好习惯。所以计划从今天开始记录一些东西,以防止忘记,日后有个回忆。
这几天。9号面试松下软件,不是很理想,经验是,请问沈阳有分公司嘛?今天投了东软基础软件事业部,太高大上,等面试吧。昨天总算是去拜见了一下大爷,欢声笑语的,心情轻松了很多。今天总算拖拖拉拉把opencv搭起来了,运行了算是helloworld的程序,开始学习opencv,为日后东软医疗招聘做做准备。说不定编个弹弹堂瞄准挂哈哈。今天就这些。
搭建opencv参考:
http://www.it165.net/pro/html/201405/14647.html
http://blog.youkuaiyun.com/liukun321/article/details/38373277
2014.9.17
松下被拒,东软也没消息,太打击了。。接到通知明天面试美团。前几天学习opencv,最近两天忙android 下载项目,记点有用的。
bitmap序列化:
http://blog.youkuaiyun.com/woaieillen/article/details/8199950
这样就可以将bitmap数据存到bin里了。
webview 获取favicon问题。 webview.getfavicon()返回null
http://stackoverflow.com/questions/3462582/display-the-android-webviews-favicon
onCreate 里加入 WebIconDatabase.getInstance().open(getDir("icons", MODE_PRIVATE).getPath());
但是getfavicon()还是时常返回null,WebChromeClient 的 onReceivedIcon()应该是比较靠谱的。
2014.9.25
在连续被松下东软360美团商泰拒之门外后,终于被新松要了,今天签了三方,不知道日后待遇怎么样。
android 将自己注册为浏览器。别的应用想要打开url的时候会弹出候选打开方式,把自己的app加入其中,的方法:
http://blog.vogella.com/2011/02/21/android-intents/
之前把它加入到
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
这里了,是没有效果的。
<activity
android:name="com.example.tabtest3.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" >
</action>
<category android:name="android.intent.category.DEFAULT" >
</category>
<data android:scheme="http"/>
</intent-filter>
</activity>
这样就可以了。
然后在activity里
Intent intent = getIntent();
if(Intent.ACTION_VIEW.equals(intent.getAction())){
不清楚if里的判断是何意。
10.28
jni 出现ReferenceTable overflow (max=1024) 错误
http://blog.youkuaiyun.com/xiechengfa/article/details/6228524
(env)->GetShortArrayElements
(env)->ReleaseShortArrayElements