开发者

Issue with showing call duration after call call terminate

I can able to show ongoing call duration in my CallScreen. After call terminate I want to show total call duration in toast for that I am w开发者_如何学Criting code onStop, but because of call termination Activity get ended and it is not showing call duration. So I want to know what I need to do?


Toast toast = Toast.makeText(Context context, CharSequence text, int duration); toast.show();

context is usually user ApplicationContext or Activity use.

Have you been tested getApplicationContext() ApplicationContext use?

I'm test Activity or ApplicationContext, both i'm show toast message.

How to call termination Activity?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜