テスト

らびブログ

2024年 2023年 2022年 ...

[Android]RSS Viewerの使い方

サンプルコードはこんな感じ
Uri uri = Uri.parse("http://blog.rabisoft.com/feed");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addCategory(Intent.CATEGORY_DEFAULT);
intent.setType("application/rss+xml");
intent.putExtra(Intent.EXTRA_STREAM, uri);
try {
    startActivity(intent);
} catch ( ActivityNotFoundException e ) {
    // Error .
}

テスト
©2011-2024 RabiSoft