├── .gitignore ├── README.md ├── android ├── Old2_FullVersion │ └── Open Instagram │ │ ├── .gitignore │ │ ├── .idea │ │ ├── .name │ │ ├── compiler.xml │ │ ├── copyright │ │ │ └── profiles_settings.xml │ │ ├── encodings.xml │ │ ├── gradle.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── runConfigurations.xml │ │ ├── Open Instagram.iml │ │ ├── app │ │ ├── .gitignore │ │ ├── app.iml │ │ ├── build.gradle │ │ ├── libs │ │ │ └── picasso-2.5.2.jar │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── weaverprojects │ │ │ │ └── openinstagram │ │ │ │ └── ApplicationTest.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── weaverprojects │ │ │ │ └── openinstagram │ │ │ │ ├── Controller │ │ │ │ ├── C.java │ │ │ │ ├── Temp │ │ │ │ │ └── Fake.java │ │ │ │ ├── image │ │ │ │ │ ├── BlurTransform.java │ │ │ │ │ └── CircleTransform.java │ │ │ │ ├── local │ │ │ │ │ └── SessionTokenPref.java │ │ │ │ └── placeholder.txt │ │ │ │ ├── Model │ │ │ │ ├── Comment.java │ │ │ │ ├── Post.java │ │ │ │ ├── PostBasics.java │ │ │ │ └── UsersProfile.java │ │ │ │ └── View │ │ │ │ ├── Adapters │ │ │ │ └── HomeArrayAdapter.java │ │ │ │ ├── PostLogIn │ │ │ │ ├── HomeActivity.java │ │ │ │ ├── ProfileActivity.java │ │ │ │ └── placeholder.txt │ │ │ │ ├── PreLogIn │ │ │ │ └── LogInActivity.java │ │ │ │ └── SplashActivity.java │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── comment.png │ │ │ ├── explore.png │ │ │ ├── fullheart.png │ │ │ ├── gradient.png │ │ │ ├── home.png │ │ │ ├── homead.png │ │ │ ├── ic_launcher.png │ │ │ ├── instagramlogo.png │ │ │ ├── instagramlogowhite.png │ │ │ ├── like.png │ │ │ ├── magnify.png │ │ │ ├── magnifyy.png │ │ │ ├── oval.png │ │ │ ├── profile.png │ │ │ └── upload.png │ │ │ ├── layout │ │ │ ├── activity_home.xml │ │ │ ├── activity_log_in.xml │ │ │ ├── activity_profile.xml │ │ │ ├── activity_splash.xml │ │ │ ├── bottom_menu.xml │ │ │ └── row_home_item.xml │ │ │ ├── menu │ │ │ └── menu_splash.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle ├── OldPrototype │ └── android │ │ ├── .gitignore │ │ ├── .idea │ │ ├── .name │ │ ├── compiler.xml │ │ ├── copyright │ │ │ └── profiles_settings.xml │ │ ├── encodings.xml │ │ ├── gradle.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ ├── runConfigurations.xml │ │ └── vcs.xml │ │ ├── android.iml │ │ ├── app │ │ ├── .gitignore │ │ ├── app.iml │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── weaverprojects │ │ │ │ └── insta │ │ │ │ └── ApplicationTest.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── weaverprojects │ │ │ │ └── insta │ │ │ │ ├── ImageAdapter.java │ │ │ │ ├── InstaTestMainActivity.java │ │ │ │ ├── InstaTestSplashActivity.java │ │ │ │ ├── UserPost.java │ │ │ │ └── db │ │ │ │ ├── LoadExternalImgsServerActivity.java │ │ │ │ ├── LoadExternalProfileImgsServerActivity.java │ │ │ │ └── LoadPostsServerActivity.java │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── comment.png │ │ │ ├── fullheart.png │ │ │ └── like.png │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ ├── activity_splash.xml │ │ │ └── single_img.xml │ │ │ ├── menu │ │ │ └── menu_main.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── insta.iml │ │ └── settings.gradle ├── Old_FullVersion │ └── OpenInstagram │ │ ├── .gitignore │ │ ├── .idea │ │ ├── .name │ │ ├── compiler.xml │ │ ├── copyright │ │ │ └── profiles_settings.xml │ │ ├── encodings.xml │ │ ├── gradle.xml │ │ ├── inspectionProfiles │ │ │ ├── Project_Default.xml │ │ │ └── profiles_settings.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ ├── runConfigurations.xml │ │ └── vcs.xml │ │ ├── OpenInstagram.iml │ │ ├── app │ │ ├── .gitignore │ │ ├── app.iml │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── expeditionlabs │ │ │ │ └── openinstagram │ │ │ │ └── ApplicationTest.java │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── expeditionlabs │ │ │ │ └── openinstagram │ │ │ │ ├── OpenInstagramSplashActivity.java │ │ │ │ ├── Windows │ │ │ │ ├── LogIn │ │ │ │ │ ├── OpenInstagramForgotPasswordActivity.java │ │ │ │ │ ├── OpenInstagramForgotPasswordCodeActivity.java │ │ │ │ │ └── OpenInstagramLogInActivity.java │ │ │ │ └── main │ │ │ │ │ ├── OpenInstagramExploreActivity.java │ │ │ │ │ ├── OpenInstagramFollowingActivity.java │ │ │ │ │ ├── OpenInstagramHomeActivity.java │ │ │ │ │ ├── OpenInstagramProfileActivity.java │ │ │ │ │ ├── OpenInstagramSearchActivity.java │ │ │ │ │ └── OpenInstagramSinglePostActivity.java │ │ │ │ ├── db │ │ │ │ ├── explore │ │ │ │ │ ├── LoadExploreImageServerActivity.java │ │ │ │ │ └── LoadSuggestedPostsServerActivity.java │ │ │ │ ├── following │ │ │ │ │ ├── LoadPastDayForPplFollowingCommentsServerActivity.java │ │ │ │ │ ├── LoadPastDayForPplFollowingLikesServerActivity.java │ │ │ │ │ └── LoadPastDayForPplFollowingNewFollowingServerActivity.java │ │ │ │ ├── general │ │ │ │ │ ├── FollowUserServerActivity.java │ │ │ │ │ └── UnfollowUserServerActivity.java │ │ │ │ ├── home │ │ │ │ │ ├── LoadExternalImgsServerActivity.java │ │ │ │ │ ├── LoadExternalProfileImgsServerActivity.java │ │ │ │ │ └── LoadTenPostsFromServerActivity.java │ │ │ │ ├── login │ │ │ │ │ ├── CheckCredentialsForLogInServerActivity.java │ │ │ │ │ ├── CheckLoggedInServerActivity.java │ │ │ │ │ ├── CheckUserNameTakenServerActivity.java │ │ │ │ │ └── SignUpServerActivity.java │ │ │ │ ├── profile │ │ │ │ │ └── LoadProfileServerActivity.java │ │ │ │ └── singlePost │ │ │ │ │ ├── LoadExternalImgForSinglePostServerActivity.java │ │ │ │ │ ├── LoadExternalProfileImgForSinglePostServerActivity.java │ │ │ │ │ └── LoadSinglePostServerActivity.java │ │ │ │ └── lib │ │ │ │ ├── C.java │ │ │ │ ├── CustomAdapters │ │ │ │ ├── ExploreAdapter.java │ │ │ │ └── PostAdapter.java │ │ │ │ └── CustomElements │ │ │ │ ├── ExplorePost.java │ │ │ │ ├── FollowingAction.java │ │ │ │ ├── Post.java │ │ │ │ ├── PostComment.java │ │ │ │ └── Profile.java │ │ │ └── res │ │ │ ├── drawable │ │ │ ├── comment.png │ │ │ ├── explore.png │ │ │ ├── fullheart.png │ │ │ ├── gradient.png │ │ │ ├── home.png │ │ │ ├── homead.png │ │ │ ├── ic_launcher.png │ │ │ ├── instagramlogo.png │ │ │ ├── instagramlogowhite.png │ │ │ ├── like.png │ │ │ ├── magnify.png │ │ │ ├── magnifyy.png │ │ │ ├── oval.png │ │ │ ├── profile.png │ │ │ └── upload.png │ │ │ ├── layout │ │ │ ├── activity_oi_explore.xml │ │ │ ├── activity_oi_login.xml │ │ │ ├── activity_oi_main.xml │ │ │ ├── activity_oi_single_post.xml │ │ │ ├── activity_oi_splash.xml │ │ │ ├── oi_single_action_following.xml │ │ │ ├── oi_single_explore_row.xml │ │ │ └── oi_single_post.xml │ │ │ ├── menu │ │ │ └── menu_open_instagram_splash.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle └── OpenInstagram │ ├── .gitignore │ ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml │ ├── app │ ├── .gitignore │ ├── build.gradle │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── ca │ │ │ └── keithweaver │ │ │ └── openinstagram │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── ca │ │ │ │ └── keithweaver │ │ │ │ └── openinstagram │ │ │ │ ├── Controller │ │ │ │ ├── C.java │ │ │ │ ├── GCM │ │ │ │ │ └── placeholder.txt │ │ │ │ ├── Local │ │ │ │ │ └── LogInSharedPref.java │ │ │ │ └── Server │ │ │ │ │ ├── InstaAPI.java │ │ │ │ │ ├── InstaRestClient.java │ │ │ │ │ ├── NaturalDeserializer.java │ │ │ │ │ └── placeholder.txt │ │ │ │ ├── Model │ │ │ │ ├── ServerResponse │ │ │ │ │ ├── ResGeneral.java │ │ │ │ │ ├── ResLogIn.java │ │ │ │ │ └── placeholder.txt │ │ │ │ └── placeholder.txt │ │ │ │ ├── View │ │ │ │ ├── Adapters │ │ │ │ │ └── placeholder.txt │ │ │ │ ├── Windows │ │ │ │ │ ├── LogIn │ │ │ │ │ │ ├── LogInActivity.java │ │ │ │ │ │ ├── LogInFragment.java │ │ │ │ │ │ ├── SignUpFragment.java │ │ │ │ │ │ └── placeholder.txt │ │ │ │ │ ├── Main │ │ │ │ │ │ ├── ExploreFragment.java │ │ │ │ │ │ ├── FeedFragment.java │ │ │ │ │ │ ├── FriendsFragment.java │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ ├── Post │ │ │ │ │ │ │ ├── PostActivity.java │ │ │ │ │ │ │ └── PostInfoActivity.java │ │ │ │ │ │ ├── PostFragment.java │ │ │ │ │ │ ├── ProfileFragment.java │ │ │ │ │ │ └── placeholder.txt │ │ │ │ │ ├── Settings │ │ │ │ │ │ └── placeholder.txt │ │ │ │ │ ├── SplashActivity.java │ │ │ │ │ └── placeholder.txt │ │ │ │ └── placeholder.txt │ │ │ │ └── placeholder.txt │ │ └── res │ │ │ ├── drawable │ │ │ ├── explore.png │ │ │ ├── fullheart.png │ │ │ ├── gradient.png │ │ │ ├── home.png │ │ │ ├── homead.png │ │ │ ├── ic_launcher.png │ │ │ ├── instagramlogo.png │ │ │ ├── instagramlogowhite.png │ │ │ ├── like.png │ │ │ ├── magnify.png │ │ │ ├── magnifyy.png │ │ │ ├── oval.png │ │ │ ├── profile.png │ │ │ └── upload.png │ │ │ ├── layout │ │ │ ├── activity_login.xml │ │ │ ├── activity_main.xml │ │ │ ├── activity_post.xml │ │ │ ├── activity_post_info.xml │ │ │ ├── activity_splash.xml │ │ │ ├── fragment_explore.xml │ │ │ ├── fragment_feed.xml │ │ │ ├── fragment_friends.xml │ │ │ ├── fragment_login.xml │ │ │ ├── fragment_post.xml │ │ │ ├── fragment_profile.xml │ │ │ ├── fragment_signup.xml │ │ │ └── row_main_feed_item.xml │ │ │ ├── menu │ │ │ └── menu_splash.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── ca │ │ └── keithweaver │ │ └── openinstagram │ │ └── ExampleUnitTest.java │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── backend ├── .htaccess ├── README.md ├── REST_DOCS.md ├── TABLE_STRUCTURE.md ├── deploy │ ├── actions │ │ ├── addfakedata.php │ │ ├── createtables.php │ │ └── droptables.php │ └── index.php ├── endpoints │ ├── .DS_Store │ ├── login │ │ ├── check-login-token.php │ │ ├── check-taken-username.php │ │ ├── login.php │ │ ├── register-device.php │ │ ├── signup.php │ │ └── update-username.php │ └── main │ │ ├── explore-feed.php │ │ ├── main-feed.php │ │ └── potential-friends.php └── include │ ├── common_functions.php │ ├── conn.php │ ├── login_functions.php │ └── response_objects.php ├── icons ├── Heart_64.png ├── Speech_balloon_oval_symbol_64.png ├── comment33.png ├── compass106.png ├── compass108.png ├── favorite21.png ├── heart13.png ├── home4.png ├── house158.png ├── house204.png ├── insta.png ├── islam40.png ├── location1.png ├── magnifier12.png ├── magnifying-glass32.png ├── magnifying-glass34.png ├── magnifying47.png ├── magnifyingglass.png ├── magnifyingglass80.png ├── man42.png ├── orientation35.png ├── oval19.png ├── oval33.png ├── speech-bubble17.png ├── user168.png └── users81.png ├── imgs ├── Instagram_logo.png └── gradient.jpg ├── photoshop ├── Instagram_logo.psd ├── openinstalogo.psd └── whiteinstagram.psd └── screenshots ├── 1.png ├── 2.png ├── 3.png └── screenshots.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Instagram-Template 2 | 3 | Still in development. I dont recommend using this code. 4 | 5 | ### Prototype 6 | The prototype is a custom adapter that loads multiple images off the server. 7 | 8 | Look of Prototype: 9 | 10 | ![alt text](https://raw.githubusercontent.com/kweaver00/Instagram-Template-Android/master/screenshots/3.png "Instagram Screenshot") 11 | 12 | 13 | ![alt text](https://raw.githubusercontent.com/kweaver00/Instagram-Template-Android/master/screenshots/screenshots.png "Instagram Screenshot") 14 | 15 | ![alt text](http://keithweaver.ca/imgs/Projects/instagram.jpg "Instagram Screenshot") 16 | 17 | 18 | https://www.youtube.com/watch?v=v_E3Srl4aM0 19 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/.name: -------------------------------------------------------------------------------- 1 | Open Instagram -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 23 | 24 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/Open Instagram.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "22.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.weaverprojects.openinstagram" 9 | minSdkVersion 21 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/libs/picasso-2.5.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/libs/picasso-2.5.2.jar -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/Weaver/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/androidTest/java/com/weaverprojects/openinstagram/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/C.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Controller; 2 | 3 | /** 4 | * Created by kweaver on 18/12/15. 5 | */ 6 | public class C { 7 | public class local{ 8 | public class pref{ 9 | public static final String SHARE_PREF = "open_instagram_pref"; 10 | public static final String USER_NAME = "user_name"; 11 | public static final String SESSION_TOKEN = "session_token"; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/Temp/Fake.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Controller.Temp; 2 | 3 | import com.weaverprojects.openinstagram.Model.Comment; 4 | import com.weaverprojects.openinstagram.Model.Post; 5 | import com.weaverprojects.openinstagram.Model.PostBasics; 6 | import com.weaverprojects.openinstagram.Model.UsersProfile; 7 | 8 | import java.util.ArrayList; 9 | 10 | /** 11 | * Created by kweaver on 18/12/15. 12 | */ 13 | public class Fake { 14 | public static ArrayList getFakePosts(){ 15 | ArrayList posts = new ArrayList<>(); 16 | 17 | String profileImg1 = "https://scontent-yyz1-1.cdninstagram.com/hphotos-xpf1/t51.2885-19/s150x150/12277443_980828698650722_652972973_a.jpg"; 18 | String postImg1 = "https://scontent-yyz1-1.cdninstagram.com/hphotos-xpt1/t51.2885-15/e35/10005461_1678992595672706_948783676_n.jpg"; 19 | String userName1 = "gopro"; 20 | String caption1 = "my first post"; 21 | ArrayList mComments1 = new ArrayList<>(); 22 | for(int i = 0;i < 12;i++){ 23 | mComments1.add(new Comment("p1_" + String.valueOf(i), "User " + String.valueOf(i), "Comment " + String.valueOf(i))); 24 | } 25 | 26 | posts.add(new Post("p1",userName1,profileImg1,postImg1,100, mComments1, caption1, true, false)); 27 | posts.add(new Post("p2",userName1,profileImg1,postImg1,100, mComments1, caption1, true, false)); 28 | posts.add(new Post("p3",userName1,profileImg1,postImg1,100, mComments1, caption1, true, false)); 29 | posts.add(new Post("p4",userName1,profileImg1,postImg1,100, mComments1, caption1, true, false)); 30 | 31 | 32 | 33 | return posts; 34 | } 35 | public static String getTestProfileImage(){ 36 | return "https://scontent-yyz1-1.cdninstagram.com/hphotos-xfa1/t51.2885-19/10616436_505564372908202_2136544002_a.jpg"; 37 | } 38 | public static UsersProfile getUserProfile(){ 39 | return new UsersProfile("u1",getTestProfileImage(),"kweaver0","Keith Weaver","builds things",123,456,getFakeBasicPosts()); 40 | } 41 | public static ArrayList getFakeBasicPosts(){ 42 | ArrayList b = new ArrayList<>(); 43 | 44 | ArrayList fullPosts = getFakePosts(); 45 | for(Post p : fullPosts){ 46 | b.add(new PostBasics(p.getPostId(), p.getImgUrl())); 47 | } 48 | 49 | return b; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/image/BlurTransform.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Controller.image; 2 | 3 | /** 4 | * Created by kweaver on 18/12/15. 5 | */ 6 | import android.content.Context; 7 | import android.graphics.Bitmap; 8 | import android.renderscript.Allocation; 9 | import android.renderscript.Element; 10 | import android.renderscript.RenderScript; 11 | import android.renderscript.ScriptIntrinsicBlur; 12 | 13 | import com.squareup.picasso.Transformation; 14 | 15 | public class BlurTransform implements Transformation { 16 | 17 | RenderScript rs; 18 | public BlurTransform(Context context) { 19 | super(); 20 | rs = RenderScript.create(context); 21 | } 22 | 23 | @Override 24 | public Bitmap transform(Bitmap bitmap) { 25 | // Create another bitmap that will hold the results of the filter. 26 | Bitmap blurredBitmap = Bitmap.createBitmap(bitmap); 27 | 28 | // Allocate memory for Renderscript to work with 29 | Allocation input = Allocation.createFromBitmap(rs, bitmap, Allocation.MipmapControl.MIPMAP_FULL, Allocation.USAGE_SHARED); 30 | Allocation output = Allocation.createTyped(rs, input.getType()); 31 | 32 | // Load up an instance of the specific script that we want to use. 33 | ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs)); 34 | script.setInput(input); 35 | 36 | // Set the blur radius 37 | script.setRadius(10); 38 | 39 | // Start the ScriptIntrinisicBlur 40 | script.forEach(output); 41 | 42 | // Copy the output to the blurred bitmap 43 | output.copyTo(blurredBitmap); 44 | 45 | return blurredBitmap; 46 | } 47 | 48 | @Override 49 | public String key() { 50 | return "blur"; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/image/CircleTransform.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Controller.image; 2 | 3 | import android.graphics.Bitmap; 4 | import android.graphics.BitmapShader; 5 | import android.graphics.Canvas; 6 | import android.graphics.Paint; 7 | 8 | import com.squareup.picasso.Transformation; 9 | 10 | /** 11 | * Created by http://stackoverflow.com/questions/26112150/android-create-circular-image-with-picasso 12 | */ 13 | public class CircleTransform implements Transformation { 14 | @Override 15 | public Bitmap transform(Bitmap source) { 16 | int size = Math.min(source.getWidth(), source.getHeight()); 17 | 18 | int x = (source.getWidth() - size) / 2; 19 | int y = (source.getHeight() - size) / 2; 20 | 21 | Bitmap squaredBitmap = Bitmap.createBitmap(source, x, y, size, size); 22 | if (squaredBitmap != source) { 23 | source.recycle(); 24 | } 25 | 26 | Bitmap bitmap = Bitmap.createBitmap(size, size, source.getConfig()); 27 | 28 | Canvas canvas = new Canvas(bitmap); 29 | Paint paint = new Paint(); 30 | BitmapShader shader = new BitmapShader(squaredBitmap, 31 | BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP); 32 | paint.setShader(shader); 33 | paint.setAntiAlias(true); 34 | 35 | float r = size / 2f; 36 | canvas.drawCircle(r, r, r, paint); 37 | 38 | squaredBitmap.recycle(); 39 | return bitmap; 40 | } 41 | 42 | @Override 43 | public String key() { 44 | return "circle"; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/local/SessionTokenPref.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Controller.local; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.content.SharedPreferences; 6 | 7 | import com.weaverprojects.openinstagram.Controller.C; 8 | 9 | /** 10 | * Created by kweaver on 18/12/15. 11 | */ 12 | public class SessionTokenPref { 13 | Context c; 14 | 15 | public SessionTokenPref(Context c) { 16 | this.c = c; 17 | } 18 | 19 | public String getSessionToken(){ 20 | return getSharePref(C.local.pref.SESSION_TOKEN); 21 | } 22 | public String getUserName(){ 23 | return getSharePref(C.local.pref.USER_NAME); 24 | } 25 | public void storeSessionToken(String token){ 26 | storeSharePref(C.local.pref.SESSION_TOKEN, token); 27 | } 28 | public void storeUserName(String userName){ 29 | storeSharePref(C.local.pref.USER_NAME, userName); 30 | } 31 | public void eraseSessionToken() { 32 | eraseSharedPref(C.local.pref.SESSION_TOKEN); 33 | } 34 | public void eraseUserName() { 35 | eraseSharedPref(C.local.pref.USER_NAME); 36 | } 37 | 38 | 39 | 40 | private String getSharePref(String key) { 41 | int mode = Activity.MODE_PRIVATE; 42 | SharedPreferences mSP; 43 | mSP = c.getSharedPreferences(C.local.pref.SHARE_PREF, mode); 44 | String r = mSP.getString(key, ""); 45 | return r; 46 | } 47 | private void storeSharePref(String key, String value) { 48 | int mode = Activity.MODE_PRIVATE; 49 | SharedPreferences mSP = c.getSharedPreferences(C.local.pref.SHARE_PREF, mode); 50 | SharedPreferences.Editor editor = mSP.edit(); 51 | editor.putString(key, value); 52 | editor.commit(); 53 | } 54 | private void eraseSharedPref(String key){ 55 | int mode = Activity.MODE_PRIVATE; 56 | SharedPreferences mSP; 57 | mSP = c.getSharedPreferences(C.local.pref.SHARE_PREF, mode); 58 | SharedPreferences.Editor editor = mSP.edit(); 59 | editor.putString(key, ""); 60 | editor.commit(); 61 | } 62 | } -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Controller/placeholder.txt -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Model/Comment.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Model; 2 | 3 | /** 4 | * Created by kweaver on 18/12/15. 5 | */ 6 | public class Comment { 7 | String commentId; 8 | String userName; 9 | String comment; 10 | 11 | public Comment(String commentId, String userName, String comment) { 12 | this.commentId = commentId; 13 | this.userName = userName; 14 | this.comment = comment; 15 | } 16 | 17 | public String getCommentId() { 18 | return commentId; 19 | } 20 | 21 | public String getUserName() { 22 | return userName; 23 | } 24 | 25 | public String getComment() { 26 | return comment; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Model/Post.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Model; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by kweaver on 18/12/15. 7 | */ 8 | public class Post { 9 | String postId; 10 | String userName; 11 | String profileUrl; 12 | String imgUrl; 13 | int likes; 14 | ArrayList comments; 15 | String caption; 16 | boolean following; 17 | boolean sponsored; 18 | 19 | public Post(String postId, String userName, String profileUrl, String imgUrl, int likes, ArrayList comments, String caption, boolean following, boolean sponsored) { 20 | this.postId = postId; 21 | this.userName = userName; 22 | this.profileUrl = profileUrl; 23 | this.imgUrl = imgUrl; 24 | this.likes = likes; 25 | this.comments = comments; 26 | this.caption = caption; 27 | this.following = following; 28 | this.sponsored = sponsored; 29 | } 30 | 31 | public String getPostId() { 32 | return postId; 33 | } 34 | 35 | public String getUserName() { 36 | return userName; 37 | } 38 | 39 | public String getProfileUrl() { 40 | return profileUrl; 41 | } 42 | 43 | public String getImgUrl() { 44 | return imgUrl; 45 | } 46 | 47 | public int getLikes() { 48 | return likes; 49 | } 50 | 51 | public ArrayList getComments() { 52 | return comments; 53 | } 54 | 55 | public String getCaption() { 56 | return caption; 57 | } 58 | 59 | public boolean isFollowing() { 60 | return following; 61 | } 62 | 63 | public boolean isSponsored() { 64 | return sponsored; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Model/PostBasics.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Model; 2 | 3 | /** 4 | * Created by kweaver on 18/12/15. 5 | */ 6 | public class PostBasics { 7 | String postId; 8 | String imgUrl; 9 | 10 | public PostBasics(String postId, String imgUrl) { 11 | this.postId = postId; 12 | this.imgUrl = imgUrl; 13 | } 14 | 15 | public String getPostId() { 16 | return postId; 17 | } 18 | 19 | public String getImgUrl() { 20 | return imgUrl; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/Model/UsersProfile.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.Model; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by kweaver on 18/12/15. 7 | */ 8 | public class UsersProfile { 9 | String userId; 10 | String profileImg; 11 | String userName; 12 | String name; 13 | String about; 14 | int followers; 15 | int following; 16 | ArrayList posts; 17 | 18 | public UsersProfile(String userId, String profileImg, String userName, String name, String about, int followers, int following, ArrayList posts) { 19 | this.userId = userId; 20 | this.profileImg = profileImg; 21 | this.userName = userName; 22 | this.name = name; 23 | this.about = about; 24 | this.followers = followers; 25 | this.following = following; 26 | this.posts = posts; 27 | } 28 | 29 | public String getUserId() { 30 | return userId; 31 | } 32 | 33 | public String getProfileImg() { 34 | return profileImg; 35 | } 36 | 37 | public String getUserName() { 38 | return userName; 39 | } 40 | 41 | public String getName() { 42 | return name; 43 | } 44 | 45 | public String getAbout() { 46 | return about; 47 | } 48 | 49 | public int getFollowers() { 50 | return followers; 51 | } 52 | 53 | public int getFollowing() { 54 | return following; 55 | } 56 | 57 | public ArrayList getPosts() { 58 | return posts; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/View/PostLogIn/ProfileActivity.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.View.PostLogIn; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.ImageView; 6 | import android.widget.LinearLayout; 7 | import android.widget.TextView; 8 | 9 | import com.squareup.picasso.Picasso; 10 | import com.weaverprojects.openinstagram.Controller.Temp.Fake; 11 | import com.weaverprojects.openinstagram.Controller.image.BlurTransform; 12 | import com.weaverprojects.openinstagram.Controller.image.CircleTransform; 13 | import com.weaverprojects.openinstagram.Model.UsersProfile; 14 | import com.weaverprojects.openinstagram.R; 15 | 16 | /** 17 | * Created by kweaver on 18/12/15. 18 | */ 19 | public class ProfileActivity extends Activity { 20 | 21 | //UI 22 | LinearLayout topWrapper; 23 | ImageView profileImageView; 24 | TextView userNameTextView; 25 | TextView aboutTextView; 26 | TextView nameTextView; 27 | 28 | @Override 29 | protected void onCreate(Bundle savedInstanceState) { 30 | super.onCreate(savedInstanceState); 31 | setContentView(R.layout.activity_profile); 32 | declareUIObjects(); 33 | 34 | UsersProfile currentUserBeingViewed = Fake.getUserProfile();//pass in a user name 35 | 36 | Picasso.with(this).load(currentUserBeingViewed.getProfileImg()).transform(new CircleTransform()).into(profileImageView); 37 | 38 | nameTextView.setText(currentUserBeingViewed.getName()); 39 | userNameTextView.setText(currentUserBeingViewed.getUserName()); 40 | aboutTextView.setText(currentUserBeingViewed.getAbout()); 41 | } 42 | protected void declareUIObjects(){ 43 | topWrapper = (LinearLayout) findViewById(R.id.topWrapper); 44 | profileImageView = (ImageView) findViewById(R.id.profileImageView); 45 | userNameTextView = (TextView) findViewById(R.id.userNameTextView); 46 | aboutTextView = (TextView) findViewById(R.id.aboutTextView); 47 | nameTextView = (TextView) findViewById(R.id.nameTextView); 48 | 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/View/PostLogIn/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/View/PostLogIn/placeholder.txt -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/java/com/weaverprojects/openinstagram/View/SplashActivity.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.openinstagram.View; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.view.Menu; 7 | import android.view.MenuItem; 8 | 9 | import com.weaverprojects.openinstagram.R; 10 | import com.weaverprojects.openinstagram.View.PostLogIn.HomeActivity; 11 | import com.weaverprojects.openinstagram.View.PreLogIn.LogInActivity; 12 | 13 | 14 | public class SplashActivity extends Activity { 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | setContentView(R.layout.activity_splash); 20 | 21 | Intent open = new Intent(this, HomeActivity.class); 22 | startActivity(open); 23 | } 24 | 25 | @Override 26 | public boolean onCreateOptionsMenu(Menu menu) { 27 | // Inflate the menu; this adds items to the action bar if it is present. 28 | getMenuInflater().inflate(R.menu.menu_splash, menu); 29 | return true; 30 | } 31 | 32 | @Override 33 | public boolean onOptionsItemSelected(MenuItem item) { 34 | // Handle action bar item clicks here. The action bar will 35 | // automatically handle clicks on the Home/Up button, so long 36 | // as you specify a parent activity in AndroidManifest.xml. 37 | int id = item.getItemId(); 38 | 39 | //noinspection SimplifiableIfStatement 40 | // if (id == R.id.action_settings) { 41 | // return true; 42 | // } 43 | 44 | return super.onOptionsItemSelected(item); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/comment.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/explore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/explore.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/fullheart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/fullheart.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/gradient.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/home.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/homead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/homead.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/instagramlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/instagramlogo.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/instagramlogowhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/instagramlogowhite.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/like.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/magnify.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/magnifyy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/magnifyy.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/oval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/oval.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/profile.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/drawable/upload.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/layout/activity_home.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 13 | 14 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/menu/menu_splash.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Open Instagram 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | //classpath 'com.android.tools.build:gradle:1.3.1' 9 | classpath 'com.android.tools.build:gradle:2.0.0-alpha1' 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old2_FullVersion/Open Instagram/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/Old2_FullVersion/Open Instagram/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/.name: -------------------------------------------------------------------------------- 1 | android -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /android/OldPrototype/android/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/OldPrototype/android/android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "22.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.weaverprojects.insta" 9 | minSdkVersion 19 10 | targetSdkVersion 22 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:22.2.1' 25 | } 26 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/kweaver/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/androidTest/java/com/weaverprojects/insta/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.insta; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/java/com/weaverprojects/insta/InstaTestMainActivity.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.insta; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.graphics.Bitmap; 6 | import android.os.Bundle; 7 | import android.util.Log; 8 | import android.view.Menu; 9 | import android.view.MenuItem; 10 | import android.widget.ImageView; 11 | import android.widget.ListView; 12 | 13 | import java.util.ArrayList; 14 | import java.util.HashMap; 15 | 16 | 17 | public class InstaTestMainActivity extends Activity { 18 | public static String TAG = "WEAVER_MainActivity_"; 19 | 20 | Context mContext; 21 | Bitmap bitmap; 22 | ImageView img; 23 | 24 | ImageAdapter mainAdapter; 25 | public static ArrayList mainList; 26 | ListView mainListview; 27 | public static HashMap likesMap; 28 | 29 | @Override 30 | protected void onCreate(Bundle savedInstanceState) { 31 | super.onCreate(savedInstanceState); 32 | setContentView(R.layout.activity_main); 33 | mContext = this.getApplicationContext(); 34 | 35 | Log.v(TAG, "Size of main list:" + mainList.size()); 36 | 37 | 38 | mainListview = (ListView) findViewById(R.id.mainListview); 39 | mainAdapter = new ImageAdapter(this, R.layout.single_img, mainList); 40 | mainListview.setAdapter(mainAdapter); 41 | //img = (ImageView)findViewById(R.id.img); 42 | Log.v(TAG, "MainAdapter Size:" + mainAdapter.getCount()); 43 | 44 | } 45 | 46 | @Override 47 | public boolean onCreateOptionsMenu(Menu menu) { 48 | // Inflate the menu; this adds items to the action bar if it is present. 49 | getMenuInflater().inflate(R.menu.menu_main, menu); 50 | return true; 51 | } 52 | 53 | @Override 54 | public boolean onOptionsItemSelected(MenuItem item) { 55 | // Handle action bar item clicks here. The action bar will 56 | // automatically handle clicks on the Home/Up button, so long 57 | // as you specify a parent activity in AndroidManifest.xml. 58 | int id = item.getItemId(); 59 | 60 | //noinspection SimplifiableIfStatement 61 | if (id == R.id.action_settings) { 62 | return true; 63 | } 64 | 65 | return super.onOptionsItemSelected(item); 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/java/com/weaverprojects/insta/UserPost.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.insta; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | /** 6 | * Created by kweaver on 20/07/15. 7 | */ 8 | public class UserPost { 9 | 10 | String postCode; 11 | String title; 12 | Bitmap profileImg; 13 | String username; 14 | Bitmap img; 15 | String likes; 16 | 17 | public UserPost(String postCode, String title,Bitmap profileImg, String username, Bitmap img, String likes){ 18 | super(); 19 | this.postCode = postCode; 20 | this.title = title; 21 | this.profileImg = profileImg; 22 | this.username = username; 23 | this.img = img; 24 | this.likes = likes; 25 | } 26 | public String getTitle(){ 27 | return title; 28 | } 29 | public String getUsername(){ 30 | return username; 31 | } 32 | public Bitmap getImg(){ 33 | return img; 34 | } 35 | public String getLikes(){ 36 | return likes; 37 | } 38 | public void setTitle(String s){ 39 | this.title = s; 40 | } 41 | public void setUsername(String s){ 42 | this.username = s; 43 | } 44 | public void setImg(Bitmap i){ 45 | this.img = i; 46 | } 47 | public void setLikes(String s){ 48 | this.likes = s; 49 | } 50 | public Bitmap getProfileImg(){ 51 | return (this.profileImg); 52 | } 53 | public void setProfileImg(Bitmap b){ 54 | this.profileImg = b; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/java/com/weaverprojects/insta/db/LoadExternalImgsServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.weaverprojects.insta.db; 2 | 3 | import android.content.Context; 4 | import android.graphics.Bitmap; 5 | import android.graphics.BitmapFactory; 6 | import android.os.AsyncTask; 7 | import android.util.Log; 8 | import android.widget.Toast; 9 | 10 | import com.weaverprojects.insta.InstaTestMainActivity; 11 | import com.weaverprojects.insta.InstaTestSplashActivity; 12 | import com.weaverprojects.insta.UserPost; 13 | 14 | import java.io.InputStream; 15 | import java.net.URL; 16 | 17 | /** 18 | * Created by kweaver on 20/07/15. 19 | */ 20 | public class LoadExternalImgsServerActivity extends AsyncTask { 21 | public static String TAG = "WEAVER_LoadExternalImgsServerActivity_"; 22 | 23 | Context mContext; 24 | Bitmap bitmap; 25 | 26 | int position; 27 | 28 | public LoadExternalImgsServerActivity(Context c) { 29 | super.onPreExecute(); 30 | mContext = c; 31 | } 32 | protected Bitmap doInBackground(String... args) { 33 | String link = args[0]; 34 | Log.v(TAG, "Link:[" + link + "]"); 35 | position = Integer.valueOf(args[1]); 36 | try { 37 | bitmap = BitmapFactory.decodeStream((InputStream) new URL(link).getContent()); 38 | 39 | } catch (Exception e) { 40 | Log.e("WEAVER_DOINBACKGROUND_", "ERROR HERE"); 41 | e.printStackTrace(); 42 | } 43 | return bitmap; 44 | } 45 | 46 | protected void onPostExecute(Bitmap image) { 47 | 48 | if(image != null){ 49 | //UserPost newPost = new UserPost("Title","about",image,"123"); 50 | //if(newPost.getImg()==null){ 51 | // Log.v(TAG, "Bitmap is null"); 52 | //} 53 | //InstaTestMainActivity.mainList.add(newPost); 54 | try{ 55 | UserPost currentPost = InstaTestMainActivity.mainList.get(position); 56 | if(currentPost.getImg() != null){ 57 | Log.e(TAG, "two of the same images."); 58 | }else{ 59 | currentPost.setImg(image); 60 | InstaTestMainActivity.mainList.set(position, currentPost); 61 | InstaTestSplashActivity.imagesLoaded++; 62 | } 63 | }catch (Exception e){ 64 | Log.e(TAG, "Error setting image"); 65 | Log.e(TAG, e.toString()); 66 | } 67 | Toast.makeText(mContext, "Loaded", Toast.LENGTH_SHORT).show(); 68 | }else{ 69 | 70 | //pDialog.dismiss(); 71 | Toast.makeText(mContext, "Image Does Not exist or Network Error", Toast.LENGTH_SHORT).show(); 72 | 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/drawable/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/drawable/comment.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/drawable/fullheart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/drawable/fullheart.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/drawable/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/drawable/like.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 7 | 11 | 12 | 17 | 18 | 19 | 24 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/layout/activity_splash.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | insta 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /android/OldPrototype/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/OldPrototype/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /android/OldPrototype/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /android/OldPrototype/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OldPrototype/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/OldPrototype/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /android/OldPrototype/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/OldPrototype/android/insta.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /android/OldPrototype/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/.name: -------------------------------------------------------------------------------- 1 | OpenInstagram -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/OpenInstagram.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "22.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.expeditionlabs.openinstagram" 9 | minSdkVersion 19 10 | targetSdkVersion 22 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | compile 'com.android.support:appcompat-v7:22.2.1' 25 | } 26 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /home/kweaver/Android/Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/androidTest/java/com/expeditionlabs/openinstagram/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/OpenInstagramSplashActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.content.SharedPreferences; 6 | import android.os.Bundle; 7 | import android.view.Window; 8 | 9 | import com.expeditionlabs.openinstagram.Windows.LogIn.OpenInstagramLogInActivity; 10 | import com.expeditionlabs.openinstagram.Windows.main.OpenInstagramHomeActivity; 11 | import com.expeditionlabs.openinstagram.db.explore.LoadSuggestedPostsServerActivity; 12 | 13 | import java.util.ArrayList; 14 | 15 | 16 | public class OpenInstagramSplashActivity extends Activity { 17 | public static String TAG = "OI_"; 18 | //protected Context mContext; 19 | 20 | @Override 21 | protected void onCreate(Bundle savedInstanceState) { 22 | super.onCreate(savedInstanceState); 23 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 24 | setContentView(R.layout.activity_oi_splash); 25 | //this = mContext.getApplicationContext(); 26 | 27 | int mode = Activity.MODE_PRIVATE; 28 | SharedPreferences loginSharedPreferences; 29 | loginSharedPreferences = getSharedPreferences("openinstagramlogin", mode); 30 | String tempUser = loginSharedPreferences.getString("USERNAME",""); 31 | if(tempUser.length() > 0){ 32 | OpenInstagramHomeActivity.username = tempUser; 33 | 34 | OpenInstagramHomeActivity.listOfExploring = new ArrayList<>(); 35 | 36 | new LoadSuggestedPostsServerActivity(this).execute(tempUser); 37 | 38 | 39 | Intent openLogInWindow = new Intent(this, OpenInstagramHomeActivity.class); 40 | startActivity(openLogInWindow); 41 | }else{ 42 | Intent openLogInWindow = new Intent(this, OpenInstagramLogInActivity.class); 43 | startActivity(openLogInWindow); 44 | } 45 | } 46 | protected void onPause(){ 47 | super.onPause(); 48 | } 49 | protected void onResume(){ 50 | super.onResume(); 51 | } 52 | protected void onDestroy(){ 53 | super.onDestroy(); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/LogIn/OpenInstagramForgotPasswordActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.LogIn; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.Window; 6 | 7 | import com.expeditionlabs.openinstagram.R; 8 | 9 | /** 10 | * Created by kweaver on 27/07/15. 11 | */ 12 | public class OpenInstagramForgotPasswordActivity extends Activity { 13 | public static String TAG = "OI_"; 14 | //protected Context mContext; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 20 | setContentView(R.layout.activity_oi_splash); 21 | //this = mContext.getApplicationContext(); 22 | } 23 | protected void onPause(){ 24 | super.onPause(); 25 | } 26 | protected void onResume(){ 27 | super.onResume(); 28 | } 29 | protected void onDestroy(){ 30 | super.onDestroy(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/LogIn/OpenInstagramForgotPasswordCodeActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.LogIn; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.Window; 6 | 7 | import com.expeditionlabs.openinstagram.R; 8 | 9 | /** 10 | * Created by kweaver on 27/07/15. 11 | */ 12 | public class OpenInstagramForgotPasswordCodeActivity extends Activity { 13 | public static String TAG = "OI_"; 14 | //protected Context mContext; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 20 | setContentView(R.layout.activity_oi_splash); 21 | //this = mContext.getApplicationContext(); 22 | } 23 | protected void onPause(){ 24 | super.onPause(); 25 | } 26 | protected void onResume(){ 27 | super.onResume(); 28 | } 29 | protected void onDestroy(){ 30 | super.onDestroy(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/main/OpenInstagramExploreActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.main; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.os.Bundle; 7 | import android.util.Log; 8 | import android.view.View; 9 | import android.view.Window; 10 | import android.widget.ListView; 11 | import android.widget.TableRow; 12 | 13 | import com.expeditionlabs.openinstagram.R; 14 | import com.expeditionlabs.openinstagram.lib.CustomAdapters.ExploreAdapter; 15 | 16 | /** 17 | * Created by kweaver on 27/07/15. 18 | */ 19 | public class OpenInstagramExploreActivity extends Activity { 20 | public static String TAG = "OpenInstagram_OpenInstagramExploreActivity_"; 21 | protected Context mContext; 22 | 23 | ExploreAdapter mExploreAdapter; 24 | 25 | @Override 26 | protected void onCreate(Bundle savedInstanceState) { 27 | super.onCreate(savedInstanceState); 28 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 29 | setContentView(R.layout.activity_oi_explore); 30 | mContext = this.getApplicationContext(); 31 | 32 | 33 | ListView exploreListView = (ListView) findViewById(R.id.exploreListView); 34 | mExploreAdapter = new ExploreAdapter(this, R.layout.oi_single_explore_row, 35 | OpenInstagramHomeActivity.listOfExploring); 36 | exploreListView.setAdapter(mExploreAdapter); 37 | 38 | Log.v(TAG, "Explore Array Adapter loaded."); 39 | 40 | /* 41 | -------- Bottom Menu ------ 42 | */ 43 | TableRow homeBtn = (TableRow) findViewById(R.id.homeBtn); 44 | homeBtn.setOnClickListener(new View.OnClickListener() { 45 | @Override 46 | public void onClick(View v) { 47 | Intent openHomeWindow = new Intent(v.getContext(), 48 | OpenInstagramHomeActivity.class); 49 | startActivity(openHomeWindow); 50 | } 51 | }); 52 | } 53 | protected void onPause(){ 54 | super.onPause(); 55 | } 56 | protected void onResume(){ 57 | super.onResume(); 58 | } 59 | protected void onDestroy(){ 60 | super.onDestroy(); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/main/OpenInstagramFollowingActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.main; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.Window; 6 | 7 | import com.expeditionlabs.openinstagram.R; 8 | 9 | /** 10 | * Created by kweaver on 27/07/15. 11 | */ 12 | public class OpenInstagramFollowingActivity extends Activity { 13 | public static String TAG = "OI_"; 14 | //protected Context mContext; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 20 | setContentView(R.layout.activity_oi_splash); 21 | //this = mContext.getApplicationContext(); 22 | } 23 | protected void onPause(){ 24 | super.onPause(); 25 | } 26 | protected void onResume(){ 27 | super.onResume(); 28 | } 29 | protected void onDestroy(){ 30 | super.onDestroy(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/main/OpenInstagramProfileActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.main; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.Window; 6 | 7 | import com.expeditionlabs.openinstagram.R; 8 | 9 | /** 10 | * Created by kweaver on 27/07/15. 11 | */ 12 | public class OpenInstagramProfileActivity extends Activity { 13 | public static String TAG = "OI_"; 14 | //protected Context mContext; 15 | 16 | @Override 17 | protected void onCreate(Bundle savedInstanceState) { 18 | super.onCreate(savedInstanceState); 19 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 20 | setContentView(R.layout.activity_oi_splash); 21 | //this = mContext.getApplicationContext(); 22 | } 23 | protected void onPause(){ 24 | super.onPause(); 25 | } 26 | protected void onResume(){ 27 | super.onResume(); 28 | } 29 | protected void onDestroy(){ 30 | super.onDestroy(); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/main/OpenInstagramSearchActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.main; 2 | 3 | /** 4 | * Created by Weaver on 15-07-31. 5 | */ 6 | public class OpenInstagramSearchActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/Windows/main/OpenInstagramSinglePostActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.Windows.main; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.os.Bundle; 6 | import android.view.Window; 7 | import android.widget.ListView; 8 | 9 | import com.expeditionlabs.openinstagram.R; 10 | import com.expeditionlabs.openinstagram.db.singlePost.LoadSinglePostServerActivity; 11 | import com.expeditionlabs.openinstagram.lib.CustomAdapters.PostAdapter; 12 | import com.expeditionlabs.openinstagram.lib.CustomElements.Post; 13 | 14 | import java.util.ArrayList; 15 | 16 | /** 17 | * Created by kweaver on 27/07/15. 18 | */ 19 | public class OpenInstagramSinglePostActivity extends Activity { 20 | public static String TAG = "OI_"; 21 | protected Context mContext; 22 | 23 | public static String postImgCode = ""; 24 | 25 | public static ArrayList singleListOfExplore; 26 | 27 | ListView exploreListview; 28 | PostAdapter mPostAdapter; 29 | 30 | @Override 31 | protected void onCreate(Bundle savedInstanceState) { 32 | super.onCreate(savedInstanceState); 33 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 34 | setContentView(R.layout.activity_oi_single_post); 35 | mContext = this.getApplicationContext(); 36 | 37 | singleListOfExplore = new ArrayList(); 38 | 39 | new LoadSinglePostServerActivity(mContext).execute(postImgCode); 40 | 41 | exploreListview = (ListView) findViewById(R.id.exploreListview); 42 | mPostAdapter = new PostAdapter(this, R.layout.oi_single_post, singleListOfExplore); 43 | exploreListview.setAdapter(mPostAdapter); 44 | 45 | } 46 | protected void onPause(){ 47 | super.onPause(); 48 | } 49 | protected void onResume(){ 50 | super.onResume(); 51 | } 52 | protected void onDestroy(){ 53 | super.onDestroy(); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/following/LoadPastDayForPplFollowingCommentsServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.following; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class LoadPastDayForPplFollowingCommentsServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/following/LoadPastDayForPplFollowingLikesServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.following; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class LoadPastDayForPplFollowingLikesServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/following/LoadPastDayForPplFollowingNewFollowingServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.following; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class LoadPastDayForPplFollowingNewFollowingServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/general/FollowUserServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.general; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class FollowUserServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/general/UnfollowUserServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.general; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class UnfollowUserServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/login/CheckLoggedInServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.login; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class CheckLoggedInServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/login/CheckUserNameTakenServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.login; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class CheckUserNameTakenServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/db/profile/LoadProfileServerActivity.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.db.profile; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class LoadProfileServerActivity { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/C.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib; 2 | 3 | /** 4 | * Created by Weaver on 15-08-26. 5 | */ 6 | public class C { 7 | } 8 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/CustomElements/ExplorePost.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib.CustomElements; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | /** 6 | * Created by Keith on 2015-07-30. 7 | */ 8 | public class ExplorePost { 9 | String postCode1; 10 | String imgLink1; 11 | Bitmap img1; 12 | 13 | String postCode2; 14 | String imgLink2; 15 | Bitmap img2; 16 | 17 | String postCode3; 18 | String imgLink3; 19 | Bitmap img3; 20 | 21 | public ExplorePost(String postCode1, String imgLink1, Bitmap img1, 22 | String postCode2, String imgLink2, Bitmap img2, 23 | String postCode3, String imgLink3, Bitmap img3){ 24 | super(); 25 | this.postCode1 = postCode1; 26 | this.imgLink1 = imgLink1; 27 | this.img1 = img1; 28 | 29 | this.postCode2 = postCode2; 30 | this.imgLink2 = imgLink2; 31 | this.img2 = img2; 32 | 33 | this.postCode3 = postCode3; 34 | this.imgLink3 = imgLink3; 35 | this.img3 = img3; 36 | } 37 | public String getPostCode1(){ 38 | return this.postCode1; 39 | } 40 | public String getImgLink1(){ 41 | return this.imgLink1; 42 | } 43 | public Bitmap getImg1(){ 44 | return this.img1; 45 | } 46 | public String getPostCode2(){ 47 | return this.postCode2; 48 | } 49 | public String getImgLink2(){ 50 | return this.imgLink2; 51 | } 52 | public Bitmap getImg2(){ 53 | return this.img2; 54 | } 55 | public String getPostCode3(){ 56 | return this.postCode3; 57 | } 58 | public String getImgLink3(){ 59 | return this.imgLink3; 60 | } 61 | public Bitmap getImg3(){ 62 | return this.img3; 63 | } 64 | public void setImg1(Bitmap b){ 65 | this.img1 = b; 66 | } 67 | public void setImg2(Bitmap b){ 68 | this.img2 = b; 69 | } 70 | public void setImg3(Bitmap b){ 71 | this.img3 = b; 72 | } 73 | public void setImgLink1(String l){ 74 | this.imgLink1 = l; 75 | } 76 | public void setImgLink2(String l){ 77 | this.imgLink2 = l; 78 | } 79 | public void setImgLink3(String l){ 80 | this.imgLink3 = l; 81 | } 82 | public void setPostCode1(String c){ 83 | this.postCode1 = c; 84 | } 85 | public void setPostCode2(String c){ 86 | this.postCode2 = c; 87 | } 88 | public void setPostCode3(String c){ 89 | this.postCode3 = c; 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/CustomElements/FollowingAction.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib.CustomElements; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | /** 6 | * Created by kweaver on 28/07/15. 7 | */ 8 | public class FollowingAction { 9 | int action; // 1 is like, 2 is comment, 3 is following 10 | 11 | String postCode; 12 | Bitmap postImg; 13 | String postImgLink; 14 | String posterUsername; 15 | 16 | String usernameOfUserPerformingAction; 17 | Bitmap profileImgOfUserPerformingAction; 18 | String profileImgLinkOfUserPerformingAction; 19 | 20 | int timeWhenActionHappened; 21 | 22 | 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/CustomElements/Post.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib.CustomElements; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | import java.util.ArrayList; 6 | 7 | /** 8 | * Created by kweaver on 28/07/15. 9 | */ 10 | public class Post { 11 | public static String TAG= ""; 12 | 13 | String postCode; 14 | 15 | //Top elements 16 | int timesincepost; 17 | String username; 18 | Bitmap userProfileImg; 19 | String userProfileImgLink; 20 | 21 | //Post 22 | Bitmap postImg; 23 | String postImgLink; 24 | 25 | //Bottom 26 | int likes; 27 | String caption; 28 | ArrayList comments; 29 | 30 | public Post(String postCode, int timeSincePost, String username, Bitmap userProfileImg, 31 | String userProfileImgLink, Bitmap postImg, String postImgLink, int likes, 32 | String caption, ArrayList comments){ 33 | super(); 34 | this.postCode = postCode; 35 | this.timesincepost = timeSincePost; 36 | this.username = username; 37 | this.userProfileImg = userProfileImg; 38 | this.userProfileImgLink = userProfileImgLink; 39 | this.postImg = postImg; 40 | this.postImgLink = postImgLink; 41 | this.likes = likes; 42 | this.caption = caption; 43 | this.comments = comments; 44 | } 45 | 46 | public String getPostCode(){ 47 | return this.postCode; 48 | } 49 | public int getTimeSincePost(){ 50 | return this.timesincepost; 51 | } 52 | public String getUsername(){ 53 | return this.username; 54 | } 55 | public Bitmap getUserProfileImg(){ 56 | return this.userProfileImg; 57 | } 58 | public String getUserProfileImgLink(){ 59 | return this.userProfileImgLink; 60 | } 61 | public Bitmap getImg(){ 62 | return this.postImg; 63 | } 64 | public String getPostImgLink(){ 65 | return this.postImgLink; 66 | } 67 | public int getLikes(){ 68 | return this.likes; 69 | } 70 | public String getCaption(){ 71 | return this.caption; 72 | } 73 | public ArrayList getComments(){ 74 | return this.comments; 75 | } 76 | public void setImg(Bitmap b){ 77 | this.postImg = b; 78 | } 79 | public void setUserProfileImg(Bitmap b){ 80 | this.userProfileImg = b; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/CustomElements/PostComment.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib.CustomElements; 2 | 3 | /** 4 | * Created by kweaver on 28/07/15. 5 | */ 6 | public class PostComment { 7 | String postCode; 8 | String commenterUsername; 9 | String commentContent; 10 | } 11 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/java/com/expeditionlabs/openinstagram/lib/CustomElements/Profile.java: -------------------------------------------------------------------------------- 1 | package com.expeditionlabs.openinstagram.lib.CustomElements; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by kweaver on 28/07/15. 7 | */ 8 | public class Profile { 9 | String username; 10 | String fullName; 11 | String bio; 12 | int followers; 13 | int following; 14 | 15 | boolean isAlreadyFollowing; 16 | 17 | ArrayList posts; 18 | } 19 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/comment.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/explore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/explore.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/fullheart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/fullheart.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/gradient.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/home.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/homead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/homead.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/instagramlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/instagramlogo.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/instagramlogowhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/instagramlogowhite.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/like.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/magnify.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/magnifyy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/magnifyy.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/oval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/oval.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/profile.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/drawable/upload.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/layout/activity_oi_splash.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 16 | 17 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/layout/oi_single_action_following.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 17 | 18 | 28 | 29 | 38 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/menu/menu_open_instagram_splash.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Open Instagram 3 | 4 | Hello world! 5 | Settings 6 | 7 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/Old_FullVersion/OpenInstagram/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 10 15:27:10 PDT 2013 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip 7 | -------------------------------------------------------------------------------- /android/Old_FullVersion/OpenInstagram/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /android/OpenInstagram/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/.name: -------------------------------------------------------------------------------- 1 | Open Instagram -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /android/OpenInstagram/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "ca.keithweaver.openinstagram" 9 | minSdkVersion 19 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.1' 26 | compile 'com.android.support:design:23.1.1' 27 | 28 | compile 'com.android.support:appcompat-v7:23.1.1' 29 | compile 'com.android.support:design:23.1.1' 30 | compile 'com.squareup.picasso:picasso:2.5.2' 31 | 32 | //Below required for Retrofit 33 | compile 'com.google.code.gson:gson:2.3' 34 | compile 'org.parceler:parceler:0.2.13' 35 | compile 'com.squareup.retrofit:retrofit:1.9.0' 36 | compile 'com.squareup:otto:1.3.6' 37 | compile 'com.squareup.okhttp:okhttp:2.3.0' 38 | compile 'com.squareup.okhttp:okhttp-urlconnection:2.3.0' 39 | 40 | //GCM 41 | compile 'com.google.android.gms:play-services-gcm:7.8.0' 42 | 43 | //Tabs 44 | compile 'it.neokree:MaterialTabs:0.11' 45 | } 46 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/keithweaver/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/androidTest/java/ca/keithweaver/openinstagram/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/C.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.Controller; 2 | 3 | /** 4 | * Created by keithweaver on 16-08-11. 5 | */ 6 | public class C { 7 | public static final String API_KEY = "example"; 8 | public static final String GOOGLE_PROJECT_ID = ""; 9 | 10 | public class sharedPreferences{ 11 | public static final String ACCOUNT = "open_instagram_account"; 12 | public static final String DEVICE = "open_instagram_device"; 13 | public static final String USER_NAME = "open_instagram_user_name"; 14 | public static final String EMAIL = "open_instagram_email"; 15 | public static final String LOG_IN_TOKEN = "open_instagram_log_in_token"; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/GCM/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/GCM/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/Server/InstaAPI.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.Controller.Server; 2 | 3 | import ca.keithweaver.openinstagram.Model.ServerResponse.ResGeneral; 4 | import ca.keithweaver.openinstagram.Model.ServerResponse.ResLogIn; 5 | import retrofit.Callback; 6 | import retrofit.http.Field; 7 | import retrofit.http.FormUrlEncoded; 8 | import retrofit.http.POST; 9 | 10 | /** 11 | * Created by keithweaver on 16-08-11. 12 | */ 13 | public interface InstaAPI { 14 | 15 | String ENDPOINT = ""; 16 | 17 | 18 | @FormUrlEncoded 19 | @POST("/login/signup") 20 | void signUp(@Field("apikey") String apiKey, @Field("email") String email, @Field("password") String password, Callback callback); 21 | 22 | @FormUrlEncoded 23 | @POST("/login/login") 24 | void logIn(@Field("apikey") String apiKey, @Field("email") String email, @Field("password") String password, Callback callback); 25 | 26 | @FormUrlEncoded 27 | @POST("/login/update-username") 28 | void updateUserName(@Field("apikey") String apiKey, @Field("email") String email, @Field("password") String password, @Field("username") String newUserName, Callback callback); 29 | 30 | @FormUrlEncoded 31 | @POST("/login/register-device") 32 | void registerDevice(@Field("apikey") String apiKey, @Field("email") String email, @Field("token") String token, @Field("device") String device, Callback callback); 33 | 34 | @FormUrlEncoded 35 | @POST("/login/check-login-token") 36 | void checkLogInToken(@Field("apikey") String apiKey, @Field("email") String email, @Field("token") String token, @Field("username") String username, Callback callback); 37 | 38 | @FormUrlEncoded 39 | @POST("/login/check-taken-username") 40 | void checkTakenUserName(@Field("apikey") String apiKey, @Field("username") String username, Callback callback); 41 | 42 | } 43 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/Server/InstaRestClient.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.Controller.Server; 2 | 3 | import com.google.gson.Gson; 4 | import com.google.gson.GsonBuilder; 5 | import com.squareup.okhttp.OkHttpClient; 6 | 7 | import retrofit.RestAdapter; 8 | import retrofit.client.OkClient; 9 | import retrofit.converter.GsonConverter; 10 | /** 11 | * Created by keithweaver on 16-08-11. 12 | */ 13 | public class InstaRestClient { 14 | private static InstaAPI sSIClient; 15 | 16 | public static InstaAPI get(){ 17 | if (sSIClient == null){ 18 | setupClient(); 19 | } 20 | return sSIClient; 21 | } 22 | 23 | private static void setupClient(){ 24 | Gson gson = new GsonBuilder() 25 | .registerTypeAdapter(Object.class, new NaturalDeserializer()) 26 | .create(); 27 | 28 | RestAdapter.Builder builder = new RestAdapter.Builder(); 29 | builder.setEndpoint(InstaAPI.ENDPOINT); 30 | builder.setClient(new OkClient(getHttpClient())); 31 | builder.setLogLevel(RestAdapter.LogLevel.FULL); 32 | builder.setConverter(new GsonConverter(gson)); 33 | 34 | RestAdapter restAdapter = builder.build(); 35 | sSIClient = restAdapter.create(InstaAPI.class); 36 | } 37 | 38 | private static OkHttpClient getHttpClient(){ 39 | OkHttpClient client = new OkHttpClient(); 40 | return client; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/Server/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Controller/Server/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/ServerResponse/ResGeneral.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.Model.ServerResponse; 2 | 3 | /** 4 | * Created by keithweaver on 16-08-11. 5 | */ 6 | public class ResGeneral { 7 | int success; 8 | String message; 9 | 10 | public ResGeneral(int success, String message) { 11 | this.success = success; 12 | this.message = message; 13 | } 14 | 15 | public int getSuccess() { 16 | return success; 17 | } 18 | 19 | public String getMessage() { 20 | return message; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/ServerResponse/ResLogIn.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.Model.ServerResponse; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by keithweaver on 16-08-11. 7 | */ 8 | public class ResLogIn { 9 | int success; 10 | String message; 11 | ArrayList usernames; 12 | 13 | public ResLogIn(int success, String message, ArrayList usernames) { 14 | this.success = success; 15 | this.message = message; 16 | this.usernames = usernames; 17 | } 18 | 19 | public int getSuccess() { 20 | return success; 21 | } 22 | 23 | public String getMessage() { 24 | return message; 25 | } 26 | 27 | public ArrayList getUsernames() { 28 | return usernames; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/ServerResponse/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/ServerResponse/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/Model/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Adapters/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Adapters/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/LogIn/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/LogIn/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/ExploreFragment.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.View.Windows.Main; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import ca.keithweaver.openinstagram.R; 11 | 12 | /** 13 | * Created by keithweaver on 16-07-19. 14 | */ 15 | public class ExploreFragment extends Fragment { 16 | protected Activity mActivity; 17 | private static final String TAG = ExploreFragment.class.getSimpleName(); 18 | 19 | 20 | 21 | @Override 22 | public void onAttach(Activity act) 23 | { 24 | super.onAttach(act); 25 | mActivity = act; 26 | 27 | } 28 | 29 | @Override 30 | public void onCreate(Bundle saveInstanceState) 31 | { 32 | super.onCreate(saveInstanceState); 33 | } 34 | 35 | @Override 36 | public void onActivityCreated(Bundle saveInstanceState) 37 | { 38 | super.onActivityCreated(saveInstanceState); 39 | } 40 | 41 | @Override 42 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 43 | Bundle savedInstanceState) { 44 | View view = inflater.inflate(R.layout.fragment_explore, container, false); 45 | 46 | view = declareUIObjects(view); 47 | 48 | 49 | 50 | return view; 51 | } 52 | 53 | 54 | @Override 55 | public void onResume(){ 56 | super.onResume(); 57 | 58 | 59 | } 60 | 61 | 62 | protected View declareUIObjects(View view){ 63 | // mainSolutionsListView = (ListView) view.findViewById(R.id.mainSolutionsListView); 64 | return view; 65 | 66 | } 67 | } -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/FeedFragment.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.View.Windows.Main; 2 | 3 | import android.app.Activity; 4 | import android.graphics.Color; 5 | import android.os.Bundle; 6 | import android.os.Handler; 7 | import android.support.v4.app.Fragment; 8 | import android.support.v4.widget.SwipeRefreshLayout; 9 | import android.view.LayoutInflater; 10 | import android.view.View; 11 | import android.view.ViewGroup; 12 | 13 | import ca.keithweaver.openinstagram.R; 14 | 15 | /** 16 | * Created by keithweaver on 16-07-19. 17 | */ 18 | public class FeedFragment extends Fragment implements SwipeRefreshLayout.OnRefreshListener { 19 | protected Activity mActivity; 20 | private static final String TAG = FeedFragment.class.getSimpleName(); 21 | 22 | SwipeRefreshLayout swipeLayout; 23 | 24 | @Override 25 | public void onAttach(Activity act) 26 | { 27 | super.onAttach(act); 28 | mActivity = act; 29 | 30 | } 31 | 32 | @Override 33 | public void onCreate(Bundle saveInstanceState) 34 | { 35 | super.onCreate(saveInstanceState); 36 | } 37 | 38 | @Override 39 | public void onActivityCreated(Bundle saveInstanceState) 40 | { 41 | super.onActivityCreated(saveInstanceState); 42 | } 43 | 44 | @Override 45 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 46 | Bundle savedInstanceState) { 47 | View view = inflater.inflate(R.layout.fragment_feed, container, false); 48 | 49 | view = declareUIObjects(view); 50 | 51 | swipeLayout.setOnRefreshListener(this); 52 | swipeLayout.setColorSchemeColors(android.R.color.holo_purple, android.R.color.holo_red_light);//bug here, not same as demo cause it was depreciated 53 | 54 | 55 | 56 | return view; 57 | } 58 | 59 | 60 | @Override 61 | public void onResume(){ 62 | super.onResume(); 63 | 64 | 65 | } 66 | 67 | 68 | protected View declareUIObjects(View view){ 69 | // mainSolutionsListView = (ListView) view.findViewById(R.id.mainSolutionsListView); 70 | 71 | swipeLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_container); 72 | 73 | return view; 74 | 75 | } 76 | 77 | @Override 78 | public void onRefresh() { 79 | new Handler().postDelayed(new Runnable() { 80 | @Override 81 | public void run() { 82 | swipeLayout.setRefreshing(false); 83 | } 84 | }, 5000); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/FriendsFragment.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.View.Windows.Main; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import ca.keithweaver.openinstagram.R; 11 | 12 | /** 13 | * Created by keithweaver on 16-07-19. 14 | */ 15 | public class FriendsFragment extends Fragment { 16 | protected Activity mActivity; 17 | private static final String TAG = FriendsFragment.class.getSimpleName(); 18 | 19 | 20 | 21 | @Override 22 | public void onAttach(Activity act) 23 | { 24 | super.onAttach(act); 25 | mActivity = act; 26 | 27 | } 28 | 29 | @Override 30 | public void onCreate(Bundle saveInstanceState) 31 | { 32 | super.onCreate(saveInstanceState); 33 | } 34 | 35 | @Override 36 | public void onActivityCreated(Bundle saveInstanceState) 37 | { 38 | super.onActivityCreated(saveInstanceState); 39 | } 40 | 41 | @Override 42 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 43 | Bundle savedInstanceState) { 44 | View view = inflater.inflate(R.layout.fragment_friends, container, false); 45 | 46 | view = declareUIObjects(view); 47 | 48 | 49 | 50 | return view; 51 | } 52 | 53 | 54 | @Override 55 | public void onResume(){ 56 | super.onResume(); 57 | 58 | 59 | } 60 | 61 | 62 | protected View declareUIObjects(View view){ 63 | // mainSolutionsListView = (ListView) view.findViewById(R.id.mainSolutionsListView); 64 | return view; 65 | 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/Post/PostInfoActivity.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.View.Windows.Main.Post; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | 6 | import ca.keithweaver.openinstagram.R; 7 | 8 | /** 9 | * Created by keithweaver on 16-08-11. 10 | */ 11 | public class PostInfoActivity extends AppCompatActivity { 12 | @Override 13 | protected void onCreate(Bundle saveInstanceState) { 14 | super.onCreate(saveInstanceState); 15 | setContentView(R.layout.activity_post_info); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/ProfileFragment.java: -------------------------------------------------------------------------------- 1 | package ca.keithweaver.openinstagram.View.Windows.Main; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | import ca.keithweaver.openinstagram.R; 11 | 12 | /** 13 | * Created by keithweaver on 16-07-19. 14 | */ 15 | public class ProfileFragment extends Fragment { 16 | protected Activity mActivity; 17 | private static final String TAG = ProfileFragment.class.getSimpleName(); 18 | 19 | 20 | 21 | @Override 22 | public void onAttach(Activity act) 23 | { 24 | super.onAttach(act); 25 | mActivity = act; 26 | 27 | } 28 | 29 | @Override 30 | public void onCreate(Bundle saveInstanceState) 31 | { 32 | super.onCreate(saveInstanceState); 33 | } 34 | 35 | @Override 36 | public void onActivityCreated(Bundle saveInstanceState) 37 | { 38 | super.onActivityCreated(saveInstanceState); 39 | } 40 | 41 | @Override 42 | public View onCreateView(LayoutInflater inflater, ViewGroup container, 43 | Bundle savedInstanceState) { 44 | View view = inflater.inflate(R.layout.fragment_profile, container, false); 45 | 46 | view = declareUIObjects(view); 47 | 48 | 49 | 50 | return view; 51 | } 52 | 53 | 54 | @Override 55 | public void onResume(){ 56 | super.onResume(); 57 | 58 | 59 | } 60 | 61 | 62 | protected View declareUIObjects(View view){ 63 | // mainSolutionsListView = (ListView) view.findViewById(R.id.mainSolutionsListView); 64 | return view; 65 | 66 | } 67 | } -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Main/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Settings/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/Settings/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/Windows/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/View/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/placeholder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/java/ca/keithweaver/openinstagram/placeholder.txt -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/explore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/explore.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/fullheart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/fullheart.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/gradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/gradient.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/home.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/homead.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/homead.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/instagramlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/instagramlogo.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/instagramlogowhite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/instagramlogowhite.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/like.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/like.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/magnify.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/magnifyy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/magnifyy.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/oval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/oval.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/profile.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/drawable/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keithweaver/Instagram-Template-Android/ae15430b99c8fe3dbddfca0a5c07f4cbc26c52a2/android/OpenInstagram/app/src/main/res/drawable/upload.png -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/layout/activity_login.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 22 | 26 | 27 | 28 | 36 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 11 | 17 | 18 | 19 | 20 | 27 | 28 | 36 | -------------------------------------------------------------------------------- /android/OpenInstagram/app/src/main/res/layout/activity_post.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | 17 | 18 |