Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 10    Views: 110

Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
04/26/12 05:20 AM (13 years ago)

How do i get App to reflect new corrections done to application?

Hiya I am a newbie, using eclipse to carry out a simple pilot app. I have configured and installed the app in my phone. But then, i have returned to update, and added more information. Question is, when does the new additions reflect in the apps itself, or how do i get it to update? Each new update or changes, i made sure i "saved" But it has yet to reflect the changes on my phone. Any ideas please?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/26/12 07:56 AM (13 years ago)
You need to update the Config file. Read Online vs. Offline in my guide to understand the process. www.MySkylla.com Fred
 
Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
like
04/26/12 08:55 AM (13 years ago)
Hiya Thanks for the answer. I still havent sorted the issue though (dont wanna call it a problem). I will use an example, just to better explain my issue; I have changed one of the 'Core Properties' configuration from "all devices allow rotation" to "only large devices allow rotation" on my buzztouch control panel, and clicked on save. I was kinda expecting this to reflect this change in my pilot app residing on my phone, which is still connected to the PC. Could this be a wrong expectation? Or what do i need to do to get this alter the old configuration on my phone? Mind you, i can see on the BT_appConfig that it is still reflecting as "allowRotation":"allDevices", Thanking you in advance
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/26/12 09:08 AM (13 years ago)
With Android you don't need to be connected. Just export the .apk. To update the app's data just use the menu button when at the apps home screen. Fred
 
Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
like
04/26/12 09:48 AM (13 years ago)
Thanks once again. Hittting refresh button on app menu gives an error message; "Somethings not right There was a problem loading the apps configuration data. See the LogCat (console) output in Eclipse" Where do i start with this one? :-)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/26/12 09:49 AM (13 years ago)
Hi @Omoba, In your control panel, when you click on "Configuration Data," do you still see "allowRotation":"allDevices"? The config data at buzztouch.com is the master config file, and any change you make in the control panel should immediately be reflected there. If you make a change, then refresh your app, the local config file will still be the one you downloaded, because refreshing the device causes a new config file to be loaded into the device cache, which you don't have access to. When you changed that option, were you testing the rotation of the device, and it was still not working as expected? Mark
 
Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
like
04/26/12 10:19 AM (13 years ago)
HIya @Mark I see it has updated to the change made. It hasnt done so on my eclipse data though, which is where my wonder is. I have done Run --> Run As a few times, and expected some response. None so far. I only did the rotation thing, because i could easily relate it on "Configuration Data" and the BT_Config.txt file in my eclipse. So, essentially, it is updated in buzztouch, but not in my eclipse so i can translate those changes onto my app. But i now understand better from your explanation above. My question can therefore be re-phrased as: what would i need to do, to make sure changes made on BT control panel refelcts in my app? I have refresh on menu of my phone - hasnt worked, instead gives me the error message above. Thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/26/12 10:25 AM (13 years ago)
Hi Omoba, The configuration file in the package you downloaded, and which you have running in Eclipse, will never get updated unless you do so manually. The configuration information in a compiled app will get updated, if you do a Refresh All Data on the app, but you won't have access to that file to verify, as it's stored in the device's cache. What you need to do is copy the configuration data from your control panel and paste it into the BT_Config.txt file you are using in Eclipse. Then build your app again. At that time, the config file in your app (Eclipse) and the one in your control panel will be in sync. Mark
 
Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
like
04/26/12 10:34 AM (13 years ago)
Big Thanks Done!! :-) I definitely learnt something small but mighty just now
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
04/26/12 10:36 AM (13 years ago)
Yep...the concept is the core of how the whole buzztouch thing works. If you head over to the How-To's section of the site, I have a document about Offline vs. Online apps. Worth a ready if you want to understand the nitty gritty details. Mark
 
Omoba
Lost but trying
Profile
Posts: 54
Reg: Apr 16, 2012
London, UK
1,890
like
04/26/12 11:10 AM (13 years ago)
Thanks. Will do
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.