Back to project page Glass-IntentTunnel.
The source code is released under:
MIT License
If you think the Android project Glass-IntentTunnel listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.masterbaron.intenttunnel; //from w w w .j a v a2s . c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.masterbaron.intenttunnel.glass.GlassConfigureActivity; import com.masterbaron.intenttunnel.android.AndroidConfigureActivity; import com.masterbaron.intenttunnel.router.RouterService; /** * Created by Van Etten on 1/4/14. */ public class IntentTunnelActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(RouterService.isGlass() ) { startActivity(new Intent(this, GlassConfigureActivity.class )); } else { startActivity(new Intent(this, AndroidConfigureActivity.class )); } this.finish(); } }