Monday, February 21, 2011

Can not receiver android.provider.Telephony.WAP_PUSH_RECEIVED in MMS?

I have seen most of the people complaining about not receiving android.provider.Telephony.WAP_PUSH_RECEIVED intent. This is because most of the time they missed out on adding the MIME Type. This is the correct way to define the receiver

Sunday, February 13, 2011

Could not load definitions from resource proguard/ant/task.properties

To fix this,

1. Open add-proguard-release.xml
2. Goto Line 19.
3. add "lib" to the following location

value="${proguard.dir}/lib/proguard.jar"

Expecting class path separator ':' before '{' in argument number in Ant + Android build scripts

Today when I tried to Incorporate Ant build scripting with ProGard I got this error.

BUILD FAILED
/path/to/add-proguard-release.xml:35: Expecting class path separator ':' before '{' in argument number 1

to fix this error add following line to your default.properties file:

external.libs.dir=libs

Wednesday, February 9, 2011

-Dosgi.requiredJavaVersion=1.5 Error

---------------------------
Eclipse
---------------------------
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os win32
-ws win32
-arch x86
-showsplash C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\\plugins\org.eclipse.platform_3.3.200.v200906111540\splash.bmp
-launcher C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\eclipse.exe
-name Eclipse
--launcher.library C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jdk1.6.0_23\bin\..\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=C:\Aruna\Android\eclipse-jee-galileo-win32\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
---------------------------
OK
---------------------------

I started getting this error message today morning and after few hours of googling I found how to fix this.

For some reason, Eclipse is using 32-Bit version of the Java Run time and when it kicks up, it's looking for the 32-Bit version of the Runtime. To fix this you need to download 32-bit version of the SDK from here . Then make sure Path variable in the Envirnment variable set to the 32 bit path as well.

Hope this will save someones day.