• 大小: 1.13M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-23
  • 语言: Java
  • 标签: 微信  百度  分享  推送  

资源简介

百度云推送  微信朋友圈分享   注意打包的时候把demokey.keystore用这个签名打包 密码123456

//------------------------------------------------------------------------------
//发送图片链接到朋友圈
    public void SetWeiXinPngData()
    {  
       WXWebpageObject webpage = new WXWebpageObject();
       webpage.webpageUrl = Myurl;
      WXMediaMessage msg = new WXMediaMessage(webpage);
      msg.title = MyTitle;
       msg.description = MyText;
       ApplicationInfo appInfo = getApplicationInfo();
        int PngId = getResources().getIdentifier("app_icon","drawable",appInfo.packageName);       
       Bitmap thumb = BitmapFactory.decodeResource(getResources(), PngId);
       msg.thumbData = Util.bmpToByteArray(thumb, true);


        SendMessageToWX.Req req = new SendMessageToWX.Req();
        req.transaction = String.valueOf(System.currentTimeMillis()); 
        req.message = msg;
        req.scene =  SendMessageToWX.Req.WXSceneTimeline;
        api.sendReq(req);
    }

资源截图

代码片段和文件信息

/** Automatically generated file. DO NOT MODIFY */
package com.saturngame.talesoflight;

public final class BuildConfig {
    public final static boolean DEBUG = true;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        466  2015-11-27 21:06  Demo\.classpath

     文件        844  2015-04-02 16:20  Demo\.project

     文件         55  2015-04-02 16:20  Demo\.settings\org.eclipse.core.resources.prefs

     文件         48  2015-04-02 16:20  Demo\.settings\org.eclipse.core.runtime.prefs

     文件        173  2015-04-02 16:20  Demo\.settings\org.eclipse.jdt.core.prefs

     文件       6530  2015-11-24 21:03  Demo\AndroidManifest.xml

     文件       6530  2015-11-27 21:07  Demo\bin\AndroidManifest.xml

     文件        920  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\CustomActivity.class

     文件       2898  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\LoginActivity$1.class

     文件       2751  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\LoginActivity.class

     文件       6266  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\MyPushMessageReceiver.class

     文件        812  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\PushDemoActivity$1.class

     文件       6101  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\PushDemoActivity.class

     文件       4093  2015-11-27 21:07  Demo\bin\classes\com\baidu\push\example\Utils.class

     文件        363  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\BuildConfig.class

     文件        367  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$attr.class

     文件        599  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$color.class

     文件        735  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$drawable.class

     文件       1839  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$id.class

     文件        743  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$layout.class

     文件       1672  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R$string.class

     文件        651  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\R.class

     文件       1906  2015-11-27 21:07  Demo\bin\classes\com\saturngame\talesoflight\wxapi\WXEntryActivity.class

     文件      35459  2015-11-27 21:07  Demo\bin\dexedLibs\classes-688bb41d948d4f83ee541b3090fb0f46.jar

     文件      73894  2015-11-27 21:07  Demo\bin\dexedLibs\libammsdk-bed9d4c5e092eb18cb030dbc3704a06f.jar

     文件     203362  2015-11-27 21:07  Demo\bin\dexedLibs\pushservice-4.5.5.77-c2c44445c81175483b7b739249188d5f.jar

     文件      16015  2015-11-27 21:07  Demo\bin\res\crunch\drawable\app_icon.png

     文件        992  2015-11-27 21:07  Demo\bin\res\crunch\drawable-hdpi\bpush_lapp_notification_status_icon.png

     文件        347  2015-11-27 21:07  Demo\bin\res\crunch\drawable-hdpi\bpush_list_item_bg.9.png

     文件        945  2015-11-27 21:07  Demo\bin\res\crunch\drawable-hdpi\bpush_message_prompt.png

............此处省略98个文件信息

评论

共有 条评论