Community Questions & Answers
Android: webview toImage() problem
In my app I use this code to make a screenshot of an entire webview: ~~~ j = 5 //number of times necessary to see the entire webview for(var i=1, x; i<j; i++){ var screenShot = myWebView.toImage().media; ...
Screenshot of a map? Androdi
Hey, is there any option to make a screenshot of a mapview in android? (Map module 2.0) i've tried: blob = mapView.toImage().media; file = Titanium.Filesystem.createTempFile(Titanium.Filesystem.resourcesDirectory); file.write(blob); i've tried it with...
Screenshot to gallery in Android
Hi there. I have read some post about the topic, where it seemed that you could use toBlob() instead of toImage, in android, but i haven´t figured it out. Here my thing, I have made a view into a scrollview and it can take screenshot of the whole screen...
black screen on camera overlay screengrab
Hi all, I am hoping you can help me. I want to start the camera, overlay an image on top of the camera and then save out a screenshot of the newly compiled image . Basically, the user can see what they look like wearing a hat. Anyway, overlay etc all...
VideoPlayer screenshot (Android)
There is a way to take a screenshot of a videoplayer? I tried with `videoPlayer.toImage()` and with ~~~ Ti.Media.takeScreenshot(function(e){ blobImage = e.media }); ~~~ but in both cases I get an image with a black background, without video...
Saving image @2x using toImage()
What I want to do is save a screenshot of a view as a @2x png People have mentioned that there has been a fix https://jira.appcelerator.org/browse/TIMOB-4884 but it still doesn't work for me. I am thinking it might be easier to do this by cropping a...
Unable to take screenshot on Galaxy S3
Having sent my client a beta of his Android app he tells me he is unable to take a screenshot of any of its views on his Galaxy S3 by pressing and holding the power and the home button at the same time. Other apps are OK - it's just mine! As I'm not even...
Some problem save screenshot into photo gallery.
I created a simple code for webview with screenshot: ~~~ var win = Titanium.UI.currentWindow; var webview = Titanium.UI.createWebView({ url:'http://www.google.com', top:300, left:0, width:300, height:300 }); var imageView =...
App Store Rejects Build: Device Family Issue
Hi all - I'm not an experienced developer, so your help will be appreciated. I have successfully submitted an app to the Apple app store. The build took place in Titanium studio, and Xcode uploaded it successfully. It is, however, immediately rejected for...
Saving a view to photogallery
titanium mobile sdk 2.0 iphone sdk 5.1 Hi, I have an app that creates screenshots and save the blob to photogallery. But the screenshot is capturing the entire screen. Is there a way to limit the area of the area to capture? thanks.
ScreenShot entire webView?
I need a ScreenShot of entire webview, and not only of visible area. How can i do it? I try this, but not works.. :( ~~~ var screenShot = myWebView.toImage();; screenShot = screenShot.imageAsCropped({ height : 800, width : "100%", x : 0, y :...
ScreenShot in Retina Sizes
Hi all, I am trying to take a screen shot of my current screen.I have the screenshot working well, and it saves off as required. The problem is that when i take the saved image is in the size of the window resolution (ex.320X480). How to save in retina...
Saving a PNG screenshot to camera roll changes filetype to JPG?
I'm saving a screenshot to the file system then saving to the camera roll but for some reason the savetoPhotoGallery function saves my PNG as a JPG, is it even possible to save PNG's to the devices camera roll? My app is intended only for iPad. This is...
Save screenshot temporarily, then retrieve when ready.
I am currently developing an app for ipad that has a 4 window form. I know how to take a screenshot of each window using: ~~~ Titanium.Media.takeScreenshot(function(event){}); ~~~ What I would like to do is save the screenshot temporarily, then be able to...
create Screen Shot From Android?
The docs don't say it won't work with Android but when I try it all I get is the splash screen. Anyone got it to work or some other option? I really need a way for users to share issues...
Using Screenshot - Media.takeScreenshot
Hi All, Quick question, I want to take a screenshot of the screen, but I was wondering if you can control the X &Y of the captured area? E.g. my app has tabs at the bottom of the screen, and I don't want the tabs included in the captured image. Any...
What to do about iPad screenshots and iTunes Connect
This is my first app and I'm having trouble understanding some of what iTunes Connect is asking of me. I can't find a solid answer in my searches. I've validated and submitted my iPhone app to iTunes Connect and the status immediately changed to 'Missing...
Screenshot of webpage
Hi, I've tried a number of methods using blobs, toimage and webviews but have had no luck putting together a string of code that successfully takes a screenshot of an internet page when loaded in a window. Has anyone had any luck and could provide an...
Take a webView screenshot error
My code is bellow,it's work on use normal file like '/images/xxx.png' to saveToPhotoGallery,and I also read temp file to image view success ,I dont know why it not work to save to photo gallery and not show any warning even error.....can sb answer me?many...
toImage & imageAsCropped - Unexpected Results
I am trying to take a cropped screenshot on my iPhone app but it is giving me unexpected results. The screenshot comes out flipped (or reflected). Now the image that i am capturing in the window is a MaskedImage and this behaviour only exists with this...
Airprint Module
Hi, What kind of files could we print with the Titanium Airprint module? It's possible to print an image created(screenshot or an image of the view) inside the app? Thx
takeScreenshot in Landscape (iPad)
Hello, When doing Titanium.Media.takeScreenshot when the iPad is in landscape orientation, the returned image is shown in vertical. I tried rotating the image as shown in this code but instead of immediately rotating it, it slowly rotates it: ~~~ var...
Disabling possibility to take screenshots of the app
Hi, while someone asks how to take screenshots of their app, I need to disable this option, when someone presses at the same time the home button and the power button. Does anyone know if it's possible? thank you
toImage() or takeScreenshot() videoPlayer
Hello I have a question, --- 'var activeMovie = Titanium.Media.createVideoPlayer({ url: contentURL, backgroundColor: '#111', fullscreen:true, movieControlMode:Titanium.Media.VIDEO_CONTROL_EMBEDDED, ...
screenshot of webview
Hi, I'm trying to take a screenshot of a webpage viewed using webview, I have used the takeScreenshot function, but all i get is the tab bar menu and a white background instead of the webpage. Any help appreciated, thanks. m
Trying to save a screenshot of the current iphone display and save to image
Hi ! fellow developers, im working on a application right now in which i need to basically create an image which is going to be basically images stacked on top of another, much like a collage but i has stumbled on a problem. I need to save the final...
Empty Screenshot with Windows
When i take a Screenshot with the method provided in the desktop api, the screenshot works fine within MacOS, but is an empty picture in windows. The Screenshot file does have the correct size but is just white. Anybody experienced the same problem?
Titanium.Desktop.takeScreenshot throws error
If I use **Titanium.Desktop.takeScreenshot** with the same file more than once, it throws the error **can't write file**. Look's like this function doesn't free the file-ressource. Can someone reproduce this problem?
Showing 1-28 of 28