原创 PS1 ..P4 PROMPT_COMMAND

Your interaction with Linux Bash shell will become very pleasant, if you use PS1, PS2, PS3, PS4, and PROMPT_COMMAND eff

原创 linux小工具

  https://etherape.sourceforge.io/ https://sourceforge.net/projects/etherape/ EtherApe is a graphical network monitor f

原创 shell腳本調試之工具——bashdb

shell腳本調試之工具——bashdb 原文件 https://sourceforge.net/projects/bashdb/files/   bash是Unix/Linux操作系統最常用的shell之一,它非常靈活,和awk、c++

原创 How to Change Bash Shell Prompt Colorful and Attractive in Linux

https://linoxide.com/how-tos/change-linux-shell-prompt-with-different-colors/   In this article, I'll explain how to ch

原创 Xorg

http://www.xfree86.org/current/X.7.html https://www.x.org/releases/X11R7.7/doc/man/man5/xorg.conf.5.xhtml http://www.li

原创 AM\PM\DUMPSYS

在平時開發中,通過命令行有時候能夠快速的幫我們實現一些功能,這裏對常用的命令做一些總結。 1、AM命令用法 1.1、簡單介紹 am指令是 activity manager的縮寫,可以啓動Service、Broadcast,殺進程,監控

原创 點亮屏幕

權限 <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.DI

原创 stopSelf()方法來停止服務

使用Service的stopSelf()方法來停止服務,要注意這是一個父類的方法,調用了這個方法之後,服務停止的時間不 確定,後面的代碼還是會執行,並且onDestroy()方法也會執行, 下次重新啓動服務的時候,先調用onCreate(

原创 Oreo創建app快捷方式

Oreo創建app快捷方式兩種方式: v7包:appcompat-v7:26.0.2 ShortcutManager requestPinShortcut() LauncherActivity:點擊快捷方式啓動的Activity shor

原创 AndroidSutdio加載libs

在android{}內空白處輸入以下代碼 sourceSets{ main{ jniLibs.srcDirs = ['libs'] } }  

原创 Rotate a bitmap image

If you are targeting multiple platforms, then your task becomes tougher. You could either rotate each pixel in the sou

原创 VMWare連網方式

一 Brigde--橋接      bridge  橋"就是一個主機,這個機器擁有兩塊網卡,分別處於兩個局域網中,同時在"橋"上,運行着程序,讓局域網A中的所有數據包原封不動的流入B,反之亦然。這樣,局域網A和B就無縫的在鏈路層連接起來了

原创 Understanding COM Interop

 .NET is a great platform for developing applications and many pieces of code that took lots of effort to write, is now

原创 Android O Launcher3--拖拽

  前言        在Android手機桌面,我們經常會把一個應用的圖標從菜單裏面,拖拽到桌面。或者把一個應用的圖標移到自己更加喜歡的位置。拖拽能夠讓用戶方便的把應用放到用戶可記得易操作的位置,從而能夠讓用戶快捷的打開高頻使用的應用。

原创 Android 打開對話框

 https://blog.csdn.net/trbbadboy/article/details/7899424 和 https://blog.csdn.net/yuanyuan_186/article/details/40709901