I am working on combining 2 projects into a single one. 1st project downloads a webpage and saves it. 2nd project is an AlarmManager project which is intended to run any command every hour. I want to incorporate the 1st project into the 2nd one, So it will download a webpage every hour.
Both the project works fine on their own. But I can't figure out how to group them together.
There are 2 separate classes, "MainActivity" and "MyAlarm". I have copied all the required functions from my 1st project into the "MainActivity" class. I want to call a function defined in "MainActivity" in the "MyAlarm" class because "MyAlarm" class has a method that is used to call other methods every hour.
I am not sure how to do this. Since I am a newbie in java development, any help would be greatly appreciated.