Android News App
  • Welcome
  • Android Studio
    • Getting Started
    • Import Project
    • Generate google-services.json
    • Push Notification
    • Package Name
    • Server Connection
    • Ad Network
    • Legacy GDPR
    • Funding Choices
    • App Configuration
    • Get YouTube API Key
    • Change App Logo
    • Change App Color
    • Text Assets
    • Image Assets
    • App Font
  • Admin Panel
    • Getting Started
    • Database Configuration
    • Related Video Tutorial
    • SMTP Config
    • Change Color
    • Change Text
  • Publish the App
    • Release Version
    • Generate Signed Bundle / APK
  • Migrate from Older Version
    • v4.2.1 to v4.3.0
    • v4.2.0 to v4.2.1
    • v4.0.0 to v4.2.0
    • v3.4.x to v4.0.0
  • Rating and Support
  • Changelog
  • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. Android Studio

App Configuration

some features in the application can be enabled or disabled as you wish by giving the value "true" to enable, or giving a value "false" to disable, you can see on the java/<your_package_name>/config/AppConfig.java file

//if login register feature disabled, comment feature will be disabled
public static final boolean DISABLE_LOGIN_REGISTER = false;

//show one latest news as header view
public static final boolean DISPLAY_HEADER_VIEW = true;

//show short description in the news list
public static final boolean ENABLE_EXCERPT_IN_POST_LIST = true;

//fixed bottom navigation
public static final boolean ENABLE_FIXED_BOTTOM_NAVIGATION = true;

//show total news in each category
public static final boolean ENABLE_POST_COUNT_IN_CATEGORY = false;

//video player orientation
public static final boolean FORCE_VIDEO_PLAYER_TO_LANDSCAPE = false;

//date display configuration
public static final boolean ENABLE_DATE_DISPLAY = true;
public static final boolean DATE_DISPLAY_AS_TIME_AGO = false;

//display alert dialog when user want to close the app
public static final boolean ENABLE_EXIT_DIALOG = false;

//enable view count in the news description
public static final boolean ENABLE_VIEW_COUNT = true;

//set false to disable copy text in the news description
public static final boolean ENABLE_TEXT_SELECTION = false;

//open link in the news description using external web browser
public static final boolean OPEN_LINK_INSIDE_APP = false;

//GDPR EU Consent
public static final boolean USE_LEGACY_GDPR_EU_CONSENT = true;

//load more for next news list
public static final int LOAD_MORE = 15;

//if you use RTL Language e.g : Arabic Language or other, set true
public static final boolean ENABLE_RTL_MODE = false;

PreviousFunding ChoicesNextGet YouTube API Key

Last updated 3 years ago

Was this helpful?