<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
    主站蜘蛛池模板: 亚洲色偷偷偷综合网| 亚洲精品无码Av人在线观看国产| 91嫩草私人成人亚洲影院| 不卡视频免费在线观看| 亚洲中文字幕无码爆乳AV| 中文毛片无遮挡高清免费| 久久亚洲国产精品五月天婷| 曰韩无码AV片免费播放不卡| 亚洲国产精品成人| 国产福利在线观看永久免费| 中文字幕精品亚洲无线码二区 | 日本在线免费观看| 久久久久亚洲AV成人无码| 久久精品视频免费播放| 亚洲欧洲视频在线观看| 一个人在线观看视频免费| 亚洲中文字幕一区精品自拍| 国产视频精品免费| 国产国产人免费人成成免视频 | 亚洲午夜精品一级在线播放放| 一级毛片无遮挡免费全部| 亚洲中文字幕在线第六区| 久久久久成人精品免费播放动漫| 亚洲色成人网一二三区| 毛片A级毛片免费播放| 久久精品国产亚洲av品善| 亚洲精品无码日韩国产不卡?V| 拍拍拍无挡视频免费观看1000| 亚洲欧洲自拍拍偷综合| 免费高清资源黄网站在线观看| 免费无码婬片aaa直播表情| 亚洲国产无套无码av电影| 成人午夜免费福利视频| 在线观看免费亚洲| 久久久久久a亚洲欧洲AV| 久久午夜免费视频| 国产99精品一区二区三区免费| 亚洲综合日韩中文字幕v在线| 四虎影院免费视频| a国产成人免费视频| 亚洲狠狠成人综合网|