Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Strange (?) fatal signal 11

$
0
0

Hi there! I'm developing an Android application with the new SDK 3.2.0 GA. What I'm trying to do is very simple: there's a button that open camera. The saved image will be backgroundImage of a view. Here's the code:

var self = Titanium.UI.createWindow({
        fullscreen:true,
        navBarHidden:true,
        exitOnClose:true,
        backgroundColor:'white'
    });
 
var button = Titanium.UI.createButton({
        width:45,
        height:45,
        backgroundImage:'/images/ic_black_camera.png',
        name:'a'
    });
 
var photointent = Ti.Android.createIntent({
        action:'android.media.action.IMAGE_CAPTURE'
    });
photointent.addCategory(Ti.Android.CATEGORY_DEFAULT);
 
var photohandler = function(e){
        Ti.Android.currentActivity.startActivity(photointent);
    };
 
button.addEventListener('click',photohandler);
When I click the button, app restarts and I see into the log "fatal signal 11 (sigsegv)". Tested on LG Optimus Black P970 with Android 4.0.4. Anyone can help me? Thanks!

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>