Tuesday, March 8, 2016

101-Android Studio 1.5 Empty Activity Template


.
101-Android Studio 1.5 Empty Activity Template

1) Create New Project

1.1) Configure New Project

Application Name: MyEmpty1
Company Domain: notarazi.com
Package Name: com.notarazi.myempty1 (auto-generated)
Project Location: C:\Project1\MyEmpty1\ (auto-generated)

1.2) Select Target Device

1.3) Add Activity

Select Empty Activity.

1.4) Customize the Activity

Accept defaults.

2) Observe the project codes

2.1) build.gradle (module:app)

apply plugin: 'com.android.application'
android {
   compileSdkVersion 23
   buildToolsVersion "23.0.2"
   defaultConfig {
       applicationId "com.notarazi.myempty1"
       minSdkVersion 15
       targetSdkVersion 23
       versionCode 1
       versionName "1.0"
   }
   buildTypes {
       release {
           minifyEnabled false
           proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
       }
   }
}
dependencies {
   compile fileTree(dir: 'libs', include: ['*.jar'])
   testCompile 'junit:junit:4.12'
   compile 'com.android.support:appcompat-v7:23.1.1'
}

2.2) AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.notarazi.myempty1">
   <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">
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
       </activity>
   </application>
</manifest>

2.3) MainActivity.java

package com.notarazi.myempty1;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
   @Override
   protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);
   }
}

2.4) res/layout/activity_main.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: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.notarazi.myempty1.MainActivity">
   <TextView
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="Hello World!" />
</RelativeLayout>
File Naming Convention:
Controller File → MainActivity.java
Layout File → res/layout/activity_main.xml

2.5) res/values/strings.xml

<resources>
   <string name="app_name">MyEmpty1</string>
</resources>

2.6) res/values/colors.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
   <color name="colorPrimary">#3F51B5</color>
   <color name="colorPrimaryDark">#303F9F</color>
   <color name="colorAccent">#FF4081</color>
</resources>

2.7) res/values/dimens.xml

<resources>
   <!-- Default screen margins, per the Android Design guidelines. -->
   <dimen name="activity_horizontal_margin">16dp</dimen>
   <dimen name="activity_vertical_margin">16dp</dimen>
</resources>

2.8) res/values/styles.xml

<resources>
   <!-- Base application theme. -->
   <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
       <!-- Customize your theme here. -->
       <item name="colorPrimary">@color/colorPrimary</item>
       <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
       <item name="colorAccent">@color/colorAccent</item>
   </style>
</resources>

DOWNLOAD


.

Monday, March 7, 2016

How To Publish Apps To Google Play


.

1) Register for a Publisher Account

2) Set Up a Google Payments Merchant Account

3) Explore the Developer Console


.

1) Register for a Publisher Account


  1. Visit the Google Play Developer Console.
  2. Enter basic information about your developer identity — name, email address, and so on. You can modify this information later.
  3. Read and accept the Developer Distribution Agreement for your country or region. Note that apps and store listings that you publish on Google Play must comply with the Developer Program Policies and US export law.
  4. Pay a $25 USD registration fee using Google payments. If you don't have a Google payments account, you can quickly set one up during the process.
  5. When your registration is verified, you’ll be notified at the email address you entered during registration.

2) Set Up a Google Payments Merchant Account


If you want to sell priced apps, in-app products, or subscriptions, you’ll need a Google payments merchant account. You can set one up at any time, but first review the list of merchant countries.

To set up a Google payments merchant account:
  1. Sign in to your Google Play Developer Console at https://play.google.com/apps/publish/.
  2. Open Financial reports  on the side navigation.
  3. Click Setup a Merchant Account now.
This takes you to the Google payments site; you'll need information about your business to complete this step.

3) Explore the Developer Console


When your registration is verified, you can sign in to your Developer Console, which is the home for your app publishing operations and tools on Google Play.


.

Download Android Studio 1.5.1.0


.

PlatformPackageSizeSHA-1 Checksum
Windowsandroid-studio-bundle-141.2456560-windows.exe
(Recommended)
1209163328 bytes6ffe608b1dd39041a578019eb3fedb5ee62ba545
android-studio-ide-141.2456560-windows.exe
(No SDK tools included)
351419656 bytes8d016b90bf04ebac6ce548b1976b0c8a4f46b5f9
android-studio-ide-141.2456560-windows.zip375635150 bytes64882fb967f960f2142de239200104cdc9b4c75b
Mac OS Xandroid-studio-ide-141.2456560-mac.dmg367456698 bytesd0807423985757195ad5ae4717d580deeba1dbd8
Linuxandroid-studio-ide-141.2456560-linux.zip380943097 bytesb8460a2197abe26979d88e3b01b3c8bfd80a37db
.

Download Android Studio 1.5.0.4


.

Android Studio 1.5

.

Download Android Studio 1.4.1


.

Android Studio 1.4.1

.