DO NOT MERGE. remove stream item activities from sample app
Change-Id: I485e68e011a12ec91f0e5f3eae742217acad8ca3
This commit is contained in:
@@ -128,35 +128,5 @@
|
||||
android:mimeType="vnd.android.cursor.item/group" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".activities.ViewStreamItemActivity"
|
||||
android:theme="@android:style/Theme.Dialog">
|
||||
<!--
|
||||
We use the VIEW intent to view a stream item in our app.
|
||||
It always comes with a lookup URI.
|
||||
-->
|
||||
<intent-filter>
|
||||
<action
|
||||
android:name="android.intent.action.VIEW" />
|
||||
<data
|
||||
android:mimeType="vnd.android.cursor.item/stream_item" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".activities.ViewStreamItemPhotoActivity"
|
||||
android:theme="@android:style/Theme.Dialog">
|
||||
<!--
|
||||
We use the VIEW intent to view a stream item photo in our app.
|
||||
It always comes with a lookup URI.
|
||||
-->
|
||||
<intent-filter>
|
||||
<action
|
||||
android:name="android.intent.action.VIEW" />
|
||||
<data
|
||||
android:mimeType="vnd.android.cursor.item/stream_item_photo" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:text="@string/view_stream_item_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@+id/view_stream_item_uri"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
/**
|
||||
* Copyright (c) 2011, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView
|
||||
android:text="@string/view_stream_item_photo_description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
<TextView
|
||||
android:id="@+id/view_stream_item_photo_uri"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
@@ -129,14 +129,4 @@
|
||||
|
||||
This is the group uri:</string>
|
||||
|
||||
<!-- The description for the view stream item -->
|
||||
<string name="view_stream_item_description">This would now show the details of the stream item.
|
||||
|
||||
This is the uri of the stream item:</string>
|
||||
|
||||
<!-- The description for the view stream item photo -->
|
||||
<string name="view_stream_item_photo_description">This would now show the details of the stream item photo.
|
||||
|
||||
This is the uri of the photo:</string>
|
||||
|
||||
</resources>
|
||||
@@ -24,8 +24,6 @@
|
||||
viewContactNotifyService="com.example.android.samplesync.notifier.NotifierService"
|
||||
viewGroupActivity="com.example.android.samplesync.activities.ViewGroupActivity"
|
||||
viewGroupActionLabel="@string/view_group_action_label"
|
||||
viewStreamItemActivity="com.example.android.samplesync.activities.ViewStreamItemActivity"
|
||||
viewStreamItemPhotoActivity="com.example.android.samplesync.activities.ViewStreamItemPhotoActivity"
|
||||
>
|
||||
|
||||
<ContactsDataKind
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.example.android.samplesync.activities;
|
||||
|
||||
import com.example.android.samplesync.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.widget.TextView;
|
||||
|
||||
/**
|
||||
* Activity to handle view a stream-item. In a real app, this would show a rich view of the
|
||||
* item.
|
||||
*/
|
||||
public class ViewStreamItemActivity extends Activity {
|
||||
private static final String TAG = "ViewStreamItemActivity";
|
||||
|
||||
private TextView mUriTextView;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.view_stream_item_activity);
|
||||
|
||||
mUriTextView = (TextView) findViewById(R.id.view_stream_item_uri);
|
||||
mUriTextView.setText(getIntent().getDataString());
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2011 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
* use this file except in compliance with the License. You may obtain a copy of
|
||||
* the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations under
|
||||
* the License.
|
||||
*/
|
||||
package com.example.android.samplesync.activities;
|
||||
|
||||
import com.example.android.samplesync.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.widget.TextView;
|
||||
|
||||
/**
|
||||
* Activity to view a stream-item-photo. In a real app, this would show a fullscreen view of the
|
||||
* photo, potentially with ways to interact with it
|
||||
*/
|
||||
public class ViewStreamItemPhotoActivity extends Activity {
|
||||
private static final String TAG = "ViewStreamItemPhotoActivity";
|
||||
|
||||
private TextView mUriTextView;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.view_stream_item_photo_activity);
|
||||
|
||||
mUriTextView = (TextView) findViewById(R.id.view_stream_item_photo_uri);
|
||||
mUriTextView.setText(getIntent().getDataString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user