Saturday, December 31, 2016

Build Animated splash screen Android Tutorial

Android Animated Splash Screen Source code Tutorial
Android Animated Splash Screen Source code Tutorial


In this Android Tutorial , you will learn How to add an animated splash screen to your Android app 
You can add this Splash Screen either to Website2App  Project or Start a New Android Studio Project.

build Animated splash screen Using android studio 2.2.3 
you can download this version Here :



- Creat New android studio project with the following :

Application nameAnimatedSplashScreen
Package Name    : com.nulledapps.AnimatedSplashScreen
MinSDK                 API 15 : Android 4.0.3(IceCreamSandich)

Click Next 





- Add an Activity to Mobile Select (Add No Activity) and Click Next




- Click Finish without change anythings , and wait until android studio build project

-Right Click on your project package ,Select New -- Activity -- EmptyActivity Name the activity :  MainActivity.java Click Finish 

-Right Click on your project package , Select New -- Activity -- EmptyActivity Name the activity    SplashActivity.java Check Launcher Activity and Click Finish 




Now we will write the codes for the SplashActivity.java , so we need A Splash Time with an interval of 4 seconds , To end splash screen and show the MainActivity , we also need to creat an android animation for the splash screen we will use an android alpha animation and android translate animation those two files are written in xml 

- Right Click on res Folder Select New -- Android resource directory -- Type the directory name : anim and Click OK


-Right Click on anim Folder Select New - Animation Resource file : set the name alpha.xml
- Open alpha.xml and remove all lines and copy/past the following codes : :

<?xml version="1.0" encoding="utf-8"?><alpha xmlns:android="http://schemas.android.com/apk/res/android" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="3000" />



- Right Click on anim Folder Select New - Animation Resource file : set the name translat.xml
- Open translate and remove all lines and copy/past the following codes : 

<?xml version="1.0" encoding="utf-8"?><set    xmlns:android="http://schemas.android.com/apk/res/android">

<translate xmlns:android="http://schemas.android.com/apk/res/android" android:fromXDelta="0%" android:toXDelta="0%" android:fromYDelta="200%" android:toYDelta="0%" android:duration="2000" android:zAdjustment="top" />

</set>
-Right Click on drawable Folder Select New - Drawable Resource file : set the nama radialback.xml
- Open radialback.xml and remove all lines and copy/past the following codes : 

<?xml version="1.0" encoding="utf-8"?>     <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<gradient android:startColor="#e1051b" android:endColor="#ed0427" android:gradientRadius="326" android:type="radial"/>
</shape>

-Right Click on drawable Folder Select New - Image asset , select form icon type Action bar and Tabs icons ,type the name splashlogo ,ASSET TYPE clip art, Theme HOLO_DARK , Click Next and Finish


- Expand layout folder and open activity_splash.xml 

-Open  activity_splash.xml , Remove all lines and copy/past the following codes :

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:background="@drawable/radialback"    android:layout_gravity="center"    android:id="@+id/lin_lay"    android:gravity="center"    android:orientation="vertical" >

<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/logo" android:background="@drawable/splashlogo" />

</LinearLayout>
- Open activity_main.xml Remove all lines and add the following xml:

<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools"    android:id="@+id/activity_main"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:paddingBottom="@dimen/activity_vertical_margin"    android:paddingLeft="@dimen/activity_horizontal_margin"    android:paddingRight="@dimen/activity_horizontal_margin"    android:paddingTop="@dimen/activity_vertical_margin"    tools:context="com.nulledapp.animatedsplashscreen.MainActivity">

<TextView android:text="HELLO !!" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_marginLeft="133dp" android:layout_marginStart="133dp" android:layout_marginBottom="248dp" android:id="@+id/textView" android:textColor="@color/colorPrimary" android:textSize="24sp" android:textStyle="normal|bold" />

<TextView android:text="Splash Screen Android Tutorial" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="47dp" android:id="@+id/textView2" android:textStyle="bold" android:textSize="18sp" android:textColor="@color/colorPrimaryDark" android:layout_alignTop="@+id/textView" android:layout_centerHorizontal="true" />
</RelativeLayout>
 
- Open SplashActivity.java and Remove All lines the copy/past the following codes :
package com.nulledapp.animatedsplashscreen;

import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class SplashActivity extends AppCompatActivity {

private static SplashTimer timer;
private final static int TIMER_INTERVAL = 4000; // 2 sec
private boolean activityStarted;
private boolean exitAds = false;
private boolean mWasGetContentIntent;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//requestWindowFeature(Window.FEATURE_NO_TITLE);
Intent intent = getIntent();
mWasGetContentIntent = intent.getAction().equals(
Intent.ACTION_GET_CONTENT);

setContentView(R.layout.activity_splash);
StartAnimations();



timer = new SplashTimer();
timer.sendEmptyMessageDelayed(1, TIMER_INTERVAL);
}

public void onAttachedToWindow() {
super.onAttachedToWindow();
Window window = getWindow();
window.setFormat(PixelFormat.RGBA_8888);
}

final class SplashTimer extends Handler {
@Override
public void handleMessage(Message msg) {
post(new Runnable() {

public void run() {
timer = null;

startHomePageActivity();
}
});
}
}

private void startHomePageActivity() {



if (activityStarted) {
return;
}
activityStarted = true;

SplashActivity.this.runOnUiThread(new Runnable() {

@Override
public void run() {

startActivity(new Intent(SplashActivity.this, MainActivity.class));
finish();
}
});


}

private void StartAnimations() {
Animation anim = AnimationUtils.loadAnimation(this, R.anim.alpha);
anim.reset();
LinearLayout l=(LinearLayout) findViewById(R.id.lin_lay);
l.clearAnimation();
l.startAnimation(anim);

anim = AnimationUtils.loadAnimation(this, R.anim.translate);
anim.reset();
ImageView iv = (ImageView) findViewById(R.id.logo);
iv.clearAnimation();
iv.startAnimation(anim);

}

}

Method StartAnimation() :  instantiate Android Animation And call the alpha animation using An animationUtils  To LoadAnimation and assing the animation to A LinearLayout the start the animation ,  also the method animate an ImageView (Logo) when imageview loaded  we clear animation using clearAnimation()

Method startHomePageActivity():
check if the activity started if yes a runable thread started for 4 seconds
and end the splash screen the open the Main activity
class SplashTimer Handle the Timer 

- Open AndroidManifest.xml , Remove All Lines and add the following:

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    package="com.nulledapp.animatedsplashscreen">

<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme">
<activity android:name=".MainActivity" />
<activity android:name=".SplashActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Now Clean And build Your project To see Result below : 
YouTube video Tutorial :


Download android Splash  Screen source code : HERE 

Friday, December 30, 2016

How to build Android App for Website - Android Studio Webview Tutorial

Creat android app for website
Many of us own their personal websites or blogs with high quality content , and large traffic,but they dosn't have an android app for theire website , wich mean that they lose a big important traffic from app stores such google play app store,amazon app store , iOs app store .

creat an android app for your website in few steps , this android tutorial will teach you how to build an app for website using android studio .
so lets start to convert a website to an android app , As an example we convert  our website : nulledmobileapps and make an app to run the website as webpages inside an android webview  , we will creat an animated splash screen for android app , using android studio to generate Image Asset with different android dimensions ,working with webview settings to  allow zoom In/Zoom Out , enabling java script and Loading WebView indicator
Material design ,working with navigation drawer ,and learn how to add Responsive ADmob banner and how to link app to firebase Then finally Generate Signed APK ready to publish.


Happy Training !!



Now Open Android studio And creat New Android Project with the following :

App Name : Web2App
Package Name : com.nulledapps.Website2App
minSDK : API 15 : Android 4.0.3 (IceCreamSandwich)




After Next select an activity template from android studio Activity window, the best predefined template for a website  App select ( Navigation Drawer Activity ) by using the Drawer Navigation we can easily navigate between our web pages categories .


Press Finish and wait while android studio finish building app project , your android project must be structured the shown on the screen shot below.





1 :  The android Manifest File where app activities declared and app permissions declaration so lets  make some changes 

- Open AndroidManifest.xml and add the Internet permission , our app need Internet to work so we      have to add permission.INTERNET 
-Copy And Past this line as shown on the screen shoot below : 
<uses-permission android:name="android.permission.INTERNET" />



2: The folder that contain Java classes and Java activities , Now open you MainActivity.java and remove the following code lines :

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});


Now go to res/layout and open  app_bar_main.xml , and remove the following code lines :

<android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end" android:layout_margin="@dimen/fab_margin" app:srcCompat="@android:drawable/ic_dialog_email" />



- Open content_main.xml and replace the following lines :


<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" />

 with webview xml code as following :


<WebView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/webview" />

- Open  menu/activity_main_drawer.xml and change the following words :

Import -> Home
Gallery -> All Source codes
Slideshow -> Mobile apps
Tools -> Android Games

(use CTRL+F to find words and replace with the words above)

- Back To MainActivity.java and open it if not and initialize app variables as following :

WebView myWebView; private String home="your page url 1"; private String all_apps="your page url 2";private String android_apps="your page url";private String android_games="";


- Add in  protected void onCreate(Bundle savedInstanceState)
The following code :


// CALL THE WEBVIEW
myWebView = (WebView) findViewById(R.id.webview);
// LOAD HOME URL WITH THE WEBVIEW
myWebView.loadUrl(home);
// SET WEBVIEW SETTINGS : enable java in webview , set support zoom
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setSupportZoom(true);
webSettings.setBuiltInZoomControls(true);
final Activity MyActivity = this;
myWebView.setWebChromeClient(new WebChromeClient() {
public void onProgressChanged(WebView view, int progress)
{
//Make the bar disappear after URL is loaded, and changes string to Loading... MyActivity.setTitle("Loading...");
MyActivity.setProgress(progress * 100); //Make the bar disappear after URL is loaded // Return the app name after finish loading if(progress == 100)
MyActivity.setTitle(R.string.app_name);
}
});


Now in NvigationItemSelected method add the following codes:

// Handle navigation view item clicks here.int id = item.getItemId();
if (id == R.id.nav_camera) {
// Load Home page url myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl(home);
} else if (id == R.id.nav_gallery) {
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl(all_apps);
} else if (id == R.id.nav_slideshow) {
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl(android_apps);
} else if (id == R.id.nav_manage) {
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl(android_games);
} else if (id == R.id.nav_share) {
} else if (id == R.id.nav_send) {
}
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;

- Now open res/drawable/side_nav_bar.xml and modify code color with your need , i will use my website color in this case , to do that make the following : 



Now We will customize our app header by adding logo ,slogan,app description , so open res/layout/nav_header_main.xml

to Generat predefined material icon using android studio : 
right click on drawable folder new -> image asset and Insert Icon type,action name,style as the following:


Now open nav_header_app.xml in design mode  and change icon and texts as shown below in the screen shot:



select ImageView(1) component in srcCompat (3) press button shown on green square and select drawable -> ic_action_appslogon



Click on each Text View and modify the text in the text box properties panel 

Watch Youtube video Tutorial
At This moment we have an application capable to run our website , lets build and clean the project and generate our first APK see result in screen shoot below







 in the next part we will learn how to add an animated splash screen on our app , and learn how to add Responsive admob banner and Link our app to firebase .


For any lazy click download source code of this tutorial

Taxi Booking APP Clone of UBER - Source code

Taxi Booking App source code
Taxi Booking App - A Complete Clone of UBER with User,Driver,Bacend CMS Android

Taxi Booking App is a complete clone of Uber app source code , is the best taxi booking App. this app  builded using Native Java for Android . This sale comes with User app , Driver App plus powerful CMS panel , Taxi booking app is responsive android app , with latest material design and android updates,Codecanyon Android Apps




App Features :
  • Intro Video splash screen to give appealing look to the app.
  • Google api integration for autocomplete.
  • Plotting of places to google map with distance and minutes calculation between routes.
  • One step and easy booking process.
  • Integration with Paypal and Stripe Payment gateway.
  • Support different rates for day and night.
  • Option to set cab types with rates from backend CMS .
  • Stylish animation between views with Facebook style slide menu.
  • Display all booking with scroll to load and clean UI.
  • Filters to sort booking’s on the basis of completed, pending booking etc.. Available on both User and Driver App.
  • Enable Auto refresh when driver accept job on driver arrival, journey begin , journey completed / dropped etc.
  • Support Push messages for all the status as well.
  • Live tracking Driver who are assigned for your booking.
  • Option to Cancel the Job till driver is not assigned.
  • Rate card screen with option to view all Taxi’s day and night rates.
  • 100% Native Objective C and shipped with full source code.
  • Support localisation and Internationalizations .
  • Support RTL Languages.
  • Share ETA to Facebook and Twitter .




Taxi Booking App demos :

Tuesday, December 27, 2016

Android music player Source code + Admob - Kotlin source code

Android music player  Source code

FREE MATERIAL MUSIC PLAYER FOR ANDROID SOURCE CODE

WowPlayer is a free android source code for one of 10 best music player apps for android and android mp3 player , writing in Kotlin Programming Language - Kotin Android , Full Material design music player for android source code , Wow Player best music app for android is free, powerful and elegant music player for Android.Admob Ads Integrated Download Now Material Audiobock code source Android Studio Download Now the best music apps for android



Features :

Unofficial Google Play Music support. 
ID3v3 tag editing. 
Custom libraries support. 
Album artist sorting/tag support 
Blacklist ability for artists, album artists, albums, songs, genres and playlists. 
9 band equalizer with bass boost, virtualizer, and reverb. 
Individual EQ settings for each artist, album artist, album, song, genre, or playlist. 
File/folder browsing. 
Scrobbling. 
Crossfade with customizable duration. 
Auto-download album art from the internet. 
2 different base themes and 9 different color schemes. 
android mp3 player 




Monday, December 26, 2016

How To Reskin Apps & Earn money From App reskinning

How to resking android app

Android Reskin App



Everyone now looking for the most efficient ways to earn big money from the Internet , There are several areas to earn money online , earn money email marketing , earn money from Forex brokers , Setup website and blogs , PTC Website and other several way to make profit online, but the first problem we had that we need to invest in those areas , But the problem facing a lot of beginners is Requirement these areas for initial investments , Now the easier  Area  to make money online is to an app reskiner (apps reskinning), which has become widespread in the last years,reskin  Android applications and publish them to app stores Google play, Amazon app store, opera app store ,Apple app store ,Getjar ,aptoid, mobogine , and ohter app stores similar to Google play  , a lot of Reskinner generate at least an income of 1K of dollars per month just by reskinning apps  (app reskin or android reskin), so ther is the main steps to be an app reskiner .


1 - Learn how to find android source codes on the INTERNET , and this is some sources and websites to download android apps source code , android game source code




  •  F-DdroidAn alternative software repository comprising only free, open source software.
  •  nulledmobileapps  : Where you read this article :)
  •  codelist.cc/mobile : one of famous mobile source code provider , daily updated , nulled apps , nulled android      source code , nulled games source code ,
  •  nulled-scripts.com  : publish daily android source codes , android scripts , Android apk 
  • all4share.net : Android game code , apps codes , android studio source codes sample , daily android tutorials


2 - Learn Android Studio and Eclipse, and their principles, is sufficient for you to learn how to import Android Studio project folder or Eclipse project, and know the order of application folders, in often you will need to change the names and words and colors and designs ( Images android fonts , android animations)


3 - Admob account without violations , You can sign up from this link https://www.google.com/admob and learn :
  •  How to creat Admob Banner ,
  •  How to creat Responsive admob banners to maximize profit 


Follow this link to learn about adding Admob banners ads and interstitial ads https://firebase.google.com/docs/admob/android/quick-start

4- Learn How To rename app package in android studio  - Follow this Link Android studio renaming packageTutorial 

5- Learn How To Rename app package in eclipse  - Follow This Link Eclipse renaming Package tutorial 

6 - Register for a Google Play Developer account. To publish Android apps on Google Play, Sign up for Google play Developer account 

After you are familiar with all those steps you can now start generating money from android apps , But be careful to copyrights works and follow Google play developer Terms , Google suspend developer accounts after you receive 3 Suspended apps