// Path: src/com/vodafone/locate/view/ProgressBar.java
// public class ProgressBar extends ImageView {
// 
//     private boolean mAttached;
// 
// 	public ProgressBar(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//         this.init(context);
//     }
// 
//     public ProgressBar(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         this.init(context);
//     }
// 
//     public ProgressBar(Context context) {
//         super(context);
//         this.init(context);
//     }
// 
//     private void init(Context context) {
//     	setImageResource(R.drawable.progress_bar);
//     }
//     
//     public void setImage(int imageId) {
//     	setImageResource(imageId);
//     	setVisibility(VISIBLE);
//     }
//     
//     @Override
//     public void setVisibility(int visibility) {
//     	super.setVisibility(visibility);
//     	if(mAttached) {
//             AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//             if (animationDrawable != null) {
// 				if (getVisibility() == VISIBLE) {
// 	    	        animationDrawable.start();
// 	            } else {
// 	    	        animationDrawable.stop();
// 	            }
// 			}
//     	}
//     }    
//     
//     @Override
//     protected void onAttachedToWindow() {
//         super.onAttachedToWindow();
//         mAttached = true;
//         if (getVisibility() == VISIBLE) {
//         	AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//             if (animationDrawable != null) {
//             	animationDrawable.start();
//         	}
//         }
//     }
//     
//     @Override
//     protected void onDetachedFromWindow() {
//         super.onDetachedFromWindow();
//         mAttached = false;
//         AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//         if (animationDrawable != null) {
//         	animationDrawable.stop();
//         }
//     }
// }


import java.util.Timer;
import java.util.TimerTask;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.vodafone.locate.R;
import com.vodafone.locate.view.ProgressBar;
/*******************************************************************************
 * Copyright (c) 1999-2010, Vodafone Group Services
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions 
 * are met:
 * 
 *     * Redistributions of source code must retain the above copyright 
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above 
 *       copyright notice, this list of conditions and the following 
 *       disclaimer in the documentation and/or other materials provided 
 *       with the distribution.
 *     * Neither the name of Vodafone Group Services nor the names of its 
 *       contributors may be used to endorse or promote products derived 
 *       from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
 * OF SUCH DAMAGE.
 ******************************************************************************/
package com.vodafone.locate.dialog;




public class AlertDialog extends Dialog {

    private static Timer timer;
    
    private TextView messageView;
    private TextView secondaryMessageView;
    private Button btnPos;
    private Button btnNeu;
    private Button btnNeg;
    private LinearLayout contentView;
// Path: src/com/vodafone/locate/view/ProgressBar.java
// public class ProgressBar extends ImageView {
// 
//     private boolean mAttached;
// 
// 	public ProgressBar(Context context, AttributeSet attrs, int defStyle) {
//         super(context, attrs, defStyle);
//         this.init(context);
//     }
// 
//     public ProgressBar(Context context, AttributeSet attrs) {
//         super(context, attrs);
//         this.init(context);
//     }
// 
//     public ProgressBar(Context context) {
//         super(context);
//         this.init(context);
//     }
// 
//     private void init(Context context) {
//     	setImageResource(R.drawable.progress_bar);
//     }
//     
//     public void setImage(int imageId) {
//     	setImageResource(imageId);
//     	setVisibility(VISIBLE);
//     }
//     
//     @Override
//     public void setVisibility(int visibility) {
//     	super.setVisibility(visibility);
//     	if(mAttached) {
//             AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//             if (animationDrawable != null) {
// 				if (getVisibility() == VISIBLE) {
// 	    	        animationDrawable.start();
// 	            } else {
// 	    	        animationDrawable.stop();
// 	            }
// 			}
//     	}
//     }    
//     
//     @Override
//     protected void onAttachedToWindow() {
//         super.onAttachedToWindow();
//         mAttached = true;
//         if (getVisibility() == VISIBLE) {
//         	AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//             if (animationDrawable != null) {
//             	animationDrawable.start();
//         	}
//         }
//     }
//     
//     @Override
//     protected void onDetachedFromWindow() {
//         super.onDetachedFromWindow();
//         mAttached = false;
//         AnimationDrawable animationDrawable = (AnimationDrawable) getDrawable();
//         if (animationDrawable != null) {
//         	animationDrawable.stop();
//         }
//     }
// }


// Path: src/com/vodafone/locate/dialog/AlertDialog.java
import java.util.Timer;
import java.util.TimerTask;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Handler;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.vodafone.locate.R;
import com.vodafone.locate.view.ProgressBar;

/*******************************************************************************
 * Copyright (c) 1999-2010, Vodafone Group Services
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without 
 * modification, are permitted provided that the following conditions 
 * are met:
 * 
 *     * Redistributions of source code must retain the above copyright 
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above 
 *       copyright notice, this list of conditions and the following 
 *       disclaimer in the documentation and/or other materials provided 
 *       with the distribution.
 *     * Neither the name of Vodafone Group Services nor the names of its 
 *       contributors may be used to endorse or promote products derived 
 *       from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
 * OF SUCH DAMAGE.
 ******************************************************************************/
package com.vodafone.locate.dialog;




public class AlertDialog extends Dialog {

    private static Timer timer;
    
    private TextView messageView;
    private TextView secondaryMessageView;
    private Button btnPos;
    private Button btnNeu;
    private Button btnNeg;
    private LinearLayout contentView;
    private ProgressBar progressbar;