Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.
i am trying to use the strings.xml file as much as possible for constant strings but there are places where eclipse is showing me errors.
Whenever i call a method, i want to send a string from the strings.xml file but using it generates an error which says it cannot use an int instead of a string.
example: showAlert("Delete Confirmation",...) works where as this doesn't. showAlert(R.strings.delete_confirmation,....)
Does anybody know of a possible workaround for this.
- Posts: 2
- Joined: Wed Aug 13, 2008 5:35 pm
the R resources are integer values. probably an in-memory address of the strings constants. you'll have to read the string_located_at_(R.strings.delete_confirmation)
- Experienced Developer
- Posts: 56
- Joined: Wed Jul 16, 2008 10:16 am
haven't coded Android in a while but it should be like this:
Using java Syntax Highlighting
Parsed in 0.011 seconds, using GeSHi
- Senior Developer
- Posts: 164
- Joined: Mon Feb 04, 2008 3:37 pm
- Location: Netherlands
Return to View, Layout & Resource Problems
Who is online
Users browsing this forum: Exabot [Bot], Majestic-12 [Bot] and 7 guests