摘要: 工作需要使用数据库进行大量的插入工作,故此想通过使用c进行这部分工作,经过查资料,发现一篇文章比较实用:方法1.使用源码sqlite3.h,sqlite3.c进行编译。方法2.使用android编译好得到得libsqlite.so库 具体方法: 1) 使用adb命令 adb pull /system... 阅读全文
posted @ 2015-06-28 00:51 sinde12 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: 最近做网络这块,需要获取wifi 局域网内在线。 以下为查资料所得写的有点乱 , 有需要的朋友慢慢看吧以通过测试: public class WifiDemoActivity extends Activity {private Button mTestButton;private WifiManager mWifiManager;private TextView iptextview;staticintthreadCount = 0;booleanisOver = false;staticintpingSize = 0;public ArrayList<Map<String, Ob 阅读全文
posted @ 2012-06-12 18:31 sinde12 阅读(1672) 评论(0) 推荐(0) 编辑
摘要: 个人封装的方法:以下为在wifi链接上的情况下进行public static ArrayList<String> getIp(Context c) {final ArrayList<String> ipAddressList = new ArrayList<String>();final WifiManager mWifiManager = (WifiManager) c.getSystemService(Context.WIFI_SERVICE);final WifiInfo wifiInfo = mWifiManager.getConnectionInf 阅读全文
posted @ 2012-06-12 18:19 sinde12 阅读(484) 评论(0) 推荐(0) 编辑
摘要: (1)下载 mac ndk (2)配置环境 在终端输入:pico .bash_profile 进行编辑 export PATH=$PATH:/Users/Sinde/Documents/android-sdk-mac export PATH=$PATH:/Users/Sinde/Documents/android-ndk-r8 export PATH=$PATH:/Users/Sinde/Documents/cocos2d-1.0.1-x-0.9.2 ANDROID_NDK_ROOT=/Users/Sinde/Documents/android-ndk-r8 export ANDROID_.. 阅读全文
posted @ 2012-06-04 18:37 sinde12 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: /** * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles 阅读全文
posted @ 2012-05-24 18:36 sinde12 阅读(681) 评论(0) 推荐(0) 编辑
摘要: Activity:publicclassHarbourActivityextendsActivityimplementsOnGestureListener {ViewFlipperflipper;GestureDetectordetector;EditTexteditText;Buttonbutton;@SuppressWarnings("deprecation")@OverridepublicvoidonCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView( 阅读全文
posted @ 2012-05-24 09:26 sinde12 阅读(194) 评论(0) 推荐(0) 编辑