Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 59

Disco Troll
Lost but trying
Profile
Posts: 20
Reg: Nov 17, 2013
Horsham
200
11/24/13 03:23 PM (11 years ago)

Email photo plugin - my 'use picture' button says 'Clear image'

Okay - This may well be an issue with my dev set up but here goes: Andoid developing with Eclipse and using the excellent 'Email photo' plugin. I select a photo to send and I get a list of options (Close, Select Image, Take new image, etc). The only issue is that the option button to fire up the email and attach the picture has "Clear image" written on it, the same as the genuine 'clear image' button above it. It all works fine, just doesn't say the right instruction. If anyone can give me a push in the right direction to change the button wording I'd be really grateful. Thanks in advance, DT.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/24/13 03:51 PM (11 years ago)
Well, there are a lot of 'connect the dots' to make this work. Typically in Android you would just go to the XML file for alterations such as this. But that would be too easy ;) There is a file in Android that we use to hold strings that are used in the app, and the name of the file is 'strings.xml'. It's located in your /res/values directory. If you look through the code in Email_Image.java, you'll see the buttons being populated with strings pulled from the strings.xml file for use. So you'll want to change strings in the strings.xml file, but you'll need to identify them and figure out which string is being used by snooping through the Email_Image.java file. Does that make sense? Cheers! -- Smug Edit: Heh. Yep you're right. If you mosey over to the 'strings.xml' and locate the string 'imageEmail' you'll see the 'value' is 'Clear Image'. You can change that to whatever you want.
 
Disco Troll
Lost but trying
Profile
Posts: 20
Reg: Nov 17, 2013
Horsham
200
like
11/25/13 12:56 AM (11 years ago)
Cool - thanks for that Smug! I'm familiar with the strings.xml file so I'll dive in and change the button wording in there. cheers, DT **UPDATE** Couldn't have been simpler - done in a second and all is right in the world!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.