Database in Phonegap Blackberry - blackberry-webworks

I am new to phonegap - blackberry. I am using Apache ANT, BBWP. I want to connect the database. I refer http://docs.phonegap.com/phonegap_storage_storage.md.html but i cant understand fully. Can any one send me step by step to connect database and its operations. I have some more doubts, How to access access phone music player, and how to read read phone memory / SD card.
Thanks in advance.

As far as I can see, this storage tutorial is about creating your own SQLLite like database. To connect to an existing database on a server, web services with JSON would be a way.
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-quot-I-quot-would-call-a-web-service-from-a-WebWorks-App/td-p/519745/highlight/false

Related

Architecture of iphone app with amazon web service backend

I am creating an iphone app that will connect to a web server for login and for viewing videos.
Here is the workflow for sending a video to another user using the app:
The iphone app will connect to a ec2 instance (multiple instances can be launched and destroyed based on traffic) where a php script will get information about the video (video sender, video recipient, assign video unique id, etc) and store this information in an amazon RDS instance. The actual video will then be stored in amazon s3 with the same unique id that was stored in the RDS.
Is this a good way to go about this or would another way be better?
If I understood your application will be uploading and streaming videos.
I would start with 3 layers, Web, App and DB. In the web and app layer, one ELB and 1+N instances behind it using Auto Scaling. In the DB layer RDS is fine, but depending on the load I would migrate to some flavor of NoSql (DynamoDB, MongoDB, etc). For serving the content I would definitely use CloudFront as CDN to provide a better user experience on the video streaming.
Anyway, I suggest you to take a look at the AWS reference diagrams (http://aws.amazon.com/architecture/), to begin, more specifically the Web Application Hosting and Content and Media serving diagram.
Hope this helps.

Remote MS SQL or MySQL Database on iOS

I currently have a website that uses MS SQL and I am interested in creating an iOS client for that website. I would the app to connect to a remote SQL database that is hosted on my website and then I could pull information from that database and display it locally on the device. I would like to also publish information to the database. I am open to use MySQL.
Is this possible and if so does anyone know of any good tutorials that I could check out?
I'd highly recommend placing a thin web layer between your database and your iOS client. You don't want iOS apps connecting directly to your database (unless this is for your own personal use for limited to a handful of people you really trust).
You could write the web layer in PHP (or whatever you fancy). At that point you can use HTTP and JSON between your iOS app and your database.
Put a web service between the phone and the DB.
There are two options :
You can develop webservices/scripts or whatever server side solution that will make your database talk "publicly"
Use a third-party library (like this) that will make your app communicate with the MySQL database.

iphone XCode-Wifi connection

I am a beginner in iPhone development. I have a single static IP server in my company. I have one web service on that server which gets data from an intranet MSSQL server. I would like to get that data over WiFi to an iPad app, but only over our intranet.
Have any useful links or a sample project? I am using XCode 3.2.6.
It sounds like this is a simple web service consumption scenario, so I would start with consuming it using JSON as the transfer data format and using NSUrlRequest.
Here is an article that walks you through everything you need to know in almost painful detail. It should get you where you wish to go.

How & where to set up DB Server and communicate with iPhone

I'm working on iPhone app that will let users upload/download photos to/from a DB server along with some data associated with each photo.
While I do have experience with iPhone programing, I do not have much experience with DB and server side programing.
Does anyone have any tips on what would be the easiest way to set up DB server and handle requests and responses coming from the iPhone. This server may be potentially required to handle large amount of traffic and preserve data integrity. Several iPhone users might be attempting to upload and modify data associated with each photo at the same time.
I'm thinking of opening a hosted server account so I don't have to purchase hardware and run it from home. Any tips on a company that provides quality and affordable server and DB hosting would be much appreciated.
If you know some Python or Java, you could take a look at Google AppEngine.
It is designed to scale and the entry costs are very low (i.e. free).
You do not have to worry about any infrastructure hosting as it is all provided for you.
The only catch is that it is:
Harder to get data out of the platform if you decided to move off it to another system
Does not support push notifications (However there are a lot of push notification providers out there you can hire)

Can the iPhone only use an SQLite database?

Can the iPhone use other databases besides SQLite, like MySQL?
The iPhone can only use SQLite as a database, directly on the device. This means there is no MySQL server inside the iPhone. But you can, and are free to have (your own) MySQL Back-end server, to which iPhone applications connect to. But Apple doesn't provide the server, so you have to pay the maintenance costs
Not true any more!
The Raima RDM Embedded database SDK will also work on the iPhone. It's cool because it supports the network and relational models, and you can do things like having direct pointers to records for faster access.
They have an official port coming, but their version for Mac works in the iPhone Simulator.
raima.com/iphone
SQLite is installed on all iPhones. Theoretically, you can run other databases but since you cannot start other processes, you cannot run MySQL -- MySQL requires a separate process (the mysqld daemon).