Skip to content

Instantly share code, notes, and snippets.

@ElFadiliY
ElFadiliY / silence_install_apk
Created July 31, 2017 00:08 — forked from Jiezhi/silence_install_apk
install apk just in silence
/**
* Don't forget to add <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> in AndroidManifest.xml
* I bind this function with Button
* referenced with http://www.trinea.cn/android/android-install-silent/
* @param view
*/
public void installAPK(View view) {
// assume there is a apk file in /sdcard/ path
String filePath = "/sdcard/RootExplorer_99.apk";
String[] args = {"pm", "install", "-r", filePath};
ActiveRecord cheat sheet / EXAMPLES
INSTALL
=======
$ gem install activerecord
in GEMFILE: gem ‘activerecord’
REQUIRE
=======
require ‘active_record’
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,