Android Question put modules in different packages in one project

Ju Yang

Active Member
Licensed User
Longtime User
I want to put the modules, which are in one project, into different packages. For example:
set the package "com.abc" in the build path, and one module in the project in package "com.abc.sub"

How to do this?
 

Ju Yang

Active Member
Licensed User
Longtime User
I want to make a wrapper of wechat payment interface, which uses a function to call up the wechat pay activity. After the pay activity finished, the wechat call the onResp function, which must in the mainpackage.wxapi package ( mainpackage is the package of the project).
We have succeed in calling up the wechat pay activity, but can't get the callback. I think it's a must to put the callback function in mainpackage.wxapi package to receive the response from wechat.
I am not sure if I have told the thing clearly, this is the sdk document: https://open.weixin.qq.com/zh_CN/htmledition/res/dev/document/sdk/android/index.html
and this is the demo: https://pay.weixin.qq.com/wiki/doc/api/download/SDKSample_Android_v3_pay.zip

Thanks a lot.
 
Upvote 0

Ju Yang

Active Member
Licensed User
Longtime User
Please don't bump your questions. It only discourages other members from answering...

Where is the callback documentation?

Unfortunately the wechat website doesn't have a wechat pay document in English.

Fortunately it does have a document which is about sending other messages(like sharing) to wechat and receiving responses from WeChat .

The only different is the class name, wechat pay uses WXPayEntryActivity, and other messages use WXEntryActivity.

Here is the wechat pay document in Chinese: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_5

and here is other message docment in English: http://open.wechat.com/cgi-bin/newr...tting-started/android#getting-started_android

The wechat pay SDK about callback here: https://open.weixin.qq.com/zh_CN/htmledition/res/dev/document/sdk/android/index.html

Thanks!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…