Citation:
Mais je n'utilise pas d'URI pour lancer mon appli? et je ne chercher pas a visualiser un élèment, juste à lancer mon appli, tu est sure qu'il faut utilisé ACTION_VIEW?
Non je ne sais pas ce que tu voulais faire exactement, ACTION_VIEW te permet de lancer une application avec une URI, comme tu l'as fait remarquer.
Citation:
Explanation
To open other people's application, you need to make sure that in their manifest file, the author specify the class to have the android.intent.action.MAIN intent-filter added to them.
final Intent intent = new Intent(Intent.ACTION_MAIN, null);
We then add category that this new intent will be launching something
intent.addCategory(Intent.CATEGORY_LAUNCHER);
Then we get identify the application we need to open by using ComponentName, here you specify the package name of the application as first argument and the class we want to open as the second one. You must understand that com.android.settings has a lot of classes that have Main intent-filter under it making the second argument to be the specific class that we need. (this is more than one line)
final ComponentName cn = new ComponentName("com.android.settings", "com.android.settings.fuelgauge.PowerUsageSummary");
After we identify the component we want, we set it to our intent
intent.setComponent(cn);
We then tell the intent that open opening this one make it as a new task
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Then finally start our intent
startActivity( intent);
Maintenant si tu veux réellement lancer ton application , alors pourquoi veux tu la lancer à partir de l'activity Pont6.clas qui n'est pas une entrée de ton application.