登录
首页 » Android » Android 强制回到待机界面 回到桌面

Android 强制回到待机界面 回到桌面

于 2022-06-21 发布 文件大小:13.58 kB
0 235
下载积分: 2 下载次数: 1

代码说明:

Android 强制回到待机界面 回到桌面,类似于手机中HOME键,单击一下会将当前程序隐藏至后台运行,并转到待机画面。不知道什么意思的,可看看截图所示的效果。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android_examples
    android 布局示例,供有兴趣的人去学习。很好的例子,希望大家喜欢(android tabhost)
    2014-01-28 18:16:43下载
    积分:1
  • spydroid10.0开源摄像头项目
    资源描述spydroid10.0开源摄像头项目,解决在5.0以上崩溃问题,测试发现MediaCodec编码效率低下,建议使用MediaRecorder录制。延迟在1-2秒之内,效率极高。我的是在此版本之上改的,借鉴此项目中一些代码,用于双向视频通话。
    2022-09-10 20:30:07下载
    积分:1
  • android 静态壁纸实例源码下载
    一款还不错的静态壁纸代码 核心代码:package com.example.wallpaperchange;import android.os.Bundle;import android.app.Activity;import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Intent;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.Toast; public class MainActivity extends Activity { AlarmManager aManager; Button start,stop; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); start = (Button)findViewById(R.id.start); stop = (Button)findViewById(R.id.stop); aManager = (AlarmManager)getSystemService(Service.ALARM_SERVICE); //指定ChangeService组件 Intent intent = new Intent(MainActivity.this,ChangeService.class); //创建PendingIntent对象 final PendingIntent pi = PendingIntent.getService( MainActivity.this, 0, intent, 0); start.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub aManager.setRepeating(AlarmManager.RTC_WAKEUP, 0, 5000, pi); start.setEnabled(false); stop.setEnabled(true); Toast.makeText(MainActivity.this, "壁纸定时更换启动成功", 5000).show(); } }); stop.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub start.setEnabled(true); stop.setEnabled(false); aManager.cancel(pi); } }); } }
    2014-06-03下载
    积分:1
  • 多媒体连接
    多媒体连接,将android中的音乐,相机,视频等多媒体接口通过一个应用进行显示
    2022-02-07 23:20:16下载
    积分:1
  • 移动GPS定位
    利用androids studio2.1平台,实现获取经纬度坐标和海拔高度
    2022-08-26 12:30:24下载
    积分:1
  • android textview 自动换行 例子
    textview 自动换行
    2014-09-16下载
    积分:1
  • RatingBarSample
    Android RatingBar投票条实例,玩Android手机的朋友可能就见到过,用手机访问门户网站经常会见到投票功能,投票之后用彩条来显示投票的结果,这个实例就是实现投票彩条,有兴趣的不妨下载源码一试。(The Android RatingBar Voting instance friends play Android phone may have seen, often using mobile phones to access the portal will see the voting function, after the voting, with the color bar to display the results of the vote, this instance is to achieve voting color bar, interested may wish to download the source code a try.)
    2013-04-09 19:08:54下载
    积分:1
  • 五子棋android
    android五子棋游戏源码,人机对战五子棋。五子棋AI
    2022-05-22 10:38:54下载
    积分:1
  • USb serial examples
    用android实现usb主机通信的示例代码。
    2022-03-10 13:39:09下载
    积分:1
  • kgxbpd
    This is the source code for Hata radio propagation model div hr()
    2018-04-17 16:48:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载