One for now. It requires multiple presses of the back button to return to the previous screen.
To reproduce:
1. Launch app.
2. Select "Nation" channel
3. Press the "thestar online" tab.
4. Select "Business" channel.
5. Press the "thestar online" tab.
6. Select "Sports" channel.
7. Press the "thestar online" tab.
8. Select "Technology" channel.
To exit the program, need to press Back button multiple time.
I think new Activity is created for each news channel. Is it possible
to repopulate the same Activity for different new channels? Or play
around with the CLEAR_TOP, SINGLE_TASK flag thingy.
On Feb 5, 12:31 am, Bernie Eng <eber...@gmail.com> wrote:
> One for now. It requires multiple presses of the back button to return to
> the previous screen.
>
Code to customize back button behaviour of webview is in KL traffic cam :-)
On Feb 5, 2010 2:45 PM, "Marvin Lee" <marv...@gmail.com> wrote:Thanks Bernie and Hong for highlighting the issues.I also found out that the webview takes the screen to the top when Back button is clicked instead of back to the previous Activity.Hong is right, it is a new Activity on every Channel selected unless the user click Back.This behaviour is also found in BBC app, I'm not sure how to resolve this yet, but I'll look into it.Gary Chin also highlighted that some weird characters are coming out in the article (inside webview), and i found that from the actual HTML page where quotes ( ' ) are not converted to HTML " is where the problem lies in (garbage in- garbage out).Unless I parse all the content in the HTML and convert it to HTML, which will take some processing time and probably intro some other new issues, any of you know of a better way to fix it?Thanks for all the comments so far! Well appreciated! :)
On Fri, Feb 5, 2010 at 11:26 AM, Leong Hean Hong <ho...@codeandroid.my> wrote:
>
> I guess I enc...