I have a next problem: I want to get a library based on android project and to use it in another project as 'external' library
Is it possible?
If it is possible - my MainProblem: how can I add resources into library? The way Project Properties -> Android -> "As Library" adds only .class-files!
MySituation:
public class ClassForLibrary extends Activity{ onCreate(){ setContentView(R.layout.library_activity_layout); } method1(){ } method2(){ } } So, I want to have a library with two files: ClassForLibrary.class and library_activity_layout.xml
Next I want to add this library using Build Path...
and start application as
public class MainActivity extends ClassForLibrary { . . . . . . . . . . } I've tried a lot of code constructions but the most closest situation is
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001. #0x7f030001 is my library_activity_layout.xml that i put manually into created library.
Сan anybody help me?