Code

woopy | Android Universal Listings + Chat App Template

woopy | Android Universal Listings + Chat App Template










iOS, Android and Web versions can share the same Parse database






17 April 2018
• Added new Firebase dependencies in build.gradle(Module:app)
• Removed the 'com.google.android.gms:play-services:+' implementation and updated all dependencies to the required ones only
• Added the 'google-services' classpath in the dependencies{} list in build.gradle(Project:)
    classpath 'com.google.gms:google-services:3.2.1'

• Added this Permission into Manifest.xml: 
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

• Updated the Documentation (connect your App to Firebase for FCM)
15 April 2018
• Updated to Android Studio 3.1.1
• Removed all dependencies of play-services | left only this one in build.gradle:
     implementation 'com.google.android.gms:play-services:+'
11 April 2018
• Updated to Android Studio 3.1
• Updated 'compileSdkVersion' to 27 in build.gradle
• Replaced 'compile' with 'implementation' in build.gradle (Module: app)
6 April 2019
• Updated to Android Studio 3.1
• Updated targetSdkVersion to 27 in build.gradle
• Removed all instances of (Button), (TextView), (ImageView) etc. (they were grey in the code)
• Moved 'public Uri getImageUri()' method into Configs.java | removed it from AdsList.java, AdDetails.java and MyLikes.java
• Edited the 'Uri uri = getImageUri(this, bmp);' method by adding 'Configs.' before 'getImageUri' in the java files mentioned above
• Added <ParseObject> in all instances of ParseQuery, like this:
    ParseQuery<ParseObject>
• Added this IF condition in the 'submitAdButt()' Button in SellEditItem.java:
    || priceTxt.getText().toString().matches("") 
• Added 2 shortcut methods to get and save images from Parse in Configs.java | changed all instances of getting and saving images in the code
• Generally Cleaned the code
19 March 2018
• Edited the 'setOnEditorActionListener()' method in Home.java and AdsList.java, in order to prevent the app from performing a search in case of no text
16 February 2018
• Edited the Get verified code into UserProfile.java as it follows:
   if (userObj.get(Configs.USER_EMAIL_VERIFIED) != null) {
      if (userObj.getBoolean(Configs.USER_EMAIL_VERIFIED)) {
         verifTxt.setText("Verified: Yes");
      } else { verifTxt.setText("Verified: No"); }
   } else { verifTxt.setText("Verified: No"); }

• Edited the Get verified code in Account.java as it follows:
    if (currUser.get(Configs.USER_EMAIL_VERIFIED) != null) {
            if (currUser.getBoolean(Configs.USER_EMAIL_VERIFIED)) {
                verifiedtxt.setText("Verified: Yes");
            } else { verifiedtxt.setText("Verified: No"); }
     } else { verifiedtxt.setText("Verified: No"); } 

• Edited the Get verified code in AdDetails.java as it follows:
    if (sellerPointer.get(Configs.USER_EMAIL_VERIFIED) != null) {
       if (sellerPointer.getBoolean(Configs.USER_EMAIL_VERIFIED)) {
          verifiedTxt.setText("Verified: Yes");
       } else { verifiedTxt.setText("Verified: No"); }
    } else { verifiedTxt.setText("Verified: No"); }

• Removed the following 2 lines in map_screen.xml:
        android:layout_above="@+id/relativeLayout2" 
        android:layout_below="@+id/topBarLayout" 
20 January 2018
• Added this line in the dependencies list of build.gradle (Module: app):
    compile 'com.squareup.okhttp3:okhttp:+'


woopy is a Universal App template where you can browse and post listings on the go, new or used stuff you want to sell. You can search for keywords or category, chat with the seller by his item’s page, log in with Facebook or email, like and share ads, and a lot more.
Besides uploading up to 3 images while posting an ad, This app allows you to also upload a 10-second video, this is a great feature that other listings classifieds apps do not have!
Users will be able to report ads or users and block/unblock inappropriate users to prevent getting chat messages from blocked people. They will also able to send Feedbacks to other sellers
woopy has also a verification email system, once a user signs up, the back4app server sends a verification email based on the email address the user typed in the signup screen. People will be able to see if a user is Verified or not by entering his/her Profile screen.
The Categories names and images are stored into the Parse Dashboard, so you’ll be able to add new categories remotely without having to update the app.
Check its demo APK to see it in action!



Since its backend is by Parse SDK you don’t have to buy any domain/hosting, there are NO PHP files to upload to a web server so you’ll save some money for server side, also because back4app offers a generous free plan.

woopy is a native Android Studio project, Universal, super easy to customize, backend with Parse Server hosted on https://back4app.com




About Parse SDK and back4app

Read this article for more info about back4app and Parse SDK: https://hubpages.com/technology/Parse-SDK-will-not-shutdown-in-thanks-to-back4app

Can I host Parse Server on my own server?

Yes, although I don’t provide support for the setup process, you can read the official Guide here: http://parseplatform.org

What about free support for this template?

I can offer free support for bugs encountered in the original code. Instead, if you’ve edited the code and messed something up with it, I may apply some fee to fix it either via TeamViewer or by checking your app project files directly on my computer.

How do I rename the app’s package name?

Read this tutorial to learn how to rename a package name: https://hubpages.com/technology/Android-How-to-rename-an-app-package

Should I use the latest version of Android Studio to edit this template?

Yes, I always update my apps to the latest version of the IDE and you also should make sure you’ve updated the Android Tools to their latest version of the Android SDK manager.

The demo APK crashes on startup

Make sure that the minimum Android version of your device is the one listed in the FEATURES section below. If the problem persists, please contact me through my profile’s contact form and send me the Logcat message you get when the app crashes along with the steps you made to reproduce the crash. Please note that not all real devices print an error Logcat message, in this case just run the APK into the Android Studio’s emulator and you’ll surely get the red messages about your issue.

How do I remove AdMob banner ads?

  1. Enter the .xml files where there’s an AdView and remove its code:
        <com.google.android.gms.ads.AdView
            android:id="@+id/admobBanner" 
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            ads:adSize="BANNER" 
            ads:adUnitId="@string/ADMOB_BANNER_UNIT_ID" 
            android:layout_alignParentBottom="true" 
            android:layout_centerHorizontal="true">
        </com.google.android.gms.ads.AdView>
    
  2. Enter the .java files where there’s an AdRequest instance into its onCreate() method and remove its code:
            // Init AdMob banner
            AdView mAdView = (AdView) findViewById(R.id.admobBanner);
            AdRequest adRequest = new AdRequest.Builder().build();
            mAdView.loadAd(adRequest);
    
  3. Lastly, remove the play-services-ads reference in the build.gradle file:
        compile 'com.google.android.gms:play-services-ads:+'
    

How to change images in the Categories class of my Parse Dashboard?

After importing the Categories.json file into your own Parse Dashboard, you have to double-click in the empty space between the edge of a cell and the blue image button to replace the existing images, check the screenshot below:

After importing Categories.json in my Parse Dashboard, I see no data

That may happen sometimes, it’s a bug in the Parse Dashboard, so in this case you must manually add rows and columns on your own.
1. Click Edit -> Add a column, choose String as type of data and type exactly category, then click ‘Add column’
2. Click Edit -> Add a column, choose File as type of data and type exactly image, then click ‘Add column’
3. Now you can enter the empty cells and insert the name of your first Category, doublie click in the empty cell of the image column and upload your first image.
4. Repeat the steps above for each category you want to insert in your Parse database.

How do I change the order of Categories?

The only way to do that is to remove all rows from the Categories class and add then again based on the order you want categories to be shown in the Home screen of the app since they get ordered by their ‘createdAt’ date.






  • Android Studio 3.x project – Universal – Android 5.0+
  • AdMob banners
  • Backend with Parse SDK hosted on back{4}app
  • Browse ads by Category or search by Keywords
  • Sort ads by Recent, Price, Most liked and Condition
  • Map with radius distance circle and slider to change the nearby distance
  • Post/edit ads, with 3 pics and an optional 10-second video
  • Send/read Feedbacks and Comments
  • Report/block inappropriate users or ads
  • Chat with sellers within the app, with the possibility to attach pictures to the chat messages
  • Push Notifications for chat messages, likes, feedbacks and comments
  • Check your liked ads in the My Likes screen
  • Activity screen
  • List of active chats
  • Easy to Customize
  • Well commented code
  • User Guide and PSD graphics included


  • The latest version of Android Studio and basic knowledge of its interface
  • Photoshop (or similar photo editor softwares)
  • Windows PC or Mac
  • Free account on back4app
  • Facebook developer account
  • Google Developer and Play Store account
  • A valid AdMob account account to create a banner UNIT ID
  • A real device with Android 5.0 or above (recommended)











by
by
by
by
by
by