Back to project page AndroidWearable-Samples.
The source code is released under:
Apache License
If you think the Android project AndroidWearable-Samples 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.example.android.support.wearable.notifications; /*from w w w. ja va 2 s . c om*/ import android.app.Activity; import android.os.Bundle; import android.widget.TextView; /** * Custom display activity for a sample notification. */ public class BasicNotificationDisplayActivity extends Activity { public static final String EXTRA_TITLE = "title"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_notification_display); String title = getIntent().getStringExtra(EXTRA_TITLE); ((TextView) findViewById(R.id.title)).setText(title); } }