How to write a cookie? - General Questions and Answers

Anyone have experience with writing web code for mobile devices? I need to know how to write a cookie. More specifically, I need it to be written by a local HTML file that's opened in PIE.

Related

c# to mysql with new toy

Hi All,
I recently got a new toy, in the form of a pocket PC (mda varrio 3), and want to learn how to program for it in c# using Visual Studio 2008. I have experience of C, Pascal, PHP etc and have a few questions for you all:
1) I have websites with a mysql database and was wondering if c# was good for accessing the data on these websites within an application (not web browser) on my phone?
2) I’m struggling to find basic step by step tutorials that will help me write such an application. Could someone please point me in the correct direction?
3) Are there good websites with lots of c# sample program applications that I can see the code? I have looked on the Microsoft site, but the c# samples seem to be lacking.
Sorry if these questions have been asked before, I had a quick look and couldn’t find what I was looking for ….
Thanks in advance,
Reggie.
Hi,
Connecting from the Phone Directly to MySQL is a bad idea, ideally you should create some sort of webservice or remoting middle tier(afaik .net 3.5 CF supports this). The reason I say this is that the connection string will have to be embedded in the device and anyone with a bit of know how will reverse engineer it and be able to access you MySQL Server.
That said, connecting to MySQL in C# is easy: have a look here for some .net articles : http://dev.mysql.com/usingmysql/dotnet/ (just port the VB to C#).
Thanks
Dave
reggie4 said:
Hi All,
I recently got a new toy, in the form of a pocket PC (mda varrio 3), and want to learn how to program for it in c# using Visual Studio 2008. I have experience of C, Pascal, PHP etc and have a few questions for you all:
1) I have websites with a mysql database and was wondering if c# was good for accessing the data on these websites within an application (not web browser) on my phone?
2) I’m struggling to find basic step by step tutorials that will help me write such an application. Could someone please point me in the correct direction?
3) Are there good websites with lots of c# sample program applications that I can see the code? I have looked on the Microsoft site, but the c# samples seem to be lacking.
Sorry if these questions have been asked before, I had a quick look and couldn’t find what I was looking for ….
Thanks in advance,
Reggie.
Click to expand...
Click to collapse
If you install the Windows Mobile 5.0 or 6.0 SDK (it was an option when you installed Visual Studio, assuming you didn't install the "express" version), or you installed it afterwards, you'll have a directory in C:\Program Files (or your equivalent) for the SDK (for example, on my machine the 5.0 SDK is here:
C:\Program Files (x86)\Windows Mobile 5.0 SDK R2
Under there you'll have everything you'll need to get started. Especially interesting should be the contents of the Samples folder (PocketPC is for devices with touch screens).
Good luck, and have fun!
any c# guide how to connect to mysql would work
.net works the same in 99% of cases on pc and ppc
Thanks Rudegar, I thought as much - but couldn’t find a simple step by step guide including Visual Studio 2008 with example code.
Thanks godefroi, I have had a look in here, but there aren't many c# samples and I can't find one c# to mysql sample.
Thanks DaveShaw, I didn’t explain myself well enough. I have a website with a mysql database on it (on web server) and I wanted to be able to update the site from the net (eg my laptop) and when I am out and about (from my phone). I wanted to write an application that runs on my phone that can read and write data to its own local database (or this web database depending on signal) and then synchronise the local and the web database when 3G signal becomes availabile.
I hope i have explained myself more clearly?

Android PDF Print Driver

Hello,
My phone is the HTC EVO Slide. My question is relating to whether or not there is an application that would give the phone the ability to save or convert word, text, excel documents into PDF documents. Something similar to the ability of the Cute PDF driver on the Microsoft Windows operating system? I have Quick Office Pro installed on my phone and it cannot do this. I am willing to pay for this functionality. Any input would be appreciated.
Thank you,
Peter
I'm also very interested in it.
Somebody who can help us?
+ 1on this.
I really need something like this, but Primo PDF kind of product as I often need to send a doc from my google docs to someone, if and PDF is the best way.
word to pdf
there's an app on adroid market called pdf converter. It takes documents in almost any format and converts it on a server in the internet to a PDF file. hope this helps.

[Q] Windows Program converted to Android App?

I have a Windows program written in VB6 (I know, old), and was curious if anyone knows wether or not it would be possible to convert it to an Android App?
I know this wouldn't be clean, and would require knowledge of VB and the language Android Apps are written in.
The program, in a nutshell, parses XML files, but they are given a specific file extension to that program.
I can provide more info, I just want to know if it is in the least bit possible. As the software that I want to convert has the Source Code released under Creative Commons license and the original author has granted permission to modify the program to suite the end user.
For a better look, the program is called Grapevine and can be found doing a Google Search "Grapevine LARP"
I have an android tablet and would like to use this program from my tablet.
You could do it using basic4android. It has a few posts on its forums where you can get its equivalent to specific vb commands which will help make conversion easier.
I think the site is www.basic4ppc.com
Dave
Sent from my LG P920 using Tapatalk

WIndows Phone 7 Browser as IOS\Android\Desktop

All -
I am trying to write a Web Browser application for Windows Phone 7 and I am able to create a general browser application (not that hard) but the specific site that I am writing the application for does not technically "Support" Windows Phone 7. What I want to do is to have the Windows Phone 7 browser somehow make the site think that it is an Android, IOS, or Desktop machine so the site can be viewed on windows phone. Currently I am just using the general Navigate argument to display the site in a browser control but have not seen any properties to change for the browser to control to tell it what to show the page as, any help would be greatly appreciated. I am doing all of my dev work in VS 2010.
Thank you,
John
You need to set the User-Agent header to a user-agent string used by one of the other browsers. There are a few apps that already do this., incidentally.
jbailey1882 said:
All -
I am trying to write a Web Browser application for Windows Phone 7 and I am able to create a general browser application (not that hard) but the specific site that I am writing the application for does not technically "Support" Windows Phone 7. What I want to do is to have the Windows Phone 7 browser somehow make the site think that it is an Android, IOS, or Desktop machine so the site can be viewed on windows phone. Currently I am just using the general Navigate argument to display the site in a browser control but have not seen any properties to change for the browser to control to tell it what to show the page as, any help would be greatly appreciated. I am doing all of my dev work in VS 2010.
Thank you,
John
Click to expand...
Click to collapse
The Navigate() method accepts a parameter for user agent string. But will only work for initial page requests, not for clicked links from within the webbrowser content.

Android application vs Html 5 pages

I have some requirements for an android application, Since java development will take time, I am trying to figure out if I should code the application using Html5)
1. It should submit some fields from the mobile device to a web application
2. It should be able to capture pictures using camera/gallery and submit to the server/web application
3. It should retrieve some info from the web application and display it (I know that write JavaScript to fetch info from the web application using Ajax)
Can I achieve this using a bunch of Html page running on the mobile phone, or I need to write a designated android/Java application?
Thank you for your help.
shark669 said:
I have some requirements for an android application, Since java development will take time, I am trying to figure out if I should code the application using Html5)
1. It should submit some fields from the mobile device to a web application
2. It should be able to capture pictures using camera/gallery and submit to the server/web application
3. It should retrieve some info from the web application and display it (I know that write JavaScript to fetch info from the web application using Ajax)
Can I achieve this using a bunch of Html page running on the mobile phone, or I need to write a designated android/Java application?
Thank you for your help.
Click to expand...
Click to collapse
You'll have to use Android SDK to build an app, that requires at least Java and C++.
Sent from my SM-S903VL using Tapatalk
Not only ^^, but you'll also have to learn php if you want it to be purely html, since html can't do all that.
Server side I'm ok, I know java, I am asking about client side
Seems like camera interaction is possible with html 5
https://www.html5rocks.com/en/tutorials/getusermedia/intro
Submission to the server is just simple form submit,
And reading from server is possible with Ajax,

Categories

Resources