I have an application created for 3D carousel view using open gl es. I want to display contacts or gallery images in 3D carousel view using the created application. How to approach? How an I use one application as library for another application?
You're probably talking about making another application use your app. This cannot be possible, since you can't really change someone else's application. But you can make your own application that will view Contacts or Gallery data using your carousel view, since contact and media data are accessible using Content Providers. Hope this helps.
Either use code for your carousel as library in current app and access contacts or gallery directly from it or use intents as someone said to provide content to 3D carousel (probably trough some adapter)
Related
I'm currently working on what you could call a pet project, in which I need to display the camera. I've gotten that to work so far, but the idea behind it requires the view of the camera to not take up the entire screen. How can I "limit" or attach it to some other object/view that I can limit in size so as that I don't take up the entire screen, and thus I can add text/buttons/etc that the user can interact with while at the same time viewing the camera content?
You'll have to use some different native APIs to get a view that can show the camera feed. This is a different approach from using something like the Media Plugin which shows the built-in platform cameras. For example, you would use AVCaptureSession for iOS. Luckily, we have a doc on doing just what you want here. The example code is quite large so I won't paste here. There is a GitHub project you can explore for the full source code here.
The basic idea is to create a renderer for the platform APIs that give you access to camera data that can be embedded in a view.
iOS:
AVCaptureSession, AVCaptureDeviceInput and AVCaptureStillImageOutput
Android:
SurfaceTexture and TextureView help
I am new to android and I am working on a project that contains something similar to a news feed. My plan is to get information from a database display it on a card. I just discovered fragments and thought they would be a great way to do this. My question is can I design a fragment as a default card and change info on the general card to the info I get from the database and add the card on to the screen while the app is running?
Yes you can.
Fragment is a lightweight activity, it's held and hosted by activity and manage it's own UI and interaction. According to your description, the card seems very simple, so my suggestion is using a View.
I am creating a custom control. I need to open gallery from it and use the selected image for some purpose. This is a huge application so please dont tell me about intents and onActivityResult as I need to do it from widget and not App, activity, fragment etc
After lot of searching came to the conclusion that it is not possible at all.
I'm developing a photo manipulation app and am wondering if there is a way to have something come up for my app after the user takes an image of a picture (by somehow changing the camera app). Another example of something like what I want to do would be something like changing the calender app to also put in a location and use GPS to find directions to that location. Is there a way to do this? If so how?
As I understand from your question, you want your app to appear when the user takes a photo using the native camera app. Although that's possible (not saying it's easy), a better solution would be to launch the camera intent from YOUR app (or display what the camera sees in a SurfaceView), and use it as you wish. You wouldn't want to change the default behavior of built-in apps in the system, and users will thank you for not doing so.
There are countless tutorials out there that teaches you how to make use of built-in apps' functionalities for your own. As an example, here's an SO thread that teaches how to use the built-in camera to take a picture, and use the resulting data in your app.
If you want direction of a location, you need to use Google Maps API (or similar), not GPS. To put stuff into Google Calendar, look at their API as well.
I don't know if you can change the app itself, but you can definitely integrate your application with another android applications. There are several examples that can show you how to acess the camera app to take a picture and return this picture to your app for manipulation, or accessing a picture from your gallery (take a look in Intent class, and you can use it with startActivityonResult, and on onActivityResult, inside your activity, you manipulate the picture).
Hope that helps
I was wondering how to get to add some custom designed animated GIF emoticons to native applications in android like SMS/EMAIL and to other applications like Whatsapp?
I know how to display an animated Gif in Android using AnimationDrawable object. I just want to know if it's possible to do the following:
1) Add custom animated images to Whatsapp application.
2) Add custom animated images to SMS/EMAIL in some easy way?
Just give me hints. I have been looking everywhere.
Thanks in advance.
Unless the application explicitly provides hooks for you to extend its configuration with particular animations/images there is no way to add any content to the existing application APKs. As far as I can tell the whatsapp application and the default email and sms apps do not provide extension hooks, so you won't be able to do this.