Simple search widget with keyword search engine selection - Motorola Droid 4

I want a very simple search widget that passively sits there as I enter my search query, only responding to perform the search when the enter button is pressed. I want to prefix the query with one or more keywords signifying which search engine to use. I want to type in 'w peaches' to search for peaches on wikipedia and 'w g peaches' to search for peaches on wikipedia and google (opening two tabs).
This would greatly improve my phone. It is a must have feature in any modern browser, exposing it via a long press of the search button would not go amiss.
Sent from my XT894 using Tapatalk

Heu,
wouldn't the Google Search widget, do the trick?
Dominique

sadly not. selecting the serch field loads things additional to text entry and canning be prefixed by variables indicating which search engine to use when performing the search.
i woudl like to click on the widgine, text entry activate (visually changing nothing ( so widget gains blinking curor only)
then i type 'w/tpb red hot chili peppers' and then press enter
now tabs in my default browser are generated searching for red hot chili peppers on both wikipedia and thepiratebay
now this solution removed any lag associated with launching an app to perform a search, no new pages atre generated until the search is performed.
this is just like the functionality present in the address bar of most desktop browsers with enough well defined prefixs the search need to be limited to the internet and could be performed using any search field present in the android os/ecosystem.
searches coudl even be performed from a terminal emulator.
im askign for really simple stuff guys. WHY DONT I KNOW HOW TO PROGRAM?

Related

assign refresh command to a button?

Hi!
I use a website that I need to refresh often...I use Opera and/or Internet Explorer...is there a way to assign one of the phone's buttons to perform the refresh command rather than having to touch the link on the screen? I also use SPB Pocket Plus, but when I search the assignable commands, they are limited to basic phone commands, like changing the brightness, or soft reset, etc. I have done several searches on this forum and I cannot find the answer...Thanks for any suggestions!
Edeno

[APP][3-13-2009] Kwik-E-Map v0.2 -- Simple FUZE keyboard mapper (map CTRL, etc)

KwikEMap
Version 0.2 (Beta)
To Use
======
* Install the KwikEMap.CAB on your device. (Do NOT install it on a Storage Card)
* Execute KwikEMap.exe, it will run in the background and your key mappings will be in effect. It uses about 35KB of memory and less than .5% of your CPU (while keys are being pressed only).
* Add a shortcut to KwikEMap.exe to \Windows\StartUp if you'd like the app to run each time your phone boots.
* If you execute KwikEMap.exe while it is already running, the KwikEMap Window will appear. From there, you can HIDE the application again, or QUIT and restore all key mappings to normal.
* There is also a "Show Window" keyboard shortcut you can use to open the KwikEMap window. By default, it is FN+PERIOD.
Default Key Mappings
=====================
These all can be changed in the KwikEMap.cfg file. See "Important Note", below, regarding the first 4 mappings.
Code:
FUZE Key Maps To Notes
------------- ---------- ---------------------
CALENDAR CTRL see "Important Note", below
CONTACTS TAB see "Important Note", below
EMAIL HOME see "Important Note", below
INTERNET END see "Important Note", below
SHIFT+BACK ESC
QUESTION MARK CTRL Makes a nice right CTRL key, for pressing CTRL-X, etc.
SHIFT+PERIOD ? Since we no longer have a question mark due to prev. map
FN+PERIOD KwikEMap Shows KwikEMap Window
You can use modifiers with this mappings and use multiple combinations. For example, you can press CTRL+HOME, or SHIFT-TAB.
Important Note Regarding CALENDAR, CONTACTS, EMAIL, INTERNET
=============================================================
To use these keys, you must configure the FUZE so that the normal functions of those keys are disabled. Some ROMS (Da_G's, NATF, RSW, etc) let you do this via the Buttons setting. If your ROM doesn't, this must be done by placing "null" shortcuts in specific locations. (thanks to Da_G for this information)
There is a shortcut in Program Files\KwikEMap\ called "NoButton.lnk". The shortcut basically does nothing. Simply copy this shortcut to the locations indicated to effectively disable the normal function of any of the 4 keys you'd like to use:
Code:
To Disable Copy "NoButton.lnk" as:
------------ ----------------------
CALENDAR \Windows\Start Menu\Calendar.lnk
CONTACTS \Windows\AppButtons\Contacts.lnk
EMAIL \Windows\Short_Messaging.lnk
INTERNET \Windows\Start Menu\Programs\Media Net Home.lnk
Notes:
1) To hide the start menu location links so they don't appear in the Start Menu, simply edit the files' properties and mark it as "Hidden".
2) Future versions of this app will copy these shortcuts automatically.
3) Even if those shortcuts do not currently exist on your phone, you still can (and must) disable the normal function of those keys by creating the "NoButton.lnk" shortcuts as specified if you wish to map them.
Setting up your own Mappings
============================
* See the KwikEMap.cfg file for full information and examples.
* While the KwikEMap window is open, you can press various keys and KwikEMap will show you the corresponding Key Codes and any modifiers used. You can use this to assist in setting up your own key mappings.
* The order you list the mappings matters; the first one found is what gets used. So, if you want to map WIN as CTRL, but keep WIN+PERIOD as the normal Windows Key, list WIN->CTRL first, then list CTRL+PERIOD->WIN next, and it will work. (This is because WIN has already been re-mapped to CTRL)
* The app should be smart enough to avoid cycles, so you can swap two keys. For example, you should be able to map A to B, and then also B to A, without any problems.
* Note that the FUZE's keyboard is odd; you will see that when you press the Question Mark key, for example, it actually is registering as "SHIFT+/" even though you are not pressing the SHIFT key! Keep this in mind as you set up your custom mappings.
* For now, you must QUIT and re-start the app to re-read the mappings from the .cfg file.
* A full list of Windows Mobile key codes can be found here:
http://msdn.microsoft.com/en-us/library/bb431750.aspx
Notes Regarding Specific Keys
=============================
* The WINDOWS key now should be fully mapable; i.e., it makes a good CTRL key.
* The CAPS LOCK key is partially mapable (i.e., you can map it to TAB), but there are two issues:
1) It still toggles the caps state, even when mapped
2) It never stays registered as pressed, so you cannot use it as a modifier-type key (i.e., CTRL)
* You can use the FN key as a modifier (i.e., map FN+C to CTRL+C to "cut"), but only if that key doesn't already have a FN modifier built-in. So, feel free to map a whole bunch keys like FN+A, FN+C,FN+B, etc, to whatever you want! (some examples are below)
Other Mapping Examples
======================
Use the WINDOWS key as a CTRL key, but still map WINDOWS-PERIOD to the old windows key:
5B=+00 (WIN -> CTRL)
+BE=5B (CTRL+PERIOD -> WIN)
Use CAPS LOCK as a TAB:
14=09
Use FN+A, FN+X, FN+C, FN+V for Select All, Cut, Copy, Paste, respectively:
#41=+41 (FN+A -> CTRL+A, Select All)
#58=+58 (FN+X -> CTRL+X, Cut)
#43=+43 (FN+C -> CTRL+C, Copy)
#56=+56 (FN+V -> CTRL+V, Paste)
Use WIN-UP as HOME, WIN-DOWN as END
&26=24 (WIN+UP -> HOME)
&27=23 (WIN+DOWN -> END)
=======================================
Have Fun! If all goes wrong, just soft-reset.
How does it work?
Can you tell me how this works? I'm an experienced software dev, but new to Windows Mobile programming.
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
jsmith8858 said:
Here's a very simple key re-mapping app, Kwik-E-Map. Please try to forget my terrible, hacky first attempt, FuzeKeys, and don't hold that against me!
You can pretty much re-map anything except the HOME key at this point. This isn't a "hotkey" app launcher or anything fancy, just something simple to put CTRL and TAB keys on your FUZE, things like that.
Here's the scoop:
1) unzip the two files to a folder somewhere on your phone
2) run KwikEMap.exe.
That's it! It runs in the background, and currently maps the following:
CALENDAR --> CTRL
CONTACTS --> TAB
MESSAGING --> HOME
INTERNET --> END
? -- > CTRL (i.e., a nice Right-CTRL, to press CTRL-A, CTRL-Z, etc)
SHIFT-PERIOD --> ? (since we lost the ? key)
SHIFT-BACKSPACE --> ESC
4) In addition, pressing FN-PERIOD will bring up the "Kwik-E-Map" window, where you can close the application or test out some key presses to view key codes. (this key is re-mappable, see below)
It runs in the background, put a shortcut to it in your start-up if you like. It uses about 35K and I have not seen the CPU usage go above .5% (and that's when pressing all kinds of keys really quickly to see how high we can get it go!)
Don't like those key mappings? want to add more? See the key mappings in the KwikEMap.txt file. All of the info you need is there.
Final notes:
1) You can map the CAPS LOCK key to, say, TAB, but I cannot figure out how to not get it to affect the CAPS LOCK state. In other words, go ahead and map CAPS LOCK as TAB, it will work, but it will toggle capitals each time you press it. Also, CAPS LOCK always registers an "UP" event as soon as you press it, so it won't work well if you need to hold it down; e.g., to use it as a CTRL mapping.
2) You can map the windows key, but it still makes the start menu appear. You CAN map the windows key to "00" (see the .txt file) which will effectively disable the windows key normal operation (such as the start menu appearing) for any un-mapped keystrokes.
3) the order of mappings in the config file matters. If you map the "A" key to one thing, and then SHIFT-A to another, you'll never get the SHIFT-A mapping unless you list that one first.
4) to use the CALENDAR, INTERNET, etc, mappings, you need a ROM that let's you use the Buttons settings to map those keys, and map them to "Do Nothing". (most of the roms here have this feature added, I believe)
5) If you change the .txt mappings, you must stop and re-start the app.
6) If you re-execute the KwikEmap.exe file, the app's window will appear, allowing you to shut it down if you like.
7) A list of windows mobile key codes can be found here.
Everything is still in alpha test mode. The Fuze keyboard is funky, so there's no telling what will work and what won't, or what side effects you might encounter. USE AT YOUR OWN RISK. (However, the worst-case scenario is that you need to do a soft-reset to get back to normal).
Please let me know how it goes. It can and will be made more efficient, eventually, perhaps a better UI at some point, a CAB installer, etc.
Click to expand...
Click to collapse
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
irus said:
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
Click to expand...
Click to collapse
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
jsmith8858 said:
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Click to expand...
Click to collapse
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
jsmith8858 said:
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
Click to expand...
Click to collapse
sorry i will try to give a better example below
file1
file2
file3
file4
file5
so lets say im in total commander and i want to copy file 1, file 3, file 5 to a different directory. so i press and hold the internet button(which i have remapped as CTRL) and tap on file 1 which opens the document so i close out of the document and tap on file 3, so now file 1 and file 3 are highlighted(selected) so file 3 opens and i close out of file 3 and tap on file 5 which opens file 5 which i close out of and now i am in total commander with 3 files selected i can now tap & hold and select copy and it will copy. but i want to select the files with out them opening. i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
irus said:
i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
Click to expand...
Click to collapse
I think you gave yourself your own answer. I can't really give you Total Command support here in this thread, I have no idea. I just map the keys, I don't control how applications respond to them!
vizmaster said:
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
Click to expand...
Click to collapse
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
mhumphrey said:
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
Click to expand...
Click to collapse
Absolutely. An item on the "to-do" list.
jsmith8858 said:
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
Click to expand...
Click to collapse
I'M using a touch pro for Telus ROM 1.03.661 date 10/14/08
I tried a hard reset before still no luck
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
efrant said:
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
Click to expand...
Click to collapse
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard. Or, give me specific examples of what you tried, what you expected to happen, and what did happen instead. That info makes things much easier to troubleshoot rather than just saying things "don't work".
jsmith8858 said:
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard.
Click to expand...
Click to collapse
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
EDIT: Also, as mentioned in the initial post, you cannot use the Calendar, Internet, etc, keys unless your ROM let's you map those keys to "None", otherwise the normal button action still occurs. So, you'd need to use ? for CTRL in that case, or define your own mappings using other keys.
jsmith8858 said:
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
Click to expand...
Click to collapse
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
jsmith8858 said:
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
Click to expand...
Click to collapse
Yes, CTRL is maped correctly to the ?-key. So it actually does work. My mistake. Except for the calendar, contacts, internet, etc. keys.
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
efrant said:
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
Click to expand...
Click to collapse
Yeah, it must be cooked in as far as I know, drivers and system files need to be replaced or updated as far as I know. NotATreoFan's ROM and I think Da_G's have this feature. I am trying to see if I can figure out a way around this, but no luck so far. I am going to see if I can "hook into" messages sent to the Keypad.dll and figure out if that works.

How can I make a simple game or app?

I've been programming for 3-4 years, about 1-2 of those years in C++(the rest in html, php, gml, js, and crapy stuff like dat). No Java, but I've heard its really easy to learn especially if you already know C++.
anyways, I've read the google tutorials and they haven't helped me since they make you download code instead of writing it (like the notepad tutorial).I've also seen all the videos that explain how android works, and I've read the stuff about it. I just want a tutorial that walks you through the process of programming an application.
basically what I want to learn is:
- How to tell if the user pressed a button, or interacted with a view
- draw an image to the screen
- open and close activities, like for a game you switch from the 1st level to the menu
- How to save data to a file, or database(whichever is best)
and things like displaying a list of items, or an alert and stuff like that.
I already setup eclipse and ran the Hello, Android application in the emulator AND my G1 with adb. So I just need to learn how to write the code
My goal(currently) is to make a picture on the screen move to the right when the user presses something(button, key, trackball, screen), but with my code, not cut & paste. I'll just turn that into a game later.
please help me with this, I've always wanted to develop apps for android(ever since I heard of it ). sorry if this sounds like a retarded question, but I've searched everywhere and I haven't found a good tutorial, and I cant buy a book
PS. I use the eclipse plugin for visually designing the layouts
http://java.sun.com/docs/books/tutorial/
I don't exactly remember from my HTML java applet days, but you can write straight to vm's frame buffer and write a simple program to change the position of the element scrolling it either way you want. Also, java input in html applets can be aided with javascript, so i used javascript to listen for user input and then have java respond to it, but that was over 10 years ago and I dont remember now T_T
really? thats helpful...
EDIT:
I've already read these tutorials on java: http://www.freejavaguide.com/corejava1.htm

[App] Readability App

https://play.google.com/store/apps/details?id=com.readability
This app would be perfect on the NST: It allows to mark a website on your PC browser for later reading, and the website will get sent to the app automatically.
The great thing about this is that only the text will be sent, every useless content of the website will be stripped. The text then gets displayed in the app using pretty nice typography etc.
Really great, unfortunately it does not work on my NST. Clicking the app icon makes the screen flash, but then nothing happens. On the Google Play site it says it needs 2.1, so it should work, but nope.
I contacted the authors of the program, and actually got a response, but it consisted of one word: "Sorry". No idea whether that means they will fix it...
Any ideas?
Hi, when the app was released I faced this problem too. I managed to fix the crash by hacking it with apktool and now it works. However, the UI is severely broken (mostly text color equals to the background, can't read anything) so the XML files need tweaking. As I didn't like the app much and ended up uninstalling anyway. I can send the apk if someone is willing to try.
I really think the NST is missing a good app for reading webpages later. Since the Readability API (also maybe other similar services) is public, it is feasible to write a new app for this.
Yes there are also Readitlater and Instapaper, but they don't seem to be as good:
They do not have Firefox plugins (only bookmarklets), the Android app is not so nice typography-wise, and also I am not sure whether they are completely free.
On my Android smartphone I really like Readbility.
I found an alternative Readability client for android, ReadIt, but the latest version was somewhat broken, probably because Readability changed its layout recently. Good thing is this app is open source, so I could fix its behavior and now it works properly (it's basic, but quite nice app). I also added NST keys support.
Modified source is here: https://github.com/marspeople/ReadIt
Wow, awesome, thanks!
It does not have background sync so you have to remember to sync your articles before you get out of Wifi range. But the reading module is great.
There seems to be a bug with the Archives section: I can not read all articles in there. Some load correctly, others throw you back to the start screen of the app.
Yeah, there may be some bugs since the developer stopped working on it. I could reproduce this one you mentioned and it is also here: https://github.com/fahimk/ReadIt/issues/3
But is open source, maybe I will try to fix it later.
It would be nice not to have to screw around with the key bindings of every program.
It's better to fix it in the Nook, where the problem actually is.
Moreover, there will be some other programs where we can't easily change the bindings.
Keycode 92 = KEYCODE_PAGE_UP (Android) = "LEFT_NEXTPAGE" (Nook Reader.apk)
Keycode 93 = KEYCODE_PAGE_DOWN (Android) = "LEFT_PREVPAGE" (Nook Reader.apk)
If you just set any of the four hard keys in TWL4030_Keypad.kl that you want to do a page down/next page to
"LEFT_PREVPAGE" everything will work out fine.
Likewise, set any of the four hard keys that you want to do page up/previous page to "LEFT_NEXTPAGE".
You have to then switch the preference in Settings / Reader to the right image.
When you are all done, a Page Down is a Page Down is a Page Down.
Renate NST said:
It would be nice not to have to screw around with the key bindings of every program.
It's better to fix it in the Nook, where the problem actually is.
Moreover, there will be some other programs where we can't easily change the bindings.
Keycode 92 = KEYCODE_PAGE_UP (Android) = "LEFT_NEXTPAGE" (Nook Reader.apk)
Keycode 93 = KEYCODE_PAGE_DOWN (Android) = "LEFT_PREVPAGE" (Nook Reader.apk)
If you just set any of the four hard keys in TWL4030_Keypad.kl that you want to do a page down/next page to
"LEFT_PREVPAGE" everything will work out fine.
Likewise, set any of the four hard keys that you want to do page up/previous page to "LEFT_NEXTPAGE".
You have to then switch the preference in Settings / Reader to the right image.
When you are all done, a Page Down is a Page Down is a Page Down.
Click to expand...
Click to collapse
I don't understand. Are you saying that editing TWL4030_Keypad.kl you can make any app (including Opera) perform page down/up without modification? I see that my TWL4030_Keypad.kl ends with:
Code:
key 407 RIGHT_NEXTPAGE WAKE_DROPPED
key 412 LEFT_NEXTPAGE WAKE_DROPPED
key 139 LEFT_PREVPAGE WAKE_DROPPED
key 158 RIGHT_PREVPAGE WAKE_DROPPED
I guess these lines were added by NookTouchTools. But most apps will not respond to these keys (except some framework elements such as ListView), unless you modify the source code. What am I missing here?
In the stock Nook, the four hard keys generate four scan codes.
Using /system/usr/keylayout/TWL4030_Keypad.kl these four scan codes are mapped into four key codes.
In /system/app/Reader.apk these four keycodes are mapped into two operations: next and previous page.
There is no reason at all to use four keycodes.
The standard keycode for KEYCODE_PAGE_UP is 92.
The standard keycode for KEYCODE_PAGE_DOWN is 93.
Assign the hard keys how you want them.
If you want two up buttons and two down, do it that way.
If you want down, up, menu, back, do that.
For apps besides Reader.apk you will be generating normal page up/page down keys.
Reader.apk fortunately does not require modification, simply set the preference as above to get the sense of up/down correct.
I have my Nook set up like this and paging works fine on OI File Manager, AndChat, K-9 Mail.
Code:
# Layout file for Nook Touch hardware buttons
key 412 LEFT_NEXTPAGE # Upper left
key 407 LEFT_PREVPAGE # Upper right
key 139 BACK # Lower left
key 158 MENU # Lower right
This is what I have for Upper left = Page up, Upper right = Page down, Lower left = Back, Lower right = Menu.
(Yes, the names in the file are "backwards" from what you would think.)
Note: Opera is ignorant. It doesn't do anything for page up/page down keys.
This has been noted and complained about bitterly on the internet.
Ok, but just to clarify, since your settings seems to be equivalent to mine (regarding page up/down), I guess your system cannot perform paging by keys in stock ReadIt app because it doesn't implement actions for KEYCODE_PAGE_UP and KEYCODE_PAGE_DOWN (I think several apps don't), right?
KEYCODE_PAGE_UP & KEYCODE_PAGE_DOWN appeared in API level 9. (We're at 7)
Later devices use these codes.
The only real control over which codes you can use is the question of which names can be parsed in a KL file.
I haven't gotten around to extending that yet.
The codes go up to 210 right now, but if you want to send a 666 to your app there is no problem with that.
Code:
# input keyevent 666
It comes through loud and clear.
hi marspeople,
thanks again for your modded readIt app which I use almost daily.
I have the following problem all the time: After having sent a new article to ReadIt, when I open it for the first time, the reader does not display the beginning of the article, but some part in the middle.
I suspect that the reason is, that the app remembers where you were in an article, but that it only stores this info relative to something like "article no. 5". now if you delete article number 5 and upload another article, probably the old saved position will be applied to the new article.
Do you think you could fix this without too much effort?
thanks for the mod, marspeople.
I find that it doesn't scroll a full screen at a time, is this normal?
Up/down swipes are sometimes interpreted incorrectly but that's no big deal.
I can't duplicate rhhd's problem.
UK-bought NSTGL on 1.2.0 + TFU ROM UPGRADE PACK ALPHA 3
marspeople said:
I found an alternative Readability client for android, ReadIt, but the latest version was somewhat broken, probably because Readability changed its layout recently. Good thing is this app is open source, so I could fix its behavior and now it works properly (it's basic, but quite nice app). I also added NST keys support.
Modified source is here: https://github.com/marspeople/ReadIt
Click to expand...
Click to collapse
Is this safe - when I wanted to connect to readability.com I got the message that Fahim karim wanted to acess my readability acount?
not checked the code yet, but I supose yes, is safe. the cuestion is related to the Readability API access. The author of the app uses his API key to access your Readability account, therefore, permision is needed.
(I know the thead is oldie, but I was searching fir exactly this. Thanks!)
bingen said:
not checked the code yet, but I supose yes, is safe. the cuestion is related to the Readability API access. The author of the app uses his API key to access your Readability account, therefore, permision is needed.
(I know the thead is oldie, but I was searching fir exactly this. Thanks!)
Click to expand...
Click to collapse
I had installed this last year and it worked no problem. I unrooted and rerooted with NookManager (original root was with TouchNooter), and now I can't authorize. I don't know if it's related to the type of root or not. When I go to authorize, it sends me to the browser, where I log in, and it gives me a code, but next time I go to ReadIT, it still wants me to Authorize. Anyone else have this problem?
Just to let you guys know, I'm using ReadItLater which is the old Pocket app. Works great on the NST.
coolius said:
Just to let you guys know, I'm using ReadItLater which is the old Pocket app. Works great on the NST.
Click to expand...
Click to collapse
How do you get the old readitlater app? And does it do auto-sync of articles from pocket cloud? Thats all I want. mark on browser at work and have it ready on my nook to be read on my way home.
sheetalc said:
How do you get the old readitlater app? And does it do auto-sync of articles from pocket cloud? Thats all I want. mark on browser at work and have it ready on my nook to be read on my way home.
Click to expand...
Click to collapse
I found it using the searchmarket app on the Nook. Direct link here: https://play.google.com/store/apps/details?id=com.ideashower.readitlater.free
And yes it syncs with pocket no problem although push-sync is not supported on 2.1 so you have to sync at set intervals or on open.
coolius said:
I found it using the searchmarket app on the Nook. Direct link here: https://play.google.com/store/apps/details?id=com.ideashower.readitlater.free
And yes it syncs with pocket no problem although push-sync is not supported on 2.1 so you have to sync at set intervals or on open.
Click to expand...
Click to collapse
hi is that link correct?
i get
"We're sorry, the requested URL was not found on this server."
is it the same as
https://play.google.com/store/apps/details?id=com.ideashower.readitlater.pro
?
thanks

Anchors in a text view or in parts of a class

I would like to know if it is possible to put anchors in a text view. I mean, if there is a method with which a user by the click of a button can be redirected to the specific part of a text view. (e.g. there is a big text and has three titles, the user by clicking the hamburger button he will be able to choose in which one of the three title will be redirected)
It this is not possible, I would like to know if there is a technique where by clicking a button the user will be redirected into another class in a specific text view.
Note: I don't want to create multiple activities and classes for each category, I need one class and the user can be redirected in the sections of the class or the text view.
Here's a simple solution, wrap it in an OnClickListener;
YourTextView.requestFocus();

Categories

Resources