.class public Lcom/gsoft/mitv/MainActivity;
.super Landroid/app/Service;


# static fields
.field private static al:Ljava/lang/ref/WeakReference;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, "p2ptv"

    invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    return-void
.end method

.method public static a(I)V
    .locals 1

    sget-object v0, Lcom/gsoft/mitv/MainActivity;->al:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/gsoft/mitv/MainActivity;

    if-eqz v0, :cond_0

    invoke-direct {v0, p0}, Lcom/gsoft/mitv/MainActivity;->loadLibrary(I)V

    :cond_0
    return-void
.end method

.method private native loadLibrary(I)V
.end method


# virtual methods
.method public onCreate()V
    .locals 2

    invoke-super {p0}, Landroid/app/Service;->onCreate()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    sput-object v0, Lcom/gsoft/mitv/MainActivity;->al:Ljava/lang/ref/WeakReference;

    const-string v0, "libmitv.so"

    invoke-virtual {p0}, Lcom/gsoft/mitv/MainActivity;->getCacheDir()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {p0, v0, v1}, Lcom/mtv/application/MTVApplication;->copyAssetfile(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method
