Click here to Skip to main content
15,886,518 members
Articles / Mobile Apps / Android

Writing an Android GUI using Python (7:Activity)

Rate me:
Please Sign up or sign in to vote.
4.93/5 (7 votes)
17 Jun 2012CPOL3 min read 56.3K   1.4K   14  
Activity of android application is main entity which likes windows on win32 platform. It has lifecycle, contains gui widgets, and manages them together. Activity can create child activities, with initial parameters, and gets results from them. Here gives an example to operate activities, which code
/* AUTO-GENERATED FILE.  DO NOT MODIFY.
 *
 * This class was automatically generated by the
 * aapt tool from the resource data it found.  It
 * should not be modified by hand.
 */

package com.pythongui.activity;

public final class R {
    public static final class attr {
    }
    public static final class drawable {
        public static final int ic_launcher=0x7f020000;
    }
    public static final class id {
        public static final int widget30=0x7f050000;
        public static final int widget31=0x7f050001;
        public static final int widget32=0x7f050002;
        public static final int widget33=0x7f050003;
        public static final int widget34=0x7f050004;
        public static final int widget35=0x7f050005;
        public static final int widget36=0x7f050006;
        public static final int widget37=0x7f050007;
        public static final int widget38=0x7f050008;
        public static final int widget39=0x7f050009;
        public static final int widget40=0x7f05000a;
        public static final int widget41=0x7f05000b;
        public static final int widget42=0x7f05000c;
    }
    public static final class layout {
        public static final int child=0x7f030000;
        public static final int main=0x7f030001;
    }
    public static final class string {
        public static final int app_name=0x7f040001;
        public static final int hello=0x7f040000;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions