ac4android
Well-Known Member
I am handling some 3rd party codes and the MainActivity imports a lot of other activities. These other activities are in these two folders:
\app\src\main\java\com
\app\src\main\java\baidumapsdk/demo/map
//
The MainActivity imports them like this:
import baidumapsdk.demo.map.LocationDemo
//
And at the end of the long-winded chain app\src\main\java\baidumapsdk\demo\map
there are a lot of text files which contain the Java codes for the respective Activities, in my case LocationDemo
//
Is the original coder trying to dynamically change the codes?
QUESTION: Can I create new resource folders (I am assuming they are res folders) under \src\main\java and copy the baidu folders containing the text files there, then import them.
I am concerned that the original coder(s) seem to be changing the import statements dynamically
\app\src\main\java\com
\app\src\main\java\baidumapsdk/demo/map
//
The MainActivity imports them like this:
import baidumapsdk.demo.map.LocationDemo
//
And at the end of the long-winded chain app\src\main\java\baidumapsdk\demo\map
there are a lot of text files which contain the Java codes for the respective Activities, in my case LocationDemo
//
Is the original coder trying to dynamically change the codes?
QUESTION: Can I create new resource folders (I am assuming they are res folders) under \src\main\java and copy the baidu folders containing the text files there, then import them.
I am concerned that the original coder(s) seem to be changing the import statements dynamically
