BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-26-2009, 05:02 PM   #1
pfluger
New Member
 
Join Date: Aug 2009
Model: 9500
PIN: N/A
Carrier: o2
Posts: 1
Default ApplicationMenuItem/EventInjector problem ($100 for a solution)

Please Login to Remove!

We need access to the Screen instance of the browser, contacts, media app and phone (and possibly more).

Our current solution is to add a ApplicationMenuItem of type MENUITEM_SYSTEM.

Code:
ApplicationMenuItemRepository.getInstance().addMenuItem( ApplicationMenuItemRepository.MENUITEM_SYSTEM, new TestAppMenuItem() );
This will be shown in most apps on the device. When the user selects this menu item the run() method is called in the foreground app's space and we are able to get the Screen instance using

Code:
Ui.getUiEngine().getActiveScreen()
The problem with this solution is that whenever an app is exited and relaunched the user has to reselect the menu item so we regain access to the Screen instance.

One possible solution would be to use a background thread to monitor which app currently is in the foreground. As soon as one of the apps we are interested in is in the foreground (and we do not yet have access to the Screen instance) use EventInjector to post KeyPress events to open our ApplicationMenuItem.

The problem with this solution is that the menu will be visible for a short period of time. There will also be a chance that the user interferes this process.

We are searching for a solution that gives us the Screen instance on launch of an app without showing the menu or other major visible/interfereble activities on the screen. The solution has to work on OS 4.7+

This seems to be possible as the application StopTilt by Empower is able to do just that. It probably is doing some variation of the EventInjector solution. There is no menu visible. The only visible activity is a short focus change in the bottom toolbar on some apps on the Storm, which would be perfectly fine with us.

We are willing to pay $100,- to anyone who can give us a working sample code that solves this issue.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Mitsubishi Control Board DM00N649.  SM76A127G02 . Ductless unit 47-0910KR (C64) picture

Mitsubishi Control Board DM00N649. SM76A127G02 . Ductless unit 47-0910KR (C64)

$120.00



Windsor Commodore Fastraction Carpet Cleaner CMD picture

Windsor Commodore Fastraction Carpet Cleaner CMD

$1995.00



3D MULTIMEDIA VIDEO CARD C64/V2 1MB picture

3D MULTIMEDIA VIDEO CARD C64/V2 1MB

$94.05



1x Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC picture

1x Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC

$26.50



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.