共 39 篇文章 |
|
图1 buildtools版本不匹配。二、查找自己buildtools的版本号,更改导入项目的buildtools版本号。打开build.gradle文件,图4的红色框框对应的就是AS使用的buildtools的版本号,这里是27.0.3,说明笔者的AS使用的buildtools版本号为27.0.3。点击app->Properties,由绿色框框标注的就是我们buildtools的版本号,显示的就是AS使用的buildstools... 阅386 转0 评0 公众公开 20-09-01 10:26 |
删除SQLITE数据库前N行或指定行问题delete from table where Num in(select Num from table limit 8)t删除SQLITE数据库前N行问题。(要能用于SQLITE,用C编) 假设数据库有一个Num字段,为整型,是按升序排列的。假如要删除前8行数据 delete from table where Num in(select Num from table limit 8)delete from TABLE where id = (select id f... 阅185 转0 评0 公众公开 20-07-29 13:35 |
<span style="font-size:12px;">public class DataBaseHelper extends SQLiteOpenHelper{ //The Android''''''''s default system path of your application database.if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be c... 阅209 转1 评0 公众公开 20-07-25 15:44 |
public CommomDialog(Context context, int themeResId, String content, OnCloseListener listener, int position, List<UserInfo> userInfo, int num) { super(context, themeResId);this.userInfo = userInfo;ViewHolder> { List<UserInfo> userInfos = new ArrayList<>();public RecyAdapter(List<UserInfo> us... 阅55 转0 评0 公众公开 20-07-25 15:09 |
【Android】SQLite数据库基本用法详解(极简洁) Android操作SQLite数据库(极简洁,极易懂)当然,不是说Android数据库只能是SQLite,其它的也有办法实现,只不过,AndroidSDK中自带的是SQLite。//插入数据按钮 case R.id.insert: //创建存放数据的ContentValues对象 ContentValues values = new ContentValues(); values.put("name&qu... 阅420 转1 评0 公众公开 20-07-25 15:08 |
阅433 转0 评0 公众公开 20-07-23 20:48 |
android读取sqlite数据库的数据并用listview显示。此时问题来了,一个班有60个人,读取到ListView中针对每一个Item都要要求adapter"给我一个视图"(getView),如果一个班有上亿的人要为每一个Item都新建一个视图显然是不可能的。 阅572 转2 评0 公众公开 20-07-22 16:16 |
-- 名称 --> <TextView android:layout_width="130dp" android:layout_height="wrap_content" android:id="@+id/name" /> <!-- 电话 --> <TextView android:layout_width="150dp" android:layout_height="wrap_content" android:id="@+id/phone" /> <!--... 阅30 转0 评0 公众公开 20-07-22 15:53 |
[java] view plaincopy/** * 获取默认的文件路径 * * @return */ public static String getDefaultFilePath() { String filepath = ""; File file = new File(Environment.getExternalStorageDirectory(), "abc.txt"); if (file.exists()) { filepath = file.getAbsolutePath(... 阅379 转0 评0 公众公开 20-07-17 20:03 |
Android小项目合集(经典教程)包含十五个Android开发应用实例。 阅194 转0 评0 公众公开 20-07-17 17:46 |