Quantcast
Viewing all articles
Browse latest Browse all 9

Images displayed in emulator but not in Smartphone

Hello

In Android Emulator i can see images but not in my smartphone (i've tried with two different smartphones). Could somebody tell me what could be the problem?

Code:

Ti.include('introDatosWindow.js');
 
var winIntroduccion = Ti.UI.createWindow({
    backgroundImage:'android/grisaceo.png',
});
 
var view1 = Ti.UI.createView({
    width:'90%',
    height:'45%',
    backgroundImage:'android/comida.png',
    top:'8%',
    borderRadius:'20',
    borderWidth:'4',
    borderColor:'#545454',
});
 
var view2 = Ti.UI.createView({
    width:'70%',
    height:'24%',
    top:'63%',
})
 
var btn1 = Ti.UI.createButton({
    title:'Busca Restaurante',
    backgroundColor:'#BBBBBB',
    width:'100%',
    height:'100%',
    borderRadius:'20',
    borderWidth:'5',
    borderColor:'#545454',
    font:{fontSize: '35dp'},
});
 
btn1.addEventListener('click', function(){
    winIntroDatos.open();
    winIntroduccion.close();
});
 
view2.add(btn1);
winIntroduccion.add(view1);
winIntroduccion.add(view2);
winIntroduccion.open();
android/comida.png and android/grisaceo.png is shown on Emulator but not in smarpthone.

I have both pictures in Resources/android

Thank you.


Viewing all articles
Browse latest Browse all 9

Trending Articles