Time of Update: 2016-01-23
標籤:一、使用Broadcast Reciver 1.右擊java檔案夾,new->other->Broadcast Receiver後會在AndroidManifest.xml檔案中產生一個receiver項 <?xml version="1.0" encoding="utf-8"?><manifest
Time of Update: 2016-01-23
標籤:B要傳值給A1.控制器B中要有一個Block:typedef void (^MyBlock)(NSString* str1,NSString* str2);str1和str2裡存放著要傳遞的參數2.還要有一個以Block為參數的方法-(void)chuanzhi:(MyBlock)block{
Time of Update: 2016-01-23
標籤:IOS開發之ZBarReaderView的使用HOMEABOUTGUESTBOOKCATEGORIESTAGSLINKSSUBSCRIBE當開發IOS程式中需要用到二維碼識別功能的時候,zbar這個開源庫估計會被不少人選擇。但是關於zbar的用法,網上的資料大部分都集中在ZBarReaderViewController這個類的使用上。本人在使用中,發現ZBarReaderViewController這
Time of Update: 2016-01-23
標籤: 1 // 當手指在view上移動的時候調用 2 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 5 UITouch *touch = [touches anyObject]; 6 // 0. 擷取上一次的位置 7 CGPoint prePoint = [touch previousLocationInView:self]; 8 9 //
Time of Update: 2016-01-23
標籤:1、android的四大組件的了大概功能 activity:負責顯示介面,和使用者互動。 service:運行在後台。 content
Time of Update: 2016-01-23
標籤:在文章《Android程式員從小白到大神必讀資料匯總(一)》裡面介紹了幾篇Android入門和提升效率的技術資料,今天小編收集了5篇進階的資料,趕緊來看看吧!另外,歡迎大家加入工程師博主交流群:391519124,交流部落格經驗和技術一、Android開發相見恨晚的方法和介面 Android開發中,有哪些讓你覺得相見恨晚的方法、類或介面?二、Android 多渠道打包原理和使用 學會安卓 APP 多渠道打包的技巧,讓你的APP開發更高效三、Google Java
Time of Update: 2016-01-23
標籤://// ViewController.m// text//// Created by 李東旭 on 16/1/22.// Copyright © 2016年 李東旭. All rights reserved.//#import <UIKit/UIKit.h>#import "ViewController.h"// 定義個宏,方便實用,>> 16 的意思是把16進位轉換成2進位後,右移16位(移動掉的直接捨棄)#define
Time of Update: 2016-01-23
標籤: 1 - (void)drawRect:(CGRect)rect 2 { 3 // 1.擷取上下文 4 CGContextRef ctx = UIGraphicsGetCurrentContext(); 5 6 // 2.建立路徑(一個path就代表一條路徑) 7 // 但凡通過quarzt2d中的帶有create/ copy / retain 方法建立出來的值都必須手動的釋放 8 CGMutablePathRef path =
Time of Update: 2016-01-23
標籤: 在Android編程的過程中,如果在Activity中某個操作會運行比較長的時間,比如:下載檔案。這個時候如果在主線程中直接下載檔案,會造成Activity卡死的現象;而且如果時間超過5秒,會有ANR報錯。在這種情況下,
Time of Update: 2016-01-23
標籤:- (void)action:(id)sender{UIButton * button = sender;[button setTitle:@"清理完畢" forState:UIControlStateNormal];NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);NSString *path = [paths
Time of Update: 2016-01-23
標籤:0xr0ot和Xbalien交流所有可能導致應用拒絕服務的異常類型時,發現了一處通用的本地拒絕服務漏洞。該通用型本地拒絕服務可以造成大面積的app拒絕服務。針對序列化對象而出現的拒絕服務主要是由於應用中使用了getSerializableExtra() 的API,由於應用開發人員沒有對傳入的資料做異常判斷,惡意應用可以通過傳入畸形資料,導致應用本地拒絕服務。漏洞應用程式碼片段:Intent i =
Time of Update: 2016-01-23
標籤:上一篇文章android
Time of Update: 2016-01-23
標籤: 今天早上申請了一個早上的渠道帳號,這工作真是太繁瑣,申請的是企業帳號,須要營業執照等相關資料,假設申請個人的話預計須要身份證相關資訊。以下貼出國內主流的幾個渠道。不全然,可是基本上涵蓋了大部分。360移動開放平台地址:http://dev.360.cn/ 豌豆莢地址:http://open.wandoujia.com/ 百度手機小幫手地址:http://app.baidu.com/
Time of Update: 2016-01-23
標籤:視差滾動是指讓多層背景以不同的速度移動,形成立體的運動效果,在Web上應用的比較多,App中倒是見的相對比較少,主要在UITableView中的應用的比較多,尤其是當整個UITableViewCell的背景是圖片的時候,描述內容較少,滑動視差可以增強視覺效果,可以考慮使用,先來簡單的看一下效果:實現起來也比較簡單,UITableView定義:#pragma mark - UITablViewDataSource-(NSInteger)numberOfSectionsInTableView:
Time of Update: 2016-01-23
標籤:app:transformclasseswithdexfordebug' finished with non-zero exit value 1Error:Execution failed for task ‘:app:transformClassesWithDexForDebug‘.> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:
Time of Update: 2016-01-23
標籤:隨機密碼 郵箱
Time of Update: 2016-01-23
標籤:Android端通過HttpURLConnection上傳檔案到伺服器一:實現原理最近在做Android用戶端的應用開發,涉及到要把圖片上傳到後台伺服器中,自己選擇了做Spring3 MVC HTTP
Time of Update: 2016-01-23
標籤:Android中,可以四給不同層次上開啟硬體加速:1、應用:<application android:hardwareAccelerated="true">2、Activity<activity android:hardwareAccelerated="true">3、WindowgetWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
Time of Update: 2016-01-23
標籤:Android-Classical-OpenSource 項目地址:https://github.com/eterrao/Android-Classical-OpenSource.git不週期性更新,為了以後找起來方便,也希望能方便後人用到:Trinea的OpenProject:強烈推薦的Android 開源項目分類匯總項目地址:https://github.com/Trinea/android-open-project項目說明:Android
Time of Update: 2016-01-23
標籤: 1 - (void)drawRect:(CGRect)rect 2 { 3 // Drawing code 4 5 // 畫圓, 以便於以後指定可以顯示內容約制 6 CGContextRef ctx = UIGraphicsGetCurrentContext(); 7 8 CGContextAddEllipseInRect(ctx, CGRectMake(100, 100, 50, 50)); 9 10 //