June 30, 2009

Remove ugly sound on HTC HERO boot (SuperHero)

You should write in your windows console (do not forget install Android SDK)
adb remount 
adb shell
#cd /system/media
#rm boot.mp3
#reboot

Alternatively you can replace boot image and sound
http://forum.xda-developers.com/showthread.php?t=508078

June 23, 2009

Using a Horizontal Progress Bar in Android

"I was working on my Android downloader application yesterday, when I ran into a bit of a snag. I wanted to display a list of downloads (similar to the Firefox downloads window). Each item in the list should show the file name and a horizontal progress bar. I started to implement this, and several hours later stumbled upon the archaic solution. I wanted to share this, both to help anybody who may be trying to do something similar, and also to illustrate how the lack of good documentation is hurting aspiring Android developers.

I thought that I could put a ProgressBar instance in my xml, set it to be indeterminate, give it a max and a value, and be done. However, it wasn't nearly that easy. After a few hours of hunting on Google and the Android Groups, I stumbled upon the solution in an online preview of The Busy Coder's Guide to Android Development. In short, I had to set the following on my ProgressBar's XML:
style="?android:attr/progressBarStyleHorizontal"

WTF?

" http://bytecrafter.blogspot.com/2008/12/using-horizontal-progress-bar-in.html

to get horizontal progressbar just put

<ProgressBar
android:id="@+id/ProgressBar01"
android:indeterminateOnly="false"
android:progressDrawable="@android:drawable/progress_horizontal"
android:indeterminateDrawable="@android:drawable/progress_indeterminate_horizontal"
android:minHeight="20dip"
android:maxHeight="20dip" android:layout_width="fill_parent"></ProgressBar>


into your \res\layout\main.xml

June 18, 2009

yGuard - Java™ Bytecode Obfuscator and Shrinker

"yGuard is a free Java bytecode obfuscator and shrinker that improves your software deployment by prohibiting unwanted access to your source code and drastically shrinking the processed Jar files at the same time.
Features

* yGuard is absolutely free! Contrary to expensive commercial products of our competitors providing the same amount of features as yGuard or less, yGuard is free.
* yGuard is an Ant task! Existing tools use proprietary mechanisms to invoke or configure the task of obfuscation. As an Ant task, yGuard can be seamlessly integrated into your deployment process using XML syntax.
* yGuard provides highly configurable name obfuscation that will protect your intellectual property from reverse engineering.
* yGuard provides elaborate code shrinking functionality through dependency analysis.
* yGuard 2.0 offers a new powerful and easy to use XML syntax that allows the effortless definition of code entities e.g. based on pattern sets or inheritance.
* yGuard will correctly obfuscate and shrink programs that depend on external libraries.
* yGuard can automatically rename and adjust textual resource files according to the obfuscation scheme.
* yGuard can scramble and unscramble or shrink line number table information. This means that debugging an obfuscated program is still achievable without weakening the obfuscation.
* yGuard can create patches! During each obfuscation run, yGuard produces XML output that can be used to create subsequent patches of already deployed obfuscated applications.
* yGuard supports JDK 1.5 features and correctly obfuscates classes compiled with its new features. " yworks.com