When I start my main activity I will check if the preferences are setted. If not I will start the preferences activity. On android 1.6 all right, but from the next versions I'm taking this timeout for HistoryRecord:
*08-19 22:21:18.705: WARN/ActivityManager(55): Activity pause timeout for HistoryRecord{4508b3f0 com.cartraffi开发者_JAVA百科clive/.view.ShowMap} *
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.show_map);
loadPreferences();
if (depAdd.equals("") || arrAdd.equals(""))
startActivity(new Intent(this, Preferences.class));
loadMap();
}
Probably I’m getting this message because my emulator is too slow and the app is taking too much time to show the activity.
精彩评论