View Full Version : PhoneGap + Android 2.3.3 Emulator - Contacts list example issue "Window already focus

8 Sep 2011, 6:12 PM
I've downloaded the Contact examples from http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap and follow step by step explanations. I can get the ContactList to display - confirm this with putting alert in app/views/ContactsList.js:

onItemDisclosure: function (record) {
alert('onItemDisclosure - yes');
controller: app.controllers.contacts,
action: 'show',
id: record.getId()
But I cannot get the app.Controler.Contacts - show function to fire. I put following alert in app/controllers/contacts.js and it did not fire

show: function(options) {
alert('onShow - yes');
var id = parseInt(options.id),
contact = app.stores.contacts.getById(id);
if (contact) {
app.views.contactDetail, options.animation

When I look at LogCat, I always see following warning immediately after clicking on ItemDisclosure.

Window already focused. ignoring focus gain of: [email protected]

Also, dont know if it is related or not, but after that warning soon after (sometimes immediately or up to 2 mins later) I usually see following Debug in LogCat:

request time failed: java.net.SocketException: Address family not supported by protocol.Please help. This is really my first attempt on using Sencha Touch after reading a lot of good reviews about it - but really concern now, since I would expect a sample app would just work.