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

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

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

    Calvin's Tech Space

    成于堅忍,毀于浮躁

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

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

    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.

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

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

    posted on 2010-01-31 19:34 calvin 閱讀(471) 評論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 婷婷综合缴情亚洲狠狠尤物| 色播在线永久免费视频| 久久国产成人精品国产成人亚洲| 亚洲乱码av中文一区二区| 毛片基地免费观看| 亚洲天堂男人影院| 浮力影院第一页小视频国产在线观看免费| 亚洲国产精品xo在线观看| 成熟女人牲交片免费观看视频| 亚洲成a人片7777| 好爽…又高潮了免费毛片| 亚洲色成人WWW永久在线观看| 免费无码又黄又爽又刺激| 亚洲色成人网站WWW永久四虎 | 亚洲精品永久www忘忧草| 免费成人激情视频| 亚洲国产成人久久精品大牛影视| 香蕉视频在线观看免费国产婷婷| 国产亚洲视频在线观看网址 | 亚洲国产精品无码中文字| 日韩人妻无码精品久久免费一| 亚洲黄网在线观看| 日韩免费观看的一级毛片| 免费精品久久久久久中文字幕| 亚洲av永久无码精品国产精品| 亚洲一区在线免费观看| 亚洲AV无码一区二区大桥未久| 日本亚洲国产一区二区三区| 亚洲黄色免费网址| 亚洲aⅴ天堂av天堂无码麻豆| 亚洲精品国产高清不卡在线| 久操免费在线观看| 亚洲狠狠婷婷综合久久| 怡红院亚洲怡红院首页| 国产成人精品免费视频网页大全 | 麻豆69堂免费视频| 亚洲久本草在线中文字幕| 日韩视频免费在线| 亚洲伊人久久大香线蕉影院| 91亚洲精品自在在线观看| 国产曰批免费视频播放免费s|