Archive

Posts Tagged ‘permission’

Expand the status notification bar

March 20, 2012 1 comment

This is a really nice trick.

If you’ve ever tried some Launcher like: ADW Launcher, Go Launcher EX….you may pay attention that when you fling down on Home screen, it will scroll down the status notification bar.

Here what it  looks like..in my phone while scrolling down if you can’t imagine what I’m talking about.

Expand Status Bar

Expand Status Bar

About the implementation:

Object service  = getSystemService("statusbar");
Class<?> statusbarManager = Class.forName("android.app.StatusBarManager");
Method expand = statusbarManager.getMethod("expand");
expand.invoke(service);

Also you need to add a required permission, that is: "android.permission.EXPAND_STATUS_BAR"

Happy coding!

Cheers,

Pete Houston

What a hilarious day of laziness and sleepiness

October 29, 2011 Leave a comment

Slept at 10.15pm last night, I woke up at 10am this morning. Wow, close enough to achieve 12-hour sleep! Oh dear, what am I?

It’s not the worst thing, the electricity was gone, terribly bad, which means NO INTERNET, NO COMPUTER USE, NO EVERYTHING … Thinking for a while, went to take a freaking freezing shower, it is still autumn, you know; but WHY THE WATER IS SO COLD???

Later I decided to have lunch at my honey home, everyone was there and it was fun :).

Back home later, had a 3-hour sleep again…and still NO ELECTRICITY. Sitting and playing some guitar, and thanks to God, THE LIGHT backed at 6.30pm.

Now, preparing to create a Windows 7 Bootable USB…Ding Dang..VIRUS on the fly :(, more work to do @.O;;

Anyway, some useful links for today diary of worst stuffs ever:

http://arstechnica.com/business/news/2009/12/-the-usb-flash-drive.ars

http://forum.thewindowsclub.com/windows-tips-tutorials-articles/18379-how-take-ownership-full-control-permissions-files-folders-windows.html

http://rmgrms.deviantart.com/art/Grant-Admin-Full-Control-217651003

Windows 7 USB/DVD Download Tool – Download from Microsoft

Command for granting permissions for files/folders

takeown /f file_name /d y
icacls file_name /grant administrators:F

takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
Categories: Of Diary Tags: , , , ,