<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Calvin's Tech Space

    成于堅忍,毀于浮躁

       :: 首頁 :: 聯系 :: 聚合  :: 管理
    1.使用touchlistener時,如果需要判斷MotionEvent.ACTION_DOWN或者MotionEvent.ACTION_UP時,需要對目標控件設置
    setLongClickable(true);才有效。

    2.Margin:用來設置一個元素所占空間的邊緣到相鄰元素之間的距離.
    Padding:用來設置元素內容到元素邊界的距離。

    3.Note: When installing JDK on Windows, the default is to install in the "Program Files" directory. This location will cause ant to fail, because of the space. To fix the problem, you can specify the JAVA_HOME variable like this: set JAVA_HOME=c:"Prora~1"Java". The easiest solution, however, is to install JDK in a non-space directory, for example: c:"java"jdk1.6.0_02.

    4.APK簽名的另一種方法:
    When you publish an app on the market, you need to sign it with a personal private key. The typical way to generate the key is with keytool, and then sign it with jarsigner. But this is generally a pain ;)

    The git source tree has a SignApk.jar utility that is easier to use to sign apks. You can use the following three steps to generate a key and certificate that can be used with SignApk.jar
    openssl genrsa -out key.pem 1024
    openssl x509 -req -days 9999 -in request.pem -signkey key.pem -out certificate.pem
    openssl pkcs8 -topk8 -outform DER -in key.pem -inform PEM -out key.pk8 -nocrypt


    Then, you can sign an apk using the SignApk.jar tool and the key.pk8 and certificate.pem files you created
    java -jar SignApk.jar certificate.pem key.pk8 Application.apk Application_signed.apk
    Retrieved from "http://android-dls.com/wiki/index.php?title=Generating_Keys"

    5.E/AndroidRuntime(10851): java.lang.SecurityException: Permission
    > Denial: starting Intent { act=android.intent.action.SEARCH
    > cmp=com.amazon.mp3/.client.activity.SearchActivity (has extras) } from
    > ProcessRecord{43cd17f0 10851:com.myTestApp/10054} (pid=10851,
    > uid=10054) requires null

    "requires null" means that there is no permission, but that particular
    component is not exported from the .apk, so -nobody- else can use it.

    原因在于要調用的activity在另外一個app里,不允許顯示的調用。
    解決:
    使用隱士intent或簽名

    6.查看android 自帶app的簽名
    在android.mk下有一行如LOCAL_CERTIFICATE := platform,那么簽的就是platform的名。
    簽名文件位置:android1.6r1/build/target/product/security

    posted on 2010-01-31 19:34 calvin 閱讀(470) 評論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 精品女同一区二区三区免费播放| 女人让男人免费桶爽30分钟| 亚洲熟妇av一区| 中字幕视频在线永久在线观看免费| 亚洲av成本人无码网站| 亚洲春色在线视频| 成年女人免费v片| 91精品国产亚洲爽啪在线影院| 18级成人毛片免费观看| 亚洲av无码国产精品夜色午夜| 69av免费视频| 亚洲国产一区在线观看| www.91亚洲| 日韩一级片免费观看| 久久精品国产亚洲av影院| 四虎国产精品免费久久影院| 免费黄色电影在线观看| 国产精品亚洲一区二区在线观看 | 真实国产乱子伦精品免费| 色偷偷亚洲第一综合| 亚洲视频一区在线观看| 亚洲乱码国产一区网址| 国产精品成人免费福利| 久久免费香蕉视频| 亚洲精品无码成人| 91情国产l精品国产亚洲区 | 亚洲喷奶水中文字幕电影| 亚洲一区二区三区影院| 成年午夜视频免费观看视频| 暖暖日本免费中文字幕| 美女被免费网站视频在线| 亚洲娇小性xxxx色| 亚洲视频手机在线| 中国亚洲女人69内射少妇| 日韩视频免费在线观看| 污视频网站在线免费看| 亚洲Av无码精品色午夜| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 免费A级毛片无码久久版| 亚洲一级免费视频| 久久99毛片免费观看不卡|