How to create jar file with OpenCV in Eclipse?

Is it possible to get Eclipse to auto create resources after I reference them in the .java file?

  • e.g. int textColor = getResources().getColor(R.color.title_color); When title_color is not yet defined in a resource xml. I know I can't Ctrl+1 on it because eclipse then tries to "Create field title_color...." which modifies the R.java file. I'd like to be able to type the resource name here, then press a shortcut to take me to the resource xml file. Or alternatively, set a few and then do it in bulk from the resource file. Where it gives me a list of all the resources that are referenced but not yet created and I can then fill in their values. If not, what are the best practices for this?

  • Answer:

    No, it's not possible. This functionality is provided by Google's Android Development Tool plugins, not the Eclipse platform. Yes, it's a great idea, and they should support it. does this.

Miguel Paraz at Quora Visit the source

Was this solution helpful to you?

Other answers

I just found out that for strings I can just enter the string, like "hello" then Ctrl+1 -> Extract String. So at least you can do it for Strings at least... shame about the others.

Tim Hopkins

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.