捡到别人的苹果手机要怎样才能用怎么样才能不被找回

The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.查看: 2172|回复: 6
这是什么回事?还真第一次遇到,求神人帮忙 Skipped 61 frames!...
签到天数: 4 天连续签到: 1 天[LV.2]偶尔看看I主题帖子e币
本帖最后由 阿隆 于
12:48 编辑
------------------------------------------------------------------------------------------------------------------------------------------------------------
public class Choice extends Activity implements OnClickListener {
private ImageView submit,
protected void onCreate(Bundle savedInstanceState) {
& && && && && & this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
& && && && && && && && && && &&&WindowManager.LayoutParams.FLAG_FULLSCREEN);
& && && && && & this.requestWindowFeature(Window.FEATURE_NO_TITLE);
& && && && && & super.onCreate(savedInstanceState);
& && && && && & setContentView(R.layout.choice);
& && && && && & submit = (ImageView) this.findViewById(R.id.Submit);
& && && && && & logo = (ImageView) this.findViewById(R.id.choice);
& && && && && & A = (EditText) this.findViewById(R.id.editA);
& && && && && & B = (EditText) this.findViewById(R.id.editB);
& && && && && & C = (EditText) this.findViewById(R.id.editC);
& && && && && & A.clearFocus();
& && && && && & B.clearFocus();
& && && && && & C.clearFocus();
& && && && && & submit.setOnClickListener(this);
& && &&&protected void onStart() {
& && && && && & super.onStart();
& && && && && & switch (Category.LEVEL) {
& && && && && & case 1:
& && && && && && && && &logo.setImageResource(R.drawable.step02_love);
& && && && && && && && &
& && && && && & case 2:
& && && && && && && && &logo.setImageResource(R.drawable.step02_money);
& && && && && && && && &
& && && && && & case 3:
& && && && && && && && &logo.setImageResource(R.drawable.step02_career);
& && && && && && && && &
& && && && && & case 4:
& && && && && && && && &logo.setImageResource(R.drawable.step02_food);
& && && && && && && && &
& && && && && & case 5:
& && && && && && && && &logo.setImageResource(R.drawable.step02_travel);
& && && && && && && && &
& && && && && & }
& && && && && & animation = AnimationUtils.loadAnimation(getApplicationContext(),
& && && && && && && && && && &&&R.anim.shake);
& && && && && & animation.setFillAfter(true);
& && && && && & logo.startAnimation(animation);
public void onClick(View v) {
& && && && && & switch (v.getId()) {
& && && && && & case R.id.Submit:
& && && && && && && && &one = A.getText().toString();
& && && && && && && && &two = B.getText().toString();
& && && && && && && && &three = C.getText().toString();
& && && && && && && && &submit.setAnimation(animation);
& && && && && && && && &intent = new Intent(Choice.this, Shake.class);
& && && && && && && && &startActivity(intent);
& && && && && && && && &overridePendingTransition(R.anim.slideleft_in, R.anim.slideleft_out);
& && && && && && && && &Choice.this.finish();
& && && && && && && && &
& && && && &}
------------------------------------------------------------------------------------------------------------------------------------------------------------
public class Shake extends Activity implements SensorEventListener,
& && && && && & OnClickListener {
& && &&&private SensorManager mSensorMgr =
& && &&&private I
& && &&&private Sensor mSensor =
& && &&&private V
& && &&&private ImageView shakeNow, L
& && &&&private Animation animation, U
protected void onCreate(Bundle savedInstanceState) {
& && && && && & super.onCreate(savedInstanceState);
& && && && && & requestWindowFeature(Window.FEATURE_NO_TITLE);
& && && && && & getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
& && && && && && && && && && &&&WindowManager.LayoutParams.FLAG_FULLSCREEN);
& && && && && & setContentView(R.layout.shake_love);
& && && && && & shakeNow = (ImageView) this.findViewById(R.id.shakenow);
& && && && && & Logo = (ImageView) this.findViewById(R.id.ans_logo);
& && && && && & shakeNow.setOnClickListener(this);
& && &&&protected void onStart() {
& && && && && & super.onStart();
& && && && && & switch (Category.LEVEL) {
& && && && && & case 1:
& && && && && && && && &Logo.setImageResource(R.drawable.step04_shake);
& && && && && && && && &
& && && && && & case 2:
& && && && && && && && &Logo.setImageResource(R.drawable.step02_money);
& && && && && && && && &
& && && && && & case 3:
& && && && && && && && &Logo.setImageResource(R.drawable.step02_career);
& && && && && && && && &
& && && && && & case 4:
& && && && && && && && &Logo.setImageResource(R.drawable.step02_food);
& && && && && && && && &
& && && && && & case 5:
& && && && && && && && &Logo.setImageResource(R.drawable.step02_travel);
& && && && && && && && &
& && && && && & }
& && && && && & animation = AnimationUtils.loadAnimation(getApplicationContext(),
& && && && && && && && && && &&&R.anim.shake);
& && && && && & animation.setFillAfter(true);
& && && && && & Updown = AnimationUtils.loadAnimation(getApplicationContext(),
& && && && && && && && && && &&&R.anim.up_down);
& && &&&public void onClick(View v) {
& && && && && & switch (v.getId()) {
& && && && && & case R.id.shakenow:
& && && && && & vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
& && && && && & mSensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE);
& && && && && & mSensor = mSensorMgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
& && && && && & mSensorMgr.registerListener(this, mSensor,
& && && && && && && && && && &&&SensorManager.SENSOR_DELAY_NORMAL);
& && && && && && && && &
& && && && && & }
public void onSensorChanged(SensorEvent event) {
& && && && && & mGX = event.values[SensorManager.DATA_X];
& && && && && & mGY = event.values[SensorManager.DATA_Y];
& && && && && & shakeNow.startAnimation(animation);
& && && && && & Anim_Shake();
& && &&&public void Anim_Shake() {
& && && && && & Logo.setImageResource(R.drawable.step04_shake_blur);
& && && && && & Logo.startAnimation(Updown);
& && && && && & Updown.setAnimationListener(new AnimationListener() {
& && && && && && && && &public void onAnimationStart(Animation animation) {
& && && && && && && && &}
& && && && && && && && &public void onAnimationRepeat(Animation animation) {
& && && && && && && && &}
& && && && && && && && &public void onAnimationEnd(Animation animation) {
& && && && && && && && && && &&&Logo.setImageResource(0);
& && && && && && && && && && &&&shakeNow.setVisibility(View.GONE);
& && && && && && && && && && &&&Logo.setBackgroundResource(R.anim.page);
& && && && && && && && && && &&&Logo.post(new Runnable() {
& && && && && && && && && && && && && & public void run() {
& && && && && && && && && && && && && && && && &AnimationDrawable frameAnimation = (AnimationDrawable) Logo
& && && && && && && && && && && && && && && && && && && && && & .getBackground();
& && && && && && && && && && && && && && && && &frameAnimation.start();
& && && && && && && && && && && && && & }
& && && && && && && && && && &&&});
& && && && && && && && &}
& && && && && & });
------------------------------------------------------------------------------------------------------------------------------------------------------------
当我这两个界面来回切换3次以上的时候这事情就发生了.....
APP没有关闭只是卡着,几十秒后又恢复了.......
Skipped 61 frames!&&The application may be doing too much work on its main thread.
Skipped 101 frames!&&The application may be doing too much work on its main thread.
Skipped 93 frames!&&The application may be doing too much work on its main thread.
从没看过这外星东西 !!!!
帮帮忙,怎么解决 ?
mSensor = mSensorMgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
mSensorMgr.registerListener(this, mSensor,
SensorManager.SENSOR_DELAY_NORMAL);
注册的listener要在 ondestory的时候销毁..
你这样来回切换几次以后,SensorMgr上就绑定了多个listener
然后一旦手机震动,每个listener都会取调用Anim_Shake()
你这个方法里又做了很多比较Heavy的动作 ( 读取资源,启动动 ...
该用户从未签到主题帖子e币
mSensor = mSensorMgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
& && && && && & mSensorMgr.registerListener(this, mSensor,
& && && && && && && && && && &&&SensorManager.SENSOR_DELAY_NORMAL);
注册的listener要在 ondestory的时候销毁..
你这样来回切换几次以后,SensorMgr上就绑定了多个listener
然后一旦手机震动,每个listener都会取调用Anim_Shake()
你这个方法里又做了很多比较Heavy的动作 ( 读取资源,启动动画的动作)
所以假设你来回切换了10次,你摇一下 Anim_Shake() 就会调用10次,启10个动画.然后app就卡了.
Skipped 61 frames!&&The application may be doing too much work on its main thread.
这个提示就是英文原本的意思,主线程里做了太多heavy的操作,导致ui层 skip frames,直接表现 就是 卡顿 跳帧
该用户从未签到主题帖子e币
我是不是太不专业了,每次都是把这些忽视
该用户从未签到主题帖子e币
把英文翻译过来就知道啦,在UI线程处理太多东西了
签到天数: 149 天连续签到: 1 天[LV.7]常住居民III主题帖子e币
耗时操作可以放到异步线程中
签到天数: 22 天连续签到: 1 天[LV.4]偶尔看看III主题帖子e币
代码没看,只看最后几句了,LS各位都已经解释了,主线程尽量不要做耗时的工作,这些工作放到子线程来实现
可我就没有什么耗时的工作啊,都是些animation&
签到天数: 4 天连续签到: 1 天[LV.2]偶尔看看I主题帖子e币
代码没看,只看最后几句了,LS各位都已经解释了,主线程尽量不要做耗时的工作,这些工作放到子线程来实现 ...
可我就没有什么耗时的工作啊,都是些animation
QQ已认证,此人靠谱
社区认证会员
社区认证会员
推荐阅读热门话题
61882420383327281281261260251226218210206203715
1&小时前3&小时前6&小时前6&小时前7&小时前7&小时前昨天&23:56昨天&16:40昨天&16:31昨天&16:15昨天&14:48昨天&14:29昨天&14:12昨天&13:53昨天&13:40昨天&11:29
Powered byAndroid 性能优化,关于Skipped 31 frames!
The applicatio
Android 性能优化,关于Skipped 31 frames!
The applicatio
m9ayila & &
发布时间: & &
浏览:1 & &
回复:0 & &
悬赏:0.0希赛币
GC_FOR_ALLOC&freed&13270K,&39%&free&1K,&paused&164ms,&total&208ms系统一直在弹出GC输出,这是正常GC还是程序内存处理不好导致频繁GCSkipped&31&frames!&&The&application&may&be&doing&too&much&work&on&its&main&thread.系统弹出这个信息,主线程做太多事,但我仔细检查了下程序里面的逻辑,大部分都用线程封装了,大概是什么导致出现这个情况的,还有出现这个之后通过handler发送信息显示界面UI,会影响UI刷新,怎么解决求大神!!
我的问题找到了 是因为有一个地方for循环执行的次数太多,消耗的内存太多 所以GC
long&startWhen&=&System.nanoTime();
long&endWhen&=&System.nanoTime();
Log.e(TAG,&"Calendar&upgrade&took&"&+&((endWhen&-&startWhen)&/&1000000) +&"ms");用这个找出时间太多的地方,在分析,方法笨点zylu88 & &
11:52:28 & &
& & (0)(0)
本问题标题:
本问题地址:
温馨提示:本问题已经解决,不能解答。
暂无合适的专家
&&&&&&&&&&&&&&&
希赛网 版权所有 & &&

我要回帖

更多关于 苹果手机充电才能开机 的文章

 

随机推荐