V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iyuyue
V2EX  ›  问与答

请问在 Android 的 Service 中联网与 mainActivity 中有什么区别。

  •  
  •   iyuyue · Mar 27, 2014 · 2787 views
    This topic created in 4418 days ago, the information mentioned may be changed or developed.
    问题是这样的,我在mainActivity中成功通过AsyncHttpResponseHandler中的onSuccess获取到了网络内容(某个网址),但是我把相同的代码放到一个Service的onStartCommand中却得不到任何response。
    android还在入门,问题描述不清请谅解,求帮助!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
    ♥ Do have faith in what you're doing.