Android Open Source - cmcc Router Activity






From Project

Back to project page cmcc.

License

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.

Java Source Code

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);
        }
    }
}




Java Source Code List

net.gongmingqm10.cmcc.ApplicationTest.java
net.gongmingqm10.cmcc.MainActivity.java
net.gongmingqm10.cmcc.activity.BillActivity.java
net.gongmingqm10.cmcc.activity.CMCCApplication.java
net.gongmingqm10.cmcc.activity.MainActivity.java
net.gongmingqm10.cmcc.activity.RouterActivity.java
net.gongmingqm10.cmcc.jpush.JPushReceiver.java
net.gongmingqm10.cmcc.jpush.JPushUtils.java
net.gongmingqm10.cmcc.utils.Constant.java