摘要: 下载完Android SDK后发现无法更新,原因是我们被墙了,所以需要使用代理来更新,或者直接把dl-ssl.google.com解析的IP改一下就可以了用文本编辑器打开文件C:\Windows\System32\drivers\etc\hosts,注意有些系统无法保存,需要先以管理员方式运行文本编辑器在最后添加一行74.125.237.1dl-ssl.google.com保存以后就可以正常更新Android SDK了 阅读全文
posted @ 2013-10-21 09:45 寂静之秋 阅读(214) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private static final String FILENAME="Test01.txt"; private Button btn01=null; private Button btn02=null; private TextView msg=null; @Override protected void onCreate(Bundle savedInstanceS... 阅读全文
posted @ 2013-10-18 09:53 寂静之秋 阅读(770) 评论(0) 推荐(0) 编辑
摘要: AndroidManifest.xml activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private Button btnCamera=null; private SurfaceView mySurfaceView =null; private Camera cam=null; private SurfaceHolder holder=null; private boolean preview... 阅读全文
posted @ 2013-10-10 09:51 寂静之秋 阅读(8067) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml grid_lyout.xml MainActivity.javapublic class MainActivity extends Activity { private Gallery myGallery=null; private SimpleAdapter mySimpleAdapter=null; private List> list=new ArrayList>(); private ImageSwitcher myImageSwitcher=null; @Override protected ... 阅读全文
posted @ 2013-10-08 16:03 寂静之秋 阅读(316) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private Button btn=null; private TextSwitcher myTextSwitcher=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo... 阅读全文
posted @ 2013-10-08 11:22 寂静之秋 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private Button btnLast=null; private Button btnNext=null; private ImageSwitcher myImageSwitcher=null; private int[] imgRes=new int[] { R.drawable.png_01, R.... 阅读全文
posted @ 2013-10-08 10:57 寂静之秋 阅读(982) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private Button btn01=null; private Button btn02=null; private Button btn03=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2013-10-08 09:16 寂静之秋 阅读(380) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private static final String myData[]=new String[] {"test","testabc","test111","test123"}; private AutoCompleteTextView myAuto=null; @Override protected void onCreate(Bundle savedIn 阅读全文
posted @ 2013-10-05 10:58 寂静之秋 阅读(158) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private EditText myInput=null; private TimePicker mytp=null; private DatePicker mydp=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa... 阅读全文
posted @ 2013-09-27 14:56 寂静之秋 阅读(2078) 评论(0) 推荐(0) 编辑
摘要: activity_main.xml MainActivity.javapublic class MainActivity extends Activity { private EditText myPassword=null; private CheckBox myCheckBox=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R... 阅读全文
posted @ 2013-09-26 09:52 寂静之秋 阅读(425) 评论(0) 推荐(0) 编辑
哈尔滨八零网