|
Thanks for the help. The problem was even in the constructor
|
|
|
|
|
You're welcome!
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Nice! "Getters" that update properties ...
Why didn't I think of that.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Thanks for the help. The problem was even in the constructor
|
|
|
|
|
Hi all..
I am working on a project in c#.net for the customer administration in the company where I work. The administration asked me to add a feature for the project which allows for the user of the system (my C#.net project) to connect to the customers by clicking their numbers shown on a list on a window and then the Android phone of the user responses automatically for clicking and do a call to the customer who has the clicked number.. In other words, how to make my c#.net project dials customers' numbers by using android phone's SIM card (GSM or CDMA). I don't know how I start. I have already tried to search in the internet, but I found so rare and insufficient information about this topic.. So, I need to know all requirements and all details in order for this feature works. So I really need a help for this issue. Thanks in advance.
|
|
|
|
|
|
Hi, OriginalGriff
Thank you so much for helping, I will study your suggestions carefully.. thanks again
|
|
|
|
|
You're welcome!
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Let me see if I have this straight. The code will run on the phone (so I am assuming you are writing this using Xamarin) and you want to dial someone else's phone. Is this correct?
This space for rent
|
|
|
|
|
Hi, Pete O'Hanlon
Thank you so much for your reply.. The code will be run on laptops not on phones, so when a user works on a laptop, which the project will be installed on, and the customers' window will be appearing which has a list of customers' phone numbers, then just by clicking any phone number from the list, the user's android phone directly calls the number which has been clicked on the list.. I hope the idea got clearer, thank you..
|
|
|
|
|
Who is the user, and who is the customer? And how does the laptop send the dial commands to the Android phone?
|
|
|
|
|
Richard MacCutchan wrote: how does the laptop send the dial commands to the Android phone?
That's probably what he's asking!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Yes, but not actually thought about it.
|
|
|
|
|
This isn't a trivial thing to do and is going to require the Android phone being set up to act as a mobile hotspot. Once it is available as a hotspot, the PC is going to have to connect to it and establish a Peer to Peer connection as a background service (the Android samples demonstrate how to find the IP address). Once the connection is established, you're going to send messages from the PC to the phone over this service telling it to make the call (you're going to have to use an Intent here - Google it). To be honest, unless you use Xamarin on the phone, the vast majority of what you are going to do here is going to be Java and you're going to have to get very comfortable with the Android SDK.
This space for rent
|
|
|
|
|
Thank you so much for your help.
I think the suggestions presented by OriginalGriff are good and can help me, but I am still studying them and I will test the solution that I will do based on the suggestions. When the solution works good and accurately, I will share it for all here.. also I consider your suggestion and I will try making a solution base on.. thanks so much, brother
|
|
|
|
|
Doesn't "Skype" handle "click a number and dial" type of calls?
Why does the "user" (i.e. Administration) even need a "phone"?
Is this for a "call center"?
What about VOIP?
(My last "user" wanted me to write a CSV extract because they didn't know how to "split a column" in Excel ... even though they "used Excel a lot". This sounds similar.)
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Hi,Gerry Schmitz
Thank you for your response..
For Skype, the Skype needs to be connected to the internet, and the policy of the company, where I work, relating to the internet using prevents running internet applications, so Skype is one of them.
The user who will work with my project needs to contact with the customers a lot and executes some another tasks, so he needs to do the calls faster because if he uses the traditional way to contact with customers (dialling the customers' numbers manually), this way will waste time, and will make him under stress. The calls are for customers mobile phones, not for a call center.
For VOIP, this technique is new for me, and I don't know how it works with VC#.NET. If you have any information about how to program it using VC#.NET, please share them..
Thanks
|
|
|
|
|
Your company needs to examine it's "policy".
A "Skype connection" does not imply unfettered internet access.
I'm at the point where I tell users their (outdated) "policies and procedures" need to accommodate the new realities (or find another "yes" man).
It's the user machine configuration that's at the core of this.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Dear
I have futronic fs80 fingerprint scanner and I want to integrate with c# so I searched online but I didn't find any sample code or tutorial how to integrate it with c# also on
futronic website but it didnt give me any obvious way so I need your help?
|
|
|
|
|
Contact the manufacturers; they are most likely to have an SDK that goes with the device. If they don't then demand your money back.
|
|
|
|
|
i have tried array bytes data convert to json format
|
|
|
|
|
Does this have anything to do with C#?
|
|
|
|
|
You can't just send a byte array through JSON; you would need to serialize it first with something like:
System.Text.Encoding.UTF8.GetString(byteArray);
But on the other side you would need a mechanism to convert from a UTF-8 string into a byte array.
You can also send it via BSON NuGet Gallery | Newtonsoft.Json.Bson 1.0.1 with the same caveat, but there is a JS library built for that by MongoDB at GitHub - mongodb/js-bson: BSON Parser for node and browser.
If none of that will work for you, you will need to sent the file raw with the proper headers for the file type.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I have researched multiple sources and have come up with the following code that sorts the input array from low to high and outputs the sort order of position in the new sorted array.
The code below works, but I'd like to further optimize the final 11 x While loops into something that is more efficient. What is the best way to optimize this code?
Your help is greatly appreciated!
int[] i = {9, 2, 7, 6, 1, 3, 5, 4, 8};
int[] j = (int[])i.Clone();
int P01 = 0;
int P02 = 0;
int P03 = 0;
int P04 = 0;
int P05 = 0;
int P06 = 0;
int P07 = 0;
int P08 = 0;
int P09 = 0;
int va = 0;
int vp = 0;
bool swapped = true;
while (swapped) {
swapped=false;
va = 0;
while (va < i.Length -1)
{
if (i[va] > i[va+1]) {
int swap = i[va];
i[va] = i[va+1];
i[va+1] = swap;
swapped=true;
}
va++;
}
}
vp = 0;
while (vp < j.Length -1)
{
if (j[0] = i[vp]) {
P01 := vp + 1;
}
vp++;
}
vp = 0;
while (vp < j.Length -1)
{
if (j[1] = i[vp]) {
P02 := vp + 1;
}
vp++;
}
vp = 0;
while (vp < j.Length -1)
{
if (j[2] = i[vp]) {
P03 := vp + 1;
}
vp++;
}
vp = 0;
while (vp < j.Length -1)
{
if (j[3] = i[vp]) {
P04 := vp + 1;
}
vp++;
}
|
|
|
|
|
The logic of your code looks like a valid bubble-sort, but your code is not C#, and this is the C# forum. Sorting in computer science is a vast topic with many algorithms that have been extensively studied, compared; I think writing your own code for bubble-sort and quicksort is a good assignment for entry-level students.
A good review of basic sorting techniques, with code examples, in C#: [^] : look how simple their bubble-sort example is:
public static void IntArrayBubbleSort (int[] data)
{
int i, j;
int N = data.Length;
for (j=N-1; j>0; j--) {
for (i=0; i<j; i++) {
if (data [i] > data [i + 1])
exchange (data, i, i + 1);
}
}
}
public static void exchange(int[] data, int m, int n)
{
int temporary;
temporary = data[m];
data[m] = data[n];
data[n] = temporary;
}
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|