Answer the question
In order to leave comments, you need to log in
How to make a config file in android application?
I'm used to making a separate file in PHP and including it via require_once . And how can I make a separate file in Android and connect it to any class? This file will store the constants.
Answer the question
In order to leave comments, you need to log in
For example like this:
package com.yourpackage.name;
public class Constants {
public static int FIRST_PARAMETER= 1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question