Ti.Plaftform Java.Exception in Android with titanium

You must Login before you can answer or comment on any questions.

Hello, i've and issue when for example i press a button and that button has an EventListener.

var asistenciaButton = Ti.UI.createButton({
        width : '138dp',
        height : '34dp',
        right : '10dp',
        bottom:"5dp",
        backgroundImage : '/images/pideasistencia'+utils.sizeImg+'.png',
    });
 
    asistenciaButton.addEventListener("click", function() {
        Ti.Platform.openURL('tel:+56994534457');
    });
the issue is that when i press the button several times or another buttons around the app (i've about 10 buttons in 20 different screens in the app) sometimes the errorr that JavaException appear like in the image above.-

http://dl.dropbox.com/u/1701829/error-javaexception.png

i need some help please :)

1 Answer

Have you added permission to make a call in android menifest? if not then try this one

<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>

— answered 11 months ago by Ashutosh Chaturvedi
answer permalink
2 Comments
  • no, i've not added. By the way, the app make calls, but suddenly crash with the java exception Uncaught exception :(

    — commented 11 months ago by Felipe Alvarado

  • i've already that permission to the android manifest but the error still appears :(

    — commented 11 months ago by Felipe Alvarado

Your Answer

Think you can help? Login to answer this question!