Android :: Taking Screen Shot Of Whatever Is Drawn On View
Oct 28, 2009I am trying to take a screen shot of whatever is drawn on my custom view's canvas. The getDrawingCache() call returns null sometimes. Any pointers to what I am doing wrong here?

I am trying to take a screen shot of whatever is drawn on my custom view's canvas. The getDrawingCache() call returns null sometimes. Any pointers to what I am doing wrong here?
I really want to take screenshots of my desire to show you all, but i cant get it to work on my desire. When i open the sdk ddms tool my desire doesnt show on the list, I have followed the guide found on page 1 in the "show us your desire screen" thread, but there seems to be a problem: I installed all the software including the usb-driver package for the sdk-software. I checked the "usb-debugging" on the desire.
So I read that maybe i should update the device from the Windows devicemanager. First of, my desire doesnt show, it shows only a "ADB" - is that my desire? I tried upgrading the driver on the ADB, but even if i browse to the USB-folder in sdk it says "no driver found".
My problem is that i want to take a screenshot from whole display. I want to do it without human interaction, like a service, which launches the activity. I tried to do it with the getRootView and the method getDrawingCache but i didn't find the main view. Then I've tried to do it with a simply dialog box with a button (using the click event, and taking the view that it has in the attribute). This solution give me a screenshot from the activity (Dialog box only) but I have not idea how I can take a screenshot from whole display.
View 4 Replies View RelatedHow to maximize picture when taking a photo(shot)
View 1 Replies View RelatedI am creating a CustomView with bigger image based on tutorial on and developers forum. It is scolling fine.I need exact pixel coordinates of my image.I am getting that also.now I want to draw some images upon scrolling image.I am able to draw images using onDraw().But images are not getting scrolled.Any idea how to resolve this?
View 4 Replies View RelatedI made a "GraphBar" custom view that is a RelativeLayout with a TextView on the bottom and an ImageView, varying in height, above that. Here is the code...
I've found it's probably a bug. The workaround should be, again, calling requestLayout(). Still i don't understand where i can put the call.
This is really frustrating, I am trying to get a carriage return drawn in my custom view and nothing is working. I have tried 'System.getProperty("line.separator")' but that makes it say null and I have tried '
' and '
' and those just both draw a little square. I am using the canvas.drawText meathod.
From the javadoc of RemoteView, it said " * A class that describes a view hierarchy that can be displayed in another process."
But unlike View class, RemoteView does not have a 'draw(Canvas canvas)' method. Can you please tell me which method of RemoteView causing its layout to be drawn on screen?
To any normal android Widgets based on View( Button ,TextView ...), I wanna manipulate the bitmap data before it is drawn on screen. I have tried the onDraw(Canvas canvas) method, But when the programe hit the onDraw(Canvas canvas) method, I think the bitmap has already been drawn to screen.
If there is any way that I can get the bitmap data before it's drawn to screen, so I can prevent it from being displayed , but grab the data, put it on the intent for some further use?
My app keeps force closing before it starts, eclipse returns no errors in my code and my xml is good.
package com.mhe.test.scan;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class main extends Activity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button myScanButton = (Button) findViewById(R.id.myScanButton); myScanButton.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "PRODUCT_MODE");
startActivityForResult(intent, 0);
} } );
} EditText totalbox = (EditText) findViewById(R.id.totalbox);
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (requestCode == 0) { if (resultCode == RESULT_OK) {
String contents = intent.getStringExtra("SCAN_RESULT");
// Handle successful scan totalbox.setText(contents)
} else if (resultCode == RESULT_CANCELED) {
// Handle cancel totalbox.setText("@string/bummer");
} } } }
Essentially it is supposed to call zxing Barcode Scanner to scan a barcode on a button click and return the result into an EditText field.
I have the canvas in specific area in my application. I want to take screen shot of the canvas area. How can get the screen shot?
View 3 Replies View RelatedAnything better then ShootMe? With this app what I hate is that I have to shake it to take a screen shot. Is there anything king of like the iPhone. Just click a button and it takes a pic? My phone is rooted and I'm using the MIUI 11.5 ROM and it has a built in screen shot taker but it is not working, it takes the picture but when it saves it it's corrupted
View 15 Replies View RelatedIs there anyway to take screen shots of my device while it is unconnected from DDMS ?
View 4 Replies View Relatedi want to create a bitmap of whats being currently displayed of my app, one thing i went into is cant read FB buffer requires root, would like to know if it is possible to create a image file for the screen, please i want the help to code this, no 3rd party intents.
View 2 Replies View RelatedDoes anyone know what clock app is in this screen shot?
View 3 Replies View Relatedare there any out there? i have only seen 2 apps mentioned that will take screen shots even with root. an i looking in the wrong places, or is there really not a free application for something that seems like it would be easy..
View 8 Replies View RelatedIs it just an impossibility to do?I have no idea about these things, but I guess if it is possible it would have been done already, no? I haven't taken the plunge to root, and not sure if I will and the instructions for screen shot on Droid are basically chinese to me because I have no skill when it comes to this sorta thing.I just want an app that will take a screenshot without root.People like me would pay for an app like this. You could make killer money guys, come on!
View 14 Replies View Relatedhow do i get a screen shot of my screen. Like on the iphone
View 5 Replies View RelatedIs it just me or does anybody else notice as well that the images uploaded to ones Android Market's publishing site are heavily compressed. When I look at them after they're uploaded, i can clearly see ugly JPEG-compression artifacts.Is there a way to make sure that the quality of the images stored on Android Market's servers is better?
View 2 Replies View RelatedIs it possible to take a picture of what is showing at that time on the EVO's screen?
View 21 Replies View RelatedOn the iphone, if you press the home button and the power button at the same time it would take a screen shot. Anyway to do that on the DX?
View 4 Replies View RelatedHow can I take a screen shot? Or which app is the best?
View 5 Replies View RelatedWhat is a good screen shot app?I downloaded screenshot but everytime i shake my phone it makes a shutter noise and gives me an error
View 5 Replies View Relatedis anyone here running JPK froyo firmware? i accedentially took a screen shot of my contacts list and i dont know how i did it, i have no special screen shot software installed. i have tryed different button combinations but havnt been able to do it again. any ideas?
View 1 Replies View Relatedcan anyone show me what it looks like? the home screens, the menus and the dialers? is this thing pretty stable and not so buggy now?
View 4 Replies View RelatedI've a list view with custom list adapter(list_item.xml). I have multiple layout folder to support multiple screen size. I found out when I inflate using LayoutInflater, its always taking the view from main "layout" folder.
I've a phone with screen size "427x320".
This is my code:....................
I want the layout inflater to pick the list_item.xml from "layout-427x320" folder and not "layout" folder.
I'm running Open Home on my Droid; trying to figure out how to take a screen shot.I have the option for Screen Shot under Menu > More > Screen Shot and it states that the screen shot is captured but I can't figure out where it actually writes the image to?
View 1 Replies View RelatedIm pretty much a noob to all these cell phone device operations etc. I thought launcherpro was pretty cool so i installed it but when i started using it, it seemed that my device was much slower than with just the original launcher. Also i was wondering if there is an app to take a screen shot without the phone being rooted (what does that even mean?)
View 2 Replies View RelatedI'm facing a problem regarding to design issue, to understand problem i uploaded a screen shot.
I checked in emulator, it works well but when i try the same application in HTC Sprint mobile which screen size is 4.3" and resolution is 480*800(HVGA) but there did not display appropriate (check attachment for screen shot).
On the iPhone, when you hold down the top button and the button on the bottom it takes a snap shot of your screen, I love that feature. Does the droid have it?
View 9 Replies View Related