也许一些使用alarmmanager做定时任务的同学遇到过这样的问题:设定alarm后,进入设置-->应用程序管理-->强行停止app后,定时任务就失效了。简单的讲就是:force 
stop会导致alarm失效。最典型的例子就是我碰到过的一个bug,使用android手机的时钟app设置一个闹钟,然...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 22:41:52   
                                阅读次数:
471
                             
                         
                    
                        
                            
                            
                                1、编译工程,生成xx.app2、制作引导进程xx替换xx.app里面的xx进程引导进程代码:int main(int argc, char *argv[]){ 
@autoreleasepool { NSString* string = [[NSBundle mainBundle...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 22:43:08   
                                阅读次数:
305
                             
                         
                    
                        
                            
                            
                                1、在finder下打开go -> go to folder输入:
~/Library/MobileDevice/Provisioning Profiles
2、查看上面的列表,按照时间顺序删除相应的profiles即可。...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:55:01   
                                阅读次数:
796
                             
                         
                    
                        
                            
                            
                                Android有三类窗口
应用程序窗口 (Application Window): 包括所有应用程序自己创建的窗口,以及在应用起来之前系统负责显示的窗口。
子窗口(Sub Window):比如应用自定义的对话框,或者输入法窗口,子窗口必须依附于某个应用窗口(设置相同的token)。
系 统窗口(System Window): 系统设计的,不依附于任何应用的窗口,比如说,状态栏(Status ...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:55:37   
                                阅读次数:
623
                             
                         
                    
                        
                            
                            
                                在新的SDK每次创建activity时,会自动生成 public static class PlaceholderFragment extends Fragment
fragment模块,在该模块的基础上进行嵌套fragment代码如下:
public static class PlaceholderFragment extends Fragment {
		static Fragmen...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:19:23   
                                阅读次数:
461
                             
                         
                    
                        
                            
                            
                                1...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:01:55   
                                阅读次数:
557
                             
                         
                    
                        
                            
                            
                                MainActivity如下:
package cc.testsmsbroadcastreceiver;
import cc.testsmsbroadcastreceiver.SMSBroadcastReceiver.MessageListener;
import android.os.Bundle;
import android.widget.TextView;
import android....
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:56:53   
                                阅读次数:
600
                             
                         
                    
                        
                            
                            
                                MainActivity如下:
package cc.testsmslistener;
import cc.testsmslistener.SMSContentObserver.MessageListener;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android....
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:34:50   
                                阅读次数:
490
                             
                         
                    
                        
                            
                            
                                MainActivity如下:
package cc.c;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.app.LoaderManager.LoaderCallbacks;
import android.content.Context;
import...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:45:33   
                                阅读次数:
520
                             
                         
                    
                        
                            
                            
                                关于android的反编译工具,相信大家并不陌生
如APK-TOOL,dex2jar
APK-TOOL 用于反编译出布局文件
下载地址http://code.google.com/p/android-apktool/downloads/list
 
dex2jar 用于将dex反编译成.jar包
下载地址:http://code.google.com/p/dex2jar/downloa...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:31:28   
                                阅读次数:
483
                             
                         
                    
                        
                            
                            
                                //在Activity应用元素。
    ActivityInfo info = this.getPackageManager()
            .getActivityInfo(getComponentName(),PackageManager.GET_META_DATA);
    info.metaData.getString("meta_name");
    //在appli...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:58:55   
                                阅读次数:
798
                             
                         
                    
                        
                            
                            
                                今天在加载https站点的时候遇到如下的错误问题。所以对自己之前写的iOS内嵌webview做了一些修改,可以让它加载http站点也可以让它加载https站点、
下面是我加载https站点的时候出现的错误。
error: 
   NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -98...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:42:56   
                                阅读次数:
688
                             
                         
                    
                        
                            
                            
                                05-15 17:32:51.624: W/System.err(9851): java.io.EOFException
05-15 17:32:51.694: W/System.err(9851): 	at libcore.io.Streams.readAsciiLine(Streams.java:203)
05-15 17:32:51.694: W/System.err(9851): 	at...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:43:35   
                                阅读次数:
547
                             
                         
                    
                        
                            
                            
                                NYOJ 289 苹果...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 22:58:46   
                                阅读次数:
409
                             
                         
                    
                        
                            
                            
                                背景
在 Linux-3.8 以后,Android 的内核分支,便去掉了 f_adb,改使用 USB function FS,在用户空间实现 USB adb 功能。这篇文章根据原作者的 Google+ 文章,在 Atmel sama5 开发板上做了测试,将步骤记录如下,供需要使用的读者参考,你也可以查看作者原文:https://plus.google.com/111524780435806926...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:30:11   
                                阅读次数:
538
                             
                         
                    
                        
                            
                            
                                apkplug是安卓app模块化开发解决方案,利用它可以使用未安装apk的代码和资源,同时以优美的方式将插件与宿主完美的融为一体。宿主与插件,插件与插件之间可以自定义通讯协议...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:27:17   
                                阅读次数:
561
                             
                         
                    
                        
                            
                            
                                apkplug是安卓APP模块化开发解决方案,通过该框架可以使用未安装apk文件的代码和资源,并且与宿主完美的融合在一起。...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:24:03   
                                阅读次数:
591
                             
                         
                    
                        
                            
                            
                                在activity中有时需要嵌套调用fragment,但嵌套调用往往带来视图的显示与预期的不一样或是fragment的切换有问题。在使用时要注意几点:
1、fragment中嵌套fragment,子fragment视图无法显示:
如下:
父fragment的.xml文件:
<LinearLayout xmlns:android="http://schemas.andro...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 01:24:16   
                                阅读次数:
367
                             
                         
                    
                        
                            
                            
                                可以将数据储存在内置或可移动存储,数据库,网络,sharedpreference。
        android可以使用Content provider来使你的私有数据暴漏给其他应用程序。
一.sharedpreference
        得到sharedpreference的两种方法:
        1.getSharedPreferenced():使用这个方法你可以定义多个pr...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 02:49:34   
                                阅读次数:
345
                             
                         
                    
                        
                            
                            
                                ...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 01:28:18   
                                阅读次数:
191