Hi Shweta, By a "floating menu", do you mean a prompt? You should take a look at Prompt.jsm [1] and see if that does what you want. We currently don't have an API detecting a long click on the navigation bar, but wesj is working on that in a bug [2].
The places API used for desktop does not work on mobile because we have a different history/bookmarks database schema. There's a bug filed on making the add-on SDK compatible [3], but it doesn't look like there's been much progress on that (cc'ing jsantell in case he knows more). You can always manually run SQL queries on browser.db (located in the profile directory), but that is not very robust, since our schema could change, and I worry that approach may introduce performance/stability issues for the browser. Hope that helps, Margaret [1] https://developer.mozilla.org/en-US/docs/Extensions/Mobile/API/Prompt.jsm [2] https://bugzilla.mozilla.org/show_bug.cgi?id=853700 [3] https://bugzilla.mozilla.org/show_bug.cgi?id=894628 On Sun, Nov 10, 2013 at 2:47 PM, Shweta <[email protected]> wrote: > > > Hello, > > Using: > > User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 > Firefox/25.0 > > > I am developing an addon for the firefox for android. Actually, this is the > version for the mobile because the desktop version is already done. As the UI > differs, I've been learning how to access the UI of the firefox browser in > android. I've seen all these tutorials and were of great help: > https://developer.mozilla.org/en-US/docs/Extensions/Mobile/API/NativeWindowhttps://developer.mozilla.org/en-US/docs/DOM/window.NativeWindow > > I can't find anywhere how I can make a floating menu when for example, the > page action button is long clicked or the menu item is clicked. Is there a > way I can create those floating menu with the addon sdk or any other way? > > > I wanted to access the navigation bar and detect when it is long clicked and > add a menu item in its floating menu but I don't know how to access it. Is > there any way? > > I also want to access the firefox's bookmarks but the places API I used for > the desktop addon didn't work! So I don't know how to access it. Can I access > the floating menu that appears when a bookmark is long clicked? That would do > the work! > > Please help me!! > > > > Thanks a lot. > > Greetings, > > Shweta. > > > _______________________________________________ > mobile-firefox-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/mobile-firefox-dev > >
_______________________________________________ mobile-firefox-dev mailing list [email protected] https://mail.mozilla.org/listinfo/mobile-firefox-dev

