Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 225

Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
01/01/13 08:41 PM (11 years ago)

Autorefresh for android

Firstly happy new year to all... Is there a way by which my android app is automatically refreshed when it starts instead of asking, as most of my users don't press the yes button and later complain that the content is old. I know the solution is available for ios but i was unable to find a working solution for android. Thanks, Rishav
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/02/13 08:22 AM (11 years ago)
Hi @elecy, I know your can code it to force a refresh, but not sure about any other way. I'll try to research this and get back to you. LA
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
01/02/13 09:10 AM (11 years ago)
That would be of great help... Thanks for the response..
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/02/13 01:57 PM (11 years ago)
I believe the only way is when the user downloads the App then they check the auto updates. LA
 
frozensun090
Aspiring developer
Profile
Posts: 25
Reg: Jan 13, 2012
location unknow...
550
like
01/13/13 10:28 PM (11 years ago)
I'd like to know as well. Force an Update in app
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/14/13 06:49 AM (11 years ago)
Edit LA
 
frozensun090
Aspiring developer
Profile
Posts: 25
Reg: Jan 13, 2012
location unknow...
550
like
01/14/13 08:26 AM (11 years ago)
@Rishav Autorefresh on Android is answered in the opening post here: http://www.buzztouch.com/forum/thread.php?tid=85517E8B51DD2EA87BB6000&currentPage=72 " 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 [my samsung galaxy siii]. 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. "
 
Suvinay pawa
buzztouch Evangelist
Profile
Posts: 599
Reg: Aug 01, 2012
location unknow...
9,890
like
02/20/13 04:37 AM (11 years ago)
@frozensun-thankz..
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
02/20/13 06:12 AM (11 years ago)
Great job @frozensun090! I didn't think there was a way to force auto refresh without coding. LA
 

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.