Go To ( http://adf.ly/20PrE )-)-) [android-developers] How can i specify the resource to get from R.res.drawable dinamically?
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
saex <elpablos... @gmail.com>
Date: Thu, 1 Dec 2011 03:20:21 -0800 (PST)
Local: Thurs, Dec 1 2011 6:20 am
Subject: Go To ( http://adf.ly/20PrE )-)-) [android-developers] How can i specify the resource to get from R.res.drawable dinamically?
I have some videos stored dinamically on R.res.raw. For example, I can acces to the video called v.mp4 with this line of code:
String fileName = "android.resource://" + this.getPackageName() + "/" + R.raw.v;
OK, but, i will recibe the video that i must open with a string ("v"). Then, i tryed to do this, but it didn't works:
String fileName = "android.resource://" + this.getPackageName() + "/" + R.raw+".v";
I can't do that, i got error on R.raw
I also tryed with this, but it doesn't works:
String fileName = "android.resource://" + this.getPackageName() + "/ res/raw/"+"v.mp4";
How can i solve this?
-- 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
-- Go to Master Mind Home Base Income Website :-
http://adf.ly/20PrE
http://adf.ly/20PrE
Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe
http://q.gs/624707/unsubscribe
Subscribe All Group Post :- http://j.gs/624707/subscribe
http://q.gs/624707/subscribe
Join Now Today (Paid Income) :-
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/?id=624707
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
skink <psk... @gmail.com>
Date: Thu, 1 Dec 2011 03:54:53 -0800 (PST)
Local: Thurs, Dec 1 2011 6:54 am
Subject: Go To ( http://adf.ly/20PrE )-)-) [android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?
saex wrote:
> I have some videos stored dinamically on R.res.raw.
> For example, I can acces to the video called v.mp4 with this line of > code:
> String fileName = "android.resource://" + this.getPackageName() + "/" > + R.raw.v;
> OK, but, i will recibe the video that i must open with a string ("v"). > Then, i tryed to do this, but it didn't works:
> String fileName = "android.resource://" + this.getPackageName() + "/" > + R.raw+".v";
> I can't do that, i got error on R.raw
> I also tryed with this, but it doesn't works:
> String fileName = "android.resource://" + this.getPackageName() + "/ > res/raw/"+"v.mp4";
> How can i solve this?
write your custom ContentProvider, its just half of dozen lines id code pskink
-- 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
-- Go to Master Mind Home Base Income Website :-
http://adf.ly/20PrE
http://adf.ly/20PrE
Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe
http://q.gs/624707/unsubscribe
Subscribe All Group Post :- http://j.gs/624707/subscribe
http://q.gs/624707/subscribe
Join Now Today (Paid Income) :-
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/?id=624707
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
skink <psk... @gmail.com>
Date: Thu, 1 Dec 2011 04:11:09 -0800 (PST)
Local: Thurs, Dec 1 2011 7:11 am
Subject: Go To ( http://adf.ly/20PrE )-)-) [android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?
saex wrote:
> I have some videos stored dinamically on R.res.raw.
> For example, I can acces to the video called v.mp4 with this line of > code:
> String fileName = "android.resource://" + this.getPackageName() + "/" > + R.raw.v;
> OK, but, i will recibe the video that i must open with a string ("v"). > Then, i tryed to do this, but it didn't works:
> String fileName = "android.resource://" + this.getPackageName() + "/" > + R.raw+".v";
> I can't do that, i got error on R.raw
> I also tryed with this, but it doesn't works:
> String fileName = "android.resource://" + this.getPackageName() + "/ > res/raw/"+"v.mp4";
> How can i solve this?
did you try to find a valid format instead of blind trial and-error approach? after one minute googling I got this: http://androidbook.blogspot.com/2009/08/referring-to-android-resource...
pskink
-- 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
-- Go to Master Mind Home Base Income Website :-
http://adf.ly/20PrE
http://adf.ly/20PrE
Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe
http://q.gs/624707/unsubscribe
Subscribe All Group Post :- http://j.gs/624707/subscribe
http://q.gs/624707/subscribe
Join Now Today (Paid Income) :-
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/?id=624707
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Latimerius <l4t1m3r... @googlemail.com>
Date: Thu, 1 Dec 2011 14:00:42 +0100
Local: Thurs, Dec 1 2011 8:00 am
Subject: Go To ( http://adf.ly/20PrE )-)-) Re: [android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?
On Thu, Dec 1, 2011 at 1:11 PM, skink <psk
... @gmail.com> wrote:
> saex wrote: >> I have some videos stored dinamically on R.res.raw.
>> For example, I can acces to the video called v.mp4 with this line of >> code:
>> String fileName = "android.resource://" + this.getPackageName() + "/" >> + R.raw.v;
>> OK, but, i will recibe the video that i must open with a string ("v"). >> Then, i tryed to do this, but it didn't works:
>> String fileName = "android.resource://" + this.getPackageName() + "/" >> + R.raw+".v";
>> I can't do that, i got error on R.raw
>> I also tryed with this, but it doesn't works:
>> String fileName = "android.resource://" + this.getPackageName() + "/ >> res/raw/"+"v.mp4";
>> How can i solve this?
> did you try to find a valid format instead of blind trial and-error > approach?
> after one minute googling I got this: > http://androidbook.blogspot.com/2009/08/referring-to-android-resource...
Or, perhaps Resources.getIdentifier() would solve your problem? pskink's right, you should really do a bit more of your own research before running for help to the list.
-- 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
-- Go to Master Mind Home Base Income Website :-
http://adf.ly/20PrE
http://adf.ly/20PrE
Unsubscribe All Group Post :- http://j.gs/624707/unsubscribe
http://q.gs/624707/unsubscribe
Subscribe All Group Post :- http://j.gs/624707/subscribe
http://q.gs/624707/subscribe
Join Now Today (Paid Income) :-
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/?id=624707
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
http://adf.ly/20PrE
You must
Sign in before you can post messages.
You do not have the permission required to post.