Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Go To ( http://adf.ly/20PrE )-)-) [android-developers] How can i specify the resource to get from R.res.drawable dinamically?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
saex  
View profile  
 More options Dec 1 2011, 6:20 am
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Go To ( http://adf.ly/20PrE )-)-) [android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?" by skink
skink  
View profile  
 More options Dec 1 2011, 6:54 am
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?

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
skink  
View profile  
 More options Dec 1 2011, 7:11 am
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?

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Go To ( http://adf.ly/20PrE )-)-) Re: [android-developers] Re: How can i specify the resource to get from R.res.drawable dinamically?" by Latimerius
Latimerius  
View profile  
 More options Dec 1 2011, 8:00 am
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?

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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »