"android.intent.action.view" />
"android.intent.category.default" />
intent intent = getintent();
string path = null;
if (intent.action_view.equals(intent.getaction())) catch (malformedurlexception e)
}uri uri = uri.fromfile(new file(murlpath));
intent intent = new intent(intent.action_send);
intent.setaction(intent.action_send); // 分享單個檔案
intent.setaction(intent.action_send_multiple); // 分享多個檔案
intent.putparcelablearraylistextra(intent.extra_stream, urilist); // 分享的多**(多)
intent.setflags(intent.flag_activity_new_task);
intent.putextra(intent.extra_stream, uri); // 分享的多**(單)
intent.putextra(intent.extra_subject, "測試標題"); // 新增分享內容標題
intent.putextra(intent.extra_text, "測試內容"); // 新增分享內容
startactivity(intent.createchooser(intent, "分享到")); // 分享dialog的標題
linux將程式新增到服務
方式 1 如果通過yum安裝的服務,直接敲入下面的命令就可以了開機時自動啟動服務了 方式 2編寫自己的服務指令碼 系統預定義函式 start stop restart reload 告訴程式重讀配置檔案,改變程式的執行狀態 etc rc.d init.d 系統服務指令碼目錄 var lock sub...
將UE新增到右鍵選單
1 新建ue.reg檔案,將如下 拷貝進去。注意ue安裝路徑 windows registry editor version 5.00 hkey classes root shell hkey classes root shellultraedit ultraedit 32 hkey classes...
將sublime新增到滑鼠右鍵
1 win r 輸入regedit 開啟登錄檔。2 找到hkey classes root shell目錄,在此目錄下 新建項,命名為 sublime text 也可以是其他名字 雙擊右邊 預設 更改資料,用於右鍵文字顯示 新建字串值 icon 填寫sublime安裝路徑,用於新增icon。3 在 ...