Guest alhabibam Posted March 29, 2005 Report Posted March 29, 2005 Hi all, I am developing a smartphone application using C# and I need some experts to help me by answering the following questions: 1. How can the data be stored in the mobile. For example if the user of the application entered some data, and I want to save them what shoul I do? 2. How can I insert a time filed in the interface? 3. If my application works like an alarm clock, how can I set triggers to be fired at specified time? 4. What APIs should I use to change the profile settings of the mobile? For example to change the profile to silent!! 5. Where can I find good code samples for smartphone developed in C#? --If you can answer any of the questions, please don't hesitate to reply!! Thanks.
Guest edgecrush3r Posted March 29, 2005 Report Posted March 29, 2005 1. How can the data be stored in the mobile. For example if the user of the application entered some data, and I want to save them what shoul I do? If the datastructures are getting a bit more complex, I would advice using either dataset serialization (DataSet.WriteXML), or using custom serialization with OpenNETCF. 2. How can I insert a time filed in the interface? Write a your own custom control, or use the amazing OpenNETCF DateTimePicker control. 3. If my application works like an alarm clock, how can I set triggers to be fired at specified time? Read up on the Timer and TimeSpan classes. 4. What APIs should I use to change the profile settings of the mobile? For example to change the profile to silent!! Check out the SDK Help file that comes with the Microsoft "Smartphone 2003 SDK". 5. Where can I find good code samples for smartphone developed in C#? References http://www.opennetcf.org/PermaLink.aspx?gu...3c-dd22c9b912a5 http://www.opennetcf.org/ Cheers, Tony Tromp
Guest alhabibam Posted March 29, 2005 Report Posted March 29, 2005 Thank you for your reply. That was very helpful for me, but If you can include some code samples for data storage, and for creating a custom control will be very helpfull. I appreciate your efforts. Thanks.
Guest edgecrush3r Posted March 30, 2005 Report Posted March 30, 2005 Thank you for your reply. That was very helpful for me, but If you can include some code samples for data storage, and for creating a custom control will be very helpfull. I appreciate your efforts. Thanks. <{POST_SNAPBACK}> /* ** Code snipet: storing a DataSet */ private DataSet mydataset; private const string CONST_FILENAME = "data.xml"; private void CreateDataStorage(string strFilename) { DataSet ds = new DataSet("mydatastorage"); // Create dataset tables, references & default records here. //... ds.WriteXml(strFilename); } private string ApplicationPath { get { return Path.GetDirectoryName( Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName); } } private void Form1_Load(object sender, System.EventArgs e) { string strDataPath = Path.Combine(this.ApplicationPath, CONST_FILENAME); if (!File.Exists(strDataPath)) CreateDataStorage(strDataPath); mydataset = new DataSet(); mydataset.ReadXml(strDataPath); } --- For creating custom controls, I advice you to read up on: http://msdn.microsoft.com/library/default....tomctrlssde.asp Cheers, Tony Tromp
Guest alhabibam Posted April 7, 2005 Report Posted April 7, 2005 How can I navigate through forms? I mean how can I close one form and open the other in smartphone...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now