Monday 15 February 2010

android - why doesn't FLAG_ACTIVITY_NO_HISTORY work on device, but works on emulator? -


I am trying to integrate with the LinkedIn API inside my app. Most of these are working just fine but for 1 issue how it works:

  1. From the My App Settings screen, the user clicks on when connected to the Linked Button That brings the web view where the user has to enter his LinkedIn credentials. The web view has been started in the following way:

      intent = new intent (Intent.ACTION_VIEW, Uri.parse (liToken.getAuthorizationUrl ()); I.setFlags (Intent.FLAG_ACTIVITY_NO_HISTORY); StartActivity (i); The above is actually done through an asynctask class.  
    1. After successful article from Linkin, the web goes away and the user comes back to my app settings page. Here the user has 2 options. He can either save or suppress the cancel button. Save button saves settings and then moves them into main activity, cancels nothing, and then moves them into main activity.

    2. The problem is, it works fine on the 4.2.2 emulator, but when running on a LG Nexus 4 device 4.2.2, either by clicking on Save or Cancel button The linking webview is brought back, which is not the desired behavior.

      One thing I wanted to point out was that the emulator uses the default Android browser when using the Nexus 4 chrome? Is this problem here? Do I need to set some other flag on intent?

      Any help / indicators will be highly appreciated.

      - su

      Do you try to clean up and rebuild your project Is that? Delete the app and reinstall the device?

No comments:

Post a Comment