============问题描述============ 我自定义了一个View对象,对象内在行项目上添加了一个ImageButton对象,对象的图片使用src属于设置,然后在按钮的OnClick事件内通过setBackgroundResource方法设置了ImageButton对象的图片,但两个属...
分类:
移动平台 时间:
2014-11-11 15:42:33
收藏:
0 评论:
0 赞:
0 阅读:
255
============问题描述============ 我想实现微信朋友圈的发状态的功能,但是不知道应该怎么在服务器端建表。是建一个表统一存入用户名,发的文字,发的图片等信息吗?有人说SQL不适合存放图片。求前辈指导如何在服务器端建表,如何存储用户发的文字图片,感激不尽。 ...
分类:
移动平台 时间:
2014-11-11 15:42:23
收藏:
0 评论:
0 赞:
0 阅读:
333
要编写社交网络客户端程序,可以大体上分为4个主要的步骤下面我们按照这个流程,介绍一下:1、引入Accounts和Social框架工 程中需要引入Accounts和Social框架,Accounts框架中有进行用户账户认证所需类,Social框架中SLRequest类是我们所需 要的。添加具体步骤是选...
分类:
移动平台 时间:
2014-11-11 15:40:13
收藏:
0 评论:
0 赞:
0 阅读:
156
============问题描述============ 我在网上找了很多资料,用代码实现将自己的APK安装到/system/app项目测试需要,让自己的service不被第三方软件kill掉这里有一篇文章http://chongye89.iteye.com/blog/1412488我试过了,但是没...
分类:
移动平台 时间:
2014-11-11 15:39:23
收藏:
0 评论:
0 赞:
0 阅读:
297
Android客户端项目框架,自己的理解,非常好用,推荐给大家,谢谢!...
分类:
移动平台 时间:
2014-11-11 14:28:13
收藏:
0 评论:
0 赞:
0 阅读:
326
iOS 测试程序安装步骤
一.获取设备标识(uuid)
比较简单办法安装 iTools ,它有Mac和Windows版,下载地址
http://pro.itools.cn/
安装后把测试设备(iPad,iPhone )接上数据线插入电脑的USB口,此时iTools应该能识别测试设备。
点击设备信息查看设备标识这一栏,它也称为uuid,拷贝下来后发给开发人员.
...
分类:
移动平台 时间:
2014-11-11 14:25:43
收藏:
0 评论:
0 赞:
0 阅读:
315
首先我们来看下dex文件的格式:
class_defs的结构:
(1) class_idx 描述具体的 class 类型 ,值是 type_ids 的一个 index 。值必须是一个 class 类型 ,不能是数组类型或者基本类型 。
(2) access_flags 描述 class 的访问类型 ,诸如 public , final , static 等 。在 dex...
分类:
移动平台 时间:
2014-11-11 14:25:13
收藏:
0 评论:
0 赞:
0 阅读:
349
public class MD5test {
/**
* @param args
* @throws NoSuchAlgorithmException
*/
public static void main(String[] args) throws NoSuchAlgorithmException {
String pwd = "123456";
MessageDigest ...
分类:
移动平台 时间:
2014-11-11 14:24:53
收藏:
0 评论:
0 赞:
0 阅读:
266
时间换时间:
数据的异步加载 分批加载.
开机加速.
时间换空间:
分页.
空间换时间:
everything.exe
音乐 图库 在开机启动后, sd卡被挂载 生成数据库.
快图浏览.
空间换空间:
8G内存.
ramdisk...
分类:
移动平台 时间:
2014-11-11 14:24:43
收藏:
0 评论:
0 赞:
0 阅读:
233
public class DensityUtils {
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
public static int dip2px(Context context, float dpValue) {
final float scale = context.getRe...
分类:
移动平台 时间:
2014-11-11 14:24:33
收藏:
0 评论:
0 赞:
0 阅读:
280
1、
2、private String getLocalMacAddress() {
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo info = wifi.getConnectionInfo();
return info.getM...
分类:
移动平台 时间:
2014-11-11 14:24:03
收藏:
0 评论:
0 赞:
0 阅读:
255
/** 获取存储卡路径 */
File sdcardDir=Environment.getExternalStorageDirectory();
/** StatFs 看文件系统空间使用情况 */
StatFs statFs=new StatFs(sdcardDir.getPath());
/** Block 的 size*/
Long blockSize=statFs.get...
分类:
移动平台 时间:
2014-11-11 14:23:53
收藏:
0 评论:
0 赞:
0 阅读:
286
1)public class StartupReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Intent startupintent = new Intent(context,StrongTracks...
分类:
移动平台 时间:
2014-11-11 14:23:43
收藏:
0 评论:
0 赞:
0 阅读:
241
android:name="android.permission.ACCESS_NETWORK_STATE" />
private boolean getNetWorkStatus() {
boolean netSataus = false;
ConnectivityManager cwjManager = (ConnectivityManager)...
分类:
移动平台 时间:
2014-11-11 14:23:23
收藏:
0 评论:
0 赞:
0 阅读:
256
public void setBrightness(int level) {
ContentResolver cr = getContentResolver();
Settings.System.putInt(cr, "screen_brightness", level);
Window window = getWindow();
LayoutParams attributes =...
分类:
移动平台 时间:
2014-11-11 14:23:03
收藏:
0 评论:
0 赞:
0 阅读:
284
1、界面启动后开启服务
public class UploadlogActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
sup...
分类:
移动平台 时间:
2014-11-11 14:22:03
收藏:
0 评论:
0 赞:
0 阅读:
364
android屏幕旋转方法总结...
分类:
移动平台 时间:
2014-11-11 14:21:53
收藏:
0 评论:
0 赞:
0 阅读:
332
public class TestsuActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(save...
分类:
移动平台 时间:
2014-11-11 14:21:33
收藏:
0 评论:
0 赞:
0 阅读:
219
============问题描述============ 编程基础不是很好...我知道有接口那么一个东西,但是不会用....求个简单的例子....平常安卓编程的时候,比如按钮点击事件...那就要实现OnClickListener的接口...
privateclasslistentimplements...
分类:
移动平台 时间:
2014-11-11 14:18:33
收藏:
0 评论:
0 赞:
0 阅读:
192
============问题描述============ 各们大侠,本对android不了解,问一个方案可不可以实现:一个已经发布的APP,这个APP进去后有一个button,正常情况是我们是用手点击这个button,就会触发这个button的事件;现在我想开发一个android应用,用这个应用去触...
分类:
移动平台 时间:
2014-11-11 14:16:53
收藏:
0 评论:
0 赞:
0 阅读:
268