10 2015 档案

摘要:1.This is the website to downloadFactory Images for Nexus Deviceshttps://developers.google.com/android/nexus/images?hl=enand choose the nexus5 one.2.下... 阅读全文
posted @ 2015-10-31 18:42 龟窝 阅读(354) 评论(0) 推荐(0)
摘要:设置 Acitivity 所在 window 的属性 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (... 阅读全文
posted @ 2015-10-28 12:14 龟窝 阅读(117) 评论(0) 推荐(0)
摘要:1.在项目目录中,右键app——New——Folder—— Assets Folder2.把.ttf或者.oft文件拷进这个assets文件夹3.在onCreate()中Typeface typeface = Typeface.createFromAsset(getAssets(), "TpldKh... 阅读全文
posted @ 2015-10-28 10:49 龟窝 阅读(298) 评论(0) 推荐(0)
摘要:在mac上,选中需要的代码,然后Option+(shift)+Command+L全部重新排列!!爽飞! 阅读全文
posted @ 2015-10-28 10:24 龟窝 阅读(566) 评论(0) 推荐(0)
摘要:这两篇博文分别讲的很好:ListView:http://www.cnblogs.com/noTice520/archive/2011/12/05/2276379.htmlGridViw:http://blog.csdn.net/hellogv/article/details/4567095详细使用参... 阅读全文
posted @ 2015-10-26 17:53 龟窝 阅读(154) 评论(0) 推荐(0)
摘要:参考博文:http://havee.me/mac/2013-12/how-to-install-and-use-homebrew.htmlError: GitHub API rate limit exceeded for ip. See http://developer.github.com/v3/... 阅读全文
posted @ 2015-10-26 11:20 龟窝 阅读(1730) 评论(0) 推荐(0)
摘要:代码如下:#include #include #include void example(IplImage* image){ // Create some windows to show the input // and output images in. // cvName... 阅读全文
posted @ 2015-10-25 18:29 龟窝 阅读(372) 评论(0) 推荐(0)
摘要:#include #include int main(int argc, char** argv){ cvNamedWindow("Example2", CV_WINDOW_AUTOSIZE); CvCapture* capture = cvCreateFileCapture("... 阅读全文
posted @ 2015-10-25 17:44 龟窝 阅读(276) 评论(0) 推荐(0)
摘要:直接看代码好了#include #include //这里主要用到窗口显示int main(int argc, char** argv){ cvNamedWindow("Image", CV_WINDOW_AUTOSIZE); IplImage *img=cvLoadIm... 阅读全文
posted @ 2015-10-25 16:39 龟窝 阅读(205) 评论(0) 推荐(0)
摘要:(1)安装Homebrew:(需要Ruby)注:因为snow leopard 以后已经自带Ruby了,所有可以不用自己安装Ruby。看一下Homebrew的官网: http://mxcl.github.com/homebrew/ 进入后,可以看到安装方法,你只要在Terminal(终端)中输入:ru... 阅读全文
posted @ 2015-10-25 14:56 龟窝 阅读(806) 评论(0) 推荐(0)
摘要:ContextDocumentaction/intent-filter 阅读全文
posted @ 2015-10-24 17:54 龟窝 阅读(128) 评论(0) 推荐(0)
摘要:当然首先要理清楚到底是web服务端造成,php造成的,还是数据库造成的。需要在头文件里UTF-8 "; }mysql_close($con);?> 阅读全文
posted @ 2015-10-24 17:50 龟窝 阅读(842) 评论(0) 推荐(0)
摘要:1.关闭windows自带防火墙2.httpd.conf文件权限apache 2.4.9 外网访问的问题参考此文:http://blog.csdn.net/lysc_forever/article/details/432054713.80端口有没有被占用(IIS等)4.缺少msvcr110.dll是... 阅读全文
posted @ 2015-10-24 13:57 龟窝 阅读(184) 评论(0) 推荐(0)
摘要:select.php"; $arr[]=$row; }echo json_encode($arr);mysql_close($con);?>echo出的数据格式如下[{"id":"43","firstName":"\u8c2d","lastName":"\u72d7\u72d7","age... 阅读全文
posted @ 2015-10-23 10:56 龟窝 阅读(306) 评论(0) 推荐(0)
摘要:直接看代码,注意在manifest中加入Internet权限1 package com.turtle920.volleydemo;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import andr... 阅读全文
posted @ 2015-10-23 00:31 龟窝 阅读(364) 评论(0) 推荐(0)
摘要:参考此blog写的非常的好http://www.cnblogs.com/devinzhang/archive/2012/02/13/2350070.htmlMainActivity.java 1 import android.support.v7.app.AppCompatActivity; 2 i... 阅读全文
posted @ 2015-10-22 17:30 龟窝 阅读(263) 评论(0) 推荐(0)
摘要:首先在http://hc.apache.org/downloads.cgi下载HttpClient包直接看代码 1 import android.os.Handler; 2 import android.os.Message; 3 import android.support.v7.app.A... 阅读全文
posted @ 2015-10-22 12:02 龟窝 阅读(353) 评论(0) 推荐(0)
摘要:首先需要建一个实体类 Person.java 来对应json需要注意的是实体类中的变量名必须和json传过来的key值完全一样(大小写) 1 public class Person { 2 private String name; 3 private int age; 4 p... 阅读全文
posted @ 2015-10-22 01:33 龟窝 阅读(291) 评论(0) 推荐(0)
摘要:直接看代码 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.on... 阅读全文
posted @ 2015-10-21 17:07 龟窝 阅读(239) 评论(0) 推荐(0)
摘要:1. Intent对象的Activity启动标记说明:FLAG_ACTIVITY_BROUGHT_TO_FRONT:应用程序代码中通常不设置这个标记,而是由系统给单任务启动模式的Activity的设置。FLAG_ACTIVITY_CLEAR_TASK:如果给Intent对象添加了这个标记,那么在Ac... 阅读全文
posted @ 2015-10-11 21:54 龟窝 阅读(448) 评论(0) 推荐(0)
摘要:首先需要下载core和android两个jarhttp://ormlite.com/releases/然后拷贝到libs文件夹下并且添加为库具体的使用看标程:School.java 1 package com.turtle920.ormlitedemo; 2 3 import com.j256.o... 阅读全文
posted @ 2015-10-11 21:49 龟窝 阅读(303) 评论(0) 推荐(0)
摘要:首先需要implements1 public class MainActivity extends AppCompatActivity implements OnItemLongClickListener再绑定1 ListView listView = (ListView)findViewById... 阅读全文
posted @ 2015-10-11 21:23 龟窝 阅读(719) 评论(0) 推荐(1)
摘要:a、Activity1发送: Intent intent = new Intent();intent.setClass(activity1.this, activity2.class);//描述起点和目标Bundle bundle = new Bundle();//创建Bundle对象bundle... 阅读全文
posted @ 2015-10-09 12:22 龟窝 阅读(231) 评论(0) 推荐(0)
摘要:1 Intent intent = new Intent(Intent.ACTION_VIEW);2 intent.setData(Uri.parse("geo:20.000,50.000"));3 startActivity(... 阅读全文
posted @ 2015-10-09 11:04 龟窝 阅读(193) 评论(0) 推荐(0)
摘要:java中: 1 public class MainActivity extends Activity implements OnCheckedChangeListener{ 2 3 private Switch aSwitch; 4 5 @Override 6 prot... 阅读全文
posted @ 2015-10-09 10:14 龟窝 阅读(461) 评论(0) 推荐(0)
摘要:1 InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);//这两行是弹出软键盘2 imm.showSoftInput(textView,... 阅读全文
posted @ 2015-10-09 10:09 龟窝 阅读(240) 评论(0) 推荐(0)
摘要:1 public class MyActivity extends Activity 2 { 3 private KeyListener listener; 4 private EditText editText; 5 6 public void onCreate(...... 阅读全文
posted @ 2015-10-08 17:18 龟窝 阅读(324) 评论(0) 推荐(0)
摘要:关于设置listener监听onClicked事件的步骤分析Steps:1.tell android you are interested in listening to a button click2.bring your xml button inside java3.tell your jav... 阅读全文
posted @ 2015-10-08 13:27 龟窝 阅读(267) 评论(0) 推荐(0)
摘要:1 1 @Override2 protected void onCreate(Bundle savedInstanceState) {3 super.onCreate(savedInstanceState);4 setContentView(R... 阅读全文
posted @ 2015-10-08 12:33 龟窝 阅读(716) 评论(0) 推荐(0)
摘要:1 import android.content.Context; 2 import android.database.SQLException; 3 import android.database.sqlite.SQLiteDatabase; 4 import android.database.... 阅读全文
posted @ 2015-10-07 20:12 龟窝 阅读(300) 评论(0) 推荐(0)
摘要:1 import android.content.Context; 2 import android.widget.Toast; 3 4 /** 5 * Created by apple on 10/7/15. 6 */ 7 public class Message { 8 publi... 阅读全文
posted @ 2015-10-07 17:25 龟窝 阅读(202) 评论(0) 推荐(0)