Back to project page cmcc.
The source code is released under:
Apache License
If you think the Android project cmcc 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 net.gongmingqm10.cmcc.activity; // w w w. j a v a 2 s.c o m import android.os.Bundle; import android.support.v4.app.RemoteInput; import android.support.v7.app.ActionBarActivity; import android.widget.TextView; import net.gongmingqm10.cmcc.R; import net.gongmingqm10.cmcc.utils.Constant; import butterknife.ButterKnife; import butterknife.InjectView; public class RouterActivity extends ActionBarActivity { @InjectView(R.id.cmdText) TextView cmdText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_router); ButterKnife.inject(this); Bundle remoteInput = RemoteInput.getResultsFromIntent(getIntent()); if (remoteInput != null) { CharSequence cmd = remoteInput.getCharSequence(Constant.EXTRA_VOICE_REPLY); cmdText.setText(cmd); } } }