add Information(text or csv) to image in android - android

I am trying to add few things like names, places to images. The idea is to have them sorted according to name or place when the users uses it.
I have the code working to take pictures and save it to the Phone's memory.
How can i add this Tag of information in my code?
Or even how can i add metadata to an image??

Off the top of my head, what you could do is create a database and have in three fields:
Names
Places
Image path
Use a GridView to show the images in your app(and load them images from the database). On GridView ItemClick you could prompt the user to add in tags into the image, later on you could use these fields to sort the image in you application.
Hope this helps.

I found what i was looking for we can add extra information to an image using ExifInterface. Thanks

Related

ListView, storage 2 columns [android]

I need an advice about ListView.
A give you an example:
Assume that i have a map. If i'll touch some place on it i'll get an information about that place and then, on screen, a dialog fragment will appear. In this dialog i can write a name of place, which i touched. The names should be saved into ListView but if i'll click on some of them i want to get information.
Can some of you tell me how i should do this? Is it possible to save that information in Shared Preferences?
Maybe you would get it work with SharedPref. but it isn't a nice way to that. I think the best way is to create an Android SQL-DataBase. Like in every other Database you could use one column for the name, one for the information text, one for coordinates and so on (that's just an example). The data will stay, also if your app is closed (like SharedPref).

Multiple images in edit text Android

I am trying to replicate the text message application of Android Application, where the requirement is to send multiple images in one message.
I am able to put one image in edit text field. However, I am not sure how we can put multiple images in edit text?
If it is not possible, what is the another way to do it?
Someone has mentioned in following link that need to use relative layout with gallery and textview.
How do I insert multiple image in Edit Text in android
Can anyone help me on this?
Thank you in advance.
You can use a
LayerDrawable
It is a Drawable that manages an array of other Drawables. These are drawn in array order, so the element with the largest index will be drawn on top.

How to display a lot of text lines

I am working on an Android app for tourists where I show a list of all rooms in my city for accomodation. I have approximately 500 lines of text, about 5 lines for each room (adress, phone number, contact person, email adress and stars rating). I want to put all that text in one activity so you can scroll and read that text.
Should I use TextView or something else? Should I save that whole text in res/strings.xml?
There is no problem with using TextViewsjust do not forgot about using ScrollView for your layout so you can scroll your TextViews.
You could use a WebView and display the text in HTML format.
I did it for big documents and used the assets folder to store and load the document.
Internationalization can be kept using following technique:
What's the best practice to deploy localized documents in Android app?

Android : taking pictures and text from a website and putting them in a ListView

I have a very precise question:
I want to make an android application that can access this website http://www.cineklik.com/Showing-Now-Movies.aspx and then take the pictures of every movie in the Showing Now section and the title of this movie and put them both in a ListView (image on left and text on right or middle like in this example : http://blog.sptechnolab.com/2011/02/01/android/android-custom-listview-items-and-adapters/).
My main problem is that I don't know how to read data from this page because its source is very complex, so I need help for this particular issue most, but I would appreciate help on anything I can get !
Thanks.
in order to get a website's data you'll have to use an HTTPGet (if there is no API from that site). After that you'd be able to parse the response and use the data

generating captcha

Does anyone know if there is any library available for generating captcha which is possible to implement in android application so the captcha appears in the activity?
Thank you.
USe the open source JCaptcha from http://jcaptcha.sourceforge.net/
yeah it is simple to implement the technique of capcha in android or in any other plateform . what you have to do is to put some images into the drawable , put an ImageView right above you EditView and linked those images with an Array or any collection in which you saved the correct text of the images ... then on button click get the ID for the random image and verify it with the saved collection of text .
Have you looked at recaptcha?

Categories

Resources