protocol buffer implementations

by rap » Wed, 11 Nov 2009 07:09:23 GMT


Sponsored Links
 Hi,

May i ask whats the difference between these two protobuf
implementations?

com.google.common.io.protocol classes -> used by android
com.google.protobuf package classes -> standard protobuf libraries

and should I be using the former for Android Development instead of
the latter, also does it have a compiler like "protoc" to
compile .proto files that i can download somewhere? Any feedback is
greatly appreciated


Regards,
Rahul

--



Other Threads

1. Forward GeoCoder usage for listing business..

Hi Folks,
anyone had luck using forward geocoder calls to list business address
latitude/longitudes using ..getFromLocationName(address, maxresults).?
what i found out was that the above would work if we have a specific address
, say ,"1600 amphitheater way, mountain view, CA"  or just use the locality
address , say, " Mountain view, CA" but does not work for example if you say
" wholefoods , mountain view, CA.".

any tips on how to make business search..

thanks
Sunil.

--

2. HelloAndroid.apk has a CERT.RSA File of Size 0

My HelloAndroid.apk has a CERT.RSA file of size 0.  Thus the apk is
invalid.

$ jar -tvf bin/HelloAndroid.apk
   640 Mon Dec 21 20:20:38 PST 2009 res/layout/main.xml
  1440 Mon Dec 21 20:20:38 PST 2009 AndroidManifest.xml
  1320 Mon Dec 21 19:24:06 PST 2009 resources.arsc
  3966 Mon Dec 21 19:24:06 PST 2009 res/drawable-hdpi/icon.png
  1537 Mon Dec 21 19:24:06 PST 2009 res/drawable-ldpi/icon.png
  2200 Mon Dec 21 19:24:06 PST 2009 res/drawable-mdpi/icon.png
  2200 Mon Dec 21 19:24:06 PST 2009 classes.dex
   564 Mon Dec 21 20:20:38 PST 2009 META-INF/MANIFEST.MF
   617 Mon Dec 21 20:20:38 PST 2009 META-INF/CERT.SF
java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill
(InflaterInputStream.java:241)
        at java.util.zip.InflaterInputStream.read
(InflaterInputStream.java:159)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:
118)
        at sun.tools.jar.Main.list(Main.java:782)
        at sun.tools.jar.Main.run(Main.java:228)
        at sun.tools.jar.Main.main(Main.java:942)

$ jar -xvf HelloAndroid.apk
 inflated: res/layout/main.xml
 inflated: AndroidManifest.xml
extracted: resources.arsc
extracted: res/drawable-hdpi/icon.png
extracted: res/drawable-ldpi/icon.png
extracted: res/drawable-mdpi/icon.png
 inflated: classes.dex
 inflated: META-INF/MANIFEST.MF
 inflated: META-INF/CERT.SF
java.io.EOFException: Unexpected end of ZLIB input stream
        at java.util.zip.InflaterInputStream.fill
(InflaterInputStream.java:241)
        at java.util.zip.InflaterInputStream.read
(InflaterInputStream.java:159)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:166)
        at sun.tools.jar.Main.extractFile(Main.java:753)
        at sun.tools.jar.Main.extract(Main.java:716)
        at sun.tools.jar.Main.run(Main.java:226)
        at sun.tools.jar.Main.main(Main.java:942)

$ ll META-INF/
total 8
-rw-rw-r-- 1 ssiano ssiano   0 Dec 21 20:24 CERT.RSA
-rw-rw-r-- 1 ssiano ssiano 617 Dec 21 20:24 CERT.SF
-rw-rw-r-- 1 ssiano ssiano 564 Dec 21 20:24 MANIFEST.MF

Following is my development environment:

Eclipse 3.5
Eclipse Java EE IDE for Web Developers.
Build id: 20090920-1017
Android Development Toolkit 0.9.5.v200911191123-20404
$ uname -a
Linux <host> 2.6.18-164.9.1.el5 #1 SMP Wed Dec 9 03:27:37 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
$ ll /usr/bin/jarsigner /usr/bin/keytool
lrwxrwxrwx 1 root root 27 Oct 11  2007 /usr/bin/jarsigner -> /etc/
alternatives/jarsigner
lrwxrwxrwx 1 root root 25 Oct 11  2007 /usr/bin/keytool -> /etc/
alternatives/keytool
$ ll /etc/alternatives/jarsigner /etc/alternatives/keytool
lrwxrwxrwx 1 root root 48 Dec 19 13:43 /etc/alternatives/jarsigner -> /
usr/lib/jvm/java-1.5.0-ibm.x86_64/bin/jarsigner
lrwxrwxrwx 1 root root 45 Nov 27  2007 /etc/alternatives/keytool -> /
usr/lib/jvm/jre-1.5.0-ibm.x86_64/bin/keytool

The verbose build output does not indicate a problem:
[2009-12-21 20:20:37 - HelloAndroid]Using default debug key to sign
package
[2009-12-21 20:20:39 - HelloAndroid]Packaging /home/<user>/eclipse/
java/HelloAndroid/bin/resources.ap_
[2009-12-21 20:20:39 - HelloAndroid]Packaging classes.dex

I would greatly appreciate advice on how to generate a valid APK.

--

3. Eclipse : Android Manager & AVD cannot start due to missing platform

4. SurfaceView looses focus and doesn't restore it?

5. Questions on 2.0 vs 1.5 and what device to buy

6. linux eclipse adt can't find valid paths

7. Adding set wallpaper ability to webview