How to call the application in another package

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.