Nguyen Hoai Thanh
Nguyen Hoai Thanh

Reputation: 359

Android Lock Pattern Errors

I'm trying to use Android Lock Pattern

But when I import the library into Eclipse, it got these errors :

IContentView cannot be resolved to a type R cannot be resolved to a variable
Error parsing XML: not well-formed (invalid token )

Code get errors : implements IContentView

public class LockPatternActivity extends Activity implements IContentView {

  private static final String CLASSNAME = LockPatternActivity.class.getName();

/**
 * Use this action to create new pattern. You can provide an
 * {@link IEncrypter} with
 * {@link Security#setEncrypterClass(android.content.Context, Class)} to
 * improve security.
 * <p/>
 * If the user created a pattern, {@link Activity#RESULT_OK} returns with
 * the pattern ({@link #EXTRA_PATTERN}). Otherwise
 * {@link Activity#RESULT_CANCELED} returns.
 * 
 * @see #EXTRA_PENDING_INTENT_OK
 * @see #EXTRA_PENDING_INTENT_CANCELLED
 * @since v2.4 beta

Anyone used to facing this problem? How to solve that? Thanks a lot.

Upvotes: 2

Views: 949

Answers (3)

Ahmed Ghonim
Ahmed Ghonim

Reputation: 4770

You might want to try this library.

Upvotes: 0

Leonardo Costa
Leonardo Costa

Reputation: 1014

In my case I caught the library which the link of demo app direct us. The library avaliable at site have problems. But the library found in link demo app link it's working. Using this library it's possible implement the guidelines site and compile without problems. See the options menu

Export source code

at the demo app to get the library.

Upvotes: 0

Akshay Abhyankar
Akshay Abhyankar

Reputation: 599

Try following..

  • Right Click library project >> Build Path >> Configure Build Path >> Android >> Select latest android api >> Apply >> OK

  • Clean the library project after importing. Project >> clean >> select your library project of lock pattern

Upvotes: 1

Related Questions