In Titanium Appcelerator/Android we can open a call dial to dial a number, with this code.
var win = Ti.UI.createWindow();
win.backgroundColor = 'white';
// Create a Button.
var aButton = Ti.UI.createButton({
title : 'Charge',
height : 40,
width : 150,
top : 300,
left : 80
});
var value = '123456789#';
win.add(aButton);
aButton.addEventListener('click', function() {
Titanium.Platform.openURL('tel:' + value);
});
win.open();
The question is how to display # in the dial pad: as of now it only shows 123456789. I tried many ways but it does not show #.Any other way to do that?
Ali.
a hash is just a special character, so add
to your
string.
so it will look like:-
Easy.