Skip to content

Instantly share code, notes, and snippets.

@mochiz
mochiz / gist:2692611
Created May 14, 2012 08:03
Titanium x Androidでのハマりどころを思い出せるだけ
Titanium x Androidのハマりどころについて質問をもらったので、分かる範囲で共有させて頂きます。
私の調査不足ということもあるので、詳細はご自身でお調べいただければ幸いです。
あと、最後に確認したのが2012年3月頃だった気がするので、少し情報が古いかもしれません。
・機種依存でカメラが落ちるなど
Xperiaだったかしら?
独自のカメラAPIを使っている端末についてはカメラ撮影時にアプリが落ちるなどの不具合が発生します。
ちょちょいと対応できるものではないので、契約時に標準のカメラAPIが対応していない機種については対応しないor別途開発期間をもらうなどの同意をとっておく必要があるかと思います。
@mochiz
mochiz / app.js
Created March 1, 2012 16:18 — forked from oroce/app.js
Faking Long Touch on Android in Titanium Mobile
//The table view row just has to have a full height view in order
//to trigger the TableView touchstart
function LongTouchTableViewRow(_title) {
var row = Ti.UI.createTableViewRow({
height:50
});
var v = Ti.UI.createView({
height:50
});
@mochiz
mochiz / caveatPatchor.js
Created October 21, 2011 08:31 — forked from phred/caveatPatchor.js
caveatPatchor.js with barebones oohembed (now embedly?!) support for Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
;; フォントセット作成
(create-fontset-from-mac-roman-font
"-apple-m+ 2m-medium-r-normal--14-*-*-*-*-*-iso10646-1" nil "mplus")
(set-fontset-font "fontset-mplus" 'japanese-jisx0208
'("m+ 2m light" . "iso10646"))
(set-fontset-font "fontset-mplus" (cons (make-char 'japanese-jisx0208 #x30 #x20)
(make-char 'japanese-jisx0208 #x74 #x7f))
'("ヒラギノ角ゴ pro w3" . "jisx0208.1983"))
(set-fontset-font "fontset-mplus" 'katakana-jisx0201
'("m+ 1m light" . "iso10646"))