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 fileand
> it turns out the file is too b
The context issue was my problem and now it can open the fileand
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 r
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 trivialthat 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
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 b
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.text2speec
Peter,
When I try this it doesn't recognize getResources() and says it is
undefined.
Steve,
Well, this is what I find:
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 "packa
Peter Wrote
private InputStream inputFile;
inputFile = getResources().openRawResource(R.raw.waypoints);
dbHelper.readWatpointIn(inputFile);
Hope this helps
kelseywright wrote:
> No one has any suggestions on how to troubleshoot this? =(
>
> On Oct 4, 11:21 pm, kelseywright <[EMAIL P
On Oct 6, 11:07 am, kelseywright <[EMAIL PROTECTED]> wrote:
> This is where I am n00bish. I don't know what it even means by package
> the R file is created in - I think I don't know enough about the R
> files. I mean, this file is in a package in my source tree. Is it
> meanign that package? O
This is where I am n00bish. I don't know what it even means by package
the R file is created in - I think I don't know enough about the R
files. I mean, this file is in a package in my source tree. Is it
meanign that package? Or is it something else?
Kelsey
On Oct 5, 10:18 pm, Steve Oldmeadow <
What package is your R file being created in?
--~--~-~--~~~---~--~~
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 thi
No one has any suggestions on how to troubleshoot this? =(
On Oct 4, 11:21 pm, kelseywright <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am trying to open a file in res/raw. I've tried to open it with code
> similar to the following:
>
> int file = R.raw.myfilename;
> System.err.println("file:" + fi
11 matches
Mail list logo