07-24-2009 03:26 AM
Hi,
In my application i am trying to invoke Browser when click on menuitem. but it invoke browser on background and my app on foreground i need the exact opposite case. Browser on foreground and app in background.
code snippet is as follows -
protected void makeMenu(Menu menu, int instance){ menu.add(new MenuItem("Show Browser",1,100){ public void run(){ try{ BrowserSession browserSession = Browser.getDefaultSession(); browserSession.displayPage(url); browserSession.showBrowser(); }catch(Exception e){ System.out.println("Exception :: "+e.toString()); } } }); }
Can anybody help me.
07-24-2009 03:32 AM
07-24-2009 04:37 AM
I tried requestBackground method but it's not work.
UiApplication.getUiApplication().requestBackground
Currently i working on storm.
07-24-2009 05:30 AM
07-24-2009 05:45 AM
On debug i found this -
FocusHistory: Focus gained; //Currently focus on my application
>> When i click on browser menuItem then Focus is -
FocusHistory: Focus lost; App Browser; Component NULL
quickly it lost focus and my app got the focus..
I tried out both Foreground and background method both are not working.
07-31-2009 08:34 AM
Has anyone managed to address this issue?
We are seeing this on Storm, where it does not appear at all on other platforms.
Application is built with 4.3 APIs.