Discussion Forums  >  Uncategorized

Replies: 4    Views: 189

birwin
Lost but trying
Profile
Posts: 93
Reg: Dec 29, 2010
location unknow...
3,080
01/14/12 02:39 AM (12 years ago)

Auto Refresh Android 1.5

Hello, I was experimenting with trying to get my Android 1.5 app to automatically refresh, without prompting the user etc... This can be a handy thing to have for certain types of apps. Seems to be a very simple little switch of code. In your Eclipse Package Explorer, expand the following folder /src/com.yourappname/ Then open up the BT_activity_base.java file. Find the following code snippet: confirmRefreshAlert.show(); and replace it with: refreshAppData(); Save and clean/rebuild in sim or device. I have tried it out on the simulator and on my galaxy prevail. Seems to work fine. Updates are automatically loaded in without the alert. You may want to change the default loading message, which says (Loading...) by default. You can find this text variable in the following file in your Package Explorer window in Eclipse: /res/values/strings.xml Open strings.xml in text mode and find the string name 'LoadingTitle', you can change that to Please Wait... Downloading Updates, or whatever would make the most sense to the end user. Hope this helps folks out! Best Regards, Brian-
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
01/14/12 12:12 PM (12 years ago)
Thanks!
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
02/20/12 07:44 AM (12 years ago)
How could we do this on ios?
 
birwin
Lost but trying
Profile
Posts: 93
Reg: Dec 29, 2010
location unknow...
3,080
like
02/20/12 08:56 AM (12 years ago)
Hello @AppMaster, David posted a tip for iOS a while back. Here's the thread: http://www.buzztouch.com/forum/thread.php?tid=35C9CCA460F85572608CF3B There is also the capability to force a refresh on first load of the app: http://www.buzztouch.com/forum/thread.php?tid=200377AD518D42C59762BD1 Best Regards, Brian-
 
AppGuy30
Code is Art
Profile
Posts: 737
Reg: Oct 29, 2011
location unknow...
14,070
like
02/20/12 11:45 AM (12 years ago)
Thanks briwin!
 

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.