Rick
Rick

Reputation: 1163

Set package name at top of java files with a string reference (android)?

The package name on top of the java files, can it be set in one spot such as the strings file?

pseudo code

 package com.website.app_name;   <=======

 imports....

 public class Main extends Activity{}

Upvotes: 1

Views: 188

Answers (2)

AAnkit
AAnkit

Reputation: 27549

No You can not do that, Like you can not change import statement like import com.xyz.ABC with a string.

And why one would even need this.

Upvotes: 1

P Varga
P Varga

Reputation: 20259

No, Java doesn't allow that...

Upvotes: 0

Related Questions