[how to] Acquiring API keys - Testing

[how to] Acquiring API keys
Go to the Google Developers Console.
Select a project, or create a new one.
In the sidebar on the left, expand APIs & auth. Next, click APIs. Select the Enabled APIs link in the API section to see a list of all your enabled APIs. Make sure that the API is on the list of enabled APIs. If you have not enabled it, select the API from the list of APIs, then select the Enable API button for the API.
In the sidebar on the left, select Credentials.
Click Create new Key and select the appropriate key type:
Server keys
Create and use a server key if your application runs on a server. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses.
Browser keys
Create and use a browser key if your application runs on a client, such as a web browser. To prevent your key from being used on unauthorized sites, only allow referrals from domains you administer.
iOS keys
Create and use an iOS key if your application runs on iOS devices. Google verifies that each request originates from an iOS application that matches one of the bundle identifiers you specify. An app's .plist file contains its bundle identifier. Example: com.example.MyApp
Android key
Create and use an Android key if your application runs on Android devices. To do so, you need to specify the SHA1 fingerprints and package names of the application using that key.

Related

Here is a more convenient way to search XDA Developers using google for IE7 users

Hey, if you are like me and are so lazy that you can't stand to do an absolute minimum amount of work, and you use Internet Explorer 7, than this tip is for you!!!!
You can add google search xda developers to your inline search box at the top right of your IE7 window. It only takes a few steps to add this, and you can have it in your IE7 search box for convenient google searching of xda developers any time you want.
or if you prefer the old way, the instructions are still located here:
http://forum.xda-developers.com/showthread.php?t=304582
Follow these steps (they look like a lot, but they are simple):
1. Go to the regular google / XDA developers search url
http://www.google.com/advanced_search?q=+site:http://forum.xda-developers.com&hl=en&lr=&as_qdr=all
2. Type the word TEST (all caps) into any one of the search boxes ( with all of the words, with the exact phrase, with at least one of the words) that google offers you (depending on how you most like to search xda developers) (if you type TEST into the "with all the words" field, that is the default google search method)
3. press "google search"
4. Copy the url of the current page you are on
5. click the little pull down arrow next to the picture of the magnifying glass in you IE7 search box
6. on the pull down menu click "find more providers"
7. on the page that comes up, there is a yellow box on the right side of the page that says "create your own" paste the url that you had previously copied into the first text field in the yellow box
8. In the second text field in the yellow box type the name that you want your new search shortcut to be called (I just called mine XDA DEV)
9. click "install" in the yellow box
10. A dialogue will come up with the final options (you can click cancel to quit at this point) you can click add provider to add it as one of your search shortcuts, or check the "make this my default search povider" box to make it the one that is automatically seen in that search box when you start IE7.
11. Success!!! if you didn't already add it as your default search provider, then you can pull down the box with the little arrow next to the magnifying glass and select it whenever you want to search xda developers quickly and conveniently through google.
12. to also add google search the XDA wiki, repeat these same steps, except with this as the url for step 1:
http://www.google.com/advanced_search?q= +site:http://wiki.xda-developers.com&hl=en&lr=&as_qdr=all
13. You could also use these steps to google search any website, or even use the website's own search engine too
ENJOY!!!!!!!!!!!!!!!!!!!
Same can be done for firefox 2 and I'm using it myself.
There is a standard keyword on google to search a specific site, so in this case, go to google, type your search, and then site:forum.xda-developers.com
eg On google, to search for vijay555 within the forum, type
Code:
vijay555 site:forum.xda-developers.com
Mike: I didn't notice any large, detrimental features in IE7. Firefox is still probably the way to go, but I tend to drift between the two depending on how much WMV porn I'm watching.
Actually, I use my own browser, VJMultiBrowser, which IMHO is nicer then both, but that's another story.
V
vijay555 said:
Actually, I use my own browser, VJMultiBrowser, which IMHO is nicer then both, but that's another story.
V
Click to expand...
Click to collapse
strange
Google gives no results when searching for VJMultiBrowser?
mestrini: VJMultibrowser has never been released, to anyone except BuzzLightyear. It's very very much built around how I work, but it's been my main browser for a few years (ie since I wrote it), although obviously it's in continuous development.
That is in fact a problem, I've squeezed so many things in there, I forget what it can do. I just remembered that it has a flick gesture for flicking to the next page in a set of documents, eg, flick mouse left/right to go from
http;//forum.xda-developers.com/p=1436702
to
http;//forum.xda-developers.com/p=1436703
etc
Anyway, yeah, it's never been released, hence no information on it, but I recently made up a bit of an overview/description of it for the recent LifeHacker.com non-Firefox browser wars. However, I think I went slightly outside the limitations of the competition (they wanted a max image size of 1280*1024). There was too much to fit in, so I think I got disqualified. However, if you wanna have a look, check out the image below.
I suggest that you first put your browser in fullscreen mode (press F11), and then scroll right to the bottom first, to see how I use it in a 1x3 (ie 4 browser panes) setup normally. Then scroll back up the graphic to see some of the main features (but not all!).
V
Warning: 0.9mb image!
Click to enlarge:
http://www.vijay555.com/smilies/VJMultibrowser.png [no compression]
VJMultibrowser - Features Part 1
PS: Some of the features, as described to LifeHacker.com
VJMultiBrowser is a browser “shell” I started working on some time back. Necessity was the mother of its invention – I worked in an office that had banned use of Internet Explorer. As such, I started discreetly using a custom version of Internet Explorer in Kiosk Mode to have a very low profile browser – no chrome at all, and no easy way to navigate.
I then started working on the MiniBrowser, a single browser with minimal chrome, ie very low profile interface, designed to use 99.5% of the available screen space for the browser, using only a tiny area for the necessary interface (Back, Forward, Home, Refresh, Save etc).
I quickly realized that for most efficient use while browsing, I would typically need at least 4 windows to be open simultaneously. This gave birth to VJMultiBrowser. The browser starts off as a single browser window with low profile interface. However, as required, up to three sibling browsers can be spawned to join the parent. Each browser is color coded in the top right so as not to lose track of them.
Each browser can be used to drag and drop using the MiniIcons in the top right near the navigation bar. Thus one can stay within the same browser window but drag off interesting links to its three brethren easily. The target browser will show a fluorescent green highlight to show it’s the required drop target, and if it’s currently obscured, it will jump up to the top to show which browser you are dropping into.
The home icon can also be used as a drag icon (to drag the current URL) and also as a drop target (eg highlight a URL in Word and drop it onto the home icon and it will navigate there).
The address bar and page title can be resized or completely hidden if not required. The home icon can optionally display the URL and Title as a Balloon, so no interface is required unless needed.
The address bar is a full command line – apps can be run, calculations performed, or jump to various shortcuts and favorites. Favorites and URLs will be autocompleted.
The concept is that I can use 4 browsers as a super-tabbed browser: 4 mini tabs accessible from each browser, and each browser can be hidden or viewed by clicking on its associated miniicon. Each browser can be maximized, closed, toggled in height, shrunk to an icon (MicroIcon mode) for non-obtrusive browsing. Each browser can be freely resized, or optionally docked together (like Winamp) and joint resized in proportion. Browsers can be resized using the numeric keypad for presets, or the cursor keys for pixel perfect resizing.
Layouts and current browsing sessions can be saved and reloaded by double clicking an icon or drag dropping a session onto the navigation bar. A single click can also resize the 4 browsers to quarter full screen (ie each browser takes a quarter of the screen), quarter non-full screen (same, but not the whole screen is used), explorer layout (1 large browser, 3 vertically adjacent mini browsers) etc.
Although typically 4 browsers are sufficient, for occasional usage you can “clone” either a fully featured MutliBrowser, or its little brother, the MiniBrowser. MiniBrowsers have full functionality, but have an even lower profile chrome/interface, ie just a context sensitive back and forward button, a home icon for drag drop saving etc, and a mini address bar. MiniBrowser are designed for temporary usage, and specialized usage, eg popping up Alexa information, a list of links on the page etc. Lists of links etc can be live filtered by typing the required path into the Mini Browser address bar.
A non complete list of features (as it’s in continuous development, and also, I forget all the little things built into it!):
* Built in command line from address bar - do calculations, run applications, aliases, live search and highlight, path navigation (with one button navigation up and down the website/directory path).
* File explorer – will navigate through local system to replace the Windows Explorer with a 4 pane multi-explorer.
* Use of customisable command aliases in address bar eg:
g] LifeHacker = google lifehacker
m] Bourne = find times for films containing Bourne
i] Bourne = imdb query Bourne
TRF to translate to French, TRG to translate to German etc.
* Aliases for most popular search engines, eBay, Movies.com, Wikipedia, IMDB etc. All aliases are user configurable
* Some Greasemonkey and embedded Javascript support, and customisable advanced bookmarklet support (can inject javascript and CSS sheets directly into the page. Optionally disable scripts, CSS and frames).
* CSS remover and rewriter.
* Built in WYSIWYG HTML editor.
* Live search type-ahead Google searches with one click access to searches and "I'm feeling lucky" targets (eg, start typing LifeHa, and press Ctrl + 1 to execute a Google search on the most popular hit for that search. Press Ctrl + Alt + 1 to go directly to LifeHacker.com).
* Live highlighting, eg start typing in Life and all references to Life will be highlighted, and a popup showing the hit count will appear. Quickly navigate forward and back through hits using F11 and F12.
* Live zoom in and out, and rotation (clockwise and anticlockwise). Can be used on websites and while image viewing – particularly useful when used in Explorer replacement mode, to browse through a folder full of images.
* Optional alpha transparency for the browser.
* Optional ghost mode for true transparent browsing – makes a selected colour on the webpage transparent, to allow viewing through webpage onto desktop etc. This is useful for example docking a display of live stock prices on the desktop, but not obscuring screen in any way.
* Gesture recognition for most important browsing functions.
Eg mouse drag left/right to go forward back, mouse drag up/down to navigate up and down directory path, button + drag to get special context menu for shortcuts, favorites etc. Browse with mouse only, no forward and back clicks required.
* Can host both the Internet Explorer and Mozilla browser for the best of both browser engines.
* Ad blocker, using customisable list of blockable urls.
* Anti-phising filter.
* Anti-spoofing filter and blocker (will catch rule defined exploits and warn before displaying the page, or optionally present a text only view of the page to disarm the spoof).
* Popup blocker, with optional override (either force popup into parent browser, or into a mini-browser so as not to obscure main session).
* Popup history to show URLs of overridden popups.
* Session based Browsing History (optionally saveable, by default erased on close). Color coded history shows what webpages were viewed by which Multibrowser.
* Form Filler – single click form filler to fill forms with generic, predefined form data eg Name, Address, Telephone) or fill in a form, save that data, and re-use pre-saved data to fill in that form on request.
* Save multi-browser layouts as shortcuts to reload and resume pre-defined browsing sessions with one click (eg have a folder on your desktop containing special layouts for News, RSS, Local Drives, YouTube).
* Image extractor (will present a list of all images on the page).
* Link extractor (will present a list of all links on the page).
* Site summarizer (will present a list of all links on the page with associated neighboring text, to quickly summarize the contents of a long page of links).
* Shortcut/Alias access to Alexa data and WhoIs data (presented in a mini-browser to not obscure main browsing session).
* ThumbNailer (will inject thumbails into links on the current page to see what the destination looks like).
* Built in RSS news reader.
* Optional Magnetized windows (like Winamp) to allow window docking and for the docked windows to be dragged as a group).
* Built in scratchpad/notepad with drag and drop save.
* Built in HTML to Text and HTML to PDF conversion. Merely drag the Home icon onto Notepad, Word etc and it will be automatically converted. Optionally right drag the home icon to save the URL only as text.
* Built in Speech engine to speak page or selected text.
* Zapper – remove any annoying page element (eg flashing adverts) by moving mouse over the element and pressing ctrl + z.
* Cropper – select required selection on the page and choose menu option to crop the entire page just to the selection: useful when printing only selected parts of a complex web page.
* Built in Favorites searching with wildcard searching and session saving.
* Gesture-based Favorites popup – Favorites presented as a popup menu by merely flicking the mouse.
Click to expand...
Click to collapse
V
VJMutlibrowser - Features Part 2
Some more of the features (messages have a limit of 10,000 characters. Who knew!?)
* Drag and drop search for Dictionary references, Google and Wikipedia (merely drop a selected word or phrase onto the navigation menu and a popup for each of these searches will appear). No keyboard required.
* Any corner dragging – resize the Browser from any corner using tiny drag handles in each corner. Alternatively use the efficient Multibrowser Gripper in the top right to drag and position the window, (left click and hold), resize the window (right click and hold), maximize (double click), minimize, toggle size etc.
* Desktop docking - immediately dock to any corner or edge. Use cursor keys for pixel perfect placement.
* Resizable Breadcrumb bar to allow single click navigation through local and web paths (eg, http://www.google.com/images/deviants, clicking on ‘images’ will immediately navigate to that URL. Also for local file browsing, eg in a path C:\Documents and Settings\MP014292\Desktop, clicking ‘C:\’ will browse to C:\.
* Status bar – hidden by default, can be displayed, resized. Carries an item history to see browser ‘status text’ all previous items. Will automatically extract embedded items like YouTube movies, flash games etc so they can be saved locally with one click.
* Optional keyboard only link navigation – jump to selected links, eg alt + 6 to jump to the 6th link on the page.
* Unlimited MultiBrowser and MiniBrowser clones – if more then 4 browers are required, more fully function browser windows can be spawned at the click of a button. MiniBrowsers (limited functionality browsers for displaying popups etc) can be similarly spawned.
* Custom error screen – if page cannot be found, a Google search will immediately be initiated, with links to Google Cache, Internet Archives, different domain suffixes (eg, Vijay555.com, .org, .co.uk etc)
* Single click appending of www. .com, www. .net, www. .co.uk, www. .org etc.
* Lots of other stuff I forget.
* 238k, installed. No spyware.
Click to expand...
Click to collapse
Note that the screenshot doesn't show all features. But hopefully gives some idea of how it works. All browser panes are freely resizeable etc though, so you can have any layout you want.
V
Use the XDA-Developers Toolbar,
Take a look at it at http://forum.xda-developers.com/showthread.php?t=330587

Opera Mini

Hello,
I'm unsing Shaps Rom 4.30 WWE and I would like to use Opera Mini as my default browser and open it with a hardware button.
Is there any chance to get this to work?
I have no idea how I can start a programm in java manager without starting first the java manager.
If not a hardware button, is there the possibility to make an entry in the start menu for opera mini?
Thanks for help
was wondering the same thing...would like to initiate Opera Mini with one click of the top right 'IE' button as well. i just have it mapped to open Java first.
to allow an icon to show up in "Buttons", just add a link to the exe in the folder /Windows/AppButtons. Then you should be able to select it under settings and launch the app.
If not it's easy enough to create a cab to change the registry and remap the button that way - but you need to know the physical path of the exe.
might be a solution for ya
i mapped opera mini to directly open with my IE hardware button by using total commander, go into \windows\appbuttons then on internet explorer select properties then fully uncheck "read only" and "system" then go to the shortcut tab at the top and replace the path that would previously open internet explorer to the following "\windows\jeodek.exe" -run s1_ then click ok then recheck the "read only" and "system" boxes, and it clicking the IE hardkey will now open opera mini directly, i read this somewhere i dont recall where but i am not taking credit for it in anyway, just relaying what worked for me
Like wise, if you're using Esmertec JBed, you can make an Opera.lnk file with the following in it:
Code:
244#\Windows\jbed.exe -run s0_
And this will create a shortcut that will run Opera Mini directly (assuming it was the first app you installed in JBed, otherwise you may have to adjust to s1_ or s2_ etc...)
Hi,
I am usin a Java intend (tao) instead of emertec which use a different exe.
My path:
27#"\Windows\jmm.exe" -run s0_
But Shortcut only opens Java manager, have to select Operamini icon manualy
Can´t find direct shortcut, pls. help
Found out. This shortcut is working:
68#"\Windows\jmm.exe" -r"Opera Mini","Opera Software ASA","Opera Mini "
Install and use these files to open Mini. You can link the button to open this mortscript also. I found these somewhere else and I don't remember. so don't give me any credit.
One of them gives a menu with Opera Mini or IE to open with. The other just opens mini.
you can also uninstall without problems too.
noellenchris said:
Install and use these files to open Mini. You can link the button to open this mortscript also. I found these somewhere else and I don't remember. so don't give me any credit.
One of them gives a menu with Opera Mini or IE to open with. The other just opens mini.
you can also uninstall without problems too.
Click to expand...
Click to collapse
Well thanks for taking the time to look these up and to post them
JZ SmartMort v1.4 Released!
Announcing JZ SmartMort v1.4!​
Now you can use JZ SmartMort to make Opera Mini a default system-level browser with ability use other installed browsers side-by-side!
Have a look at the screenshots of JZ SmartMort, available HERE or at SourceForge. Below are the prominent features that the software offers.
Copy / Paste
Clipboard / URL history
Multi-browser (Opera Mini, Opera Mobile, NetFront, Skyfire, Internet Explorer)
Make any installed browser system-level, where it opens links from anywhere. Ability to have a default browser (with a special timeout in case you want to open a link with a non-default browser).
Hardware buttons - supports Pocket PCs & SmartPhones for advanced hardware button mapping.
Opera Mini - shortcut on the Start Menu, different paste & URL handling methods to accommodate different phones.
JBed - create Start Menu shortcuts for any JBed app, run JBed App directly using JZ SmartMort, troubleshoot your JBed installation.
Ability to open synced Mobile Favorites with any browser, process killing and many other interesting features.
Includes general tweaks and hacks which will keep growing
Revisions:
v1.4 *** 2008-07-07
- Created help files.
- Browser: Skyfire fully compatible now, new scan/detection with fail-over paths (if browsers references don't exist in the usual locations like the registry). If default browser timeout is set to zero, the JZ Browser prompt will be bypassed entirely.
- Opera Mini: full-screen, kill JBed option, multiple URL & pasting options.
- Lots of new options for button mapping. All known registry and link file button hacks now integrated to allow virtually any command to be called up. Also provides ability to create a CUSTOM link file from scratch.
- Changed menus to include menu-returns for easy navigation and better user friendliness. Added letters to Action menu as qwerty keyboard shortcuts.
- Phone-specific menu under JZ Settings which expands button mapping for BlackJack II (Samsung i617) CV/MediaNet buttons, as well as, AT&T Tilt (HTC Kaiser) PTT & Long-PTT buttons. More will be added.
- Creation of Start Menu shortcuts & opening of JBed applications w/o needing to open JBed first.
- 3 different methods under JZ Settings > JZ Misc. Options for opening Favorites. Save a Favorite from the JZ Browser script when you pop a link.
- Incorporated VitoCopyPaste with a timeout to return your directional pad action button back to normal.
- Various speed & optimization considerations incorporated.
- Function to deal with MortScript losing focus (e.g. when Home is pressed while Mort choice menu is running).

[N2E] Nook Touch - App Support for Hardware Buttons

I don't know about everyone else but I would love to see apps that support our Nook's hardware buttons for scrolling and turning pages. I created an small app just to find out exactly what these buttons were. I have attached the test apk and the source for it.
The buttons generate a KeyEvent that can be captured in the normal manner for handling key presses.
Left top button - 92
Left bottom button - 93
Right top button - 94
Right bottom button - 95
All the developer has to do is test for those in addition to whatever they are already monitoring for. I am going to begin emailing developers with this information and see if I get any "takers". I have emailed the following and will post a status here if I hear back:
Kindle - 5/16: Received an email saying the suggestion would be forwarded on to the appropriate development group
NewsRob (via google group) - 5/16: The developer is going to add page up/down and article up/down support!
FeedR - 5/16: Email sent
Aldiko - 5/16: Email sent
FBReader - 5/16: Email sent
In addition I am going to add hardware button support to some open source apps. I have located a number of open source RSS apps:
http://code.google.com/p/feedgoal/
http://code.google.com/p/feeddroid/
http://code.google.com/p/reader/
As an example of what we can do I have attached an updated FeedGoal where I have added support for the hardware buttons to scroll up and down on a feed article.
Update 5/17/2011:
I have modified the Browser from the stock Eclair to support page buttons and compiled it. When I try to start it on the Nook it comes up and then shuts down. One of the times I saw a "signing in" box. My thoughts is that it is trying to do something that requires gapps on the phone? If anyone has any ideas I'd be glad to try them.
* Reserved
Keys are actually
key 407 RIGHT_NEXTPAGE
key 412 LEFT_NEXTPAGE
key 139 LEFT_PREVPAGE
key 158 RIGHT_PREVPAGE
xboxexpert said:
Keys are actually
key 407 RIGHT_NEXTPAGE
key 412 LEFT_NEXTPAGE
key 139 LEFT_PREVPAGE
key 158 RIGHT_PREVPAGE
Click to expand...
Click to collapse
Those numbers are the scancodes from the keymap file TWL4030_Keypad.kl. If you are wanting to watch for key inputs in an Android application you override the "onKeyDown(int keyCode, KeyEvent event)" method and the "int keycode" that get's printed out is 92-95.
The format of the keymap file (TWL4030_Keypad.kl) is "key SCANCODE KEYCODE [FLAGS...]". In your example 407 is the SCANCODE and "RIGHT_NEXTPAGE" is the KEYCODE. The numerical value of "RIGHT_NEXTPAGE" is either 94 or 95 depending on how you set your Nook up.
If someone wants give the two attached apk's and test and verify (I've already ran them myself) that they do work as intended that would be great.
- The TouchTest should print out 92-95 (keycode) on the screen when you press them.
- The FeedGoal should page up and down when you press the right or left side keys. I may go back and change the left side to be page up/down and the right side to be article back/forward.
ReadItLater
I add a ticket to ReaditLater Support Forum.
http://support.readitlaterlist.com/...droid-support-for-nook-touch-hardware-buttons
update:
i contact the dev of electrodroid, too
are there new answers from the devs?
If you remaps two keys to VOLUME_UP and VOLUME_DOWN, almost all reading-centric programs work will hardware buttons. I have tested:
Read It Later
Kindle
Aldiko
FBreader
CoolReader
Moon+Reader
RSSdaemon
NewsRob
BuzzBox RSS reader
They all works with remapped buttons.
aruangra said:
If you remaps two keys to VOLUME_UP and VOLUME_DOWN, almost all reading-centric programs work will hardware buttons.
Click to expand...
Click to collapse
yes, of course.
but this is just a workaround and i already recognized that there are situations where i have to take the nook in the other hand to turn a page...
for example: i use the left keys remapped to volume for readitlater, so i can only use the right keys on the default reader app (which i prefer).
i think for some apps you will always have to do this remapping, especially for the kindle app in my thougts.
and it seems to me that the devs will easily can integrate this buttons in their apps.
a lot of other apps are already working with the default mapping:
e-mail
twicca
titanium backup
root explorer
alogcat
autostarts
moon+
...
Is there no way to remap the hardware buttons using like a driver software (sorry, completely noob regarding android software). Remapped buttons would help on repligo and ezpdf, my preferred readers.
I liked seeing the NewsRob support in the change log. But it only scrolls half a page down so you have to hit it twice.
I found that my old technique of remapping the key to SPACE worked better; SPACE is a page-down shortcut for most WebView apps. Unfortunately my SHIFT SPACE mapping in the layout file seemed to ignore the shift part. :-(
Android 3.0 adds real page up/down keys finally, so more apps should support the keycodes then. This isn't just a Nook issue; I've been trying to fix this on my Galaxy Tab too.
I blame Apple for not including a page down function because it's so "cool" to flick the screen around. Hope you have good timing.
Good news, everyone!
This weekend I received reply from FBReader authors. Here is the translation:
Since version 1.1.3 FBReader is able to read external file with actions mapped to keys. One can put keymap.xml file into main directory, which is /sdcard/Books by default.
File format can be seen in example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<binding key="4" action="cancelMenu"/>
<binding key="23" action="processHyperlink"/>
<binding key="24" action="volumeKeyScrollBackward"/>
<binding key="25" action="volumeKeyScrollForward"/>
<binding key="66" action="processHyperlink"/>
</keymap>
All possible actions are here:
Code:
String SHOW_LIBRARY = "library";
String SHOW_PREFERENCES = "preferences";
String SHOW_BOOK_INFO = "bookInfo";
String SHOW_TOC = "toc";
String SHOW_BOOKMARKS = "bookmarks";
String SHOW_NETWORK_LIBRARY = "networkLibrary";
String SWITCH_TO_NIGHT_PROFILE = "night";
String SWITCH_TO_DAY_PROFILE = "day";
String SEARCH = "search";
String FIND_PREVIOUS = "findPrevious";
String FIND_NEXT = "findNext";
String CLEAR_FIND_RESULTS = "clearFindResults";
String SET_TEXT_VIEW_MODE_VISIT_HYPERLINKS = "hyperlinksOnlyMode";
String SET_TEXT_VIEW_MODE_VISIT_ALL_WORDS = "dictionaryMode";
String TURN_PAGE_BACK = "previousPage";
String TURN_PAGE_FORWARD = "nextPage";
String VOLUME_KEY_SCROLL_FORWARD = "volumeKeyScrollForward";
String VOLUME_KEY_SCROLL_BACK = "volumeKeyScrollBackward";
String SHOW_MENU = "menu";
String SHOW_NAVIGATION = "navigate";
String GO_BACK = "goBack";
String EXIT = "exit";
String SHOW_CANCEL_MENU = "cancelMenu";
String ROTATE = "rotate";
String INCREASE_FONT = "increaseFont";
String DECREASE_FONT = "decreaseFont";
String PROCESS_HYPERLINK = "processHyperlink";
String SELECTION_SHOW_PANEL = "selectionShowPanel";
String SELECTION_HIDE_PANEL = "selectionHidePanel";
String SELECTION_CLEAR = "selectionClear";
String SELECTION_COPY_TO_CLIPBOARD = "selectionCopyToClipboard";
String SELECTION_SHARE = "selectionShare";
String SELECTION_TRANSLATE = "selectionTranslate";
String SELECTION_BOOKMARK = "selectionBookmark";
Program must be restarted in order to pick up changes in config file.
Can anyone test if this really works? I can't test it right now.
And, I suggest to make a donation to this wonderful program authors.
Cheers.
Great news!
If other developers would do the same, we'd be in heaven.
I'll only be able to try it tomorrow, but I'll inform as soon as I do it.
DenisTheMenace said:
Good news, everyone!
This weekend I received reply from FBReader authors. Here is the translation:
Since version 1.1.3 FBReader is able to read external file with actions mapped to keys. One can put keymap.xml file into main directory, which is /sdcard/Books by default.
Program must be restarted in order to pick up changes in config file.
Can anyone test if this really works? I can't test it right now.
Click to expand...
Click to collapse
Thanks! It works very nicely with FBReader. My keymap.xml file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<binding key="92" action="nextPage"/>
<binding key="93" action="previousPage"/>
<binding key="94" action="nextPage"/>
<binding key="95" action="previousPage"/>
</keymap>
Does anyone know the key number of the Nook button? It's quite useless for FBReader and it would be nice to remap it to some other function. Thanks!
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
GabrialDestruir said:
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
Click to expand...
Click to collapse
Yes for remapping the n-button. See this post. But still haven't had the time to do it. Too busy with work.
GabrialDestruir said:
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
Click to expand...
Click to collapse
I've started working on exactly this during this weekend. I have so far succeeded in creating service that runs in the background and makes the upper left button a "HOME" button - meaning it shows the home activity of your choice rather than the built in menu like the n button. I'll be glad to give more technical details on what I have learned so far (when I have time, probably next weekend).
In the mean time, I would like input from other users as to some specifics on how it should work.
Here is my current vision:
- Have option to start the service manually or automatically start at boot (currently hard coded to start a boot)
- The keylayout files can remain untouched so that they still work properly for the stock applications
- the service will be aware of what Activity is in the foreground and remap purpose the buttons accordingly.
- there will be a settings Activity that lets you choose the functionality of each button on a per application basis
- the choices will to be to broadcast an Intent or to create a virtual key press (for example, my "HOME" button does not actually cause a HOME key press, but broadcasts a act...MAIN cat...HOME intent, my next experiment will be to send Vol Up/Down keys when Kindle app is running)
And this is slightly off topic, but I would like put this on sourceforge or google so that others can contribute and have easy access to it. I've never done that before, so advice on this would be appreciated.
mycr0ft said:
but I would like put this on sourceforge or google so that others can contribute and have easy access to it. I've never done that before, so advice on this would be appreciated.
Click to expand...
Click to collapse
May I suggest github? git is much more sophisticated than CVS/SVN and their clones.
I basically agree with the app functionality. May be I will take part in implementation (I wish there will be ~36-48 hours in a day )
Thanks for the advice. github looks promising.
Anyone interested can have a look:
Code:
https://github.com/mycr0ft/nook-touch-button-service
I've run into a bit of a problem with simulating a key press. The android developers have not made it easy (which is good for device security).
- I have tried Instrumentation.sendKey..., but that only works withing the same application. Even with the INJECT_EVENT permission, you cannot inject events into other applications (unless they are signed by the same packager). Repackaging every single app that you load does not sound like a good option.
- I have tried using the 'sendevent' shell command. This appears to be limited to only duplicating scan codes keys that actually exist.
- I am currently trying to compile uinput driver (available in the source code download from bn) and load it using insmod. I am stuck here for the time being because I can't figure out how to get it to compile to the right kernel version (version magic mismatch in dmesg)
I think you will need root to inject a key event in an other app
You can look at the SoftKeys source code (here), it may help you.
In the past, SoftKeys used a script called "input" to inject events (according to http://forum.xda-developers.com/showpost.php?p=10497165&postcount=309) but now it seems that it uses something else ...
mdall, thanks very much. this is very useful information.
Droid Comic Viewer
I think also Droid Comic Viewer would benefit from hardware buttons support.
It's a nice little comic reader app supporting all relevant formats (CBR, CBZ, ACV & image formats). Animations can be disabled and there's no dependency with touchscreen interface (it can be entirely operated with button actions). This would make it perfect for an e-ink screen.
I sent an email to the devs today, let's hope they get back to us!

[APP][4.0+] Automate closed Alpha - a better Tasker?

I’am looking for participants in the closed Alpha of my coming app Automate. I need feedback!
The app lets you automate tasks on your device, similar to Tasker.
The app has reached public beta:
http://forum.xda-developers.com/android/apps-games/app-automate-t2870633
To participate, join the alpha forum:
https://groups.google.com/forum/#!forum/automate-alpha
Then, opt-in as tester and download from Google Play:
https://play.google.com/apps/testing/com.llamalab.automate
Here is list of features that’s, hopefully, going to make Automate unique:
Modular security. Many may be hesitant to install an app that requires every Android permission to be useful. Only grant Automate the permissions that you’re actually using.
Logical presentation. You edit a flowchart which makes it easy to follow what’s going happen.
Everything included. If an action is useful, include it in the app so you don’t have to rely on (pricy) add-ons. Automate currently have 150+ actions, more is coming.
Simple, yet powerful. Power-users should be able to use variables and expressions everywhere, but novices can select from predefined options.
Self-contained. Automation flows should be self-contained and safe to shared among users.
Version 0.1.1a
What’s new in v0.1.1:
Audio player control block
Bluetooth device connected block
Bluetooth enabled block
Bluetooth set state block
Gmail unread count block
Start service block
Shell command block
CLI encode function
Glob function
Alot of icons
Much of the documentation
Version 0.1.2a
What’s new in v0.1.2a:
Home/lock screen widgets to start a flow
Flow stop block
Mobile data enabled/set state blocks
Bug fixed in Plug-in blocks variable exchange
Bug fixed in Screen off timeout block
Bug fixed in Call end block
Version 0.1.3a
What’s new in v0.1.3a:
Community to share flows
Block search
App start shortcut block
Keys function
Shuffle function
Bug fixed in Screen off timeout block
Version 0.1.4a
What’s new in v0.1.4a:
Descriptive block captions
Manage permissions in settings
Warn for power usage in the sensor blocks
Expand/collapse flow description
Version 0.1.5a
What’s new in v0.1.5a:
New superuser (root) permission
Moved “draw over other apps” permission from “Camera & sound” to “Other apps”
Airplane mode set state block
Location provider set state
NFC set state block
Screen orientation set block
Await time block
Renamed Time of day block to Time window
Added YES/NO button text to Dialog confirm block
Bug fixed in Location pick dialog
Version 0.1.6a
What’s new in v0.1.6a:
Calendar event add block
Calendar pick block
Personal information permission updated with “write calendar”
Implemented in-app billing, but it’s disabled and not enforced
Version 0.2.0b
What’s new in v0.2.0b:
Public beta!
Added proceed option to Wi-Fi scan block
Various bug fixes
Thank you all for participating in the alpha!
The app is now going into public beta, everyone can try it out, for free:
https://play.google.com/store/apps/details?id=com.llamalab.automate

[Q] Module OnTap to open web pages?

Hello,
I created a widget which displays data received from Tasker. On different items of this widget, I'd like to add an OnTap action that would open a web page providing more details. Is there any way to:
- Open a specific URL with the default web browser via Module OnTap?
- Use a variable provided by Tasker as the URL to open?
Thank you
Did you ever manage to do this? i need to open an url as well...
no params in my case, just tap to open an url.
thanks
nickimola said:
Did you ever manage to do this? i need to open an url as well...
no params in my case, just tap to open an url.
thanks
Click to expand...
Click to collapse
Hi
Since that time, I abandoned the idea and forgot this topic. Recently however, I found the following workaround:
- Store (or generate) the destination URL in a Tasker variable
- Create a Tasker task to with only the command "Navigate to URL", and provide it the URL from above
- In Zooper's OnTap, select "Tasker shortcut"
- Then, in the Tasker tasks list presented to you, choose the one you created at step two
Depending on your use case, you may merge the first two steps in the same Tasker task.

Categories

Resources