suchen

Heim  >  Fragen und Antworten  >  Hauptteil

jar - Wie konvertiere ich Javascript in Smali?

Der Code, den ich in eine kleine Datei konvertieren möchte~~ (^W^)))

package com.edu.wcbss.login.activity;

import android.content.Context;
import android.content.Intent;
import c.b;
import com.edu.wcbss.c.j;
import com.edu.wcbss.c.k;
import com.edu.wcbss.net.BaseBean;

class AddCardActivity
  extends k<BaseBean>
{
  AddCardActivity(AddCardActivity paramAddCardActivity, Context paramContext)
  {
    super(paramContext);
  }
  
  public void a(int paramInt)
  {
    AddCardActivity.a(this.a, 2131165378);
  }
  
  public void a(BaseBean paramBaseBean)
  {
    paramBaseBean = (String)paramBaseBean.getData();
    if ("1".equals(paramBaseBean)) {
      if (AddCardActivity.a(this.a) == 2)
      {
        paramBaseBean = new Intent();
        paramBaseBean.setAction("add_card_success");
        this.a.sendBroadcast(paramBaseBean);
        this.a.finish();
      }
    }
    while (!"0".equals(paramBaseBean))
    {
        paramBaseBean = new Intent();
        paramBaseBean.setAction("add_card_success");
        this.a.sendBroadcast(paramBaseBean);
        this.a.finish();
      }
    AddCardActivity.a(this.a, 2131165378);
  }
  
  public void onFailure(b<BaseBean> paramb, Throwable paramThrowable)
  {
    AddCardActivity.a(this.a, 2131165378);
  }
}
过去多啦不再A梦过去多啦不再A梦2743 Tage vor578

Antworte allen(1)Ich werde antworten

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-27 17:43:36

    题主你这是javasmali吧?
    如果你用jetbrains家的东西(如:Android Studio/Idea)之类的,推荐一个插件:
    intellij-java2smali
    或者参考:convert-java-file-to-smali-file

    Antwort
    0
  • StornierenAntwort