Location icon does not always disappear when app is minimized on Android - google-maps

I use Codename One to code my app. I've defined my UserLocationListener and use it successfully with the LocationManager.
In the main class' stop method I set LocationManager.setLocationListener (null) and the location icon disappears when the app is minimized.
However I'm also using a MapContainer with setShowMyLocation (true) and when the app gets minimized from a form that does not show the MapContainer the Location icon remains in the Android (Nougat) bar. Same behaviour when I get back to the form with the map from a form without it and then minimize the app.
Please note that if I don't setShowMyLocation (true) the icon disappears from whichever form.
Furthermore in the stop method I setShowMyLocation (false) but it looks like the listener does not stop.
What can I do to ensure that the location goes off when my app is minimized?
Thanks in advance

Related

How can a jsp based application launch a browser with no window frame or tabs or menu or toolbar

I am looking for a way to launch my application in a browser with window frame or tabs or menu or toolbar, is there any way i could achieve that.
For instance i want to launch my application without the part marked in orange. (without tabs or possibility of creating a new tab) and the settings button beside the address bar
Update:
i am adding a image of what i am trying to accomplish...
Thanks in advance

Windows Phone Universal - Issue in Navigation and On Loading of page

I am facing a weird problem in windows phone 8.1 page navigation.
I have got two pages.
Login page > Consists of app bar in which one of the button take us to second page.
Second page is Cached using MVVM i.e Registered the Second page to IOC on launch of app and binding the instance of it to page 2 XAML.
In the Second page View model Constructor I am making Server call to get the data.
Problems facing.
On Clicking the app bar button to navigate to second page, the app stays in the first page until the second page make server call and get the response. Then its navigating.
But actual behavior must be it should navigate to second page and wait there to get response showing progress bar.
One quick fix is I made the thread to stop for some 50 millisecond in page 2 constructor of view model and then made service call
It navigated to Second page immediately and waited there until response but the previous page App Bar still displays until I get the response.
I even find the quick solution for it by Collapsing the App bar just before Navigating to that page.
I know these quick fixes are not good. So please help me to find out the problem or if you already know please revert back with the solution.
Don't use constructor to initiate the web service calls . Use OnNavigatedTo or Page_Loaded event .

Pressing back button does not suspend/terminate application

I've created an app with secondary tiles. The tiles leads to Page2.xaml of the application. So when the user clicks it, the app opens on that page (Page2).
Ive added the following at the end of OnLaunch in app.xaml.cs:
foreach (string id in ListOfId)
if (id == e.TileId)
{
rootFrame.Navigate(typeof(Page2));
}
Pressing back button (hardwarebutton) leads back to Page1, the first page of the application. Thats the wanted behaviour. The problem is, if I then press back on the Page1 it only flips the page... seems to reload it?
If I start the application by its default tile that leads to Page1, and then press back button the app suspends (expected).
Can I trigger suspension of the app in code? I can override hardware back button and might solve my problem that way

Display Chrome extension popup at middle of page

I am new to writing chrome extensions and was wondering how can i do the following.
How can i make the popup(when someone clicks on extension icon) display at the center of the webpage instead of displaying the popup at the top right corner ?
Use chrome.browserAction.onClicked.addListener(), which fires "when a browser action icon is clicked." Then inject your popup manually into the DOM of the supplied tab, using something like chrome.tabs.executeScript().
Also consider adding a context-menu item, which might make more sense to a user depending on what your extension actually does.

Google Chrome extension button pop-out: How to make it persistent

I have a very simple Chrome extension which produces a bubble pop-out in the top-right of the screen. In the bubble I present the mobile version of our site.
Currently when the extension icon is clicked the bubble pops out and the mobile homepage loads. The user can click around within the bubble and use the mobile site as they wish.
However, once the user clicks outside the bubble is closes. Clicking again repeats the above process.
I wondered if there was a way to make the bubble pop-up/out persistent? So, instead of it disappearing when the user clicks elsewhere it stays loaded until the user clicks the extension icon again. This way the button acts as an on/off switch rather than a single event trigger.
Is this possible, and would someone mind directing me to the code which would help me do this?
As stated in the FAQs, this is not possible. However, chrome.windows.create may meet your needs.