To integrate Xabber in the project, use it as a lib,
。。。。。
Xabber Legacy Code
/**
* Base entry point.
*
* @author Alexander.ivanov
*/
public class Application extends Android.app.Application {
Xabber in Androidmanifest.xml
<application
Android:debuggable= "true"
Android:label= "@string/application_name"
android:icon= "@drawable/ic_launcher"
Android:name= "Com.xabber.android.data.Application"
Put android:name= "Com.xabber.android.data.Application" in my project to configure the node, but the program has been an error, prompting application to empty, Heart road 艹.
Helpless under.
I did it in my project.
package in my project;
Import android.content.res.Configuration;
Import Android.util.Log;
Import com.xabber.android.data.Application;
public class Applicationwapper extends application {
Public Applicationwapper () {
LOG.I ("Startup", "Start Entry");
}
}
Android:name= "My project. Applicationwapper
Start again, okay.
There is a possibility, first in my project package to find this application extension, if not found, people will ignore, use the default. But if I write a new class, forcing reference to the application in Xabber it will have to go to the download.
Because of contact with Android for a few days, the above is just speculation.
And there's another, how does Dex store the jar for external references? Is it packed in? Leave a question mark first.
If they are packaged as is, it is understandable that for application, the self-priming class, which requires fast startup for mobile devices and limited processing power, is only looked up from the main jar. Unless explicitly as I do to specify????????????????????
With the idea above, the foul words on the side of the mouth scold.