Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

Recorder That Emails the File

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2009, 10:10 PM
Newbie
 
Join Date: May 2007
Posts: 6
Default Recorder That Emails the File

I wanted to record a file and create a task. Unfortunatly, I do not see a attached file command for tasks. So, I created a simple voice recorder with the file sent to an email address. A copy of the file is left on the device in case the email does not get sent. Pretty simple and the samples on the site were a huge help. Thank you for the record library. I am open to any suggestions.
Attached Images
File Type: jpg sshot001.jpg (11.2 KB, 75 views)
Attached Files
File Type: zip recorder001.zip (16.2 KB, 91 views)
Reply With Quote
  #2 (permalink)  
Old 07-13-2009, 06:00 PM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by craigisaacs View Post
I wanted to record a file and create a task. Unfortunatly, I do not see a attached file command for tasks. So, I created a simple voice recorder with the file sent to an email address. A copy of the file is left on the device in case the email does not get sent. Pretty simple and the samples on the site were a huge help. Thank you for the record library. I am open to any suggestions.
Thanks for the recorder progam. Compiles and works on my device. When I try to run it from the IDE on the desktop I get an error on line 22: EmailSender.New1 - the type initializer for Email.EmailSender threw an exception. Is this because the outlookdesktop library is a dummy library with all the methods and properties, but without functionality? If so, what would the equivalent library and calls be for the desktop? It seems with conditional code it could be made to work with the desktop and device.
Reply With Quote
  #3 (permalink)  
Old 07-13-2009, 08:57 PM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 269
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by bparent View Post
...Is this because the outlookdesktop library is a dummy library with all the methods and properties, but without functionality?
Yes, the OutlookDesktop Library is for using the desktop IDE whilst writing your application for the device. Outlook.dll is only for the device. Agraham or Erel will no doubt chip in soon with a more detailed explanation.
Reply With Quote
  #4 (permalink)  
Old 07-14-2009, 07:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Your explanation is correct. In order to compile an application with device libraries there must be matching desktop libraries. For some libraries those matching desktop are only 'dummy' libraries.

You can send mails on the desktop with the DesktopOnly library. However I don't think that you will be able to record audio on the desktop with the current libraries.
__________________
Basic4android documentation
Reply With Quote
  #5 (permalink)  
Old 07-15-2009, 02:40 AM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by Erel View Post
Your explanation is correct. In order to compile an application with device libraries there must be matching desktop libraries. For some libraries those matching desktop are only 'dummy' libraries.

You can send mails on the desktop with the DesktopOnly library. However I don't think that you will be able to record audio on the desktop with the current libraries.
I believe I understand, but when I try to run the program from the desktop with only the outlookdesktop library get type initializer for email.emailsender threw an exception. What does this mean?
Reply With Quote
  #6 (permalink)  
Old 07-15-2009, 04:00 AM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by bparent View Post
I believe I understand, but when I try to run the program from the desktop with only the outlookdesktop library get type initializer for email.emailsender threw an exception. What does this mean?
Ok, found a mistake. The program as found in the zip file had outlook.dll for the desktop I believe. I removed all components for device and desktop then added outlookdesktop.dll. Now the exception has gone away. However, the accounts list is empty although I have an account with Outlook Express. Does the outlookdesktop library not work with Outlook Express? Thanks.
Reply With Quote
  #7 (permalink)  
Old 07-15-2009, 06:09 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

OutlookDesktop is a 'dummy' library without any functionality.
__________________
Basic4android documentation
Reply With Quote
  #8 (permalink)  
Old 07-15-2009, 06:17 PM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by Erel View Post
OutlookDesktop is a 'dummy' library without any functionality.

Ok, thanks I thought a dummy library lacked functionality, but Post #4 above indicated emails could be sent with the desktop library from the desktop.

Is there a .Net dll that could be used for desktop Outlook functionality?
Reply With Quote
  #9 (permalink)  
Old 07-15-2009, 06:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can send mails with the DesktopOnly library.
__________________
Basic4android documentation
Reply With Quote
  #10 (permalink)  
Old 07-15-2009, 07:22 PM
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Quote:
Originally Posted by Erel View Post
You can send mails with the DesktopOnly library.

I apologize. Now I see you told me before to use DesktopOnly for desktop and not OutlookDesktop which is dummy library. I was not reading carefully to note the distinction.

Thanks again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
player-recorder derez Share Your Creations 5 11-23-2009 08:59 PM
Recorder Erel Additional Libraries 11 12-23-2008 05:36 PM
Need to access and manipulate emails / email folder on device blue_wardrobe Basic4ppc Wishlist 2 07-03-2008 04:22 PM
Program crashes in recorder.dll HARRY Questions (Windows Mobile) 5 03-09-2008 08:26 PM
Calendar Recorder Rioven Share Your Creations 5 10-21-2007 07:55 AM


All times are GMT. The time now is 02:12 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0