This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo find /private/var/folders/ \ -name com.apple.dock.iconcache -exec rm {} \; | |
sudo find /private/var/folders/ \ -name com.apple.iconservices -exec rm -rf {} \; | |
sudo rm -rf /Library/Caches/com.apple.iconservices.store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.webView.addEventListener('beforeload', function(e) { | |
if ((OS_IOS && e.navigationType == Titanium.UI.iOS.WEBVIEW_NAVIGATIONTYPE_LINK_CLICKED) | |
|| (OS_ANDROID && e.url !== $.webView.getUrl())) { | |
// stop the event | |
e.bubble = false; | |
e.cancelBubble = true; | |
// stop the url from loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.webview.url="http://www.w3schools.com/"; | |
$.webview.addEventListener('beforeload', function(e) { | |
if (e.url != $.webview.url) { | |
e.bubble = false; | |
$.webview.stopLoading(); | |
Ti.Platform.openURL(e.url); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'rubygems' unless defined? Gem # rubygems is only needed in 1.8 | |
require_relative "bundle/bundler/setup" | |
require "alfred" | |
require 'json' | |
basic_user = ENV['BB_USER_NAME'] | |
basic_password = ENV['BB_PASSWORD'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell 'pm list packages -f -3' | sed -e 's/.*=//' | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip -o <ZIP_FILE> -d <DESTINATION_DIR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun simctl uninstall booted <BUNDLE_IDENTIFIER> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I <URL> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcrun simctl erase all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q: Why lock at the Android Activity level, isn’t adding the Alloy style enough? | |
A: Unfortunately no. The Alloy style is applied after the window is created. So | |
if the device is held in a landscape orientation you will see the window open and | |
turn. Locking at the Android Activity level stops this behavior. | |
Q: Does this mean all of my Ti.UI.Window object will be locked in portrait? | |
A: Yes, this locks both at the Android Activity and Titanium object levels. | |
Q: Can I later change the orientation by updating my Ti.UI.Window orientation? | |
A: No, orientation is locked at the Android Activity level as well. |