Cannot find symbol class android.view.MenuItem

by Mark Murphy » Sun, 07 Sep 2008 10:46:12 GMT


Sponsored Links
 > I am trying to import the MenuItem class, but getting following error

Are you sure you are using the 0.9 SDK? The previous milestone had
Menu.Item instead.

--
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 1.1 Published!



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. build android sdk from git on ubuntu 10.04 fail

i getting start with http://source.android.com/source/download.html.
 i use ubuntu 10.04 ,i install android step by step.
 i type "make" at last,i get an error

host C: libneo_util <= external/clearsilver/util/neo_hash.c
host SharedLib: libneo_util (out/host/linux-x86/obj/lib/
libneo_util.so)
host C: libneo_cs <= external/clearsilver/cs/csparse.c
host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so)
host C: libneo_cgi <= external/clearsilver/cgi/cgiwrap.c
host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
host C: libneo_cgi <= external/clearsilver/cgi/html.c
host C: libneo_cgi <= external/clearsilver/cgi/date.c
host C: libneo_cgi <= external/clearsilver/cgi/rfc2388.c
host SharedLib: libneo_cgi (out/host/linux-x86/obj/lib/libneo_cgi.so)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
4.4.3/../../../libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/
4.4.3/../../../libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
-lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -
lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libneo_cgi.so] error 1

  it look like somethings wrong with libz,but zlib1g-dev is install .i
try to google it all around web,but i get nothings,could anybody have
some idea with this?

-- 

2. How to find if the device is connected via USB.

Hi All,

How can i find out if my device is already connected via USB.Is there
a way i can do it in code just the way i can check network
connectivity using ConnectivityManager. ??
I was able to broadcast my "USB connected intent" and receive it,but
was struggling to check if the device is already connected or not.

public class Startnext extends BroadcastReceiver{

        @Override
        public void onReceive(Context context, Intent intent) {
                CharSequence text = "USB connected";
        int duration = Toast.LENGTH_SHORT;
        Toast toast = Toast.makeText(context, text, duration);
        toast.show();

        }

}


Please help in this regard if anyone has an idea about it.



-- 

3. URGENT: Opening for BSP/ Driver Engineers

4. is there an easier way?

5. System-wide touch events OR User activity

6. how to detect whether android device supports audio & video recording

7. How to get Memory Usage in android?