Main Activity Communicating with Main Project

Hi there,

I’ve been developing a few android applications for the past few months but have been unable to allow my main project to reference anything in the android activity or to allow my Main Activity to communicate with my project.

I’m trying to commmunicate a single string from my activty to my main project being the getFilesDir() String as that will return me the path in which I can save my data to the device.

Currently I’m having to hardcode the path that the method returns, but this will not work on all android devices.

How can I give my main project access to the activity?

Check the last paragraphs on Android in the manual, you should instantiate the code (e.g. an AppState) that transfers the info to your main Application on the Android side.

1 Like
Check the last paragraphs on Android in the manual, you should instantiate the code (e.g. an AppState) that transfers the info to your main Application on the Android side.

Hello which manual are your talking about ?
What is an AppState ?