Facebook Twitter E-mail RSS
Home Senza categoria Safe installer for Next Launcher on Jelly Bean
formats

Safe installer for Next Launcher on Jelly Bean

Pubblicato il 24 Febbraio 2013, da

A different way to install a Next Launcher Theme on Jelly Bean!!!

Here the source code, from Eclipse:

package com.gtp.nextlauncher.theme.xxxxxx;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.os.Environment;
import java.io.File;
import java.io.InputStream;
import android.content.Intent;
import android.net.Uri;
import org.apache.commons.io.*;

public class Next_installerActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_next_installer);

try {

String str1 = Environment.getExternalStorageDirectory()
.getAbsolutePath() + “/.data/data/secure.install.source/”;
new File(str1).mkdirs();
String str2 = str1 + “/source_theme.apk”;
File destDir = new File(str2);
InputStream localInputStream = getApplicationContext().getAssets()
.open(“source_theme.apk”);

FileUtils.copyInputStreamToFile(localInputStream, destDir);

Intent localIntent = new Intent(“android.intent.action.VIEW”);
localIntent.setDataAndType(Uri.fromFile(new File(str2)),
“application/vnd.android.package-archive”);
startActivity(localIntent);
finish();
return;

} catch (Exception localException) {
while (true)
localException.printStackTrace();
}
}

}

 

Obviously you can use any wanted directory and name, do not forget libs!

3 Risposte

  1. [...] – oк – install – open This double install solve the Jelly Bean issue. FOR SOURCE CODE http://www.gnokkia.net/?p=1658 If you have any problems with the installation, please contact me so we will help you [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>