<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_6</id>
	<title>Android Studio: Cara Membuat Android Apps 6 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Android_Studio%3A_Cara_Membuat_Android_Apps_6"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;action=history"/>
	<updated>2026-04-20T04:34:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;diff=42825&amp;oldid=prev</id>
		<title>Onnowpurbo at 13:39, 20 April 2015</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;diff=42825&amp;oldid=prev"/>
		<updated>2015-04-20T13:39:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;amp;diff=42825&amp;amp;oldid=42700&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;diff=42700&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: In this tutorial I’ll show you how to fix Android Studio errors that you guys are having trouble with. I’ll also show how to pass objects between screens in Android.  I show how to set...</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_Cara_Membuat_Android_Apps_6&amp;diff=42700&amp;oldid=prev"/>
		<updated>2015-03-18T08:19:55Z</updated>

		<summary type="html">&lt;p&gt;New page: In this tutorial I’ll show you how to fix Android Studio errors that you guys are having trouble with. I’ll also show how to pass objects between screens in Android.  I show how to set...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In this tutorial I’ll show you how to fix Android Studio errors that you guys are having trouble with. I’ll also show how to pass objects between screens in Android.&lt;br /&gt;
&lt;br /&gt;
I show how to set up Android Studio 0.8, show the files you need to install in the SDK Manager, and how to set up a working Android Virtual Device. I’ll also show how to fix the UIDs are inconsistent error. You can download Android Studio here. All the code used follows the tutorial below.&lt;br /&gt;
&lt;br /&gt;
If you like videos like this, it helps to submit to Google Plus with a click here&lt;br /&gt;
&lt;br /&gt;
If you want a chance to win a Samsung Galaxy Note 3 and Galaxy Gear Smart Watch check out my new contest.&lt;br /&gt;
&lt;br /&gt;
All of the Code from the Video&lt;br /&gt;
&lt;br /&gt;
This code is in addition to the code covered in part 5 of my How to Make Android Apps tutorial.&lt;br /&gt;
&lt;br /&gt;
build.gradle&lt;br /&gt;
&lt;br /&gt;
apply plugin: &amp;#039;android&amp;#039;&lt;br /&gt;
&lt;br /&gt;
android {&lt;br /&gt;
    compileSdkVersion 19&lt;br /&gt;
    buildToolsVersion &amp;#039;19.1.0&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    defaultConfig {&lt;br /&gt;
        minSdkVersion 14&lt;br /&gt;
        targetSdkVersion 19&lt;br /&gt;
        versionCode 1&lt;br /&gt;
        versionName &amp;quot;1.0&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
    buildTypes {&lt;br /&gt;
        release {&lt;br /&gt;
            runProguard false&lt;br /&gt;
            proguardFiles getDefaultProguardFile(&amp;#039;proguard-android.txt&amp;#039;), &amp;#039;proguard-rules.txt&amp;#039;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
dependencies {&lt;br /&gt;
    compile fileTree(dir: &amp;#039;libs&amp;#039;, include: [&amp;#039;*.jar&amp;#039;])&lt;br /&gt;
    compile &amp;#039;com.android.support:appcompat-v7:19.+&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Human.java&lt;br /&gt;
&lt;br /&gt;
package com.newthinktank.switchingscreens.app;&lt;br /&gt;
&lt;br /&gt;
import java.io.Serializable;&lt;br /&gt;
&lt;br /&gt;
public class Human implements Serializable{&lt;br /&gt;
&lt;br /&gt;
    private double height, weight;&lt;br /&gt;
    private String name = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    public Human(double height, double weight, String name) {&lt;br /&gt;
        this.height = height;&lt;br /&gt;
        this.weight = weight;&lt;br /&gt;
        this.name = name;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public double getHeight() {&lt;br /&gt;
        return height;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void setHeight(double height) {&lt;br /&gt;
        this.height = height;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public double getWeight() {&lt;br /&gt;
        return weight;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void setWeight(double weight) {&lt;br /&gt;
        this.weight = weight;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public String getName() {&lt;br /&gt;
        return name;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void setName(String name) {&lt;br /&gt;
        this.name = name;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
MainActivity.java&lt;br /&gt;
&lt;br /&gt;
package com.newthinktank.switchingscreens.app;&lt;br /&gt;
&lt;br /&gt;
import android.content.Intent;&lt;br /&gt;
import android.os.Bundle;&lt;br /&gt;
import android.support.v7.app.ActionBarActivity;&lt;br /&gt;
import android.view.Menu;&lt;br /&gt;
import android.view.MenuItem;&lt;br /&gt;
import android.view.View;&lt;br /&gt;
import android.widget.TextView;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class MainActivity extends ActionBarActivity {&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
        super.onCreate(savedInstanceState);&lt;br /&gt;
        setContentView(R.layout.activity_main);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public boolean onCreateOptionsMenu(Menu menu) {&lt;br /&gt;
        // Inflate the menu; this adds items to the action bar if it is present.&lt;br /&gt;
        getMenuInflater().inflate(R.menu.main, menu);&lt;br /&gt;
        return true;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public boolean onOptionsItemSelected(MenuItem item) {&lt;br /&gt;
        // Handle action bar item clicks here. The action bar will&lt;br /&gt;
        // automatically handle clicks on the Home/Up button, so long&lt;br /&gt;
        // as you specify a parent activity in AndroidManifest.xml.&lt;br /&gt;
        int id = item.getItemId();&lt;br /&gt;
        if (id == R.id.action_settings) {&lt;br /&gt;
            return true;&lt;br /&gt;
        }&lt;br /&gt;
        return super.onOptionsItemSelected(item);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void onGetNameClick(View view) {&lt;br /&gt;
&lt;br /&gt;
        /*Intent getNameScreenIntent = new Intent(this,&lt;br /&gt;
                SecondScreen.class);*/&lt;br /&gt;
&lt;br /&gt;
        final int result = 1;&lt;br /&gt;
&lt;br /&gt;
        // getNameScreenIntent.putExtra(&amp;quot;callingActivity&amp;quot;, &amp;quot;MainActivity&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        Human bob = new Human(6.25, 185, &amp;quot;Bob&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        Intent sendBob = new Intent(this, SecondScreen.class);&lt;br /&gt;
&lt;br /&gt;
        sendBob.putExtra(&amp;quot;humanBob&amp;quot;, bob);&lt;br /&gt;
&lt;br /&gt;
        startActivityForResult(sendBob, result);&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {&lt;br /&gt;
        super.onActivityResult(requestCode, resultCode, data);&lt;br /&gt;
&lt;br /&gt;
        TextView usersNameMessage = (TextView)&lt;br /&gt;
                findViewById(R.id.users_name_message);&lt;br /&gt;
&lt;br /&gt;
        String nameSentBack = data.getStringExtra(&amp;quot;UsersName&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        usersNameMessage.append(&amp;quot; &amp;quot; + nameSentBack);&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
SecondScreen.java&lt;br /&gt;
&lt;br /&gt;
package com.newthinktank.switchingscreens.app;&lt;br /&gt;
&lt;br /&gt;
import android.app.Activity;&lt;br /&gt;
import android.content.Intent;&lt;br /&gt;
import android.os.Bundle;&lt;br /&gt;
import android.view.View;&lt;br /&gt;
import android.widget.EditText;&lt;br /&gt;
import android.widget.TextView;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class SecondScreen extends Activity{&lt;br /&gt;
    @Override&lt;br /&gt;
    protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;
        super.onCreate(savedInstanceState);&lt;br /&gt;
&lt;br /&gt;
        setContentView(R.layout.second_layout);&lt;br /&gt;
&lt;br /&gt;
        Intent activityThatCalled = getIntent();&lt;br /&gt;
&lt;br /&gt;
        // String previousActivity = activityThatCalled.getExtras().getString(&amp;quot;callingActivity&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        Human bob = (Human) activityThatCalled.getSerializableExtra(&amp;quot;humanBob&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        TextView callingActivityMessage = (TextView)&lt;br /&gt;
                findViewById(R.id.calling_activity_info_text_view);&lt;br /&gt;
&lt;br /&gt;
        callingActivityMessage.append(bob.getName() + &amp;quot; &amp;quot; +&lt;br /&gt;
        bob.getHeight() + &amp;quot; ft &amp;quot; + bob.getWeight() + &amp;quot; lbs&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void onSendUsersName(View view) {&lt;br /&gt;
&lt;br /&gt;
        EditText usersNameET = (EditText)&lt;br /&gt;
                findViewById(R.id.users_name_edit_text);&lt;br /&gt;
&lt;br /&gt;
        String usersName = String.valueOf(usersNameET.getText());&lt;br /&gt;
&lt;br /&gt;
        Intent goingBack = new Intent();&lt;br /&gt;
&lt;br /&gt;
        goingBack.putExtra(&amp;quot;UsersName&amp;quot;, usersName);&lt;br /&gt;
&lt;br /&gt;
        setResult(RESULT_OK, goingBack);&lt;br /&gt;
&lt;br /&gt;
        finish();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
- See more at: http://www.newthinktank.com/2014/07/make-android-apps-6/#sthash.Sa8GzQnD.dpuf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* http://www.newthinktank.com/2014/07/make-android-apps-6/&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>