Topic: Android Programming Tutorial (Read 50267 times)

07-06-14 10:14 AM
aldrin22
Full Member
  • Posts: 1000
  • Thanked: 376
  • Reputation: 0
Good Day! :)
This is an ANDROID Developing or Programming Tutorial.. Have Fun :)

I'm Not a professional so please do correct my mistakes :)

THE TUTORIAL IS 100% FREE!! SIMPLE THANKS MIGHT BE ENOUGH!

What is ANDROID?
go here:  [You are not allowed to view links. Register or Login]

What App Should I Used?
A. If you have a PC at Home you will need an application called ECLIPSE.
B. If you don't have a PC at home, then use your android phone. Yes your Android Phone! Use an app called AIDE.
Go here:  [You are not allowed to view links. Register or Login]


You will definitely have a hard time understanding this if you don't have any programming experience. This Books might be useful. Take Some time to read this.

Go Here: 
[You are not allowed to view links. Register or Login]
Quote
Ok in this Tutorial I will train you on how to make an Android Project.

Using Eclipse
   1. Open Ecllipse.
   2. Right Click , Choose New > Other > Android folder > Android App Project.
   3. Name Your App For Example "MyFirstApp".
   4. Click next until finish. Done :)

Using AIDE
   1. Open AIDE
   2. Tap Menu ON the upper-left side.
   3. Choose For Experts> Tap Create new Project here.. >New App
   4. Name Your App For Example "MyFirstApp".
   5. Done.

As you can see. There are many folders created inside your project. I will post a definition of the folders.

Quote
SRC folder :
   Ito ang naghahawak ng mga *.class files ng application mo.
Quote
GEN :
   Naglalaman ng "2 Auto Generated Folders". SHOULDN'T BE TOUCHED!!.
      > BuildConfig.java - The basic configuration file.
      > R.java - It provides access to resources in you App. Each resource has an especific identity.
Quote
ASSETS :
   Naglalaman ng mga text files at ng iba pang mga data files na kelangan o gagamitin ng app.
Quote
LIBS :
   (Library) Naglalaman ng file na "android.support-v4"
      > android.support-v4 is the Android API that allows us to use newest API.
Quote
RES :
   Sa loob nito may makikita tayong mga folders na drawable blah..blah.. Sa mga folder na yan nakalagay yung mga images na gusto mong gamitin example is yung (ic_launcher.png) icon ng app. Kung mapapansin mo iba-iba ang resolution nung icon. Oo. Dahil hindi naman magkakatulad ang mga resolution ng ating mga phones o tablet.
Quote
RECOMMENDED SIZE NG ICONS. (in dp format)
   xlarge(xhdpi) - 960dp x 720dp
   large - 640dp x 480dp
   normal - 470dp x 320
   Sa loob ng RES may layout folder. Eto naman yung nag dedefine sa UI (User Interface) by editing the activity_main.xml.
Quote
FOUR KINDS OF LAYOUTS :

RelativeLayout
   Makes elements relative to other elements by the word itself :)

LinearLayout
   Align all elements in one direction (horizontally or vertically) .

GridLayout
   Lay out elements in a series of rows and columns.
   
FrameLayout
   Frames Elements.
Quote
BIN :
   Contains files built by ADT.
      > Makikita mo rin dito yung mismong installer ng app mo which is *.apk . APK ang file format ng mga app na maari nating ma install sa Android. APK stands for Application Package File) .
Quote
AndroidManifest.xml (its a file)
   Defines the APP NAME, APP ICON, ACTIVITY USED, PERMISSION THAT MAY REQUIRED, and "android.intent.action.MAIN" eto yung magsisilbing entry point ng app.


THIS IS JUST AN EXPLANATION. REAL TUTORIAL TO BE FOLLOWED :)





Keywords:
Android programming, android, java programming, java., how to, how to make android app , android app, eclipse, Aide, programming
List of Tutorials
Page 1
*Table Layout
--
Page 2
* Run your Android Project to your Phone
* Debug your Android App
* Export your Android Application (APK)
--
Page 3
*Simple Input and output
--
Page 4
* Log in Sample (two xml)
Quote


Video Tutorials (RECOMMENDED)

1. [You are not allowed to view links. Register or Login]
-------------
2. [You are not allowed to view links. Register or Login]
« Last Edit: 11-13-14 06:43 PM by aldrin22 »
fairytale

07-06-14 08:41 PM
knighthue816
Full Member
  • Posts: 1178
  • Thanked: 95
  • Reputation: 0
Pasubscribe! Thanks sa effort ts. Ilabas na ang next lesson.

07-07-14 08:56 AM
angelofmercy
Jr. Member II
  • Posts: 227
  • Thanked: 25
  • Reputation: 0
pa subscribe nga rin ako dito. mukhang maganda ito.
dahil sa kapal ng salamin ko. Sabi nila nerd daw ako, sabi naman ng iba genius daw ako. Sabi ko naman, mahirap bang makita ang kaibahan ng nerd sa genius? Ng genius sa smart? O ito, kayo ng gumamit ng salamin ko ng makita nyo.

07-07-14 06:55 PM
justdropdeadx
Jr. Member
  • Posts: 129
  • Thanked: 4
  • Reputation: 0

07-08-14 02:39 AM
05316
Jr. Member II
  • Posts: 203
  • Thanked: 10
  • Reputation: 0
« Last Edit: 07-09-14 02:14 PM by 05316 »

07-08-14 03:09 AM
palitz14
Full Member
  • Posts: 527
  • Thanked: 21
  • Reputation: 0
hello! Guys. :)

07-08-14 11:29 PM
johnsora
Semi-Newbie
  • Posts: 42
  • Thanked: 1
  • Reputation: 0
salamat ts pa bookmark muna :)

07-09-14 06:00 AM
mystiko
PinoyDen Adik
  • Posts: 26463
  • Thanked: 341
  • Reputation: 1
[You are not allowed to view links. Register or Login][/url]
Do within the Limit of Power

07-09-14 07:29 AM
mobile_master
Full Member
  • Posts: 1719
  • Thanked: 35
  • Reputation: 1
Tnx, otor gagawa po kasi ako ng clearance system tapos gusto ko e implement sa android this thread is really a good resources. . .up lang natin palage. . .

07-09-14 08:14 AM
cherlen
Jr. Member
  • Posts: 84
  • Thanked: 9
  • Reputation: 0

07-12-14 06:06 AM
yuchee14
Full Member
  • Posts: 629
  • Thanked: 53
  • Reputation: 1
saktong sakto android programming gagamitin namin sa thesis namin sana
marami akong mapulot na kaalamam dito since nagsisimula palang akong mag aral ng android prog.
edit:
sir penge code sa paggawa ng table sa android
« Last Edit: 07-12-14 06:08 AM by yuchee14 »

07-12-14 07:33 AM
aldrin22
Full Member
  • Posts: 1000
  • Thanked: 376
  • Reputation: 0
[You are not allowed to view links. Register or Login]
saktong sakto android programming gagamitin namin sa thesis namin sana
marami akong mapulot na kaalamam dito since nagsisimula palang akong mag aral ng android prog.
edit:
sir penge code sa paggawa ng table sa android




// Yung First Table Row Display natin yung title
Quote
<TableRow
        android:id="@+id/tableRow1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal" >

        <TextView
            android:id="@+id/textView11"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_span="6"
            android:gravity="center"
            android:text="Weather Report"
            android:textSize="18dp"
            android:textStyle="bold" >
        </TextView>
    </TableRow>
Quote
In the second TableRow, we can display the dates in a familiar calendar-like format.

In the third TableRow, we can display a Daily High temperature information.

In the fourth TableRow, we can display a Daily Low temperature information.

In the fifth TableRow, we can display graphics to identify the weather conditions, such as rain, snow, sun, or cloudy with a chance of meatballs.


[/quote]



Explanation:
Quote


Quote
@+id/tableRow1 - ito ang id ng TR1.  Dito mag didisplay yung "weather report" na text which is the title. Isa lang text view nya.

@+id/tableRow2 - Id of TR2. Displays weeks and days. Six TV

@+id/tableRow3 - Id of TR3. Displays High Temp. of the day. Six TextView

@+id/tableRow4 - Id of TR4. Displays Low Temp of the day. Six TV

@+id/tableRow5 - Id of TR5. Displays the icon of the weather. May 1 TV at 5 Image View.
Eto yung code ng TR5:
Quote
   <TableRow
        android:id="@+id/tableRow5"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center" >

        <TextView
            android:id="@+id/textView8"
            android:text="Conditions"
            android:textStyle="bold" >
        </TextView>

        <ImageView
            android:id="@+id/imageView1"
            android:src="@drawable/monday" >
        </ImageView>

        <ImageView
            android:id="@+id/imageView2"
            android:src="@drawable/tuesday" >
        </ImageView>

        <ImageView
            android:id="@+id/imageView3"
            android:src="@drawable/wednesday" >
        </ImageView>

        <ImageView
            android:id="@+id/imageView4"
            android:src="@drawable/thursday" >
        </ImageView>

        <ImageView
            android:id="@+id/imageView5"
            android:src="@drawable/friday" >
        </ImageView>
    </TableRow>

Sana nagets mo hehe. Madali lang yan open mo lang source code upload ko. Wala pa kasi laptop ko eh kaya di ako makagawa ng mas clear na Tut

Kung gusto mo ng fit lagay mo to sa mainActivity.java
Quote
table.setStretchAllColumns(true);
table.setShrinkAllColumns(true);
« Last Edit: 07-12-14 07:38 AM by aldrin22 »
fairytale

07-12-14 03:50 PM
yuchee14
Full Member
  • Posts: 629
  • Thanked: 53
  • Reputation: 1

07-27-14 06:18 PM
lnoskhen
Full Member
  • Posts: 1060
  • Thanked: 418
  • Reputation: 8
Dito ko po ipopost yung mga tutorial ko, from Basic to Advanced
with APK + Source code and Screenshots

Table of Contents

  • Get text from EditView
  • View URL from browser
  • Using Shared Preferences
  • and more, soon...

Get text from EditView
Palindrome - ichecheck ang na-input na word kung equals parin sila kahit pinagbaliktad.


View URL from browser
Yan, may mini browser na kayo :rofl:

Updating...

Tuwing Saturday at Sunday po ang free time ko kaya mag-uupdate po ako sa mga araw na yan simula ngayon :D

Post lang po kayo kung anong example po ang gusto niyo, based po sa kung saan na po ang topic natin.
Hindi po ako nag-eentertain ng mga request tulad ng "Pagawa po ng app na to kailangan lang po" etc..

Tulad ng thread sa PyS60, lahat po kami nagsimula sa wala :D
Newbie lang ako kaya lahat tayo magsisimula sa simula :rofl:
« Last Edit: 07-27-14 07:13 PM by lnoskhen »





07-27-14 06:52 PM
aldrin22
Full Member
  • Posts: 1000
  • Thanked: 376
  • Reputation: 0
[You are not allowed to view links. Register or Login]
Dito ko po ipopost yung mga tutorial ko, from Basic to Advanced
with APK + Source code and Screenshots

Table of Contents

  • Get text from EditView
  • View URL from browser
  • Using Shared Preferences
  • and more, soon...

Get text from EditView
Palindrome - ichecheck ang na-input na word kung equals parin sila kahit pinagbaliktad.


Updating...

Tuwing Saturday at Sunday po ang free time ko kaya mag-uupdate po ako sa mga araw na yan simual ngayon :D

Post lang po kayo kung anong example po ang gusto niyo, based po sa kung saan na po ang topic natin.
Hindi po ako nag-eentertain ng mga request tulad ng "Pagawa po ng app na to kailangan lang po" etc..

Tulad ng thread sa PyS60, lahat po kami nagsimula sa wala :D
Newbie lang ako kaya lahat tayo magsisimula sa simula :rofl:
andito na pla si idol hehe. sana dumami pa tayong magpopost dito. :rofl:
medyo basic pa lang napost ko eh hehe
fairytale

07-27-14 07:47 PM
lnoskhen
Full Member
  • Posts: 1060
  • Thanked: 418
  • Reputation: 8
Take a Tour of Android Development with Eclipse

HOW TO:

Run your Android Project to your Phone:
Click mo Project mo


iClick to na makikita sa toolbar tapos


at iselect lang po ang device mo






Debug your Android App

Open your Logcat (Ctrl + 3) then type "Logcat" or open DDMS on perspective view


or using your Terminal:
navigate to android-sdk/platform-tools

Ubuntu:
Code: [You are not allowed to view links. Register or Login]
./adb logcat
Windows:
Code: [You are not allowed to view links. Register or Login]
adb logcat


Export your Android Application (APK)
Right-click mo ang project mo,


at iclick ang "Export...", iselect ang "Export Android Application"


iselect kung saang project mo gagawan ng APK


Keystore - personal cetificate
mas ok kung lahat ng gagawing mong apps ay iisa lang ang gagamiting keystore. Magagamit kasi ang keystore kung mag-uupdate ka ng apps at pag-kakakilanlan din ng apps mo.

ibrowse mo lang kung saan gusto mong ilagay yung keystore mo


Alias: kay codename niyo nalang
Password: mas ok kung same din dun sa nauna para hindi niyo nalimutan
Validity: ang default ay 25
First and Last Name: Real Name mo :D


destination ng gagawing APK


Congratulation! May APK kana at pwede mo nang idistribute sa iba :thumbsup:


Updating..
« Last Edit: 07-29-14 08:45 AM by lnoskhen »





07-28-14 08:30 PM
05316
Jr. Member II
  • Posts: 203
  • Thanked: 10
  • Reputation: 0
sang folder ba makikita yung installer ng apps? eclipse gamit ko eh. wala naman sa workspace yung installer

07-28-14 09:35 PM
aldrin22
Full Member
  • Posts: 1000
  • Thanked: 376
  • Reputation: 0
[You are not allowed to view links. Register or Login]
sang folder ba makikita yung installer ng apps? eclipse gamit ko eh. wala naman sa workspace yung installer
apk?  read 1st post. nasa bin
fairytale

07-28-14 10:00 PM
lnoskhen
Full Member
  • Posts: 1060
  • Thanked: 418
  • Reputation: 8
[You are not allowed to view links. Register or Login]
sang folder ba makikita yung installer ng apps? eclipse gamit ko eh. wala naman sa workspace yung installer
sa "bin" directory - pang-debug o pang-testing lang, kung pang-distribution na o ready na sa production, export mo lang project mo (right-click sa project  - "Export...").
Gawa po ako ng tutorial para sa pag-generate ng APK (para sa mga production ready na) :thumbsup:





07-28-14 11:09 PM
darkslayer922
Jr. Member
  • Posts: 195
  • Thanked: 6
  • Reputation: 0
mga boss paano po ba e integrate ang arduino sa android?