Stuff like this. I'm not sure how to quite do that outside of a screen capture program. Or perhaps they are using an emulator with that function?
GIF
There is an app called screencast pre installed in Android. Use that to record screen actions and then convert it to a gif using an online software
Related
I am new to android development and Kotlin. I am trying to implement a feature that takes a screenshot when there is an issue in the application and uploads the screenshot to a server.
I am currently writing a function that uses DrawingCache and saves the view to a bitmap image. Other than this approach, is there a better way to do this? I was wondering whether there is a way to use the Android OS level screenshot capturing mechanism for this?
No. You should only have a screen of your own views, and not other apps nor system status bar. If that is possible, it is a security issue with Android and Google should forbid it.
I did screen sharing (tokbox) for my application.
It works fine inside my app.
But I cannot share screen outside my app...
Can anyone plz help?
https://tokbox.com/developer/guides/screen-sharing/android/
I had also faced the same issue and had mailed to tokbox support.
This was their response:
The way our screen capture code works is that it recursively traverses the view hierarchy and copies those images to a buffer and then send that buffer over on the webrtc data pipe. Hence once the app is pushed to the background, we could not traverse the view hierarchy and copy the image, so screen sharing works until we are in the application (Android or iOS native app). If you want to share the screen view of Opentok app only, it will work but outside the app won't work. It's just to take care of the privacy and security aspects of the mobile app users.
So according to them you cannot share screen outside the application. It will only work when app is in foreground.
Update
After constantly asking the tokbox support team I got the following reply from them:
To screenshare the content outside of your application on Android and iOS can be achieved.
For Android, you need to use the Media Projection API together with Vonage/Tokbox Custom Capturer.
For iOS, you need to use the iOS ReplayKit together with Vonage/Tokbox Custom Capturer.
Basically, the implementation is to get a frame from Media Project API or Replaykit and then pass it via a custom capturer.
Following their response, I found Accelerator Core Android repo which showed how to integrate Media Projection API with tokbox.
More specifically these two files: ScreenSharingFragment.java and ScreenSharingCapturer.java
Using these two files I am now able to share screen outside my application.
Note:
Apps that target Android 9 (API level 28) or higher should use Foreground services or else your app will crash due to security reasons.
According to Tokbox, we can't share the screen outside the application.
Manik here from the Video API team.
To screenshare the contents outside of your application on the Android platform, you need to use the Media Projection API. In combination with the Media Projection API, you need to use a Custom Capturer.
We're working on a sample application that will allow you to accomplish this - please stay tuned!
I am developing an app for android on Qt and i want to have thumbnail previews of webpages on certain items. I have been looking everywhere but I can't really find anything except for one post from Nokia where they build an app that creates thumbnails.
The problem is that this app uses "Qt+= webkitwidgets" which is not supported by android so i need to find another way.
Would there be any other way to create a thumbnail of a webpage besides using these classes:
QWebPage
QWebFrame
QWebSettings
As they are part of the webkitwidgets module
I decided to do the creation of thumbnails in a serverside application. This way the android device is not bothered with these things.
I have little experience with Unity3d and checking my possibilities:
Say i write android plugin for unity
My requirements:
Display different android layouts with WebView which run html-5.
Run android activities while using png assets
Intercept android device UI touches
Is this something that can be implemented in unity as an android plugin?
Thanks for the help
Basing on your requirements, I suppose that you'd like to create native Ads or something like that which is perfectly doable.
It is possible to pause Unity Game and display another activity. It's also possible to show WebView as this activity.
I don't understand this fully but I guess you wanted to use PNG assets and display them. If I'm correct then yes, it's possible, you can bundle PNG assets as resources and them bundle into JAR.
UI Touches are collected by activity that is currently being displayed.
I'm building an app similar to Facebook Messenger on Android and I would like to display a GIF as the chat head/bubble. I know the chat head operates as a service and found a way to display GIFs on activities (http://android-er.blogspot.ca/2014/03/play-animated-gif-with.html), but can't get it to work for a service.
Separate, but likely related issue: I'd also like to display GIFs in the popup window (after the chat head is opened).
Android actually can decode and display animated GIFs, using android.graphics.Movie class.
This is not too much documented, but is in SDK Reference. Moreover, it is used in Samples in ApiDemos in BitmapDecode example with some animated flag.
Find here:
https://stackoverflow.com/a/7772170/3626214