I kill original telephone program cprog.exe to recieve DATA calls on MIO A-700 device.
After that I restart cprog.exe like that:
CreateProcess(_T("\\Windows\\cprog.exe"), _T("-n"), NULL, NULL, FALSE, 0, NULL, NULL, NULL, NULL);
Click to expand...
Click to collapse
But after this call the GSM Network is disappeared and there is no facility to run original telephone application to make or recieve VOICE calls.
I performed this test on many devices (HP, Rover, Qtek) and this problem is on MIO A-700 only.
Help, please.
Related
Hi
I knows TAPI lineDrop is right API to end a call on a XDA2 Qtek 2020 performing a data call. Its asynchronous reply is given by lineGetMessage API.
following struct reports in dwParam1 an ID for an asynchronous reply, as lineDrop(...) request ID. Now when I perform a lineDrop on a call in a state different from LINECALLSTATE_CONNECTED no error from TAPI and reply is received immediately and dwParam2 == 0, but in a LINECALLSTATE_CONNECTED state TAPI delays delivering of LINE_REPLY for about fifty seconds and reports LINEERR_OPERATIONFAILED (0x80000048).
Code:
struct linemessage_tag {
DWORD hDevice;
DWORD dwMessageID;
DWORD_PTR dwCallbackInstance;
DWORD_PTR dwParam1; // request code (<--lineDrop)
DWORD_PTR dwParam2;
DWORD_PTR dwParam3;
} LINEMESSAGE;
My questions are:
1. what does it mean LINEERR_OPERATIONFAILED ?
2. do you know there are problems ending a call on Qtek 2020 with lineDrop?
3. why same code works fine on a different device as hp ipaq2210 with a gsm card?
4. maybe a resident system program disturb lineDropping (cprog.exe was killed )?
5. I read on
Windows telephone programming a Developer's guide to TAPI
Click to expand...
Click to collapse
that:
lineDrop function is used to terminate our end of a call. This does not destroy the call, but does cause logical connection between the two ends of the call to be severed. ...
Click to expand...
Click to collapse
Perhaps should I perform a lineDrop on both ends of a call ?
Hi Matthew.
I don't know if you have solved this problem, i just received an Imate to test an application and i can't find a way to drop a tapi call, my application works fine in a XDA, but in the XDA-II it can't drop the line. I am using CSD with V.110 between two XDA-II.
Any help would be appreciated.
Thank you.
Cesar.
I will correct the previous posted message, my application is working with lineDrop, the problem is the delay, my handheld is the i-mate and after running the lineDrop, the message LINECALLSTATE_IDLE have a big delay, and i was thinking what i can do to solve this problem, because with the XDA i donĀ“t have this problem.
Thank you
Cesar.
Hi
the LINECALLSTATE_DISCONECTED message marks the physical call end, you shouldn't wait for LINECALLSTATE_IDLE before you want to place another call, LINECALLSTATE_IDLE is only meaning to deallocate system resource associated to HCALL handle (lineDeallocateCall()), you can process them async.....i do so, however i must wait about 5 second for LINECALLSTATE_DISCONNECTED
Error corrected.
Hi Matthew.
Thank you for your comments, sorry for not being too detailed when posting the problem. I am using LINECALLSTATE_IDLE to release the call handle.
The problem with the delay is that i received a new hardware with an old operating system, i go to the site http://www.clubimate.com and downloaded the upgrades. After that my problem with delay's using lineDrop was solved.
Thank you for your help.
Cesar.
Hello, I am writting a small app to replace my HTC Touch Today plugin because it is too damn big. My apps is almost done except for launching the different apps in certain case, and that is where I need help:
1- Starting cprog.exe in Call History mode
2- Going to the email
3- Going to the sms list
Thank you for your help
Ok got #3:
PROCESS_INFORMATION pi = {0};
DWORD dwRes = 0;
BOOL bret=CreateProcess(_T("\\Windows\\tmail.exe"), _T("-service \"SMS\""), NULL, NULL, NULL, 0, NULL, NULL, NULL, &pi);
Found #2, but how do you get the default Mail Account, or list them?
\Windows\tmail.exe -service "Name of email account"
Hi everyone,
I'm working on a small app. I'm launching the MainActivity and there's some Code. And after some specific Code, I've to wait for an incoming SMS and do other stuff in the MainActivity. But How are the Data's from the Incoming SMS passed to the Main Activity?
I've this BroadCast Receiver:
Code:
@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str = "";
//---just a trial with app Context
// Starting appState = ((Starting)context);
// appState.setState("Receiver Datas");
if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];
for (int i=0; i<msgs.length; i++){
msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
str += "SMS from " + msgs[i].getOriginatingAddress();
str += " :";
str += msgs[i].getMessageBody().toString();
str += "\n";
}
//appState.setState(str);
//---display the new SMS message---
}
}
My Solution with the Application Context doesn't work...Any Ideas or Suggestions?
Thanks a lot in advance
Can you just launch it and pass it the data you need in the intent extras?
Code:
Intent it=new Intent();
it.setClassName("com.path","com.path.YourAppActivity");
it.putExtra("something","value1");
it.putExtra("something_else","value2");
startActivity(it);
So this can't work, because the Activity is already running...
So the Activity is running and is doing some stuff and then it has to wait until an SMS is received...and then continue...but it has to be in the same Activity.
Like you mentioned it I would start a new Activity...
I'm not entirely sure what it is that you're doing, but you may have to spawn this off as a service, then let the service handle SMS stuff and call back to its parent activity when something needs to be signaled. In this case, you'd need to implement some kind of callback Interface to handle events from the service.
Hi
I want to write an app that goes through all my stored SMS, lets me pick one and then would display the SMSC address which was involved in sending said SMS to my phone.
Question: Is this SMSC address stored somewhere? And just to be totally clear: I am not asking for the SMSC address of my operator which would be used for sending SMS from my phone to other phones, okay?
I tried to find something in the deprecated SMS content provider. But either I did not look hard enough or it's simply not there.
Has anybody got some tip for me regarding this?
thanks a lot!
gsm-man
Try the following code:
ContentResolver cr = context.getContentResolver();
final Cursor c = cr.query(Uri.parse("content://sms/inbox"), new String[]{"_id", "address", "date", "read", "body", "service_center"}, null, null, null);
Hi
I has develoed an SMS sender app using VB from VS2005 and it works fine. however, if i send a message for 2 recipients, for instance, the carrier/service provider discounts 6 sms on my account.
I tried to send the same message to my other new mobile phones and only one sms arrives to each phone. however, the service provider discounts 6 sms because their systems registered 2 messages, 3 for each number... Very strange.
If i send ans sms by hand using the phone (instead of app) the service provider only discounts one sms from my budget...
Dim obj As New SmsMessage
obj = New SmsMessage
For i As Integer = 0 To ListBox1.Items.Count - 1
Dim txt As String = CStr(ListBox1.Items(i))
obj.To.Add(New Microsoft.WindowsMobile.PocketOutlook.Recipient(txt))
Next
obj.Body = TextBox1.Text
obj.Send()
Any ideas?
Thanks a lot
Alex