Code

MyStream | Android Universal Social Network App Template + Web PHP version

MyStream | Android Universal Social Network App Template + Web PHP version






iOS and Android versions can share the same database on back4app




25 May 2018
• Accordingly to the new EU GDPR terms, I've updated the 'tou.html' file and Documentation.
IMPORTANT: This means that if a User asks for his/her Account deletion, you must do it within 24 hours, as the GDPR's "Right to be forgotten" Article states (LINK: https://gdpr-info.eu/art-17-gdpr/)
18 May 2018
• Added push notification code for when a user follows another user in OtherUserProfile.java -> 'followButt.setOnClickListener()' method
16 May 2018
• Fixed a bug on the audio player in the Web PHP version by editing the 'echo' code for the audio part in the index.php, following.php, account.php and stream-details.php files
• Edited the follwing classes into 'material-kit.css' (I've just replaced '#' with '.'):
  .songSlider{
  .trackProgress{
• Edited the 'updatedTime()' function in the 'audio.js' file
8 May 2018
• Changed Parse verison in build.gradle into 1.16.0, diue to some issue on the latest Parse SDK and FCM:
    implementation 'com.parse:parse-android:1.16.0'

• Edited 'getUserDetailsFromFB()' method in Intro.java, this line of code:
    } else { currUser.put(Configs.USER_EMAIL,  facebookID + "@facebook.com"); }
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' and  'targetSdkVersion' to 27 in build.gradle
• Replaced 'compile' with 'implementation' in build.gradle (Module: app)
• Updated classpath 'com.android.tools.build:gradle:3.1.1' in build.gradle (Project:)




MyStream is an app template where you can post anything you would like to show to the world, like pictures, videos, audio recordings, and stickers, as well as any text you want.
Users can comment, like and share Streams, as well as report them and their Users to the Admin. You, as the Admin of the app, need to daily check your own Parse Dashboard for reported content or users and take actions for them.

In addition to the mobile app, you can find a web PHP version where users can browse, comment and like Streams, check posts from the people they follow, report content and users. The website version has a javascript control that displays a different page in case of phones browsers detection, that page has the App Store badges where users can download the mobile app. Also, the website doesn’t allow people to post Streams, only the mobile version allow that.
You can check the demo website here: https://www.cubycode.com/mystream/index.php

Since its backend is by Parse Server, 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.

MyStream is a native Android Studio project, Java/xml language, Universal, Parse SDK hosted on https://back4app.com and super easy to customize.




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 of 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 interstitial ads?

You have to search for the following code in all java files -> onCreate() mthod, and just remove (or comment) it:
// INTERSTITIAL AD IMPLEMENTATION ------------------------------------
        final InterstitialAd interstitialAd = new InterstitialAd(this);
        interstitialAd.setAdUnitId(getString(R.string.ADMOB_INTERSTITIAL_UNIT_ID));
        AdRequest requestForInterstitial = new AdRequest.Builder().build();
        interstitialAd.loadAd(requestForInterstitial);
        interstitialAd.setAdListener(new AdListener() {
            @Override
            public void onAdLoaded() {
                Log.i("log-", "INTERSTITIAL is loaded!");
                if (interstitialAd.isLoaded()) {
                    interstitialAd.show();
        }}});





  • Anoid Studio 3.x project – Java/xml
  • Universal – Android 5.0+
  • AdMob Interstitial ads
  • Works with Parse Server hosted on back4app
  • Push Notifications for likes and comments and Messages
  • Chat Messages section
  • Post Pictures, Videos, Audio recordings, Stickers and Text
  • Settings screen to edit your profile, check your Activity, app version, and much more
  • Terms of Use HTML file (to be edited)
  • Report inappropriate/offensive users, comments and posts to the Admin
  • PDF User Guide included
  • PSD icon graphics included
  • Easy to customize, well commented code


  • Apple Mac or Windows PC with their latest OS version installed
  • The latest version of Android Studio and some knowledge about its UI interface
  • Photoshop or any other image editor software
  • A Google Developer account to submit apps to the Play Store
  • An AdMob account to generate your own Interstitial UNIT ID
  • A free account on back4app.com









by
by
by
by
by
by