Need some help with android graphics - Galaxy S II General

I'm facing a problem developing an application that seems to only affect this terminal (SGS II), but I don't have access to one, so I hope someone here could help.
The problem is very simple to reproduce. You just need to draw a colored square or any other graphic shape with Android Graphics library (not tested with Open GL since this is not an option for this app).
What you can see is a 1px border a bit darker that the shape fills. This is not visible at first look, but it is there, and it is important to remove it for the application I'm developing.
You can see a screenshot in danielnavarroymas [dot] com/apps/screen.jpg
Detail of the red square in danielnavarroymas [dot] com/apps/detail.jpg
I also coded a simple test application to demonstrate this, which only draws a rectangle on the screen. You can download apk file from: danielnavarroymas [dot] com/apps/test.apk
Also you can access the project source if needed at danielnavarroymas [dot] com/apps/test.rar
If anyone can check if the problem reproduces in its phone I will be very grateful (until now the only reference is what my customers tells me)... and if anyone can help to solve it, it will be my hero...
Thanks in advance,
Daniel
PD: Sorry for the link format, but I'm new here and the system doesn't allow me to post links...

Related

[03/29/08] Perptual v0.3 with image viewer

Perpetual is a simple image zooming demo.
You can zoom on any of the 200 images, and the pixels will turn into other images to zoom, perpetually.
What is it for ?
Nothing ! It's just a proof of concept and a demo I made...
If you have any images to submit to add into the demo, feel free to post in the forum and we'll update as soon as possible ! I'm looking for images that have nice colors and an overall dominant one (that'll be used for the color detection) Thanks for helping support this useless project !
Download Perpetual​
Also available :
Perpetual Image Maker
Sexy Image Pack
Kaiser47's DeviantART selection (really awesome pack !)
SaintSeya pack
Zen nature pack
v0.3 (03/29/08)
- New prp format (old ones should still work though) with additionnal data : author, icon, etc...
- New menu using the new prp format data, looks much better !
- Now saves viewed purcentage !
- Now works with Smartphones !
- Fixed menu bug if you had too many packs
- Much higher image quality while zooming
v0.2
- Fixed image bug when you have more than 256 images (that was stupid)
- Fixed potential crash when moving around too much
- Fixed surface bug when you moved around
- PerpetualMaker updated, smaller exe
- Improved performance
- New image viewer to select start image
- Now over 300 images !
- New Image Pack maker : just put in any directory, and it'll take all the images from images/ (still requires 240x240 jpeg images) and do a pack (.prp file)
- New splash screen, with possibility to select pack to display !
- Fixed random crash when changing speed while in auto mode
- Speed button : x0.5, 1, or 2
- Auto button for lazy people
- Surface button to come back to the unzoomed image
A video is available on that page if you want to see what it looks like without downloading/installing
Thanks for the feedback, suggestions, and images !
Fascinating software - it works perfectly in portrait, its a bit slow and landscape, and it doesn't handle the change from portrait to landscape well.
Thanks for making my Kaiser much cooler however.
Any way the process could be automated, to make it into a semi-interactive screensaver?
Surur
Well, technically, it's automated on my PC (there's no way to add all the needed data for the colors of the 200 images alone ^^) : I just have a folder with the images, launch my .Net app, and it scans through all the images, sorts by color, and outputs both miniature views (to avoid overloading the memory) and a huge array with the number of the image to use for every 16bit color ^^
It takes a while to run on my PC, so it's unlikely to work on in realtime, would have way too much loading time. I have just thought of an alternative method to build the color array, it could work much faster, but would only be available for real-time if you have only a few images... and if you don't have many images, well... It won't work to well ^^ You need to have at least 50 or 100 photos, ranging in pretty much all the possible colors (my PC app outputs which colors are overpopulated and which aren't populated enough, to know which images to remove and what colors to search for) ^^
While it would be cool to use my own pictures, it would be nice to see it zoom through the stock images without me having to touch the screen with the stylus too, independently.
Surur
Well, this is a first release, I just wanted to have a quick proof of concept and that's it ^^
The future stuff that could be added :
- "Surface" button (to move back up)
- Auto button (could be nice to for lazy people ^^)
Anything else ?
A zooming back feature would be cool
sercio said:
A zooming back feature would be cool
Click to expand...
Click to collapse
Would that be for the skin-tone pictures ?
Surur
yeah
Btw there should be alot more pictures kind of ^^
This looks really cool I will have to try this on my Hermes. Does it work for VGA and Qvga?
*Edit* Only Qvga any plans for VGA? *Edit*
Alkhal said:
*Edit* Only Qvga any plans for VGA? *Edit*
Click to expand...
Click to collapse
Well, it should work on VGA, just that it's upscaled. I tested on emulator and the performance was good.
In theory, a 100% VGA version could be done. But the program is already 5MB, uses a lot of ram for all the images, and a full VGA version would just use 4 times more ram :s
Btw there should be alot more pictures kind of ^^
Click to expand...
Click to collapse
Feel free to post some images (or send them by mail/PM) and I'll add them ^^
*Edit*
Ok here are some random Pictures i found and had on ma system! I extra made them 240x240 so you dont have any work rescaling them
Btw i would like if the "zooming" effect could be more smoother and slower if its possible...
Hope you like ma pics!
Regards
Thanks, let me check that out.
As for zooming, the speed can be changed, not a problem I didn't actually test on hardware, just on emulator, so it might not be optimal yet...
TODO list (note to myself) :
- Auto-zoom
- Back button
- Speed button
edit : hey, nice set of pics I'll definately include most of them in the next release (either as additional pictures or as a remplacement. like flickr-color-picker.jpg which will be perfect to replace a sort of crappy image I had in the same style ^^) Thanks !
edit2 :
Better not or are you willing to made a "special" adult version ?
Click to expand...
Click to collapse
Could be fun if you know where to find nice pics (IE, with nice and different colors, won't be as simple)
edit3 (last one, I promise !) :
Still looking for a good theme for the icon and the viewer, if anyone has an idea, please share !
I found few random pics... hope you can use them
Yay, those are awesome !
I'm currently finishing a set of 50 sexy photos, then I'll see if it works good enough with those
Cool and amazing app! Works perfectly on WM2003! Keep working
I think that you should make other app like that: http://www.mazaika.com/mazdownload.html for ppc (WM 2003 support for sure! ).
Nice work!
Thanks for the link. That one seems nice too, but the images are in 64x64, whereas I use nice and big 240x240 images ^^ I'm thinking of modifying my PC .Net exe and redistributing it... It could produce a file like myimages.prp which would contain all the data needed, and could be copied on the PPC to open it...
As for SexyPerpetual, tested, it works pretty well ! The images aren't the best as I used the first image pack I could download on bittorrent. Not sure what the forum policy is for the kind of stuff, so I will not post a link to download it. Just send over a quick PM requesting the link and I'll answer back
As for the video, if you want to take a look, here the link for the normal version's video : http://www.palib.info/blog/flvplayer.swf?file=http://www.xflib.net/Games/Perpetual/Perpetual.flv
Just keep replace the name by the sexy version's name and you should be able to view it (if the admins don't want this posted, please just tell me and I'll remove it !)
yes it woudl be cool if you can provide a tool that we can use to compile "our" versions with our pictures. it would be simpler than having to make special requests to you and sending many pics ?
but also if you really want pics, perhaps we can all send some to you ? public ftp or classic sharing sites like rapidshare ?
SexyPerpetual is very nice But insert "more naked photos" xD
BTW: I like kaiser47s idea
Kaiser47, feel free to use any method to send of photos
Yeah, I know, the sexy version misses a few naked photos ^^ But I just took a pack found on bittorrent, and used the ones with the most colors (because if I use only naked women on a white background, the transitions will be crappy, so I needed to have blue, red, etc....). If you have a pack with nice naked photos, I'll add them to the pack
I'm currently modifying the PC part of the code to generate a special file which could be distributed and read by the PPC app, that way anyone can do an image pack
Cool idea
I do not have ones so I will w8 for new versions xD

[APP]SensorMaze - a little game

I wrote this little program, called SensorMaze. It generates mazes and allows you to steer a little blue dot using the movement sensors in the HTC Diamond. It is based on the original SensorTest program and since it has been a while since I programmed for any PDA, it is a bit simple.
Usage:
Try to send the blue dot to the red dot by tilting your Diamond in the required directions.
Commands:
- New Maze: create a new maze in the same level
- Next Level: increase the complexity.
As mentioned, it is my first attempt, so there is still some work that needs to be done.
TODO:
- Implement timer, so you can compete against yourself
- remove the "Position" text and replace with timer output
- MessageBox instead of Dialog ?
- Replace the blue dot with a "ball" like structure
- Release the source code (after cleaning it a bit more)
Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?
Changes ( 07-Aug-2008)
- Replaced the target with a cheese and the moving dot with a mouse icon.
- Added some text to show the current level.
- Initial level is lowered, so that kids could play it too.
Screenshots are provided in the attached .png files. I also added the sources, so that other people can see how you can use the acceleration meter
If you like my applications, consider a donation to Koushik.
After all it is thanks to his (and the many other developers) work and readiness to share it that I can write these programs. I (currently) still get enough satisfaction in writing these programs.
just tested, awsome little game! keep working on this! perhaps add some vibration and sound feedback, maybe change the dots to somthing like a mouse and some cheese? if you changed it to a ball it may be too simaler to teeter?
Adam
cgeboers said:
Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?
Click to expand...
Click to collapse
I haven't had any issues using C#.Net ... what are you writing in? The only thing I can think of is to make sure the MessageBox is shown from the same thread that created the form.
Really like the concept - gave it a play, and it works well! Looking forward to new and improved versions!
Great, Cheers dude
Some screens would be nice!
SensorMaze - suggestions
Thanks for the reviews. I will implement the changes, like the mouse and the cheese. I am currently working on an other "gadget" application, as soon as that one is finished I will take care of it.
As for the question about the MessageBox, I use C++ in this program and have a workaround, so I will let it at rest for the moment.
I will try to get some screendumps too later.
cgeboers said:
I wrote this little program, called SensorMaze. It generates mazes and allows you to steer a little blue dot using the movement sensors in the HTC Diamond. It is based on the original SensorTest program and since it has been a while since I programmed for any PDA, it is a bit simple.
Usage:
Try to send the blue dot to the red dot by tilting your Diamond in the required directions.
Commands:
- New Maze: create a new maze in the same level
- Next Level: increase the complexity.
As mentioned, it is my first attempt, so there is still some work that needs to be done.
TODO:
- Implement timer, so you can compete against yourself
- remove the "Position" text and replace with timer output
- MessageBox instead of Dialog ?
- Replace the blue dot with a "ball" like structure
- Release the source code (after cleaning it a bit more)
Question:
When I try to use MessageBox from my code, the MessageBox fails to close and I can never get back to the Shell without a reset. Any one any idea what I could be doing wrong here ?
Changes ( 07-Aug-2008)
- Replaced the target with a cheese and the moving dot with a mouse icon.
- Added some text to show the current level.
- Initial level is lowered, so that kids could play it too.
Screenshots are provided in the attached .png files. I also added the sources, so that other people can see how you can use the acceleration meter
Click to expand...
Click to collapse
have other sensor game.
SensorMaze mouse
I love this little game. However I found that in challenging myself and advancing the game to higher levels, the little white mouse became rather difficult to see as he became smaller. Perhaps changing the colour f the mouse or the colour of the paths in the maze. Currently the mouse and the maze are the same colour. other than that the game is great.
Awesome program, but I feel like I'm epileptic now, the screen was constantly flickering during it, I think it's a compatibility issue with my Raphael.
Awesome program
hmmm...wasn't able to get it working.
Got error (Unable to load Sensor DLL).
Any ideas?
sensor
unable to load DLL? can u tell me how to fix it?
that's a fun little game, thanks
Nice man : D
Hi, when i try to lunch the game, i got sensor dll, what shell i do to run the game ? i have samsung omnia i900
fadoody said:
Hi, when i try to lunch the game, i got sensor dll, what shell i do to run the game ? i have samsung omnia i900
Click to expand...
Click to collapse
you need to replace the sensor.dll file with the Samsung's...it is preinstalled with HTCs. Change that file and it should work fine.
I replaced sensor.dll with Samsung's .. but the problem is still persisting.. what shall i do now?
It would be nice if this could work on our LGs.
(the working LG sensors.dll created by iamspv at thread number 471591 in this forum.)

Need help with .net graphics. sample project attached

I am trying to do some custom controls, I've done some mobile work lately, but just typically using standard controls and an owner draw list. I want to try to do more "custom" drawn stuff.
In this project I'm trying to somewhat mimic the htc random access that will support multiple "lists" for this new project.
I'm new to the graphics (2d) stuff and need a bit of help. In this sample project I want to be able to draw the letter in the center of the screen, I will have a box behind it (gradient eventually I hope) so I need to be able to draw to the screen since its outside of the controls bounds. Thats no problem, but how do I clear what I've drawn?
here is a link to my code, if someone could please take a look.
where you should look is in the RandomAccess class, in DrawStringbox
http://createdevcode.com/code
thanks a million!
been trying to find some examples on the web, found one in full .net that sorta does what I want but of course I don't have access to all the PMEs in compact framework.
again, any help would be apprecidated on how I can draw to a "layer" on top of my form and have the form paint properly once I want to get rid of that layer and not have any left over graphics on top of any controls.

CycloneSkins [Knowledgable Coder Wanted]

Hello,
I have 'created' (to an extent) the first Horizontal Theme , based off of the built-in CPR file, for Titanium Homescreens on WM6.5, however I have a setback...
This theme is being developed initially, and probably mainly, for the T-Mobile DASH (HTC Excalibur/S620) which as a 320x240 screen. In order to make this work, i need a very simple background program running. This is what the program should do:
Detect a certain set of pixels on-screen, and check to see if colors match up with predefined values (much like MortScript's "ColorAt()")
If the values match up, swap UP/LEFT and DOWN/RIGHT (to emulate horizontal movement)
likewise, if it detects that the active window is the Desktop/Homescreen, it will Swap
If not, it will not do anything
This program needs to be low RAM usage, and not all that big (which is optimal for every program). The reason I have it check pixels is for people, like myself, who run SmartToolKit , which adds a 'mask layer' over the HomeScreen, making it harder to detect if it is actually the homescreen. If someone can create a better way of doing this, then thank you!
However, my main concern is getting a coder to make this application for me, without it the theme can essentially not exist. More details will be given upon contact.
If you are interested, please PM me or E-Mail me (both are provided by XDA through my profile).
Thank You all!
I am going to work on the actual theme today...
Is there anyone who could make this very simple program for me?
Hey,
I dont know if this is considered 'double posting' since these posts are weeks apart...anyways.
I am in DESPERATE need of some kind person to lend me a hand as far as making really a simple app. I do not have the environment set up for making Windows Mobile applications (i do not have Visual Studio as microsoft insists I do). The app would be:
1- ButtonSwap:
This one will check certain pixels on the screen and use them to confirm if it is the HomeScreen. If it is, then it will swap keys, if not, it wont do anything.​
So PLEASE, if someone is willing to do this VERY SIMPLE task, i would be very very grateful!
Sincerely,
Max B.
Cyclonezephyrxz7

[PRJ][BETA][DEMO] Screen lock utility / concept

Hi Everyone,
I don't know if I'm just reinventing a wheel here but I encountered a problem with screen lock software and prying eyes. Basically it doesn't take long for repeated use on a single part of a touch screen to be visible at certain angles.
I had one idea to help prevent this and made a quick demo/beta app.
Wondered if anyone on here had any thoughts on the project before I commit too much time into it.
I'll work on screen shots...
The installation is pretty painless - there isn't one (lol) - just unzip the exe and run, make sure you have .NET 3.5. There's a ABOUT page displayed (with a real exit menu) and details / default PIN.
Comments welcome, but remember its the concept on display, not the desing (and distinct lack of graphics).
More Information
It is obviously developed for touch screen devices without a keypad, which I imagine circumnavigates this problem.
It has been tested in the emulator on 320 screens, and on Touch HD. I'll try it on the Magicinan, and Hermes later.
If anyone would develop such app, it would be great ! I was searching for months for something like this. Please, if anyone can develop such app for WVGA screen (SE Xperia X1) it would be great & very appreciated.
For avoiding the mess with downloading, unzipping, copying to emulator dir, running the emu etc, it's usually wise to post screenshots so people immediately grasp the idea.

Categories

Resources