IOS5实现了真正的后台了么?
相比IOS4多了什么呢? 开放第三方程序完全的后台运行有什么用? 给果黑新喷点吗?http://www.apple.com.cn/ios/features.html 引用第1楼Elisha于2011-10-07 16:30发表的:
所谓真正的后台是指什么,没觉得安卓 ios wp7的后台有什么区别啊 images/back.gif
开个Q试试 引用第1楼Elisha于2011-10-07 16:30发表的 :
所谓真正的后台是指什么,没觉得安卓 ios wp7的后台有什么区别啊 http://bbs.saraba1st.com/2b/images/back.gif
区别很大呀。。QQ、还有第三方拨号软件,每次点开都要重新载入。。这样的后台和安卓后台区别很大吧 没有,真多任务还是找安卓、塞班去吧 引用第6楼Elisha于2011-10-07 17:34发表的:
Q早就后台了 images/back.gif
我怎么每次切回去都要更新? iOS后台应用似乎只能保持10分钟网络连接? 说到qq,除了后台以外(其实越狱之后用backgrouner也是真后台了)ios版qq更新之后比安卓手机qq2011好使,安卓本身还有个qq2.0跟ios那个应该是一样,但是稳定性差点儿,快更新吧~ 引用第9楼dodolee于2011-10-07 17:55发表的:
iOS后台应用似乎只能保持10分钟网络连接? images/back.gif
这个也是后台API的限制 实现真正的后台,续航就要煞笔了 可以把机器做大点 像ipad那样塞电池 实话实说,虽然对IOS的后台很不满意,但是IOS的QQ2011还真的不错 安卓也不是真正的后台。
目前看来貌似只有N9的米狗算。。。 “为啥要后台”“嫌耗电还不快吗”“嫌流量跑的不快吗” http://developer.apple.com/library/ios/ipad/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html
哪个脑抽会设计10分钟限制的后台。。。viop 流媒体音乐 后台下载软件你们一个都没用过吗? 例如DLNA分享本地音乐到PS3这种,确实是只能后台十几分钟。 对于移动平台这种只能单操作的设备,我觉得苹果的伪后台才是最适合的,程序不退出,处于暂停状态驻留在内存里,回来用就继续,毕竟不像pc可以直接上网视频同时来,后台可以继续运行程序根本没什必要,需要后台也继续运行的也就是qq那几个软件而已,搞好这就行 ios的qq现在已经很好用了啊,开着去干别的有信息过来也会弹出提示了 引用第8楼Elisha于2011-10-07 17:48发表的:
驻留了呀,每次切回去又不用重新开启了,难道不是后台了 images/back.gif
驻留个JB,你把Q后台去做别的事情,然后切断网络再开Q,看看能不能收到中间那段时间的群消息 To avoid termination, you can also provide an expiration handler when starting a task and call the endBackgroundTask: method from there.
600秒限制在task completion里面是有,为的是防止设计糟糕的后台进程永驻浪费资源,但是快到时间了可以再开一个,只能10分钟后台说明开发者文档没认真看 引用第19楼venusvsvirus于2011-10-07 20:37发表的 :
http://developer.apple.com/library/ios/ipad/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html
哪个脑抽会设计10分钟限制的后台。。。viop 流媒体音乐 后台下载软件你们一个都没用过吗? images/back.gif
http://stackoverflow.com/questions/5840365/how-can-an-ios-app-keep-a-tcp-connection-alive-indefinitely-while-in-the-backgrou
Installing a Keep-Alive Handler
To prevent the loss of its connection, a VoIP application typically needs to wake up periodically and check in with its server. To facilitate this behavior, iOS lets you install a special handler using the setKeepAliveTimeout:handler: method of UIApplication. You typically install this handler in the applicationDidEnterBackground: method of your application delegate. Once installed, the system calls your handler at least once before the timeout interval expires, waking up your application as needed to do so.
Your keep-alive handler executes in the background and should return as quickly as possible. Handlers are given a maximum of 30 seconds to perform any needed tasks and return. If a handler has not returned after 30 seconds, the system terminates the application.
When installing your handler, specify the largest timeout value that is practical for your application’s needs. The minimum allowable interval for running your handler is 600 seconds and attempting to install a handler with a smaller timeout value will fail. Although the system promises to call your handler block before the timeout value expires, it does not guarantee the exact call time. To improve battery life, the system typically groups the execution of your handler with other periodic system tasks, thereby processing all tasks in one quick burst. As a result, your handler code must be prepared to run earlier than the actual timeout period you specified.
10分钟就是这么来的。当然是可以用“非法”手段绕过这个问题就是了(我理解大概是把一个非背景音频程序冒充成背景音频程序来保持连接吧),多任务在iOS上目前看来还是很多限制的,而且我觉得不能指望iOS能变得像Android那么开放。 官方文档
All calls to the beginBackgroundTaskWithExpirationHandler: method must be balanced with a corresponding call to the endBackgroundTask: method. The endBackgroundTask: method lets the system know that the task is complete and that the application can now be suspended. Because applications are given only a limited amount of time to finish background tasks, you must call this method before time expires or the system will terminate your application. To avoid termination, you can also provide an expiration handler when starting a task and call the endBackgroundTask: method from there. (You can also check the value in the backgroundTimeRemaining property of the application object to see how much time is left.)
An application can have any number of tasks running at the same time. Each time you start a task, the beginBackgroundTaskWithExpirationHandler: method returns a unique identifier for the task. You must pass this same identifier to the endBackgroundTask: method when it comes time to end the task.
另外VOIP audio和location都是never suspend 引用第28楼venusvsvirus于2011-10-07 21:41发表的 :
官方文档
另外VOIP audio和location都是never suspend
....... images/back.gif
你再往下看看文档就是我引用那段了,这个Handler最快10分钟执行一次,如果我那个链接5分钟没数据就断线,就没办法了。
所以说还是“workaround”嘛,官方当然不会鼓励一个非VoIP的应用用VoIP的方法保持背景链接了,不然Splashtop和issh怎么不用…… 引用第17楼vuder于2011-10-07 20:27发表的:
混蛋安卓后台啊,什么程序都往激发事项里面加,顺便做个动作后台一大堆莫名其妙的东西就全部启动在后台等着干活吃内存狂跑流量。
你不root用启动管理软件,光依照后台软件都没法彻底砍掉他们有木有。
你Y的google你自己官方搞个权限控制程序就这么难么
每次一个程序还给我sd卡添一个目录,把程序删了目录也会还在,你要是尝试软件一多,sd卡下面各种目录。
尼玛的要我精通你们所有目录的英文缩写不成?
....... images/back.gif
强排,深有同感,很多开发者操蛋无比,连个Wlan就一大堆程序刷刷刷的冒泡了,简直是让人抓狂无比,连Wifi时候也就算了,开个GPRS也一堆程序冒出来,烦躁的要死,更要命的是我用的是M9,现在2.3固件还不能临时Root,都没法彻底把他们踹出自启动,在这一点上我还是更喜欢IOS的伪后台,就如某楼所说的,这是移动设备,不是PC,续航很要命的,更何况貌似现在IOS挂QQ什么的也是木有问题了. 引用第26楼Elisha于2011-10-07 21:39发表的:
我开推送了,就算不上线也能收到那段时间的群消息。。。 images/back.gif
那是推送,又不是后台
一条条弹出来点不死你 引用第31楼john于2011-10-07 22:09发表的:
那是推送,又不是后台
一条条弹出来点不死你 images/back.gif
我怎么记得是只有最新的一条在上面然后只要点一下就好了 引用第26楼Elisha于2011-10-07 21:39发表的:
我开推送了,就算不上线也能收到那段时间的群消息。。。 images/back.gif
啥?现在推送能推群消息了?在哪里设置的? 那么能不能一边用下载软件下东西,一边用浏览器上网,一边第三方软件听歌? 引用第34楼Elisha于2011-10-07 22:47发表的:
我的意思是无论如何我也会收到消息的,所以这个测试我做不了
john你太执着于“真正”的后台了 images/back.gif
如果伪后台不影响正常使用的话,谁在乎真伪啊
比如我在开浏览器的时候即便群里有100条对话,我再切回Q也能全部下载回来这样,可是显然只能下载回最新的二三十条 引用第17楼vuder于2011-10-07 20:27发表的:
混蛋安卓后台啊,什么程序都往激发事项里面加,顺便做个动作后台一大堆莫名其妙的东西就全部启动在后台等着干活吃内存狂跑流量。
你不root用启动管理软件,光依照后台软件都没法彻底砍掉他们有木有。
你Y的google你自己官方搞个权限控制程序就这么难么
每次一个程序还给我sd卡添一个目录,把程序删了目录也会还在,你要是尝试软件一多,sd卡下面各种目录。
尼玛的要我精通你们所有目录的英文缩写不成?
....... images/back.gif
果然还是苹果棒!连目录都不给你看到就啥事没有了
后台驻内存跑流量耗电什么的,不多说了 引用第37楼情侣去X去X于2011-10-08 00:15发表的:
果然还是苹果棒!连目录都不给你看到就啥事没有了
后台驻内存跑流量耗电什么的,不多说了 images/back.gif
来,您给详细说说吧, 咱也学习学习 引用第36楼john于2011-10-08 00:01发表的:
如果伪后台不影响正常使用的话,谁在乎真伪啊
比如我在开浏览器的时候即便群里有100条对话,我再切回Q也能全部下载回来这样,可是显然只能下载回最新的二三十条 images/back.gif
论这个现象的话其实更确切的数字是20条
不过20的数字是腾讯自己定的,服务器就给你发过来最新的20条。
页:
[1]
2