ADT "Unexpected value from nativeGetEnabledTags: 0"

<p style="white-space:normal;color:#555555;margin-top:0px;margin-bottom:10px;padding:5px;border:0px;vertical-align:baseline;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu sans Mono', 'Bitstream Vera sans Mono', 'Courier new', monospace, serif;overflow:auto;width...
2016-09-11 10:17 | 3002次阅读 | 0评

生活备忘录(android io 的小应用)

public class MainActivity extends Activity { String PASS = "myPassWord.txt"; Button addbtn, readbtn, modifybtn, savebtn; EditText addet, modifyet; TextView tv; ScrollView sv; @Override protected void onCreate(Bundle savedInstanceState) { super...
2016-08-27 18:43 | 2845次阅读 | 0评

k金回收小助手

public class MainActivity extends Activity { private TextView tv1, tv2, tv3, tv4, tv5, tv6, tv7, tv8, tv9, tv10, tv11, tv12, tv13, tv14; private EditText et1, et2, et3; private Button bt1; @Override protected void onCreate(Bundle savedInstanc...
2016-08-21 18:56 | 1604次阅读 | 0评

自动出题整数计算

public class Calculate { /** * @param args */ private final static char[] arrayoperate = { '+', '-', 'x', '/' }; public char getOperate() { Random rdm = new Random(); return arrayoperate[rdm.nextInt(4)]; } public int getData2() {...
2016-08-20 01:09 | 1413次阅读 | 0评

SQLite简单归纳

    SQLite 數據庫  SQLite 版本控制類 SQLiteOpenHelper  @Override onCreate();//只有在設備上不存在要獲取的數據庫時才會調用。  @Override onUpgrade();     // 在更新表結構時, 只需要修改構造方法中的數據庫版本號,并在onUpgrade()方法中更新表結...
2016-07-27 16:45 | 2178次阅读 | 0评

Context 理解(网转)

总结 总之Context在Android系统中的地位很重要,它几乎无所不能,但它也不是你想用就能随便用的,谨防使用不当引起的内存问题。如果还有疑问或者想了解更多内容,可以去看我的:视频课程 本文参考阅读: http://blog.csdn.net/guolin_blog/article/details/47028975 http://blog.csdn.net/yanbober/article/details/45967639 文/尹star(简书作者) 原文链接:http://www.jianshu.com/p/94e0f9ab3f1d 著作权归作者所有,转载请...
2016-05-18 13:21 | 11323次阅读 | 0评

httpweb 线程处理

public class Httpthread extends Thread{ String url; WebView webView; Handler handler; public Httpthread(String url, WebView webView,Handler handler){ this.url=url; this.webView=webView; this.handler=handler; } public void run(){ try { ...
2016-04-07 00:34 | 10853次阅读 | 0评

WebView

myweb = (WebView) findViewById(R.id.web);//找不到id时设置Project-><span s...
2016-04-02 23:35 | 10276次阅读 | 0评

歪胡demo

public class MainActivity extends Activity implements OnClickListener { private TextView tv; private Button bt1; private Button bt2; private Button bt3; private Button bt4; private Button bt5; private Button bt6; private Button bt7; private But...
2016-01-20 20:08 | 1391次阅读 | 0评

View Canvas paint

public class MyView extends View{ private int count=0; public MyView(Context context) { super(context); } public void onDraw(Canvas canvas){ int color = 0; switch(count){ case 0: color=Color.BLUE; break; case 1: color=Color....
2016-01-10 09:25 | 1354次阅读 | 0评

SQLiteOpenHelper的使用

public class MainActivity extends AppCompatActivity { public Button firstButton; private Button secondButton; private SQLiteDB dbHelper; private final String dbName="helperdb"; @Override protected void onCreate(Bundle savedInstanceState...
2016-01-07 23:54 | 1602次阅读 | 0评

android多线下载1

public class MainActivity extends Activity { private Button btn; private ProgressDialog dialog; //进度条 private MyAsyncTasck myAsyncTasck; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
2016-01-03 14:52 | 875次阅读 | 0评

android bundle 简单传值

package com.example.postvalue; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import andr...
2016-01-01 16:41 | 927次阅读 | 0评

安卓简易对话框

package com.example.dialog; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface;...
2015-12-31 16:00 | 684次阅读 | 0评

Gallery_ImageSwitcher控件

public class MainActivity extends Activity { private Gallery gallery; private ImageSwitcher switcher; private List<Integer> lst; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCont...
2015-12-30 15:52 | 740次阅读 | 0评

自定义适配器(对象/图像)类

package com.example.android1228; import java.util.List; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; public class OneImageAdapter exten...
2015-12-28 23:12 | 715次阅读 | 0评

自定义适配器()MainActivity

public class MainActivity extends Activity { private ListView listView; private List<User> userList; private List<String> list; private List<String> list2; @Override protected void onCreate(Bundle savedInstanceState) { super....
2015-12-28 23:07 | 657次阅读 | 0评

百度地图定位

public class MainActivity extends Activity {     private MapView mMapView;     private LocationClient locationClient;     private BaiduMap baiduMap;     private boolean firstLocatio...
2015-10-27 11:17 | 1412次阅读 | 0评
浏览147164次