Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-16-2012, 04:49 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Question Capturing Screen in iPhone

Hello.

I am new in iPhone. I am making an app which enables the user to capture the screen when the user press the Home Button of iPhone.
Please help me.

Waiting for early response.


Thanks In Advance
AppleSteve is offline   Reply With Quote
Old 01-16-2012, 05:15 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Location: Helsinki
Posts: 304
fiftysixty is on a distinguished road
Default

Why would you do that, when the you can already take a screen cap by pressing the home + sleep/wake buttons at the same time? Or are you perhaps working on a jailbroken device?
fiftysixty is offline   Reply With Quote
Old 01-16-2012, 11:05 PM   #3 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by fiftysixty View Post
Why would you do that, when the you can already take a screen cap by pressing the home + sleep/wake buttons at the same time? Or are you perhaps working on a jailbroken device?

I am not making this app for jailbroken device. I want to make an application for it. Is it feasible and how??? Please guide me through this.


Thanks In Advance
AppleSteve is offline   Reply With Quote
Old 01-17-2012, 04:16 AM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 35
nikhil is on a distinguished road
Wink Not Possible on Home button....

Code:
    
   UIGraphicsBeginImageContext(self.view.bounds.size);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
    UIGraphicsEndImageContext();
Use this code on any button click of your application and it will store the captured screen to the photo library.
nikhil is offline   Reply With Quote
Old 01-17-2012, 04:58 AM   #5 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by nikhil View Post
Code:
    
   UIGraphicsBeginImageContext(self.view.bounds.size);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
    UIGraphicsEndImageContext();
Use this code on any button click of your application and it will store the captured screen to the photo library.

Thank you Nikhil,

But my problem is still not solved...this code can capture the image of the application screen and what I want is the screen capture of default home screen of iPhone.

Please help.

Thanks In Advance
AppleSteve is offline   Reply With Quote
Old 01-17-2012, 04:13 PM   #6 (permalink)
Registered Member
 
Join Date: Nov 2009
Location: Helsinki
Posts: 304
fiftysixty is on a distinguished road
Default

Quote:
Originally Posted by AppleSteve View Post
Thank you Nikhil,

But my problem is still not solved...this code can capture the image of the application screen and what I want is the screen capture of default home screen of iPhone.

Please help.

Thanks In Advance
That can't be done without jailbreaking, as far as I know.
fiftysixty is offline   Reply With Quote
Old 01-17-2012, 06:42 PM   #7 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by AppleSteve View Post
Thank you Nikhil,

But my problem is still not solved...this code can capture the image of the application screen and what I want is the screen capture of default home screen of iPhone.

Please help.

Thanks In Advance

You can't do anything from the home screen. When the user is at the home screen, your app is not running.

You also can't do anything on pressing the home button, since that exits your app to the home screen. You do get a warning that you are being shifted to the background, so you might be able to take a quick screen-shot and save it to disk before you quit, but I'm not sure.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-18-2012, 12:23 AM   #8 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
You can't do anything from the home screen. When the user is at the home screen, your app is not running.

You also can't do anything on pressing the home button, since that exits your app to the home screen. You do get a warning that you are being shifted to the background, so you might be able to take a quick screen-shot and save it to disk before you quit, but I'm not sure.
Hi...

Please go through this link....I want to make an app like this..

Record Your iPhone Screen in HD - YouTube


Please help me..

Thanks In Advance.
AppleSteve is offline   Reply With Quote
Old 01-18-2012, 12:30 AM   #9 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

The app requires jailbreaking and private API's.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 01-18-2012, 12:45 AM   #10 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
The app requires jailbreaking and private API's.
Hello Domele,

I don't want this app by jailbreaking. Is it possible without jailbreaking??

Please do reply.
AppleSteve is offline   Reply With Quote
Old 01-18-2012, 02:31 AM   #11 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

It's not possible.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.

New app - See screenshots and details at www.globaclock.com.

If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.
Domele is offline   Reply With Quote
Old 01-19-2012, 07:17 PM   #12 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Domele View Post
It's not possible.
What he said. Not possible unless you jailbreak your phone.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-23-2012, 06:07 AM   #13 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
What he said. Not possible unless you jailbreak your phone.
Ok....But what after jailbreaking....Could you help me in that???
How is this possible after jailbreaking??


Thanks In Advance
AppleSteve is offline   Reply With Quote
Old 01-23-2012, 06:55 AM   #14 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by AppleSteve View Post
Ok....But what after jailbreaking....Could you help me in that???
How is this possible after jailbreaking??


Thanks In Advance
No idea.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-23-2012, 06:59 AM   #15 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

Quote:
Originally Posted by AppleSteve View Post
Ok....But what after jailbreaking....Could you help me in that???
How is this possible after jailbreaking??


Thanks In Advance
Give it up fella, you're not going to get an answer on here.
MarkC is offline   Reply With Quote
Old 01-24-2012, 12:38 AM   #16 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 36
AppleSteve is on a distinguished road
Default

Quote:
Originally Posted by MarkC View Post
Give it up fella, you're not going to get an answer on here.
Then, where could I get the answer???? ....Somebody help me....
AppleSteve is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 389
10 members and 379 guests
7twenty7, Atatator, glenn_sayers, guusleijsten, iphonedevshani, QuantumDoja, sacha1996, Sami Gh, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:42 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0