Sources
This trick surely has given ideas to some of of you. And you wonder: how can create a hidden application in Android?
Objective: To explore the hidden feature of Android through the creation of an application that is launched by any code (1212: my birthday!). Otherwise this application is not useful ..
Solution
tutorial Let's official: TestBroadCast. We need to create a receiver to listen and treat "secret codes" seized on the phone:
package org.sidibe.intent;
import junit.framework.Test;
import android.content.BroadcastReceiver;
import android.content.Context;
android.content.Intent import, import
android.telephony.TelephonyManager;
/ ** *
* * @ author JBromo
Launch applications on Android
* / public class
TestBroadCast extends BroadcastReceiver {
@ Override public void
OnReceive (Context context, Intent intent) {
if (intent.getAction (). Equals ("android.provider.Telephony.SECRET_CODE")) {
intents Intent = new Intent (Intent.ACTION_MAIN)
intents.setClass (context, TestAndroid.class)
intents.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK)
context.startActivity (intent);
}}}
Then you must change AndroidManifest.xml file to hide the HelloWorld application and set the code that
| |
| Android Manifest.xml |
The application does TestBroadCast is then more in the category "launcher" but "default". The consequence it is no longer visible in the list of applications launcher application.
Conclusion You are now equipped to create applications invisible. We just have to tell your users to enter the code to start it. In
made this application is useless since it is not visible, just explore the functionality of Android.
0 comments:
Post a Comment