#iOS5的强引用和弱引用
http://stackoverflow.com/questions/9262535/explanation-of-strong-and-weak-storage-in-ios5
##Question
| Notification n = new Notification(); | |
| n.flags |= Notification.FLAG_SHOW_LIGHTS; | |
| n.ledARGB = Color.YELLOW; | |
| n.ledOnMS = 300; | |
| n.ledOffMS = 300; | |
| NotificationManager nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); | |
| nm.notify(1,n); |
| #include <stdio.h> | |
| int main(void) | |
| { | |
| char ch; | |
| int repeat, ri; | |
| scanf("%d", &repeat); | |
| for(ri = 1; ri <= repeat; ri++){ | |
| ch = getchar(); | |
| switch (ch) { |
| // | |
| // ViewController.m | |
| // tt | |
| // | |
| // Created by linxiangyu on 13-3-24. | |
| // Copyright (c) 2013年 linxiangyu. All rights reserved. | |
| // | |
| #import "ViewController.h" | |
| #define FILE_NAME @"hello" |
| import java.io.IOException; | |
| import java.net.Socket; | |
| import java.net.UnknownHostException; | |
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: linxiangyu | |
| * Date: 13-3-6 | |
| * Time: 涓��7:13 | |
| * To change this template use File | Settings | File Templates. |
| import java.io.BufferedInputStream; | |
| import java.io.BufferedOutputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.io.UnsupportedEncodingException; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; |
| package com.mmclub.NjuptNews.Activity; | |
| import com.mmclub.NjuptNews.R; | |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.os.Bundle; |
| package info.linxiangyu.ShakeHappy.data; | |
| import android.content.Context; | |
| import android.database.sqlite.SQLiteDatabase; | |
| import android.database.sqlite.SQLiteOpenHelper; | |
| import android.util.Log; | |
| /** | |
| * Created with IntelliJ IDEA. | |
| * User: linxiangyu |
#iOS5的强引用和弱引用
http://stackoverflow.com/questions/9262535/explanation-of-strong-and-weak-storage-in-ios5
##Question
http://stackoverflow.com/questions/2925054/mvc-pattern-in-android
是否可以在Android中用Java实现MVC模式?或者它已经通过Activity实现了?或者是否有更好的方式在Android中实现MVC?
这是Android SDK android.utils包的一些类的用处,更多内容详见:
https://developer.android.com/reference/android/util/package-summary.html
API17开始加入,源码+注释才200多行。