웹뷰에서 카카오톡 링크공유는 방법이 없는건가요? ㅠㅠ

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();

해결했습니다.
카카오톡공유하는 링크에서 intent:이것을 뺴주니깐 카카오톡으로 경로가 이동하더라구요 정말 이것도 모르고 몇일동안 고생했네요 ㅠㅠ

if (url.indexOf('market')!=-1 || url.indexOf('intent')!=-1 || url.indexOf('facebook')!=-1){
    	var intent_url = url.split("intent:");
    	var intent = Ti.Android.createIntent({
                action: Ti.Android.ACTION_VIEW,
                data: intent_url[1]
         });
         $.wv_main.goBack();
         intent.addCategory(Ti.Android.CATEGORY_DEFAULT);
         Ti.Android.currentActivity.startActivity(intent);
   }
3개의 좋아요