Worcipe App – Full Application Android

Recipe app

  1. Support for Ice Cream Sandwich (Android 4.0.3) and newer
  2. Developed with Android Studio & Gradle
  3. Material design following Android Design Guidelines
  4. Included BMI Calculator
  5. Staggered Grid View
  6. Eight color themes blue, brown, carrot, gray, green, indigo, red, yellow
  7. Animations and effects
  8. Animated action bar
  9. Animated floating action button
  10. Parallax scrolling effect
  11. Quick return effect
  12. Ripple effect
  13. Navigation drawer menu
  14. List of Recipes
  15. Search for Recipe with suggestion
  16. Save Recipe to favorite list
  17. Recipe detail screen
  18. Share Recipes on social sites
  19. Settings Activity with theme changing
  20. Data stored in external mysql database php admin
  21. Caching images
  22. Google Analytics
  23. Google AdMob
  24. Support for high-resolution displays (xxhdpi)
  25. Multi-language support
  26. Easy configuration
  27. Quality clean code

Import the project to android studio. Unzip the package and import or open the project in Android Studio. Choose "Import project" on Quick Start screen and select "workoutrecipes" directory

Video can help you with importing : https://www.youtube.com/watch?v=nUuFuFLQ2bE

1.Create new package in java directory, e.g. "com.yourname.yourapp". Right click on mobile/src/main/java directory -> New -> Package.

2.Select all packages and classes in "com.gabriel.workoutrecipes" and move (drag) them to the new package. Confirm by click on "Do Refactor".

3.Delete the old package " com.gabriel. workoutrecipes ".

4.Open mobile/src/main/AndroidManifest.xml and rename the package name. Select package name " com.gabriel. workoutrecipes " -> Right click on selected text -> Refactor -> Rename -> enter the new package name, select "Search in comments and strings" option -> Refactor -> Do Refactor.

5.Clean the project. Main menu -> Build -> Clean Project.

6.Replace all occurrences of "com.gabriel. workoutrecipes " for a new package name, e.g. " com.yourname.yourapp ". Right click on mobile directory -> Replace in Path -> set old and new package names, Case sensitive to true -> Find -> Replace.

7.Clean the project again. Main menu -> Build -> Clean Project.

8.Synchronize the project. Main menu -> Tools -> Android -> Sync Project with Gradle Files.

9.If you see "Activity class does not exist" error, restart Android Studio.

Open mobile/src/main/res/values/strings.xml and change "Worcipe App" to your own name. Change app_name string.

Open mobile/src/main/AndroidManifest.xml and change value of application.android:theme attribute.You can change your theme directly in app Settings. There are 8 themes you can use:









You also have to modify MainActivity's theme. Main Activity uses a special theme with transparent status bar because of navigation drawer status overlay effect. It is an activity.android:theme attribute. Choose one of these themes:









Data (categories, recipes, admin info) are stored in external mysql database.

Database creation

Open phpmyadmin

Create database and give database name like you want, as example : 'worcipe

Import database worcipe.sql from package inside 'database' folder

After creating database configure the connection file, open 'includes.php' in root folder of your package.

configure your database setting :

define('DB_SERVER', 'yourhost');

define('DB_SERVER_USERNAME', 'yourname');

define('DB_SERVER_PASSWORD', 'yourpassword');

define('DB_DATABASE', 'yourdatabasename');

That’s all, now run the webservice : http://yourweb/worcipe

Username : admin

Password : admin

Open Android Studio > app > java > yourpackagename > RecipeConfig.java

Open RecipeConfig.java

public static final String SERVER_URL = "http://gabriel7.php5.cz/worcipe";

Change with your own Url address, as example : if your Sever is http://yourweb.com/worcipe so your service url like that http://yourweb.com/worcipe

Open mobile/src/main/res/xml/analytics_app_tracker.xml and change UA code (ga_trackingId parameter) to your own UA code. You can enable/disable Google Analytics in configuration file /mobile/src/main/java/com/gabriel/workoutrecipes/RecipeConfig.java.

Open mobile/src/main/res/values/strings.xml and change unit ids (banner_ad_unit_id) to your own unit ids (banner ids).You can enable/disable AdMob banners in configuration file /mobile/src/main/java/com/gabriel/workoutrecipes/RecipeConfig.java.

Create a new directory mobile/src/main/res/values-xx where xx is an ISO 639-1 code of the language you want to translate. For example "values-es" for Spanish, "values-fr" for French, "values-de" for German etc. Copy strings.xml from mobile/src/main/res/values into the new directory. Now you can translate texts for specific languages. The language is automatically determined by system device settings. If there is no match with values-xx language, default language in mobile/src/main/res/values is selected. See Localizing with Resources for more info.