71795

Blackberry - how to send email with attachment?

Question:

In my application, I allow the user to create an image. I then want to give the ability to email that image. The concept is simple, but the execution is a bit more complex.

My first thought was to create my own email screen and send the email myself. I understand how to accomplish this, but I don't like re-inventing the wheel and would like to reuse the blackberry's email functionality.

However, I am unsure about the capabilities of the blackberry and the best approach to take. I'm looking for suggestions and comments on feasibility.

1) Take the image, save it on the handset, open up the email program and let the user send the email

2) save image on the handset, open up email program, programatically attach the image to an email and pre-populate the subject and body fields.

Answer1:

Have a look at these two documents:

<ol><li><a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To_-_Create_an_Attachment.html?nodeid=800544&vernum=0" rel="nofollow">How To - Create an attachment</a></li> <li><a href="http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To_-_Create_and_send_messages.html?nodeid=1008283&vernum=0" rel="nofollow">How To - Create and send messages</a></li> </ol>

Recommend

  • How to reuse code inside a Expression>?
  • Connection ended and command aborted in a script
  • Coldfusion memcached connections
  • Why does this asp.net mvc unit test fail?
  • Constructor/destructor order dependencies between data members [closed]
  • how to check all available variable that have been passed form controller to twig template
  • Spring 3 class to hold and return a single bean instance?
  • Pass Parameter into Modules
  • Customizing whiteboard and powerpoint sharing Lync's features or reusing in custom app
  • Passing through variable to sub in VBA
  • TableCell Data passing to another UIViewController
  • TCP FIN not sent on doing 'close ()' for a multi-threaded TCP client
  • Passing Parameter to Test::Class Setup method
  • int in java runs out of 2 billion, any alternative?
  • PHP/Apache blocking on each request?
  • Backbone + RequireJS: HTML files loaded with RequireJS are interpreted as JS files
  • passing image fetched from a remote source in an activity to another activity using picasso
  • Reuse a LINQ To Entities statement
  • SmtpClient: The maximum number of concurrent connections has exceeded a limit
  • “Invalid Calle” while using MLapp in C#
  • get_variable() does not work after session restoration
  • Performing get/post from server for JSON response in android
  • Can you reuse a moved std::string? [duplicate]
  • calling the onCreate method from the same class
  • Use Bash (sed?) to remove a multiline /* … */ style comment containing specific text (regex)
  • Applicative style parser for constructor with two arguments
  • Vue Component Lifecycle Hooks Not Being Called
  • Is this use pattern of virtual inheritance for “method injection” a known paradigm?
  • Merge multiple arrays by index
  • Classes vs 2D arrays
  • Why copy function is not working inside setTimeout?
  • unable to compile a code when converted into a function
  • Custom Exception Thrown by a Web Service not seen as same type by the Client (using shared assemblie
  • “Portable” JAX-WS client
  • Temporary table in Oracle? [duplicate]
  • Order of variables in the stack (GCC) [duplicate]
  • Image Optimization Using Google PageSpeed Insights and Apache mod_pagespeed
  • just curious to know the difference between spring mvc vs django [closed]
  • android xml drawable parameters
  • C# Test Resources
  • Comparison Visual studio 2015 and Blend for Visual Studio [closed]
  • How to reference a method of a class
  • MTLBuffer allocation + CPU/GPU synchronisation
  • Cells of CollectionView don't fit in screen
  • How to reuse threads using pthread_exit()
  • WSO2 API Manager - context management
  • ninject inject iunitofwork to repository scoped attribute
  • ORA-29278: SMTP transient error: Service not available when running UTL_MAIL
  • Thread Pooling for a method which has a return type
  • static arm64 iOS library does not link in a tvOS project
  • Android - How to set a named method in button.setOnClickListener()
  • Can Application Insights be used off-line
  • Object Pooling implementation ( reusing ) in Unity runner game
  • Can Android App be embedded in Web page like old plain java applet?
  • When viewing a report inside an application, the parameter prompt redisplays when moving to the next
  • Reusing Spring RequestMapping parsing functionality
  • Generating unique int Id for my Java classes used as cache keys
  • Reading single InputStream from multiple methods
  • Saving iterator from python's zip
  • Question related to alignment
  • Connection handling in EJB2 session beans
  • Conditionally use a content_for wrapper in haml
  • How to get exactly Eclipse Editor kind of Tool Tip in RCP/SWT Table cell
  • How to use SQLite database from one platform(iOS) to another(Windows)
  • Django Form Showing No Input Fields
  • Set toolbar for all Activities
  • Render template and I want to the url address change too
  • WPF Mouse Over
  • How to access multiple resources in a single request : Jersey Rest
  • NHibernate query CreateCriteria
  • Android - Defining Custom Component Layouts in XML
  • How to loop each thread with unique data from CSV Data Config file
  • How to change file/folder resource icons from existing eclipse views
  • How can we reduce the unnecessary loading of objects?
  • swap items in a Gridview trouble with the dropped position in Android
  • In XML Schema, why does an element group tag even exist?
  • 64bit Console app / ThreadPool out of memory
  • 2 identical file, how to build a template / component in Vue.js 2
  • Improving site performance with many images
  • open .msg file using Process.Start()
  • How to convert rows to JSON in TSQL select query?
  • Java 8 Comparator comparing static function
  • How do I hook a moment when all views are measured in my Activity?
  • Filter LogCat to get only the messages from My Application in Android?
  • Use apex domain and subdomain for different firebase projects
  • How do you take the results of the UISearchbar in Storyboard and use those results in another viewpo
  • Simple way to count the vowels in a string in PHP?
  • reuse parsed variable with boost karma
  • How do I reuse Oracle sequence gaps in primary key column?
  • How to randomly rearrange lines in a text file using a batch file
  • UIWebView in UITableView reloads everytime I scroll. How do I prevent it from reloading?
  • How to reference array item examples in OpenAPI 3?
  • Extending properties generated using @synthesize in Objective-C
  • Specified element is already the logical child of another element. Disconnect it first”
  • React Functional Components with hooks vs Class Components
  • Problem with std::map::iterator after calling erase()
  • Add with carry on Word8
  • Is there a need to have one ServiceConnection per each Service bind?
  • Specified element is already the logical child of another element. Disconnect it first”
  • how to check if hard drive is eide or sata with powershell
  • How to break reference cycle between view controller and data source
  • Re-evaluate LINQ query when ObservableCollection changes
  • PHP OAuth 1.0 Library that handles an api key/secret pair and endpoints (request,authorization,and a
  • ListView Adapter with multiple Item layouts
  • Clean code - how to design this class?
  • Control language/localization in ExtLib controls?
  • Better way than multiple SELECT statements?
  • how to delete a particular line from random access file
  • shorten smarty if statements
  • Generate random Strings without a shuffle and repetition of previous ones?
  • Advantage and Disadvantage of J2ME?
  • Finding the numerator of a float's fractional value, given a specific denominator [duplicate]
  • Proper way to close connection
  • How to change class dynamically for view controller using interface builder
  • robot framework: test case cannot load keyword in resource file that import in the test suite's
  • won't render when list-property of object is used
  • Custom Authentication Web Service
  • In Grails 2, how do you includeTargets from Gant scripts from a plugin your app is dependent upon?
  • Resuse ViewModel in Asp.net MVC
  • Do i need to specify CSS for media=“handheld” and use of CSS media queries if I'm making a simp
  • Reuse parser within another parser with Scala parser combinators
  • UIView Subclass with a delegate using NIB
  • MSI installer custom action identity problem
  • number/numbers to list by using input() [duplicate]
  • Detecting Windows Tablet (touch windows devices) with Jquery
  • CurrentDateTime() in EF
  • Formatting numbers from 1000 to 10.00
  • What is this error: Missing stack map in …?
  • Trying to add MultiDex support - cannot find symbol context and MultiDex
  • How to optimize painfully slow MySQL query that finds correlations
  • Call a gradle task from java class
  • Java: single-threaded sub-Executor within another multi-threaded Executor
  • How can I serialize entities from an ASP.NET MVC site to XML?
  • Can HTML code be attached to HTML page like CSS file?
  • Select any random string from a list
  • one type of file format in QTreeView
  • QAugmentedReality on BB10
  • C# how can I debug a deserialization exception?
  • Error casting Object[] to ContentValues[]
  • Sequence contains no matching element - Return SiteMapNode matching custom attribute using LINQ
  • Windows UTF-8 printed with chcp 65001 - characters are mysteriously duplicated
  • Umlauts in gnuplot command line
  • Checking launchOptions in Swift 3
  • How to use Try-with-resources with if statement?
  • Attach fancybox to a link inside the fancybox
  • Checking Battery Status in Blackberry development
  • How to reuse eclipse launch file in a new project
  • R Error - cannot change value of locked binding for 'df'
  • Issues with wmode=“opaque” and issues with wmmode=“window”
  • How could I write a BsonDocument object into a file, and read it again, using Java
  • wrong item changes in recyclerview
  • How to exclude files in a custom clean task?
  • Whats the right place for testhelper-classes? (phpunit/best practise)
  • RabbitMQ java client stops consuming messages
  • Scala using regex with or syntax in match case statement
  • Are there any side effects from calling SQLAlchemy flush() within code?
  • Getting unread count in Sent Folder using Google Apps Script - GMail
  • Can my PDF ping my server when it is opened?
  • Symfony 2 error page response
  • Blackberry 6: how to detect a long click on track pad?
  • Creating PDF from TIFF image using iText
  • Two Tables Serving as one Model in Rails
  • How can I tell a form not to dispose a particular control when it closes?
  • Hash Code in SQL Server?
  • Application level floating views with navigation in Android
  • Approximate Order-Preserving Huffman Code
  • as3-flash: any way to access all the instances placed in different frames from document class?
  • Intel-64 and ia32 atomic operations acquire-release semantics and GCC 5+
  • AndEngine Applying Transparancy to AndEngine View
  • Read text file that is not in the main package in a runnable jar
  • Using a canvas object in a thread to do simple animations - Java
  • MonoTouch: How to download pdf incrementally as indicated in the Apple slides “Building Newsstand Ap
  • How to use carriage return with multiple line?
  • Installing Apache MyFaces 2 on WildFly 8.2.0
  • Cancel a live stream “fast motion” catch-up in Flash
  • Avoid links criss cross / overlap in d3.js using force layout
  • Using variable in a value field in jMeter
  • Using jQuery closest() method with class selector
  • QLineEdit password safety
  • C# - Is there a limit to the size of an httpWebRequest stream?
  • Array.prototype.includes - not transformed with babel
  • Is possible to count alias result on mysql
  • Updating server-side rendering client-side
  • Calling of Constructors in a Java
  • How to pass list parameters for each object using Spring MVC?
  • SVN: Merging two branches together
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • sending mail using smtp is too slow
  • costura.fody for a dll that references another dll