Jul 12, 2011 Replies: 32 I think one of the easiest way is using Android SDK tools. I'll explain this method using Windows, but in Linux or Mac should be similar. This is what you have to do: -Connect your mobile to computer with usb cable -Open your SDK folder. -Go to tools folder -Execute ddms.bat -Your Device must be Online -Go to Device>Screen capture... or press Ctrl-S -Press Refresh in order to update your Screenshot. -Press Save to save your Screenshot. Click to expand...
I think one of the easiest way is using Android SDK tools. I'll explain this method using Windows, but in Linux or Mac should be similar. This is what you have to do: -Connect your mobile to computer with usb cable -Open your SDK folder. -Go to tools folder -Execute ddms.bat -Your Device must be Online -Go to Device>Screen capture... or press Ctrl-S -Press Refresh in order to update your Screenshot. -Press Save to save your Screenshot.
M madSac Active Member Licensed User Longtime User Feb 6, 2013 #21 Erel said: You cannot take screenshots of other applications. On some rooted devices there are all kinds of workarounds. Search google for more information. I haven't tried any of them. Click to expand... Ok So there is no other way without rooting. Fine. Thank you.
Erel said: You cannot take screenshots of other applications. On some rooted devices there are all kinds of workarounds. Search google for more information. I haven't tried any of them. Click to expand... Ok So there is no other way without rooting. Fine. Thank you.
yttrium Active Member Licensed User Longtime User Jun 14, 2013 #23 Erel said: You cannot take screenshots of other applications. On some rooted devices there are all kinds of workarounds. Search google for more information. I haven't tried any of them. Click to expand... This is actually wrong - you can easily take a screenshot of the current screen by invoking Code: Copy /system/bin/screencap -p /sdcard/screenshot.png which outputs a screenshot of the current immediate screen to "screenshot.png" on the sdcard. This method works in API14 and above without root being required, no matter the system, even if the device is running Sense or Touchwiz.
Erel said: You cannot take screenshots of other applications. On some rooted devices there are all kinds of workarounds. Search google for more information. I haven't tried any of them. Click to expand... This is actually wrong - you can easily take a screenshot of the current screen by invoking Code: Copy /system/bin/screencap -p /sdcard/screenshot.png which outputs a screenshot of the current immediate screen to "screenshot.png" on the sdcard. This method works in API14 and above without root being required, no matter the system, even if the device is running Sense or Touchwiz.
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2013 #24 Have you tried to use it without ADB connected? Try to restart the device and then run it.
Laurent95 Active Member Licensed User Longtime User Jun 16, 2013 #25 agraham said: You can get a sort of screenshot with the Reflection library, but only from within the displayed Basic4android Activity Code: Copy Sub Btn1_Click Dim Obj1, Obj2 As Reflector Dim bmp As Bitmap Dim c As Canvas Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg") ....../..... bmp.WriteToStream(out, 100, "PNG") Out.Close End Sub Click to expand... Hello Agraham, Very nice, that works fine How i can get a screen shot from only an imageview of the activity ? What i must change in this code, if it's possible of course. Thanks for your help. Regards
agraham said: You can get a sort of screenshot with the Reflection library, but only from within the displayed Basic4android Activity Code: Copy Sub Btn1_Click Dim Obj1, Obj2 As Reflector Dim bmp As Bitmap Dim c As Canvas Obj1.Target = Obj1.GetActivityBA Obj1.Target = Obj1.GetField("vg") ....../..... bmp.WriteToStream(out, 100, "PNG") Out.Close End Sub Click to expand... Hello Agraham, Very nice, that works fine How i can get a screen shot from only an imageview of the activity ? What i must change in this code, if it's possible of course. Thanks for your help. Regards
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2013 #26 It is much simpler. You can get the Bitmap with ImageView.Bitmap and then save it with Bitmap.WriteToStream.
It is much simpler. You can get the Bitmap with ImageView.Bitmap and then save it with Bitmap.WriteToStream.
Laurent95 Active Member Licensed User Longtime User Jun 17, 2013 #27 Erel said: It is much simpler. You can get the Bitmap with ImageView.Bitmap and then save it with Bitmap.WriteToStream. Click to expand... Hi Erel, Thank you for responding, but, oppppps, i have forget one thing. I want to get a screen shot from an animate bitmap, who's animated by an external library. And this solution can't work Then of course i need to take the screen shot only for a part of the screen otherwise i still get a fixed drawing of the bitmap. Regards.
Erel said: It is much simpler. You can get the Bitmap with ImageView.Bitmap and then save it with Bitmap.WriteToStream. Click to expand... Hi Erel, Thank you for responding, but, oppppps, i have forget one thing. I want to get a screen shot from an animate bitmap, who's animated by an external library. And this solution can't work Then of course i need to take the screen shot only for a part of the screen otherwise i still get a fixed drawing of the bitmap. Regards.
Erel B4X founder Staff member Licensed User Longtime User Jun 17, 2013 #28 You will always get a fixed drawing in a screenshot...
P priusfan Member Licensed User Longtime User Jun 30, 2013 #29 hello I use with success agraham's method. but it does not work when using gmap: the panel with the map is blank... here is the real thing: and here is the screencapture: any ideas about a solution?
hello I use with success agraham's method. but it does not work when using gmap: the panel with the map is blank... here is the real thing: and here is the screencapture: any ideas about a solution?
Erel B4X founder Staff member Licensed User Longtime User Jul 2, 2013 #30 According to the answer here it isn't possible: Capture screen shot of GoogleMap Android API V2 - Stack Overflow
According to the answer here it isn't possible: Capture screen shot of GoogleMap Android API V2 - Stack Overflow
P priusfan Member Licensed User Longtime User Jul 2, 2013 #31 Thx you very much Erel for your fast (but sad) answer.
M me68 Member Licensed User Longtime User Jul 2, 2013 #32 If you press Home-Button & Power-Button simultan for 1 second a white rectangle is drawn on the Screen and a screenshot is stored at \Images\screenshots ... It must be possible ... Martin
If you press Home-Button & Power-Button simultan for 1 second a white rectangle is drawn on the Screen and a screenshot is stored at \Images\screenshots ... It must be possible ... Martin
P priusfan Member Licensed User Longtime User Jul 2, 2013 #33 @me68 (private joke) hello Martin I remind you this application is made for an electric car... Using one full hand for holding the phone/tablet and 2 fingers from the other one for taking a screenshot is a bit dangerous when driving. some details about this dev are here me68 joined me on this dev and made it better & better.
@me68 (private joke) hello Martin I remind you this application is made for an electric car... Using one full hand for holding the phone/tablet and 2 fingers from the other one for taking a screenshot is a bit dangerous when driving. some details about this dev are here me68 joined me on this dev and made it better & better.