开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 1776|回复: 5
收起左侧

[已解决] smail语法问题

 关闭 [复制链接]
结帖率:100% (8/8)
发表于 2016-11-29 08:07:54 | 显示全部楼层 |阅读模式   四川省成都市
50精币
求能看懂的大神帮忙看看其中的"geturi"是怎样计算的?"uri"如果用易语言应该这样写?

这是逆向apk后得到的,我也不知道是否还需要其他地方的代码(如果需要大神可以下载原apk或者逆向后的文件,
htt删p://pan.bai除du.com/s/1mi35Rsc 密码:zrjl)。大神看看,万分感谢

package com.docin.library;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.widget.Toast;
import com.mobclick.android.MobclickAgent;
import com.sharp.library.L;
import com.sharp.library.SharpParam;
import java.io.File;
import java.io.Serializable;
import java.util.Date;
import java.util.GregorianCalendar;

public class DocIn$DocInFile
  implements Serializable
{
  private static final long serialVersionUID = 6355541632849228702L;
  public boolean Delete = false;
  public String Extention = "";
  public Integer ID = Integer.valueOf(0);
  public Integer InvoiceID = Integer.valueOf(0);
  public Date ModifyDate = new GregorianCalendar(2000, 1, 1).getTime();
  private String Name = "";
  public Float OrderID = Float.valueOf(0.0F);
  public Integer ParentID = Integer.valueOf(0);
  public boolean Selected = false;
  public boolean Star = false;
  public Integer Type = Integer.valueOf(2);
  public String URL_File = "";
  public String URL_Thumb = "";
  public boolean isDownloaded = false;
  public boolean isDownloading = false;
  public String key = "";
  
  public Boolean DeleteLocalFile()
  {
    File localFile = new File(LocalFilePath());
    if (localFile.exists()) {
      return Boolean.valueOf(localFile.delete());
    }
    return Boolean.valueOf(true);
  }
  
  public Boolean FileExist()
  {
    return Boolean.valueOf(new File(LocalFilePath()).exists());
  }
  
  public String LocalFilePath()
  {
    return DocIn.BOOKSHELF_FOLDER + DocIn.CurAccount.ID + "_" + this.InvoiceID + "_" + this.Name + "." + this.Extention;
  }
  
  public Boolean RenNameLocalFile(String paramString)
  {
    File localFile = new File(LocalFilePath());
    if (localFile.exists()) {
      return Boolean.valueOf(localFile.renameTo(new File(paramString)));
    }
    return Boolean.valueOf(true);
  }
  
  public String getName()
  {
    return this.Name;
  }
  
  public String getType()
  {
    if (this.Extention.equalsIgnoreCase("txt")) {}
    String str = "text/plain";
    if (this.Extention.equalsIgnoreCase("pdf")) {
      str = "application/pdf";
    }
    if ((this.Extention.equalsIgnoreCase("doc")) || (this.Extention.equalsIgnoreCase("docx")) || (this.Extention.equalsIgnoreCase("rtf"))) {
      str = "application/msword";
    }
    if ((this.Extention.equalsIgnoreCase("jpg")) || (this.Extention.equalsIgnoreCase("bmp")) || (this.Extention.equalsIgnoreCase("gif")) || (this.Extention.equalsIgnoreCase("png")) || (this.Extention.equalsIgnoreCase("tif")) || (this.Extention.equalsIgnoreCase("jpeg"))) {
      str = "image/*";
    }
    if ((this.Extention.equalsIgnoreCase("ppt")) || (this.Extention.equalsIgnoreCase("pptx"))) {
      str = "application/vnd.ms-powerpoint";
    }
    if ((this.Extention.equalsIgnoreCase("xls")) || (this.Extention.equalsIgnoreCase("xlsx"))) {
      str = "application/vnd.ms-excel";
    }
    if (this.Extention.equalsIgnoreCase("epub")) {
      str = "application/epub+zip";
    }
    return str;
  }
  
  public Uri getUri()
  {
    return Uri.fromFile(new File(LocalFilePath()));
  }

  
  public void openFile()
  {
    Intent localIntent = new Intent();
    localIntent.addFlags(268435456);
    localIntent.setAction("android.intent.action.VIEW");
    localIntent.setDataAndType(getUri(), getType());
    try
    {
      MobclickAgent.onEvent(SharpParam.mContext, "Event_Read", "阅读次数");
      SharpParam.mContext.startActivity(localIntent);
      new DocInProcess().ProcessReadStat(this.InvoiceID);
      return;
    }
    catch (ActivityNotFoundException localActivityNotFoundException)
    {
      String str = "未找到阅读 " + this.Extention + " 格式的软件";
      Toast.makeText(SharpParam.mContext, str, 1).show();
      L.l("No Activity to be launch!");
    }
  }
  
  public void setName(String paramString)
  {
    this.Name = SharpParam.UnParseHtml(paramString);
  }
}


最佳答案

查看完整内容

能下个断点的话大概就出来了

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (26/26)
发表于 2016-11-29 08:07:55 | 显示全部楼层   浙江省杭州市
  1.   public String LocalFilePath()
  2.   {
  3.     return DocIn.BOOKSHELF_FOLDER + DocIn.CurAccount.ID + "_" + this.InvoiceID + "_" + this.Name + "." + this.Extention;
  4.   }


  5. ------------------

  6. package com.docin.library;
  7. public class DocIn$DocInFile

复制代码



能下个断点的话大概就出来了
回复

使用道具 举报

结帖率:100% (8/8)
 楼主| 发表于 2016-11-29 08:09:10 | 显示全部楼层   四川省成都市
标题有误,不应该是smail,
回复

使用道具 举报

结帖率:100% (4/4)

签到天数: 6 天

发表于 2016-11-29 09:11:54 | 显示全部楼层   上海市上海市
这是JAVA的代码啊
回复

使用道具 举报

结帖率:100% (8/8)
 楼主| 发表于 2016-11-29 09:14:50 | 显示全部楼层   四川省成都市
ovo555 发表于 2016-11-29 09:11
这是JAVA的代码啊

对,我在沙发说了。标题有错。大神,帮忙看看吧。谢谢了
回复

使用道具 举报

结帖率:100% (8/8)
 楼主| 发表于 2016-11-29 11:46:02 | 显示全部楼层   四川省成都市
没有顶贴的功能吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 诚聘英才| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 800073686,邮箱:800073686@b.qq.com
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表