Android Open Source - WearOngoingNotificationSample Wear Activity






From Project

Back to project page WearOngoingNotificationSample.

License

The source code is released under:

Copyright (c) 2014, Double Encore, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are ...

If you think the Android project WearOngoingNotificationSample 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 com.doubleencore.sample.wear.ongoingnotification;
/*from w  w w.j a v a  2 s.co  m*/
import android.app.Activity;
import android.os.Bundle;
import android.support.wearable.view.WatchViewStub;
import android.widget.TextView;

public class WearActivity extends Activity {

    private TextView mTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wear);
        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

com.doubleencore.sample.wear.ongoingnotification.ApplicationTest.java
com.doubleencore.sample.wear.ongoingnotification.Constants.java
com.doubleencore.sample.wear.ongoingnotification.MainActivity.java
com.doubleencore.sample.wear.ongoingnotification.NotificationActivity.java
com.doubleencore.sample.wear.ongoingnotification.OngoingNotificationListenerService.java
com.doubleencore.sample.wear.ongoingnotification.WearActivity.java