F
F
falstaf2011-07-04 14:48:41
Java
falstaf, 2011-07-04 14:48:41

Android. GreenDroid + ActiveAndroid ORM

Good afternoon.
There is a need to use both of the above libraries in the application at the same time: GreenDroid and ActiveAndroid.

Each of them requires that the class inherited from their Application be registered in the manifest, i.e. GreenDroid requires it to be a child of greendroid.app.GDApplication, while ActiveAndroid requires it to be a child of com.activeandroid.Application.

However, in Java, as you know, there is no multiple inheritance, therefore, it is not possible to inherit your Application class specified in AndroidManifest.xml from two parents at once.

Is there any workaround to solve the problem?

Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ara89, 2011-07-05
@ara89

Did it help to create a class-layer?

Z
Zeldan, 2011-07-07
@Zeldan

In order to implement multiple inheritance in JAVA interfaces are used, respectively, you can organize a class that will use 2 interfaces for each of the libraries. Interface classes, of course, you will need to write
Interface in Java yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question