Skip to content

Instantly share code, notes, and snippets.

final Toolbar toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar);
//toolbar.setTitle("This is toolbar title");
toolbar.setTitleTextAppearance(getBaseContext(), R.style.AppTheme_TextStyle);
//toolbar.setSubtitle("This is toolbar Subtitle");
toolbar.setSubtitleTextAppearance(getBaseContext(), R.style.AppTheme_TextStyle);
toolbar.inflateMenu(R.menu.menu_main);
ShareActionProvider bob = (ShareActionProvider) MenuItemCompat.getActionProvider(toolbar.getMenu().findItem(R.id.share_test));
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
@andaag
andaag / strip.conf
Last active August 29, 2015 14:07 — forked from dextorer/strip.conf
actions=true
ads=true
analytics=true
appindexing=true
appstate=true
auth=true
cast=true
common=true
drive=false
dynamic=true
@andaag
andaag / text.py
Created August 24, 2014 11:07 — forked from psorianom/text.py
# -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gmail.com>
#
# License: BSD 3 clause
"""
####### start emulators script:
#!/bin/bash
export PATH=$ANDROID_HOME/tools/:$ANDROID_HOME/platform-tools/:$PATH
echo "Android HOME : $ANDROID_HOME"
echo "Android SDK HOME : $ANDROID_SDK_HOME"
echo "PATH : $PATH"
`dirname $0`/kill_android_emulators.sh