Related
Does anybody have an easy example using RILL to see GPRS band strength.
Thanks.
I include some code I developed for this. However the calibration for this is for XDA I. For XDA II this goes too high values.
If you want to have a hack, look at:
http://forum.xda-developers.com/viewtopic.php?p=11643&highlight=#11643
I had a quick look at the xda-developers ril API, and I think this now passes the max and min possible signal strength, so it would be accurate on any device. Maybe somebody else can confirm this.
Therefore, my function to return a percentage should be something like:
static double dValue;
dValue = (double)data->SignalQuality;
dValue -= dLo;
dValue /= (dHi - dLo);
dValue *= 100;
m_dwSigQuality = (DWORD)dValue;
Hope this is of some use, sorry it's not complete.
Ben.
I have seen the topic you say before I post this
The problem is that I don't know how to use the info. that comes with the post you say.
If you look at the work completed by the xda-developers, they provided a program which shows how RIL works. Their example, last time I looked, shows how to start RIL, and listened for incomming SMS messages. To start with, find this code and add the rill calls to your program.
Find the function called 'ResultCallback'. This is called by RIL when something happens which your program may want to know about. Add to this the code I posted, starting:
if (hrCmdID == m_dwSigQualityID) {
From your own program, you now call my function containing:
m_dwSigQualityID = RIL_GetSignalQuality(g_hRil);
If this works, this will return the percentage signal strength.
Although as I said, this works well on XDA I, but needs a re-calibration for XDA II and more recent work on RIL.
Ben.
It works!
If the GPRS is connected it returns 69%, but if GPRS is not connected it returns a GSM value.
Any idea of how to make an easy dll to use this value in other program?
Thanks.
Very glad it works! Sorry about the 69%. This is fixed with the XDA II.
As far as an easy .dll, I don't know. (Or a nice easy class) Somebody here does I am sure....
Ben
Can you please attach a working ResultCallback code for the signal stregth?
I get 603% on my XDA2...
I think i did something wrong.
Thanks, Patrick
Hi,
benclewett said:
If you look at the work completed by the xda-developers, they provided a program which shows how RIL works. Their example, last time I looked, shows how to start RIL, and listened for incomming SMS messages. To start with, find this code and add the rill calls to your program.
Click to expand...
Click to collapse
Can anyone tell me where this is please?
Also, does anyone have any code for returning gprs traffic usage? - I want to report the amount of data used in the current session and also in the current month.
Thanks!
--ian
Guys, this is just to fill a request on my website
It is used to send a Class 0 SMS. It's used in exactly the same way as VJSMSSender from VJPhoneTools.
Class 0 SMS, for those who don't know, is an SMS that is sent directly to the recipient's phone and will appear immediately on the screen, without requiring the recipient to go into the Inbox. Also, the SMS is not saved in the inbox, so there is no trace of it on the phone.
Great for illicit affairs!
Please use it responsibily, I don't know if there are any special rules about Class 0 SMS, but if there are any objections I'll remove it.
Check it out on my website
V
Hi Vijay,
another fine release.. )))
THANX mate.
How you do them all ??? ))))
BTW, why would you remove it from your website?? Flash SMS is perfectly legal AFAIK.
THANX
buzz
I'm sure it is legal, but it's quite scary how it works! I love it, I'll be freaking out all of my friends... oh, what friends :shock: too much programming!
How you doing Buzz. Been quite for a while... must mean good things on their way?
V
vijay555 said:
I'm sure it is legal, but it's quite scary how it works! I love it, I'll be freaking out all of my friends... oh, what friends :shock: too much programming!
How you doing Buzz. Been quite for a while... must mean good things on their way?
V
Click to expand...
Click to collapse
YEAH!
i'm totally overloaded in work... i ave absolutely no time for my stuff... (
...but i've got some GOOD news for tomorrow.. ))
buzz
Where is this program? I cant seem to find it in your site Vj...
I am curious of how it work :wink:
What about allowing a different sender ID? E.g. another number or text.
It's there : http://www.vijay555.com/index.php?Releases:VJPhoneTools:VJSMSSender_Class0 :wink:
Good things from Buzz.....
Is that combining the extrom to storage on the Universal?????
Cheers,
chris_khho said:
Good things from Buzz.....
Is that combining the extrom to storage on the Universal?????
Cheers,
Click to expand...
Click to collapse
)
hi Chris,
the good news is HERE
buzz
Chatty said:
What about allowing a different sender ID? E.g. another number or text.
Click to expand...
Click to collapse
Yes that would be a great idea if it could be done.
vijay555 is this possible ?
TraumaTiger
Hum, how do i run this app? command line how? Can someone explain thanks.
q-biq:
download and install VJPhoneTools
http://www.vijay555.com/index.php?Releases:VJPhoneTools
and check out the page for instructions on how to use VJSMSSender.
Then, the class 0 prog works in exactly the same way as VJSMSSender.
Use GSFinder etc to make appropriate shortcuts, or use a today launcher like cLaunch etc.
TraumaTiger/Chatty: I think I could write an SMS spoofer, but I don't think it's wise. I will try to write it anyway for the fun of it (!) and tell you if it works...
V
oh koool. workin great, but do i need to change the shortcut evry time i need to send to a new phonenumber? takes to long time hehe..
and how have you created the icons on the top so i can send from there?
Once again..
VJ its possible to send to more than one recipient at the same time ?
thank you
q-biq: yep, the shortcut needs to be changed each time. It's more for use on a today screen: it was requested that you could eg send a msg to your wife on the way home with no key presses etc. VJSMS still requires you to press send, while VJSMSSender sends it straight off, so yes, it has to be manually configures each time.
More that that and it would have to work like a replacement for the inbox, and that's not what it's for (right now! perhaps in the future).
fcaeiro: no, I'm afraid VJSMSSender doesn't have a CC feature. I could try to look into it a some point, but I haven't thought about it right now...too busy coding other stuff! :shock:
V
It's definately possible to spoof the sender ID - Siemens S25 tools offered it already (if you remember that old handset).
can you explain howto spoof id??
SMS ID spoofing is easy enough in theory. I will try to write it, and if it works, I'll take feedback on whether it deserves releasing. But let me write it first
V
vijay555 said:
SMS ID spoofing is easy enough in theory. I will try to write it, and if it works, I'll take feedback on whether it deserves releasing. But let me write it first
V
Click to expand...
Click to collapse
Yaaa it good if our ID, phone number not appear...or with spoof ID...
waiting for ur progress Vijay555...
With Vodafone.se you can just put a -A- in the begining of the sms to hide your number.
I've seen a HTC-made animated launcher in another topic.
( http://forum.xda-developers.com/showthread.php?t=329694 )
The prog can be downloaded at http://rapidshare.com/files/55485726/HTC_TOUCH.rar
Some forum mates have successfuly installed it, but the big problem is that the prog is in Chinese...
Would anyone try to make an English version of it?
Thanks in advance!
cheers,
English Would def. be nice this thing is pretty sweet and easy on the memory
Really nice application just tried it.
Works wonderfully, hope someone can make an english version.
not working for me (mda compact/wm2003)
Bumping this because it takes the least amount of mem. and is very fast please someone see if they can fiddle with it an get english working.
Just a little help from my friends?!... (Joe Coker)
cheers,
Doesn't work on my Touch. Says it's not signed or something like that (rough translation)
Well i like it very much and it is sort of working , but no english , looked in the app folders and the registry but i cannot recognize what to change so i removed it
Hopefully someone can translate it because i find it very usefull
Nice Launcher
Hello,
I was able to install it ion Hermes (WM6) and runs smoothly.
I dug into it and by trial/error I was able to delete/create new shortcuts for system setings.
For some obscure reason I was not able to assign any new applications.
Can anybody who owns a Chinese enabled device, try this and maybe help us understand the menu/options?
Thanks.
STANUL said:
Hello,
I was able to install it ion Hermes (WM6) and runs smoothly.
I dug into it and by trial/error I was able to delete/create new shortcuts for system setings.
For some obscure reason I was not able to assign any new applications.
Can anybody who owns a Chinese enabled device, try this and maybe help us understand the menu/options?
Thanks.
Click to expand...
Click to collapse
I'm working on it.....I am modifying the dDockView.xml now....
dcoloane said:
I'm working on it.....I am modifying the dDockView.xml now....
Click to expand...
Click to collapse
great dcoloane..make this an english. and dont forget this to post in our ATOM forum
There are people doing it here as well. Make sure you guys exchange findings and stuff... dont waste double efforts on it
http://forum.xda-developers.com/showthread.php?t=316026
hanmin said:
There are people doing it here as well. Make sure you guys exchange findings and stuff... dont waste double efforts on it
http://forum.xda-developers.com/showthread.php?t=316026
Click to expand...
Click to collapse
Hmm....that one is a Simplify Chinese Version....this one is Traditional Chinese Version.....
Anyway, it is more likely the same, just change the wordings in the xml file and you will get a working English version.
Uploaded but deleted due to failure of installation, repost again later.
Useful tips on creating links:http://forum.xda-developers.com/showthread.php?t=302739&page=41
Control Panel
Connections:
Beam: 8#"ctlpnl"cplmain.cpl,15,0?shellres.dll,-13910
Bluetooth: 8#"ctlpnl"cplmain.cpl,23,0?shellres.dll,-13909
Connections: 8#"ctlpnl"cplmain.cpl,19,0?shellres.dll,-13953
Network cards: 8#"ctlpnl"cplmain.cpl,17,0?shellres.dll,-13888
Personal:
Buttons: 8#"ctlpnl"cplmain.cpl,12,0?shellres.dll,-13944
Input: 8#"ctlpnl"cplmain.cpl,8,0?shellres.dll,-13936
Lock: 8#"ctlpnl"cplmain.cpl,1,0?shellres.dll,-13942
Menus: 8#"ctlpnl"cplmain.cpl,11,0?shellres.dll,-13937
Owner Info: 8#"ctlpnl"cplmain.cpl,2,0?shellres.dll,-13841
Phone: 8#"ctlpnl"cplmain.cpl,20,0?shellres.dll,-13954
Sounds: 8#"ctlpnl"cplmain.cpl,9,0?shellres.dll,-13924
Today: 8#"ctlpnl"cplmain.cpl,13,0?shellres.dll,-13952
System:
about: 8#"ctlpnl"cplmain.cpl,5,0?shellres.dll,-13899
Certificates: 8#"ctlpnl"cplmain.cpl,22,0?shellres.dll,-13941
Clock n Alarm: 8#"ctlpnl"cplmain.cpl,16,0?shellres.dll,-13840
Error Reporting: 8#"ctlpnl"cplmain.cpl,24,0?shellres.dll,-13997
Memory: 8#"ctlpnl"cplmain.cpl,4,0?shellres.dll,-13900
Power: 8#"ctlpnl"cplmain.cpl,3,0?shellres.dll,-13895
Regional Settings: 8#"ctlpnl"cplmain.cpl,18,0?shellres.dll,-13901
Remove Programs: 8#"ctlpnl"cplmain.cpl,10,0?shellres.dll,-13943
Screen: 8#"ctlpnl"cplmain.cpl,7,0?shellres.dll,-13906
*additional info:
You might've noticed, there're 2 number delimited by comma in every shortcut. Eg. Bluetooth, the 2 numbers are "23,0". The first number is the id for Bluetooth, while the second number is the tab's id. If you open up the bluetooth setting, you will see 3 tabs: Mode, Devices, and COM Ports. 0 is for the first tab, 1 is for the second, and so on. So if you wish to open up Bluetooth and point straight to the Devices tab, just change it to "23,1".
SMS & Mail
SMS list view: 20#"\Windows\tmail.exe"-service "SMS"
New SMS: 20#"\Windows\tmail.exe"-service "SMS" -to "" -body ""
Email list view: 20#"\Windows\tmail.exe"-service "Name of email account"
New Email: 20#"\Windows\tmail.exe"-service "Name of email account" -to "" -body ""
*additional info:
The name for the default "Outlook" account is "ActiveSync" (case sensitive). To open up your own email account, make sure you type the exact name inside the quotes, including symbols and punctuations if necessary (case sensitive, too).
Phone Dialer
Phone dialer: 20#"\Windows\cprog.exe"
Prompt to call 1234567: 20#"\Windows\cprog.exe"-url tel: 1234567
*some phones use vtkey.exe instead of cprog.exe. I believe cprog.exe is used by Atoms only.
Important:
1) make sure you encase the path with quotes. eg. "\Windows\cprog.exe"
2) make sure there is no space between the path and the parameters. eg. "ctlpnl"cplmain.cpl
3) the number preceding the # character is the length of the path including the quotes (" "). eg. The length of "\Windows\cprog.exe" is 20.
tried to install to my Wizard, it just shows up with "Installation of HTC Touch.cab was unsuccessfull"
Anyway, thanks.
Just use the original cab to install the app, and copy this xml to \windows\.
I also tried to make a cab with just the replaced xml and kept failing.
BTW you cannot use "&" in the xml else the app fails, so you cannot launch the picture viewer now, you got to change it in start menu, or make a direct link to it.
ATM translating the exe but can't read Chinese, but succesfully translated some random text.
medkid said:
tried to install to my Wizard, it just shows up with "Installation of HTC Touch.cab was unsuccessfull"
Anyway, thanks.
Click to expand...
Click to collapse
Same here.
dcoloane said:
Hmm....that one is a Simplify Chinese Version....this one is Traditional Chinese Version.....
Anyway, it is more likely the same, just change the wordings in the xml file and you will get a working English version.
Uploaded
Click to expand...
Click to collapse
Should make some modifications in exe/dll files too. The application is trying to access \Windows\“开始”菜单\程序\ folder instead of \Windows\Start Menu\Programs\
That should be changed to be able to use the full functionality of the program, and it is not in XML file, unfortunately
Cheers
A resource hacker is a no-go, if you want to change specific strings you can't run the app anymore.
I already figured out what's doing what and how I should translate it, but it's just no use.
dev's homepage?
http://www.studiokuma.com/wm/?section=s1
This is a partial translation, install the original cab, and replace the exe and xml from both this zip and the one I posted earlier.
Sometimes I had to come up with funny translations as the programe would else crash, thus cancel became no, custom icon just icon, and provider became net.
Other parts I couldn't get working in a right way so are still as they were.
Maybe someone else can translate it better.
Hey guys!!
i want to know a few commands tht i can use in VB.net to perform following actions, i want to embed these actions into a software that would run on the Windows Mobile The actions i want commands for are:
1.To turn WM to Vibration Mode/Silent Mode/General Mode (for all of them)
mccoffein said:
Vibration:
You have to import opennetcf dlls and then you can do just like this:
Code:
OpenNETCF.WindowsCE.Notification.Led vib = new OpenNETCF.WindowsCE.Notification.Led();
//---start vibration---
vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.On);
System.Threading.Thread.Sleep(2000);
//---stop vibration---
vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.Off);
Click to expand...
Click to collapse
2.To turn off the Phone Feature (it shuld be like i turn off phone from CommManager)
3.To send a text message "Testing" to any no. "1234"
ssj5trunks said:
[On top of code class/module]
Code:
Imports Microsoft.WindowsMobile.PocketOutlook
[In your button click event]
Code:
Using OS as New OutlookSession
'SMS object contains all properties like an Email Message
Dim SMS as New SmsMessage([NumberSMS],[TextSMS])
SMS.Send
End Using
Click to expand...
Click to collapse
4.To change registry
31073 said:
to read the registry
Code:
Dim HKLMKey As RegistryKey
HKLMkey = Registry.LocalMachine
TextBox1.Text = HKLMKey.OpenSubKey("ControlPanel\Stylus\192DPI").GetValue("CurFont", "800")
to set a value
Code:
HKLMKey.OpenSubKey("ControlPanel\Stylus\192DPI").SetValue("CurFont", TextBox1.Text, RegistryValueKind.DWord)
Click to expand...
Click to collapse
5.To make the phone vibrate
Thnx in advance!!
xda2_haseeb said:
Hey guys!!
i want to know a few commands tht i can use in VB.net to perform following actions, i want to embed these actions into a software that would run on the Windows Mobile The actions i want commands for are:
1.To turn WM to Vibration Mode/Silent Mode/General Mode (for all of them)
2.To turn off the Phone Feature (it shuld be like i turn off phone from CommManager)
3.To send a text message "Testing" to any no. "1234"
4.To change registry
5.To make the phone vibrate
Thnx in advance!!
Click to expand...
Click to collapse
Hy xda2_haseeb,
you found lot of stuff at opennetcf.org, codeproject.com and planet-source-code.com.
But i think c# or c/c++ would be the "better" way for development.
Greatz
mccoffein
mccoffein said:
Hy xda2_haseeb,
you found lot of stuff at opennetcf.org, codeproject.com and planet-source-code.com.
But i think c# or c/c++ would be the "better" way for development.
Greatz
mccoffein
Click to expand...
Click to collapse
i understand but the thing is tht i am a VB.Net developer and build Basic Apps so i guess i wuld prefer VB for now as i dont knw C/C#/C++ so plz if u guys tell me here it be better as ill on codeproject there is no specific coding for this
to read the registry
Code:
Dim HKLMKey As RegistryKey
HKLMkey = Registry.LocalMachine
TextBox1.Text = HKLMKey.OpenSubKey("ControlPanel\Stylus\192DPI").GetValue("CurFont", "800")
to set a value
Code:
HKLMKey.OpenSubKey("ControlPanel\Stylus\192DPI").SetValue("CurFont", TextBox1.Text, RegistryValueKind.DWord)
thnx!! now if any one of u knows any other???
Send SMS
To send message i think you must use this code:
[On top of code class/module]
Imports Microsoft.WindowsMobile.PocketOutlook
Click to expand...
Click to collapse
[In your button click event]
Using OS as New OutlookSession
'SMS object contains all properties like an Email Message
Dim SMS as New SmsMessage([NumberSMS],[TextSMS])
SMS.Send
End Using
Click to expand...
Click to collapse
I dont test it but i think it work.
Bye
ok, THNX!!, wht abt the rest guys??
Vibration:
You have to import opennetcf dlls and then you can do just like this:
OpenNETCF.WindowsCE.Notification.Led vib = new OpenNETCF.WindowsCE.Notification.Led();
//---start vibration---
vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.On);
System.Threading.Thread.Sleep(2000);
//---stop vibration---
vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.Off);
Dont know if it works!
But you can try.
Greatz
mccoffein
ok, THNX!! ill try
I want to create application that can call when some of voice pattern get recognize or way to recongnize spoken word or voice like eg:-when i speak "hello" then it recognize the hello word then it call to particular number mention.......
i have looked through lots of code but i counldn't find it
aruzmeister said:
I want to create application that can call when some of voice pattern get recognize or way to recongnize spoken word or voice like eg:-when i speak "hello" then it recognize the hello word then it call to particular number mention.......
i have looked through lots of code but i counldn't find it
Click to expand...
Click to collapse
You haven't looked hard enough. Start here:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()
.getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something!");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
int noOfMatches = 10;
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, noOfMatches);
startActivityForResult(intent, XenoAmp.SPEECH_RECOG_RC);
Yes i have gone through code but i want to integrate process that when i speak hello or some word then suddenly the application trigger automatic message to particular number i have saved.I am really curious about these to learn from you i have gone through some of code present here please look on it...it's final year project plz help it
github.com/gmilette/Say-the-Magic-Word
zoo.cs.yale.edu/classes/cs434/cs434-2012-fall/code/eclipse-ws/com.example.android.apis.ApiDemos/src/com/example/android/apis/app/VoiceRecognition.java
i need your help i just beginner trying to learn android programmin how can i trigger the application to automate work.....
ssuukk said:
You haven't looked hard enough. Start here:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()
.getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something!");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
int noOfMatches = 10;
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, noOfMatches);
startActivityForResult(intent, XenoAmp.SPEECH_RECOG_RC);
Click to expand...
Click to collapse