Application calls (APK level calls each other)

Source: Internet
Author: User

First I refer to this blog post to achieve: http://blog.csdn.net/zygang1988/article/details/7733541

It helped me a lot when I started to do!!!!!

There were some errors after the application in the actual small project:Unable to find Xxxxactivity.java, did you add Xxxxactivity.java into the androidmanifest.xml.

The path is not found!!!!!!!

Solution: Since it is the path, then go to androidmanifest.xml inside to fix.

<manifest xmlns:android= "http://schemas.android.com/apk/res/android"    <span style= "color: #ff0000;" >package= "Com.yxd.app" </span>    android:versioncode= "1"    android:versionname= "1.0" >

The main problem is: package= "Com.yxd.app".

How to change it?

Change it to the full package path of the Xxxactivity.java you want to jump to.

For example, I have an app that includes these packages: Com.yxd.app This package is under: BBACTIVITY.JAVA;COM.YXD.APP.NH This package has: Ccactivity.java;com.yxd.app.cs This package under: Ddactivity.java

Now I want to invoke the Ccactivity.java page (typically an activity that corresponds to an XML page).

Then I need to change package= "Com.yxd.app" to: package= "Com.yxd.app.nh".

Of course, after this change, the other package of xxxactivity as long as there is "r.x.xxxx" error.

The reason is: import X.X.R; No, because the package= "" path changed.

Workaround: Delete import X.X.R; Put the mouse on the error r above, according to the prompt to choose Import new package path R.

Application calls (APK level calls each other)

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.