With the help of the parts Manager joined in the other entry Point

Hello world

IM currently building an application that will run on the OS 4.5 I am developing with the Eclipse plugin.

What I try to do is create a context menu for attachments using the Attachment Manager and save it via an alternate Entry Point so that it starts and fits only when the phone starts.

I already read the official BB articles about time to create a custom Attachment Manager and create an alternative Entry Point and I'm sure I followed the instructions correctly.

So here is my main method:

Public Shared Sub main (String [] args)
{
{If (args! = null & args.length > 0 & {args [0] .equals ("att")})}
try {}
AttachmentHandlerManager m = AttachmentHandlerManager.getInstance ();
m.addAttachmentHandler (new AttachmentHandlerEntryPoint());
} catch (Exception e) {}
e.printStackTrace ();
}
} else {}
MyApp PAP = new MyApp();
theApp.enterEventDispatcher ();
}
}

And here's my AttachmentHandlerEntryPoint class:

Import net.rim.blackberry.api.mail.AttachmentHandler;
Import net.rim.blackberry.api.mail.Message;
Import net.rim.blackberry.api.mail.SupportedAttachmentPart;
Import net.rim.device.api.ui.component.Dialog;

/ public class AttachmentHandlerEntryPoint implements AttachmentHandler {}
    
String [] supportedFiles = {'doc', "docx", "xls", "xlsx", "ppt", "pptx", "jpg", "jpeg", "gif", "png", "bmp", 'pdf', 'txt'};
    
public String menuString() {}
return to 'My Attachment Handler';
}
    
' Public Sub run (Message m, SupportedAttachmentPart p) {}
Dialog.Alert ("file name:" + p.getFilename ());
}

{} public boolean supports (String, contentType)
Boolean Val = false;
        
for (int i = 0; i)< supportedfiles.length;="" i++)="">
If (contentType.toLowerCase () .indexOf (supportedFiles [i])! = - 1)
Val = true;
}
Return val;
}
}

As I said, I already set the alternate Entry Point to send the 'att' arg to the Simulator.

THE PROBLEM is that when I start the Simulator and open the mail browser, click on an attachment, but do not see the context menu which is supposed to be created with the AttachmentManager...

Not reallly understand what is happening...

Your help would be very appreciated. Thank you!

You cannot create an AttachmentHandler for the types of files supported natively by the BlackBerry Smartphone. This and other methods of handling of attachments is described here:

Delivering the content of the attachment to a BlackBerry smartphone
http://supportforums.BlackBerry.com/T5/Java-development/delivering-attachment-contents-to-a-BlackBer...

Tags: BlackBerry Developers

Similar Questions

  • How to make a single instance of the application regardless of the main application and the other entry point for the application

    Hello experts,

    I explain the sceniro of my application. My request is mainly a time system as well as some other features related businesses. My app has a landing screen which is actually a custom made calendar that accumulates information captured time. There is also a time where entry screen user at will has worked time and other related information. The user has the option to run the application manually at the entrance of the time and see the reports and there the event listener to follow the events of call/SMS/e-mail that invokes the application automatically and user to the scree of time entry.

    Problem one: I used headphones to follow the events of call/SMS/e-mail. When an event is called, alternet point of entry of the application the application is running. Application then get calls time, contact information etc. and push my entry screen with pre-filled information time.

    As such, it works very well, as expected, but the problem is the number of instence that he is creating. Each track event creates a new instance of the application. I want to keep only one instance.

    Two problems: to solve this problem, I removed the other point of entry and RuntimeStore to keep the running instance of my application. This instance of the application in a way keeps in singletone as such when the listener calls the application it finds that the application is running in the background. Then she moves the application to the foreground. It works very well, I mean the application user interface called on the foreground, but he won't have to time entry screen automatically as I hope. The block of code is as follows,

    public static final long applicationID =0x8ddc44508679bd5bL;
    static NSIApplication NSIInstance=null;
    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    
    if (NSIInstance != null)
                {
                    NSIInstance.requestForeground();
                }
                else
                {
                    synchronized (runtimeStore)
                    {
                        NSIInstance = (NSIApplication)runtimeStore.get(applicationID);
                                            //listener initialization
                        NSIListener.Initialze();
                    }
    
                    if (NSIInstance != null)
                    {                   NSIInstance.requestForeground();
                                        //event's info manipulation and push the time entry screen                                     NSIInstance.RUN_NSIApplication();
                    }
                    else
                    {
                        NSIInstance=NSIApplication.getInstance();
                        NSIInstance.RUN_NSIApplication();
    
                        synchronized(runtimeStore)
                        {
                            runtimeStore.put(applicationID, NSIInstance);
                        }
    
                        NSIInstance.enterEventDispatcher();
                    }
                }
    

    I expect a guideline to follow so that I can reach the expected my workflow. Thanks in advance

    I can't propose to use the runtimestore to store instances of the application, as it was used on an example RIM, he has never worked for me.

    I suggest to use a single point of entry and the automated screen using a global event or status in the runtimestore.

  • Need some explanations on the alternative entry points

    Hello world.

    I'm rather new to BB development, as well as to development in general. Just trying to get how everything works and sometimes unable to understand.

    I already have a request. For now, it only uses one main screen, no matter go, where it is running (icon of application by the systemwide menu item that I added). What I need is to push the different screens on different ways of running the application:

    1. when the application is run from the icon in the home screen, I need to push the screen, which is fine (at least it's done for now and I know how it goes).

    2. when the application is run from the menu item, I need push a completely different screen, which is actually a popup screen (designed for popup on the application is executed). I have already written the popup screen class, but don't really get how I should handle two screens in the MyApp class...

    Any help will be appreciated.

    what you do with the second entry point, it's up to you. a background thread is an option, but not the only one.

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • Pencil of Apple works with the other iPads, or iPad pro?

    Pencil DDoes Apple works with the other iPads, or iPad pro?

    It works with the Pro

  • Error Msg: d3d9.dll lack, not found the procedure entry point, not able to locate the ddetry10, not able to locate ddraw.dll. Help, please!

    has recently had to restore my old computer. When I try to play games on facebook its telling me to install adobe flash plyer x. but it will not be installed. Error Msg: d3d9.dll lack, not found the procedure entry point, not able to locate the ddetry10, not able to locate ddraw.dll. Help, please!

    Hello

    I suggest you to follow the steps in this link and check if it helps:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-files/Dirext-x-file-d3d9dll-is-missing-Baz/2c639497-CFBA-4C6D-9155-f946f8dc1a45

    It will be useful.

  • How can I share 'My images' with the other user accounts on my computer?

    How can I share 'My images' with the other user accounts on my computer?

    where are the 'experts' on these forums adverstised?  I can't get an answer to a simple question.  Does anyone know how to do this?

    Here we are, ok, I'm not an expert, but try this:

    Right click on 'My images' > share > specific people... > select that you want to share this folder with.

    ...

    After that, try to connect by using a different account. If you will not be able to open C:\Users\"FirstUser"\Pictures, you try to extend the network in the left pane of Windows Explorer > expand ComputerName > expand users > expand "FirstUser" > photos

  • Why when I click with the left button of the mouse on the unique tool, you open the window with the other instruments?

    When I click with the left button of the mouse on the unique tool, open the window with the other instruments


    Mohito Hi, this morning, I solved the problem by trying to support. I realized that the problem was in mice, because the click rate is at its highest level, and then click the instruments was like if he did 2. I will now set the minimum speed of the clicks.

    Thank you

  • my up to date iMac can't read installing lightroom 5 dvd I received for Christmas, the dvd player works fine with the other dvd, is it possible to download the program with the serial number of the dvd?

    my up to date iMac can't read installing lightroom 5 dvd I received for Christmas, the dvd player works fine with the other dvd, is it possible to download the program with the serial number of the dvd?

    No need to worry about the disk version. He would just install an update anyway once it has been installed. Download from the link provided below and use the serial number, you need to activate.

    Updates

  • Error number statup topic = the procedure entry point xml name AppleSyncNotifier.exe text reader const could not be located in the dynamic link libxl2.dll

    Original title: sign of problems

    at the start of my system, I get the following, called = AppleSyncNotifier.exe he then continued to say in the dialog = the procedure entry point xml text reader const name could not be located in the dynamic link libxl2.dll, it prevents me from doing whatever it is on the opening page, anyone help? John

    Hello

    AppleSyncNotifier.exe is part of ITunes. To resolve the issue, try the following methods.

    Method 1:

    I suggest that you download and reinstall ITunes since this link provided below to fix the problem.

    http://www.Apple.com/downloads/

    Method 2:

    You can perform the clean boot in order to eliminate the problem.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    See the following article in the Microsoft KB for more information on how to solve a problem by performing a clean boot in Windows Vista or Windows 7:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note:

    After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    For further assistance, you can get in touch with support for ITunes.

    https://discussions.Apple.com/community/iTunes?CategoryID=149

  • Error "the procedure entry point SMapLS_IP_EBP_12 be found in KERNEL32.dll dynamic link library" when you try to play Red Alert: Command & Conquer

    Original title: the procedure entry point SMapLS_IP_EBP_12 could not be found in KERNEL32.dll dynamic link library.

    Ive been trying to install Red Alert: Command and Conquer on my new pc windows 7 and of course he will not play to come with all can't play because its running windows 6.1 and it's a single program of windows 95. then I went through all troubleshooting and change everything to make sure that it works and it actually installed, but when I went to play this message appears and im like why does this happen to me!

    The procedure entry point SMapLS_IP_EBP_12 be found in KERNEL32.dll dynamic link library.

    It of the message, can someone help me?

    Hi BigAl3000,

    Please note that Command & Conquer: Red Alert 3 is the only version compatible with Windows 7.

    Red Alert 2 and red alert are not compatible with Windows 7.

    See Windows 7 compatibility for Command & Conquer: Red Alert for more information.

    To troubleshoot program compatibility issues in Windows 7, try the following methods:

     

    Method 1: Open the program compatibility problems

     

    Most programs written for Windows Vista are also running Windows 7, but some older programs might run poorly or not at all. If an older program does not work, use the program compatibility issues to simulate the behavior of earlier versions of Windows.

    Method 2: Contact the program vendor or the hardware manufacturer

     

    Contact the program vendor for advice on how to solve the problem. In general, the software vendor's Web site provides a support section that you can use, for example, to search for an error message that you receive from the program.

    Hope this information helps.

    Gokul - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • 'The procedure entry point DecodePointer could not be found in KERNEL32.dll dynamic link library '.

    ORIGINAL TITLE: How can I fix this please?

    I have an older version of Windows XP (Home edition) Version 5.1.  Trying to get updated with service packs, etc., I get the pop up message in the box below.  How can I fix the problem?

    'The procedure entry point DecodePointer could not be found in KERNEL32.dll dynamic link library '.

    Thank you for your help.

    The other post:

    We get an error "iexplore.exe - point of entry not found in KERNEL32.dll dynamic link library" so he was trying to use internet explore.

    In Firefox, I have automatic updates verified, but for some reason any I do not receive them.  I need all the service packs for Microsoft.

    When I try to use Internet Explorer to connect to the internet, I get a message that says "iexplore.exe - point of entry not found in KERNEL32.dll dynamic link library" How can I fix?  I get a lot of error messages related to the KERNEL32.dll dynamic link library.

    In addition, for some unknown reason, I lost my software of Microsoft - Word, Excel, etc.  I don't have the disc to recharge.

    Thanks for any help.  This kind of thing is frustrating and I really appreciate the availability of Microsoft Answers for assistance.

    Additional post:

    Im trying to update my computer with SP2 and Windows 7.  Even when I try to use I Tunes and do other things that I receive and message entry point (they vary).

    Here are a couple:
    1. the procedure for DecodePointer entry point could not be located in the line of the dynamic library KERNEL32.dll.

    2. the procedure entry point SHRRegGetValueW be found in the library of dynamic links SHLWAPI.dll.

    I have an old computer. Compaq Windows XP - Home Edition, 5.1.

    A month ago I lost my Microsoft Office software. Word and excel... it was all gone.   I have to reload the diskettes of origin provided with this computer which is about 7 years old.

    Is this thing?  I CAN go on the internet and move OK, but I can't download updates, or I Tunes or much else.

    * Original title: do not get the automatic updates.

    http://Windows.Microsoft.com/en-us/Windows/help/learn-how-to-install-Windows-XP-Service-Pack-3-SP3

    Tom Ferguson

  • Skype error: "Skype.exe point of entry not found the procedure entry point ntalpcsendwaitreceiveport...". »

    Sorry for the ridiculously long title, but that is exactly the error I get.  When I contacted my friends @ Skype that they just told me it's associated windows problem.  I thought, but the error message appear says SKYPE not Windows. Anyway, there is a certain irony in all of this that Skype is a Microsoft company. I'm absolutely furious since Skype perhaps in conjunction with Windows has developed a kind of points of failure...

    Original title: skype.exe point of entry not found the procedure entry point ntalpcsendwaitreceiveport could not be found in the dynamic link library.

    Please note that the thread referenced in 'Question (1)' has been marked as the answer by a moderator, and not by the person who asked the question.  It is highly unlikely that will help in the Safe Mode, starting in a start-up in minimal mode or sfc/scannow configuration. Of course, you're welcome to try these things.

    Uninstall and reinstall of Skype as suggested in "Question 2" would have been my first guess, but a bit of searching online suggests that it also assisted.  Again, try if you wish.  When you uninstall Skype, you will not lose your contacts.

    Research online, I've mentioned suggests that the problem is caused by software Kies from Samsung.  You have this installed on your system?  If so (or even if not), go to C:\Windows\system32 and rename avrt.dll.  You can call it avrt.dlX or something else you like.  Reset.  Let us know if that fixes the problem.  If it didn't, or he did something another break, you can always change the original name (this is why rename is safer than deletion).

    Reference: http://forum.renoise.com/index.php?/topic/31412-solved-ntdlldll-ntalpcsendwaitreceiveport-error-on-startup/

  • the apsGetReady entry point not found in the library of links dynamic wlanapi.dll

    What is apsGetReady?     Do I need?   If yes how can I do?  If this is not the case, how can I remove the window error message.

    """""""""""""""""""""""""""""""""""""""""""'''

    Wzcsldr2.exe found entry point

    the apsGetReady entry point not found in the library of links dynamic wlanapi.dll

    """"""""""""""""""""""""""""""""""""""""""""""""

    Hello

    1. When you receive this error message?
    2. you did it before the issue of any material changes or software?
    3. what service pack and antivirus are installed on your system?
    4. What is the brand and model of the router you are using to connect to the Internet/network

    5 are you facing problems to connect to the Internet or to the network?

    6. are you using any third-party wireless / network in the System Manager software?

    Method 1:

    Step 1: Boot your system in 'Safe Mode with networking' and check if you get the same error message. Then review the article mentioned below to do so:
    A description of the start in Windows XP Mode options:
    http://support.Microsoft.com/kb/315222

    Step 2: If you receive any error in safe mode, please boot your system to the boot and see if the problem still occurs in this mode. Try now to the KB article to perform the clean boot:
    http://support.Microsoft.com/kb/310353
    Important: After you use the clean boot in order to solve your problem follow the steps in the "steps to configure Windows to use a Normal startup state" section to start your system in normal mode.

    Method 2: Please see Using D-Link, if you use D link router.
    http://www.Dlink.com/support/default.aspx

  • Wzcsldr2.exe - Entry Point not found the procedure entry point apsGetReady cound not found in the library wlanapi.dll dynamics. apears after startup

    ---------------------------
    Wzcsldr2.exe - Entry Point not found
    ---------------------------
    The procedure entry point apsGetReady could not be found in the library of links dynamic wlanapi.dll.
    ---------------------------
    Ok
    ---------------------------

    Because the Microsoft Answers forum does not ask for any type of information system when a new question is asked so we don't know anything about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Maybe someday the dialog box 'ask a question' forums XP will ask these questions automatically when a new thread is started so I don't have to ask every time.  It might even be possible to solve a problem in a single response when enough information is provided.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    If the system works, what do you think might have changed since the last time it did not work properly?

    Googling a bit (very little) reveals that the file wzcsldr2.exe or wzcsldr3.exe belongs to a kind of device from D-link wireless connected to your system.

    Fact that sound familiar and you have something like this installed?

    If Yes, then I would get the page Support D-Link and find the latest driver for any device you use and install it.  You may need to first uninstall your device running - I'm sure they must have instructions and tips for the procedure.

    They also have an active Support Forum where you can post your problem/question to see if people there can help you get there.  There is already some discussion in the forums about the problems you describe, but since we know absolutely nothing about your system, you should probably take it yourself.

    I found a few other ideas through Googling, but I don't like some of the ideas I've read and if you stuff worked before, what do you think has changed since the last time it worked correctly?  Did you update or reinstall your device from D-Link or drivers, lately?

Maybe you are looking for

  • WDS Airport Roaming vs vs Extended Network

    Hello friends, In a roaming network, all airports have the same wireless network name and wireless security settings. If I'm not mistaken in WDS also the same rule should be followed. Is also applicable to a network of Airport Extreme Extended (1 mai

  • Mozilla crashes whenever I open it

    It started the other day, but I opened it in safe mode and it worked very well. I closed it, and it will not open again. Computer to reboot, nothingUpdating firefox, nothingUninstall and reinstall, nothingIt opens at all, and I incedentally sent abou

  • Where is the DjVu plug?

    I use the DjVu plugin for years without problem. It worked fine yesterday.This morning, he disappeared from Firefox. Multiple downloads, installs, uninstalls, restarts and reboots later, and I still no DjVu in Firefox 21. It works in IE 10, so it's i

  • Firefox 14.0.1 and 0.7.9 Session Manager.

    Started having this problem with FF13.My standard session has 3 tabs (Group 1 and 2 webmail). Launch of FF14.0.1 the 3 tabs display but only 1 actually charges. I have to click on the other 2 to load individually. Of course, once loaded, they remain

  • How can I restore Firefox 6 after updating to Firefox 7? Extension of the key does not work.

    I use Roboform constantly. I understand that my (7.x.x) version is not yet supported in Firefox 7, but somehow the update of Firefox was triggered in a moment of unconsciousness. Could not find a way to restore Firefox 6 until compatibility issues ar