File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Non-constant Fields in Case Labels - ADT 15.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Non-constant Fields in Case Labels - ADT 15.0.1" Watch "Non-constant Fields in Case Labels - ADT 15.0.1" New topic
Author

Non-constant Fields in Case Labels - ADT 15.0.1

Jeansonne Pierre
Greenhorn

Joined: Sep 11, 2011
Posts: 10
In a regular Android project, constants in the resource R class are declared like this:
public static final int main=0x7f030004;

However, as of ADT 14, in a library project, they will be declared like this:
public static int main=0x7f030004;


im using ADT 15.0.1 in eclipse, i'd tried create new simple android project but why still got the final there as below?

package com.test;

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 layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040001;
public static final int hello=0x7f040000;
}
}
 
 
subject: Non-constant Fields in Case Labels - ADT 15.0.1
 
Threads others viewed
Creating new keys
How is a compile-time constant static vaiable causing initialization???
Switch Case
local inner class
Declare non-static "local class" within static method
IntelliJ Java IDE