Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Intent;

import android.os.Build;

import android.widget.RemoteViews;

public class Main {
    @SuppressWarnings("deprecation")
    public static final void setRemoteViewsAdapter(RemoteViews views, int appWidgetId, int viewId, Intent intent) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
            views.setRemoteAdapter(appWidgetId, viewId, intent);
        } else {
            views.setRemoteAdapter(viewId, intent);
        }
    }
}