jump to navigation

[SOLVED]Eclipse and .svn Android AIDL Problem Август 17, 2009

Posted by russenreaktor in android, develop, eclipse, programming.
Tags: ,
add a comment

Today after adding my android project to svn repository I got

syntax error    entries /src/.svn  line 1  Android AIDL Problem

After searching internet for solutions I installed subversion plug-in (did not helped) but this…

It is worked for me:

  • Delete your project from eclipse (not from disk).
  • «File»->»New..»->»Project»->»Android Project»
  • in «New Adroid Project»-Dialog selected «create project from existing source» (find your project on HDD)->»Finish»

my .classpath-file

<?xml version="1.0" encoding="UTF-8"?><classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin"/></classpath>

Remove ugly sound on HTC HERO boot (SuperHero) Июнь 30, 2009

Posted by russenreaktor in android.
Tags: , , ,
add a comment

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

Using a Horizontal Progress Bar in Android Июнь 23, 2009

Posted by russenreaktor in android, develop, programming.
Tags: ,
add a comment

«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