0

I'm looking for the intent of a Root Explorer (e.g. Super Manager, Root Explorer...) I just want to create a button that opens this explorer. I found the intent of OI Filemanager but this has no root function.

Sinthia V
  • 2,103
  • 2
  • 18
  • 36
B770
  • 1,272
  • 3
  • 17
  • 34

2 Answers2

1
Try this 

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("file/*");
intent.setData(Uri.parse("file://"));
startActivity(intent);
Viswanath Lekshmanan
  • 9,945
  • 1
  • 40
  • 64
1

Open another application from your own (intent)

Here is one of the ways:

    Intent intent = new Intent("android.intent.action.MAIN");
    intent.setComponent(ComponentName.unflattenFromString("com.google.android.maps.mytracks/com.google.android.apps.mytracks.MyTracks"));
    intent.addCategory("android.intent.category.LAUNCHER");
    startActivity(intent);

That link above should have all the info you need, though.

Of course, this method doesn't open the file explorer specifically. You would have to change the package name appropriately.

Community
  • 1
  • 1
Reed
  • 14,703
  • 8
  • 66
  • 110
  • Thx for your help :) I know now how it works Intent i = getPackageManager().getLaunchIntentForPackage("gpc.myweb.hinet.net.TaskManager"); startActivity(i); – B770 Nov 20 '11 at 11:22