Adding text to you App Without resubmitting it to the app store

Hello all. I am looking for the best way to add info to an app on a daily basis. So I would have a section where the info can be updated from a external source. I was thinking about Moai but I rather just use Corona. Anyone have any ideas.

Thanks [import]uid: 34105 topic_id: 30373 reply_id: 330373[/import]

This is possible, yes.

You would have something like this at the top of your main.lua file, which will connect to a file on your server:

[lua]local externalText

function NetworkListener(event)
if (event.isError) then
print(“Network error!”)
else
local params = json.decode(event.response)

externalText = params.data.newText

end
end

network.request(“http://www.yourwebsite.co.uk/update.cfg”, “GET”, NetworkListener)[/lua]
update.cfg file on server:

[lua]{
“data” : {
“newText” : “This is the new text that I want to import into my app”

}

}[/lua]

After a suitable delay to connect to the server and allow for poor 3G/wifi signal you can then manipulate the text received however you want.
[import]uid: 93133 topic_id: 30373 reply_id: 121675[/import]

Thank you very Much. I really appreciate it. I will give this a try. [import]uid: 34105 topic_id: 30373 reply_id: 121677[/import]

This is possible, yes.

You would have something like this at the top of your main.lua file, which will connect to a file on your server:

[lua]local externalText

function NetworkListener(event)
if (event.isError) then
print(“Network error!”)
else
local params = json.decode(event.response)

externalText = params.data.newText

end
end

network.request(“http://www.yourwebsite.co.uk/update.cfg”, “GET”, NetworkListener)[/lua]
update.cfg file on server:

[lua]{
“data” : {
“newText” : “This is the new text that I want to import into my app”

}

}[/lua]

After a suitable delay to connect to the server and allow for poor 3G/wifi signal you can then manipulate the text received however you want.
[import]uid: 93133 topic_id: 30373 reply_id: 121675[/import]

Thank you very Much. I really appreciate it. I will give this a try. [import]uid: 34105 topic_id: 30373 reply_id: 121677[/import]