generating captcha - android

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?

Related

add Information(text or csv) to image in 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

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.

Android. Which is better XML or Code to load images for 2 languages

I have an application that is suppose to be built in English and Arabic. so i have drawable-en and drawable-ar.
My question is, is it better to set the images in XML, because android will figure out which language is selected and to show the appropriate image. Or i do this through code and check for language and set its image. I don't want the application to crash with memory error etc.
Method 1: android:background="#drawable/background2"
Method 2:
//here some cache is put into work.
ImageResourceHandler.RenderImageBackgroundForView(getResources(), findViewById(R.id.imageView), R.drawable.activitybackground);
//this is direct image set to backgroup
((Button) findViewById(R.id.languageButton)).setBackgroundResource(R.drawable.langeng);
Thanks in advance.
because android will figure out which language is selected and to
show the appropriate image
You solved your own question ;) this is the Android way of working.
The other way is also possible but less code is easier to maintain

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

I need to display an image from server on a button

I need to display an image from server on a button.
Could anyone help me please.
Load the image from web and use it as background of Button. Or you can use ImageButton and use the loaded image as image resource. Here is an example to load image from web How to load an ImageView by URL in Android?
This example could help you:
http://en.androidwiki.com/wiki/Loading_images_from_a_remote_server
You just need to delete the random file names and change the button ids.

Categories

Resources