sourcetree key
sourcetree license ,sourcetree 过期只要导入这个lisence就可以解决.证书过期问题.很完美.
sourcetree license ,sourcetree 过期只要导入这个lisence就可以解决.证书过期问题.很完美.
android检查内存泄露和用法 <!--==============================================================================--> <service android:name="com.squareup.leakcanary.internal.HeapAnalyzerService" android:enabled="false" android:process=":leakcanary" /> <service android:name="com.squareup.leakcanary.DisplayLeakService" android:enabled="false" /> <activity android:name="com.squareup.leakcanary.internal.DisplayLeakActivity" android:enabled="false" android:icon="@drawable/__leak_canary_icon" android:label="@string/__leak_canary_display_activity_label" android:taskAffinity="com.squareup.leakcanary" android:theme="@style/__LeakCanary.Base" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> 杭佳莉 2015/8/17 16:47:38 //================================================ refWatcher = LeakCanary.install(this); } //=============================================================================== public static RefWatcher getRefWatcher(Context context) { MApplication application = (MApplication) context .getApplicationContext(); return application.refWatcher; }
比如我的源码就在/Applications/adt-bundle-mac-x86_64-20140321/sdk/extras/android/support/v4/src下面。拿android-support-v4.jar来说,当我们把它添加到项目的libs下面之后,在项目上点击右键->属性->java build path->Libraries,我们发现这个jar是在AndroidPrivate Libraries下面,不允许我们设置他的源码位置。这个时候,我们需要在eclipse中项目下的libs下右键点击android-support-v4.jar->Build Path->add to build path。然后打开buildpath->Libraries,展开android-support-v4.jar,点击Source attachment,点击右边的编辑,如下图 接着在弹出的框中选择Externallocation->External Folder,选则源码所在文件夹(比如我这里的/Applications/adt-bundle-mac-x86_64-20140321/sdk/extras/android/support/v4/src) 最后在build path中选中AndroidiPrivateLibraries,点击右边的remove。这个时候,我们就可以查看support library的源码了。