Suleiman

Android developer and tech enthusiast. Love creating apps with good UI UX design. I also like to sketch and listen to Chillstep.

You may also like...

  • Radzhab Ahvahsky

    Suleiman, good day. I cannot find post where you describe https://github.com/Suleiman19/cheesesquare this project.

    I have one question. I add 4 elements to adapter(pic 1). I want rise method ClickMe in third instance of CheeseListFragment from MainActivity. How i make it?

    • Please comment on relevant posts. For code issues, post on StackOverflow and ping me. I’ll be happy to help.

  • Radzhab Ahvahsky

  • Pingback: Part 1: Integrate Facebook Login with Parse | Dinesh Ram Kali.()

  • Z

    Hi, I followed all your instructions but got this:

    Error:Execution failed for task ‘:app:dexDebug’.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java” finished with non-zero exit value 2

    Would you be able to give some pointers as to what is the error i have made?
    Thanks!

    • Hi there,

      This kind of error happens when you’ve included a library more than once. Please recheck any duplicate Jars or libraries in your build.gradle file.

      Here’s a similar problem on StackOverflow. Should help you: http://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process

      • Z

        I am looking at the instructions on https://www.parse.com/docs/android/guide#users-setup

        In step 4, it talks about this problem:

        Add com.parse:parsefacebookutils-v4-android:1.10.3@aar to your Gradle dependencies. This includes the contents of the Parse-*.jar and the com.parse:parse-android:1.10.+ repository, so be sure to remove as needed to prevent duplicate dependencies, otherwise acom.android.dex.DexException will be thrown.

        Do you mind explaining what they mean by com.parse:parsefacebookutils-v4-android:1.10.3@aar includes the contents of the Parse-*.jar and the com.parse:parse-android:1.10.+ repository?

        Thanks!

        • It simply says what I said earlier. Remove duplicate library imports.

          If you add com.parse:parsefacebookutils-v4-android:1.10.3@aar,

          then remove all Parse related .jars and the com.parse:parse-android import as well.

  • I don’t understand what you’re trying to do here. Are you trying to user Twitter AND Facebook? Why are there 2 dependencies tags?
    My only suggestion to you would be to either ask Parse directly asking about Twitter + Facebook integration, or post on StackOverflow.

  • Michael Lorenz Jimenez- Labrad

    thank you for posting this!

  • Boon Yao

    Hi suleiman19, I face problem here. Can i ask my problem here?

    I stuck at getting key hash with your code provided.
    The line ” md.update(signature.toByteArray()); has red line error.

    Error:(33, 36) error: cannot find symbol method toByteArray()

    Can you kindly give a help here? thanks in advance. 🙂

    • Boon Yao

      Part 1 done, phewwww -.-”. Please help with the problem. thanks a lot

    • Hi there,
      That code snippet I use for generating the key hash is provided by Facebook itself. I’ve tested with the new SDKs and can confirm it works.
      You might want to cross check here: https://developers.facebook.com/docs/android/getting-started

    • PS: You must import android.content.pm.Signature;

  • John

    Hi Suleiman19, thanks for writing this up! I have follow the steps listed, and I have been running into a different error. My app crashes with this error:

    java.lang.NoClassDefFoundError: com.parse.ParseFacebookUtils$1

    at the ParseFacebookUtils.initialize(this) line. I have read that this has been a problem for others occasionally, but have found no good solutions that work. From what I can understand, simply it is because my compiler can’t find some file that contains a class, but I’m not sure how to find it if I’ve imported the proper libraries and declared all of the necessary dependencies in my Gradle build. If you’ve run into this or had to fix it please let me know. Thanks!

    • Hi John,
      I recently updated the Parse tutorials. Migrated to gradle from JAR files and faced no such issues.
      I suggest you refer to my GitHub repository to cross check where your issue might be.
      Link available in part 2 end.

  • Utkersh Reuben Khanna

    Always Getting “Uh oh. The user cancelled the Facebook login.”

    • That’s not supposed to happen and personally haven’t come across this.
      Please cross check by retracing your steps to see if you’ve followed correctly.

      • Utkersh Reuben Khanna

        Sir Even the git hub example is not working for me it gives the same error

  • Namsi Abdelkhalek

    the dashboard doesn’t contain settings!!

    • Hi Namsi,
      Parse has unfortunately decided to shut down. They no longer provide a self-hosting option. But they still allow you to self host the software.
      As a result, the Parse dashboard has changed too. The Settings you ask for defining for Facebook constants, now reside in a config file.
      Here’s a guide that can quickly show you how to deploy Parse locally: https://github.com/ParsePlatform/parse-server
      Good luck!

      • Namsi Abdelkhalek

        It worked well without doing that step.
        Thank you very much. This was so helpful 🙂