Need help to write a simple add-on

I am trying to gather add-ons and links in one simple add-on by copying the code from the favourites.
The regular add-ons work, but the links inside an add-on will just open the main menu and the Android apps will not work.
Thanks in advance for any help. Here is the code:

# -*- coding: utf-8 -*-
#————————————————————
# MyNewsChannel
#————————————————————
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
# Based on code from youtube addon
#————————————————————

import os
import sys
import plugintools
import xbmc,xbmcaddon
from addon.common.addon import Addon

addonID = ‘plugin.video.MyNewsChannel’
addon = Addon(addonID, sys.argv)
local = xbmcaddon.Addon(id=addonID)
icon = local.getAddonInfo(‘icon’)

ID1 = “”
ID2 = “”
ID3 = “”
ID4 = “”

# Entry point
def run():
plugintools.log(“MyNewsChannel.run”)

# Get params
params = plugintools.get_params()

if params.get(“action”) is None:
main_list(params)
else:
action = params.get(“action”)
exec action+”(params)”

plugintools.close_item_list()

# Main menu
def main_list(params):
plugintools.log(“MyNewsChannel.main_list “+repr(params))

plugintools.add_item(
#action=””,
title=”World News”,
url=”plugin://plugin.video.youtube/channel/UCt-WqkTyKK1_70U4bb4k4lQ/playlist/PL5_Zg40DC3OEgfanCaLbZt3Phd24rJW38″+ID1+”/”,
thumbnail=””,
folder=True )

plugintools.add_item(
#action=””,
title=”Mediacorp”,
url=”plugin://plugin.video.mediacorp/”+ID2+”/”,
thumbnail=””,
folder=True )

plugintools.add_item(
#action=””,
title=”Global Toronto News”,
url=”plugin://plugin.video.canada.on.demand.pg/?Icon&Thumb&Title=Toronto&action=browse&channel=globalnews&entry_id=None&local_channel=Toronto”+ID3+”/”,
thumbnail=””,
folder=True )
# <favourite name=”Global Toronto News”>ActivateWindow(10025,&quot;plugin://plugin.video.canada.on.demand.pg/?Icon&amp;Thumb&amp;Title=Toronto&amp;action=browse&amp;channel=globalnews&amp;entry_id=None&amp;local_channel=Toronto&quot;,return)</favourite>

plugintools.add_item(
#action=””,
title=”Live TV”,
url=”StartAndroidActivity(&quot;com.filmon.android.aff126469Ak”+ID4+”/”,
thumbnail=””,
folder=True )
# <favourite name=”Live TV”>StartAndroidActivity(&quot;com.filmon.android.aff126469Ak&quotWink</favourite>

run()