Android 之 onSaveInstanceState && onRestoreInstanceState

注意
1 textview edittextview button 等都已经实现了状态保存
2 onSaveInstance 和onRestoreInstanceState 并不总是出现
3 onSaveInstance 方法的 触发是activity有被销毁的危险 而不是被销毁
(如果你主动调用finish()方法 onsave是不是被调用的)
4 在手机屏幕横竖切换的时候 onsave 和 onrestore都会被调用
(onsave在oncreate之前被调用 onrestore在onresume之前调用)

08-03 14:12:27.007 15260-15339/com.xinxianren.administrator.volleydemo I/OpenGLRenderer: Initialized EGL, version 1.4
08-03 14:12:35.516 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: onSaveInstanceState
08-03 14:12:35.550 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: onCreate
08-03 14:12:35.572 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: 获取保存数据 这就是标题*这就是详情内容
08-03 14:12:35.573 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: onStart
08-03 14:12:35.574 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: onRestoreInstanceState具体
08-03 14:12:35.575 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: onResume
08-03 14:12:35.575 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: setTitle
08-03 14:12:35.575 15260-15260/com.xinxianren.administrator.volleydemo D/MainActivity: setDescDetails

minimicall那转载的
今天看到了一个帖子,里面有国内外android开发的大牛的博客。果断搞过来。给自己备个份
国内:
昵称 Github 博客 介绍
邓凡平 http://blog.csdn.net/innost 阿拉神农
魏祝林 http://blog.csdn.net/android_tutor
Trinea https://github.com/trinea http://www.trinea.cn/ 性能优化 开源项目
halzhang https://github.com/halzhang http://www.cnblogs.com/halzhang StartNews作者
wyouflf https://github.com/wyouflf http://my.oschina.net/u/1171837 xUtils作者
张兴业 http://blog.csdn.net/xyz_lmn
代码家 https://github.com/daimajia http://blog.daimajia.com/
stormzhang https://github.com/stormzhang http://stormzhang.github.io/ 9Gag作者 AndroidDesign Love开源
郭霖 http://blog.csdn.net/guolin_blog
hanyonglu http://www.cnblogs.com/hanyonglu/ Android动画与推送
闷瓜蛋子 http://www.fookwood.com/ 云OS开发
傲慢的上校 http://blog.csdn.net/lilu_leo
youxiachai https://github.com/youxiachai
dodola https://github.com/dodola
Issacw0ng https://github.com/Issacw0ng http://imid.me
mcxiaoke https://github.com/mcxiaoke
soarcn https://github.com/soarcn
谦虚的天下 http://www.cnblogs.com/qianxudetianxia/
李华明Himi http://blog.csdn.net/xiaominghimi
yangfuhai https://github.com/yangfuhai
张国威 http://blog.csdn.net/hellogv
程序媛念茜 http://blog.csdn.net/yiyaaixuexi
wangjinyu501 http://blog.csdn.net/wangjinyu501
ASCE1885 http://blog.csdn.net/asce1885
qinjuning http://blog.csdn.net/qinjuning
秋风的博客 http://blog.csdn.net/tangcheng_ok
任玉刚 https://github.com/singwhatiwanna http://blog.csdn.net/singwhatiwanna Android开源
国外:
Avatar Github Blog Description
Google Android https://github.com/google http://android-developers.blogspot.com/ Google Android Developers Blog
JakeWharton https://github.com/JakeWharton http://jakewharton.com/ ActionBarSherlock, Android-ViewPagerIndicator, Nine Old Androids, butterknife
Square https://github.com/square http://square.github.io/ okhttp, fest-android, android-times-square, picasso, dagger, spoon
Chris Banes https://github.com/chrisbanes http://chris.banes.me/ ActionBar-PullToRefresh, PhotoView, Android-BitmapCache, Android-PullToRefresh
Jeremy Feinstein https://github.com/jfeinstein10 http://jeremyfeinstein.com/ SlidingMenu, JazzyViewPager
Sergey Tarasevich https://github.com/nostra13 http://nostra13android.blogspot.com/ Android-Universal-Image-Loader
Koushik Dutta https://github.com/koush http://koush.com/ Superuser, AndroidAsync, UrlImageViewHelper
Simon Vig https://github.com/SimonVT http://simonvt.net/ android-menudrawer, MessageBar
Cyril Mottier https://github.com/cyrilmottier http://cyrilmottier.com/ GreenDroid, Polaris
Emil Sjolander https://github.com/emilsjolander http://emilsjolander.se/ StickyListHeaders, sprinkles, android-FlipView
James Smith https://github.com/loopj http://loopj.com android-async-http
Manuel Peinado https://github.com/ManuelPeinado FadingActionBar, GlassActionBar, RefreshActionItem, QuickReturnHeader
greenrobot https://github.com/greenrobot http://greenrobot.de/ greenDAO, EventBus
Jeff Gilfelt https://github.com/jgilfelt http://jeffgilfelt.com android-mapviewballoons, android-viewbadger, android-actionbarstylegenerator, android-sqlite-asset-helper
Roman Nurik https://github.com/romannurik http://roman.nurik.net/ muzei, Android-SwipeToDismiss
Flavien Laurent https://github.com/flavienlaurent http://www.flavienlaurent.com NotBoringActionBar, datetimepicker, discrollview
Gabriele Mariotti https://github.com/gabrielemariotti http://gmariotti.blogspot.it cardslib, colorpickercollection
sephiroth74 https://github.com/sephiroth74 http://www.sephiroth.it/ ImageViewZoom, HorizontalVariableListView, AndroidWheel, purePDF
Romain Guy https://github.com/romainguy http://www.curious-creature.org ViewServer
Kevin Sawicki https://github.com/kevinsawicki https://twitter.com/kevinsawicki http-request
Christopher Jenkins https://github.com/chrisjenx http://about.me/chris.jenkins Calligraphy, ParallaxScrollView
Javier Pardo https://github.com/jpardogo http://jpardogo.com ListBuddies, FlabbyListView, GoogleProgressBar, FadingActionBar
Chet Haase http://graphics-geek.blogspot.com/ Android framework UI team
Matthias Käppler https://github.com/mttkay http://mttkay.github.io/ signpost
Daniel Lew https://github.com/dlew http://blog.danlew.net/ Android Tip

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值