3/01/2016

News App Template Android- Source Code

New App Template Android- Source Code

This news template is designed for Android which run under Android Platform. You can use it as your own new application. Admin panel is highly customizated, so you cna manage categories, news and user profile information. You can also change username and password for admin with generate password functionality. 

Server side is developed in PHP MySQL. You can save money and time to create a new application with this android application template. 

It contains following files:
  • Source Code Eclipse
  • Source Code Android Studio
  • PHP admin files
  • Database files
  • Documentation 
  • Apk File
  • PSD Files

Before doing installation, you need to do the following things :
  1. Have a web hosting to store admin panel files and SQL database. Because this documentation using cpanel, a web hosting with cpanel is recommended, if you want work with offline mode, you can use local webserver like xampp, ect with latest version
  2. Install tools that requires for developing Android app such as Java Development Kit, Eclipse, Android SDK and ADT plugin. For updated tutorial about how to install them, you can see on Android Developer website. If you do all things above, you can go to the next step.

How to Import the Project in Eclipse?
  1. Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next
  2. Root Directory > Click Browse button & browse the project folder > Select 'Android News App' as main project and 'google-play-service_lib' as library. 
  3. Then go to 'Project' Menu > Clean.. > Clean All Projects > OK
  4. Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.

  1. Open Eclipse >Android News App > res > values > strings.xml
  2. Select 'strings.xml' tab next to 'Resources' tab
  3. Enter your app name inside "app_name" string tag :
  4. <string name="app_name">Android News App</string>
  5. if you want change Project name also then >Right Cilck 'Android News App' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish
  6. This will change both title inside the app & app icon name. 
  1. Open Eclipse >E-Commerce Android App> res > values > colors.xml
  2. Select 'colors.xml' tab next to 'Resources' tab
  3. Enter your color code inside "header" color tag :
  4. <color name="header">#3f51b5</color>
  5. This will change the header app & app main color.  
  1. First of all find the 'news' folder from the downloaded package.
  2. Copy these folder and paste it in the htdocs folder (if you have Wampp installed then put it into www, if you have Xampp installed then put it into htdocs)
  3. Open your web browser and go to phpmyadmin page : http://localhost/phpmyadmin, then create a database with name ' news' or your own database name and import the database from the 'db' folder.
  4. After creating database configure the connection file, open 'variables.php' in folder 'variables' which is in the includes folder of your php admin code package.
  5. That’s all,now run the webservice : http://localhost/news or your domain name. 
  1. Find file 'api.php' inside news directory from php code admin.
  2. Change DB Host, User, Password and Name same with your database configuration in webservice. 

Username : admin
Password : admin
  1. Select Project go to : src > com.news.app > Constant.java Class
  2. Open Constant.java
  3. Change with your own Url address, as example : if your Sever is http://xyz.com/news so your service url like that http://xyz.com/news/..../.php, ect. 
  1. Open Eclipse > Android News App > res > values > strings.xml
  2. Select 'strings.xml' tab next to 'Resources' tab
  3. Enter your AdMob publisher id inside "admob_publisher_id" string tag for banner ads :
    <string name="admob_publisher_id">Your AdMob Banner ID</string>
  4. Enter your AdMob publisher id inside "admob_interstitial_id" string tag for interstitial ads :
    <string name="admob_interstitial_id">Your AdMob Interstitial ID</string> 
  1. Open Eclipse > Android News App > res > values > strings.xml
  2. Select 'strings.xml' tab next to 'Resources' tab
  3. Enter your StartApp Application id inside"startapp_app_id" string tag:
    <string name="startapp_app_id">Your StartApp ID</string>
  4. Enter your StartApp Developer id inside "startapp_dev_id" string tag:
    <string name="startapp_dev_id">Your StartApp Developer ID</string>
  5. Open AndroidMainfiest.xml > Change in StartApp Code 
  1. First open parse.com & Register and Login with your Account.
  2. Press button Create New App in Right Side.
  3. Enter Your App Name
  4. Copy Application Id, Client key.
  5. Open Eclipse > Android News App > res > values > strings.xml
  6. Enter your Parse Application Id inside "parse_application_id" string tag:
    <string name="parse_application_id">Your Parse Application Id</string>
  7. Enter your Parse Client Key Link inside "parse_client_key" string tag:
    <string name="parse_client_key">Your Parse Client Key</string> 
  1. Open Eclipse > Android News App > res > layout
  2. Select and Open 'lsv_item_recent.xml' and 'lsv_item_news_list.xml'
  3. Add attribute string tag in line code textview with have id name @+id/txt_newslistdate.... for each string file like below :
    1. android:visibility="invisible"
  4. for the complete code like picture below : 
  1. Open Eclipse > Android News App > res > drawable-hdpi > ic_launcher.png
  2. Rename your icon with ic_logo_app.png and paste > replace in drawable-hdpi folder 
  3. Do the same with on /drawable-mdpi/, /drawable-xhdpi/, and /drawable-xxhdpi/.


Icon:


android app source code

Download Links:


Link 1: Download
Link 2: Download

3 comments:

  1. Download link not working

    ReplyDelete
  2. Thanks for the source code. I am looking forward for Jasper template? Do you access to it.?

    ReplyDelete
  3. Anonymous10/07/2019

    Download link not working

    ReplyDelete

Thank you for your comment.

Copyright © 2016 Android Help and Tutorials All Right Reserved