1 /* ownCloud Android client application
2 * Copyright (C) 2012-2013 ownCloud Inc.
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2,
6 * as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package com
.owncloud
.android
.ui
.activity
;
20 import com
.owncloud
.android
.R
;
21 import com
.owncloud
.android
.ui
.CustomButton
;
23 import android
.app
.Activity
;
24 import android
.os
.Bundle
;
25 import android
.view
.View
;
26 import android
.view
.View
.OnClickListener
;
27 import android
.widget
.TextView
;
31 * This Activity is used to display a detail message for failed uploads
33 * The entry-point for this activity is the 'Failed upload Notification"
35 * @author andomaex / Matthias Baumann
37 public class FailedUploadActivity
extends Activity
{
39 public static final String MESSAGE
= "message";
42 public void onCreate(Bundle savedInstanceState
) {
43 super.onCreate(savedInstanceState
);
44 setContentView(R
.layout
.failed_upload_message_view
);
45 String message
= getIntent().getStringExtra(MESSAGE
);
46 TextView textView
= (TextView
) findViewById(R
.id
.faild_upload_message
);
47 textView
.setText(message
);
48 CustomButton closeBtn
= (CustomButton
) findViewById(R
.id
.failed_uploadactivity_close_button
);
50 closeBtn
.setOnClickListener(new OnClickListener() {
52 public void onClick(View v
) {