Jason Parekh wrote:
[...]
> As an interim solution, you could, in your onCreateOptionsMenu, go
> through each menu item and do:
> 
> Intent intent = item.getIntent();
> if (intent != null) item.setIcon(packageManager.getActivityIcon(intent));

Thanks, that ought to do it --- but I can't seem to find any way of
iterating through a Menu and looking at each MenuItem! The only way I
can see of getting a MenuItem out of a Menu is to call Menu.findItem();
but that needs an id, and they're all likely to be 0. What am I missing?

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
│ --- Conway's Game Of Life, in one line of APL

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to