Skip to content

Instantly share code, notes, and snippets.

@andforce
Created November 19, 2015 05:52
Show Gist options
  • Select an option

  • Save andforce/36300fa0b7daa938b25e to your computer and use it in GitHub Desktop.

Select an option

Save andforce/36300fa0b7daa938b25e to your computer and use it in GitHub Desktop.
Intent intent = new Intent(Intent.ACTION_VIEW);
ComponentName cn = new ComponentName("com.tencent.mm", "com.tencent.mm.plugin.base.stub.WXCustomSchemeEntryActivity");
intent.setData(Uri.parse("weixin://dl/moments"));
intent.setFlags(Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP);
intent.setComponent(cn);
startActivity(intent);
@viix

viix commented Aug 26, 2016

Copy link
Copy Markdown

failed now?

@liulixiang1988

liulixiang1988 commented Feb 9, 2017

Copy link
Copy Markdown

open
"weixin://dl/businessWebview/link?appid=abcdefg&url=http%3A%2F%2Fdeveloper.huawei.com%2Fcn%2F"
weixin://dl/businessWebview/link?appid=abcdefg&url=http%3A%2F%2Fdeveloper.huawei.com%2Fcn%2F

@JerrIsTheBesta

Copy link
Copy Markdown

weixin://dl/businessWebview/link?appid=abcdefg&url=http%3A%2F%2Fdeveloper.huawei.com%2Fcn%2F

@aung01

aung01 commented Mar 5, 2020

Copy link
Copy Markdown

Is it possible to share QR code image to wechat using urlschema like weixin://dl ?? thanks

@Esuoi

Esuoi commented Apr 19, 2021

Copy link
Copy Markdown

"weixin://dl/stickers"

@karpalig

Copy link
Copy Markdown

Is over?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment