Source code for all apps gridview - Ouya General

Here's the source code to a gridview that displays all installed apps. It's a very cut up version of the home sample that you find in the android sdk but it could help out if your trying to build an app launcher. If you look inside the startingpoint class you can see how I was gonna implement categories.
https://github.com/asadullahibnrob/TheButton

I just added a small update. I'm wondering if I could get some one to test it before I go on. I added a power button (it requires root) that should just power off the ouya. Also a button (the lock looking button) that should launch the discover apps section. Also the all apps button when clicked should only show the games that you have installed. You might think that it's strange but if everything works I'm gonna start on my new UI which will be alot different but has categories. I know this is kinda strange but I drew a print of how the ui will look when complete (it helps me put it together) if anyone wants to see I'll upload a pic.
Anyways new beta in first post.

I'll try to test this out for you today. It's nice seeing someone working on another launcher.

Alright so this is pretty much dead I was able to do some of the things I wanted but to be honest I would have to buy a new ouya and use the ouya odk to get the full size ouya icon. But what I'll do to help others is release the source code to a gridview that displays all installed apps. I think that will be the best thing to help others out.

Related

Why is there no SCREEN SHOT app in Android Market -- NONE except for rooted phones?

Is there some kind of technical limitation of Android that prevents this most rudimentary of features of a computing device with a screen?
I'm on my second Android phone (from Hero --> to new Desire) and after 5 years with Windows Mobile I not only have zero regrets, I just pity anyone still stuck on WM... but enough of that ... at least there are screen shot apps! I just don't get it at all. It can't be that nobody has asked for one. So, what is the limitation of Android that prevents something so simple as a screenshot to be generated?
Sign me,
Frustrated in San Francisco
Oh what the hell, while I am at it, I might as well show off svetius's newly available YOUTUBE embed code here at XDA -- which -- shhhhh!!!! --- it's a big secret, only I alone am supposed to know about it.
PHP:
[media=youtube]xxxxxxxxxx[/media]
where xxxxxxxxxx = the video file name in the URL after watch?v=
I don't think there is any technical problem, I think it just wasn't added to official API yet. Yes, I know it should.
And if you are in urgent need of doing some screenshots, then you could take quite awkward, but working for non-rooters, approach: take screenshots on your PC using Android SDK.
I agree it should be much easier to just take a simple screenshot. Where can we ask google to add this function?
DBBGBA said:
Where can we ask google to add this function?
Click to expand...
Click to collapse
You could star this issue:
http://code.google.com/p/android/issues/detail?id=6547
I don't know, wouldn't that be a pretty big security issue?
A screenshot app is good for nothing if you can only take screenshots of the app itself. So it has to have access to screen captures of any app.
Now I'd just write some service running in the background waiting for key presses and taking a picture every time. When you type in passwords, the default option is showing the letter for a small time.
That should be sufficient to get user passwords. I would not want software that can do this on my phone.
I know open home has a screenshot feature you enable by the camera button. Maybe someone can rip the code from there and make a separate app?
erronr said:
I know open home has a screenshot feature you enable by the camera button. Maybe someone can rip the code from there and make a separate app?
Click to expand...
Click to collapse
The home replacement apps only take screenshots of the home screen (OpenHome, dxTop).
You can easily use Droid Explorer on a Windows PC to do screenshots.

[Q] baby proof tablet?

Anyone know of an app or hack that will let lock the screen so the touch screen doesn't recognize input so that I could launch netflix or youtube for my 1.5 yo daughter and she can touch it without messing it up?
ikillulots said:
Anyone know of an app or hack that will let lock the screen so the touch screen doesn't recognize input so that I could launch netflix or youtube for my 1.5 yo daughter and she can touch it without messing it up?
Click to expand...
Click to collapse
there is an App on the Market called "Screen Tools" which has this function.
It allows you to use your camera button to "disable" the touchscreen. Not sure if this app will work on our Acer tablets, as we have no camera button - but it may be worth a 99cent gamble.
Also, from I have seen with the Netflix app - it does not keep playing in the background or pause when another app takes focus - it just stops the video and dumps you back to the selection screen. Not sure if this is going to be possible
I wonder if this would be better in the development section it would be nice to assign the rotation lock to a screen hold/lock
ikillulots said:
I wonder if this would be better in the development section it would be nice to assign the rotation lock to a screen hold/lock
Click to expand...
Click to collapse
This is not a topic for the development section, perhaps in Android General or Android Software and Hacking, as I see this being an application (especially since there is no source available for HC to be modified in such a way as you are hoping, meaning for a ROM developer to make this happen would be kind of far-fetched right now). Certainly it would require root, and most likely it would work as launcher replacement, perhaps requiring a specific gesture to be drawn to unlock the screen. This is a neat idea, not sure if the sdk allows this type of control from a launcher replacement, but perhaps Anderwebs (the developer of ADW) or another launcher master would know if this is possible. They would also be the most likely to implement this type of feature. Perhaps ask a moderator to move this into the Android Software Development and Hacking forum?
Unless you want to completely limit your options be requiring this to use the rotation lock switch, which would make this a device specific request, severely limiting the number of developers (application and os level) who would be able to assist you. I would approach it from a more generic state, make it applicable to all Android devices, and that way I could get more people interested in it and make it happen.
But, don't just go and start a whole bunch of threads, ask a mod to move this thread, change the title of your post to something like : App/Feature Request - Baby Proof (On-Demand Input Locking). That might work. I would stick with gesture based, and make it require a multi-touch gesture, obviously you would make something that your child could not easily imitate as your gesture, to unlock it, there should be an easy way to enter lock mode as well...
just my 2 cents
Just go buy app locker... it will lock everything or specific apps
Sent from my SCH-I500 using Tapatalk
There's an app I use for the same reason, but I don't give the tablet to my youngest in fear of it becoming a Frisbee or drowned in saliva. But my toddlers listen to direction, so this app works.
The FREE app is called "Show Screen Lock." But, because the "Home and Back" button are the means to unlock, if your child hits one of those, it will be unlocked.
Anyway, good luck!
I wish long pressing the volume up button locks and unlocks the screen.
edit:
Nevermind, I overlooked that you wanted to use this while playing media. This app freezes images, so no video plays at the moment. I've emailed the developer a while ago and he said he's working on one specifically for tablets.
Samsung's Touchwiz has this function. If you are playing video you can hit the power/lock button and it will lock it from screen or button presses until you hit the lock button again.
I dont know if there would be a way to extract that part of the UI to move over without porting everything.
I use it all the time with galaxy s phones so my kids can watch shows.
.....
There is also an app called "Kid Zone" by zoodles. It is nice, and free, and can be upgraded to premium. I use it on my phones and tablet and the kids love it. They can draw and do games and learn and I get emails about what they did and uploads in the email of their drawings. The cool thing is you can lock everything so that the only way to exit the app is to draw a "Z"
Its a nice app, and thinking about upgrading to premium with it here soon.
------
I used to use toddler lock, but as HC doesnt really have full screen while hiding the buttons the toddler lock doesnt work as well, but still temporarily fun.
Edit: I have recently been trying out HoneyBar for HC Tablets. It hides the bar at the bottom of rooted tablet. Works pretty well, and so far one of the best options I know of.

[App] SwitchMe secure login manager needs A500 testers please!

Hi everyone. Im one of the developers of SwitchMe, and app that allows multiple secure logins into separate installations of android on a single device. The pr is after the break.
I really need a few people to check into some issues people on the A500 have been experiencing. There are some warnings involved:
- testers must perform a full nandroid backup before using the app, it is not our responsibility if you start getting boot loops
- if you report results or bugs, please use the "Write to us" function in the app whenever possible, and always describe the issue in the header of the logs you send
- if you post here, be sure to include your device type and rom
- if you have apps installed on sd, be sure to mention that as well
--------------------------------------------------------------------
SwitchMe is a unique application for root users that allows you to log in and out of multiple installations of Android just as you would on a desktop computer.
The technology behind SwitchMe saves all of your applications and data, protects it and stores it as a file in memory. You can then log out of an
account and log into a fresh installation of Android or another account with its own unique content.
You may create as many profiles as the memory is capable of holding. Some of these may require very little free memory because they contain few apps,
others will be larger as they contain many applications and lots of cache and data.
Why is this functionality useful?
Privacy - the most obvious benefit is that you can securely share one device among multiple users, which gives you privacy and peace of mind.
Testing - if you are a developer, you can use profiles as clean sandboxes to test your applications and their interaction with the system.
Gaming – with multiple installations of Android on a single device, you can now play online MMOs as different characters.
Speed - the games your kids play slow down your tablet, but with SwitchMe you can easily create profiles without games or instant messengers.
Battery life - when the battery is low but there are important emails or documents to edit later, switch to a profile which only contains these essentials.
These of course are only suggestions - there are plenty of other uses for the functionality SwitchMe offers.
Market link:
https://market.android.com/details?id=fahrbot.apps.switchme
The Lite version allows the creation of two profiles, enough to test on.
Screens:
So far so good. I'm using ezterry's simple stock rom that has root. I've been able to switch between profiles without any problems. The only thing that I've noticed that was strange happened to the app Full Screen Launcher. After the first switch from my original profile to my new profile and then back to original. My folders, shortcuts widgets and anything, other than what was there as default when the app was first launched on the desktop disappeared. This only happened on the first switch. Once I added the shortcuts and stuff back and then tried again the were as they should be. So that's really not an issue. Gameloft games that are moved to sd card via GL to SD from the Market seem to work as well.
Is there anything specific that you want checked? I'd give a few things a shot if you have something in mind. So far, I can't find anything wrong with my setup. And the app is pretty neat. Kinda cool having a fresh tablet to play with. It's even neater that I can just switch back to my profile with all of my junk.
Just what i've been looking for, will test tonight
Device Iconia A500 16gb
ROM Thor's ics v96
have internal and external 32gb swapped
Everything working as should including fast switching.
Takes less than minute to switch.
was also able to clone without issue.
Key has been purchased.
Thanks for this!
Sent from my SGH-T959V using Tapatalk
Thank you! Please rate the app - just press the little star button at the top of the main interface.
Good ratings help us invest more in apps and give users with similar hardware peace of mind.
Thanks in advance!
Why only for the a500?
If you wish for some 501 testing, let me know.
MD
Moscow Desire said:
Why only for the a500?
If you wish for some 501 testing, let me know.
MD
Click to expand...
Click to collapse
Sure, why not.
Are you a programmer? We are hiring in moscow at the moment!
Excellent app. Tested yesterday on honeylicious and purchased key. Keep up the good work
Not found any issues as yet.
Thanks. If you like it, please rate it on the market, that helps a lot.
Any issues to report or is everything working flawlessly as usual?
SwitchMe 1.2 has been rolled out and now includes a lockscreen replacement:
1.2
Added lock screen for logging in and out
More stable Fast switch implementation
Reworked UI colors
Now, its very important that we get some feedback on how this big new feature works, so please read up on it in the help and post your thoughts!
1.2.2 - HOTFIX 2
Reworked widget on qHD+ displays
Fixed widget text on HC and ICS
Fast switch improved on older devices
Hi guys! I would really appreciate some feedback regarding the new lockscreen!
Anything at all?
Its working perfectly here! Thank for this awesome app!
it's working great for me also. sometimes keyboard will lag when needing to put in password from lock screen. once I get my alarmed dismissed in the morning, I'm really awake;-) Also, is there a way to make the key work for all users? I'm unable to access the lock screen settings from other user logins.
edit, fixed the key issue by moving the key apk from /data/apps to /system/apps
doublepost
Somairotevoli said:
it's working great for me also. sometimes keyboard will lag when needing to put in password from lock screen. once I get my alarmed dismissed in the morning, I'm really awake;-) Also, is there a way to make the key work for all users? I'm unable to access the lock screen settings from other user logins.
edit, fixed the key issue by moving the key apk from /data/apps to /system/apps
Click to expand...
Click to collapse
It wont work forever! Not unless you have the same account in the two profiles. In any case, we are working on it, so the switch screen will be accessible to all profiles with one key!
hi,
I've a Liberty Tab, rooted and running Acer Stock Rooted ROM.
I'm installed your app soon after root and it works flawlessly.
How can I setup the replacement lockscreen?
Hello! There will be a new build which gives lockscreen access to everyone very soon!
Any comments on the new switch screen?

Help with finishing my App (ROM Control)

Hey, so I have made an app for customizing some stuff on my Droid 3, but it works on my nexus 7, and cannot get it to load right on my D3 at the momment but that's not the issue. So what it does right now is I have a settings pannel and the only one I have actually coded is Notification background color. It sends the RGB to AccellerometerRotation in Settings.System. I will make it send to custom places once it is done. But I can then retrieve that in app, and use it to set color filter on a preview I have in my app, so bottom line, my code works.
Now, I need to add this code into the SystemUI.apk so that it will automatically run at some point (any point really) like a change in wallpaper or a reboot. I cannot figure out how to acomplish this. I have tried copypasting from JD GUI, adding my code, building apk for smali, and replacing the smali, but it doesn't work, either force crash or no systembar. I have tried to do this method on both ImageWallpaper class and the SystemUIService class, neither worked. At this point I'm totally stumped as to what to do. I assume adding my own class that would run but TBH, I am totally beat with trying anymore alone. Sometimes, its best to just let someone else take the wheel for a bit haha.
If anyone can help me finish my app, I am rewarding $40 Via PayPal for completion, which Is hopefully insentive enough for all you greedy people to assist haha.
So if any of you know how to do this, i can post the code (will be annoying till I get internet back) if needed, but ide prefer not until I get power and internet. Thanks in advance for all the responses!
I see you all viewing lol, can I get some responses <3 still stuck. I might try to just convert my java to smali and insert it into the existing smali but idk

SPen (touchwiz free) - CM12(Lollipop) best apps to use

SPEN on a none touchwiz ROM
The most compelling reason for buying an SPen Samsung device to me was the vision and possibility for a paper-free lifestyle.
Moving seamlessly between the paper-free and paper-bound world's is a must along that journey.
You can just about see/feel/ makeout the possibility of everything coming together in a best of all worlds type setup.....
So here it is - a capable device that has all the firepower but none of the vision by its manufacturer oh Well...
I bought a Samsung Note 2014 wifi only device with spen in november 2014.
Don't like touchwiz for its bloat and its gimmicky "locked data" feeling.
Installed Cyanogenmod 12 and then Temasek ROM port.
Please share your current setup.
Specific apps you use, relevant settings and how smooth your setup integrates( screenshot examples etc)
The more elegant and evolved your setup the better!!!
Please use the feature request section. See my "Google's Keep app
Sketch for keep
+
Handraw
Option 2 : Note buddy(Free)
OR Note buddy(Paid)
+ Papyrus app
Option 3 : Fiinote - Google Play Store
Option 4 : SpenCommander ( beta testing stage and paid ATM)[RESIZE=100]
[/RESIZE]
Option 5 : Dionote
This app utilizes the SPen pressure sensitive abilities(Not many apps do)! Well worth of further studying.
Other decent apps that you should be aware of are
Lecture Notes (bought the pro but haven't used it much)
OneNote ( feeling timid to rely on a Microsoft app in the Android ecosystem. Thats because of the politics and conflict of interest that underline Microsofts potential for success on an Androids OS. May be an overreaction or far-sightness/short-sightness blunder on my behalf ... but hey we all live and learn )
XDA:DevDB Information
SPen (touchwiz free) CM12(Lollipop), ROM for the Samsung Galaxy Note 10.1 (2014 Edition)
Contributors
xda_nikita
ROM OS Version: 5.0.x Lollipop
Version Information
Status: Testing
Created 2014-12-12
Last Updated 2014-12-11
Ok here is my setup :
CM 12 ( credit goes to RaymanFX and all contributors) with "google keep" , "handraw" and "sketch for keep" . Launcher(side) with "glovebox"
This gives a sort of "action memo" knockoff.
Need help with :
-SPen driven Screenshot select similar to touchwiz spen screengrab app(lassoo select a portion of the screen and have that annotated in an app like handraw before pasted into google keep).
- browser side copy image for images that get pasted into google keep note as you browse ect(much like the pinterest button on a desktop browser pins the image directly to a board)
-browser tabs session save(which ever browser is best for this kind of thing) on a google drive account with corresponding "google keep note" link inside to restore the saved session would be phenomenal!
- spen touch depth sensors in handraw(or alternative setup)
Any way for "handwritting recognition" in any input box field to be used as a system-wide keyboard input method??
Any ideas?
For apps I use Write Beta. Just get through your prefered paper setting and you will be good to go. Maybe it doesnt have the best UI but it compensates by having the best stroke smothing technology.
To make notes, as many of you above I use Keep.
I am trying to be a developer and i made this app which any of you might find usefull
https://play.google.com/store/apps/details?id=com.BCorp.SPasteAnywhere
But i have to say that i abandoned it because for it to work i need SPenSDK which suck, and because it has some error with touchwiz. Happily i dont have touchwiz anymore and so sadly i havent been able to fix it, it should be fine if anyone want to try it on cm12 with some video glitches that currently bug Rayman's great rom.
The point is, If anyone can find a better handwriting library that doesn't depends on a third party app please tell me and lets make great apps together. I was actually working on an action menu replacement for cm12 but see the information i give below.
To do some great stuff for the tablet on CM we will need the functionality that only this app is giving:
https://play.google.com/store/apps/details?id=com.tushar.cmspen
without that app we can not detect pen dettachment, pen hover button, etc(No gestures like the one getting you to action memo or action menu). There are simply no broadcast of this actions in the system. The free version, I think, also has limited functions so if anyone does a cool app with anything else they would require the user to buy this app; and for it to have a decent pen stoke detection the user would have to add the spensdk from the play store. Can you see the hassle here? I asked @RaymanFX to look into it and add the CM SPen companion principle into cm12 for developers to have a better time doing something.
I just thought i'd let you all know before you get too far ahead of yourselves but the spen isnt actually functioning as an spen and doesnt get recognized as one so therefore the spen sdk wouldn't work witn cm12 due to as one of the bugs described says that "e-pen gets recognized as pointer device" and i'd also like to mention that i don't actually see any development in this post itself and should have been put in the general section rather than the original development or at least be a comment on the cm12 thread itself due to it being related to that
dc959 said:
I just thought i'd let you all know before you get too far ahead of yourselves but the spen isnt actually functioning as an spen and doesnt get recognized as one so therefore the spen sdk wouldn't work witn cm12 due to as one of the bugs described says that "e-pen gets recognized as pointer device" and i'd also like to mention that i don't actually see any development in this post itself and should have been put in the general section rather than the original development or at least be a comment on the cm12 thread itself due to it being related to that
Click to expand...
Click to collapse
Even if the rom detects it as a pointer device it is still detected as an spen withing the kernel. SPenSDK detects its as so and functions properly. If you want proof, use my app, SPaste, and see that spen makes strokes and finger is an eraser. This doesnt happens with any other pointer device like a mouse.
Still, as i said, the spen actions(Hover+button, attach, dettach, etc) are not broadcast to the system(Even if the actions are detected on the kernel) and thus, without the cm12 companion app, these functions are unusable. To add something, API to use them are also on the SPenSDK, but because there are no broadcast, this functions still dont work with the sdk installed.
You are completely right about this been in general.
Pazzu510 said:
Even if the rom detects it as a pointer device it is still detected as an spen withing the kernel. SPenSDK detects its as so and functions properly. If you want proof, use my app, SPaste, and see that spen makes strokes and finger is an eraser. This doesnt happens with any other pointer device like a mouse.
Still, as i said, the spen actions(Hover+button, attach, dettach, etc) are not broadcast to the system(Even if the actions are detected on the kernel) and thus, without the cm12 companion app, these functions are unusable. To add something, API to use them are also on the SPenSDK, but because there are no broadcast, this functions still dont work with the sdk installed.
You are completely right about this been in general.
Click to expand...
Click to collapse
That is where you're wrong, a large majority of applications test to see if the s pen is actually available on the device to make sure there is compatibility yet none of them can recognize the device has an s pen because it isn't giving off the correct aigniture check. For instants give GMD spend control or cm s pen add-on a go and you'll see yet the apps are compatible with the device they don't actually get the correct response that the device has an spen because it's failing a aigniture check, I've even had contact with the developer to make sure that it isn't an issue with the app and cm12 and he sent me a debugging enabled version of the add-on app and it was something with the ROM itself preventing the app from verifying that an s pen is present. Sure a application can read the pressure strokes as I've tested it with sketchbook but the issue itself lies within the ROM having the correct drivers to send out the correct signal that it is in fact an s pen which it isn't because for starters the mouse icon is showing up and due to the s pen SDK it actually uses its own set of files to utilize the hardware rather than the Roms files that utilize it
Pazzu510 said:
For apps I use Write Beta. Just get through your prefered paper setting and you will be good to go. Maybe it doesnt have the best UI but it compensates by having the best stroke smothing technology.
To make notes, as many of you above I use Keep.
I am trying to be a developer and i made this app which any of you might find usefull
https://play.google.com/store/apps/details?id=com.BCorp.SPasteAnywhere
But i have to say that i abandoned it because for it to work i need SPenSDK which suck, and because it has some error with touchwiz. Happily i dont have touchwiz anymore and so sadly i havent been able to fix it, it should be fine if anyone want to try it on cm12 with some video glitches that currently bug Rayman's great rom.
The point is, If anyone can find a better handwriting library that doesn't depends on a third party app please tell me and lets make great apps together. I was actually working on an action menu replacement for cm12 but see the information i give below.
To do some great stuff for the tablet on CM we will need the functionality that only this app is giving:
https://play.google.com/store/apps/details?id=com.tushar.cmspen
without that app we can not detect pen dettachment, pen hover button, etc(No gestures like the one getting you to action memo or action menu). There are simply no broadcast of this actions in the system. The free version, I think, also has limited functions so if anyone does a cool app with anything else they would require the user to buy this app; and for it to have a decent pen stoke detection the user would have to add the spensdk from the play store. Can you see the hassle here? I asked @RaymanFX to look into it and add the CM SPen companion principle into cm12 for developers to have a better time doing something.
Click to expand...
Click to collapse
dc959 said:
I just thought i'd let you all know before you get too far ahead of yourselves but the spen isnt actually functioning as an spen and doesnt get recognized as one so therefore the spen sdk wouldn't work witn cm12 due to as one of the bugs described says that "e-pen gets recognized as pointer device" and i'd also like to mention that i don't actually see any development in this post itself and should have been put in the general section rather than the original development or at least be a comment on the cm12 thread itself due to it being related to that
Click to expand...
Click to collapse
I really like "Write Beta" app. Loved the undo and lasso features.
"Fiinote" is worth checking and is definately the best snote replacement app I am aware of.
CM12 ROM is being worked on by RaymanFX. As a developer he is focused on delivering the Android OS.
SPen relies on RaymanFXs efforts to open spen to app developers.
You still need good apps and user friendly functionality while all the developers work out the OS segment.
To avoid polluting RaymanFXs thread with discussions outside of the OS delivery I've made this thread...
Its meant to give a glancing reference on ways of setting up SPen functionality after you are done flashing CM12( or any other Lollipop based ROM )
The Gold standard would be for all SPen functionality to be exposed on OS level , app developer level passed on to app user level. Only then can the spen be freed from its touchwizz chained existence!:crying:
Android stock keyboard is really good!
*We have decent size keyboard
*We have the accessible but not aggressive voice typing option
( Being a "keyboard and trackpad only" user until recently, I can feel ,"google voice" being currently under leveraged by me )
The only let down when using Spen able device is hand writing input option on the stock keyboard.
"Hand writing recognition" should be available anywhere inside Android OS where keyboard input is possible.
Here is an example mockup Android keyboard that should exist (refer to image)
That Handwriting should be just as understated and persistently available like the "voice typing" icon on stock keyboard today.
I would like to put forward the following questions to the wider community, especially active developers .
How do we port/import a handwriting recognition feature into an Android keyboard?
What are the best hand recognition apps and projects that lend themselves to further improvement or integration?
Is it very difficult to modify stock Android keyboard?
What are the essential pieces that need to come together to make this happen??
Hope this makes sense on one level or another.
What about myscript stylus beta?
{Diemex} said:
What about myscript stylus beta?
Click to expand...
Click to collapse
Yep, it gives the hand writing recognition option to any input field and covers all SPen keyboard points I was after.
Thank you!
{Diemex} said:
What about myscript stylus beta?
Click to expand...
Click to collapse
Another "beef" I got with SPen at the moment is Screenshots.
Taking screenshot segments with SPen able device is a frustrating experience on a Touchwiz free ROM like CM12 at the moment.
Its no fault of the ROM builds themselve.
In fact it is truly remarkable how stable CM12 (Lolliopop) runs and just how fast
RaymanFX's effort is paying dividends to P600 owners(Samsung Note 2014 wifi)!
I wasn't able to assemble a draft paper/document with images as I browse thumbnails and articles without leaving the browser screen....
No way to select multiple areas of the screen and have them imported/clipboard copied as individual selections(check mockup imagery)
OK we have no SPen pressure detection at the moment and SPen is just a pointing device to a toucvhwiz free ROM , fine. All should be sufficient to achieve
SPen Screenshot integration like I outlined in the mockup images.
Please excuse my ignorance and share everything that can be done to improve the SPen screenshot situation!!!
I started trying to get a simple screencapper to work similiar to the one included in touchwiz roms.
What is working:
Taking screenshots - root required
Interception of taps
Selection of the crop area above other apps
Cropping of the screenshots to the rectangular selection
What still needs to be fixed/improved:
Atm you start the screencapper it will intercept all touch events. You basically can't use any other apps and have to somehow kill it. I still have to figure out how to toggle interception on/off. Pressing the spen button while it is touching the screen should toggle interception needed for the selection of the area for the screenshot. Releasing the button should return to a state where other apps can be used again.
Pressure and the button state seems to be working correctly. The mouse pointer is just visual, stylus functionality is working correctly.
I have very little time, I have to study for exams. Nevertheless I'm interested in getting a functional app at some stage.
{Diemex} said:
I started trying to get a simple screencapper to work similiar to the one included in touchwiz roms.
What is working:
Taking screenshots - root required
Interception of taps
Selection of the crop area above other apps
Cropping of the screenshots to the rectangular selection
What still needs to be fixed/improved:
Atm you start the screencapper it will intercept all touch events. You basically can't use any other apps and have to somehow kill it. I still have to figure out how to toggle interception on/off. Pressing the spen button while it is touching the screen should toggle interception needed for the selection of the area for the screenshot. Releasing the button should return to a state where other apps can be used again.
Pressure and the button state seems to be working correctly. The mouse pointer is just visual, stylus functionality is working correctly.
I have very little time, I have to study for exams. Nevertheless I'm interested in getting a functional app at some stage.
Click to expand...
Click to collapse
What app are you using to achieve that?
There is a Mac app Screencapper but nothing on Androd Google play with that name.
I tried using a dozen+ screenshot apps with variable degrees of success. None of them gets me close to a touchwiz ROM like screencapture setup.
Its interesting that the SPen button and stroke pressure work for you.
A few posters on the thread suggested that SPen functionality like stroke pressure and button are not working in Lollipop based roms at the moment.
Are you using a KitKat based rom with CM spen app and the SPen SDK for that functionality?
I wrote the app myself. There are some screenshot apps but I couldnt find one that was designed for spen. Maybe there is one that allows cropping of the screenshot afterwards.
I tested stylus input with cm 12, you can try it yourself. Link is in my signature.
xda_nikita said:
What app are you using to achieve that?
There is a Mac app Screencapper but nothing on Androd Google play with that name.
I tried using a dozen+ screenshot apps with variable degrees of success. None of them gets me close to a touchwiz ROM like screencapture setup.
Its interesting that the SPen button and stroke pressure work for you.
A few posters on the thread suggested that SPen functionality like stroke pressure and button are not working in Lollipop based roms at the moment.
Are you using a KitKat based rom with CM spen app and the SPen SDK for that functionality?
Click to expand...
Click to collapse
Oh, sorry if i didnt explained myself correctly. First of all, pressure, hover and button click work correctly on cyanogenmod, that information is correctly taken by the kernel and given to the system. If an app can work with that information through Samsung or other libraries their app will work as intended just like papyrus, write, wacom, etc.
What does not work, or to express it correctly, is not implemented yet, is the broadcast of some information taken correctly by the kernel that should be sent to the system as broadcasts. These information are the gestures we all know like pen attachment dettachment, pen button+hover, pen double tap, and these broadcasts are the ones that would permit the developer to imitate some of touchwiz main features.
A very silly example of what broadcast like these would create:
hey, the user just double tapped the screen with his SPen, is there any app that wants to open itself when this happens? perhaps you SuperDuperNote app? maybe you TotalyLegitActionMemo app?
Click to expand...
Click to collapse
So there are no broadcasts and we developers have no easy way to act to these gestures system wide, anywhere on your screen and on any app that is opened at the moment just like samsung does with ActionMemo on "button+doubletap", or ActionMenu on "button+Hover".
With this in mind the developer would have to do one of 3 things.
Give up and do apps that only react to EPen information(Pressure, hover, button click) through Samsung or Other SDK(Wacom, Papyrus, Write, Spaste)
Intercept the Spen events with root and be a very skillfull programer to something like our friend @{Diemex} is doing.
Install CM SPen companion app and act to the broadcasts like we should be able to, but be dependent on those free app functions or whether the user want to buy the pro version of the same.
Thank you Pazzu510.
You have covered all angles. The explanation is crystal clear.
I've sent an email to the CM SPen Addon developer to see what his frame of mind is like regarding CM12.
His app had the attach/detached covered ok in CM 11 so maybe he has a good angle on getting the functionality registered in CM12.
xda_nikita said:
I've sent an email to the CM SPen Addon developer to see what his frame of mind is like regarding CM12.
His app had the attach/detached covered ok in CM 11 so maybe he has a good angle on getting the functionality registered in CM12.
Click to expand...
Click to collapse
He has explained that it would be rather easy if these broadcast code would be implemented directly into the rom. You can see the post here, it is a good read.
With the understanding of that, and too have a real impact on how broad the apps based on this can be, the important thing would be to make this changes and commit them on cm code. That way, any device with an spen could install cyanogen mod(or any rom based on cyanogenmod) and access apps intended to use this broadcasts. If it is not that way, our apps would be limited to those devices that run only the roms that make the code available, let it be "Cm12 rayman edition" or anything like that. I dont see this as a great idea because the apps made will have little to no compatibility.
What i see as a viable option, until those commits are on cyanogenmod code at least, is to analyze the code behind CM S Pen add-on(Its in github if i recall correctly) and see how they are looking for the kernel event changes. This would work in any device with spen and asking for root in cm is not difficult at all. Any app could start the tracking service for this events and act accordingly that way. My only worry is that if you have, say, 4 or 5 apps with its own service it would probably drain battery life. Another option would be to have a big project with all the functions in one app, but big projects mean few people to make it work and not many have the knowledge, the time or the passion to do such thing; even less when you think that the target market for this project is not big. Sadly, I count myself as a passionate amateur, I dont have the knowledge to do such things.
CM12(RaymanFX) with build 12/15/2014 has now been tested with CM SPen add-on and Notebuddy.
SPen Attach and detach triggers are detected and broadcast with the latest build!
What are the best apps to use with Notebuddy ??
xda_nikita said:
Developers help, enlightenment and info needed to improve Spen integration in CM 12 dramatically!
Click to expand...
Click to collapse
I recently bought this device purely for the spen functionality and hate touchwiz with a passion. I'm a design student and will be using Sketchbook (the paid version) for the majority of the time. All the applications mentioned are focused towards note taking, whereas I'm primarily concerned with correct pressure sensitivity/stoke accuracy.
I'll flash the rom when I get my hands on one, might donate if all goes well!

Categories

Resources