alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (MockDialogInterface.java)

This example Android source code file (MockDialogInterface.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

android, content, dialoginterface, mockdialoginterface, unsupportedoperationexception

The MockDialogInterface.java Android example source code

// Copyright 2008 The Android Open Source Project

package android.test.mock;

import android.content.DialogInterface;

/**
 * A mock {@link android.content.DialogInterface} class.  All methods are non-functional and throw 
 * {@link java.lang.UnsupportedOperationException}. Override it to provide the operations that you 
 * need.
 */
public class MockDialogInterface implements DialogInterface {
    public void cancel() {
        throw new UnsupportedOperationException("not implemented yet");
    }

    public void dismiss() {
        throw new UnsupportedOperationException("not implemented yet");
    }
}

Other Android examples (source code examples)

Here is a short list of links related to this Android MockDialogInterface.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.