Giter Site home page Giter Site logo

parseui-android's Introduction

Parse UI for Android

Join The Conversation Backers on Open Collective Sponsors on Open Collective Twitter Follow

This project contains two libraries, login and widget.

The login library is used for building login and signup flows with the Parse Android SDK. You can easily configure the look and feel of the login screens by either specifying XML configurations or constructing an Intent in code.

The widget library provides several useful UI widgets which integrate with Parse SDK seamlessly.

Dependency

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

Then, add the library to your project build.gradle

dependencies {
    // for the widget dependency
    implementation "com.github.parse-community.ParseUI-Android:widget:latest.version.here"
    // for the login dependency
    implementation "com.github.parse-community.ParseUI-Android:login:latest.version.here"
}

Usage

Please check the tutorial in our wiki

Documentation

For complete details about this library project, please see our documentation on the Parse website.

How Do I Contribute?

We want to make contributing to this project as easy and transparent as possible. Please refer to the Contribution Guidelines.

License

Copyright (c) 2015-present, Parse, LLC.
All rights reserved.

This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.

As of April 5, 2017, Parse, LLC has transferred this code to the parse-community organization, and will no longer be contributing to or distributing this code.

parseui-android's People

Contributors

acinader avatar afzalive avatar grantland avatar hramos avatar jawnnypoo avatar joshzngf avatar lacker avatar liron-k avatar lukas1994 avatar netizen01 avatar nlutsenko avatar ricardo1980 avatar rogerhu avatar stanleyw avatar tomwfox avatar torfinnberset avatar wangmengyan95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

parseui-android's Issues

Intent data is not passed along to target activity

I found that in ParseLoginDispatchActivity we drop the intent args passed by requestor. I breaks some workflows where the requestor has set args for profile activity to show user profile by arg (say "email") and then because of the loginDispatchActivity the args are lost.

Facebook login error

When i try to login to facebook, it returns a facebook error screen, that says:

Sorry, something went wrong.

We're working on it and we'll get it fixed as soon sa we can.

FormatException on Android in Unity SDK

PlatformHooks.HttpRequestUnity.getStatusCode() fails on Nexus 7 (2013) after call to ParseUser.LogInAsync(username, password), although seems to work fine in Editor.

FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at Parse.PlatformHooks+HttpRequestUnity.getStatusCode (UnityEngine.WWW www) [0x00000] in <filename unknown>:0 
  at Parse.PlatformHooks+HttpRequestUnity+<>c__DisplayClass40+<>c__DisplayClass46.<ExecuteAsync>b__3a (UnityEngine.WWW www) [0x00000] in <filename unknown>:0 
  at Parse.PlatformHooks+<>c__DisplayClass24.<RegisterNetworkRequest>b__23 () [0x00000] in <filename unknown>:0 
  at Parse.PlatformHooks+<RunDispatcher>d__2e.MoveNext () [0x00000] in <filename unknown>:0 
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Parse.<RunDispatcher>d__2e:MoveNext()

Unity 5.1.2
Windows 8.1 Pro

Importing Parse-UI

Hi.

I'm trying to import ParseUI as explained in this repository but I keep getting the following error:

"Error:(5, 0) Cannot get property 'facebookSDK' on extra properties extension as it does not exist Open File"

any idea? TNX

Add .project file

All the projects need a .project file so they can be easily imported into Eclipse.

How to logout from Facebook?

Hi

Using ParseUI eases the way to log on Parse, FB or Twitter.

But ...

While it's obvious how to logout from Parse (PFUser.logout()), it's not so straightforward how to apply the same process on FB.
When I logout, we go back to the login activity.
But if I click on the "Log in with Facebook" button, my app gives me the access without any credential and stay locked to the previous logged out user.

Do you any tips to share in order to implement a FB logout ?

Thanks for your help.

Said

ParseLoginActivity Error

Hi,

I am trying to use the ParseLoginUI library and I get an error in the ParseLoginActivity.java file on line 99 at this code: getSupportFragmentManager().beginTransaction().add(fragmentContainer,
ParseLoginFragment.newInstance(configOptions)).commit();

The error basically implies that add cannot take arguments of the form add(int, ParseLoginFragment) and needs arguments of the form add(int, Fragment). I am not sure if I made any mistakes when importing the libraries or whether this is a legitimate error.

Thanks!

Performing stop of activity that is not resumed

Sometimes I would experience this issue:

ActivityThread﹕ Performing stop of activity that is not resumed: {SampleDispatchActivity}
java.lang.RuntimeException: Performing stop of activity that is not resumed: {SampleDispatchActivity}
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3133)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3220)
at android.app.ActivityThread.access$1100(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1223)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

I am using Nexus 5 With Android 4.4.4. Would it be addressed?

How can I remove NAME field in signup UI?

Hello!

I customized the signup user interface (com_parse_ui_parse_signup_form.xml) and I removed
"android:id="@+id/signup_name_input" because I don't want to save user's name. We already save username, email and password, so (long) name is useless in my system.

It seems it's supported by code as seen here in ParseSignupFragment.java:

if (nameField != null) {
  name = nameField.getText().toString();
}

// Set additional custom fields only if the user filled it out
if (name.length() != 0) {
user.put(USER_OBJECT_NAME_FIELD, name);
}

But my app crashes with this message:

Process: com.ricardoruizlopez.sharewifi, PID: 12112
java.lang.NoSuchFieldError: No static field signup_name_input of type I in class Lcom/parse/ui/R$id; or its superclasses (declaration of 'com.parse.ui.R$id' appears in /data/app/com.ricardoruizlopez.sharewifi-1/base.apk)
        at com.parse.ui.ParseSignupFragment.onCreateView(ParseSignupFragment.java:93)

It seems this line:
nameField = (EditText) v.findViewById(R.id.signup_name_input);
from file:
ParseSignupFragment.java
is failing.
But, why? if that EditText is not available, I guess that value should be null.

Any idea?

Error non-zero Java

Hello friends!

I'm having the following debug error:

Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 2

I followed the manual import as described. What can I do?

IllegalArgumentException when opening new user

I've seen that a few other people online had this problem, but I didn't find any solutions. Using the UI library, the ParseSignupFragment class causes an error (IllegalArgumentException) on line 174, when it first initializes the ParseUser class, and it claims the class was not registered as a ParseObject subclass. Yes, this sounds ridiculous, and I must've changed something because I was able to signup one user before I started getting this error, but there it is. I tried changing the project settings, but to no avail.

ParseQueryAdapter for RecyclerView

When parsequeryadapter will be compatible with recyclerview as of now it is only compatible with listview. Official android documentation suggests that we migrate to recyclerview and for some lollipop APIs to work we need recyclerview.

Inconsistency in permissions

My app uses 2 permissions, public_profile and email.

I set up them using:

<string-array name="my_facebook_permissions" translatable="false">
        <item>public_profile</item>
        <item>email</item>
    </string-array>

and

<meta-data
                android:name="com.parse.ui.ParseLoginActivity.FACEBOOK_LOGIN_PERMISSIONS"
                android:resource="@array/my_facebook_permissions" />

I see the native and web dialog properly, asking the user these 2 permissions. I also see in the debugger that those 2 permissions are passed properly to facebook.

This is what I see in the debugger inside FacebookAuthentificationProvider, authenticateAsync, accessToken (it seems right, well, I see contact_email, but it doesn't matter)

captura de pantalla 2015-08-03 a las 13 28 01

But if I continue with the debugging... once in my app, after the login, in onActivityResult, if I call
AccessToken accessToken=AccessToken.getCurrentAccessToken();

I see that that access token doesn't have granted permissions or rejected permissions (they are empty), but if I use GraphRequest I can get the user email with String emailFromFacebook = object.optString("email"); without problems.

captura de pantalla 2015-08-03 a las 13 14 49

It doesn't make any sense that those permission variables have different values in those places.

BTW I'm using ParseUI and facebook sdk version 4.0.1

Apart from that, if I reject the email permission in the login dialog, I see inside FacebookAuthentificationProvider that has been rejected by the user:

captura de pantalla 2015-08-03 a las 13 45 01

However, in my app code, in onActivityResult, I see exactly the same than the other case... just nothing, no granted or declined permissions, so accessToken.getDeclinedPermissions().contains("email") is completely useless and when I try to get the user email like before, I receive null (probably because the app doesn't have permission).

captura de pantalla 2015-08-03 a las 14 13 08

I guess this behavior is not normal. BTW I'm supposing that accesstoken.permissions contains granted permissions and accesToken.declinedPermissions contains declined permissions, is that right?

Thanks in advance.

Question about installing

Hello!
I'm trying to use this lib but I have a question regarding the installation.
I see that the point 2 says: "Import this repository's project with Android Studio (File > Import Project > ParseUI-Android folder). The project has Maven dependencies on the Facebook SDK and the Bolts framework. Android Studio automatically resolves these via Gradle."
It says that facebook and bolts libreries are installed automatically. What I don't understand is, what about the Parse library? When is installed? Is it embedded inside ParseUI library?
Thanks.

android.content.res.Resources$NotFoundException

Some devices generate this error:

android.content.res.Resources$NotFoundException: Resource ID #0x7f0202e8 at android.content.res.Resources.getValue(Resources.java:2333) at android.content.res.Resources.startRC(Resources.java:1059) at android.app.ActivityThread$mRunnable.run(ActivityThread.java:2476) at java.lang.Thread.run(Thread.java:818)

After camera finishes taking a picture, the image cropping activity doesn't start up. I did some checking on bitmap and it looks like inside this function:
private Bitmap getBitmap(String path);
generates an exception.
Even I put setResult(RESULT_CANCELED); finish(); to safely exit, the main activity was restarted.

ParseUser is not created after a Facebook login

Hi,

I am compiling the ParseLoginSampleBasic and one thing does not work. When I login using Facebook,The app requests for my Facebook app, successfully logs me in, but doesn't create a ParseUser as a result.
Is that the expected behavior?

Any fix?

Thanks
Stephane

Logo does not change to custom logo when relative layout is used.

I wanted to position the include fragment for the app logo at the top of the form, and the login details at the bottom, so I created a custom com_parse_ui_parse_login_fragment.xml, as stated in the docs, as follows:

 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/RelativeLayout1"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:background="@drawable/background"
     android:paddingBottom="@dimen/com_parse_ui_vertical_margin"
     android:paddingLeft="@dimen/com_parse_ui_horizontal_margin"
     android:paddingRight="@dimen/com_parse_ui_horizontal_margin"
     android:paddingTop="@dimen/com_parse_ui_vertical_margin" >

<include
    android:id="@+id/include1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:layout_alignParentTop="true"
    layout="@layout/com_parse_ui_parse_login_app_logo" />

<LinearLayout
    android:id="@+id/LinearLayout1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_below="@+id/include1"
    android:gravity="bottom"
    android:orientation="vertical" >

    <include layout="@layout/com_parse_ui_parse_login_form" />

    <include layout="@layout/com_parse_ui_parse_login_third_party_section" />
</LinearLayout>

However this doesn't seem to work, as only the default "Parse" shows when i run the app, If i leave it as the default LinearLayout, then the app logo displays in the top include, as expected. Anyway around this? I've subbed in my app logo for the time being in place of the parse.com one, but would be nice to have different layouts work for the login activity.

readme.md "running sample apps"

good as far as it goes but it really needs the following added that covers Parse Dashboard....

When you have set up the Facebook app over at "developers.facebook.com/apps" in the facebook console , you will have access to the following:

AppId, App Secret ( 2 values from FB that need to be plugged into Parse.com dashboard as follows:

go to Parse dashboard for the parse App

go to settings / authentication / allow FB auth , mark to YES

go to settings / authentication / Facebook Applications and fill in the Appid , Secret values and enter.

Until you do this stuff you just get exception: com.parse.ParseException: Unacceptable Facebook application id.

Activity com.parse.ui.ParseLoginActivity has leaked window

This error appears when I use the provided facebook login.
This doesn't crash the app.

07-23 00:46:24.625 31886-31886/{myapp} E/WindowManager﹕ Activity com.parse.ui.ParseLoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42431c08 V.E..... R......D 0,0-332,230} that was originally added here
android.view.WindowLeaked: Activity com.parse.ui.ParseLoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42431c08 V.E..... R......D 0,0-332,230} that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java:345)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:239)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:281)
at android.app.ProgressDialog.show(ProgressDialog.java:116)
at android.app.ProgressDialog.show(ProgressDialog.java:104)
at com.parse.ui.ParseLoginActivity.onLoadingStart(ParseLoginActivity.java:177)
at com.parse.ui.ParseLoginFragmentBase.loadingStart(ParseLoginFragmentBase.java:56)
at com.parse.ui.ParseLoginFragment$4.onClick(ParseLoginFragment.java:244)
at android.view.View.performClick(View.java:4240)
at android.view.View$PerformClick.run(View.java:17721)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)

Hide/Remove the confirmation password field

Ask users for password confirmation in mobile app maybe consider a anti-pattern for some designers. I am one of them. My suggestion is create some way to hide or remove the confirmation password field in the signup form. In this case, with no confirmation password, must be desirable a switch beside the password field, to show the password as plain text.

Step 2 has an issue.

I cannot use git submodule update --init --recursive to get the files into the facebook-sdk, so I download https://developers.facebook.com/resources/facebook-android-sdk-current.zip from facebook official website. I think this should be fix or explain more detail.

Parse Login Facebook Failed after logout

I am able to login with facebook account and do authentications at the first time..
but when I click logout and click login with facebook again.. the message "Facebook login failed" keeps prompting.. I tried uninstall and reinstall the app but it doesn't work..

I have been looking at the Parse library class but cant figure out whats going wrong ..
Please help!!

DispatchActivity gets run after the "back" button is hit in landscape mode

In my project the ParseLoginDispatchActivity starts as the launcher activity and launches MainActivity if the user is logged in. If I press the "back" button in portrait mode, MainActivity will just run pause() and stop(), and everything if fine up to this point.

However, if I switch to landscape mode and hit "back", somehow the ParseLoginDispatchActivity will run again and the getTargetClass() method will be called. The result is that another MainActivity will be created after the previous MainActivity gets destroyed. Therefore, I need to press "back" again to exit MainActivity.

Anybody knows why this is happening?

Add "remember me"

it would be great to have checkbox for "remembering user" just keeping the login and pass for us ( no need to rewrite every time)

Add specific listener for signup event

My suggestion is create a specific listener to propagate signup events. In the current implementation, the signup event is propagated through the login listener, so, you cannot distinguish from signup and login event. In my case, I need special processing when the user signup to my application. If a specific listener is created to propagate signup events, users of the LoginUI API can receive this event in a specific channel and react as they want.

Importing project into android studio

Hi I'm having some problems importing the whole folder into android studio.

When I tried to import the ParseUI-Android folder as a module, this is what I see.

cropped

I cannot seem to import the ParseLoginUI folder, and the stuff in the root folder, and therefore all the essential libraries I need.

Any help here on how to import the project correctly? Thanks!

Twitter login not working?

Is the twitter login not working for anyone else? Im using a ParseLoginDispatchActivity to protect an Activity behind a sign-up wall if theres no logged in user.

I have TWITTER_LOGIN_ENABLED set to true in my Manifest via:

<meta-data
                android:name="com.parse.ui.ParseLoginActivity.TWITTER_LOGIN_ENABLED"
                android:value="true"/>

Upon the sign-up activity being launched and then clicking on the "Log in with Twitter" button, I get a "Twitter login failed" Toast message, and after a few tries I get:

Leak found
    java.lang.IllegalStateException: AndroidHttpClient created and never closed
            at android.net.http.AndroidHttpClient.<init>(AndroidHttpClient.java:156)

Anyone else having this issue? Any ideas on a solution?

Custom ParseUser example needed

Hi,

could you please provide an example on how to extend ParseSignupFragment for adding a custom user, for instance, public class CustomUser extends ParseUser, to the server.

Thanks!

Using ParseLoginUI 1.10.1 With latest Facebook SDK 4.6.0

Hi,

Trying to implement the latest Parse SDK with the ParseLoginUI and Facebook SDK V 4.6.0 but can't do it.

This is the furthest I've got. I can get the ParseLoginActivity to display but I'm crashing when I select the "LoginWithFacebook" button.

Here are my different build.gradle files.

ParseUI-Login build.grade
I had to increase the minSdkVersion to 15 so there was no longer a conflict between the latest FacebookSDK.
I also had to increase the support library version as before it complained about not being able to depend on a .aar file in a library module.

apply plugin: 'android-library'

dependencies {
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.parse:parse-android:1.10.1'

    provided 'com.facebook.android:facebook-android-sdk:4.6.0'
    provided files("$rootProject.projectDir/ParseUI-Login/libs/ParseFacebookUtilsV4-1.10.1.jar")
    provided files("$rootProject.projectDir/ParseUI-Login/libs/ParseTwitterUtils-1.10.1.jar")
}

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.1"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 21
    }
}

My App Module's build.grade
So this is the only structure that has worked for me. As soon as I try to include any of the Parse SDK files (following the read me) it breaks the ParseUI-Login.
I've only shown the bit of the file that matter.

compile 'com.facebook.android:facebook-android-sdk:4.6.0'

    // PARSE - https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/existing
//    compile 'com.parse.bolts:bolts-android:1.+'
//    compile files('../libs/Parse-1.10.2.jar')
    compile project(':ParseUI-Login')
    compile project(':ParseUI-Widget')
//    compile files('../libs/ParseFacebookUtilsV4-1.10.2.jar')
//    compile files('../libs/ParseTwitterUtils-1.10.1.jar')

I have included the ParseLoginActivity declaration in my manifest file and I open it like this.

ParseLoginBuilder builder = new ParseLoginBuilder(getActivity());
                builder.setFacebookLoginPermissions(Arrays.asList(getResources().getStringArray(R.array.s2tm_facebook_permissions)));
                startActivityForResult(builder.build(), 213);

When the application crashes when I click the "Login with Facebook" button it looks like this.

10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime: FATAL EXCEPTION: main
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime: Process: com.corecoders.ski2themoon, PID: 3627
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/parse/ParseFacebookUtils;
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.parse.ui.ParseLoginFragment$5.onClick(ParseLoginFragment.java:306)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.view.View.performClick(View.java:4780)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:19866)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:  Caused by: java.lang.ClassNotFoundException: Didn't find class "com.parse.ParseFacebookUtils" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.corecoders.ski2themoon-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.parse.ui.ParseLoginFragment$5.onClick(ParseLoginFragment.java:306) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.view.View.performClick(View.java:4780) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:19866) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:   Suppressed: java.lang.ClassNotFoundException: com.parse.ParseFacebookUtils
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.Class.classForName(Native Method)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:           ... 12 more
10-07 20:50:48.182 3627-3627/com.corecoders.ski2themoon E/AndroidRuntime:  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Is it possible to bypass login (persistent login)?

Is it possible to make logins persistent, and have the Login form never show if a ParseUser already exists? I've currently got my own login form, where on creation, it checks if ParseUser.getCurrentUser is not null (parse user already exists in cache). If they do, then we simply bypass the login (it literally shows for a millisecond, if that, and instead loads the main activity. If the User logs out of the app though, then the next time it's run, the login screen will show again.

Is this possible with this?

Publish Parse Library to jCenter and/or MavenCentral

I am not sure why you guys have not published this library to jCenter or MavenCentral, is there a real reason for that?

Instead of having to download a .jar and then use it as a local dependency:

dependencies {
    compile files('libs/Parse-1.8.2.jar')
}

We should be able to simply include it as a maven dependency:

dependencies {
    compile 'com.parse:android:1.8.2'
}

My suggestion would be to publish to Jcenter and sync with MavenCentral. Do you need help setting it up?

Cannot use it along with the Parse SDK

In my project I'm using the Parse SDK and now i want to add the Parse Login UI .. I've imported the ParseUI into my eclipse but i cannot use it inside my project, it gives me this error [Jar mismatch! Fix your dependencies] everytime i tried to include it as a library to my project.

Any help!

Fail to login with facebook

have anyone experience this?

04-01 18:37:10.671 21417-21417/com.parse.loginsample.basic W/ParseLoginFragment﹕ Facebook login failed, exception: com.parse.ParseException: Invalid date

not sure why this happen.

Error when importing the project via AndroidStudio

I didn't manage to import the project to android studio (I am a newbie to android studio though). When I try, I am getting following error:

/Users/stephan/AndroidStudioProjects/MyProject/ParseLoginSampleBasic/build.gradle
Error:(11, 0) Cause: cannot get property 'compileSdkVersion' on extra properties extension as it does not exist

Can you help me?

Multiple dex files define Lcom/parse/ParseAuthenticationProvider;

I encountered this the first time I used ParseUI, and I've seen this crop up a few times on Stack Overflow too.

It's not made very clear that the ParseUI library also installs the ParseSDK lib. When I first went to use it, it was after already using the ParseSDK so the Parse.jar was already in my libs folder. Having 2 of them causes a dex error when trying to compile, as per issue subject.

Removing the Parse jar from my apps libs folder resolves the issue, but removing the jar in the ParseUI libs folder causes errors in ParseLoginActivity. Presumably because the ParseUI can't reference the jar in the libs folder of my app?
It's also not a great idea to have 2 (potentially) different version of the Parse jar in one app.

It probably just requires a note at the start of the Parse SDK Android Docs and/or ParseUI Readme?

proguard

has anyone done a release with version 4?

i upgraded the lib, tested ... all fine until i tried to do a release and proguard failed on dupe zip entries in package com.parse..

detls:
Execution failed for task ':proguardRelease'.
java.io.IOException: Can't write /home/rob/src/CastVideos-android/build/intermediates/classes-proguard/release/classes.jar] (Can't read [/home/rob/src/CastVideos-android/build/intermediates/exploded-aar/CastVideos-android/ParseLoginUI/unspecified/libs/Parse-1.9.1.jar(;;;;;;!META-INF/MANIFEST.MF) (Duplicate zip entry Parse-1.9.1.jar:com/parse/AnonymousAuthenticationProvider.class))

re: http://stackoverflow.com/questions/29870207/proguard-dupe-zip-entry-after-upgraded-facebook-parse-ui-lib-to-v4

Proposal for split ParseLoginUI moudle

Since we add ParseImageView and ParseQueryAdapter to the repo, it make no sense to still keep them all in one login module.

We propose to split the ParseLoginUI into two modules. ParseUI-Login module for all login related classes. ParseUI-Widget module for ParseImageView, ParseQueryAdapter and future widgets.

For packaging, in ParseUI-Login, all classes are still under package com.parse.ui for backward compatibility. In ParseUI-Widget, ParseImageView and ParseQueryAdapter are in com.parse, the future widgets will be in com.parse.widget.

Check PR #65 for details.

Please leave you opinions, suggestions or any thoughts under this issue.

Thanks.

Can this library be used independent of parse?

I would like to integrate this library into an existing application and use the UI aspects of it, is it possible to override the ParseUser part of it, or is it too deeply tied to it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.