android.os.handler包,Handler Class

Creates and returns a copy of this Object.

(Inherited from Object)

Handle system messages here.

(Inherited from Object)

Compares this instance with the specified object and indicates if they

are equal.

(Inherited from Object)

Returns an integer hash code for this object.

(Inherited from Object)

Returns a string representing the name of the specified message.

Subclasses must implement this to receive messages.

Check if there are any pending posts of messages with code 'what' in

the message queue.

Check if there are any pending posts of messages with code 'what' and

whose obj is 'object' in the message queue.

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)

Causes a thread which is waiting on this object's monitor (by means of

calling one of the wait() methods) to be woken up.

(Inherited from Object)

Causes all threads which are waiting on this object's monitor (by means

of calling one of the wait() methods) to be woken up.

(Inherited from Object)

Returns a new Message from the global message pool.

Same as ObtainMessage(), except that it also sets the what member of the returned Message.

Same as ObtainMessage(), except that it also sets the what, arg1 and arg2 members of the returned

Message.

Same as ObtainMessage(), except that it also sets the what, obj, arg1,and arg2 values on the

returned Message.

Same as ObtainMessage(), except that it also sets the what and obj members

of the returned Message.

Causes the Runnable r to be added to the message queue.

Posts a message to an object that implements Runnable.

Causes the Runnable r to be added to the message queue, to be run

after the specified amount of time elapses.

Remove any pending posts of Runnable r that are in the message queue.

Remove any pending posts of Runnable r with Object

token that are in the message queue.

Remove any pending posts of callbacks and sent messages whose

obj is token.

Remove any pending posts of messages with code 'what' that are in the

message queue.

Remove any pending posts of messages with code 'what' and whose obj is

'object' that are in the message queue.

Sends a Message containing only the what value.

Sends a Message containing only the what value, to be delivered

at a specific time.

Sends a Message containing only the what value, to be delivered

after the specified amount of time elapses.

Pushes a message onto the end of the message queue after all pending messages

before the current time.

Enqueue a message at the front of the message queue, to be processed on

the next iteration of the message loop.

Enqueue a message into the message queue after all pending messages

before (current time + delayMillis).

Returns a string containing a concise, human-readable description of this

object.

(Inherited from Object)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the

specified timeout expires.

(Inherited from Object)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the

specified timeout expires.

(Inherited from Object)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.intenttest, PID: 8155 android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.intenttest/com.example.intenttest.MyActivity}; have you declared this activity in your AndroidManifest.xml? at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2049) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1709) at android.app.Activity.startActivityForResult(Activity.java:5192) at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597) at android.app.Activity.startActivityForResult(Activity.java:5150) at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583) at android.app.Activity.startActivity(Activity.java:5521) at android.app.Activity.startActivity(Activity.java:5489) at com.example.intenttest.MainActivity$2.onClick(MainActivity.java:60) at android.view.View.performClick(View.java:7125) at android.view.View.performClickInternal(View.java:7102) at android.view.View.access$3500(View.java:801) at android.view.View$PerformClick.run(View.java:27336) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
最新发布
05-25

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值