SmartDeviceLink-Examples / example_weather_app_android

BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

WeatherService sending errorupdate broadcast for location and network even though both are available #18

Closed RHenigan closed 4 years ago

RHenigan commented 4 years ago

Bug Report When the sdlservice is sets up the correct ErrorUpdate broadcast receiver and is tested with an emulator the network and location services are not flagged as unavailable in the WeatherService and therefore sends a ErrorUpdate broadcast before the sdlManager is initialized, this causes the sdlService to trhow a null pointer exception

Reproduction Steps Update the intent filter in OnCreate of SdlService from "com.ford.mobileweather.ErrorUpdate" to "com.sdl.mobileweather.ErrorUpdate" Run the application against manticore using an emulator with google play services

Expected Behavior Application should run, establish connection to manticore, and weather data should appear on manticore

Observed Behavior applicaiton crashes due to a nullpointerexception on screenManager.getState within the sdlManager