On Mon, Feb 11, 2013 at 2:59 AM, saex <[email protected]> wrote: > This code works perfectly, but I need to add to that code the possibility > to select for example, public transport. It is possible?
First, you are hard-coding a package name and activity that you do not own. This is fragile and will break the second Google Maps is not present on the device or, worse, if Google decides to change the name of that Activity. Second, you are trying to communicate with a specific 3rd party app. To do so, you must adhere to whatever communication method (i.e., actions and intents) the developer of said 3rd party app has laid out. In this case, you can refer to this page http://developer.android.com/guide/appendix/g-app-intents.html which does NOT list a method by which to get directions, let alone specify the specific type. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

