Hello,
I want to call the launch the stock weather app from my program via an
intent, but I keep getting a force close runtime error, and LogCat
gives me nothing. The code I am trying to use to achieve this is:
public void startWeatherActivity() {
Intent intent = new Intent("android.intent.action.MAIN");
intent.setComponent(ComponentName.unflattenFromString("org.anddev.android.weatherforecast/
org.anddev.android.weatherforecast.WeatherForecast"));
intent.addCategory("android.intent.category.LAUNCHER");
startActivity(intent);
}
with this in manifest
<activity
android:name="org.anddev.android.weatherforecast.WeatherForecast"/>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en