<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.pjq.me/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Welcome to Jianqing&#039;s Wiki - code:android-code</title>
        <description></description>
        <link>https://wiki.pjq.me/</link>
        <lastBuildDate>Thu, 30 Apr 2026 12:34:13 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.pjq.me/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Welcome to Jianqing&#039;s Wiki</title>
            <link>https://wiki.pjq.me/</link>
        </image>
        <item>
            <title>Android上图像处理-倒影,圆角,渐变</title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:image-convert&amp;rev=1462424823&amp;do=diff</link>
            <description>Android上图像处理-倒影,圆角,渐变

Android对图片处理的函数应该是很多的,但由于平时对图像处理用到情况不多,要用到时只有不停的Google.

这次要用到的图像效果比较多,有倒影,图片圆角,还有图像渐变,感谢Google,在经过我不懈的搜索后,找到了一些比较有用的做法.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>如何发送和接收notify</title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:send-receive-notify&amp;rev=1462424823&amp;do=diff</link>
            <description>如何发送和接收notify

在Android中有很完整的消息通知机制,可以很方便的发送一个通知,然后注册一个receiver去接收这些消息.

发送notify



  public static void notifyAuthenticationChange(Context ctx, String authority, boolean authenticated) {
        Utils.log(&quot;notifyAuthenticationChange,authority=&quot;+authority);
    	Intent broadcast = new Intent(ACTION_SOCIAL_AUTH);
        broadcast.putExtra(EXTRA_AUTHORITY, authority);
        broadcast.putExtra(EXTRA_AUTHENTICATED, authenticated);
        ctx.sendBroadcast(broadcast);
    }…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:someusefulcode&amp;rev=1462424823&amp;do=diff</link>
            <description>先贴下连接吧,等有空再整理一下:&lt;http://blog.csdn.net/lirushuokeyi/archive/2010/03/20/5399302.aspx&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:test&amp;rev=1462424823&amp;do=diff</link>
            <description>a</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>如何在Android 上层UI中调用Thread方法</title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:use-thread-in-ui&amp;rev=1462424823&amp;do=diff</link>
            <description>如何在Android 上层UI中调用Thread方法

虽然这种方法可以用,但还是不怎么推荐,如果涉及到线程阻塞的问题,最好用AsyncTask来解决

方法一



        new Thread(new Runnable() {
            public void run() {
                Looper.prepare();
                
                //do something here
                //postReport(statusCode, url);

                Looper.loop();
            }
        }).start();</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=code:android-code:%E5%A6%82%E4%BD%95%E8%B0%83%E8%B5%B7%E5%85%B6%E5%AE%83ap%E7%9A%84activity&amp;rev=1462424823&amp;do=diff</link>
            <description>需要在一个AP里调起其它AP的一个Activity,

比如我这里要调起Browser 的Download Page Activity



    /*
     * This method is called as a result of the user selecting the options menu
     * to see the download window, or when a download changes state. It shows
     * the download window ontop of the current window.
     */
    /* package */void viewDownloads(Uri downloadRecord) {

        Context friendContext = null;
        try {
            friendContext = this.createPackageContext(&quot;com.android.browser&quot;,
            …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
    </channel>
</rss>
