如何在seprated罐子多个应用程序类在Android的一个应用程序 [英] how to have multiple application classes in seprated jars in one application in android

查看:190
本文介绍了如何在seprated罐子多个应用程序类在Android的一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个从机应用扩展,并呼吁在APPP清单中APPP类。

I have a Appp class that extend from Appliction and call Appp in manifest.

还有另两个罐子,每个撰文称叫他们在表现为应用程序标记。

There is two another jar, that each author said call them in manifest as Application tag.

据<一个href=\"http://stackoverflow.com/questions/19001644/how-to-handle-multiple-application-classes-in-android\">how来处理的Andr​​oid 多个应用类(<一个href=\"http://stackoverflow.com/questions/19001644/how-to-handle-multiple-application-classes-in-android\">how来处理的Andr​​oid 多个应用程序类)的问题,有从应用程序扩展多个应用程序类,我们应该从另一个应用程序类扩展了一些应用程序类,并调用上层阶级的清单中。

According to how to handle multiple application classes in android(how to handle multiple application classes in android) question, to have multiple application classes that extend from Application, we should extend some application class from another application class, and call upper class in manifest.

但在我的情况,我没有来源,只是有罐子。我能做些什么?!

But in my case, i don't have sources, and just have jars. what can i do?!

推荐答案

解决的办法是你应该的范围是从上层阶级您的应用程序类(从应用程序类或一些应用类扩展本身,从应用程序类扩展自身的一个(这些是在链)。

The solution is you should extends one of your app classes from upper classes (that extended itself from application class or from some app class that extended itself from application class (these are in chain).

在的问题,您应该从soomla延长一类APPP,然后从推扩展soomla,然后从应用程序类推,并在清单然后设置推类。

In question, you should make a appp class that extended from soomla, and then extend soomla from push, and then push from Application class and then set push class in manifest.

public appp extends Soomla{

}

public soomla extends Push{

}

public push extends Application{

}

在mainfest.xml:

In mainfest.xml :

<application
        android:name=".Push"
        android:icon="@drawable/ijoomer_luncher_icon"
        android:label="@string/app_name">

这篇关于如何在seprated罐子多个应用程序类在Android的一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆