Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 03-13-2009, 08:23 AM   #1
Junior Member
 
Join Date: Mar 2009
Posts: 1
Friends: 0
View darjien's Profile   View darjien's Photo Album   View darjien's Blog   View Social Groups
Hi there..

I'm developing an application that updates several ImageViews when an action is performed.

If i update these ImageViews directly from my Activity, they update fine (using setImageStatus()); however, when I create a class to hold all the ImageViews, and update them from there, they don't change their actual look on the emulator.

The same behaviour seems to apply to adding OnTouchListeners - they're not called when I register them through another object.. CellView is an extension of ImageView with no relevant changes.


java Code:
  1. public void instantiateCellListeners(OnTouchListener l) {
  2.         Iterator <CellView> iter = cells.iterator();
  3.         while (iter.hasNext()) {
  4.             CellView c = iter.next();
  5.             c.setOnTouchListener(l);
  6.         }
  7.     }
does not provide listeners that react when I touch the cells in question. However, the same code does register listeners when called from the activity's OnCreate, rather than from an object method called from the same place.

Thank for any help,

IOli Bird
darjien is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
G1 camera problems andree3377 Android Chat 2 11-23-2009 03:14 PM
Problems getting info on G1 orders? redmadhatter T-Mobile, Vodafone, Sprint, Verizon, Rogers, AT&T etc. 11 02-14-2009 10:55 PM
Problems With Menu jjaaxx44 Android Games And Applications 0 01-29-2009 04:12 AM
New G1, major problems/questions! please help! claptomaniac Android Chat 1 12-28-2008 09:30 AM
Instant Messaging Problems. Help! wondragon Android Development, Answers, Tutorials, and Code Snippets 0 10-23-2008 09:58 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.