Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.ContentValues;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static ContentValues getContentValuesFromWeatherDataMap(HashMap<String, String> weatherDataMap) {
        if (weatherDataMap == null)
            return null;
        ContentValues contentValues = new ContentValues();
        for (Map.Entry<String, String> entry : weatherDataMap.entrySet()) {
            contentValues.put(entry.getKey(), entry.getValue());
        }
        return contentValues;
    }
}