• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Create objects if exists a txt file

How can I create a objtect like a label or a button when the App starts checking ir exists a txt file, And this object recieve informations from this file. I am using the android studio. Thanks.
 
You can set the visibility of a Button or Label, depending on the existance of the txt file.
Set a Button's visibility like this:

Code:
button.setVisibility(View.INVISIBLE)
 
Back
Top Bottom