How do I create this tweak? Please get me on the right track. - General Questions and Answers

EL FIRST POSTIABLO.
I know a little bit about programming (Introductory Python and Visual Basic), and I'm wondering if someone can give me a good bit of information regarding how to create a specific modification to my Galaxy S3.
I want to create an application or a settings modification that will allow me to do two things:
1. I want the phone to skip to the next track (Whether it's in Spotify or the default music player) when the volume button is held down for three seconds, and to go to the previous track/restart the song when the volume up button is held for three seconds.
2. Create a setting or GUI interface to edit the time and maybe function of the new volume hotkey.
Is this an application I can create and put on the Marketplace to download or is this something I have to root my phone to do?
Is this even possible with the default permissions? What programming languages does this require?
I intend on doing all of the work and learning myself, I'm sure there is an alternatie already.
I bow down to you, XDA gods. I hope this isn't in the wrong place!

Please help!
thepandoras said:
EL FIRST POSTIABLO.
I know a little bit about programming (Introductory Python and Visual Basic), and I'm wondering if someone can give me a good bit of information regarding how to create a specific modification to my Galaxy S3.
I want to create an application or a settings modification that will allow me to do two things:
1. I want the phone to skip to the next track (Whether it's in Spotify or the default music player) when the volume button is held down for three seconds, and to go to the previous track/restart the song when the volume up button is held for three seconds.
2. Create a setting or GUI interface to edit the time and maybe function of the new volume hotkey.
Is this an application I can create and put on the Marketplace to download or is this something I have to root my phone to do?
Is this even possible with the default permissions? What programming languages does this require?
I intend on doing all of the work and learning myself, I'm sure there is an alternatie already.
I bow down to you, XDA gods. I hope this isn't in the wrong place!
Click to expand...
Click to collapse

Related

Looking for timer software

Hi,
i'm looking for software that, with one push on a button, places a time/datestamp (real date and time) in a table everytime you push
the same button and then advances to the next record.
There is such software here, but it is only for the Palm:
http://www.stevenscreek.com/palm/pockettimer.html
Does anyone know if there is something like that for the PPC?
TIA
On my P900 I once tried out an application called billable buddy by Mastersoft. Might be what you are after might however not.
http://www.mastersoftmobilesolutions.com
Timersoftware
Thanks for your suggestion but thats not what i'm looking for.
Maybe there are some programmers among us who can make such a simple program.
The only thing it has to do is with one push on a button record time (and date) in a table, everytime you push a button.
like loading the date and time into the clipboard and do a ctrl +v
unless i'm mistaken
Rudegar,
that's correct!
But it has to be in a table and everytime it must put the real time and date
in a new record of the same table.

WM6.1 Clean 5.2.19195 (Build 19195.1.0.0)BUG

What is most upset is it has the question healthily quickly, rom tacitly approves long presses “#” the static sound, the cause plum blossom and A4 duplication glue function vanishing, it is said is inside the windows long_pound reason, must erase, but tries several document browsers to be unable to delete, said that has locked. Attempt again unlocking handset, but also does not have the effect, on the computer could also not delete. other rom default is long reduces the key according to the volume to assign out the camera, although may also assign out the procedure which I establish, but will supplement the camera, will be quite annoying, anticipates the direction, will thank.
I can tell you're using a translation program. 'plum blossom' and 'A4' tell me you speak Chinese.
Can you break your post up into pieces of one idea each?
Maybe try to post the results of two different translator programs.
Or... try at http://bbs.koxo.cn
They speak putonghua there.
me to
I found the same problems, PlumSIP5 works fine excpet the # key is disabled, so the Copy&Plaste function is lost,
I am from koxo, too, you can see me at IOICN as well, , and I am waiting for E Bro to modify this ROM, and make a Perfect 577W ROM
Other small questions I already did decide have been similar, is long presses # the key for the static sound pattern question solution!
I also frequently stroll in IOICN and KOXO

More precise volume control app?

At the moment i can only use the standard windows mobile 5 step volume control, and this is VERY annoying.
Like in windows media player you can change the volume from 0 to 100 with steps off 1% at the time..
Is there such app that does this for the sytem/ring volume?
Because when i'm now listening to music and it's not loud enough, i can't put it louder, because it's going REALLY loud then.. because i have only 5 steps
Using the WinMedia vol control in other applications
If you are willing to do a reg edit
here is a copy of someone else's post I saved
wish I could give "Pete S" more credit
________________________________
Using a registry editor (I use Total Commander), navigate to
HKLM\Software\HTC\VolumeOverlay\3rdPartyAPClass and you will see a list of apps which use the slimvolume control. You have to add keys (new folders in Total Commander) for all the apps you want to add.
Under these keys you have to create a String value containing the Window Classname of the app. You can get these names using a program like FdcSoft Task Manager v3.1.
I've listed a few of the common ones below to save you the time.
Create a Key: "Nitrogen" Create a String Value called “ClassName” with value "CNtgWndMain"
Create a key: "CorePlayer" Create a string value called "ClassName" with value "wCorePlayer"
Create a key: "Opera" Create a string value called "ClassName" with value
"Opera_MainWndClass"
And so on. Take care to get caps and lower case correct, and don't include ""s. If you get the window class names wrong, don't worry, it just won't work till you get it right.
The settings take effect immediately, no need to restart.
PS: If you're not confident editing the registry, best not to do it. If you do, take great care, don't accidentally delete any keys!
-------------------------------------------------------------------------------- Last edited
by Pete_S; 28th October 2009 at 07:14 AM..
________________________________________
Or if you use TD2 tools (available here on xda)
It will automate the entire regediting process and allow you to add
the 15 position vol control to other APs just by
"opening them and inserting the stylus"
Very simple to do and TD2 Tools has many other useful and powerful features
Hope that helps you or gives you some pointers to get started
in a nut shell
Yes! you can do exactly what you ask and its pretty simple
with either a reg-edit or automated with another free program
(look for Gaz TD2 Tools for WM 6.5 (Release 2c).cab)
KJL
BTW I've reported a bug with the slim sidebar control in the Tess 4.2
ROM so if your using it you might need to wait for a software fix
to use the above
workaround!!
Use advanced configuration tool
goto HTC audio manager
set music player volume to 50%
Now the music isn't too loud and the steps are smaller !!
greatings Nico
I well understand that TD2 tools is only for W6.5, but is your manual procedure to create et reg key OK with W6.1 ? I don't find the 3rdPartyAPClass in HKLM\Software\HTC\VolumeOverlay. How can I do ? Thanks in advance.
Xavier92 said:
I well understand that TD2 tools is only for W6.5,
Click to expand...
Click to collapse
I use TD2 Tools with the standard WM6.1 ROM that HTC issues. I have version 2.0.3552.42948, release 2a.
Xavier92 said:
I well understand that TD2 tools is only for W6.5, but is your manual procedure to create et reg key OK with W6.1 ? I don't find the 3rdPartyAPClass in HKLM\Software\HTC\VolumeOverlay. How can I do ? Thanks in advance.
Click to expand...
Click to collapse
The registry edit works for 6.1
If you can't find "3rdPartyAPClass", I presume you have "InhouseAPClass"? You could try putting the new entries in there instead.
In fact, TD2 tools can change these parameter only from the 2c version. But, I succeed in making manually the key as explained before. But unfortunately, no change in the volume behaviour.
For me (and it seems I not alone), the main issue is the hard button vol+ and vol- which are not able to change the volume level les than 25%.
Thanks.
Still looking for something like this
Instead of using the classical VolUP and VolDOWN buttons, just tap on the Volume bar to select a more precise Volume percentage.
Am I wrong?
Sorry for double posting.

[Q] Switch between keyboard layouts

Hi,
I already read about the option to remap some keys by editing the keyboard layout file. Is it also possible to switch between keyboard layouts as you type (using a hotkey) - e.g. I need to be able to quickly change between Cyrilic and Latin keyboards.
Thanks.
I think you're talking about hardware keyboard.... But keyboard apps like swiftkey allow for 3 allow for 3 languages simultaneously.
Sent from my ICS Splashed MT4GS using xda premium
Oops haha double post
Hi indeed, I was talking about the hardware keyboard, if it is not possible to use both cyrillic & latin keys and quickly switch between them, this would decrease the benefit of the keyboard for me and I might decide to go with a non qwerty phone in the end.
Thanks for you insight though.
nickexel said:
Hi indeed, I was talking about the hardware keyboard, if it is not possible to use both cyrillic & latin keys and quickly switch between them, this would decrease the benefit of the keyboard for me and I might decide to go with a non qwerty phone in the end.
Thanks for you insight though.
Click to expand...
Click to collapse
In this dev thread: Hardware Key Mapping | Flashable zips & Requests
...user Paitor has come up with and explained how to implement swedish language support for the hardware keyboard.
Given what Paitor has figured out how to do, it is absolutely within our ability to sit down and make exactly what you are asking.
All it takes is someone willing to sit down and invest the time into actually making it happen.
I would volunteer, but I have a lot on my plate already and realistically it's just not feasable for me to do this and keep up with my other projects on this device.
I will however be willing to take a finished keymapping and turn it into a flashable zip file and update the first posting of the key mapping thread with the result.
(and I always credit the author both in the installer package and thread post)
We still have to write in hardware keyboard language support for other languages, and I invite anyone else who wants to use alternative languages to read that thread and see about putting some time into helping us make that available for everyone. What you want to do is not exactly a small project, but pushing what we know to the next level is the reason for XDA's existence.
So, short answer is yes, what you are asking for is completely possible - you can make a key map file that has all of the keys in the languages you would want.
This is XDA, where you can get exactly what you need right down to the last little detail - if you want to put the time into making it happen. We'll be glad to help out where we can along the way.
--------
Edit:
If I were to tackle this project - this would be my approach:
Some apps, like Drocap2 or soundhound, pop up in the list when you have the Genius key remapped to 'search' and long press it. If there is nothing else that utilizes this shortcut function it will default to the only app that does ( in the case of a stock installation or on my ROM, voice search ).
So what I would do is write in each hardware keyboard layout that I wanted, then design an app that utilizes that Genius shortcut function to run - and the sole purpose of the app would be to switch between hardware keyboard layouts.
To me, that seems like the most elegant and refined approach to your problem without making one monstrously cumbersome key-mapping.
You could just press the Genius button to access the app wherever you happened to be, and then have it just show a menu as an overlay to swap between whatever keymappings you wrote in.
--------
My time is being invested in my ROM - then once that's set to my satisfaction, on to kernel work on overclock/undervolt leading into GPU work in conjunction with TV-out, and then on to bluetooth work for controller support on a Sense device.
These are big projects and very time consuming undertakings, so as you can see a project like this keylayout issue is a long time coming before I can get to it - but i'm happy to help where I can for anyone who wants to dive in and do.
Figured i'd throw out what my approach would be to give someone an idea on where to start - and while certainly not the only solution, is something to consider.
I think I have very good news for you!
There's a keyboard called "AnySoftKeyboard" (search for it in the Market and click Dev Website if you want more info) which supports hard kbd mapping (and switching bet layouts by pressing Alt + Space), they have a Russian language pack (Cyrillic & Phonetic), and it is all free.
I have never used it, but remembered coming accross it a while back and decided to check it out for you.
Hope it works
Hey guys, thanks for your replies!
I will definitely check this application - i am not sure it supports all hardware keyboards in general (or just the g1/droid as written in the description), but I will give it a try if I get this phone
And yes, I will gladly help in creating a layout for a Bulgarian keyboard. Unfortunately I cannot create an application for switching between the layouts myself, as I am not a developer.
thanks again.
AnySoft does work
Got my phone and installed AnySoftKeyboard. It does allow for switching bet layouts on the MT4Gs, but does seem a bit quirky so far... (that's with Hebrew & English, you might want to experiment yourself)

Adding a screenshot feature in Android 2.3

Hi; hopefully I'm posting this question in the right subforum. I'm sorry if that's not so.
I'm adding a screenshot feature to Android 2.3 for a given device. The goal is to have something similar to what the Galaxy Note does: take a screenshot from anywhere in the phone by pressing a couple of keys, and then start an image editor to edit the screenshot.
I've been using the Android Screenshot Library for this, although I've had to rewrite a few parts because it wasn't working as it should have. So far, my project has the following parts:
1) A native daemon running as root, which captures the framebuffer and saves it into an image.
2) An Android Service that apps can bind to in order to take screenshots.
3) An app that works as an image editor.
All of these parts are already working. My problem now is that I'm not really sure how to integrate this into Android.
The daemon and the editor are easy: both can be integrated either in source code or as prebuilt binaries/packages into the Android source and then generate a system image, and modifying init.rc to start the daemon at boot. But I can't figure out how to integrate my service.
I need to be able to capture a screenshot from anywhere, and that means being able to catch key presses system wide. I've been looking into the Android source code for the component that takes care of this, but I'm at a loss. I need to bind the service somewhere, and then I need to be able to catch the keys and access the service from anywhere.
I'm not even sure whether I'm using the right approach for this or not. As far as I know, key presses can only be caught from activities, so it's not as easy as having a service running indefinitely in the background that can catch key presses. My guess is that I have to modify something in the Android framework but I'm not sure what.
So, my questions are the following:
1) How can I catch key presses system-wide? What do I have to modify in the Android source code in order to catch my desired key press combo whenever I want?
2) What would be the best place to place my service? Is there such a thing as a "system-wide app" that my service can be added to?
3) Is my approach even possible at all?
Thank you in advance for any replies.
bump
I'd really appreciate any clues or maybe some pointers about how the Galaxy Note or Android 4.0 do this.

Categories

Resources