如何以编程方式关闭Google导航?

Jro*_*rom 7 android google-maps android-activity

我通过Intent启动Google Navigation:

private static final int  GOOGLE_NAV = 5;

Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
            Uri.parse("google.navigation:q= some + address"));
startActivityForResult(intent,GOOGLE_NAV);
Run Code Online (Sandbox Code Playgroud)

然后我检查用户是否通过LocationListener到达了他的目的地.如果用户已到达,我想关闭Google导航活动.

if(hasArrived())
{
    finishActivity(GOOGLE_NAV);
}
Run Code Online (Sandbox Code Playgroud)

但是,我的代码似乎不起作用.