xSAVIKx/AndroidScreencast

How to search key from app.properties?

wzhy90 opened this issue · 5 comments

I add some key to app.properties file and Constants.java .
But the app won't search for my key . How to add it correctly ?

I, actually, cannot understand what you're willing to do....
everything about properties is being done using Spring and Environment autowired class.
Constants.java just contain names of properties, that could be accessed via Environment.

I add a width and height to app.properties file to set the default window pixel.
Constants.java has add:

  public static final String Custom_Width = "width_pixel";
  public static final String Custom_Height = "height_pixel";

Then use Integer.parseInt(Custom_Height) to change the number to int.
But it seems not working.

cause it's totally wrong.
As i've already said, you should use Environment to load properties.
You want window to be scalable ?(It's already scalable)
Or you just want the app to start with some fixed height and width ?

Yes, the default window size is to large for me

I've added feature, that you request.
you can download latest release from here: https://drone.io/github.com/xSAVIKx/AndroidScreencast/files/target/androidscreencast-0.0.4S.jar

Properties example in app.properties file:
default.window.width=1024
default.window.height=768