mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
04/02/15 05:07 PM (9 years ago)

This bug has to go into the record books!

Client wanted Android app. I made app. Client got app. Everyone happy. Until he reported a bug that I can't possibly solve. --- He goes into a menu list, fools around, goes into a few screens, all looks good. He hits the back button (hardware back button), the list or content goes back. The top navigation bar and header image stays. ***Mind blown.*** He tries hitting the android back button more. Finally gets to home screen. Now title bar is fine. Home screen content is another plugin. It's all jumbled. Navigation is completely broken. I have *absolutely* no idea where to even start on fixing this, or what the heck went wrong. Please, please, please tell me I'm not the first person to encounter this. I haven't worked with Android much, but I don't remember folks reporting something like this. Or ever hearing of this. LOL. Help appreciated. If anyone can even fathom what I'm looking at. I seriously might need to record this, it's unbelievable. --- Full text from client explaining issue: "I can’t find a cause. It’s random. Sometimes it works fine for 10 minutes jumping all around with no issues, then sometimes it will start acting weird within a minute or two. Happens on both phones: 1) LG L34C, Android 4.4 2) Motorola Moto G, Android 4.4.4 Happening again right now. I’m at the home screen. I hit the return arrow key on lower left of phone, and “Contact” appears in the upper bar even though the home screen graphic and menu is still there. I hit it again, nothing, hit it a few more times and see “Contact” in upper bar again. Hit it a couple more times and finally it exits the app. It’s like it’s remembering pages that were visited in the cache, but it’s not showing the proper history as I keep hitting that back button. Then, if I stop and try to select “Speakers” for example, it just refreshes the home menu graphic and keeps the same home menu items while showing “Speakers” in the upper bar. It’s like it gets confused or something. Really annoying." David.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/02/15 07:31 PM (9 years ago)
Easier to buy him an iPhone and declare it "job done". I'm sure you've been tempted to do just that ;-)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/02/15 07:33 PM (9 years ago)
If only Niraj, if only.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/02/15 07:38 PM (9 years ago)
Remember, as distasteful as it sounds, each of you can fire the other. Have you made a brand new app by building and testing one screen addition at a time? Perhaps there is a faulty plugin in the mix. Another approach is to keep the bad app, then delete a screen at a time and then re-test.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
04/02/15 08:52 PM (9 years ago)
Vaguely remember seeing something like this. Told myself I didn't want to deal with it and walked away.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/02/15 09:14 PM (9 years ago)
Niraj! Why did you not tell me about this one!? Don't tell me your memory is fading? ;-) http://www.freeappbuilder.com/forum/thread.php?tid=A8FED18E167C77BBA64B912&fid=06DB0BCB08E3333&sortColumn=FT.id&sortUpDown=&currentPage=2 Going to research this further... David.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
04/02/15 09:19 PM (9 years ago)
Do you have a Tabbed app? Android causes amnesia in my punkin head
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/02/15 09:42 PM (9 years ago)
Tabbed app yep. http://www.buzztouch.com/forum/thread.php?tid=096A2CBA60C496685946C98&currentPage=1 I'll see if I can use the solution to "add all to stack", not sure why this would be an issue. David.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
04/03/15 02:07 AM (9 years ago)
In Android, you can use the official stack or you can create your own private stack. Google "android back stack". You can start by reading this: http://developer.android.com/training/implementing-navigation/temporal.html#back-fragments Here is a more hands-on approach, if you want to change what happens when the user taps Back button. There is a method called onBackPressed and here's an example: http://stackoverflow.com/questions/7992216/android-fragment-handle-back-button-press
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/03/15 05:13 AM (9 years ago)
I don't really use the hardware controls on an Android device because it does have issues. I use the App back button! LA
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/03/15 11:03 AM (9 years ago)
@Dusko, thanks for the info, I'm trying out the solution by @peterj and we'll see if that helps any. @La, same here, but I can't tell my client that he needs to stop using the hardware button, hehe. Will report back if it's fixed..
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/03/15 11:28 AM (9 years ago)
I just ran into what I think is the same problem with an Android app with tabs. Various app fragments appear in the wrong places. My theory as to why it seems to work for awhile and then stop working is because it works until you select a tab. Once you select a tab, then it stops working correctly.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
04/03/15 11:30 AM (9 years ago)
Susan I have confirmed that theory. It's surprising this is the first time I've heard of this, I would think lots of people use tabs. :-( Gotta love jumping into Android!
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
04/03/15 02:23 PM (9 years ago)
Tabs on BT 2.0 Android looked OK. On BT 3.0, they didn't, so I suspect many people simply stopped using them. I did. Alan
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/03/15 04:47 PM (9 years ago)
Is this on self hosted?
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
04/04/15 05:10 AM (9 years ago)
I can remember reading about a year ago about a bug in Android 4.3 but not in 4.4! Yeah it sounds like the layers are overlapping or when your client clicks back on the device it's creating another whole screen. What happens if your client clicks home on the hardware? LA
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/04/15 07:12 AM (9 years ago)
The "back button" on the top left is the home button.it goes to the first screen.you know methods such as actionBar.setHomeUpAsEnabled (true); are referring to this.it's meant to climb the back stack to the first fragment. I know David has made some changes in the android studio project, but not sure if he changes anything to do with this bug.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
04/04/15 07:56 AM (9 years ago)
I don't have the app running right now, but I am pretty sure that when you touch the home button everything is straightened out.
 

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.