[Q] Finding right place to mod an app - Java for Android App Development

I hope this is the right place to post a question about modifying an existing app. In the long run, I want to create a Xposed module to do the modification, but to get started I work with modding the decompiled app. The app in question is de.zeit.diezeit.epaper.android, which is a German newspaper reader app (I am not expecting anyone to know it). What I want to do is to get rid of the scrolling animation when reading an article, because I am using this app on an eInk device (Icarus Illumina).
Now my problem is, I don't find a starting point. I have to say I don't have much (read: almost none) experience with writing Android apps (although I have a lot of programming experience otherwise). Thus I have no idea how such an animation would be implemented. I searched for references to the Scroller class and replaced the duration argument of the startScrolling method by 5ms, but this didn't change anything.
Is there any way to run the app in some kind of debug mode to see which methods are called at which time? Another idea how to find the right spot might be the trigger of the scroll: I am using the hardware page turn buttons of the device to scroll down exactly one page. How would this be implemented, what should I search for to find the code that reacts on these buttons? (Also: how can I press these buttons in the emulator?)
I am sorry if I am asking too many noob questions. If there is relevant documentation I have obviously missed, please point me to it. Thank you very much for any help!

Try looking under res/anim*

mhier said:
I hope this is the right place to post a question about modifying an existing app. In the long run, I want to create a Xposed module to do the modification, but to get started I work with modding the decompiled app. The app in question is de.zeit.diezeit.epaper.android, which is a German newspaper reader app (I am not expecting anyone to know it). What I want to do is to get rid of the scrolling animation when reading an article, because I am using this app on an eInk device (Icarus Illumina).
Now my problem is, I don't find a starting point. I have to say I don't have much (read: almost none) experience with writing Android apps (although I have a lot of programming experience otherwise). Thus I have no idea how such an animation would be implemented. I searched for references to the Scroller class and replaced the duration argument of the startScrolling method by 5ms, but this didn't change anything.
Is there any way to run the app in some kind of debug mode to see which methods are called at which time? Another idea how to find the right spot might be the trigger of the scroll: I am using the hardware page turn buttons of the device to scroll down exactly one page. How would this be implemented, what should I search for to find the code that reacts on these buttons? (Also: how can I press these buttons in the emulator?)
I am sorry if I am asking too many noob questions. If there is relevant documentation I have obviously missed, please point me to it. Thank you very much for any help!
Click to expand...
Click to collapse
Hi, very late after the question, but I am considering buying an Illumina XL HD e-reader in order to have e-ink to read newspapers. What has been your experience with your device (which model in particular is it?)? Also, I would like to root it. Do you know if that is possible? Finally, did you manage to modify the app? If so, was it difficult?

Hi, hope you found the solution

Related

Softkeyboard automatically opens

Greetings all
1st off, just wanted to say thanks to everyone here. This is a tremendous resource for all things PPC.
Is there a way to disable the softkeyboard from automatically opening up but leaving the icon there so I can activate it manually?
I did a few searches here regarding this and didn't see anything pertinent so I'll apologize in advance if I missed it.
Bump......
anyone?
I think it is possible to install a fake soft keyboard that does nothing. I have not used one but seen one on the net. Maybe proposed by Phm.
I have found it. Check the last item on this page:
http://www.phm.lu/Products/PocketPC/PowerToys/
Not a bad band-aid fix but it requires a few more screen taps to pick the correct keyboard when I do need it - but thanks for the reply
I'll keep looking...

WM6 Device Lock Filename

Does anyone know the exact name and location of the WM6 device lock file, ie the one where you can either use a simple pin or a complex password to enter your device? I definitely do not mean keylock.exe, as this is the wrong file.
I have searched this entire site using both google search and the normal search and drawn a blank. Also drawn a blank on the wider internet search although I admit my search criteria may be the problem.
Thanks in advance for your help.
WB
if you can't find an existing app to run that will lock your device, perhaps it would be easier to write your own?
at first glance, it would appear that a call to SHDeviceLockAndPrompt would do what you need
dalelane,
Thanks for this pointer. Interesting thought on writing a bespoke app; however I'm keen to use what's already there.
Problem is I need to ensure that one cannot circumvent the existing lock process when its engaged. At the moment I can do this, which worries me.
Appreciate the input.
WB
Hi
Have you found a Solution?
LG
Daniel
DanielS,
I went down the route where I made sure I wasn't running any apps that could circumvent the lock and that's about it, really.
I never actually got a direct answer to the original question I posed.
Cheers
WB

[Q] Customizing TF3D Clock Tap Behavior

Hey all,
Recently purchased a Touch Diamond and have been heavily modifying the software/rom over the past few days. I'd first like to thank everyone who has contributed! There is such much information out there that it's sometimes hard to disseminate it all for new users.
In any case I have done a lot of extensive searching for this question and I've found a possible solution but only leads to more questions for me. Here's my question, how can I customize the application which is launched when I tap the clock on the TF3D home screen?
Through searching I've found I might have been able to edit manila.xml (26948339_manila) but couldn't find anything specific to application launching in that file. I also found reference to using something called "SSMaP" but was unable to find any further information regarding this application via the forums of google.
Can anyone point me in the right direction?
Thanks,
-Mike
Here you are...
http://forum.xda-developers.com/showthread.php?t=407777

Default WinMo keyboard gone on T-Mobile TouchPro2 with 6.5 download

I just installed Windows Mobile 6.5 onto my T-Mobile TouchPro2. Now, the old, default windows mobile on-screen keyboard is gone. I know I'm probably one of the last people in the world who still uses it, but I use it because it doesn't take up a lot of screen room and I use the stylus a lot anyway for a lot of my applications.
Does anyone know how to get this keyboard back? Is there a cab file somewhere of the default windows mobile 6.1 keyboard I can download? If it's not possible, does anyone know of another option for a keyboard that is meant to be used for the stylus and is relatively small?
dshersze said:
I just installed Windows Mobile 6.5 onto my T-Mobile TouchPro2. Now, the old, default windows mobile on-screen keyboard is gone. I know I'm probably one of the last people in the world who still uses it, but I use it because it doesn't take up a lot of screen room and I use the stylus a lot anyway for a lot of my applications.
Does anyone know how to get this keyboard back? Is there a cab file somewhere of the default windows mobile 6.1 keyboard I can download? If it's not possible, does anyone know of another option for a keyboard that is meant to be used for the stylus and is relatively small?
Click to expand...
Click to collapse
google "tmobile touch pro 2 screen keyboard sip" search search search before u post
I did the search you suggested to dshersze --"tmobile touch pro 2 screen keyboard sip" and all that came up is this page. I can confirm that the standard windows mobile keyboard has been removed from T-Mobile's latest ROM, and I've done a good bit of searching online without finding a .CAB for that ol' standard keyboard, or a way to tweak T-Mobile's new WM 6.5 ROM to activate it. So dshersze's questions seems reasonable, and not deserving of a "search before u post" admonition. akademik_acheeba, if you know where there's a page that explains how to fix this issue, could you post a link to it?
Thanks, Alan
so after 2 mins of searching for an onscreen keyboard for TP2 or WVGA in general, these are your options:
http://forum.xda-developers.com/showthread.php?t=486227
http://htcwinmobile.blogspot.com/2009/07/finger-keyboard-2-finger-friendly.html
http://forum.xda-developers.com/showthread.php?t=501122
http://forum.xda-developers.com/showthread.php?t=487677
http://forum.ppcgeeks.com/attachment.php?attachmentid=47109&d=1257216820
http://www.1800pocketpc.com/2009/01...nger-friendly-keyboard-sip-for-pocket-pc.html
http://www.1800pocketpc.com/2008/12/31/touchpal-35-finger-friendly-keyboard-for-windows-mobile.html
http://forum.ppcgeeks.com/showthread.php?t=42734
SEARCH
p.s. what ROM are you using? is it the official TMo that came out today(not the leaked) or are you using one of the xda chefs? if it is from xda then this question belongs in that ROMs thread.
I am not missing my onscreen keyboard in the 6.5 TMOUS ROM, it is there as it has always been, maybe you shoudl reflash
I can confirm that the default WM Keyboard(the one that looks like a full keyboard and is really only suitable for stylus input or for people with microscopic fingers) is absent from the new 6.5 update (both leaked and official). To check this, pull up your SIP and enter the input options menu.
Here is what I use along with my options...
Thanks for the screenshots- they show that you do not have the SIP in question either. My guess is that someone decided that it wasn't a popular input method, however, I can see where this might be a preferred keyboard for stylus intensive input or for access to keys not found in most SIPs.
The T-Mobile 6.1 *Official* ROM called this SIP "Keyboard", and on the 6.5 *Official* ROM it has been replaced by "Transcriber" which on 6.1 was found under "Other Input Methods".
I wish people wouldn't be so eager to attack a legitimate posting without a clear understanding of what is being addressed. I think that most of us make a genuine attempt at searching for answers prior to creating a thread, but it seems like there are some that are just waiting to pounce without hesitation to accuse someone of not following forum rules. Give me a break, I know that not everyone here is an adult, but attacking someone with the insinuation that they did not do a proper search seems to have become far too common and does nothing to help anyone. Why not assume that a thorough search has already been attempted and rather than providing an admonishment and a slew of links (that I doubt had anything to do with the issue at hand) provide a reasonable explanation or solution along with those links? In my opinion, this is what these forums are for: a valuable resource of information and advice.
Seattle Rat said:
Thanks for the screenshots- they show that you do not have the SIP in question either. My guess is that someone decided that it wasn't a popular input method, however, I can see where this might be a preferred keyboard for stylus intensive input or for access to keys not found in most SIPs.
The T-Mobile 6.1 *Official* ROM called this SIP "Keyboard", and on the 6.5 *Official* ROM it has been replaced by "Transcriber" which on 6.1 was found under "Other Input Methods".
I wish people wouldn't be so eager to attack a legitimate posting without a clear understanding of what is being addressed. I think that most of us make a genuine attempt at searching for answers prior to creating a thread, but it seems like there are some that are just waiting to pounce without hesitation to accuse someone of not following forum rules. Give me a break, I know that not everyone here is an adult, but attacking someone with the insinuation that they did not do a proper search seems to have become far too common and does nothing to help anyone. Why not assume that a thorough search has already been attempted and rather than providing an admonishment and a slew of links (that I doubt had anything to do with the issue at hand) provide a reasonable explanation or solution along with those links? In my opinion, this is what these forums are for: a valuable resource of information and advice.
Click to expand...
Click to collapse
Score one for civility. We must remember that not everyone speaks English as a first language. In addition you can't search for something if you don't know the key words to look for. Everyone describes his/her issue differently. Just look at how akademik changed the terms he suggested when he posted his links. It seems that it would have been easier and better for the forum, if someone had simply posted a link to the solution. On another note, it is a great idea to use tags when creating new threads.
Seattle Rat said:
Thanks for the screenshots- they show that you do not have the SIP in question either. My guess is that someone decided that it wasn't a popular input method, however, I can see where this might be a preferred keyboard for stylus intensive input or for access to keys not found in most SIPs.
The T-Mobile 6.1 *Official* ROM called this SIP "Keyboard", and on the 6.5 *Official* ROM it has been replaced by "Transcriber" which on 6.1 was found under "Other Input Methods".
I wish people wouldn't be so eager to attack a legitimate posting without a clear understanding of what is being addressed. I think that most of us make a genuine attempt at searching for answers prior to creating a thread, but it seems like there are some that are just waiting to pounce without hesitation to accuse someone of not following forum rules. Give me a break, I know that not everyone here is an adult, but attacking someone with the insinuation that they did not do a proper search seems to have become far too common and does nothing to help anyone. Why not assume that a thorough search has already been attempted and rather than providing an admonishment and a slew of links (that I doubt had anything to do with the issue at hand) provide a reasonable explanation or solution along with those links? In my opinion, this is what these forums are for: a valuable resource of information and advice.
Click to expand...
Click to collapse
I agree with Treo, points for civility. Especially because the other guy who attacked the OP didn't even post any links relevant to what the OP was looking for. All I saw in those links were Finger Keyboards, and HTC keyboards.
OP wants the default WINMO 6.0/6.1 keyboard, with the tiny keys that, while only good for use with a stylus, is excellent for odd symbols. Like | for messing with the Manilla Weather editors.
Unfortunately I don't have information for the OP, as it seems likely that as many people have not liked that keyboard, support for it is all but gone.
The new keyboard function "Swype" has a pretty good symbol list to choose from.
Here's the thread for the TP2: http://forum.xda-developers.com/showthread.php?t=597337
I guess I did have some info after all... I guess that's something.
as much as i help people on here via posts or pm's, no one knows how to use the search dropbox at the top or even google their issue to see if other wm sites have info on it. you heard about xda from tmo.com and now you come here for everyone to magically solve all your issues. all you people want is to point, click, download, install and be on your merry way...so stop being lazy, people here spend alot of time developing and perfecting things and if one lil issue goes wrong then yall complain. google what you want, and help others. as i see you guys posted here and not one of you have helped the issue but rather complained that i said search...oh well ill say it again...SEARCH
I like Swype, but anther decent SIP that I think is well worth trying is Finger Keyboard. One problem I have had is that some 3rd party SIPs will prevent my Rhodium from booting forcing hard-reset, but both Swype and Finger Keyboard work fine. One feature that I like in Finger Keyboard is the ability to assign text to a key such as an email address or password and it can switch between different languages without leaving the panel.
A way to bring back the default keyboard ...
Check this out: http://forum.xda-developers.com/showthread.php?p=4843610. It requires a registry hack, but it does work.
I'm not sure why no one likes a stylus anymore, but I prefer the precision that it buys me as well as the ability to draw on the screen. The old keyboard also has a CTRL key which allows me to cut and pasted from any application (even those without a press-and-hold context menu). I don't understand the desire to emulate the iPhone with capacitive touch screens but poor precision. If I wanted an iPhone, I would have bought one.
jmigliosi said:
If I wanted an iPhone, I would have bought one.
Click to expand...
Click to collapse
LOL! Spot on!
This is brilliant. You don't want to know how long I've been looking for a way to get the old keyboard back! Everyone seems to want keyboards that are bigger and can be used without a stylus - but I hate having the keyboard take over more than half my screen. This is an elegant solution! Thank you for posting it!
Edit - Rats! It says it can't initialize SIP CLSIDs for stylus status. Does the TP2 not have any way of telling whether the stylus is in or not? Grrr. So close, but I guess I have to keep on searching...
Ariel
Looking for small Stylus friendly Keyboard
have an HTC Touch Diamond 2 with WM6.5. Since I have it I am not happy with the big keybord. Using the stylus very often, even with the big keyboard. But this takes so much space, even on my old Touch Cruise with QVGA I have more space thanks to the small keyboard.
How and where can i get a working CAB with the small keyboard from WM6.1 ?
Think it must be that in this picture.

Guides and wiki's for new NST owners

This thread is for folks to post noob-friendly guides for hacks, mods, and other awesome tweaks for the Nook Simple Touch (NST). I'll update as I learn more or as folks post more interesting stuff, or if people have corrections or suggestions, and also to take account of new developments.
BTW- please don't quote the first post (or any really long post for that matter). If you accidentally do, please edit it out of your post.
GUIDE ONE) Enable multitouch and norefresh
1) What you need:
nook simple touch
microSD card and a way to write to it (USB adapter or SD adapter and a card reader)
sd card with clockwork recovery image (from mali100) (I'll write my own guide for this soon)
A root file explorer (I suggest ES file explorer; free, simple, awesome)
both of these files on the root of the CWR SD card: norefresh (toggle version), and multitouch
2) Install multitouch:
Boot into CWR (insert your SD card and restart!)
choose "install zip from SD card" and then "choose zip from sd card"
select "multitouch.zip"
click "yes" (hint: it's the only one that isn't "no")
remove the sd card, then select "reboot device now"
3) Install norefresh apk
open ES file explorer
select norefresh.apk
click yes (did you really need a guide for that?)
That's it! Now, how do you use it?
4) Using your awesome tablet-esqe combination of norefresh+multitouch:
find the norefresh app in the drawer and open it. It won't do anything except flash the screen
Now, open a program you might want to use it with (pdf readers and simple games)
tap the screen four times, in a line starting from top left moving to bottom right (watch this video from marspeople if that doesn't make sense)
5) Stand back in awe. Then go thank the devs in this thread for norefresh (I think it's a combination of Bardo8430 and Marspeople's combined work, correct me if I'm wrong and I'll update); and this thread for multitouch (It appears to be some combination of wheilitjohnny and mali100; again correct me if I'm wrong).
Welcome to the NST community! Oddly enough, I was thinking of creating a thread that will (hopefully) become stickied with quick-start stuff for new people. Might as well start here
GabrialDestruir gave a pretty good explanation about the different rooting methods, which can be found here (just ignore the part about TorimuNooter, development has been stopped and the links have been pulled).
I myself used MinimalTouch (called MinimalNooter on that page) before my Nook broke. It's a little more involved than TouchNooter, but in the end you'll be able to use the Market (Google Play?) sooner. I think there might be some issues with the 1.1.0 vs 1.1.2, but I didn't get the chance to update to 1.1.2 to see for myself.
Be sure to create a backup before you root in the off chance something goes wrong or you decide you don't want your Nook rooted anymore. Here is a link to the backup thread.
Once you feel like you know your way around your Nook well enough, you might consider some of these fun hacks:
NoRefresh - Makes the screen B/W, but will make the screen update MUCH faster and removes the ghosting for the most part
Multitouch - As the name implies, it enables multitouch. You will probably want to use this with NoRefresh.
Flash Player - Flash Player. On the Nook. You will need NoRefresh unless you like seeing ghosts
Video Players - Sure, there's no sound, but it's just fun to have a video on an E-Ink display.
USBHost - This will allow you to plug a keyboard or other USB device into the Nook's micro-USB port and have it actually do something. I think someone got a GPS working at some point... There's also a work-in-progress guide here.
Edit:
There's also this index for manually rooting and doing some other cool things with your Nook, such as changing the shutdown screen.
Thanks for putting your time into this, Googie. That response could become a thread itself if written as an OP. This is really helpful!
Hey googie- Thanks for the great start! I'll update the OP and the title; I agree, hopefully this will get stickied.
So does the "broken nook" mean that you are not going to be a part of this community any more? that would be a shame. I hope you can find another! Best of luck!
BTW- if anyone else has more information I'd be happy to add it to the OP. Depending on the amount of complexity of information received, I may not be the best person to have control over the new user sticky; if you want to write a full guide, you should probably do so in a new thread (to replace this one, assuming it gets stickied).
I've searched a lot, but I can't find a "newbie comprehensive guide"... For example I've found how to root manually my nook simple touch, but I still can't find a way to install manually various .apk's
A sticky with all this basic stuff, would be perfect
fufutos said:
I've searched a lot, but I can't find a "newbie comprehensive guide"... For example I've found how to root manually my nook simple touch, but I still can't find a way to install manually various .apk's
A sticky with all this basic stuff, would be perfect
Click to expand...
Click to collapse
That's what I'm hoping to create here. If I get some more suggestions, I'll update it. With all the development going on around here, it would be nice to have a newbie sticky! In particular, what I think what many people will want is a guide (or an all-in-one package) that gives root, installs gapps, and enables norefresh and multitouch. I love the devs, but sometimes the "how-to" threads get a bit complex or give too many options (think about how simple it is with an apple product; they dumb it down to one way to install. Give people a choice on anything and they'll get confused and won't do it. Sad but true). And without any stickies, this forum is... frankly, it's a jumbled mess of complex and often overlapping guides.
Once I get up to speed on this I'll try to create my own guide, but until then, I'm calling for you NST experts to link here to the most interesting stuff available; I'll sort and package it when it's ripe!
I'll wait impatiently
I updated the OP with a noob guide to getting norefresh and multitouch running. Anyone know who the mod is for this forum? If so, mind messaging him to sticky this thread?
slack04 said:
I updated the OP with a noob guide to getting norefresh and multitouch running. Anyone know who the mod is for this forum? If so, mind messaging him to sticky this thread?
Click to expand...
Click to collapse
Thank you very much Slack. Just received the Nook color and Touch and I don't have a clue about anything Android or coding but do want to make my Nooks more 'productive'. Some 'hand-holding' is much appreciated.
don't know said:
Thank you very much Slack. Just received the Nook color and Touch and I don't have a clue about anything Android or coding but do want to make my Nooks more 'productive'. Some 'hand-holding' is much appreciated.
Click to expand...
Click to collapse
Me too! I just got mine Friday, so I figured if I'm going to spend all this time figuring it out, I might as well write it down. I think sometimes the devs get sort of wrapped up in all of the options, so that when you read their guides you have to choose between 4 or 5 options at different steps. As nice as that is to have choice, for most of us (especially those of us who just joined) just want a few simple hacks to start, and are willing to add stuff once we get comfortable. Additionally, the devs don't usually explain the choices (because they're usually explained elsewhere) so you have to track them down, and all the open webpages end up overwhelming your brain and you screw something up.
BTW- If you come up with your own noob-friendly guides, pop them in here and I'll continue to update the OP.
Good job slack, one detail only: in some cases (like mine) nook is set NOT to allow application installation from other sources than market, so you have to change this setting from "nook color tools" , and if this doesn't do any good things get a little complicated http://forum.xda-developers.com/showpost.php?p=24302191&postcount=114
Awesome! This is cool. Once I get back from the beach I will be following the guide.
fufutos said:
Good job slack, one detail only: in some cases (like mine) nook is set NOT to allow application installation from other sources than market, so you have to change this setting from "nook color tools" , and if this doesn't do any good things get a little complicated http://forum.xda-developers.com/showpost.php?p=24302191&postcount=114
Click to expand...
Click to collapse
Hey fufutos- I didn't have this issue. Can you write a little noob-friendly guide explaining where and when this needs to be done? If that's too much, just tell me where in my guide I should add a note about this.
I think a mention and the settings change would be o.k. for start. For the rare unlucky guys like me you can provide the link , but they have to set up an adb server... not the easiest task for the occasional newbie...
oh great was looking for something like this...just got my nook simple touch...and as being a flashing whore..i cant stand using stock on any device
I am going to try my hand at creating a noob tutorial for MinimalTouch rooter, maybe with screenshots. I may even try to get a screenshot of CWM
Anyway, I will post it when it is done.
It's been a while since i updated this thread. Sorry, doesn't appear there's a mod for this forum (explains why there's no stickies anywhere...). If anyone want to write a new guide, please do so. One suggestion would be a guide for unrooting and returning to stock...
slack04 said:
It's been a while since i updated this thread. Sorry, doesn't appear there's a mod for this forum (explains why there's no stickies anywhere...). If anyone want to write a new guide, please do so. One suggestion would be a guide for unrooting and returning to stock...
Click to expand...
Click to collapse
Actually to unroot or return to stock easily just use the Touchformatter, also on my sig.
There is a mod (Mr. Highway)
fufutos said:
Good job slack, one detail only: in some cases (like mine) nook is set NOT to allow application installation from other sources than market, so you have to change this setting from "nook color tools" , and if this doesn't do any good things get a little complicated http://forum.xda-developers.com/showpost.php?p=24302191&postcount=114
Click to expand...
Click to collapse
Did you ever figure out what to do with those lines of code?
Also, I spoke to some friends and they told me that those security blocks are usually removed from legitimate root ROMs... does this mean that the NTG ROM on this forum is bad?

Categories

Resources