|
can some one please help me on this one? am trying to make a mobile application that posts data onto a remote database. am using netbeans IDE. all i really need is setting up the connection i.e(the connection string or whatever java uses), with the database and maybe an example of an sql query with it..
|
|
|
|
|
How to searching bluetooth devices in c#.net?
using InTheHand.Net;
using InTheHand.Net.Sockets;
using InTheHand.Net.Bluetooth;
BluetoothRadio.PrimaryRadio.Mode = RadioMode.Discoverable;
BluetoothRadio myRadio = BluetoothRadio.PrimaryRadio;
lblSearch.Text = "" + myRadio.LocalAddress.ToString();
bluetoothClient = new BluetoothClient();
Cursor.Current = Cursors.WaitCursor;
BluetoothDeviceInfo[] bluetoothDeviceInfo = { };
bluetoothDeviceInfo = bluetoothClient.DiscoverDevices(100000);
comboBox1.DataSource = bluetoothDeviceInfo;
comboBox1.DisplayMember = "DeviceName";
comboBox1.ValueMember = "DeviceAddress";
comboBox1.Focus();
Cursor.Current = Cursors.Default;
this code run but the code finish at a second and can't find any mobile bluetooth device.
i want search bluetooth in period of time . for example search device for 10 second and find any bluetooth devices.
thanks for your help and your guide.
best regards.
|
|
|
|
|
I don't know the complete answer to your question, 'cause I'm not very literate in C#, however... I don't see any timers, and I don't see you returning anything to verify something was found.
I would have expected to see at least a 'for' loop.
Also, is the radio even turned on? BluetoothRadio.PrimaryRadio.Mode would set it I think.
Sorry for not helping your exact question, but I think this might get you on the right path. Maybe an expert could chime in and help more (Or at least let you know if I was completely off-base here...lol).
Herb
|
|
|
|
|
hai all,
any tool for testing the (memory leak, resource leak, CPU time usage, battery usage, etc) performance of windows mobile devices when the application is run..
Best Regard's
Mathy's
|
|
|
|
|
|
Hi all,
in my application i am sending sms using AT commands for GSM modem and SmsSendMessage for pocket pc.
its working fine and send msg successfully in both cases.
when i send sms than at recevier side my mobile number display as sender details.
is there any option by which i can set some name or label to display on reciver side instead of my mobile number?
please help me for this.
provide me info and guidlene for this.
thanks in advance.
|
|
|
|
|
hi
in Windows-Mobile, how to open the phone ? (that will be enable)
thanks in advance
|
|
|
|
|
Hello GoldSoft,
In the windows mobile OS is responsible to access the available connection on your device either that is GPRS or WiFi or your device is connected with the computer system. In this case if your application is making request to server that time OS will take care which connection is using.
Pavan Pareta
|
|
|
|
|
I can find several articles on the web detailing how to get a contact (and I have that working) but I can't figure out how to get specifically the "Mobile" phone number. Can anyone help.
|
|
|
|
|
Hi All
How can i send data PC to Android phone through code?Please give me tips.
Thanks in Advance
|
|
|
|
|
Your question is very vague. If your phone supports wifi, i think you can use normal network programmnig to communicate with pc.
Which type of communication is you looking for ?
If u can Dream... U can do it
|
|
|
|
|
Thanks for reply
I am looking USB Cable communication.
|
|
|
|
|
hi
how to prevent the touch screen in windows-CE ?
by C# code
thanks
|
|
|
|
|
|
Hi Member
I am new in android development.I try to send or install .apk file in android phone using the command adb install test.apk through USB Device.i command return error
error device not found
I have test the code in enumerator then it's working fine.
Can any one tell me where i am wrong?
Please help me
|
|
|
|
|
Make sure that you have enabled USB debugging in the Application Settings on the phone.
|
|
|
|
|
make sure that your device is present : adb devices , if it not there , you may want to install drivers.
nexus one(and some others too) will be present when u install the android package.
If u can Dream... U can do it
|
|
|
|
|
|
Background:
I'm writing a CF 3.5 application that is to run on a WINCE 6 embedded device. I have a 2 solution setup where one solution is targeting CF3.5 and another solution targeting the full framework. I had to do this because the VS test internals require full framework. It's very nice to be able to use the full framework unit test bits.
Issue:
I don't have hardware as of yet, and I don't want to run a risk by assuming that because my unit tests run well on the desktop that they will run fine on the embedded device. I would like to constrain the memory use that my components are allowed to use. Is there a way, directly or indirectly, to accomplish this?
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
hello guys... I was trying to write a program in which we can get the call history info and display it in the list box. Well this builds successfully and shows me no error but neither it shows the output. Here is the small code im using....
HANDLE hPhoneLog = NULL;
HRESULT hr = S_OK;
CALLLOGENTRY PhoneEntry;
TCHAR tchPhoneEntry[1024] = TEXT("\0");
TCHAR tchIOM[64] = TEXT("\0");
TCHAR tchFrom[128] = TEXT("\0");
hr = PhoneGetCallLogEntry(hPhoneLog, &PhoneEntry);
if(FAILED(hr))
{
MessageBox(L"PhoneGetCallLogEntry() Failed . . .",L"",MB_OK);
}
if(hr == S_FALSE)
break;
switch(PhoneEntry.iom)
{
case IOM_MISSED:
wsprintf(tchIOM,L"Missed Call");
break;
case IOM_INCOMING:
wsprintf(tchIOM, L"Incoming Call");
break;
case IOM_OUTGOING:
wsprintf(tchIOM, L"Outgoing Call");
break;
}
if(PhoneEntry.pszName != NULL)
_tcsncpy(tchFrom, PhoneEntry.pszName, 128);
else if(PhoneEntry.pszNumber != NULL)
_tcsncpy(tchFrom, PhoneEntry.pszNumber, 128);
else
_tcsncpy(tchFrom, L"Unknown", 128);
SYSTEMTIME sysTime;
wsprintf(tchPhoneEntry, L"%s From %s on %d - %d - %d", tchIOM, tchFrom, sysTime.wDay, sysTime.wMonth, sysTime.wYear);
LPCTSTR msg = tchPhoneEntry;
m_listHistory.AddString(tchPhoneEntry);
if(PhoneEntry.pszNumber)
LocalFree(PhoneEntry.pszNumber);
if(PhoneEntry.pszName)
LocalFree(PhoneEntry.pszName);
if(PhoneEntry.pszNameType)
LocalFree(PhoneEntry.pszNameType);
if(PhoneEntry.pszNote)
LocalFree(PhoneEntry.pszNote);
whats the problem ...thnx
|
|
|
|
|
hai all,
the following code is working fine when am using MFC application..
but when i using the same code in C# is not working.
so how to i convert the C code to C# code for smart device apps.
typedef BOOL ( __stdcall *GetSerialNumberNAME )( PTSTR );
PCTSTR const DEVICE_LIBRARY_NAME = L"apiFun.dll";
PCTSTR const SerialNumber_NAME = L"GetSerialNo";
TCHAR szSerialVersion[ MAX_PATH ] = {0};
//get SN function
HMODULE hModule = LoadLibrary( DEVICE_LIBRARY_NAME );
let me know plz...
Best Regard's
Mathy's
|
|
|
|
|
|
Dear All,
I am developing smart device application using .net 3.5,
I have problem when adding menu to form,when I run the application
shortcut added for each menu item
for example
MnueItem1 -(A)
MnueItem2 -(B)
MnueItem3 -(C)
Regards
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
Amr M. K. wrote: I have problem when adding menu to form
It would help if you explained exactly what your problem is, people cannot guess.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
I have already explained
anyway
You have menu in Mobile Forms
private System.Windows.Forms.MainMenu mainMenu1;
try to add sub menu to this mainMenu1
private System.Windows.Forms.MenuItem menuItem1;
menu item text is "RunApp" do whatever event
when I run the application in windows mobile Prof 6.1
menu item test text display "RunApp (A)"
its like shortcut ??
Yes. CreatiVity withOuT limiTs
|
|
|
|