LauncherActivity.smali 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .class public Lcom/jmhy/sdk/template/LauncherActivity;
  2. .super Landroid/app/Activity;
  3. .source "LauncherActivity.java"
  4. # annotations
  5. .annotation system Ldalvik/annotation/MemberClasses;
  6. value = {
  7. Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
  8. }
  9. .end annotation
  10. # static fields
  11. .field private static final LAUNCH:I = 0x1
  12. # direct methods
  13. .method public constructor <init>()V
  14. .locals 0
  15. .line 12
  16. invoke-direct {p0}, Landroid/app/Activity;-><init>()V
  17. return-void
  18. .end method
  19. .method static synthetic access$000(Lcom/jmhy/sdk/template/LauncherActivity;)V
  20. .locals 0
  21. .param p0, "x0" # Lcom/jmhy/sdk/template/LauncherActivity;
  22. .line 12
  23. invoke-direct {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->launch()V
  24. return-void
  25. .end method
  26. .method private launch()V
  27. .locals 4
  28. .line 26
  29. new-instance v0, Landroid/content/Intent;
  30. invoke-direct {v0}, Landroid/content/Intent;-><init>()V
  31. .line 27
  32. .local v0, "intent":Landroid/content/Intent;
  33. new-instance v1, Landroid/content/ComponentName;
  34. invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getPackageName()Ljava/lang/String;
  35. move-result-object v2
  36. const-string v3, "{class}"
  37. invoke-direct {v1, v2, v3}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
  38. invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
  39. .line 28
  40. invoke-virtual {p0, v0}, Lcom/jmhy/sdk/template/LauncherActivity;->startActivity(Landroid/content/Intent;)V
  41. .line 30
  42. invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->finish()V
  43. .line 31
  44. return-void
  45. .end method
  46. # virtual methods
  47. .method protected onCreate(Landroid/os/Bundle;)V
  48. .locals 5
  49. .param p1, "savedInstanceState" # Landroid/os/Bundle;
  50. .line 17
  51. invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
  52. .line 18
  53. invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getResources()Landroid/content/res/Resources;
  54. move-result-object v0
  55. const-string v1, "common_sdk_launcher_template"
  56. const-string v2, "layout"
  57. invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getPackageName()Ljava/lang/String;
  58. move-result-object v3
  59. invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
  60. move-result v0
  61. .line 19
  62. .local v0, "id":I
  63. invoke-virtual {p0, v0}, Lcom/jmhy/sdk/template/LauncherActivity;->setContentView(I)V
  64. .line 21
  65. new-instance v1, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
  66. invoke-direct {v1, p0}, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;-><init>(Lcom/jmhy/sdk/template/LauncherActivity;)V
  67. .line 22
  68. .local v1, "handler":Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
  69. const/4 v2, 0x1
  70. const-wide/16 v3, 0x28a
  71. invoke-virtual {v1, v2, v3, v4}, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;->sendEmptyMessageDelayed(IJ)Z
  72. .line 23
  73. return-void
  74. .end method