`
月下独酌
  • 浏览: 130504 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论
文章列表
https://github.com/limpoxe/Android-Plugin-Framework #Android-Plugin-Framework 此项目是Android插件开发框架完整源码及示例。用来通过动态加载的方式在宿主程序中运行插件APK。 已支持的功能: 1、插件apk无需安装,由宿主程序动态加载运行。 ...

对话框屏蔽home

对话框屏蔽home alert.show(); alert.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); activity屏蔽home     @Override     public void onAttachedToWindow() {     this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);     super.onAttachedToWindow();     }
http://blog.csdn.net/Xiao_Qiang_/article/details/3006801
DIR=./out/ BIN=$(DIR)bin/ INCLUDE= SRC=$(wildcard *.cpp *.c) OBJECTS=$(patsubst %.cpp, $(DIR)%.o,$(SRC)) target=test CC=g++ $(target):$(SRC) -mkdir $(BIN) -p $(info $(SRC)) $(CC) $(SRC) $(INCLUDE) -o $(BIN)$@ -$(BIN)$@ clean: -rm -fr $(DIR) ...

smartwindow

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />  <uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" /> 适用android2.x 在应用程序中自定义dialog,复制dialog.java到应用程序中并修改方法 public void setContentView(int layoutResID) { mWi ...
Windowmanagerservice.java PhoneWindowManger.java---interceptKeyBeforeQueueing | | InputManagner.java ------------------ InputMonitor.java |JAVA-->C++ |C++-->JAVA com_android_server_inputManager.cpp------ ...

gerrit清单库配置

    博客分类:
  • git
最新repo地址 curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo gerrit清单库是用来配合repo使用的。清单库列出了gerrit服务器上其他的仓库。 客户端通过repo脚本下载了清单库以后,脚本会解析清单库中列出的长裤并自动 ...
经过一晚的折腾,终于在linux mint12下将apache2,git,gerrit配置成功。 参考资料: http://m.oschina.net/blog/33017 http://www.lifeyun.com/code-review-tools-installation-gerrit.html http://unethicalblogger.com/2009/12/07/code-review-with-gerrit-a-mostly-visual-guide.html http://gerrit.googlecode.com/svn/documentation/2.1.7/conf ...
private boolean setRoute(String route) { try{ IBinder b = ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE); INetworkManagementService service = INetworkManagementService.Stub.asInterface(b); boolean ret = service.replaceV4DefaultRoute( ...
private boolean setIpAndMask(String ip,String mask){ Log.i(TAG," ip=" + ip +",mask=" + mask); // bring toggle the interfaces IBinder b = ServiceManager.getService(Context.NETWORKMANAGEMENT_SERVICE); INetworkManagementServic ...
当连接usb网卡时会弹出此界面(需内核usb网卡驱动支持) <activity android:name=".MainActivity" android:label="@string/app_name" android:launchMode="singleInstance" android:screenOrientation="landscape"> < ...
private String cmdExecute(String[] args, String workdirectory){ ProcessBuilder cmd; String result = ""; try { cmd = new ProcessBuilder(args); cmd.directory(new File(workdirectory)); cmd.redirectErrorStream(true); Process process = ...
http://blog.csdn.net/luoshengyang/article/details/6677029
http://blog.csdn.net/luoshengyang/article/details/6689748 简要整理: context.startActivity() | Activity.java.startActivity() | Instrumentation.java.execStartActivity() | {当前应用程序主线程(context)—>binder,RemountBinder} | -------------通过binder,流程进入activityManagerService-------------------------- ...
http://blog.csdn.net/luoshengyang/article/details/6747696 简要整理: ActivityManagerService.java.startProcessLocked()(此方法本身在运行在SystemService进程中) | Process.java.start() | 通过localSocket发生命令(参数"android.app.ActivityThread") 至native的Zygote进程(Zygote进程中ZygoteInit.java.runSelectL ...
Global site tag (gtag.js) - Google Analytics