|
Hello Everybody .... I have been working on C# Windows Application almost for 2 years and .. But now I wanted to start working on Devices like mobiles ... Is that possible to write some code and to run on mobiles?? .... If yes I will move on working on it ...just give me ur suggestions
Thank you alll
|
|
|
|
|
if your device supports the .NET Framework (or the .NET Compact Framework), then you can create apps for it using C#.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
Is there any mechanism to know whether the .Net Framework work resides in or no? ... just for e.g .. I wanted to transfer Phonebook from ma PC to ma Nokia mobile ... using either bluetooth or USB cable ....
Thank you for your response
|
|
|
|
|
yes. it starts by reading the documentation to discover whether .NET *can* run or not on your mobile.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
|
|
|
|
|
You're a cruel man, Luc!
Luc Pattyn wrote: reading
Nasty.
Luc Pattyn wrote: documentation
Ouch!
Luc Pattyn wrote: discover
There is no excuse for that kind of language in here! Please go and wash your mouth out with <SOAP>
All those who believe in psycho kinesis, raise my hand.
My 's gonna unleash hell on your ass. tastic!
|
|
|
|
|
OriginalGriff wrote: wash your mouth out with soap
Sorry, can't do that, the soap documentation warns me against it. I'll have a instead. If that doesn't help, I'll try another one.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. [The QA section does it automatically now, I hope we soon get it on regular forums as well]
modified on Thursday, January 28, 2010 2:46 PM
|
|
|
|
|
Nokia (AFAIK) have never used a Windows OS so no .NET Framework has ever been available on aby device of theirs. They mainly use their own OS or Symbian, on a few high end devices they have used Linux.
You're best bet might be to look at HTC (mainly Windows Mobile but some are Android) or a few recent Samsungs.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
So u r saying that i must have to learn their OS in order to operate on Nokia?
|
|
|
|
|
|
Hey ma frnds ... I was working on ListViewItem and I want to put check boxes on 2 columns ... Can u tell me how to do that?
Thank you.
|
|
|
|
|
|
hi, i need your help
when i insert data in my table show error
Error is
ERROR [42S02] [Microsoft][SQL Native Client][SQL Server]Invalid object name 'test'
and i use this coding
string MyString = "Select * from test";
OdbcConnection cn = new OdbcConnection("Driver={SQL Native Client};Server=localhost;UID=sa;PWD=java;");
OdbcCommand cmd = new OdbcCommand(MyString, cn);
cn.Open();
MessageBox.Show("Connected");
cmd.CommandText = "insert into test values ('" + textBox1.Text + "','" + textBox2.Text + "')";
MessageBox.Show(cmd.CommandText);
cmd.ExecuteNonQuery();
cn.Close();
Thanks In Advance
jawad khatri
|
|
|
|
|
Did you verify that you have a table named "test"?
|
|
|
|
|
|
You also didn't supply which database or catalogue you wish to connect to, so you are probably just connnected to the master database which I very much doubt has a table called test. Add a Database=[dbname]; section to your query string.
|
|
|
|
|
cmd.CommandText = "insert into test values ('" + textBox1.Text + "','" + textBox2.Text + "')";
---------------------------------------------------------------------------------------
try this one....
cmd.CommandText = "insert into test values ('" textBox1.Text + "','" + textBox2.Text + "')";
|
|
|
|
|
Hi. anybody pleas tell me how work with a-gps on windows mobile.
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
serialPort1.BaudRate = 4800;<br />
serialPort1.PortName = comboBox1.SelectedItem.ToString();<br />
serialPort1.Open();<br />
timer1.Enabled = true;<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
<br />
}<br />
<br />
private void timer1_Tick(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
string data = serialPort1.ReadExisting();<br />
listBox1.Items.Add(data);<br />
}<br />
catch(Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
}<br />
<br />
this code work with gps device, but if I run app on phone with a-gps - it crash with OutOfMemoryException
|
|
|
|
|
the only line here could couse to crash with exception is: listBox1.Items.Add(data); . You put it in timer, and it will crash after certain time.
I do not know about windows mobile, but I know that in 32bit of windows have a limit to 4,294,967,295 numbers of items before it reach limit. You attempt to hold all data in memory. This is a bad design
|
|
|
|
|
this code work on windows mobile 6.0 more then 3 hours without pause. but when I run it on windows mobile 6.5 and connect to a-gps device it crash.
|
|
|
|
|
I cant point to what exactly is problem, but is the only infromation you get that it is exception OutOfMemoryException?
You will probalbly get more information if you use exe with debugging information
|
|
|
|
|
I wont to know haw van I take coordinate from a-gps. Code that I post work excellent with GPS device and didn't work with a-gps.
When I take it string data = serialport.ReadExisting() app crashed with OutOfMemoryException
|
|
|
|
|
did you tried stancrm suggestion?
If it doesn't help, i do not know how to help you
|
|
|
|
|
|
hmmm this error only on windows mobile 6.5 and mobile phone
6.0 or 6.1 or PDA work good
error on string
string data = serialPort1.ReadExisting();
or serialPort1.ReadLine();
maybe I must read data from com port and gps use other method?
|
|
|
|
|
Hi,
I have developed an application to test some devices. The idea is to send and recieve message by device on each device in parallel. I can set for each device a timing (e.g. 100ms) between each message sending.
For that I have used the thread with time but it seems that is not the good idea because if the execution of the function need more time than the time between each send, the call is stacked into the pool execution. So when I stop the test execution, the application continue to send message due to the queue of execution in the pool.
I think that I use to many thread for one application and the runtime is very slow due to context switching or something like that.
Have an idea about the good possibility to do this application ?
I think maybe that is better if I use one service by device and the application is connected to each service to retrieve some status information. What do you think ?
Thank you for your answer...
|
|
|
|