droidchef / android-lockpattern

Automatically exported from code.google.com/p/android-lockpattern
Apache License 2.0
0 stars 0 forks source link

Cannot get this working in Android Studio #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.import module into android studio

What is the expected output? What do you see instead?
I expect to see modules to import however none are present. My guess is because 
it's missing a build.gradle file

What version of the product are you using? On what operating system?
version 2.8 on Windows 8

Please provide any additional information below.

Original issue reported on code.google.com by joshdo...@gmail.com on 7 Jul 2013 at 1:09

GoogleCodeExporter commented 9 years ago
Hi Josh,

We love Android Studio too. But currently it's still in beta mode (Early Access 
Preview). We'll port the project to AS soon when it comes to major releases. 
Hope you could have waited  :-)

Sincerely,
Hai

Original comment by haibison...@gmail.com on 7 Jul 2013 at 1:19

GoogleCodeExporter commented 9 years ago
Thanks for the quick response. I understand wanting to wait to port it over but 
every Android Dev I know is using Android Studio :). Don't forget that most 
google products stay in beta for a very long time:)

Original comment by joshdo...@gmail.com on 7 Jul 2013 at 1:33

GoogleCodeExporter commented 9 years ago
I know. "Beta" with Google could be... a year or more  :-(  We've got this 
issue for other Android project too. In this case we'll wait for votes too.

Original comment by haibison...@gmail.com on 7 Jul 2013 at 1:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'd tried to make this lib work with Android Studio. But after made the import, 
and being able to use objetcs, etc... the project just won't compile. 

Errors:

Gradle: error: package group.pals.android.lib.ui.lockpattern does not exist
Gradle: error: cannot find symbol variable LockPatternActivity
Gradle: error: cannot find symbol class LockPatternActivity
Gradle: error: cannot find symbol variable LockPatternActivity

Original comment by adrianqu...@gmail.com on 9 Sep 2013 at 9:29

GoogleCodeExporter commented 9 years ago
error: Error: No resource found that matches the given name (at 'theme' with 
value '@style/Alp.Theme.Dark').

Original comment by navratta...@gmail.com on 3 Oct 2013 at 1:31

GoogleCodeExporter commented 9 years ago
The solution is to use the new aar format.
The easy way to do it is to use gradle with the conf file (see attachement)

Command line : 
> gradle clean build uploadArchives

Original comment by jmori...@gmail.com on 30 Oct 2013 at 2:54

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by haibison...@gmail.com on 16 Jan 2014 at 3:00

GoogleCodeExporter commented 9 years ago
Has anyone been able to get this to work in Android Studio ?  Haven't had any 
luck with the attached build.gradle solution  

Original comment by tony.fa...@gmail.com on 31 Jan 2014 at 1:03

GoogleCodeExporter commented 9 years ago
Hello,

I was able to get this compile with my project on android studio and able to 
invoke LockPatternActivity.java. Here are the steps:

1. File -> New module -> AndoridLibrary
   Uncheck 'Create activity' and in the 'Package name' enter 'com.haibison.android.lockpattern'. Enter 'Module name' as LockPattern
   -> Finish
2. Copy code/src/com/haibison/android/* to 
LockPattern/src/main/java/com/haibison/android
3. Copy code/res/* to LockPattern/src/main/res
4. Copy code/AndoridManifest.xml to LockPattern/src/main/

Between, a huge thank you very much to authors of this library. Saves a lot of 
work.

Regards,
Adarsha HD

Original comment by adarsh...@gmail.com on 19 Mar 2014 at 12:30

GoogleCodeExporter commented 9 years ago
Thanks Adarsha. I'm glad you find it useful.

Have a nice day  :-)

Original comment by haibison...@gmail.com on 23 Mar 2014 at 5:43

GoogleCodeExporter commented 9 years ago
Cannot find class ;(

I have follow all the step but it didn't work

Original comment by booker0108@gmail.com on 5 Oct 2014 at 8:26

GoogleCodeExporter commented 9 years ago
Hi,
I was able to add this library to Android Studio 0.8.9. Even I can compile it, 
build it, but when I try to run it, I got this errors:

error: cannot find symbol class LockPatternActivity
error: cannot find symbol variable LockPatternActivity
error: cannot find symbol class LockPatternActivity

any help ? 

Original comment by coud...@gmail.com on 20 Oct 2014 at 8:14

GoogleCodeExporter commented 9 years ago
can you convert this library to android studio ?
this is the only pattern lock lib that i able find 

Original comment by y2kshe...@gmail.com on 7 Nov 2014 at 8:22

GoogleCodeExporter commented 9 years ago
I've already checked out Lollipop source. In the next months if I have free 
time I'll update the library to latest code in Lollipop, and also add support 
for Android Studio.

Original comment by haibison...@gmail.com on 7 Nov 2014 at 8:31

GoogleCodeExporter commented 9 years ago
thanks :)

Original comment by y2kshe...@gmail.com on 8 Nov 2014 at 7:11

GoogleCodeExporter commented 9 years ago
i found a way to include this library in my android studio project. 
1.) Import this library just like any other eclipse project (File > Import 
Project) That will generate gradle files.
2.)now open your project and import this newly converted project just like you 
import any other android studio module 

ohh remember to turn off Proguard in the library build.gradle file(change 
"runProguard true "to "runProguard false"

happy coding :)

Original comment by y2kshe...@gmail.com on 9 Nov 2014 at 8:13

GoogleCodeExporter commented 9 years ago
where can i get the source files of the demo app that's in play store?
( 
https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpatt
ern.demo )

i know this question dose not belong to the current issue.but i didn't know 
where to post it . soooo sorry about this :(

Original comment by y2kshe...@gmail.com on 12 Nov 2014 at 10:23

GoogleCodeExporter commented 9 years ago
We're very sorry. The demo app contains some private resources so we cannot 
publish its source code.

I hope the Quick Use could help you start. If you face other issues, please 
feel free to file them here.

https://code.google.com/p/android-lockpattern/wiki/QuickUse

Original comment by haibison...@gmail.com on 12 Nov 2014 at 11:19

GoogleCodeExporter commented 9 years ago
please update this library for android studio

Original comment by stephen....@gmail.com on 13 Jan 2015 at 5:26

GoogleCodeExporter commented 9 years ago
stephen....@gmail.com,

I really want to update this library to support Android Studio and also update 
its source to Lollipop. Unfortunately I don't have time at this moment.

I guess I can start working on those updates from middle of February.

I'm sorry  :-(

Original comment by haibison...@gmail.com on 13 Jan 2015 at 5:34

GoogleCodeExporter commented 9 years ago
We've released v3.2 with partial support for Android Studio.

Original comment by haibison...@gmail.com on 19 Jan 2015 at 12:40

GoogleCodeExporter commented 9 years ago
I have small doubt in this example i am working in eclipse ,i am very confusing 
what i have to use

1. Is there any requirement to add this library into my application.

(or)

2.I have to create my own application with the same code.i have seen QuickView 
in that you are defined LockPatternActivity,where i can add this class in my 
android application (or) In the library.And i had seen the LockScreenTest 
Application in this application they are not added lock pattern library

please tell me what can i do to use this library in my eclipse  with simple 
steps

Original comment by hanumanc...@gmail.com on 21 Jan 2015 at 6:15

GoogleCodeExporter commented 9 years ago
hanumanc...@gmail.com,

Hi,

Quick Use will be always the answer(s) for your questions. That's why we... 
wrote Quick Use. The folder LockPatternViewTest is not mentioned anywhere in 
wiki pages, so you can ignore it. For your information, it's used to test 
*original code* (from AOSP) on different APIs.

Next time please file new issue - of course I'll try to help you there - as 
your questions are not related to this issue. (People will get notified when 
you make new post here.)

Sincerely,
Hai

Original comment by haibison...@gmail.com on 21 Jan 2015 at 6:36

GoogleCodeExporter commented 9 years ago
Hi Haibison, can you please tell me how to import this library with Android 
Studio?

Original comment by mantovan...@gmail.com on 3 Feb 2015 at 5:02

GoogleCodeExporter commented 9 years ago
mantovan...@gmail.com,

I'm very sorry, currently I don't have time. My comment #22 mentioned of 
"partial support for Android Studio", which meant:

- There is source tree for Android Studio for latest version 3.2. You can find 
the source via option "Export source code" in demo app, or via this link: 
https://code.google.com/p/android-lockpattern/source/browse/source-android-studi
o/

- Documentation is not available yet (like QuickUse, but just for Eclipse). 
However I hope after you import the source tree into Android Studio, you can 
start with QuickUse. I think XML and Java integration is same for both IDEs 
(Eclipse and Android Studio).

I'm sorry to the other people who starred this issue too. I didn't explain this 
better in comment #22.

Sincerely,
Hai

Original comment by haibison...@gmail.com on 4 Feb 2015 at 6:58

GoogleCodeExporter commented 9 years ago
Thanks Habison, i'll give it a try!!

Original comment by mantovan...@gmail.com on 7 Feb 2015 at 2:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hey Habison,

By any chance, can I use this library in Android Studio or will I have to shift 
to eclipse ?

Original comment by harsh.po...@flipkart.com on 24 Feb 2015 at 10:55

GoogleCodeExporter commented 9 years ago
@harsh.po...@flipkart.com,

Please see my comment #26. I'm sorry that I can't help much with this...

Original comment by haibison...@gmail.com on 24 Feb 2015 at 11:08