Does anyone know if this restriction applies to all files? Or just
certain formats?

I couldn't find it in the documentation.

Kelsey

On Oct 6, 10:46 pm, kelseywright <[EMAIL PROTECTED]> wrote:
> The context issue was my problem and now it can open the file....and
> it turns out the file is too big anyways:
>
> Data exceeds UNCOMPRESS_DATA_MAX (1582245 vs 1048576)
>
> I can't win.
>
> Kelsey
>
> On Oct 6, 9:53 pm, "Xavier Ducrohet" <[EMAIL PROTECTED]> wrote:
>
> > To access your resource you need to get a reference to the
> > android.content.res.Resources object for your application.
>
> > To do this, you can call getResources() on any object extending
> > android.content.ContextWrapper (Activity, Service, Context, or
> > Application for instance).
>
> > A context is necessary because you could have several version of your
> > resources (based on phone configuration such as orientation, language,
> > etc...).
>
> > Resources.getSystem() does not work because it gives you the system
> > resources, not your application resources.
>
> > Xav
>
> > On Mon, Oct 6, 2008 at 6:42 PM, kelseywright <[EMAIL PROTECTED]> wrote:
>
> > > No, that is the name of the project I am working on and I am trying to
> > > access the resource from within that package. And it seems to me it
> > > should be trivial....that is why I am so frustrated trying to figure
> > > out what is going on. Nothing worse than something that should work
> > > easily not working at all.
>
> > > Basically the code I have written for Android is in that package, and
> > > then I have a lot of support code in other packages, but that is the
> > > package that I am trying to access it from, that is the package where
> > > the file I want does appear in the R file, that is the package with my
> > > receiver, and that is the package I declared in my manifest.
>
> > > Kelsey
>
> > > On Oct 6, 9:23 pm, Steve Oldmeadow <[EMAIL PROTECTED]> wrote:
> > >> On Oct 7, 1:07 am, kelseywright <[EMAIL PROTECTED]> wrote:
>
> > >> > com.l1ghtm4n.text2speech.R     <- this is the one I was importing as
> > >> > it contains the raw.myfilename for the file I am trying to open.  This
> > >> > R file does include the line "package com.l1ghtm4n.text2speech;".
>
> > >> Is com.l1ghtm4n.text2speech your project?  It sounds like you are
> > >> trying to import the resources from another project.  If so that is a
> > >> bit trickier than just opening a raw resource and you should have
> > >> mentioned that initially.  I suggest breaking the problem down.  First
> > >> try to open a resource from your own project by importing the R file
> > >> for your project and make sure your R file is not in the default
> > >> package.
>
> > >> As Peter has indicated, using resources is normally trivial.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to