Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Android Programming Tutorials!

addbot101

Apprentice
Advanced Member
Messages
75
Reaction score
0
Points
26
Sana magtulong tulong tayo sa pagtaguyod ng latest na Android Programming. Gumawa ako ng thread para magkaroon ng pagpapalitan ng kaalaman ukol sa kung panu tayo matagumpay na makakagawa ng isang Mobile Application gamit ang Android Programming Language. Makiisa! Makialam! Makibahagi!
Paano nga ba bumuo ng isang Android Applications?
Anu nga ba ang ANDROID?
Ito ay isang operating system ng isang mobile na base sa binagong bersiyon ng Linux na idinisenyo ukol lang sa mga “touchscreen mobile devices” gaya ng mga “smartphones” at “tablet computer”. Kasalukuyang binuo ng Google. Ito ay isa ring matatawag na isang “open-source project” sa kadahilanang sino mang magnais pang paigtingin o mapaganda ang serbisyo nito ay malugod para sa lahat.

Anu ang mga kailangan sa pagbuo ng isang Android Application?
• Kailangan may sapat na kaalaman sa pag poprogram gamit ang JAVA PROGRAMMING.
(Lahat ng applications ay written in java PL at konberted sa tinatawag na Dalvik executable .dex)
• Sunod, kailangan mo i-download ang Android SDK(Software Development Kit)
• Sunod, latest version of Java Develepment Kit (JDK)
• Sunod, Eclipse IDE (Juno) is latest
• Ikonpigura ang Eclipse JDT Plugin
• Ikonpigura ang ADT (Android Development Tools) Plugin
 
Last edited:
ts pano mag decompile ng .apk into readable code yung hnde po mga smali ah.? at pano ulit yun irecompile + signed?
 
Once it was publish and become .apk, wala na paraan para ma extract uli un into codes. Solid na kasi xa at alang nagrerecognize sa part ng eclipse na iextract xa, unless you create it and you have the back up codes to edit it
 
Nice Thread TS :salute: i want this Android Programming :)
 
Yung mga latest Installer ng JDK,SDK,Eclipse IDE, Bukas ko upload pati E-books at useful documents step-by-step procedure to create mobile apps.
 
may game kasi ako n gustong idecompile.. gusto ko lang iedit ung exp rate at drop rate hehe.
sino dito nag lalaro ng ragnaroth phelp nmn iedit yun
 
Nice thread, about poo dun sa pag decompile ng apk file ang alam ko eh possble nmn un kaso d ko p n try, search nyu n lng s google
 
tanong rin po ako kgya ng nsa first page na nag edit ng ragnarok sa android phone ang tnong ko po yng nag translate ko po n apk file eh nag FC po siya sa loading niya di ko po alan kng san po my prob at ano po b ang mgandang pang sign ng apk thanks po
 
zipalign tool http://developer.android.com/tools/help/zipalign.html

"zipalign must only be performed after the .apk file has been signed with your private key. If you perform zipalign before signing, then the signing procedure will undo the alignment. Also, do not make alterations to the aligned package. Alterations to the archive, such as renaming or deleting entries, will potentially disrupt the alignment of the modified entry and all later entries. And any files added to an "aligned" archive will not be aligned." - developer.android.com

Kung gamit mo Eclipse with ADT plugin. zipalign na bahala na mag align ng apk mo automatik na un.. Na FC kasi hindi proper o kulang ang proseso na ginawa mo po
 
mga sir patulong naman sa code na ito. sinusundan ko kase ung "how to make your first android app d2 sa site na to link ang problema may error sa code ko banda sa <Edittext san po ba ang problema and pano ma fix?

<LinearLayout 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:orientation="horizontal" >
</LinearLayout>
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_context"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_context"
android:layout_Height="wrap_context"
android:text="@string/button_send" />
 
mga sir patulong naman sa code na ito. sinusundan ko kase ung "how to make your first android app d2 sa site na to link ang problema may error sa code ko banda sa <Edittext san po ba ang problema and pano ma fix?

<LinearLayout 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:orientation="horizontal" >
</LinearLayout>
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_context"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_context"
android:layout_Height="wrap_context"
android:text="@string/button_send" />


ayan po sir :D
Code:
<LinearLayout 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:orientation="horizontal" >
<EditText android:id="@+id/edit_message" 
    android:layout_width="wrap_context"
    android:layout_height="wrap_content"
    android:hint="@string/edit_message" />
<Button
    android:layout_width="wrap_context"
    android:layout_Height="wrap_context"
    android:text="@string/button_send" />
</LinearLayout>
 
Last edited:
P help namn po gusto ko po sanang ipass ung "tot" sa next activity
Code:
package com.my.app;


import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.view.View;
import android.view.View.OnClickListener;
import android.text.Editable;
import android.text.InputType;
import android.widget.EditText;
import android.widget.TextView;
import android.app.AlertDialog;

public class Daily extends Activity{

	EditText first;
	EditText second;
	EditText third;
	EditText fourth;
	EditText fifth;
	EditText sixth;
	EditText seventh;
	TextView Result;

	EditText firsttr;
	EditText secondtr;
	EditText thirdtr;
	EditText fourthtr;
	EditText fifthtr;
	EditText sixthtr;
	EditText seventhtr;		
	TextView total1;
	Button btnsubmit;
	/** Called when the activity is first created. */
    @Override

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.daily); 
        
        //FOODS        
        first = (EditText)findViewById(R.id.et1);
        second = (EditText)findViewById(R.id.et2);     
        third = (EditText)findViewById(R.id.et3);              
        fourth = (EditText)findViewById(R.id.et4);      
        fifth = (EditText)findViewById(R.id.et5);
        sixth = (EditText)findViewById(R.id.et6);
        seventh = (EditText)findViewById(R.id.et7);
        //TRANSPO        
        firsttr = (EditText)findViewById(R.id.ett1);
        secondtr = (EditText)findViewById(R.id.ett2);     
        thirdtr = (EditText)findViewById(R.id.ett3);              
        fourthtr = (EditText)findViewById(R.id.ett4);      
        fifthtr = (EditText)findViewById(R.id.ett5);
        sixthtr = (EditText)findViewById(R.id.ett6);
        seventhtr = (EditText)findViewById(R.id.ett7);

        btnsubmit=(Button)findViewById(R.id.btnsubmit);        
        btnsubmit.setOnClickListener(new View.OnClickListener(){
      public void onClick(View w){
    	  final Intent it = new Intent(Daily.this,Calculate.class);
    	 
        	
    	  //FOODS
		  it.putExtra("mondayf", ((TextView) first).getText().toString());
	      it.putExtra("tuesdayf", ((TextView) second).getText().toString());
	      it.putExtra("wednesdayf", ((TextView) third).getText().toString());
	      it.putExtra("thursdayf", ((TextView) fourth).getText().toString());
	      it.putExtra("fridayf", ((TextView) fifth).getText().toString());
	      it.putExtra("saturdayf", ((TextView) sixth).getText().toString());
	      it.putExtra("sundayf", ((TextView) seventh).getText().toString()); 
	    
	        
	      	//TRANSPO
	      it.putExtra("mondayt", ((TextView) firsttr).getText().toString());
	      it.putExtra("tuesdayt", ((TextView) secondtr).getText().toString());
	      it.putExtra("wednesdayt", ((TextView) thirdtr).getText().toString());
	      it.putExtra("thursdayt", ((TextView) fourthtr).getText().toString());
	      it.putExtra("fridayt", ((TextView) fifthtr).getText().toString());
	      it.putExtra("saturdayt", ((TextView) sixthtr).getText().toString());
	      it.putExtra("sundayt", ((TextView) seventhtr).getText().toString());
	      
	      int total,add1,add2,add3,add4,add5,add6,add7;
    	  String tot;
    	  add1=Integer.parseInt(first.getText().toString());
    	  add2=Integer.parseInt(second.getText().toString());
	      add3=Integer.parseInt(third.getText().toString());
	      add4=Integer.parseInt(fourth.getText().toString());
	      add5=Integer.parseInt(fifth.getText().toString());
	      add6=Integer.parseInt(sixth.getText().toString());
	      add7=Integer.parseInt(seventh.getText().toString());		     
	      total=add1+add2+add3+add4+add5+add6+add7;
	      tot =""+total; 
	   it.putExtra("foods",Integer.parseInt(tot.getKey().toString()));
      startActivity(it);
      Daily.this.finish();
      }
        }
        );}}

next Activity
Code:
package com.my.app;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.Context;
import android.content.Intent;

public class Calculate extends Activity{

	
	 public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.calculate);

	        
	        
	        
	        
	        //FOODS
	        TextView vf1=(TextView)findViewById(R.id.vf1);
	        vf1.setText(getIntent().getExtras().getString("mondayf"));
	        
	        TextView vf2=(TextView)findViewById(R.id.vf2);
	        vf2.setText(getIntent().getExtras().getString("tuesdayf"));

	        TextView vf3=(TextView)findViewById(R.id.vf3);
	        vf3.setText(getIntent().getExtras().getString("wednesdayf"));
	        
	        TextView vf4=(TextView)findViewById(R.id.vf4);
	        vf4.setText(getIntent().getExtras().getString("thursdayf"));

	        TextView vf5=(TextView)findViewById(R.id.vf5);
	        vf5.setText(getIntent().getExtras().getString("fridayf"));
	        
	        TextView vf6=(TextView)findViewById(R.id.vf6);
	        vf6.setText(getIntent().getExtras().getString("saturdayf"));
	 
	        TextView vf7=(TextView)findViewById(R.id.vf7);
	        vf7.setText(getIntent().getExtras().getString("sundayf"));	 

	        //TRANSPO
	        
	        TextView vt1=(TextView)findViewById(R.id.vt1);
	        vt1.setText(getIntent().getExtras().getString("mondayt"));
	        
	        TextView vt2=(TextView)findViewById(R.id.vt2);
	        vt2.setText(getIntent().getExtras().getString("tuesdayt"));

	        TextView vt3=(TextView)findViewById(R.id.vt3);
	        vt3.setText(getIntent().getExtras().getString("wednesdayt"));
	        
	        TextView vt4=(TextView)findViewById(R.id.vt4);
	        vt4.setText(getIntent().getExtras().getString("thursdayt"));

	        TextView vt5=(TextView)findViewById(R.id.vt5);
	        vt5.setText(getIntent().getExtras().getString("fridayt"));
	        
	        TextView vt6=(TextView)findViewById(R.id.vt6);
	        vt6.setText(getIntent().getExtras().getString("saturdayt"));
	 
	        TextView vt7=(TextView)findViewById(R.id.vt7);
	        vt7.setText(getIntent().getExtras().getString("sundayt"));
	              
	        TextView vfr=(TextView)findViewById(R.id.vfr);
	        vfr.setText(getIntent().getExtras().getString("foods"));
	
	 }
}
Pano po mtransfer ung data sa kabilang activity?
 
Back
Top Bottom