intent시키는 방법도 안되고 해결해야하는데 방법이 없는것같네요 ㅠㅠ
intent를하면
[ERROR] : SQLiteLog: (14) cannot open file at line 30241 of [00bb9c9ce4]
[ERROR] : SQLiteLog: (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) -
이런 에러가 뜨네요
function previous() {
if ($.wv_main.canGoBack()) {
$.wv_main.goBack();
}else{
var confirmClear = Titanium.UI.createAlertDialog({
message:'종료하시겠습니까?',
buttonNames: ['확인','취소']
});
confirmClear.show();
confirmClear.addEventListener('click',function(e) {
if (e.index === 0) {
$.index.close();
}
});
}
}
function previous2() {
if ($.wv_main.canGoBack()) {
$.wv_main.goBack();
}
}
function nextious() {
if ($.wv_main.canGoForward()) {
$.wv_main.goForward();
}
}
$.index.addEventListener('androidback', function(e){
previous();
});
$.menu_right.addEventListener('click',function(e){
nextious();
});
$.menu_left.addEventListener('click',function(e){
previous2();
});
$.menu_home.addEventListener('click',function(e){
$.wv_main.url = 'http://lumid.co.kr/index.php?device=mobile'; //경로이동
});
$.menu_reflash.addEventListener('click',function(e){
$.wv_main.reload(); //새로고침
});
$.wv_main.addEventListener('beforeload', function(e){
var url = e.url;
// http://developer.appcelerator.com/question/76861/open-android-market-from-within-an-app
if (url.indexOf('market')!=-1 || url.indexOf('intent')!=-1 || url.indexOf('facebook')!=-1){
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_VIEW,
data:url
});
$.wv_main.goBack();
Ti.Android.currentActivity.startActivity(intent);
}
if ($.wv_main.canGoBack()) {
$.menu_left.image = "/back_off.png";
}else{
$.menu_left.image = "/back_on.png";
}
if ($.wv_main.canGoForward()) {
$.menu_right.image = "/next_off.png";
}else{
$.menu_right.image = "/next_on.png";
}
});
$.index.open();