Expand the status notification bar
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.
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
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://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
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Categories
- Home (4)
- Learning (149)
- Books & Materials (2)
- Design Patterns (2)
- PhoneGap (1)
- Tricks & Tips (75)
- Tutorials (69)
- Of Diary (20)
- Pete's Works (8)
- Applications (7)
- Publications (1)
- Tools (7)
Recent Posts
Most Popular
Tag Cloud
activity android apk application applications auto bar bitmap blog books cache check coding color connect content create custom data database design detect device diary document dota effect element emulator event file filter handle home houston icon image imageview intent jsoup landscape launcher listview memory message mp3 new parse parser pete phone portrait processing programming query screen script secret sending showcase specific sqlite tag text time tips tools tricks tutorial tutorials view xjaphx xml xpath zipArchives
- July 2013 (1)
- January 2013 (5)
- December 2012 (4)
- October 2012 (2)
- September 2012 (1)
- August 2012 (2)
- July 2012 (12)
- June 2012 (1)
- May 2012 (7)
- March 2012 (1)
- February 2012 (3)
- January 2012 (2)
- December 2011 (8)
- November 2011 (12)
- October 2011 (19)
- September 2011 (16)
- July 2011 (29)
- June 2011 (63)
Statistics
- 2,053,740 View