alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (AndroidManifest.xml)

This example Android source code file (AndroidManifest.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

alias, bootreceiver, checkupdateservice, createshortcutactivity, home, loginactivity, photostreamactivity, settingsactivity, string, the, viewphotoactivity, wallpaperactivity

The AndroidManifest.xml Android example source code

<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.android.photostream"
	android:versionName="1.0"
	android:versionCode="1">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
    <uses-permission android:name="android.permission.VIBRATE"/>

    <application
        android:label="@string/application_name"
        android:theme="@style/Theme"
        android:icon="@drawable/application_icon">

        <activity
            android:name=".LoginActivity"
            android:label="@string/application_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Alias activity used to set the wallpaper on Home. The alias is used
             simply to have a different label. -->
        <activity-alias android:name="WallpaperActivity"
            android:targetActivity="LoginActivity"
            android:label="@string/activity_set_wallpaper">
            <intent-filter>
                <action android:name="android.intent.action.SET_WALLPAPER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity-alias>

        <!-- Alias activity used to create shortcuts on Home. The alias is used
             simply to have a different label. -->
        <activity-alias android:name="CreateShortcutActivity"
            android:targetActivity="LoginActivity"
            android:label="@string/activity_create_shortcut">
            <intent-filter>
                <action android:name="android.intent.action.CREATE_SHORTCUT" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity-alias>

        <!-- action: com.google.android.photostream.FLICKR_STREAM,
             extra: com.google.android.photostream.extra_nsid, String -->
        <!-- action: com.google.android.photostream.FLICKR_STREAM,
             extra: com.google.android.photostream.extra_user, Flickr.User -->
        <activity
            android:name=".PhotostreamActivity"
            android:label="@string/application_name">
            <intent-filter>
                <action android:name="com.google.android.photostream.FLICKR_STREAM" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="http"
                      android:host="flickr.com"
                      android:pathPrefix="/photos/" />
                <data android:scheme="http"
                      android:host="www.flickr.com"
                      android:pathPrefix="/photos/" />
            </intent-filter>
        </activity>

        <!-- action: com.google.android.photostream.FLICKR_PHOTO,
             extra: com.google.android.photostream.extra_photo, Flickr.Photo -->
        <activity
            android:name=".ViewPhotoActivity"
            android:label="@string/application_name">
            <intent-filter>
                <action android:name="com.google.android.photostream.FLICKR_PHOTO" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:theme="@android:style/Theme"
            android:name=".SettingsActivity"
            android:label="@string/activity_preferences" />

        <receiver android:name=".BootReceiver">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <service android:name=".CheckUpdateService" />

    </application>
</manifest>

Other Android examples (source code examples)

Here is a short list of links related to this Android AndroidManifest.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.