new weather icons for widgets | updated 1.8.9
No files matched your search
@@ -10,8 +10,8 @@ android {
|
||||
applicationId "com.example.weathermaster"
|
||||
minSdk 22
|
||||
targetSdk 33
|
||||
versionCode 82
|
||||
versionName "1.8.8.2 (W)"
|
||||
versionCode 84
|
||||
versionName "1.8.9 (W)"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 82,
|
||||
"versionName": "1.8.8.2 (W)",
|
||||
"versionCode": 84,
|
||||
"versionName": "1.8.9 (W)",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -15,10 +15,7 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.provider.Settings;
|
||||
import android.text.InputType;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
@@ -31,7 +28,6 @@ import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -102,7 +98,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
AndroidInterface androidInterface = new AndroidInterface(this);
|
||||
webview.addJavascriptInterface(androidInterface, "AndroidInterface");
|
||||
webview.addJavascriptInterface(new ShowToastInterface(this), "ToastAndroidShow");
|
||||
webview.addJavascriptInterface(new UpdateNotificationInterface(this), "UpdateNotificationInterface");
|
||||
webview.addJavascriptInterface(new UpdateWidget1Interface(this), "UpdateWidget1Interface");
|
||||
webview.addJavascriptInterface(new ShowSnackInterface(this), "ShowSnackMessage");
|
||||
webview.setBackgroundColor(getResources().getColor(R.color.diffDefault));
|
||||
webview.getSettings().setGeolocationEnabled(true);
|
||||
@@ -309,16 +305,23 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
}
|
||||
|
||||
public class UpdateNotificationInterface {
|
||||
public class UpdateWidget1Interface {
|
||||
private final Context mContext;
|
||||
|
||||
public UpdateNotificationInterface(Context context) {
|
||||
public UpdateWidget1Interface(Context context) {
|
||||
this.mContext = context;
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
public void updateNotification(final String condition, final String locationWeather, final String mainTemp, final String iconData, final String highLow, final String hour_0_temp, final String hour_0_icon, final String hour_0_time, final String hour_1_temp, final String hour_1_icon, final String hour_1_time, final String hour_2_temp, final String hour_2_icon, final String hour_2_time, final String hour_3_temp, final String hour_3_icon, final String hour_3_time) {
|
||||
public void UpdateWidget1(final String condition, final String locationWeather, final String mainTemp, final String iconData, final String highLow, final String hour_0_temp, final String hour_0_icon, final String hour_0_time, final String hour_1_temp, final String hour_1_icon, final String hour_1_time, final String hour_2_temp, final String hour_2_icon, final String hour_2_time, final String hour_3_temp, final String hour_3_icon, final String hour_3_time) {
|
||||
WeatherWidgetProvider.updateWeatherWidget(mContext, condition, locationWeather, mainTemp, iconData, highLow, hour_0_temp, hour_0_icon, hour_0_time, hour_1_temp, hour_1_icon, hour_1_time, hour_2_temp, hour_2_icon, hour_2_time, hour_3_temp, hour_3_icon, hour_3_time);
|
||||
|
||||
WidgetProviderRound.updateWeatherWidgetRound(mContext, mainTemp, iconData);
|
||||
|
||||
WidgetProviderPill.updateWeatherWidgetPill(mContext, mainTemp, iconData);
|
||||
|
||||
WidgetProviderSquare.updateWeatherWidgetSquare(mContext, condition, locationWeather, mainTemp, iconData, highLow, hour_0_temp, hour_0_icon, hour_0_time, hour_1_temp, hour_1_icon, hour_1_time, hour_2_temp, hour_2_icon, hour_2_time, hour_3_temp, hour_3_icon, hour_3_time);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 14 KiB |
@@ -1,3 +1,4 @@
|
||||
<resources>
|
||||
<string name="app_name">Weather Master</string>
|
||||
<string name="widget_description_1">Current and Hourly</string>
|
||||
</resources>
|
||||