[android-developers] Re: Remove menu if no camera found?

2011-11-20 Thread limtc
I am still searching around and found this thread: http://www.mail-archive.com/android-developers@googlegroups.com/msg102196.html Seems like still need to test on real device? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to thi

[android-developers] Re: Remove menu if no camera found?

2011-11-20 Thread limtc
Hi, I actually tried this: I set up a KindleFire AVD with Camera support=no. I am doing experiment: -- public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu, menu); PackageManager packageManager = getPacka

Re: [android-developers] Re: Remove menu if no camera found?

2011-11-20 Thread Mark Murphy
On Sun, Nov 20, 2011 at 8:35 AM, limtc wrote: > I have a related note - without a camera-less device, how do I test? > > Is it able to set up a AVD without a camera? When you create the AVD, in the Hardware area, click the New... button and choose "Camera support". It will then default to "no". I

[android-developers] Re: Remove menu if no camera found?

2011-11-20 Thread limtc
I have a related note - without a camera-less device, how do I test? Is it able to set up a AVD without a camera? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To u

[android-developers] Re: Remove menu if no camera found?

2011-11-20 Thread limtc
Thank you! I will try this now! :) On 11月20日, 下午8时56分, Mark Murphy wrote: > On Sun, Nov 20, 2011 at 12:14 AM, limtc wrote: > > I have a menu item in menu.xml that allows user to click and use > > camera. > > > Since now there are more devices without camera (Kindle Fire, etc), > > would like to