摘要:
下载完Android SDK后发现无法更新,原因是我们被墙了,所以需要使用代理来更新,或者直接把dl-ssl.google.com解析的IP改一下就可以了用文本编辑器打开文件C:\Windows\System32\drivers\etc\hosts,注意有些系统无法保存,需要先以管理员方式运行文本编辑器在最后添加一行74.125.237.1dl-ssl.google.com保存以后就可以正常更新Android SDK了 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
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.... 阅读全文
摘要:
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);... 阅读全文
摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文