Android Imageview to set image permanently - android-imageview

In my project i have an imageview to set profile picture either from camera or gallery, but my problem was when am set images it will be showed in imageview but while close and open my application means it will be removed how to set images permanently... Thanks in Advance..

You may use SharedPrefrences to store values permanently.Check out this link
http://developer.android.com/training/basics/data-storage/shared-preferences.html

Related

codename one how to place component on an image viewer that capture camera?

I have a GUI Builder created form in codename one, how can i open the camera in a resizable view at the show() of the form and place container like text area or anything else on it?
I saw the camera demo but i don't understand it very well because on the simulator it open a file picker.
My purpose is to create a form with a camera resizable capture when you have two labels and you can also write or paint on your photo used in background, I do this only for hobby and fun, i do what i can, Any advice is well accepted, thank you for the attenction
You can now place a component on top of a camera view with a new cn1lib: https://github.com/codenameone/CameraKitCodenameOne
Original answer below:
I'm assuming you mean overlay on a live camera view. While this is possible it's not supported at this time in the Java API layer.
If you mean grabbing a photo and setting it as a background for the form for overlay you can create an image with the result of the Capture API and use setBgImage() to set that image to the background of a component or form.

Apple Watch Images not showing on simulator

I am working with the apple watch and I would like to just simply set an image in the storyboard. It is a png file and I set it in the storyboard, but it doesn't show up in the simulator. I have tried all of the aspect and fitting options. I believe the view is called a wkinterfaceimage. I have also tried adding programmatically and that does not show up either. Hidden is not checked. Any ideas of what I might be missing?
If you have your image included as a file in your app's bundle select the file, choose File Inspector and add the target under Target Membership:

App Inventor : background

I recently installed a background for my project on app inventor, and then after I tried running the background behind the text in the emulator. On my designer screen I have put the background image behind the text which is the normal condition?
it's hard to understand, what you are saying... but try to set Screen1.BackgroundColor to none
rephrasing your question might help
yes, you can set the screen background from the designer view by uploading an image at BackgroundImage textfield and if there are many uploaded image, choose the right one.
any component added will be displayed above the image !
with blocks you can do :
when screen1.Initialise
do:
set screen1.BackgroundImage to |your-uploaded-image|

Multiple ImageView's that allow for deletion

I am currently trying to add multiple imageviews like in this picture (http://i.imgur.com/DEkoBD0.png) to a view controller. I would also like the option to be able to delete specific images, and also have the whole view controller in a scrollview incase the user wants to add numerous images.
So far I have one imageview that can be set to either a picture from the camera or from the photo library, what I would like is when a user add's a image, another option displays next to it to upload another image such as the picture in the link I provided.
I am currently using the Xcode 5 with storyboards and developing for iOS 7 also.
Any help is appreciated.
Thanks.
Simply use a UICollectionView !
Reference : https://developer.apple.com/library/ios/documentation/UIKit/Reference/UICollectionView_class/Reference/Reference.html
It will allow you to add functionalities like delete or add for example (w/ ScrollView ;) )!

Can we access Retake image of Default camera

I am new in iOS. I want to know if it is possible to access the retake image button of UIImagePickerController. If so, how do you call a function on that button?
My problem is that I am using UIImagePickerController to take an image from the camera and save the image in the documents directory. I have done my task using a UIImageView and UIAlertView on an other view, but the problem is that I want to save the image before retake image button pressed in camera. What I have to do to achieve this?
You can't do what you want using UIImagePickerController. Instead, use AVFoundation framework for capturing still images in the way you want. Please, check this Apple's sample project http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html.