Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
chrismrulz
Old
(Last edited by chrismrulz; 18th February 2012 at 08:04 AM.)
#1  
Senior Member - OP
Thanks Meter 0
Posts: 143
Join Date: Jul 2007
Default iPhone Slider (.NET CF) - Now V1.0 Stable!!

The main improvements in the iPhone Slider over A_C's slide2unlock are that it's compatible with any devices that can run the .net framework, So it can be QVGA or VGA, 2003SE, WM6, And it's even compatible with running on desktop windows versions. All this by running the same executable. (edit: running on windows desktop produces errors now due to using some pocket pc libraries)
It also uses the proper iPhone fonts, and it should be less ram usage. (Tested under WM6 using memmaid it only used 1.87mb ram. some users are reporting strange memory issues which is being fixed though)

Screenshots: (Running on Pocket PC Emulator)
(QVGA)

(VGA)


if you're one of the people that find A_C's slide2unlock is incompatible with your ppc or eating up your ram, you can donate through paypal to motivate me to finish this: chrismrulz@hotmail.com.

Downloads:
- This is the main program: Slider.zip.
Try using this first. Just extract it to your device or SD card and run.
Note: To use the proper iPhone fonts, copy the included iPhone.ttf to your windows fonts directory (may also require soft-reset).

- If the 'slide to unlock' animation or arrow button don't scale properly on your VGA screen, extract Slider_VGAPATCH.zip to the folder of the original version.

- If you want to change the wallpaper, use this: Slider_Config.zip.
You can only run this on WM5-6 and on VGA devices at the moment.
Put it in a different directory to your main slider app directory. Put the wallpaper you want in GFX\Res\wallpaper.bmp. Then let run the app and let it exit by itself.
It will create a directory called 'GFXOUT' that contains the necessary graphics to use with your main slider app.
Then simply copy the contents of the generated 'GFXOUT' folder to your main app's 'GFX' folder (or delete it and rename GFXOUT to GFX and put it in there).
Note: If you aren't using the VGAPATCH version you will need to resize the slideanis.bmp to half the size using an image editor.


- Due to the larger VGA icons and a different filename, my slider app isn't compatible with the original iPhone launcher anymore.
So here's a modified version of the launcher: launcher.zip that uses different icons.
It's also modified to show 'AT&T' instead of 'Unknown' if you don't have phone capabilities.


Source:
Slider_Source.zip
Slider_VGAPATCH_Source.zip
Slider_Config_Source.zip



Updates:
-Update @ 4th September:
made images load externally. the app executable is only 18kb now.
added a function to make it fullscreen, but it's commented out atm as it leaves the screen mucked up when you close the app (until you soft-reset).
but as it is, adding the window state to maximized already makes it in fullscreen everything i've tested except for on the device emulator.
added vga quality background that will stretch to the resolution of the screen.

-Update @ 5th September:
added clock and date display.
added signal strength status and carrier name functions.
added lock icon.
added power status function (temporarily uses a built-in value and does not actually grab the power status at the moment though).

-Update @ 6th September:
added some 'fake' transparency effects. this would actually mean less resources are used. but i hope to find out how to do real transparency later on.

-Update @ 7th September:
added fake transparency to the slider bar and to the animated 'slide to unlock' images.
added real transparency for all the labels. the only thing left to make transparent now is the arrow button.
added dpi scaling method and VGA sized images. so it now fully supports VGA. if you are using a QVGA device, it will scale down to your screen size.
the clock will remove the leading zero from the time if it starts with it.
positioned labels more accurately.

-Update @ 8th September:
added function to animate the 'slide to unlock' image on the ppc the same way as with A_C's app
added proper battery status function.
added transparency on the arrow image.. but it's only a solid color so it's still not very good.
added iPhone fonts! if you want the app to use the same fonts as on the iPhone, copy iPhone.ttf to your windows fonts directory and soft-reset. if you don't do this it will simply revert to tahoma fonts.

-Update @ 9th September:
added a new way for drawing the fonts transparently. it will ensure compatibility across all screen sizes, and can draw the font positions exactly the same as on the iPhone (font sizes will need to be changed though).
the fonts are now always centered properly.
added an error check on the battery api. so it's now compatible running on desktop pc's again. it might also fix some ppc's.

-Update @ 10th September:
made fonts relatively positioned and accurate to the iPhone.
made fonts sized accurately to the iPhone.
changed font color of the date to the greener color it is on the iPhone.
fixed the huge performance hit and screen flashing when updating the images with fonts ontop of them. now all images that get refreshed will only do it if it's needed.
fixed a bit of code i left out in the previous vga fixes (binary and source). sorry about that, the vga fix will work now.

-Update @ 11th September:
changed speed of the slideback function to be more accurate to the iPhone.

-Update @ 12th September:
made arrow button image transparent, BUT.. once you move it it won't update the transparency.. so only when it's in the start position will it be transparent. it's still an improvement though.
modified the launcher app to use 'slider.exe' instead of 'slide.exe' so you can just use it with my slider app straight away. also fixed a problem with it still showing one battery image too big.

-Update @ 13th September:
finally got the arrow button image to stay fully transparent!!
it will now automatically open in fullscreen.
changed wallpaper and other images as the wallpaper was cropped a bit different to the iPhone.
changed slider app to use one toplock.bmp instead of a lock.bmp and top.bmp.
made a 'Config Creator' to generate the images for different backgrounds.
hosting the files on my server now as there are more than the maximum limit allowed in a thread.
improved fluency and speed of the 'slide to unlock' animation by a huge deal.
removed the blurryness of all the images.
due to using the 'config creator', the images are now VGA quality and not scaled up from QVGA.
changed carrier name font to arial. the rest will still use the iphone fonts though.
cleaned up arrow button image and moved it to the proper position.

-Update @ 15th September:
thanks to LlamaV3, the following bugs have been fixed:
exiting doesn't leave the titlebar from making it fullscreen.
glitchy graphics on the arrow button have been fixed.
carrier name no longer has a box symbol next to it.
because of this, i'm proud to announce the app as V1.0 stable! thanks LlamaV3 for getting us there!

-Update @ 23rd September:
Added LlamaV3's code to dispose of the images before exit, memory might be saved.
Thanks to Reichi, I've updated all projects to use png images instead of bitmaps.


Todo:
- add option for WM5/WM6 users to use proper alpha-blending transparency instead, so it's easier to modify the images like the wallpaper while not effecting everything else. (already have this working in another test project too)
- add wifi, bluetooth etc. status functions and icons.
- add better image buffering and/or option to use gapi/dx mobile to make moving the arrow image smoother.
- make config creator compatible with running in QVGA.
- add 'slide to answer'.. maybe..
- add registry/ini configuration. (will only add this once all the functions are complete though)
iPAQ stuck in a bootloader loop?
Can't flash using HP's tool due to wrong version no. or corrupted rom?
You're in luck. Download the Universal BootLoader Tool Here.
 
Mistellisch
Old
#2  
Member
Thanks Meter 0
Posts: 49
Join Date: Mar 2007
Thumbs up from my side!
I'm really curious what we'll get to see.

I'd really like to test when you are at beta stage. Hopefully it will become a bit smoother and consume reasonably less ram.

Great!
 
dferreira
Old
#3  
dferreira's Avatar
Senior Member
Thanks Meter 59
Posts: 1,366
Join Date: Jan 2007
Location: Oulu

 
DONATE TO ME
I don't get it... why would we need an slide 2 unlock if the device stays locked when we press once the power button?

Its just to add another step to do just to turn your device on!
Dropbox | Homepage | Twitter
How-to: Install Google ION Android 1.6 ROM | Compile AOSP for Sapphire | Nexus One
Google Marketplace: Overcharged | Calendar Awareness | CallerName
Donations: You can offer me a beer if you wish
 
Eiswritsat
Old
#4  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Jun 2007
more info pics???
 
Genjinaro
Old
#5  
Genjinaro's Avatar
Senior Member
Thanks Meter 351
Posts: 1,709
Join Date: Jan 2007
Location: Philadelphia, PA

 
DONATE TO ME
Yeah I second that, pics woud be nice thanks.
 
dw02020
Old
#6  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Jun 2007
Quote:
Originally Posted by dferreira View Post
I don't get it... why would we need an slide 2 unlock if the device stays locked when we press once the power button?

Its just to add another step to do just to turn your device on!
Very true haha. The damn iphone craze is addicting though.
 
superflysocal
Old
#7  
Senior Member
Thanks Meter 7
Posts: 792
Join Date: Jul 2007

 
DONATE TO ME
slide2unlock has worked fine for me, but if this will hog up less memory then i will definitely give it a try.
 
fatouraee
Old
#8  
Senior Member
Thanks Meter 3
Posts: 165
Join Date: Oct 2006
Location: Boston
what programming language did u use. c .net or no. could you let me know . thank you
 
nEuDy
Old
#9  
Senior Member
Thanks Meter 3
Posts: 124
Join Date: Feb 2007
I think he used Visual Basic .NET ;)
Nice Code
thanxx
 
chrismrulz
Old
(Last edited by chrismrulz; 18th February 2012 at 08:25 AM.)
#10  
Senior Member - OP
Thanks Meter 0
Posts: 143
Join Date: Jul 2007
Quote:
Originally Posted by nEuDy View Post
I think he used Visual Basic .NET ;)
Nice Code
thanxx
C#.net


Quote:
Originally Posted by superflysocal View Post
slide2unlock has worked fine for me, but if this will hog up less memory then i will definitely give it a try.
it only uses 18kb ram for the executable.
the other slide2unlock uses the PPL interpreter and requires use of gapi etc.
so if i get time to actually do the rest of the GUI, this would be better to use cos it's better performance (and would be compatible with all screen sizes and OS's due to using .NET framework).
but as it is now, it's just proof of concept for the slider.


btw people asking for screenshots,
theres no point atm really.
the point was to show how the slider works, and compatibility/performance. the graphics/UI has hardly been started on yet.

anyways:

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more