// Path: androidpn/src/main/java/com/githang/android/apnbb/Constants.java
// public class Constants {
// 
//     // PROPERTY
//     public static final String PROP_FILE_NAME = "androidpn";
// 
//     // PROPERTY KEYS
// 
//     public static final String PROP_API_KEY = "apiKey";
//     public static final String PROP_XMPP_HOST = "xmppHost";
//     public static final String PROP_XMPP_PORT = "xmppPort";
//     public static final String PROP_PACKET_LISTENER = "packetListener";
//     public static final String PROP_IQ = "iq";
//     public static final String PROP_IQ_PROVIDER = "iqProvider";
//     public static final String PROP_NOTIFY_ACTIVITY= "notifyActivity";
// 
//     // PROPERTY DEFAULT VALUES
// 
//     public static final String DEFAULT_HOST = "127.0.0.1";
//     public static final String DEFAULT_PORT = "5222";
// 
// 
//     // PREFERENCE
//     public static final String SHARED_PREFERENCE_NAME = "client_preferences";
// 
//     // PREFERENCE KEYS
// 
//     public static final String CALLBACK_ACTIVITY_PACKAGE_NAME = "CALLBACK_ACTIVITY_PACKAGE_NAME";
// 
//     public static final String CALLBACK_ACTIVITY_CLASS_NAME = "CALLBACK_ACTIVITY_CLASS_NAME";
// 
//     public static final String API_KEY = "API_KEY";
// 
//     public static final String VERSION = "VERSION";
// 
//     public static final String XMPP_HOST = "XMPP_HOST";
// 
//     public static final String XMPP_PORT = "XMPP_PORT";
// 
//     public static final String XMPP_USERNAME = "XMPP_USERNAME";
// 
//     public static final String XMPP_PASSWORD = "XMPP_PASSWORD";
// 
//     public static final String DEVICE_ID = "DEVICE_ID";
// 
//     public static final String EMULATOR_DEVICE_ID = "EMULATOR_DEVICE_ID";
// 
//     public static final String NOTIFICATION_ICON = "NOTIFICATION_ICON";
// 
//     public static final String SETTINGS_NOTIFICATION_ENABLED = "SETTINGS_NOTIFICATION_ENABLED";
// 
//     public static final String SETTINGS_SOUND_ENABLED = "SETTINGS_SOUND_ENABLED";
// 
//     public static final String SETTINGS_VIBRATE_ENABLED = "SETTINGS_VIBRATE_ENABLED";
// 
//     public static final String SETTINGS_TOAST_ENABLED = "SETTINGS_TOAST_ENABLED";
// 
//     // NOTIFICATION FIELDS
// 
//     public static final String NOTIFICATION_ID = "NOTIFICATION_ID";
// 
//     public static final String NOTIFICATION_API_KEY = "NOTIFICATION_API_KEY";
// 
//     public static final String NOTIFICATION_TITLE = "NOTIFICATION_TITLE";
// 
//     public static final String NOTIFICATION_MESSAGE = "NOTIFICATION_MESSAGE";
// 
//     public static final String NOTIFICATION_URI = "NOTIFICATION_URI";
// 
//     public static final String PACKET_ID = "PACKET_ID";
// 
// 
//     // INTENT ACTIONS
// 
//     public static final String ACTION_SHOW_NOTIFICATION = "org.androidpn.client.SHOW_NOTIFICATION";
// 
//     public static final String ACTION_NOTIFICATION_CLICKED = "org.androidpn.client.NOTIFICATION_CLICKED";
// 
//     public static final String ACTION_NOTIFICATION_CLEARED = "org.androidpn.client.NOTIFICATION_CLEARED";
// 
//     // INTENT_EXTRA
//     public static final String INTENT_EXTRA_IQ = "INTENT_IQ";
// 
//     // NAMESPACE
//     public static final String DEFAULT_NAMESPACE = "androidpn:iq:notification";
//     // ELEMENT_NAME
//     public static final String ELEMENT_NAME = "notification";
// 
// }


import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.githang.android.apnbb.Constants;

/*
 * Copyright (C) 2010 Moduad Co., Ltd.
 *
 * 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 org.androidpn.client;



/** 
 * Activity for displaying the notification details view.
 *
 * @author Sehwan Noh (devnoh@gmail.com)
 */
public class NotificationDetailsActivity extends Activity {

    private static final String LOGTAG = LogUtil
            .makeLogTag(NotificationDetailsActivity.class);

    private String callbackActivityPackageName;

    private String callbackActivityClassName;

    public NotificationDetailsActivity() {
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        SharedPreferences sharedPrefs = this.getSharedPreferences(

// Path: androidpn/src/main/java/com/githang/android/apnbb/Constants.java
// public class Constants {
// 
//     // PROPERTY
//     public static final String PROP_FILE_NAME = "androidpn";
// 
//     // PROPERTY KEYS
// 
//     public static final String PROP_API_KEY = "apiKey";
//     public static final String PROP_XMPP_HOST = "xmppHost";
//     public static final String PROP_XMPP_PORT = "xmppPort";
//     public static final String PROP_PACKET_LISTENER = "packetListener";
//     public static final String PROP_IQ = "iq";
//     public static final String PROP_IQ_PROVIDER = "iqProvider";
//     public static final String PROP_NOTIFY_ACTIVITY= "notifyActivity";
// 
//     // PROPERTY DEFAULT VALUES
// 
//     public static final String DEFAULT_HOST = "127.0.0.1";
//     public static final String DEFAULT_PORT = "5222";
// 
// 
//     // PREFERENCE
//     public static final String SHARED_PREFERENCE_NAME = "client_preferences";
// 
//     // PREFERENCE KEYS
// 
//     public static final String CALLBACK_ACTIVITY_PACKAGE_NAME = "CALLBACK_ACTIVITY_PACKAGE_NAME";
// 
//     public static final String CALLBACK_ACTIVITY_CLASS_NAME = "CALLBACK_ACTIVITY_CLASS_NAME";
// 
//     public static final String API_KEY = "API_KEY";
// 
//     public static final String VERSION = "VERSION";
// 
//     public static final String XMPP_HOST = "XMPP_HOST";
// 
//     public static final String XMPP_PORT = "XMPP_PORT";
// 
//     public static final String XMPP_USERNAME = "XMPP_USERNAME";
// 
//     public static final String XMPP_PASSWORD = "XMPP_PASSWORD";
// 
//     public static final String DEVICE_ID = "DEVICE_ID";
// 
//     public static final String EMULATOR_DEVICE_ID = "EMULATOR_DEVICE_ID";
// 
//     public static final String NOTIFICATION_ICON = "NOTIFICATION_ICON";
// 
//     public static final String SETTINGS_NOTIFICATION_ENABLED = "SETTINGS_NOTIFICATION_ENABLED";
// 
//     public static final String SETTINGS_SOUND_ENABLED = "SETTINGS_SOUND_ENABLED";
// 
//     public static final String SETTINGS_VIBRATE_ENABLED = "SETTINGS_VIBRATE_ENABLED";
// 
//     public static final String SETTINGS_TOAST_ENABLED = "SETTINGS_TOAST_ENABLED";
// 
//     // NOTIFICATION FIELDS
// 
//     public static final String NOTIFICATION_ID = "NOTIFICATION_ID";
// 
//     public static final String NOTIFICATION_API_KEY = "NOTIFICATION_API_KEY";
// 
//     public static final String NOTIFICATION_TITLE = "NOTIFICATION_TITLE";
// 
//     public static final String NOTIFICATION_MESSAGE = "NOTIFICATION_MESSAGE";
// 
//     public static final String NOTIFICATION_URI = "NOTIFICATION_URI";
// 
//     public static final String PACKET_ID = "PACKET_ID";
// 
// 
//     // INTENT ACTIONS
// 
//     public static final String ACTION_SHOW_NOTIFICATION = "org.androidpn.client.SHOW_NOTIFICATION";
// 
//     public static final String ACTION_NOTIFICATION_CLICKED = "org.androidpn.client.NOTIFICATION_CLICKED";
// 
//     public static final String ACTION_NOTIFICATION_CLEARED = "org.androidpn.client.NOTIFICATION_CLEARED";
// 
//     // INTENT_EXTRA
//     public static final String INTENT_EXTRA_IQ = "INTENT_IQ";
// 
//     // NAMESPACE
//     public static final String DEFAULT_NAMESPACE = "androidpn:iq:notification";
//     // ELEMENT_NAME
//     public static final String ELEMENT_NAME = "notification";
// 
// }


// Path: androidpn/src/main/java/org/androidpn/client/NotificationDetailsActivity.java
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.githang.android.apnbb.Constants;

/*
 * Copyright (C) 2010 Moduad Co., Ltd.
 *
 * 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 org.androidpn.client;



/** 
 * Activity for displaying the notification details view.
 *
 * @author Sehwan Noh (devnoh@gmail.com)
 */
public class NotificationDetailsActivity extends Activity {

    private static final String LOGTAG = LogUtil
            .makeLogTag(NotificationDetailsActivity.class);

    private String callbackActivityPackageName;

    private String callbackActivityClassName;

    public NotificationDetailsActivity() {
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        SharedPreferences sharedPrefs = this.getSharedPreferences(

                Constants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE);
