123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- .class public Lcom/jmhy/sdk/template/LauncherActivity;
- .super Landroid/app/Activity;
- .source "LauncherActivity.java"
- # annotations
- .annotation system Ldalvik/annotation/MemberClasses;
- value = {
- Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
- }
- .end annotation
- # static fields
- .field private static final LAUNCH:I = 0x1
- # direct methods
- .method public constructor <init>()V
- .locals 0
- .line 12
- invoke-direct {p0}, Landroid/app/Activity;-><init>()V
- return-void
- .end method
- .method static synthetic access$000(Lcom/jmhy/sdk/template/LauncherActivity;)V
- .locals 0
- .param p0, "x0" # Lcom/jmhy/sdk/template/LauncherActivity;
- .line 12
- invoke-direct {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->launch()V
- return-void
- .end method
- .method private launch()V
- .locals 4
- .line 26
- new-instance v0, Landroid/content/Intent;
- invoke-direct {v0}, Landroid/content/Intent;-><init>()V
- .line 27
- .local v0, "intent":Landroid/content/Intent;
- new-instance v1, Landroid/content/ComponentName;
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getPackageName()Ljava/lang/String;
- move-result-object v2
- const-string v3, "{class}"
- invoke-direct {v1, v2, v3}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
- invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
- .line 28
- invoke-virtual {p0, v0}, Lcom/jmhy/sdk/template/LauncherActivity;->startActivity(Landroid/content/Intent;)V
- .line 30
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->finish()V
- .line 31
- return-void
- .end method
- # virtual methods
- .method protected onCreate(Landroid/os/Bundle;)V
- .locals 5
- .param p1, "savedInstanceState" # Landroid/os/Bundle;
- .line 17
- invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
- .line 18
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getResources()Landroid/content/res/Resources;
- move-result-object v0
- const-string v1, "common_sdk_launcher_template"
- const-string v2, "layout"
- invoke-virtual {p0}, Lcom/jmhy/sdk/template/LauncherActivity;->getPackageName()Ljava/lang/String;
- move-result-object v3
- invoke-virtual {v0, v1, v2, v3}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
- move-result v0
- .line 19
- .local v0, "id":I
- invoke-virtual {p0, v0}, Lcom/jmhy/sdk/template/LauncherActivity;->setContentView(I)V
- .line 21
- new-instance v1, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
- invoke-direct {v1, p0}, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;-><init>(Lcom/jmhy/sdk/template/LauncherActivity;)V
- .line 22
- .local v1, "handler":Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;
- const/4 v2, 0x1
- const-wide/16 v3, 0x28a
- invoke-virtual {v1, v2, v3, v4}, Lcom/jmhy/sdk/template/LauncherActivity$LaunchHandler;->sendEmptyMessageDelayed(IJ)Z
- .line 23
- return-void
- .end method
|