I am trying to upload to blobstore from android.  BTW, I have the
blobstore upload/download working as a GWT site so I have a decent
understanding of BlobStore.

I want to add these lines of code to my Android project:

BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
String uploadPath = blobstoreService.createUploadUrl("/upload");

But adding the appengine api jar to my project results in the
following Eclipse error that eventually consumes all Virtual Memory
during compile:

Dx warning: Ignoring InnerClasses attribute for an anonymous inner
class
(javax.mail.Session$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced
by a
compiler that did not target the modern .class file format. The
recommended
solution is to recompile the class from source, using an up-to-date
compiler
and without specifying any "-target" type options. The consequence of
ignoring
this warning is that reflective operations on this class will
incorrectly
indicate that it is *not* an inner class.

I use the same appengine api jar in my GWT project without problems.
Research indicates there is a duplicate class among jar files. I
suspect appengine api jar and android jar use javax.mail.

I have 2 questions:
1. How do I use the appengine jar in an Android project?
2. If I can't use appengine jar, how can I request a blobstore upload
url?  I see 2 solutions without the appengine jar:
    A. create an appengine servlet that requests an upload url, then
returns the url to Android.  Android uploads to that upload url.
    B.  somehow send the equivalent syntax to the createUploadUrl()
call using Android httpclient.  But I need guidance on what that
syntax is.

Thanks

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to