Android Open Source - android-NSUWeather App Widget Helper






From Project

Back to project page android-NSUWeather.

License

The source code is released under:

MIT License

If you think the Android project android-NSUWeather listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mbelsky.nsuweather.utils;
//from   w  ww.  j a v  a2s.  c om
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;

/**
 * @author mbelsky 25.12.14
 */
public class AppWidgetHelper {

    public static int[] getAppWidgetIds(final Context context, final AppWidgetManager appWidgetManager, final Class<? extends AppWidgetProvider> widgetProviderClass) {
        ComponentName thisAppWidget =
                new ComponentName(context.getPackageName(), widgetProviderClass.getName());
        int[] appWidgetIds = appWidgetManager.getAppWidgetIds(thisAppWidget);
        return appWidgetIds;
    }
}




Java Source Code List

com.mbelsky.nsuweather.activity.SettingsActivity.java
com.mbelsky.nsuweather.http.NetworkConstants.java
com.mbelsky.nsuweather.http.parser.WeatherResponseParser.java
com.mbelsky.nsuweather.http.request.WeatherRequest.java
com.mbelsky.nsuweather.model.Weather.java
com.mbelsky.nsuweather.preferences.Storage.java
com.mbelsky.nsuweather.service.UpdateWeatherService.java
com.mbelsky.nsuweather.utils.AppWidgetHelper.java
com.mbelsky.nsuweather.utils.Formatter.java
com.mbelsky.nsuweather.utils.ViewHelper.java
com.mbelsky.nsuweather.view.LastUpdateTimeView.java
com.mbelsky.nsuweather.view.NoConnectionView.java
com.mbelsky.nsuweather.view.TemperatureView.java
com.mbelsky.nsuweather.widgetprovider.WeatherWidgetProvider.java