Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
11/15/12 08:01 AM (13 years ago)

Update/Refresh not working-Android

Ok, I have built quite a few apps before. I switched to selfhosted. My app is not updating. I have no errors, compiled a signed apk, and it installs fine. When I make changes to the control panel they do not show on the app. The server says that it has data requests. The data and cloud url's are default. I checked previous forum threads but nothing helped so far. Is this a server setting or am I missing something else. Thoughts?, thanks. Shane
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
11/15/12 08:22 AM (13 years ago)
Hey Outbreak, I believe I'm having the same problem on no self-hosted. LA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 09:00 AM (13 years ago)
Hi Shane, Any output in LogCat that could help diagnose the problem? Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:39 AM (13 years ago)
This is the thing I saw that might have something to do with it: 11-15 09:33:39.873: W/ZZ(5533): BT_application: getDataURLFromAppData 11-15 09:33:39.974: W/ZZ(5533): BT_activity_root:loadAppData BT_config.txt file does use a dataURL for remote updates... 11-15 09:33:39.974: W/ZZ(5533): BT_activity_root:loadAppData cachedAppConfig.txt does not exist in the cache...
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:40 AM (13 years ago)
By the way GoNorthWest...I sent you a message about a plugin
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 09:41 AM (13 years ago)
Anything else after that? That's simply saying there is a URL for remote updates, and that a more recent version of the config file does not exist in cache. Doesn't quite explain why it's not being updated.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:41 AM (13 years ago)
By the way GoNorthWest...I sent you a message about a plugin
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 09:43 AM (13 years ago)
Yep...I responded. Let me know if you didn't get it.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:47 AM (13 years ago)
This was the next couple of lines: 11-15 09:33:39.974: W/ZZ(5533): BT_application: validateApplicationData 11-15 09:33:40.076: W/ZZ(5533): BT_activity_root: application data appears to be valid JSON... 11-15 09:33:40.076: W/ZZ(5533): BT_application: parseJSONData 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing core settings... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing themes... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing tabs... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing screens... 11-15 09:33:40.185: W/ZZ(5533): BT_application:parseJSONData done parsing application data 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: 354E606AF54C7B96274AF50
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:49 AM (13 years ago)
This was the next couple of lines: 11-15 09:33:39.974: W/ZZ(5533): BT_application: validateApplicationData 11-15 09:33:40.076: W/ZZ(5533): BT_activity_root: application data appears to be valid JSON... 11-15 09:33:40.076: W/ZZ(5533): BT_application: parseJSONData 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing core settings... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing themes... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing tabs... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing screens... 11-15 09:33:40.185: W/ZZ(5533): BT_application:parseJSONData done parsing application data 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: 354E606AF54C7B96274AF50
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 09:50 AM (13 years ago)
That all looks good. The app should be updating, and saving the config file into cache. Not sure why it's not working! I'll see if I can download one from my self hosted and repro the problem.
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:50 AM (13 years ago)
This was the next couple of lines: 11-15 09:33:39.974: W/ZZ(5533): BT_application: validateApplicationData 11-15 09:33:40.076: W/ZZ(5533): BT_activity_root: application data appears to be valid JSON... 11-15 09:33:40.076: W/ZZ(5533): BT_application: parseJSONData 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing core settings... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing themes... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing tabs... 11-15 09:33:40.169: W/ZZ(5533): BT_application: parsing screens... 11-15 09:33:40.185: W/ZZ(5533): BT_application:parseJSONData done parsing application data 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen 11-15 09:33:40.185: W/ZZ(5533): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: 354E606AF54C7B96274AF50
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 09:51 AM (13 years ago)
Just so you know, if you refresh the page, it reposts the last post! ;-)
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 09:51 AM (13 years ago)
yeah, just figured that out. oops
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 12:54 PM (13 years ago)
Where are the time stamps in the code that ties to the last update?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 10:10 PM (13 years ago)
If you force an update, it should show in LogCat that it goes out to the dataURL and fetches the data, then writes it to cache. In the samples you gave above, that is not happening, so I can't point it out. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 10:12 PM (13 years ago)
How do I force an update?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 10:13 PM (13 years ago)
If you are on the home screen of the app, hit your phone's Menu button, then choose the update option. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 10:20 PM (13 years ago)
The only thing that pops up when I push menu is: No options. Ok-close
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/15/12 10:25 PM (13 years ago)
That's super weird, and the second time that somebody has had that problem today. If you are willing, could you send me the zipped source package you downloaded from buzztouch so I can take a look? Send it to MrkFleming at gmail dot com. It will be kept in the strictest confidence. Mark
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
11/15/12 10:28 PM (13 years ago)
Certainly, I appreciate your help.
 
MironBriley
Android Fan
Profile
Posts: 7
Reg: Nov 19, 2012
Tulsa
5,420
like
11/29/12 06:22 PM (13 years ago)
ok so did this get figured out ?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/29/12 07:44 PM (13 years ago)
Yep. Download your source package again, and the new code is there.
 
MironBriley
Android Fan
Profile
Posts: 7
Reg: Nov 19, 2012
Tulsa
5,420
like
11/30/12 08:09 AM (13 years ago)
I'm not Outbreak.. I was wondering what the fix was?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/30/12 08:47 AM (13 years ago)
Basically there was a typo in the code...a ( where a " should have been!
 

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.