<?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_onClick</id>
	<title>Android Studio: onClick - 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_onClick"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_onClick&amp;action=history"/>
	<updated>2026-04-20T07:59:10Z</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:_onClick&amp;diff=64744&amp;oldid=prev</id>
		<title>Unknown user: Created page with &quot;A. Make sure your other activity is declared in manifest:   &lt;activity      android:name=&quot;MyOtherActivity&quot;      android:label=&quot;@string/app_name&quot;&gt;  &lt;/activity&gt;  All activities m...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Android_Studio:_onClick&amp;diff=64744&amp;oldid=prev"/>
		<updated>2022-03-19T11:21:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;A. Make sure your other activity is declared in manifest:   &amp;lt;activity      android:name=&amp;quot;MyOtherActivity&amp;quot;      android:label=&amp;quot;@string/app_name&amp;quot;&amp;gt;  &amp;lt;/activity&amp;gt;  All activities m...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A. Make sure your other activity is declared in manifest:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;activity&lt;br /&gt;
     android:name=&amp;quot;MyOtherActivity&amp;quot;&lt;br /&gt;
     android:label=&amp;quot;@string/app_name&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;/activity&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All activities must be declared in manifest, even if they do not have an intent filter assigned to them.&lt;br /&gt;
&lt;br /&gt;
B. In your MainActivity do something like this:&lt;br /&gt;
&lt;br /&gt;
 Button btn = (Button)findViewById(R.id.open_activity_button);    &lt;br /&gt;
 &lt;br /&gt;
 btn.setOnClickListener(new View.OnClickListener() {         &lt;br /&gt;
         @Override&lt;br /&gt;
         public void onClick(View v) {&lt;br /&gt;
             startActivity(new Intent(MainActivity.this, MyOtherActivity.class));&lt;br /&gt;
         }&lt;br /&gt;
 });&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://stackoverflow.com/questions/24610527/how-do-i-get-a-button-to-open-another-activity&lt;/div&gt;</summary>
		<author><name>Unknown user</name></author>
	</entry>
</feed>