11 2019 档案

摘要:public class DbOpenHelper extends SQLiteOpenHelper { private static String name = "test.db"; /* 数据库名称 */ private static int version = 1; /* 数据库版本号 */ public DbOpenHelper(Context context) { ... 阅读全文
posted @ 2019-11-15 19:54 thomas_blog 阅读(396) 评论(0) 推荐(0) 编辑
摘要:出现问题原因:编译socket.dll时,用到了openssl库。使用libeay32.lib、ssleay32.lib生成socket.dll,就会报这样的错误解决办法:使用libeay32.dll、ssleay32.dll生成socket.dll 阅读全文
posted @ 2019-11-09 17:25 thomas_blog 阅读(11064) 评论(0) 推荐(0) 编辑
摘要:完成共享参数的读写public class SharedPreference { private Context context; public SharedPreference(Context context) { // TODO Auto-generated constructor stub this.context = context; } ... 阅读全文
posted @ 2019-11-06 16:43 thomas_blog 阅读(575) 评论(0) 推荐(0) 编辑
摘要:出现如下错误:DDMS files not found: xxx\hprof-conv.exeThe connection to adb is down, and a severe error has occuredPlease ensure that adb is correctly located at 'D:\tools\android-sdk\platform-tools\adb.exe'... 阅读全文
posted @ 2019-11-05 22:53 thomas_blog 阅读(316) 评论(0) 推荐(0) 编辑
摘要:private NotificationManager manager; private Notification.Builder builder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... 阅读全文
posted @ 2019-11-05 20:14 thomas_blog 阅读(607) 评论(0) 推荐(0) 编辑
摘要:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); ... 阅读全文
posted @ 2019-11-05 18:35 thomas_blog 阅读(604) 评论(0) 推荐(0) 编辑
摘要:private int hourOfDay, minute; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ... 阅读全文
posted @ 2019-11-05 15:43 thomas_blog 阅读(2990) 评论(0) 推荐(1) 编辑
摘要:private int year; private int monthOfYear; private int dayOfMonth; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setC... 阅读全文
posted @ 2019-11-05 15:27 thomas_blog 阅读(364) 评论(0) 推荐(0) 编辑
摘要:public class CustomDilaog { private Context context; private Dialog dialog; public CustomDilaog(Context context) { this.context = context; dialog = new Dialog(context); } ... 阅读全文
posted @ 2019-11-05 14:17 thomas_blog 阅读(1717) 评论(0) 推荐(0) 编辑
摘要:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); ... 阅读全文
posted @ 2019-11-05 13:10 thomas_blog 阅读(1172) 评论(0) 推荐(0) 编辑
摘要:protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewById(R.id.button); ... 阅读全文
posted @ 2019-11-05 13:09 thomas_blog 阅读(3238) 评论(0) 推荐(0) 编辑
摘要:添加一个数组 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewB... 阅读全文
posted @ 2019-11-04 19:23 thomas_blog 阅读(392) 评论(0) 推荐(0) 编辑
摘要:private Button button; private final CharSequence items[] = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 19:09 thomas_blog 阅读(2221) 评论(0) 推荐(0) 编辑
摘要:private Button button; private final CharSequence[] items = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 18:47 thomas_blog 阅读(3459) 评论(0) 推荐(0) 编辑
摘要:private Button button; private final CharSequence[] items = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 18:40 thomas_blog 阅读(1079) 评论(0) 推荐(0) 编辑
摘要:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (B 阅读全文
posted @ 2019-11-04 17:05 thomas_blog 阅读(828) 评论(0) 推荐(0) 编辑
摘要:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) this.findViewBy... 阅读全文
posted @ 2019-11-04 16:39 thomas_blog 阅读(208) 评论(0) 推荐(0) 编辑
摘要:public class MainActivity extends Activity { private Button button; private ActionMode actionMode; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save... 阅读全文
posted @ 2019-11-04 15:49 thomas_blog 阅读(887) 评论(0) 推荐(0) 编辑
摘要:public class MainActivity extends Activity { private ListView listView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon... 阅读全文
posted @ 2019-11-04 13:58 thomas_blog 阅读(547) 评论(0) 推荐(0) 编辑
摘要:@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); ... 阅读全文
posted @ 2019-11-03 17:11 thomas_blog 阅读(443) 评论(0) 推荐(0) 编辑
摘要:@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present.// getMenuInflater().inflate(R.menu.main, menu); ... 阅读全文
posted @ 2019-11-03 15:57 thomas_blog 阅读(346) 评论(0) 推荐(0) 编辑
摘要:属性介绍stretchColumns:列被拉伸shrinkColumns:列被收缩collapseColumns:列被隐藏举例测试 ... 阅读全文
posted @ 2019-11-03 14:36 thomas_blog 阅读(1141) 评论(0) 推荐(0) 编辑
摘要:android:layout_above="@+id/main"android:layout_below="@+id/main"android:layout_toLeftOf="@+id/main"android:layout_toRightOf="@+id/main" 阅读全文
posted @ 2019-11-01 19:48 thomas_blog 阅读(223) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientat 阅读全文
posted @ 2019-11-01 16:06 thomas_blog 阅读(948) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an 阅读全文
posted @ 2019-11-01 14:59 thomas_blog 阅读(1258) 评论(0) 推荐(0) 编辑
摘要:垂直布局 vertical 水平布局 horizontal 阅读全文
posted @ 2019-11-01 13:26 thomas_blog 阅读(291) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示