标签 android 下的文章

前言

阅读本文你需要:
基础的java知识 √
基础Android知识

教程思路

我们将创建一个 有 输入框(EditText) 和 按钮(Button) 的界面,
用户在输入框输入文字, 点击按钮后,程序将保存文本,
用户退出程序, 重新打开时依旧有上次输入的内容

让我们开始吧

主程序

创建一个SharedPreferences.

SharedPreferences sharedPreferences = getSharedPreferences("settings", Context.MODE_PRIVATE);

你可以看到我们在后面跟了一个get的方法,
第一个值是要获取的Preferences的名字, 我们随便起一个名字就好, 这里我们写 settings
然后第二个值是模式mode, 这里我们先默认PRIVITE

你的 MainActivity.java 现在应该和下面差不多

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        SharedPreferences sharedPreferences = getSharedPreferences("settings", Context.MODE_PRIVATE);
    }
}

做一个自己的布局文件

我们在我们的主 Activity 的布局里面添加一个 EditText 编辑框, id 为 editText1,
然后在下面增加一个 Button 按钮, id 为 button1,
( 教程使用垂直的LinearLayout )

你的布局文件(/res/layout/activity_main.xml)大概像这样:

<LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:padding="24dp"
            android:orientation="vertical">

            <EditText
                android:id="@+id/editText1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:ems="10"
                android:inputType="textPersonName"
                android:text="" />
            <Button
                android:id="@+id/button1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="保存" />
</LinearLayout>

(善用Android Studio, 可以直接拖动添加部件)

完善主程序代码

接下来,我们需要给按钮增加一个监听事件, 当按钮被点击就能做些事情了,

    Button button_save = (Button)findViewById(R.id.button1);
    button_save.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
        }
    });

当然我们的IDE会提示,所以直接回车很省力

在onClick里面,我们要输入的就是 让程序获取EditText 文本框里的内容并保存到SharedPreference里的 代码了
写好以后大概就是这样的

    Button button_save = (Button)findViewById(R.id.button1);
    button_save.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
               EditText editText=(EditText)findViewById(R.id.editText1);
               String someText=String.valueOf(editText.getText());
               //someText的值就是editText的内容了
               sharedPreferences.edit().putString("text", someText).apply();
               //编辑,放入字符串,应用 ( 学好英语,理解方法的意思哈哈哈 )
        }
    });

接下来我们需要让程序加载时就会显示我们原先保存的字符
所以我们在稍微上面点的位置加入一行,

EditText editText_again=(EditText)findViewById(R.id.editText1);
editText_again.setText(sharedPreferences.getString("text",""));

(因为开始的时候可能没有editText这个变量..所以我们需要再把它找一遍)
然后就能在程序开始的时候取得我们保存的字符,如果没有获取到,就默认为空
现在你的主程序 MainActivity.java 看起来应该像这样:

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        SharedPreferences sharedPreferences = getSharedPreferences("settings", Context.MODE_PRIVATE);

        EditText editText_again=(EditText)findViewById(R.id.editText1);
        editText_again.setText(sharedPreferences.getString("text",""));

        Button button_save = (Button)findViewById(R.id.button1);
        button_save.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                   EditText editText=(EditText)findViewById(R.id.editText1);
                   String someText=String.valueOf(editText.getText());
                   //someText的值就是editText的内容了
                   sharedPreferences.edit().putString("text", someText).apply();
                   //编辑,放入字符串,应用 ( 学好英语,理解方法的意思哈哈哈 )
            }
        });
    }
}

完成

运行程序, 输入文字, 点击保存, 关闭程序
再次打开程序, 会看到我们的文字依旧在那里!
这就是 SharedPreferences 的简单使用了!教程结束!

(推荐看这篇文章:QQ服务,活动项表单)

QQ调教 V9 软件版本:6.3.1
更新时间 2016.5.2 11:59
去除头像挂件: 删除tencent/MobileQQ/.pendant 并新建.pendant[文件]

去除签名气泡: 删除tencent/MobileQQ/.signatureTemplate 并新建.signatureTemplate[文件]

去除聊天气泡:/data/data/com.tencent.mobileqq/files/bubble_info文件夹权限调
0,删除文件夹内文件

去掉荐表情包
/data/data/com.tencent.mobileqq/files 把这个目录下的这三个文件清空,并取消其写入权限。
recommemd_emotion_file_QQ号
magic_promotion_QQ号.json
recommendEmotion.json

去除QQ启动图片(会把各种节日的图片一并去掉)
/data/data/com.tencent.mobileqq/files/splashpic/删除这个目录所有文件,并去掉文件夹写入的权限。

去除QQ字体
把tencent/mobileQQ目录中的font_info文件夹删掉,并新建一个font_info 文件 注意是文件、文件、文件,重要的事情说三遍!

彻底干掉QQwifi攻略
1.MyAndroidTools QQ中搜索 关键字 wifi 全部禁用。
2./data/data/com.tencent.mobileqq中
app_qqwifi_dir
app_qqwifi_jar_storage_name
app_qqwifi_jarinfo_storage_name
这三个文件夹清空并去掉其写入权限。
3.同目录下的app_installed_plugin文件夹内,找到含有找到含有QQwifi的app和文件全部删掉。这个文件夹是QQ的插件,里面包括了阅读、漫画等功能,如果想精简也是同理。记住修改完去掉其 写入 权限。

app_installed_plugin内容翻译表
qzone——qq空间
QQfav——QQ收藏
comic——漫画
qlink——QQ链接推送
qqhotspot——qq热点
qqreader——qq阅读
qqwifi——就是上面的wifi
secmsg——悄悄话
dataline——电脑手机互传文件
qwallet——qq钱包
先去myandroidtools全称搜索关键词,比如qq阅读就搜read,之后全选,禁用。
再把文件夹中得插件删掉,禁用写入权限。

去自定义主题
删除tencent/MobileQQ/custom_background文件夹,并新建一个同名文件。

去聊天提示蓝字
把目录下的/data/data/com.tencent.mobileqq/files/SensMsgTipsCfg.xml 清空并取消掉其写入权限

去个性签名表情,这个慎用,像我这样看着花里胡哨就烦的就用吧。
把目录下的/data/data/com.tencent.mobileqq/files/ rich_status.xml清空并取消掉其写入权限

去 掉 表情功能:/data/data/com.tencent.mobileqq/files/animConfig/ 删除所有文件内文件并去掉 写入 权限。

去空间红点
http://coolapk.com/r/29ix
把qq空间关闭
在按照插件把qzone删掉

去来电动画
删除tencent/MobileQQ/funcall并新建funcall[文件]

去主题等 免费 热 字样
删除tencent/MobileQQ/avatarPendantIcons并新建avatarPendantIcons[文件]

取消头像缓存
删除tencent/MobileQQ/head/_stranger并新建_stranger[文件]

去来电铃声
删除tencent/MobileQQ/rbt并新建rbt[文件]

(推荐看这篇文章:禁用QQ的一些东西)

[QQ活动项、服务和接收器整理 V2.0]
[基于QQ 6.3版本整理,也可以用于QQ 5.x+6.x]
[请根据个人需要来决定禁用/启用!]
〉一、活动项(不包括一些难以触发或不常见的活动项)
1、“动态”页面
①自定义(右上角“更多”)
com.tencent.mobileqq.activity.LebaEnabledPluginsActivity(已开启的功能)
com.tencent.mobileqq.activity.LebaListMgrActivity(更多)
com.tencent.biz.lebasearch.LebaSearchPluginManagerActivity(功能详情页面)
②搜索栏
com.tencent.biz.lebasearch.LebaSearchMoreInfoActivity
com.tencent.biz.lebasearch.SearchActivity(禁用后动态上方搜索栏点击无效)
③应用宝
com.tencent.open.appcenter.QZoneAppCenterActivity(主活动项)
com.tencent.open.applist.QZoneAppListActivity(同上,禁用后会在动态页面隐藏)
com.tencent.open.appcenter.QZoneAppWebViewActivity
com.tencent.open.applist.WebAppActivity
④附近的群
com.tencent.mobileqq.troop.activity.NearbyTroopsActivity(主活动项,禁用后会在动态页面隐藏)
com.tencent.mobileqq.troop.activity.NearbyTroopsLocationActivity
com.tencent.biz.troop.activity.TroopNearByBigMapActivity
⑤热聊
com.tencent.mobileqq.activity.ChatSettingForHotChat
com.tencent.mobileqq.activity.FakeHotChatBrowserActivity
com.tencent.mobileqq.activity.HotChatAnnounceActivity
com.tencent.mobileqq.activity.HotChatDemoActivity
com.tencent.mobileqq.dating.HotChatFlashPicActivity(闪照)
com.tencent.mobileqq.hotchat.HotChatMemberListActivity(成员列表)
⑥游戏
com.tencent.gamecenter.activities.GameCenterActivity(主活动项,禁用后会在动态页面隐藏)
com.tencent.mobileqq.cooperation.InstallGameActivity
⑦阅读
com.tencent.mobileqq.activity.BookShareAdviceEditActivity
cooperation.qqreader.QRBridgeActivity
cooperation.qqreader.QRHardWareActivity
cooperation.qqreader.QRPluginProxyActivity(主活动项,禁用后在动态页面隐藏)
cooperation.qqreader.QRReaderPageProxyActivity
cooperation.qqreader.QRWebBrowserActivity
⑧动漫
cooperation.comic.VipComicJumpActivity
cooperation.comic.VipComicLandReaderProxyActivity
cooperation.comic.VipComicPlayProxyActivity
cooperation.comic.VipComicPortraitReaderProxyActivity
cooperation.comic.VipComicProxyActivity(主活动项,禁用后在动态页面隐藏)
cooperation.comic.VipComicProxyActivity$SingleTop
cooperation.comic.VipComicTranslucentBrowserActivity
⑨看点
cooperation.qqhotspot.QQHotSpotBridgeActivity
cooperation.qqhotspot.QQHotSpotProxyActivity(主活动项,禁用后在动态页面隐藏,消息页面点击无效)
cooperation.qqhotspot.QQHotSpotProxyActivity$SingleTop
2、可选组件(可配合之前我发的插件说明)
①好友动态(禁用后点击无效,但不能阻止新消息推送,仍可能出现“小红点”)
cooperation.qzone.CrashNotificationActivity
cooperation.qzone.PluginDownloadActivity
com.tencent.mobileqq.activity.QZoneDiscoverActivity
com.qzone.feed.ui.activity.QZoneFriendFeedActivity
cooperation.qzone.QZoneVideoDownloadActivity
cooperation.qzone.QzoneCommonProxyActivity
cooperation.qzone.QzoneFeedsPluginProxyActivity(主活动项:好友动态瀑布流)
cooperation.qzone.QzoneGPUPluginProxyActivity(主活动项:我的空间、其他页面显示)
cooperation.qzone.QzoneNOGPUPluginProxyActivity(同上)
cooperation.qzone.QzoneOrientationPluginProxyActivity
com.tencent.mobileqq.activity.QzonePhotoModeActivity
cooperation.qzone.QzonePictureExtPluginProxyActivity(图片编辑)
cooperation.qzone.QzonePicturePluginProxyActivity(图片查看,禁用后无法打开图片)
cooperation.qzone.QzonePluginProxyActivity(主活动项,禁用后会使好友动态加载失败)
cooperation.qzone.QzonePublishMoodProxyActivity(发表说说)
cooperation.qzone.QzoneTransNoTitlePluginProxyActivity
cooperation.qzone.QzoneTransWithKeyboardPluginProxyActivity(快速评论)
cooperation.qzone.QzoneTranslucentGPUPluginProxyActivity(小视频播放)
cooperation.qzone.QzoneTranslucentPluginProxyActivity(同上)
cooperation.qzone.video.QzoneVideoPluginProxyActivity(主活动项:小视频)
cooperation.qzone.TranslucentActivity(同上)
cooperation.qzone.debug.ServerSetting
cooperation.qzone.debug.UploadServerSetting
cooperation.qzone.debug.QZoneStatisticsSettingActivity
②QQ收藏(禁用后收藏按钮点击无效)
cooperation.qqfav.globalsearch.FavoriteSearchActivity
cooperation.qqfav.widget.LocationDetailActivity
cooperation.qqfav.widget.QfavJumpActivity
cooperation.qqfav.QfavPluginProxyActivity(主活动项)
cooperation.qqfav.QfavPluginProxyActivity$DetailProxy
cooperation.qqfav.QfavPluginProxyActivity$ForResult
cooperation.qqfav.QfavPluginProxyActivity$ImageViewer(图片预览)
cooperation.qqfav.QfavPluginProxyActivity$ScreenOrientationProxy
cooperation.qqfav.QfavPluginProxyActivity$SingleTop
③QQ钱包(禁用后影响收发红包)
cooperation.qwallet.open.AppPayActivity
cooperation.qwallet.plugin.proxy.BuscardLoadNFCProxyActivity
cooperation.qwallet.open.OpenPayActivity
cooperation.qwallet.virtual.QChongLotteryBrowser
cooperation.qwallet.plugin.QWalletLockScreenActivity
cooperation.qwallet.plugin.proxy.QWalletNFCProxyActivity(NFC支付)
cooperation.qwallet.plugin.QWalletPluginProxyActivity(主要活动项)
com.tencent.mobileqq.activity.qwallet.SendHbActivity(红包发送)
com.tencent.mobileqq.activity.qwallet.TenpayJumpActivity
com.tencent.mobileqq.activity.qwallet.TransactionActivity
④QQ WiFi(如需彻底禁用,请见文尾倒数第二段)
cooperation.qqwifi.QQWIFIMapProxyActivity
cooperation.qqwifi.QQWiFiConnectProxyActivity
cooperation.qqwifi.QQWiFiPluginInstallActivity
cooperation.qqwifi.QQWiFiProxyActivity(主活动项,禁用后点击无效)
⑤群作业
cooperation.troop_homework.outer.TroopHWCommitActivity
cooperation.troop_homework.outer.TroopHWEmptyActivity
cooperation.troop_homework.outer.TroopHWImagePreviewActivity(图片预览)
cooperation.troop_homework.outer.TroopHWRecordActivity(录音)
cooperation.troop_homework.outer.TroopHWRecordArrangeActivity
cooperation.troop_homework.TroopHomeworkPluginInstallerActivity
cooperation.troop_homework.TroopHomeworkProxyActivity(主活动项)
⑥群动态
com.tencent.biz.pubaccount.troopbarassit.SubscriptFeedsActivity(群动态发表)
com.tencent.biz.troopplugin.TroopBarProxyActivity(主活动项)
com.tencent.mobileqq.troop.activity.TroopBarPublishActivity
com.tencent.mobileqq.troop.activity.TroopBarPublishBarSelectActivity
com.tencent.mobileqq.troop.activity.TroopBarPublishLocationSelectActivity
com.tencent.mobileqq.troop.activity.TroopBarReplyActivity
com.tencent.mobileqq.troop.activity.TroopBarShareActivity
com.tencent.mobileqq.troop.activity.TroopBarUploadManagerActivity
⑦智能设备(位于联系人-我的设备)
com.tencent.device.bind.DevicePluginDownloadActivity
cooperation.smartdevice.SmartDevicePluginDownloadActivity
cooperation.smartdevice.SmartDevicePluginProxyActivity(主活动项,禁用后点击无效)
⑧NFC及相关
cooperation.qwallet.plugin.proxy.BuscardLoadNFCProxyActivity
cooperation.buscard.BuscardPluginInstallActivity(部分城市的公交卡充值)
⑨微云
cooperation.weiyun.AlbumBackupLaunchProxyActivity
cooperation.weiyun.AlbumBackupProxyActivity(照片备份)
⑩水印相机
cooperation.zebra.WatermarkPluginProxyActivity
⑩①悄悄话
cooperation.secmsg.SecMsgPluginProxyActivity(主活动项)
cooperation.secmsg.SecMsgPluginProxyTransparentActivity
⑩②电话黄页(禁用后仍会在电话页面显示)
cooperation.huangye.HYBlankActivity
cooperation.huangye.HYBridgeActivity
cooperation.huangye.HYPluginProxyActivity(主活动项)
cooperation.huangye.HYPluginProxyActivity$SingleTop
com.tencent.biz.huangye.QQYPQRCodePreviewActivity
⑩③QQ数据线(手机电脑互传文件)
com.dataline.activities.DLFilesViewerActivity
com.dataline.activities.DLRouterActivity
com.dataline.activities.DLRouterSessionInfoActivity
com.dataline.activity.DLTestMain
cooperation.qqdataline.DatalinePluginProxyActivity(主活动项)
cooperation.qqdataline.DatalinePluginProxyActivity$SingleTop
com.dataline.activities.LiteActivity(主活动项:我的电脑)
com.dataline.activities.LiteAdvanceActivity(右上角“详细资料”)
com.dataline.mpfile.LiteMpFileActionListActivity
com.dataline.mpfile.LiteMpFileDownloadActivity
com.dataline.mpfile.LiteMpFileFailedActivity com.dataline.mpfile.LiteMpFileFileListActivity
com.dataline.mpfile.LiteMpFileMainActivity
com.dataline.mpfile.LiteMpFileUploadActivity
com.dataline.activities.LiteMutiPicViewerActivity(图片预览)
com.dataline.activities.LiteVideoActivity(视频传送)
com.dataline.activities.LiteWifiphotoActivity(照片传送)
com.dataline.activities.PrinterActivity(远程打印)
com.dataline.activities.PrinterOptionActivity
com.dataline.activities.PrinterSubOptionActivity
com.dataline.activities.RouterAdvanceActivity
cooperation.qqdataline.DatalineBridgeActivity(数据线插件下载)
⑩④文件近传
cooperation.qlink.QlinkAgentActivity
com.tencent.qlink.activity.QlinkApGuidelineActivity
cooperation.qlink.QlinkBridgeActivity
com.tencent.qlink.activity.QlinkDefaultActivity
cooperation.qlink.QlinkDialogActivity
com.tencent.qlink.widget.QlinkDialogWrapper
com.tencent.qlink.activity.QlinkDiscoverActivity
com.tencent.qlink.activity.QlinkGuidePageActivity
cooperation.qlink.QlinkPluginProxyActivity(主要活动项)
com.tencent.qlink.activity.QlinkProxyActivity
com.tencent.qlink.activity.QlinkSearchActivity
cooperation.qlink.QlinkShareJumpActivity(分享-发送给好友(免流量))
cooperation.qlink.QlinkStandardDialogActivity
com.tencent.qlink.activity.QlinkTransferActivity
⑩⑤照片编辑
com.tencent.mobileqq.pluginproxy.PhotoEditPluginActivity
cooperation.photoedit.PhotoEditPluginProxyActivity(主活动项)
cooperation.photoplus.PhotoPlusBridgeActivity
cooperation.photoplus.PhotoPlusPluginProxyActivity(主活动项)
⑩⑥来电(腾讯旗下的免费回拨电话)
cooperation.dingdong.DingdongPluginBridgeActivity
cooperation.dingdong.DingdongPluginProxyActivity(主活动项)
cooperation.dingdong.DingdongPluginProxyActivity$DingActivity
cooperation.dingdong.DingdongPluginProxyActivity$ApprovalActivity
cooperation.dingdong.OfficeOpenBrowserActivity
⑩⑦兴趣号(禁用后在消息页面点击无效)
cooperation.readinjoy.ReadInJoyPluginInstallActivity
cooperation.readinjoy.ReadInJoyProxyActivity(主活动项)
cooperation.readinjoy.ReadInJoyProxyActivity$ReadInJoyLandscapeActivity
cooperation.readinjoy.ReadInJoyProxyActivity$ReadInJoyStartActivity
com.tencent.biz.pubaccount.readinjoy.activity.ReadInJoyAccountDetailActivity
com.tencent.biz.pubaccount.readinjoy.activity.ReadInJoyArticleDetailActivity
com.tencent.biz.pubaccount.readinjoy.activity.ReadInJoyFeedsActivity
⑩⑧新鲜事(禁用后在消息页面点击无效,且删除消息后不再出现)
com.tencent.mobileqq.freshnews.FreshNewsDetailActivity
com.tencent.mobileqq.activity.FreshNewsEditActivity(编辑分类)
com.tencent.mobileqq.freshnews.MyFreshNewsActivity(主活动项)
com.tencent.mobileqq.freshnews.topic.NearbyTopicFeedActivity(附近的消息)
⑩⑨C2B
cooperation.c2b.C2BBrowserActivity
cooperation.c2b.C2BScanCodeActivity
cooperation.c2b.C2BTakePhotoActivity
cooperation.c2b.C2BUploadFileActivity
cooperation.c2b.C2BUploadImageActivity
cooperation.c2b.C2BVideoPreviewActivity
②⑩热点(禁用后点击,且不再出现)
cooperation.qqhotspot.QQHotSpotBridgeActivity
cooperation.qqhotspot.QQHotSpotProxyActivity(主活动项)
cooperation.qqhotspot.QQHotSpotProxyActivity$SingleTop
②⑩①短视频
com.tencent.mobileqq.activity.shortvideo.MX3ShortVideoOpenGlActivity
com.tencent.mobileqq.activity.shortvideo.SendVideoActivity(发送短视频)
com.tencent.mobileqq.activity.shortvideo.ShortVideoOpenGlActivity
com.tencent.mobileqq.activity.shortvideo.ShortVideoPlayActivity(短视频播放)
com.tencent.mobileqq.activity.shortvideo.ShortVideoPlayerActivity(同上)
com.tencent.mobileqq.activity.shortvideo.ShortVideoPreviewActivity(短视频预览)
3、可选基础功能
①语音/视频通话(这些活动项适时运行,如果需要这些功能无需禁用;禁用后可以防止手滑碰到“语音/视频通话”)
com.tencent.av.ui.AVActivity(主活动项)
com.tencent.av.ui.AVLoadingDialogActivity
com.tencent.arrange.ui.AVMeetingActivity(电话会议)
com.tencent.av.ui.CallbackWaitingActivity
com.tencent.av.ui.CallbackWaitingActivityExt
com.tencent.av.gaudio.DoubleVideoGuideActivity
com.tencent.av.ui.GAudioMembersCtrlActivity
com.tencent.av.gvideo.GVideoHallBrowserActivity
com.tencent.av.ui.GVideoQQBrowserActivity
com.tencent.av.gaudio.GaActivity
com.tencent.av.gaudio.GaInviteDialogActivity
com.tencent.av.gaudio.GaInviteLockActivity
com.tencent.av.guild.GuildMultiActivity
com.tencent.av.ui.IvrQRScanBrowser
com.tencent.av.ui.IvrScanBarActivity
com.tencent.av.ui.MultiIncomingCallsActivity
com.tencent.av.ui.MultiPstnCallbackFinishDialogActivity
com.tencent.av.ui.MultiVideoEnterPageActivity
com.tencent.av.ui.MultiVideoMembersListviewAvtivity
com.tencent.av.ui.PSTNC2CActivity
com.tencent.av.utils.PopupDialog
com.tencent.av.utils.PopupDialogQQSide
com.tencent.av.random.ui.RandomDoubleActivity
com.tencent.av.random.ui.RandomMultiActivity
com.tencent.av.smallscreen.SmallScreenDialogActivity
com.tencent.av.ui.SysCallTransparentActivity
com.tencent.av.ui.VChatActivity
com.tencent.av.ui.VideoInviteFull
com.tencent.av.ui.VideoInviteLock
com.tencent.mobileqq.vipav.VipFunCallPreviewActivity(来电动画)
②个性装扮(如需禁用气泡、字体等装扮,请见文尾倒数第二段)
com.tencent.mobileqq.activity.IndividuationSetActivity(主要活动项 禁用后侧栏“个性装扮”点击无效)
com.tencent.mobileqq.vas.AvatarPendantMarketActivity(头像挂件)
com.tencent.mobileqq.vas.ChatBackgroundMarketActivity(聊天背景)
com.tencent.mobileqq.activity.QQVasH5PayBrowserActivity
com.tencent.mobileqq.theme.diy.ThemeDIYActivity(DIY主题)
com.tencent.mobileqq.activity.ThemeDownloadAndSetActivity
com.tencent.mobileqq.activity.ThemeNoviceGuideActivity
com.tencent.mobileqq.activity.ThemeSwitchDlgActivity
③个性签名
com.tencent.mobileqq.richstatus.ActionGridActivity(“你在做什么”)
com.tencent.mobileqq.richstatus.ActionListActivity(同上)
com.tencent.mobileqq.richstatus.ActionUrlActivity
com.tencent.mobileqq.richstatus.EditActivity(主活动项,禁用后侧栏“个性签名”点击无效)
com.tencent.mobileqq.richstatus.MovieDetailActivity(电影信息)
com.tencent.mobileqq.richstatus.StatusHistoryActivity(历史签名)
④附近(禁用后不会受到“附小近”消息,且点击无效)
com.tencent.mobileqq.nearby.interestTag.ChooseInterestTagActivity
com.tencent.mobileqq.nearby.myvistor.MyVistorListActivity
com.tencent.mobileqq.activity.NearPeopleActivity(主活动项:附近的人)
com.tencent.mobileqq.activity.NearPeopleFilterActivity
com.tencent.mobileqq.activity.NearbyBaseActivity
com.tencent.mobileqq.nearby.NearbyFlowerInfoActivity
com.tencent.mobileqq.nearby.guide.NearbyGuideActivity
com.tencent.mobileqq.nearby.profilecard.NearbyPeopleProfileActivity
com.tencent.mobileqq.nearby.picbrowser.NearbyPicBrowserActivity
com.tencent.mobileqq.nearby.picbrowser.NearbyProfilePicBrowserActivity
com.tencent.mobileqq.activity.qqcard.NearbyQQCardActivity
com.tencent.mobileqq.nearpeople.ranking.ShowLoveEditorActivity
⑥约会
com.tencent.mobileqq.dating.DateEventMsgActivity
com.tencent.mobileqq.dating.DatingDestinationActivity
com.tencent.mobileqq.dating.DatingDetailActivity
com.tencent.mobileqq.dating.DatingFeedActivity
com.tencent.mobileqq.dating.DatingFilterActivity
com.tencent.mobileqq.dating.DatingOthersActivity
com.tencent.mobileqq.dating.DatingTopListActivity
com.tencent.mobileqq.dating.DatingUserCenterActivity
com.tencent.mobileqq.dating.HotChatFlashPicActivity
com.tencent.mobileqq.dating.MsgBoxListActivity(主活动项)
com.tencent.mobileqq.dating.NearbyTransitActivity
com.tencent.mobileqq.dating.PublicDatingActivity
com.tencent.mobileqq.dating.SayHelloMsgListActivity
⑦面对面
com.tencent.mobileqq.activity.selectmember.CreateFaceToFaceDiscussionActivity
com.tencent.mobileqq.activity.Face2FaceActivity(主活动项,禁用后点击无效)
com.tencent.mobileqq.facetoface.Face2FaceAddFriendActivity
⑧大表情(如需彻底禁用,请见文尾倒数第二段)
com.tencent.mobileqq.activity.FunnyFaceHomePageActivity
com.tencent.mobileqq.activity.EmosmActivity(表情商店)
com.tencent.mobileqq.activity.EmosmDetailActivity
com.tencent.mobileqq.activity.FavEmosmManageActivity
⑨公众号
com.tencent.biz.pubaccount.AccountDetailActivity(右上角-公众号详情)
com.tencent.biz.pubaccount.PublicAccountBrowser(历史消息)
com.tencent.biz.pubaccount.troopbarassit.SubscriptFeedsActivity
com.tencent.biz.pubaccount.subscript.SubscriptFeedsActivity
com.tencent.biz.pubaccount.subscript.SubscriptFullRecommendActivity
com.tencent.biz.pubaccount.PublicAccountBrowser
com.tencent.mobileqq.activity.PublicAccountListActivity(联系人-公众号)
com.tencent.mobileqq.search.activity.PublicAcntSearchActivity
⑩图片/相册
com.tencent.mobileqq.activity.photo.AlbumListActivity(选择相册)
com.tencent.mobileqq.activity.photo.CameraPreviewActivity(拍摄照片预览)
com.tencent.mobileqq.activity.photo.PhotoCropActivity
com.tencent.mobileqq.activity.photo.PhotoCropForPortraitActivity
com.tencent.mobileqq.activity.photo.PhotoListActivity(图片选择器)
com.tencent.mobileqq.activity.PhotoListActivity(同上)
com.tencent.mobileqq.activity.PhotoPreview(图片预览)
com.tencent.mobileqq.activity.photo.PhotoPreviewActivity(同上)
com.tencent.mobileqq.activity.PhotoSelectActivity
com.tencent.mobileqq.activity.photopreview.SecretFilePreviewActivity
com.tencent.mobileqq.activity.photo.SendPhotoActivity
com.tencent.mobileqq.activity.photopreview.SendSecretFileActivity
⑩①多人视频通话
cooperation.groupvideo.GVideoMemberProxyActivity
cooperation.groupvideo.GVideoPluginInstallerActivity
cooperation.groupvideo.GVideoProxyActivity(主活动项)
cooperation.groupvideo.GVideoSmallScreenDialog(视频浮窗)
⑩②购物号(禁用后点击无效,且不再出现)
com.tencent.biz.pubaccount.ecshopassit.EcShopAssistantActivity
4、其他项目
①文件关联/跳转(禁用以阻止文件管理器中的文件被QQ关联)
com.tencent.mobileqq.activity.ContactSyncJumpActivity
com.tencent.mobileqq.activity.JumpActivity
com.tencent.mobileqq.activity.qfileJumpActivity
②安全检测(手机管家推广)
com.tencent.mobileqq.activity.SecurityDetectActivity(安全检测)
com.tencent.mobileqq.activity.SecurityLoginDetectActivity
com.tencent.mobileqq.activity.SecurityPickproofActivity
com.tencent.mobileqq.activity.SecurityProtectActivity(手机防盗)
com.tencent.securemodule.ui.TransparentActivity
com.tencent.mobileqq.activity.QQSpaceCleanActivity(深度清理)
③红包相关
com.tencent.mobileqq.activity.PayBridgeActivity
com.tencent.mobileqq.activity.qwallet.TenpayJumpActivity
com.tencent.mobileqq.activity.HongbaoShowerActivity(打开红包界面)
com.tencent.mobileqq.activity.qwallet.SendHbActivity(红包发送界面)
④人脉圈(已弃用)
com.tencent.mobileqq.activity.contact.CircleMemberListActivity
com.tencent.mobileqq.circle.ui.FriendListActivity
com.tencent.mobileqq.circle.ui.GroupListActivity
com.tencent.mobileqq.circle.ui.LaunchActivity
com.tencent.mobileqq.circle.ui.SettingActivity
⑤错误报告及分析(常见于测试版)
com.tencent.mobileqq.debug.DebugActivity
com.tencent.mobileqq.debug.MsgSearchSwitchActivity
com.tencent.mobileqq.debug.RedTestActivity
com.tencent.mobileqq.debug.RedTestInfoActivity
com.tencent.mobileqq.redtouch.NumRedMsgTestActivity
com.tencent.mobileqq.analysistools.AnalysisResultActivity
com.tencent.mobileqq.analysistools.AnalysisToolsMainActivity
⑥插件管理(已弃用)
com.tencent.mobileqq.activity.PlugDetailActivity
com.tencent.mobileqq.activity.PlugMgrActivity
⑦送花(听说要用Q币买…)
com.tencent.mobileqq.activity.bless.BlessActivity(主活动项)
com.tencent.mobileqq.activity.BlessPTVActivity
com.tencent.mobileqq.activity.bless.BlessResultActivity
com.tencent.mobileqq.activity.bless.BlessSendTextActivity
com.tencent.mobileqq.activity.bless.BlessTypeActivity
⑧二维码扫描
com.tencent.biz.qrcode.activity.AddFriendScannerActivity
com.tencent.biz.qrcode.activity.LoginManagerActivity
com.tencent.biz.qrcode.activity.QRCardActivity
com.tencent.biz.qrcode.activity.QRDisplayActivity(我的二维码)
com.tencent.biz.qrcode.activity.QRJumpActivity
com.tencent.biz.qrcode.activity.QRLoginActivity
com.tencent.biz.qrcode.activity.ScannerActivity(主活动项)
⑨富媒体流(视频相关)
com.tencent.mobileqq.activity.richmedia.FlowCameraActivity2
com.tencent.mobileqq.activity.richmedia.FlowCameraPtvActivity2
com.tencent.mobileqq.activity.richmedia.MX3FlowCameraActivity
5、QQ主界面(禁用后QQ将无法直接启动,可用于隐藏应用)
com.tencent.mobileqq.activity.SplashActivity(主活动项)
〉二、服务
1、消息接收(重要服务)
com.tencent.mobileqq.msf.service.MsfService(禁用后无法接收消息,影响正常使用)
2、用户界面缓存
com.tencent.mobileqq.app.CoreService(毒瘤服务,禁用后会使QQ在从“最近任务”清除后彻底退出)
com.tencent.mobileqq.app.CoreService$KernelService(毒瘤服务,禁用后可能会避免因CM主题导致的闪退)
3、音视频(如果需要语音/视频通话,请勿禁用)
com.tencent.av.service.AVServiceForQQ
com.tencent.av.service.QQServiceForAV
com.tencent.av.smallscreen.SmallScreenService
com.tencent.av.service.UtilsServiceForAV
com.tencent.av.smallscreen.PstnSmallScreenService
4、好友动态
cooperation.qzone.QzonePictureViewerProxyService(禁用后无法查看图片)
cooperation.qzone.video.QzoneVideoPluginProxyService(小视频)
cooperation.qzone.QzonePluginProxyService(这个服务在QQ启动后预加载QQ空间,如果QQ在启动时经常无响应,请尝试禁用这个服务,但“与我相关”推送可能会受到影响)
cooperation.qzone.remote.logic.QzoneWebPluginProxyService(作用类似上面那个)
cooperation.qzone.QzonePluginPublishQueueProxyService(禁用后会影响说说发表)
com.tencent.mobileqq.pluginsdk.ipc.PluginRemoteService$Sub1(和图片编辑有关)
com.tencent.mobileqq.pluginsdk.ipc.PluginRemoteService$Sub2(禁用后会导致无法发表图片说说)
5、应用和更新下载
com.tencent.tmdownloader.TMAssistantDownloadService(禁用后可防止QQ自动下载安装包和TBS内核)
6、漫游消息
com.tencent.mobileqq.emosm.web.MessengerService(禁用后无法设置表情/消息漫游)
7、QQ WiFi
cooperation.qqwifi.QQWiFiAssistService
cooperation.qqwifi.QQWiFiAutoJumpService
8、可选插件(可参照前文)
cooperation.smartdevice.ipc.BluetoothLeProxyService(智能设备连接)
cooperation.smartdevice.ipc.SmartDeviceProxyService(同上)
cooperation.qqdataline.ipc.DatalineProxyService(我的电脑)
cooperation.huangye.ipc.HYProxyService(电话黄页)
cooperation.photoplus.PhotoplusPluginProxyService(照片编辑)
cooperation.qqhotspot.ipc.QQHotSpotProxyService(热点)
cooperation.qlink.QlinkPluginProxyService(文件近传)
cooperation.secmsg.SecMessagerService(悄悄话)
cooperation.troop_homework.ipc.TroopHomeworkProxyService(群作业)
cooperation.comic.VipComicProxyService(腾讯动漫)
com.tencent.mobileqq.music.QQPlayerService(音乐播放器)
9、安全登录检查
com.tencent.securemodule.impl.SecureService(腾讯的安全检查=给你的手机搜身)
10、联系人同步
com.tencent.mobileqq.contactsync.authenticator.AuthenticationService
com.tencent.mobileqq.service.contactsync.ContactSyncPluginProxyService
11、附近
com.tencent.mobileqq.nearby.ipc.ConnectNearbyProcService
12、腾讯寻找丢失儿童项目
com.tencent.device.qfind.BluetoothLeService(可禁用,蓝牙在后台的耗电量较大)
13、群视频
cooperation.groupvideo.GVideoProxyService
cooperation.groupvideo.GVideoProxyUtilService
cooperation.groupvideo.GVideoSmallScreenProxyService
14、其他
com.tencent.bitapp.pre.binder.server.Java2JniService
com.tencent.mobileqq.activity.PreloadWebService(页面预加载)
com.tencent.imageservice.ImageProcessService(图片处理)
com.tencent.biz.troop.TroopMemberApiService(获取群成员列表)
com.tencent.mobileqq.activity.photo.PeakService(图片选择和发送)
〉三、接收器
1:主要接收器
com.tencent.mobileqq.msf.core.NetConnInfoCenter(注意:多途径唤醒,禁用后可避免部分后台自启)
com.tencent.mobileqq.webprocess.WebProcessReceiver(禁用猴可能影响联网)
2、消息推送
com.tencent.mobileqq.app.PushBroadcastReceiver(禁用后影响消息接收)
mqq.app.QQBroadcastReceiver
com.tencent.mobileqq.servlet.ClearPushReceiver
cooperation.qzone.NotificationClickReceiver
com.tencent.mobileqq.app.NotificationDeleteReceiver
mqq.app.QQBroadcastReceiver
3、QQ WiFi
cooperation.qqwifi.AutoConnectReceiver
4、错误报告和信息收集
com.tencent.open.business.base.appreport.AppReportReceiver(注意:监视应用的安装和卸载)
cooperation.plugin.PluginCrashReceiver(如果精简或修改过插件就禁用)
com.tencent.mobileqq.redtouch.RedPointBroadcastReceiver
com.tencent.mobileqq.statistics.ReportReceiver
com.tencent.mobileqq.statistics.UECReceiver
com.tencent.mobileqq.activity.qwallet.report.VACDReportReceiver
5、可选插件(可参照前文)
cooperation.qzone.QzoneProxyReceiver(QQ空间)
cooperation.dingdong.DingdongPluginProxyBroadcastReceiver(来电)
cooperation.photoedit.PhotoEditProxyReceiver(图片编辑)
cooperation.qqreader.QRAioCmdReceiver(QQ阅读)
cooperation.qqfav.QfavPluginProxyReceiver(QQ收藏)
com.tencent.mobileqq.filemanager.core.UniformDownloadNfnReceiver(我的文件)
com.tencent.av.VideoMsgBroadcastReceiver(视频通话)
cooperation.comic.VipProxyPreLoadComicProcess(腾讯动漫)
cooperation.qqreader.VipProxyRreLoadReaderProcess(QQ阅读)
cooperation.weiyun.WeiyunProxyBroadcastReceiver(微云)
cooperation.qwallet.plugin.QWalletProxyReceiver(QQ钱包)
6、主题相关
com.tencent.mobileqq.statistics.UECReceiver
7、下载相关(其他)
com.tencent.open.downloadnew.common.DownloadReceiver
com.tencent.open.downloadnew.common.DownloadReceiverWebProcess
com.tencent.mobileqq.earlydownload.EarlyDownloadReceiver
com.tencent.mobileqq.filemanager.core.UniformDownloadNfnReceiver
8、不常用
com.tencent.sc.appwidget.QCenterWidgetProvider(“好友动态”桌面小部件状态更新,目前已弃用)
〉四、内容提供商(只列出可禁用项)
1、QQ收藏
cooperation.qqfav.content.FavoritesProvider
2、兴趣号

cooperation.readinjoy.content.ReadInJoyDataProvider