[Q] How to configure once OnTop action is defined? - Zooper Widget General

I have a widget (that was originally defined by another developer).
The menu on Long Press on this widget does not have an Edit option. But a Short Press gets me into the config pages and I can edit layout, etc… UNTIL I set a Widget OnTap Action. Once defined, of course, short pressing on the widget executes the OnTap Action, and I seemingly have no way to get back to the config pages.
Am I missing something? a) why is this particular widget lacking the “Edit” option in the Long Press menu, and b) without the edit menu, how can I enter config if I’m defined another OnTap Action?

ProfessorStein said:
I have a widget (that was originally defined by another developer).
The menu on Long Press on this widget does not have an Edit option. But a Short Press gets me into the config pages and I can edit layout, etc… UNTIL I set a Widget OnTap Action. Once defined, of course, short pressing on the widget executes the OnTap Action, and I seemingly have no way to get back to the config pages.
Am I missing something? a) why is this particular widget lacking the “Edit” option in the Long Press menu, and b) without the edit menu, how can I enter config if I’m defined another OnTap Action?
Click to expand...
Click to collapse
Open Zooper from your app drawer, then select "Configure Widgets". You are presented with a list of widgets you currently have active (naming them helps a lot here!). Select one and you will get the widget edit screen for that widget.

Related

Command Line Interface

I've had a look at a few programs and they all require command line changes to set up specific option. I have no idea how to get this to work with WM5.0 and no ammount of Googling and forum searches has helped. I know what to do in a desktop environment but there is no option for mobile based applications. Can anyone tell me how to add command line options to a program or shortcut on WM5.0?
total commander
Thanks
EDIT: NVM me a fool...
if you just want to launch an app with command line hold down the action key (the one in the middle of the d-pad) then long-tap the clock / battery icon area on the top bar. Release the action button and a popup menu will appear giving you the "RUN" option just like on a desktop PC.
levenum said:
if you just want to launch an app with command line hold down the action key (the one in the middle of the d-pad) then long-tap the clock / battery icon area on the top bar. Release the action button and a popup menu will appear giving you the "RUN" option just like on a desktop PC.
Click to expand...
Click to collapse
Oh, wow! That is a very handy bit of information!
Sorry to bring up such an old thread, but I haven't been able to get this d-pad trick to work (in WM6.1). The app just opens as soon as I press down the center button. I've also been trying to do it through Total Commander but I haven't been able to figure out where to specify the options. I've been at this for two days. Can someone please point me in the right direction so I stop feeling like an idiot? Thanks.

[APP][09/29/11] Book button menu. {NEW:LandscapeSwitch,Propagation}

Heya all.
Changelog:
1.1 - Added orientation switch and propagation (open "Reading Now") to Nook reader
1.0 - Initial release with home and CoolReader option.
Working on:
Investigating the way to distinguish if opening reading now book and not other epubs in order not to show menu on any library book click.
History/Idea:
Just got nook last Sunday as gift and immediately noticed after root that back/menu buttons in status bar is great, but would be even better to use book button as home OR as menu, was messing with framework, etc. to no avail, but finally got a better and simpler solution, but with cons.
After installing CoolReader I noticed that "reading now" button will trigger android select app menu with Nook Reader and CoolReader, so it is broadcast event, opening with CoolReader shows it is getting started epub.
So, here it is. Simple app, registers as one of the epub readers, by having last read in native nook reader any epub - and by pressing "reading now" button it will trigger app select dialog with my app in list (you can check to always open epubs with it).
It will show styled popup menu (see screenshot) containing only Home (will open default one or list of available homes if none selected as default), orientation switch, CoolReader shortcut (hardcoded now) and Nook Reader (this one will open remembered "Reading Now" book)
Cons:
1. Will be triggered on any broadcast event to open epub. (I don't care as I read in fb2)
2. If nothing in "reading now" it will not be triggered as well if "reading now" is not epub
3. hardcoded shortcuts for now
If it generates enough interest I can improve app (in current state functionality is enough for me). I could think of adding next features:
1. Add/Configure any shortcuts, e.g.:
* Back/Menu buttons in addition to home (this will required root to run)
* Add/Configure any shortcut
2. Add ability to propagate event data, e.g. if "reading now" sending "warandpeace.epub" to this app - send it to launching app if configured. This will allow to register this app to open epub and then open configured reader with epub data - done, besides configuration
3. Investigate launch origin (launching activity) and if it is not opening from status bar, but for example from astro/library - open configured reader propagating data.
4. Organize shortcuts as tree
5. Add recent apps submenu
Really interesting
It could even replace Button Savior in a subtler way
BTW, in the same spirit, do you know if it could be possible to change the app launched when you click on the home button in the menu that appear when you press the n button ?
hi,
i tried it and it works great, thanks!!
isn't it possible to launch the default app automatically, when pressing the button?
(on a side note: wouldn't it be possible to reconfiger the home button of the standard nook menu (the one that opens when you press the n-hardware-button) to launch the default android home?app?
edit: ok, somebody was quicker, i swear i didn't copy..
XorZone said:
If it generates enough interest I can improve app (in current state functionality is enough for me). I could think of adding next features:
1. Add/Configure any shortcuts, e.g.:
* Back/Menu buttons in addition to home (this will required root to run)
* Add/Configure any shortcut
2. Add ability to propagate event data, e.g. if "reading now" sending "warandpeace.epub" to this app - send it to launching app if configured. This will allow to register this app to open epub and then open configured reader with epub data
3. Investigate launch origin (launching activity) and if it is not opening from status bar, but for example from astro/library - open configured reader propagating data.
Click to expand...
Click to collapse
Consider my interest highly generated. This is flat out great, especially if the option to go to Reader is built into Nook Book Button menu, and with the options of Back and Menu. I like Button Savior, but this has all of the same potential with a less obvious footprint and more seamless execution.
I'm running it now and this is really fun - if #2 can be done as well I see this as becoming an indispensible app for the nook touch root.
Sent from my NookColor using xda premium
Thanks. I'm trying to get a clue if it was launched from "Reading now" button or from other app. I can easily distinguish between "Reading now" and let's say Astro, but cannot distinguish from Nook Library.
And... great news - I'll post update soon with working landscape/portrait button.
Working on: opening only from "Reading now" or other nook app, but skips to configured reader otherwise. Also, instead of CoolReader I'll have configured reader in the menu.
For the back/menu buttons this will require root.
It is possible to change "n" button, I have it configured as Search button and assigned SoftKeys to search button long press. I'll post instructions soon as well as modified SoftKeys to handle Search long press without need of external app and also with a bit more friendly colors for eInk (background of recent apps white instead of blured)
unattached said:
isn't it possible to launch the default app automatically, when pressing the button?
Click to expand...
Click to collapse
Do you mean just to launch let's say CoolReader instead of NookReader by the press of "Reading now" button?
I think you've done a great job. and I guess adding a list of (programmable) shortcuts on that button would be neat (like when copying several chunks of text from a pdf to a doc text or something of the sort).
Ok, story number 1:
I dissembled (smali) framework jars and now have good idea how that book button works, basically it send custom broadcast, problem is that broadcast not ordered, I can change service.jar to broadcast mine event and this will allow to configure how to act, e.g. you can configure as default (reading now so I'll just send original broadcast), popup this menu or launch any app including home or softkeys directly.
Will play a bit more if androidriority indeed works even for unordered sendBroadcast and if I can abortBroadcast to not allow original reader spawn - we can avoid modification of the service.jar.
story 2:
WindowManagerPolicy/WindowManagerService seams like directly invoking native (JNI) code on home button, I was playing with remapping keys and finally found one that works with single press (Call not bringing dialer at all, camera only sends broadcast at long press, etc.), but by default it will not awake device, will have to play if I can awake from broadcastReceiver, if yes - it means we can configure "n" (home) button to do whatever we want.
Well, I don't use coolreader, but the extra home button and portrait/landscape button works very well.
Great job!
For me, the only thing missing is adding 2-3 apps on the list, and I'll be quite happy.
I don't use the N button much, but it could become a neat menu or back button.
Great App
Thanks for spending time making this app for us Nook Touch users.
I think this app is definitely a candidate for partial refresh. Having the full screen refreshed to draw the small dialog seems to be overkill. Not sure if that's under your control or not...
I definitely have an interest in remapping the N button to home. Perhaps long press launches the original menu?
cheers! gr8 post,
XorZone said:
Do you mean just to launch let's say CoolReader instead of NookReader by the press of "Reading now" button?
Click to expand...
Click to collapse
thats what i meant! launching just one app automatically, let's say cool reader.. (maybe launching the home app automatically would also be possible? then we would have all the standard buttons in the task bar!)
cheers
Sent from my HTC Desire using XDA App
Well, I've noticed that not all apps are turnable (haven't tried all yet, but I can spend like 30 minutes trying them all).
BUt great job nonesoever.
Having trouble
Would anyone know how I clear the default selection for the Reading Now icon in the status bar? The NookBB menu now will not come up anymore when I press the Reading Now icon.
It was working out great for me until this:
1) When I first installed NookBB (v1) and then pressed the Reading Now button, it would pull up a dialogue box asking which action I'd like to set as the default - either the Nook BB menu or the default Reading Now application (which would be the B&N reader app).
2) I selected as the default the Reading Now application (B&N reader). Then I decided I wanted to use the Nook BB as the default but couldn't figure out how to do it. The Manage applications for NookBB won't let me clear default there as it is greyed out.
3) I tried uninstalling, and installing v2. It loads the app icon to my app drawer, but the only way to invoke the Nook BB menu is to press this icon. Pressing the Reading Now button takes me to the B&N reader.
I have just found a very interesting app while searching something on github
(I posted it here mainly because I didn't want to start a new thread)
Relaunch (coded by yiselieren) is a filemanager / launcher / task manager for Nook Simple Touch. and it has very interesting features.
One of them is that when you click on the Home, library, shop or search button in the menu of the n button, you can choose to start ReLaunch instead of the default app.
I think it would be great if you could add something (more or less) similar to that in your app.
For clearing uninstall and reinstall should work. You can try installing any epub reader (such as coolreader) and it should bring selection popup back to choose default one.
Anyway I've done patching services.jar so it will load Nookbb by pressing that button with option to go directly to reading now not relying on epub files and *only* by pressing that button.
Also for the nook menu (n button) I done remapping (easy one) and almost done custom small app so n button will act as stock Android home one, e.g. it will go home with short press and bring recent apps (using softkeys now) on long press. Still have to tinker device wake if it's locked instead of going to home behind screensaver.
I plan to post it both tonight or tomorrow.
Then I can spend time adding customizations and partial refresh.
Sent from my SAMSUNG-SGH-I897 using xda premium
XorZone said:
For clearing uninstall and reinstall should work. You can try installing any epub reader (such as coolreader) and it should bring selection popup back to choose default one.
Click to expand...
Click to collapse
Thank you, uninstall didn't fix it but installing cool reader did.
Can't wait for the new fixes, very impressive already.
Sent from my NookColor using xda premium
I'm loving this app and very excited to see a Touch specific app. If you further tweak the Book Button Menu I'd like the ability to subsituite the E-reader software of my choice instead of Coolreader. I'm currently using Mantano Reader and enjoying the software.
ryanpl said:
I'm loving this app and very excited to see a Touch specific app. If you further tweak the Book Button Menu I'd like the ability to subsituite the E-reader software of my choice instead of Coolreader. I'm currently using Mantano Reader and enjoying the software.
Click to expand...
Click to collapse
I'm currently finishing n button mod to act as stock android home (short click - goto home, long click recent apps list with all buttons (back, home, menu, search, orientation). Almost done - testing and trying to apply partial refresh.
Next step - I'll publish patched services.jar so BookButton will be launched only by this book button not relying on epub files.
Next will be settings for the BookButton to configure all aspects of the menu, e.g. appearance of Home, Orientation as well as custom shortcuts.
thanks, I realy like your application. Very usefull but I don't use "Cool reader". I use "read it later" and "ezPdf" for reading.

[Q] the use of buttons?

Is it possoble to get me to press a bitmap and male ot shrink while making a different one grow?
Yes this can be achieved. With any type of toggle input you will need to create a Tasker task which will toggle a variable on or off. You can then output this variable to Zooper and use a conditional to act upon the variable state (in this case you would want to use the bitmap scaling function on each of the bitmaps) then set the module on tap element of both bitmaps to the task shortcut in order to activate it.
The speed at which this works would be dependant on your phone/tablet so it might not work particularly fast.
Is there a video for this? Im kinda confused but im understanding it a little more.
Sorry for not getting back to you sooner.
This isn't a video but should help you to create the toggle in Tasker: http://www.pocketables.com/2013/03/how-to-create-a-toggleable-task-in-tasker.html
After you have got that working you just need to add another action so press + in your task then select plugin, and then Zooper Widget Pro.
In configuration enter the Tasker variable in ZW Text (remember the %) and enter a name in ZW Variable which you want to use in zooper, this can be anything you want. The convention is to use all capitals for Zooper variables buy it is not necessary.
Once you have saved this you will see that Tasker has added #T to the start of your variable and another # at the end, this is what you will be using in zooper.
Exit from the task with the < icon in the top left corner until you are back at the task page. This is important as it saves your task and also you will not be able to access the task shortcut from Zooper (or any other app for that matter) as Tasker will still be in edit mode.
Right, in your zooper widget call up one of your Bitmaps and go to advanced parameters. Enter this code , changing the variable name to what you have chosen
PHP:
$#TTASK#=1?[s]50[/s]:[s]100[/s]$
This tells Zooper to display bitmap at 50% if #TTASK# is set to 1 or 100% otherwise
Go to module on tap, select the Task Shortcut from the shortcuts menu, then select your task from the list - It will probably prompt you to select an icon. Do that and you have finished that bitmap. Now repeat the parameters in the other bitmap but change =1 to =0 so it is reversed then you are done.
Hopefully I haven't missed anything but let me know if you encounter any problems.
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Lstarz said:
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Click to expand...
Click to collapse
You've misunderstood me a little there, probably my fault.
In Zooper configuration enter %Toggle as the ZWText. It need to be the variable you have already defined in tasker, otherwise you are telling tasker to output a variable that you are not setting.
Also, you can just put one zooper plugin activity after the End If instead of having two separate statements as Tasker will read this last and update then.
Dude the man it works now
When I'm done with the widget I'll tell you so u can see what I shud improve, ATM I have 2 five nights at Freddy's widgets posted if u wanna check them out
Yo, the doors work for the toggle, but I'm trying to make chika and bonnie pop up on screen after a certain time that they show up at the doors
So basically, can I make a timer that that is triggered by one bitmap showing up and when it goes to zero a different bitmap pops up?

How to create Extreme Power Saver shortcut in home screen for HTC 10/M9/M8

Hello!
I am happy I could create an Extreme Power Saver shortcut in home screen for HTC U11/10/M9/M8 and I would like to share how I accomplished that.
1) Download, install and run application QuickShortcutMaker from Google Play Store.
2) Search for "power" in Activities tab, expand power and click on "ExtremePowerSaverConfirmActivity" as shown in the attachment in this thread.
3) Optionally change label or icon if you like. (One sample icon image is attached below)
4) Then click "Create" (note that "Try" option will not work).
5) Test the new shortcut to set EPS automatically from home screen!
Thanks!
Daniel Liedke

How to create a button to “force close a specific app” on my home screen?

There is an application running in the background (it can only be disabled by going to Settings-App-"This app"-force close).
I want to create a button to “force close a specific app” on my home screen. Pls help me.Thanks for reading.
Tasker should be able to accomplish this for you.
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
Long press app icon and then app info is also sort of a shortcut rather than going through settings, apps ect.

Categories

Resources