A.K Nitra

Friday, 28 July 2017

How to create simple Hello World android app in Kotlin

July 28, 2017
How to create simple Hello World android app in Kotlin

Step-1

First, you open the android studio  then create the android project and .give the project name
android version activity name and layout name if you are not change the activity and layout ,
you are used default activity and layout name.

Step-2

1- open the activity_main file and then write the xml code like this:-

<?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" 
 tools:context="com.upiapp.cforcamera.MainActivity">
    <TextView 
       android:layout_width="match_parent" 
       android:layout_height="match_parent"
       android:id="@+id/texts" 
       android:text="Hello world" 
       android:textSize="40sp" 
       android:gravity="center_horizontal" 
       android:layout_alignParentTop="true"
       android:layout_alignParentLeft="true" 
       android:layout_alignParentStart="true" 
       android:layout_marginTop="252dp" />
</RelativeLayout>

2-open the MainActivity.kt file write kotlin code:-

package com.upiapp.cforcamera

import android.app.Activity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import android.widget.Toast


class MainActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val text = findViewById<TextView>(R.id.texts)
        text.setOnClickListener(object : View.OnClickListener{
            override fun onClick(p0: View?) {
                Toast.makeText(this@MainActivity,R.string.app_name,Toast.LENGTH_LONG)
            }
        })

    }
}

3- Open the Manifest file: -
     Manifets that file where developer declare the app icon ,user persmission, activity name
    Manifesr means create the manifesto an app.the Manifest like this
   
  
<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
 package="com.upiapp.cforcamera">
    <application 
        android:allowBackup="true" 
        android:icon="@mipmap/ic_launcher" 
        android:label="@string/app_name" 
        android:roundIcon="@mipmap/ic_launcher_round" 
        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>

Step-3 

run the app then app look this:-

 
  
Read More

Wednesday, 3 May 2017

How to develop android apps using android studio

May 03, 2017
How to develop android apps using android studio
1. Environment setup:-
First  you can start develop android application using these system.
 Window XP OS or Later Versions.
Mac Os 10.5.8 or Later Versions.
Linux including GNU C library 2.7 or Later.
   Before the start develop android application you
   Can be download some Softwares.
Android Studio.
Java Jdk5 or Later.
1- Android Studio:-      
Android studio is the official IDE  for the Android apps development.
using this site download android studio Android Studio
Some Features for android studio:-
Built on Intellige IDEA Comminity Editions.
 Flexiable gradle based build system.
Build Variants and multiple apk generation.
 Pro-guard and app-signing capabilities.
Easy to share code for GitHub.

   System Requirements:-
1-Windows
 Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit).
 2 GB RAM minimum, 4 GB RAM recommended.
 400 MB hard disk space.
 At least 1 GB for Android SDK, emulator system images, and caches.
1280 x 800 minimum screen resolution.
Java Development Kit (JDK) 7.
Optional for accelerated emulator: Intel® processor with support for Intel® VT-x,Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality.

      2-Mac OS  X
   Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks).
  2 GB RAM minimum, 4 GB RAM recommended.
 400 MB hard disk space.
   At least 1 GB for Android SDK, emulator system images, and caches.
1280 x 800 minimum screen resolution.
Java Runtime Environment (JRE) 6.
  Java Development Kit (JDK) 7.
  Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality.

3- Linux
GNOME or KDE desktop
                             2 GB RAM minimum, 4 GB RAM recommended
400 MB hard disk space
  At least 1 GB for Android SDK, emulator system images, and caches
  1280 x 800 minimum screen resolution
  Oracle® Java Development Kit (JDK) 7

  2- Java JDK –
           You can download the java jdk from Oracle site Java JDk Download
               And install the jdk into your system .
Read More

Tuesday, 2 May 2017

Top 5 best PTC website

May 02, 2017
Top 5 best PTC website
Note: please before the use these website read instruction carefully.

😁 top 5 website change your life.Earn online home Income.

  • Clixsense.
  • Neobux.
  • Buxp
  • ScareLet
  • ClixTen
Read More

Monday, 1 May 2017

Top 5 website& blog you must be learn

May 01, 2017
Top 5 website& blog  you must be learn

Top five websites&blogs you must be learn:-

Here is list of most popular website and blogs trillion off peoples used these platform 

  •  Blogger.com
  • WordPress.com
  • Tumbler.com
  • Blog.com
  • Weebly.com
Read More

Sunday, 30 April 2017

Fastest camera build by lund University

April 30, 2017
Fastest camera build by lund University
this is a fastest camera can be capturing 100000 image per second.this camera works on the FRAME
technique.FRAME means " Frequency Recognition Algorithm for Multiple  Exposures"
The rate for this camera five trillion image per second.
The use of this fastest camera in various fields:-
1 -Chemistry science.
2 -Physics Science.
3- understand for plasma reaction
Read More

3 android games play now!

April 30, 2017
3 android games play now!

These are three best games should be play now:-

1-   Age of Empires: Castle Siege-

price -

 free with in-app purchases.

Descriptions- 

this latest age of empire games.in this game you build a base and then create the army.
then attack the other base.

Download- 

Google Play Store.

2- Anycrate-

price-

free.

Descriptions-

this game is multiplayer  game .each player stands for corners. this game is not any purchases.
this is complete free game.

Download-

Google play store. 

3- Maganoid 2017-

price-

$3.99

Descriptions- 

this is retro shooter game. in this game levels are randomly generates .it also features you change the different mechanics and given level.

Download-

Google play store
Read More

Saturday, 29 April 2017

Top 5 apps for pay you!

April 29, 2017
Top 5 apps for pay you!

there is top 5 apps for pay you.

1- Surveys on the Go:-

Descriptions:-

surveys on the go is given payment in the cash not points. this service is only helpful in United States.
Surveys on the go available from both ios and Android. 

Reviews-    

on the play store reviews for the surveys on the Go 34347 total  and rating is 4.4 

2- Gigwalk:-

Descriptions:- 

Gigwalk is the create the challenge and people find the jobs.this application pay basis of the jobs.Download this app compatible  for android and ios.

Reviews-

 on the play store reviews for the surveys on the Go 3660 total  and rating is 3.2

3-IBotta:-

Descriptions:-

IBotta is the most  popular apps for pay you.when you start this app for the first time that  you get $10 .
this app pay for you by paypal,venmo and giftcard!.

Reviews-

 on the play store reviews for the surveys on the Go 214572 total  and rating is 4.5


4- Pact:- 

Descriptions:-

Pact is name suggests this app keep your activities and weight looses and this app is pay for you.
pact application is motivate for fit  your health.

 

Reviews-

on the play store reviews for the surveys on the Go 5221 total  and rating 2.8

5- Google Opinion Rewards:- 

Descriptions:-

fifth and last app for pay you is google opinion reward basically name suggest first you download this app for play store and give some answers for the questions and surveys around 1 week.
reward given by the google surveys team.first reward is  $1.

Reviews-


on the play store reviews for the surveys on the Go 498623 total  and rating 4.0
Read More