Pages

Sunday, 17 March 2013

Android Layout Tricks #2: Reusing layouts

Android comes with a wide variety of widgets, small visual construction blocks you can glue together to present the users with complex and useful interfaces. However applications often need higher level visual components. A component can be seen as a complex widget made of several simple stock widgets. You could for instance reuse a panel containing a progress bar and a cancel button, a panel containing two buttons (positive and negative actions), a panel with an icon, a title and a description, etc. Creating new components can be done easily by writing a custom View but it can be done even more easily using only XML.

In Android XML layout files, each tag is mapped to an actual class instance (the class is always a subclass of View.) The UI toolkit lets you also use three special tags that are not mapped to a View instance: , and . The latter, , can be used to create pure XML visual components. (Note: I will present the tag in the next installment of Android Layout Tricks.)

The does exactly what its name suggests; it includes another XML layout. Using this tag is straightforward as shown in the following example, taken straight from the source code of the Home application that currently ships with Android:

   

In the only the layout attribute is required. This attribute, without the android namespace prefix, is a reference to the layout file you wish to include. In this example, the same layout is included three times in a row. This tag also lets you override a few attributes of the included layout. The above example shows that you can use android:id to specify the id of the root view of the included layout; it will also override the id of the included layout if one is defined. Similarly, you can override all the layout parameters. This means that any android:layout_* attribute can be used with the tag. Here is an example:

This tag is particularly useful when you need to customize only part of your UI depending on the device's configuration. For instance, the main layout of your activity can be placed in the layout/ directory and can include another layout which exists in two flavors, in layout-land/ and layout-port/. This allows you to share most of the UI in portrait and landscape.

Like I mentioned earlier, my next post will explain the , which can be particularly powerful when combined with .

Android Developers Have Risen to the Challenge

I'm thrilled to share the news that developers from over 70 countries submitted 1,788 entries to the Android Developer Challenge!

Here are a few facts that I thought were interesting. When we announced the Android Developer Challenge back in January, developers started submitting entries right away but it wasn't until the April 14 deadline approached that the flood really began. The rate of submissions spiked in the wee hours of Tuesday morning, reaching as high as 170+ submissions per hour.

What I find truly amazing is how global the interest in the challenge has been. Developers from the United States submitted one-third of the total applications while the rest came from countries such as Germany, Japan, China, India, Canada, France, UK, and many others. The entries are also very diverse representing many application areas, from games to social-networking applications, to utilities, to productivity and developer tools, and many more. On behalf of the Open Handset Alliance, I want to thank everyone who has submitted entries to the challenge. We look forward to reviewing all of them.

Now that the applications are in, over 100 judges will soon receive judging packets and laptops that we've preloaded with all the submissions, for a consistent, fair environment to judge the submissions. The majority of the judges are from member companies of the Open Handset Alliance, in addition to non-alliance mobile industry experts who have all graciously volunteered their time. I'd like to thank these judges too for all the time they will be putting into this.

In May, we'll be informing the 50 Semi-finalists who will be awarded $25,000 each. Until then, the team and I will have our hands full.

Saturday, 16 March 2013

ROM Toolbox Pro v5.4.5 Apk

ROM Toolbox Pro v5.4.5
ROM Toolbox Pro v5.4.5 Apk

Requirements: Android 2.0+, Lucky Patcher
Overview: ROM Toolbox is the MUST HAVE app for any rooted user.

ROM Toolbox combines all the great root apps all tied up into one monster app with a beautiful and user-friendly interface. It also adds many more unseen features!
This app requires root permission.

FEATURE LIST:

==== TOOLS ====
-- ROM Manager --
? Install full ROMs and other zips from a growing list of ROMs
? Create, manage and restore nandroid backups
? Wipe data, cache, dalvik-cache, battery stats
? Install a ROM from your SD card

-- App Manager --
? Batch backup & restore
? Automatically backup apps when they are installed
? Automatically delete backups when uninstalled (off by default)
? Send backups via gmail/email or dropbox
? Sort backups by already installed, same as installed, older versions, etc.
? Backup/restore app data
? Backup/restore Android Market link
? Task manager
? View memory usage
? Show/hide different processes
? Automated batch uninstaller
? E-mail your apps to friends
? Share with other applications which accept text (SMS, facebook, google reader, etc...)
? Move *any* user app to the SD card
? Freeze/Defrost system & user apps
? Market Doctor (Link *any* app to the Android Market)
? Break market links
? Clean up dalvik-cache
? Zipalign all apks
? Fix permissions on all apps
? Wipe data or cache for apps
? Force close apps

-- Root File Browser --
? Access the whole of android's file system (including the elusive data folder!).
? Batch copy/paste, zip, tar, delete, move any file or folder
? Change file permissions and ownership
? View, edit and share files
? Add new files & folders in any directory

-- Scripter & Terminal Emulator --
? Create and run scripts as root
? Download & run new scripts from an ever-growing list

-- Auto Start Manager --
? Enable/disable apps that run on start-up
? Enable/disable any intent/action apps receive

-- Ad Blocker --
? Choose to block ads, porn, casino & risky sites
? Add new sites to the hosts file
? Use custom IP

-- Configure Apps2SD --
? Select the default install location for apps

-- Rebooter --
? Reboot recovery, powerdown, bootloader, restart status bar, etc.

==== INTERFACE ====
-- Font Installer --
? Install custom fonts to your whole device from a list of over 150
? Set fonts as favorites and send them to friends

-- Boot Animation Installer --
? Install custom boot animations from over 100+
? Preview boot animations
? Backup & preview your current animation

-- Theme Manager --
? Create themes to install to your system
? Install a theme from other users

-- Icon Changer --
? Customize your status bar by installing custom icons for wifi, 3g/4g, gps, usb, etc.
? Change your battery icons in the status bar to a custom one from a list of 150+

-- Boot Logo Changer --
? Change your boot logo (splash screen) for supported phones

-- Theme Chooser Themes --
? View a list of themes for the CM7 theme chooser

==== PERFORMANCE ====
-- CPU Sliders --
? SetCPU and scaling governor
? Apply cpu at boot
? View cpu info

-- Build.prop Tweaks --
? Easily edit your build.prop
? Change lcd density, improve battery life, increase performance

-- Auto Memomory Manager --
? Set minfree values and select from presets
? Apply minfree at boot

-- SD Boost --
? Increase the speed of your SD card

-- Sysctl Tweaks --
? Easily modify sysctl values

Are you a ROM developer? Get your ROM in Rom Toolbox today! Email us, what are you waiting for? We would also love if you put ROM Toolbox (free) in your ROM. Email us and we will offer support

What's in this version:
We have tons of features we are working on! This is what's new in the latest version:
Version 5.4.5:
- Fixed folder shortcuts
- Set the same permissions when copying a file
- Prompt to overwrite files when copying instead of making a copy
- Fixed freezing while copying files with SuperSU full logging enabled
- Fixed freeze while loading folders with many files
- Better image loading
- Fix date format being flip-flopped
- Better image loading
- Fixed /data/ not listing files

Note:
1. Remove version 5.4.3 or other previous version including data first.
2. Clear Data to Luckypatcher, and run LuckyPatcher the custom patch will be saved to /sdcard/LuckyPatcher/
3. Install 5.4.5 and don't run ROM toolbox pro, then use Lucky Patcher to remove the protection via custom patch
4. Reboot Phone

Download

Samsung Galaxy Tab, Advanced Tablet 10.1

Samsung Galaxy Tab
Samsung Galaxy Tab 10.1, the new and revised version of the Galaxy Tab series sporting a dual-core processor and 10.1? inch screen for your viewing pleasure. With the rise of Android tablets and the constant comparison to the iPad platform, it’s hard to determine which devices really stand out from the rest. The power of Honeycomb packed into this incredibly light and incredibly thin tablet: Is it enough to bring your wallet out to buy it? Let’s take a look in-depth at the features and determine if value equals or exceeds cost.

The advantages of this Tablet:
1. Thinner and lighter than most tablets.
2. Large screen for your viewing pleasure.
3. Dual-core processor to pack the punch needed for power-hungry apps and games.
4. Rear camera and 720p HD camcorder, front camera for video calling/chatting.
5. Pre-installed with Honeycomb to give the true tablet experience.
6. Long battery life, surprisingly.
7. Tegra 2, allowing you to experience the best games available on the Market.

Disadvantages of this Tablet:
1. Lacking ports for accessories.
2. Proprietary Samsung connector requires shelling out more money.

Design:
Samsung really did a number with this one. The new series of Galaxy Tabs are absolutely stunning in design. When holding the 10.1 for the first time, it almost feels unreal as to how light the final product turned out while packing all the power that’s built into the Galaxy Tab. It weighs in at 1.25 lbs which is even lighter than iPad 2 at 1.33 lbs. Carrying the device around is very easy and presents no problem at all. The downside is that if not handled properly, could easily be dropped and possible break the Tab. The 10.1 is also thinner than the iPad 2 by merely 0.01 inches. It might not seem like a lot, but Apple has always had the upper-hand in physical design from a portability standpoint.

The screen’s resolution is amazing. Pictures were viewed crystal clear and videos looked astonishing. If you’re into entertainment (YouTube, videos, movies, gaming) this screen is a blessing. My only gripe was that the screen isn’t as view-able in direct sunlight as I hoped it to be. Nevertheless, yet again Tab vs iPad 2, the Tab is winning 3 to 0 with a higher resolution screen. Imagine full 1080p HD playback that can fit in your hands.

The proprietary Samsung connector at the bottom was another surprise I hadn’t expected. I felt, in all opinion, that this was a way for Samsung to continue gaining residual income by providing exclusive accessories that are not compatible with over devices. They released a few new accessories recently including the keyboard dock, HDTV adapter, multimedia dock, and (in my opinion their savior) the USB adapter. The adapter will allow you to connect all types of devices such as keyboards, mice, thumb drives, and more.

Features:
Most of the gadgets you'd expect in this clever device:
* Bluetooth 3.0
* Wifi a/b/g/n support, dual-band
* GPS Support (A-GPS)
* Sensors galore! (Accelerometer, Gyroscope, Compass, Ambient light sensor)
* Full Adobe Flash support
* 1GHZ dual-core Nvidia Tegra 2 processor
* 3.5mm stereo headphone jack

The Tab also features two cameras, one 3 megapixel camera on the rear and a 2 megapixel on the front. I have to admit, I was a little disappointed with the camera quality on this device. I expected more from such a high-end device that Samsung has spent the money to market the Tab as. If you’re a photography enthusiast, don’t count on the Tab as a formidable replacement. If you are into taking quick pictures, this may do the trick for you. Video calls using the front-facing camera were crisp and easy to view on the receiving end.

The Touchwiz UI gives a nice touch to the interface while still keeping the true Honeycomb experience alive. Android manufacturers have been known to twist the experience to their liking in the past. Thankfully, I didn’t feel that Samsung was as invasive in the overall day-to-day usage of the Tab. This was comforting considering I could pick up another Honeycomb tablet and still, for the most part, receive the same UI experience I received on the Tab. Small successes like this help begin the reduction of fragmentation that has well plagued the Android eco-system.

One of the best features of Honeycomb is the Gmail experience. Gmail on Honeycomb is how it should have been on Android all along. The visual display of labels, emails, and folders is designed for your maximum viewing pleasure. No other app on the market!

Samsung Apps:
As part of the Samsung experience, the newest line of Galaxy Tab’s feature a few new apps:

Readers Hub: Access to books, magazines, and publications right at your fingertips.
Music Hub: Explore your music or become introduced to new music through the app
Social Hub: Remember the Blackberry experience combining email and text messaging into one? Samsung takes it one step further with adding social networking into one easy-to-use portal
I didn’t get a chance to use these apps due to the version of the 10.1 Tab that was given for review, however, as part of the Touchwiz experience I expect it to be elegant and seamless with the interface of the Tab.

Performance and Battery Life:
The battery (un-removable) packed under the sleek and stylish case is expected to last 9 hours watching HD video and 72 hours of music. Personally, I went the entire week with the Tab only charging it twice with moderate use (some gaming, web browsing, and app testing). That’s pretty impressive. It’s necessary for folks who aren’t near a charger for the majority of the day. Travel folks, on-the-go business professionals, educators…this battery makes the cut.

The power of the dual-core certainly shows when using particularly high-quality apps, viewing Flash-packed websites, and multi-tasking without a flinch.