zoukankan      html  css  js  c++  java
  • activity-alias的使用

    activity-alias是android里为了反复使用Activity而设计的。

    当在Activity的onCreate()方法里,运行getIntent().getComponent().getClassName();得到的可能不是这个Activity的名字,有可能是别名的名字,比如:在AndroidMenifest.xml有例如以下配置:

    这个应用会在桌面上建两个进入点,即建两个能够进入TestAndroid这个Activity的快捷图标。这时getIntent().getComponent().getClassName() 得到的名字就不一样,一个是com.test.TestAndroid,一个是com.test.TestAndroidAlias。

  • 相关阅读:
    kubectl 命令详解
    codeforce344 C report
    poj3041 建图+最小顶点覆盖(最大匹配数)
    poj1637 混合欧拉回路的判定
    poj1149 最大流好题 难在建图 好题
    targan 算法模板
    poj2186 强连通分量 targan算法的应用
    poj2723 2分 + 2-sat
    poj3061 尺取法
    poj3207 2-sat基础题
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/3836540.html
Copyright © 2011-2022 走看看