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
Getting Started
Before doing installation, you need to do the following things :
- 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
- 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?
- Open Eclipse > Import > Android > "Existing Android Code into Worksplace" > Next
- Root Directory > Click Browse button & browse the project folder > Select 'Android News App' as main project and 'google-play-service_lib' as library.
- Then go to 'Project' Menu > Clean.. > Clean All Projects > OK
- Wait for few minutes until all errors are gone. Ignore any warning appears in 'Problems' tab.
How to Change Application Name?
- Open Eclipse >Android News App > res > values > strings.xml
- Select 'strings.xml' tab next to 'Resources' tab
- Enter your app name inside "app_name" string tag :
- <string name="app_name">Android News App</string>
- if you want change Project name also then >Right Cilck 'Android News App' project from Package Explorer >Refactor > Rename >Enter Application Name > Finish
- This will change both title inside the app & app icon name.
How to Change Header App Color?
- Open Eclipse >E-Commerce Android App> res > values > colors.xml
- Select 'colors.xml' tab next to 'Resources' tab
- Enter your color code inside "header" color tag :
- <color name="header">#3f51b5</color>
- This will change the header app & app main color.
How to Configure Webservice In Your Server?
- First of all find the 'news' folder from the downloaded package.
- 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)
- 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.
- 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.
- That’s all,now run the webservice : http://localhost/news or your domain name.
How to Configure Api Service to Connect Data in Android App?
- Find file 'api.php' inside news directory from php code admin.
- Change DB Host, User, Password and Name same with your database configuration in webservice.
Username and Password For Login into Admin Panel
Username : admin
Password : admin
How to put Server Url in Application?
- Select Project go to : src > com.news.app > Constant.java Class
- Open Constant.java
- 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.
How to Change AdMob Publisher Id?
- Open Eclipse > Android News App > res > values > strings.xml
- Select 'strings.xml' tab next to 'Resources' tab
- Enter your AdMob publisher id inside "admob_publisher_id" string tag for banner ads :
<string name="admob_publisher_id">Your AdMob Banner ID</string> - Enter your AdMob publisher id inside "admob_interstitial_id" string tag for interstitial ads :
<string name="admob_interstitial_id">Your AdMob Interstitial ID</string>
How to change StartApp Id?
- Open Eclipse > Android News App > res > values > strings.xml
- Select 'strings.xml' tab next to 'Resources' tab
- Enter your StartApp Application id inside"startapp_app_id" string tag:
<string name="startapp_app_id">Your StartApp ID</string> - Enter your StartApp Developer id inside "startapp_dev_id" string tag:
<string name="startapp_dev_id">Your StartApp Developer ID</string> - Open AndroidMainfiest.xml > Change in StartApp Code
How to change Push notification Application Id?
- First open parse.com & Register and Login with your Account.
- Press button Create New App in Right Side.
- Enter Your App Name
- Copy Application Id, Client key.
- Open Eclipse > Android News App > res > values > strings.xml
- Enter your Parse Application Id inside "parse_application_id" string tag:
<string name="parse_application_id">Your Parse Application Id</string> - Enter your Parse Client Key Link inside "parse_client_key" string tag:
<string name="parse_client_key">Your Parse Client Key</string>
How to Disable Date Display in News List?
- Open Eclipse > Android News App > res > layout
- Select and Open 'lsv_item_recent.xml' and 'lsv_item_news_list.xml'
- Add attribute string tag in line code textview with have id name @+id/txt_newslistdate.... for each string file like below :
- android:visibility="invisible"
- for the complete code like picture below :
How to Change the Application Icon?
- Open Eclipse > Android News App > res > drawable-hdpi > ic_launcher.png
- Rename your icon with ic_logo_app.png and paste > replace in drawable-hdpi folder
- Do the same with on /drawable-mdpi/, /drawable-xhdpi/, and /drawable-xxhdpi/.

Icon:
Download Links:
Link 2: Download
Download link not working
ReplyDeleteThanks for the source code. I am looking forward for Jasper template? Do you access to it.?
ReplyDeleteDownload link not working
ReplyDelete