1. Obtain the system SKD version:
Build. version. SDK
2.Obtain the wallpaper. The returned value is drawable.:
Drawable = getwallpaper ();
3. Get the IP address of the mobile phone:
Public String getlocalipaddress () {try {for (enumeration <networkinterface> en = networkinterface. getnetworkinterfaces (); en. hasmoreelements ();) {networkinterface INTF = en. nextelement (); For (enumeration <inetaddress> enumipaddr = INTF. getinetaddresses (); enumipaddr. hasmoreelements ();) {inetaddress = enumipaddr. nextelement (); If (! Inetaddress. isloopbackaddress () {return inetaddress. gethostaddress (). tostring () ;}}} catch (socketexception ex) {log. E (log_tag, Ex. tostring ();} return NULL ;}
Set full screen
Getwindow (). setflags (windowmanager. layoutparams. flag_fullscreen, windowmanager. layoutparams. flag_fullscreen );
Set no title
Requestwindowfeature (window. feature_no_title );
Set sound mode
Setvolumecontrolstream (audiomanager. stream_music );