Bluetooth Keyboard working brilliantly with G1!!! - G1 Android Development

go here:
http://i-miss-erin.blogspot.com/2009/09/connect-bluetooth-keyboard-in-android.html
when i tried remounting as rw, it wouldnt work, so i tried pushing the files anyway and for whatever reason it wrote no problem. now that i think about it, it could be that when i adb pushed, i was booted into the recovery console, but i dont remember.
anyway, you have to go through the bluez commands every time you connect, and it would be wonderful if someone would write a script, but its really really awesome!
also, whenever you run the hcitool scan command, the keyboard needs to be discoverable.
Im using a rocketfish bluetooth keyboard, no problems. So far, I've discovered the following keymaps:
Home = home key
End = red end key/sleep key
F1 = Menu
holding down the home key pulls up the mru, and while holding down the home key, you can navigate around using the arrow keys and hit enter to select.
holding down ctrl and shift and using the arrows lets you select text!
im running cyanogens 4.2.8, btw.
sharin' the love...
enjoy!

berish said:
go here:
http://i-miss-erin.blogspot.com/2009/09/connect-bluetooth-keyboard-in-android.html
when i tried remounting as rw, it wouldnt work, so i tried pushing the files anyway and for whatever reason it wrote no problem. now that i think about it, it could be that when i adb pushed, i was booted into the recovery console, but i dont remember.
anyway, you have to go through the bluez commands every time you connect, and it would be wonderful if someone would write a script, but its really really awesome!
also, whenever you run the hcitool scan command, the keyboard needs to be discoverable.
Im using a rocketfish bluetooth keyboard, no problems. So far, I've discovered the following keymaps:
Home = home key
End = red end key/sleep key
F1 = Menu
holding down the home key pulls up the mru, and while holding down the home key, you can navigate around using the arrow keys and hit enter to select.
holding down ctrl and shift and using the arrows lets you select text!
im running cyanogens 4.2.8, btw.
sharin' the love...
enjoy!
Click to expand...
Click to collapse
Wow!
Thats alot of work just to use a ky to type or whatever you said =/
The batt isnt good enough to be using all this juice unless you got one of em solar batteries from mars

dunno 'bout you, but i've been using it for over an hour at a stretch, with headphones plugged in and listening while typing, and lost about 10% battery...
and yes, if it was just to type out a text message, its obviously ridiculous, but if you use it to take notes or something else more text intensive, its well worth the minute it takes to set up...

berish said:
dunno 'bout you, but i've been using it for over an hour at a stretch, with headphones plugged in and listening while typing, and lost about 10% battery...
and yes, if it was just to type out a text message, its obviously ridiculous, but if you use it to take notes or something else more text intensive, its well worth the minute it takes to set up...
Click to expand...
Click to collapse
Your using the stock batt? Your texting on it?
might be good for a game though.

I wonder how many G1 owners are going to go buy one of these, now:
http://www.thinkgeek.com/electronics/8193/

Related

Single press device Lock

Folks, any idea how to switch off the screen / lock the keyboard without the need of double press the red power button?
This is kind of bothering cause when you're in a application and need quickly to put your Treo into your pocket, you need to press 1st to get to the home-screen and 2nd to switch off.
Yeah, seems to be something new with the 750 (no other treo before did this). Palm set this up purposely, so I wouldn't assume there's a workaround for it. You'll get used to double clicking
Not that I know
I have used it for ages and found many shortcuts but no "quick lock".
Sorry
How about getting an application that device locks your phone upon return from standby? I use BatteryStatus Today Plugin by Chi Tai Dang.. This plugin has the option to lock device on wakeup and set cpu speed(I use this a lot)..
But mine's a wizard, what do I know about Treo.. but what I do now is, press the power button to get the phone to go into standby and when I want to use it again, I press the power button and it will device lock upon wake up.
I don't have a Treo. How do you initiate said keyboard lock normally?
V
vijay555 said:
I don't have a Treo. How do you initiate said keyboard lock normally?
V
Click to expand...
Click to collapse
"Device lock" that you may know of isn't used on Treo's. Palm uses their own "keyguard," which uses the red END button as a power button when not on the phone. If you are on the today screen, one click will shut the device off. However, if you are in another program, the first tap brings you to the today screen, and the second click turns the screen off (and the keyguard on if you have selected it to be that way). On all other treo's, WM or POS, one click of the end button would shut the screen off (unless you were on the phone obviously, it would be the END function), regardless of what program you were in. Palm changed this, I assume, to be like most cell phones, where when you press the END key it returns to the home screen, regardless of what you were doing. Like a RAZR would do.
Thats the best way I can explain it. You would be surprised Vijay on how many customizations Palm made to the OS.
Yes, I've heard that they did - thank Goodness one of the OEMs finally saw fit to do something original.
Hmm.. from what you describe, clicking twice doesn't seem like a very big chore... I did something similar in VJOkButt. Is it really necessary to convert the 2 clicks to 1 click? Investigating it barely seems worth the effort
V
I agree, hence my original post.
When you are on the today screen, it works normally. And you can double-click quite rapidly and it will work. Not a big deal for me.
yes guys, its not that dramatical, but still, it would be an improvement also considering that I want to stay in that one application (a note which I'm editing) and want to get there after waking up the device again without the need of again starting application, look for the last note, opening etc...
with HTC hermes and others the power button works exactly like this and its even better.
Hi all,
If you're using it two handed hold option (the white key, left hand end of row 3) and press the red button once - closes the app and powers off.
But you need an odd-shaped hand to do that one handed!
It is not that the double click isn't easy to do, it's waht fire00 said; if you are in an app, it closes it and then powers off. Case in point, this weekend while driving to a friend's house, I had directions in my email and would have liked to have turned off the phone, but then I would have to find the email again and open it up. On my Wizard, i would just turn it off and then back on and the email would be there for me.
Gotta be a reg hack for someone to find.
mackangus said:
If you're using it two handed hold option (the white key, left hand end of row 3) and press the red button once - closes the app and powers off.
Click to expand...
Click to collapse
On my device, that method doesn't close the app. It just locks the keyboard and then powers off. When I power on again, the app is still running and on screen. I think that's what fire00 was looking for.
pjcace said:
It is not that the double click isn't easy to do, it's waht fire00 said; if you are in an app, it closes it and then powers off. Case in point, this weekend while driving to a friend's house, I had directions in my email and would have liked to have turned off the phone, but then I would have to find the email again and open it up. On my Wizard, i would just turn it off and then back on and the email would be there for me.
Gotta be a reg hack for someone to find.
Click to expand...
Click to collapse
Sorry PJC ACE, my mis-type - using option + red button powers the device off WITHOUT closing the app - just like the power button on the Wizard ;-)
My apologies!
GUYS YOU'RE ABSOLUTE TREO-EXPERTS !!!!!
thanks a lot, going to dance with the Treo cause I'm so haaapyyy !! )))
fire00 said:
GUYS YOU'RE ABSOLUTE TREO-EXPERTS !!!!!
thanks a lot, going to dance with the Treo cause I'm so haaapyyy !! )))
Click to expand...
Click to collapse
Option (hold)+Red Phone button is a nice alternative, but I'd really like to find a way to prevent the Red Phone from reverting to the Today screen, so I can power off directly with it with one press...Vodafone's excuse for specifically asking for it this way (every other phone's "End" button brings you back to the "home" screen) is ridiculous, these aren't like every other phone.
I installed HTC home plugin and now my red button wont let me go into standby. I uninstalled and still not working. Any ideas?
Side Button + Suspend
There is a thread at TreoCentral that explaines how to activate the side button and make it available for button assignment in the settings screen.
Second there is a small program called suspend.
I have mapped the 1 press of the side button to suspend and away we go.
1 - Click keyguards/screen off.
Also it resume in the place or program you left when you unlock it.
Regards

Raphael hardware keys, remapping?

Has anyone come up with working solution for mapping hw keys?
I found this thread on Diamond, but no help:
http://forum.xda-developers.com/showthread.php?t=398280
I am using AEKMap to enable both latin/cyrillic input on my TP's hw keyboard. You may google it and give it a try.
There is no need for additional software, just follow this post and you'll get the answer. Worked for me.
Try AE Button Plus.
B.
I think you did not quite follow me here.
I dont mean to change layout of QWERTY, but hw-keys like "Back" and "Home" at front panel of TP.
This is becaus I find home and back quite useless and would much more prefer to have ALT+TAB (change program) and close program (REALLY close them, not leave running background as back seems to randomly do).
Taajuus said:
I think you did not quite follow me here.
I dont mean to change layout of QWERTY, but hw-keys like "Back" and "Home" at front panel of TP.
This is becaus I find home and back quite useless and would much more prefer to have ALT+TAB (change program) and close program (REALLY close them, not leave running background as back seems to randomly do).
Click to expand...
Click to collapse
And that is EXACTLY what i also want to know....
The total lack of hardware-keys on this device is already disturbing enough, but being locked out of the option to remap any of them is truely horrid...
Anyone know of any reg-hacks maybe?
I've got Spb PocketPlus 4 installed btw, and it's got a button mapping function as well...
But when i go into the buttons map, some weird black icons appear with no name attached to it. Can anyone make anything of this? As you can see i've been able to map one thing only: the Spb close-button-contex-menu, which allows me to switch task KW-buttons only....
But this is not enough for me, i need ALT-TAB aswell and off course a VoiceCommand button.
And regrettably the Rapael doesn't have that many HW keys to start with...
I want also to use Home/Back buttons for different purposes,but I didn;t found a solution yet.
Gotten a step closer to what i really need over this weekend:
In the button dialogue (with extra generated buttons by Spb PP+4) there was only one other button that had a name...
So i tried this one and go figure: it seems to be the " <= " (or 'back') button. In the dialogue it's called the OK button. I've got it set to the close contaxt menu now, and mapped Voicecommand to long-pressed answer key...
So far, this setup is to my satisfaction, and after two months of use this phone finaly behaves completely the way i want it to...
Hi, guys.
See my post here:
http://forum.xda-developers.com/showthread.php?p=2743845#post2743845
Hope this helps!
Cheers.
helped realy much !!! big thx for that nice instructions
You're very welcome, tk_berlin.
You be sure to let me know if anything in there doesn't make sense or you need any help with it.
Cheers from Canada!
ah cool to see a reply that fast ,)
hmm u got any further with finding out how to set the home button and the backwards button ?
Since the other htc user ,) wrote
In the button dialogue (with extra generated buttons by Spb PP+4) there was only one other button that had a name...
So i tried this one and go figure: it seems to be the " <= " (or 'back') button. In the dialogue it's called the OK button. I've got it set to the close contaxt menu now, and mapped Voicecommand to long-pressed answer key...
so it works with SPB PocketPlus ?
there must be a way to get it work wit the other tool
ah cool to see a reply that fast ,)
Click to expand...
Click to collapse
Lol. I was on my machine all morning and had XDA open in one of my tabs.
Yes, you can map practically any button in AEBPlus no problem.
hmm u got any further with finding out how to set the home button and the backwards button ?
Click to expand...
Click to collapse
AEBP will also *learn* any keys it doesn't have. So you could use the "Add Button" option, press your Home key, and away you go.
The way I have it set up, holding down the phone key will activate voice command (default behavior).
But remember, assigning commands to the Home or OK buttons (that "Back" button is actually an "OK" button) doesn't unmap what they normally do so you will always go home first and then it will perform <x>-function that you assign.
Personally, I don't like to program the Home or OK buttons because I find that they are "trickier" to press. What I mean is, if you tap the OK button near it's center or close to the left, it doesn't register a press. If you tap it sort of with the long part of your thumb (which is more natural when holding the device in one hand), it registers it. I've tried this with two TP's now and the button behaved the same way on both. Due to this, I find it unreliable to map anything to it.
In any case, as I mentioned earlier, the Volume buttons, Phone and End keys will be unmapped once you attach AEBP to them but the others will not.
Oh -- I forgot to mention, you can map the directional pad as well if that is your thing.
so it works with SPB PocketPlus ?
there must be a way to get it work wit the other tool
Click to expand...
Click to collapse
It does work, but it sends an OK command first.
I wrote a little utility for hard-coded buttons such as these for another Pocket PC I had (an ASUS P527) called "DoNothing.exe" but we can't apply that work-around here. What I would do is replace the EXEs of apps the hardware keys called with my DoNothing.exe, but in the case of the TP, we definitely don't want to replace START.EXE (which I believe to be the likely EXE (haven't tested this)).
If I find a way to map those buttons reliably, I will let you know, tk_Berlin. So far tho, I've been quite pleased with just using the four buttons I mentioned. The more I use this device and the more I ponder my decision to stay with TFL3D instead of the normal WM interface, the more I realize that I don't need half the add-ons I used to use prior to having TF3D. I am accustomed to very, very, very *heavily* customizing my device, but the setup I have now works great and I really haven't lost nething from my old WM world. In fact, prolly gained a few CPU cycles and memory to boot.
I don't miss the Today Screen at all!!! Now that I think about it, I never really looked at it.
Cya!

[Help] Phone Keypad Waiting Time between Click

I got a big thumb which don't allow me to use the qwerty even in landscape mode with HD2. Therefore I use the phone keypad mode. The downside is there's idle time to be able to push the same button.
For example when I want to type "CAB" it means I need to press the "abc" button 3 times, then wait, then press it once, wait, then press it again twice.
I found the "wait" time is a little bit long...is there any registry edit to make this waiting period shorter?
Best regards..
Me and my thumb.
I have solution, but im not sure that works in your case too. It minimize time between key pressing reaction and it's life saver for qwerty keypad.
Try this REG and give feedback - http://www.multiupload.com/XYVS2PLMZT
thanx franq..I tried it, but it seems no difference in the waiting time..still same waiting time between pressing..

[Q] Non-Touch compactible rom?

Hi guys,
My digitizer has died, and till the new one comes I was thinking of how I could use my T7272, I can write the SMS fine, but I can't send them out, cause the button is on the screen itself... is there a rom I could use freely w/o using the touchscreen?
P.S.
Is the digitizer hard to replace?
You could check out AE Button; it has some options like button presses that will activate soft buttons. I suspect you could send sms's using it. You could also try using mortscripts with AE button that will do stuff you need. There are some pretty simple scripts that will simulate screen taps, and you could assign them to a button push. I'd rather have a working touchscreen, though.
Here are some of the commands:
# 91: startmenu (on some devices it might be home button)
# 92: back key (not the backspace key but back key for closing applications which is available on some devices such as diamnd or blackstone)
# 93: menu key
#112: left softkey
#113: right softkey
#114: accept call (green button)
#115: hang up (red button)
#117: volume up
#118: volume down
#126: data disconnect
#127: toggle speaker
#133: devicelock
#223: power off
I use one to lock the device. Basically, you just put this:
Code:
sendspecial(133)
in a .txt file, and change the extension to .mscr. I call it Lock.mscr, and I have it assigned to a few different actions (like when a call comes in, a script locks the phone). So, sendspecial(112) and sendspecial(113) might help you out. There's also one for hitting 'Ok' in popups, which would probably work for you. I can't find it, though (google 'sendspecial' and you'll find it, it's all on msdn).
Anyway, if you install mortscript (maybe you already have it) as well as AE Button, you could assign button pushes to carry out those actions. Just stick the scripts somewhere easy, like the start menu, and it will be easy to set up.
If you want to get more complicated, there are also mortscript commands that simulate button pushes on the screen. You could set one up that would do just about anything. Also, SK Schema does similar stuff. You can write fairly simple sequences of button pushes that will do just about anything. This is one that I use that runs SK Tools Pim backup (I have it scheduled to run every night in the middle of the night).
#r(\windows\sktstart.exe) #p(STH:20)
#tap(146;602) #sleep(15000)
#tap(110;533) #sleep(500)
#tap(339;455) #sleep(500)
#tap(126;604) #sleep(500)
#tap(114;84) #sleep(500)
#tap(146;99) #sleep(5000)
#tap(310;254) #sleep(90000)
#tap(433;602) #sleep(10000)
#pwr() #sleep(10000)
Click to expand...
Click to collapse
Basically, the backup tool gets launched in line 1, then there are a bunch of screen taps (w/ delays, to make sure everything is ready) in the menus to get the right options selected, followed by turning the device off.
I`m not sure... But i saw somewhere app that emulate a mouse (cursor) and you will be able to control this mouse with your D-pad... But I can be wrong...
I can't install that mortscript w/o the touchscreen though..damn it..: )..
Get MyMobiler, and use it to run your device off of a pc. You should be able to get that working.

Dead Space works on Evo4G

I posted this in the Evo3D forum (since I upgraded to the 3D) but I do still have my OG 4G and recently installed DeadSpace, which is "exclusive" to the xperia Okay right now... But if you look you can find it
Well, it works on the original 4G as well! And plays pretty well I might add? I was surprised.
One little caveat with the game is the lack of a dedicated "lower weapon". But that can be worked around by simply bringing up the in game menu and exiting it. It lowers the weapon. But if you want a dedicated button. You can do this.
OK. This isn't a mod of the actual game... I'll (pretend i know what I'm doing and) look into it though.
This is an edit of the phones actual keylayout file in order to trick the game into thinking we have an L1 button to.make lowering the weapon much easier.
First. Make a backup...for me? And you... Help me help you and just do it.
Either adb pull /system/user/keylayout/supersonic-keypad.kl
Or
Use root explorer and just text edit that file. We want to change key 115 from VOLUME_UP to BUTTON_L1
Remember to back up!! Save the file and reboot.
If you did an adb pull. You'll need to remember to adb push the file you just edited.
"Adb push supersonic-keypad.kl /system/user/keylayout/"
After the restart. Load up dead space and Viola! Easy weapon lowering!! If you want the function of that key back, restore your backup and reboot.
A problem with this method is you lose the ability to actually up volume..unless you change the file back and reboot again :/
Sent from my PG86100 using Tapatalk
Sent from my PG86100 using Tapatalk
This is awesome! However, I do like keeping my Volume Up functionality :-/ is there a way to do this for my Home button or something? And does functionality return to normal for these buttons once the game is exited? I'm playing on a Samsung Galaxy S2. I'd much prefer to do this with the Home button since it's a hard physical button on the SGS2 rather than a soft key. I think everyone can agree we'd rather a modded version of the game where we have a method of lowering our weapon easily, heh.
Also, instead of pulling up the menu and exiting to lower weapon, I find that double-tapping on yourself to do the quick 180 turn is more convenient for lowering without a button mod.
rkaplan2 said:
This is awesome! However, I do like keeping my Volume Up functionality :-/ is there a way to do this for my Home button or something? And does functionality return to normal for these buttons once the game is exited? I'm playing on a Samsung Galaxy S2. I'd much prefer to do this with the Home button since it's a hard physical button on the SGS2 rather than a soft key. I think everyone can agree we'd rather a modded version of the game where we have a method of lowering our weapon easily, heh.
Also, instead of pulling up the menu and exiting to lower weapon, I find that double-tapping on yourself to do the quick 180 turn is more convenient for lowering without a button mod.
Click to expand...
Click to collapse
Or bringing up your Nav Point Guide. Any of those work. And no, after exiting the game the functionality of the button doesn't come back. The only way to get it back is to reedit the file and reboot the phone. I have an Evo3D and have set the lower weapon button to "Focus" on the camera button. I don't lose the function of the actual camera button. Just the first click which is to focus the camera. I don't mind at all because I can still tap on the screen to focus in on something.
Since the GSII has physical buttons you might be able to change one of those. You should be able to change any hardware button except power of course. This mod really isn't as convenient if the phone doesnt have a camera button or some other button that isn't used hardly at all. Lol
Sent from my PG86100 using Tapatalk
@OP.
Nice walkthrough and thanks for sharing. I doubt I'll personally use this, but still, thanks for sharing and good walkthrough/instructions.
Sent from my PC36100 using xda premium
this is awesome...my only issue is i am having a really hard time finding the apk...
any hint ..
i also cannot find the game any where. im willing to buy it, just cant find it.

Categories

Resources