4.17

MYapplication类
• 所花时间:4
• 代码行数:293
• 博客容量:1
• 代码如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    <application
        android:name=".MyApplication"
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.Undertaking"
        tools:targetApi="31">
        <activity
            android:name=".everydaySelect"
            android:exported="false" />
        <activity
            android:name=".summaryEveryOne"
            android:exported="false" />
        <activity
            android:name=".selectFrequency"
            android:exported="false" />
        <activity
            android:name=".SummaryOfWeek"
            android:exported="false" />
        <activity
            android:name=".SummaryOfMonth"
            android:exported="false" />
        <activity
            android:name=".setTaskOfDay"
            android:exported="false" />
        <activity
            android:name=".setTaskOfWeek"
            android:exported="false" />
        <activity
            android:name=".teacherHomePage"
            android:exported="false" />
        <activity
            android:name=".homePage"
            android:exported="false" />
        <activity
            android:name=".registerWindow"
            android:exported="false" />
        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
package com.example.undertaking;

import android.app.Application;
import android.widget.TextView;

import com.example.undertaking.userDB.User;

import java.util.Timer;
import java.util.TimerTask;

public class MyApplication extends Application {
    public static User user;
    public static int studyTime=0;
}

posted @ 2024-04-17 14:02  aallofitisst  阅读(5)  评论(0)    收藏  举报