|
Low im arnel...
im confused about what specific mobile device i could use to test my
sample program... im using windows mobile 6.0
|
|
|
|
|
That is depend on your targeted device application development.If you are using Wm 6.0 then you can test your application on Winods Mobile 6.0 device like for PPC Samsung Omnia, HTC Diamond, O2 and if you have developed your application for smartphone then you can test your application Samsung Black jack, Moto Q etc.
Pavan Pareta
|
|
|
|
|
Hi guys,
I've been working on a mobile application for making Digital Citations. It is made with EVC++ and i have it running on an HP IPaQ. Unfortunatelly because my work i have little time to keep working on it so I have decide to release the source code. It looks very similar to APS' Pocket Citation but there are some modules missing (camera, printer) that i'd like someone else work on them. Does any body know the way to release this code under GNU GPL license?
I know APS Pocket Citation is quite expensive so I think this way law enforcement agencies will have more affordable options to get digital applications.
Regards !!!
|
|
|
|
|
|
I need help with this function showDialog().
I'm using this to call camera function in my system.Before this i'm using TDS Nomad with window mobile 6 there is no problem with the system and now i'm chnging to new motorola FR68 with window mobile 6.1 it cannot display the camera.It show an error "invalid argument".Is there any different between WM 6 and WM 6.1.
This is my code..
Dim ccd As New CameraCaptureDialog
ccd.Resolution = New Size(50, 100)
ccd.Mode = CameraCaptureMode.Still
ccd.StillQuality = CameraCaptureStillQuality.High
ccd.ShowDialog()
If ccd.ShowDialog() = Windows.Forms.DialogResult.OK Then
If ccd.FileName <> String.Empty Then
PictureBox1.Image = New Bitmap(ccd.FileName)
ccd.Dispose()
End If
End If
i get this error..
message
An invalid argument was specified.
Stack Trace
at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.LaunchCameraCaptureDialog()
at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.ShowDialog()
at camera.Form1.Button1_Click_1()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at camera.Form1.Main()
Can anybody help me with this.Thank alot..
@h3aR
modified on Thursday, September 3, 2009 2:27 AM
|
|
|
|
|
Remove the resolution parameter and see if it works. I speculate your second WM device may not support that resolution.
|
|
|
|
|
Hello all,
this is my first post in this forum, hopefully I am not breaking too many rules at once.
I am writing a mobile application using Visual Studio 2005. When the mobile device needs
to synchronize with a server, I turn on the wireless hardware and then try "pinging" the
server to make sure it is available.
I want the device to try for 30 seconds and then abort with an error message.
This is code I wrote for that (myPing() just sends the string "PING" to the server and the
server is supposed to say "OK" or something like that) :
DateTime endTime = DateTime.Now + new TimeSpan(0, 0, 30);
bool serverFound = false;
while (DateTime.Now < endTime && !serverFound)
{
System.Threading.Thread.Sleep(100);
serverFound = Client.myPing();
}
Strangly, sometimes (but not always !) the loop keeps executing forever. I inserted logging statements to verify that the loop keeps executing (doesnt hang). It's just the condition is never false.
I fixed the code by using this instead :
int endTime = System.Environment.TickCount + (30 * 1000);
bool serverFound = false;
while (System.Environment.TickCount < endTime && !serverFound)
{
System.Threading.Thread.Sleep(100);
serverFound = Client.myPing();
}
Which works fine. Now I would just like to ask: is this a bug in the compact framework ?
Did I do anything wrong ?
Love to hear your comments. Thanks for reading.
modified on Wednesday, September 2, 2009 7:55 AM
|
|
|
|
|
KingLooie, I've never heard the .NETCF has problems (bugs) related to this issue. I do not know how experienced you are but I suggest that you do some search around timers in .NET.
http://msdn.microsoft.com/en-us/magazine/cc164015.aspx[^]
Is the code you post running from the UI thread?
Although you made your code work, try using the OpenNetCF timer in your example to see if it runs exactly the same way even if the phone is in suspended mode.
Fergara.
|
|
|
|
|
Thanks for you comment and your suggestion.
Right now, the synchronisation is triggered by manually pressing a button,
so suspended mode is not a topic. Since it will only work when the user is
in range of the wireless network (before and after a tour) there are currently
no plans to add automatic synchronisation at this time. Maybe later sending
the data using GRPS will be a topic but not yet.
I am not using multithreading either.
About me, I am quite experienced in general windows programming, but I am still
learning new things concerning .NET and mobile development.
|
|
|
|
|
I m trying to Run black berry application on simulator after installing JDK,JRE, Eclipse And Appache Ant etc
But when i Run build.xml As RunAs Ant then get some building erorrs like this
Buildfile: E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
buildAndPackageTarget:
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
clean:
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[delete] Deleting directory E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
[echo] Target ${alias} was cleaned
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
preprocess:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\preprocessed\${alias}
[wtkpreprocess] **************************************************************
[wtkpreprocess] * Antenna 1.0.1 initialized for project "telSPACE Java" *
[wtkpreprocess] * Using Sun Wireless Toolkit 2.5 (CLDC-1.0; MIDP-2.0) *
[wtkpreprocess] **************************************************************
[wtkpreprocess] Preprocessing 40 file(s) at E:\Current\BlackBerry Projects\4th\mfunds-java\src
[echo] Pre-processed successfuly with: ${platform}, ${platformver}, ${alias}, ${alias2}
[typedef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
compile:
[mkdir] Created dir: E:\Current\BlackBerry Projects\4th\mfunds-java\classes\${alias}
BUILD FAILED
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:334: The following error occurred while executing this line:
E:\Current\BlackBerry Projects\4th\mfunds-java\build\build.xml:377: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 18 seconds
plzzzzzzz suggest some solution
|
|
|
|
|
Hi,
for normal .net framework, we can use the existing ini class that uses kernel32.dll.
Is there any similar class for the compact framework?
what is the way i can read an ini file on compact framework???
Thanks.
|
|
|
|
|
The standard Windows functions for INI files are not in the Windows Mobile SDKs so I doubt there's a way to call them from the Framework. You have to implement your own INI file interface (or maybe there's a class available somewhere!?). Otherwise, I suggest using the registry instead...
|
|
|
|
|
|
Hi Everyone,
I am new to smart phone and pocket pc development using visual studio 2005.
I have applied lots of search to get the help for obtaining IMEI number of PPC and Windows mobile using VC++ but could not succeed, if any one know some stuff about that how to get IMEI no of mobile please guide me.
I need only logic how to get it, not need any dll. Though I found some sample in C# I am not sure how to use that. Please concern my thoughts.
Thanks in advance,
Programmer...
|
|
|
|
|
Have you find any way to get IMEI number. If yes, then please can you reply me.
|
|
|
|
|
I could not find any way to get the IMEI number using VC++. So instead of IMEI number,I am using Unique Device ID of the mobile phone which equally serves my purpose.
|
|
|
|
|
|
Hi,
I just want to develop an application where I can turn my PDA or the Storage Card of the PDA to a USB Mass Storage in VB.NET?
Thanks.
|
|
|
|
|
The OEM has to implement that. You won't be able to add that to a WM device on your own. There also has to be certain hardware support for it.
|
|
|
|
|
WM 6.0
Pocket PC
C#
Visual Studio 2008
I have been trying to get the above command to work in order that I can allow the user to lock the device and stick it in his pocket between jobs without it bumping around and entering spurious data.
The instructions seem quite striahtforward and I have followed them.
Declare as ......
[DllImport("aygshell.dll")]
public extern static IntPtr SHDeviceLockAndPrompt();
and call it with....
IntPtr hresult=SHDeviceLockAndPrompt();
When I run the code I get a 0 return but nothing happens.
I have signed the app and I don't get any errors or prompts on the PDA when executing. I can use the lock functionality on the PDA directly and it is fine. I have no passwords set up.
I have a few questions:
1. Does anybody have any idea what I may be doing wrong
2. Does anybody know what should happen. I added a button to one of the forms (launched by another form) in my app and used the on_click event to make the function call. I am trying to picture what should happen to the UI.
3. Assuming that I can't get this to work, does anybody have any suggestions as to how I can disable/enable the app quickly and easliy by the user. I realise that the user could just put the forms into the background and click the WM Lock button but I really need a single click solution.
Thanks
|
|
|
|
|
Hello,
I've got the following problem. We use rapi.dll with the OpenNetCf wrapper api to transfer files to and from Windows Mobile devices. This works perfectly unless ActiveSync is actively synchronising data (e.g. Calendar information). Then the called method just hangs.
Now my question (and I haven't found a solution to this so far):
How do I detect from the desktop application if ActiveSync (or its Vista counterpart - forget that name as soon as I hear it) is currently synchronising to prevent file exchange during synchronization?
I know there's Microsoft.WindowsMobile.Status, but as far as I understand this only works from the mobile device and I need it from the desktop. At least I haven't been able to import it into my desktop solution.
We use .NET 3.5 with VB.NET but any usable solution would do.
Thanks in advance.
Marcus
|
|
|
|
|
HI all,
i m using rapi function to connect with windows based mobile first time when device is connected than i run my application than its establish connection successfully.
but in mid if i reconnect the device than after connection when i chek connection with my application than it shows this error message this is i get by CeRapiGetError "the device is not ready".
please tell me what can i do.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
If the RAPI server on the device does not correctly shut down after disconnection, you will see that error. Are you using a custom RAPI extension?
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|
|
i m using RAPI api those are given in MSDN
like CeRapiUnint(),CeRapiInit()
Joao Paulo Figueira wrote: If the RAPI server on the device does not correctly shut down after disconnection
how can i correctly shut down it.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
To shut things down you must call CeRapiUninit (as you probably are), but please make sure that all device handles are closed. I usually get that when my custom RAPI extension DLLs hang for some reason and the RAPI server becomes unavailable. I never experienced this situation with straight RAPI calls.
There's also something worth investigating: the version of ActiveSync on your PC (if you use XP, that is). For Vista / 7 make sure you use WMDC 6.1.
Regards,
João Paulo Figueira
DAD MVP
|
|
|
|