[android-developers] Storing images (but not in /sdcard/dcim)

2009-02-15 Thread Eric Sun

I'm writing an app that needs to manage its own images.  That is, it
should only be able to pick, send, delete etc. the images that it
generated.

Reading through the Dev Guide, it seems that using the
MediaStore.Images.Media.insertImage call is the way that I should be
inserting images.  I tried this, and it writes files and thumbs out
fine, but there are a few problems with this:

1)  It always puts the images in /sdcard/dcim (I don't see a way to
control the output location)
2)  Using the pick intent for image/* opens a full view of camera pics
and pics from my app.
3)  InsertImage saves everything as a 50% quality JPEG
4)  If I do 'hack' in a PNG, the pictures app blows up

Sorry for the long winded explanation, but the question is here:

Can I use any of the default provider framework to work off of a
custom directory, or am I pretty much stuck writing my own picker,
image provider, and thumnail provider?  I'm fairly new to Android, so
I'm hoping that I'm missing something simple here :)

Thanks in advance!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Issue with installing ADT for Eclipse Ganymede 3.4

2008-11-02 Thread Eric Sun

I had this issue in Ubuntu Hardy Heron and found that my "/etc/jvm"
file didn't have java 1.6 on the top line, so I suspect it was trying
to run the android SDK under 1.5?  Anyway here's a link that may be
useful if you're using Ubuntu:

http://www.apreche.net/how-to-setup-android-sdk-in-ubuntu/

On Oct 27, 4:42 pm, Rich <[EMAIL PROTECTED]> wrote:
> I'm getting this error now. Also using Ubuntu, Sun-Java-6.
>
> Ever solve this, Frantz?
>
> =/
>
> On Oct 5, 5:23 pm, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
>
> > Nobody has an idea ?
>
> > On 4 oct, 14:42, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
>
> > > Yeah, i've realized after post that the problem wasn't the same.
>
> > > I've tried to use the archive in order to install and i got this when
> > > I'm trying to make a new Android project :
>
> > > Plug-in com.android.ide.eclipse.adtwas unable to load class
> > >com.android.ide.eclipse.adt.project.internal.NewProjectWizard.
> > > An error occurred while automatically activating bundle
> > >com.android.ide.eclipse.adt(581).
>
> > > When I want to set the parameters of the plugin I got a new error :
> > > Unable to create the selected preference page.
> > > An error occurred while automatically activating bundle
> > >com.android.ide.eclipse.adt(581).
>
> > > Any idea around all this problem ? I found nothing around
> > > troubleshooting that could be helpful
>
> > > Thank you
>
> > > Fräntz
>
> > > On 4 oct, 14:18, Charlie Collins <[EMAIL PROTECTED]> wrote:
>
> > > > The issue with updating via the update site is different.
>
> > > > For that one, make sure you have tried the "troubleshooting" steps in
> > > > the install doc:
>
> > > >http://code.google.com/android/intro/installing.html.
>
> > > > Note that if you can't get to the update site, you can usually still
> > > > download the plugin locally and install it as a local archive (see the
> > > > troubleshooting section).
>
> > > > On Oct 4, 7:21 am, Fräntz Miccoli <[EMAIL PROTECTED]> wrote:
>
> > > > > I got the same problem... The path given on android website is 
> > > > > :https://dl-ssl.google.com/android/eclipse/
>
> > > > > This give me an error in my firefox browser, is this a problem that
> > > > > came from google's server ?
>
> > > > > On 20 sep, 04:04, Trevor <[EMAIL PROTECTED]> wrote:
>
> > > > > > I'm having this issue as well, only after having installed 
> > > > > > everything
> > > > > > just today to start developing.
>
> > > > > > Using Ubuntu Hardy
>
> > > > > > Eclipse SDK Version: 3.2.2
> > > > > > Build id: M20070212-1330 (Ubuntu version: 3.2.2-5ubuntu2)
>
> > > > > > Update Manager for Eclipse also seems to be taking an eternity to 
> > > > > > run
> > > > > > as well. Perhaps the issues are linked?
>
> > > > > > On Sep 19, 2:35 am, Sidhartha <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Hi All,
>
> > > > > > > I am trying to insatll theADTplug-in for Eclipse Ganymede 3.4 
> > > > > > > using
> > > > > > > the archive path. I had provided the archive for installing 
> > > > > > > theADT.
> > > > > > > It gives me an error stating some resource files are missing. 
> > > > > > > When i
> > > > > > > try to create a new project i get the following error:
>
> > > > > > > The selected wizard could not be started.
> > > > > > >   Plug-in com.android.ide.eclipse.adtwas unable to load class
> > > > > > >com.android.ide.eclipse.adt.project.internal.NewProjectWizard.
> > > > > > >  com/android/ide/eclipse/adt/project/internal/NewProjectWizard
> > > > > > > (Unsupported major.minor version 49.0)
>
> > > > > > > This was working till Sep 17th, not sure i some new version's been
> > > > > > > released. Could someone provide some pointers as how to solve this
> > > > > > > issue.
>
> > > > > > > Thanks,
> > > > > > > Sidhartha

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---