Android Open Source - WearChronoAS My Activity






From Project

Back to project page WearChronoAS.

License

The source code is released under:

GNU General Public License

If you think the Android project WearChronoAS 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 wearun.giux.com.wearchrono;
//w ww . ja  v  a2  s.co  m
import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.WatchViewStub;
import android.widget.TextView;

public class MyActivity extends Activity {

    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my);
        final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub);
        stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() {
            @Override
            public void onLayoutInflated(WatchViewStub stub) {
                mTextView = (TextView) stub.findViewById(R.id.text);
            }
        });
    }
}




Java Source Code List

wearun.giux.com.wearchrono.ApplicationTest.java
wearun.giux.com.wearchrono.MyActivity.java
wearun.giux.com.wearchrono.MyActivity.java
wearun.giux.com.wearchrono.NotificationReceiver.java