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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Using RAPI library to transfer database from device to desktop

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-01-2008, 05:34 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default Using RAPI library to transfer database from device to desktop

Hi Erel,

I use RAPI library to transfer database (sqlite) form device to desktop. I'm using ActiveSync 4.5. When I input data in the device, nothing (the same database? ) created in the Apppath on the desktop. What else should be done? The code for your perusal:

Sub App_Start
Form1.Show
rapi.New1
rapi.Connect
....
....
End sub

....
....

Sub rapi_connected
If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
rapi.CopyFileFromDevice1("\My documents\kamlapur.sl3",AppPath)
End If
End Sub

I checked that the database "kamlapur.sl3" is being created in the dvice (My documents).


Sorry, if I fall short to make sense to you with my poor knowledge.

regards
Reply With Quote
  #2 (permalink)  
Old 04-01-2008, 07:44 AM
Senior Member
 
Join Date: Apr 2007
Location: Canari Islan
Posts: 103
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Can be a problem writing has written "ture" instead of "true"


If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
Reply With Quote
  #3 (permalink)  
Old 04-01-2008, 08:02 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default

I'm ashamed.

Thanks and regards
Reply With Quote
  #4 (permalink)  
Old 04-01-2008, 08:39 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default

Hi manu,
with the amendment, the code executed well on the desktop. but on the device gives errer message like:

An error occurred on sub app_start.

Line number:21

rapi.new1
Error descirption:NullReferenceException continue?


What is the mistake have I done?


regards
Reply With Quote
  #5 (permalink)  
Old 04-01-2008, 08:55 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

From the RAPI Help Overview

"The RAPI library (Remote API) is a desktop-only library which allows communication between the desktop and the device using ActiveSync."
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
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions (Windows Mobile) 19 10-27-2010 01:08 PM
RAPI library and IDE agraham Beta Versions 2 09-15-2008 05:40 PM
Problems using rapi to send files to desktop sunnyboyj Questions (Windows Mobile) 4 01-06-2008 05:40 AM
Transfer to Device for test enonod Questions (Windows Mobile) 5 10-13-2007 06:42 AM
RAPI library leo Questions (Windows Mobile) 3 05-23-2007 06:04 PM


All times are GMT. The time now is 09:08 AM.


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