Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
iphone x used
AssassiN1
Updated:
Yesterday at 10:30 PM
කිතුල් තලප
Manoj Suranga Bandara
Updated:
Saturday at 7:04 PM
Ad icon
ව්යාපාර, Tuition පන්ති සහ Personal Portfolios සඳහා Web Setup එකක් රු. 9,099/- කට (වාර්ෂික renewal ර
thathsilura
Updated:
Thursday at 6:17 PM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Aug 19, 2026
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Aug 18, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
Android app ekak hadamu part 3
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="mjayanatha" data-source="post: 14535125" data-attributes="member: 71029"><p><span style="font-size: 15px"><span style="color: Purple">අද බලමු ඇප එකට කොහොමද මෙනු දාගන්නේ කියල.... කලින් ත්රෙඩ් වල මම කෝඩ් වල ඉමේජ් දැම්මේ අද ඉඳල කොපි කරන්න පුළුවන් විදියට දාන්න හිතුව.. තව ෆුල් ප්රොජෙක්ට් එකත් ඩව්න්ලෝඩ් කරන ගන්න පුළුවන් වෙන්නත්....</span></span></p><p></p><p></p><p></p><p><span style="font-size: 15px"><span style="color: RoyalBlue">හරි දැන් වැඩේට බහිමු... මුලින්ම ප්රොජෙක්ට් එකක් ඔපෙන් කරගන්න...ඊට පස්සේ ප්රොජෙක්ට් එකේ තියෙනවා res ෆෝල්ඩර් එකේ මෙනු කියල එකක්..එකේ තියෙනවා xml එකක් එක ඔපෙන් කරන්න.. එකේ තියෙනවා add බටන් එකක්..</span></span></p><p></p><p><img src="http://img13.imageshack.us/img13/2913/87212765.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><span style="color: Green">එකෙන් මෙනු add කරගන්න... add කරනකොට ඔප්ෂන් 2ක් අහනවා ඒක ඔයාල කැමති විදියට කරන්න... </span></span></p><p><span style="font-size: 15px"><span style="color: Green"></span></span></p><p></p><p><img src="http://img854.imageshack.us/img854/7417/menufa.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 15px"><span style="color: Teal">දැන් කෝඩ් වලට බහිමු...</span></span></p><p><span style="font-size: 15px"><span style="color: Teal"></span></span></p><p><span style="font-size: 15px"><span style="color: Teal">මුලින්ම අපේ interface එකේ කෝඩ් එක</span></span></p><p></p><p><span style="font-size: 15px"><span style="color: Purple">Layout XML</span></span></p><p></p><p>[CODE]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"</p><p> xmlns:tools="http://schemas.android.com/tools"</p><p> android:layout_width="fill_parent"</p><p> android:layout_height="fill_parent" ></p><p> </p><p> <TextView</p><p> android:layout_width="wrap_content"</p><p> android:layout_height="wrap_content"</p><p> android:layout_centerHorizontal="true"</p><p> android:layout_centerVertical="true"</p><p> android:text="WELCOME TO MYDOOPLE.COM"</p><p> tools:context=".MainActivity" /></p><p> </p><p></RelativeLayout> [/CODE]</p><p></p><p></p><p><span style="font-size: 15px"><span style="color: RoyalBlue">මෙනු එක අපි ඩිසයින් කලාට කෝඩ් එකක් හැදෙනවා ඒක බලමු මුලින්ම </span></span></p><p></p><p></p><p><span style="font-size: 15px"><span style="color: Purple"> menu xml</span></span></p><p></p><p>[CODE]<menu xmlns:android="http://schemas.android.com/apk/res/android"></p><p> <item android:id="@+id/menu_settings"</p><p> android:title="@string/menu_settings"</p><p> android:orderInCategory="100" /></p><p> <item android:id="@+id/item1" android:title="Search"></item></p><p> <item android:id="@+id/item2" android:title="Themes"></item></p><p></menu>[/CODE]</p><p></p><p></p><p><span style="font-size: 15px"><span style="color: purple">Main Java File</span></span> <img src="/styles/default/xenforo/smilies/default/dull.gif" class="smilie" loading="lazy" alt=":dull:" title="Dull :dull:" data-shortname=":dull:" /></p><p></p><p>[CODE]package com.mahesh.mydooplemenus;</p><p> </p><p>import android.app.Activity;</p><p>import android.content.Intent;</p><p>import android.os.Bundle;</p><p>import android.view.Menu;</p><p>import android.view.MenuItem;</p><p>import android.widget.Toast;</p><p> </p><p>public class MyDoople extends Activity {</p><p> </p><p> @Override</p><p> public void onCreate(Bundle savedInstanceState) {</p><p> super.onCreate(savedInstanceState);</p><p> setContentView(R.layout.activity_my_doople);</p><p> }</p><p> </p><p> @Override</p><p> public boolean onCreateOptionsMenu(Menu menu) {</p><p> getMenuInflater().inflate(R.menu.activity_my_doople, menu);</p><p> return true;</p><p> }</p><p> </p><p> public boolean onOptionsItemSelected(MenuItem item) {</p><p> </p><p> // when you click setting menu</p><p> switch (item.getItemId()) {</p><p> case R.id.menu_settings:</p><p> Intent intent = new Intent(this, MainActivity.class);</p><p> startActivity(intent);</p><p> return true;</p><p> case R.id.item1:</p><p> </p><p> Toast.makeText(MyDoople.this, "Item 1", Toast.LENGTH_SHORT).show();</p><p> </p><p> return true;</p><p> case R.id.item2:</p><p> </p><p> Toast.makeText(MyDoople.this, "Item 2", Toast.LENGTH_SHORT).show();</p><p> </p><p> return true;</p><p> default:</p><p> return super.onOptionsItemSelected(item);</p><p> }</p><p> </p><p> }</p><p> </p><p>}[/CODE]</p><p></p><p><span style="font-size: 15px"><span style="color: Purple">Manifest XML</span></span></p><p></p><p>[CODE]<manifest xmlns:android="http://schemas.android.com/apk/res/android"</p><p> package="com.mahesh.mydooplenortification"</p><p> android:versionCode="1"</p><p> android:versionName="1.0" ></p><p> </p><p> <uses-sdk</p><p> android:minSdkVersion="6"</p><p> android:targetSdkVersion="15" /></p><p> </p><p> <application</p><p> android:icon="@drawable/ic_launcher"</p><p> android:label="@string/app_name"</p><p> android:theme="@style/AppTheme" ></p><p> <activity</p><p> android:name=".MainActivity"</p><p> android:label="@string/title_activity_main" ></p><p> <intent-filter></p><p> <action android:name="android.intent.action.MAIN" /></p><p> </p><p> <category android:name="android.intent.category.LAUNCHER" /></p><p> </intent-filter></p><p> </activity></p><p> </application></p><p> </p><p></manifest>[/CODE]</p><p></p><p><span style="font-size: 15px"><strong><span style="color: DarkRed">manifest එකේ අපි ඔපෙන් කරන ෆෝර්ම්(ඉන්ටෙන්ට්) ඔක්කටම මෙන් අක්ටිවිටි එකක් හැදෙනවා එක ඕන නැති ඒවගේ මකන්න.. නැතිනම් apk එක install කලාම ෂෝර්ට්කට් වගේ හැදෙනවා.. එක පට්ට චා <img src="/styles/default/xenforo/smilies/default/angry.gif" class="smilie" loading="lazy" alt=":angry:" title="Angry :angry:" data-shortname=":angry:" /> </span></strong></span></p><p><span style="font-size: 15px"><strong><span style="color: DarkRed"></span></strong></span></p><p></p><p><span style="font-size: 15px"><span style="color: Purple">මේ ටික හරිනම් මේ වගේ මෙනු පෙන්න ඕන <img src="/styles/default/xenforo/smilies/default/cool.gif" class="smilie" loading="lazy" alt=":cool:" title="Cool :cool:" data-shortname=":cool:" /></span></span></p><p></p><p><img src="http://www.mydoople.com/wp-content/uploads/2013/02/menu.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>ප්රොජෙක්ට් එක ගන්න <a href="http://www.mydoople.com/?p=62" target="_blank">මේකට</a> </p><p></p><p><a href="http://uploading.com/518a4m77/MydoopleMenus-rar" target="_blank">Direct download</a></p><p></p><p><span style="font-size: 15px"><span style="color: Red"><strong>එන ප්රශ්න ත්රෙඩ් එකේම අහන්න... </strong></span></span></p><p></p><p>මගේ කලින් andoird ඇප හදමු ත්රෙඩ් </p><p></p><p><a href="http://www.elakiri.com/forum/showthread.php?t=1525798" target="_blank">Android app ekak hadamu-1</a></p><p></p><p><a href="http://www.elakiri.com/forum/showthread.php?t=1532566" target="_blank">Android app ekak hadamu-2</a></p></blockquote><p></p>
[QUOTE="mjayanatha, post: 14535125, member: 71029"] [SIZE="4"][COLOR="Purple"]අද බලමු ඇප එකට කොහොමද මෙනු දාගන්නේ කියල.... කලින් ත්රෙඩ් වල මම කෝඩ් වල ඉමේජ් දැම්මේ අද ඉඳල කොපි කරන්න පුළුවන් විදියට දාන්න හිතුව.. තව ෆුල් ප්රොජෙක්ට් එකත් ඩව්න්ලෝඩ් කරන ගන්න පුළුවන් වෙන්නත්....[/COLOR][/SIZE] [SIZE="4"][COLOR="RoyalBlue"]හරි දැන් වැඩේට බහිමු... මුලින්ම ප්රොජෙක්ට් එකක් ඔපෙන් කරගන්න...ඊට පස්සේ ප්රොජෙක්ට් එකේ තියෙනවා res ෆෝල්ඩර් එකේ මෙනු කියල එකක්..එකේ තියෙනවා xml එකක් එක ඔපෙන් කරන්න.. එකේ තියෙනවා add බටන් එකක්..[/COLOR][/SIZE] [IMG]http://img13.imageshack.us/img13/2913/87212765.png[/IMG] [SIZE="4"][COLOR="Green"]එකෙන් මෙනු add කරගන්න... add කරනකොට ඔප්ෂන් 2ක් අහනවා ඒක ඔයාල කැමති විදියට කරන්න... [/COLOR][/SIZE] [IMG]http://img854.imageshack.us/img854/7417/menufa.png[/IMG] [SIZE="4"][COLOR="Teal"]දැන් කෝඩ් වලට බහිමු... මුලින්ම අපේ interface එකේ කෝඩ් එක[/COLOR][/SIZE] [SIZE="4"][COLOR="Purple"]Layout XML[/COLOR][/SIZE] [CODE]<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="WELCOME TO MYDOOPLE.COM" tools:context=".MainActivity" /> </RelativeLayout> [/CODE] [SIZE="4"][COLOR="RoyalBlue"]මෙනු එක අපි ඩිසයින් කලාට කෝඩ් එකක් හැදෙනවා ඒක බලමු මුලින්ම [/COLOR][/SIZE] [SIZE="4"][COLOR="Purple"] menu xml[/COLOR][/SIZE] [CODE]<menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/menu_settings" android:title="@string/menu_settings" android:orderInCategory="100" /> <item android:id="@+id/item1" android:title="Search"></item> <item android:id="@+id/item2" android:title="Themes"></item> </menu>[/CODE] [SIZE="4"][COLOR="purple"]Main Java File[/COLOR][/SIZE] :dull: [CODE]package com.mahesh.mydooplemenus; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public class MyDoople extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_my_doople); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_my_doople, menu); return true; } public boolean onOptionsItemSelected(MenuItem item) { // when you click setting menu switch (item.getItemId()) { case R.id.menu_settings: Intent intent = new Intent(this, MainActivity.class); startActivity(intent); return true; case R.id.item1: Toast.makeText(MyDoople.this, "Item 1", Toast.LENGTH_SHORT).show(); return true; case R.id.item2: Toast.makeText(MyDoople.this, "Item 2", Toast.LENGTH_SHORT).show(); return true; default: return super.onOptionsItemSelected(item); } } }[/CODE] [SIZE="4"][COLOR="Purple"]Manifest XML[/COLOR][/SIZE] [CODE]<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.mahesh.mydooplenortification" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="6" android:targetSdkVersion="15" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/title_activity_main" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>[/CODE] [SIZE="4"][B][COLOR="DarkRed"]manifest එකේ අපි ඔපෙන් කරන ෆෝර්ම්(ඉන්ටෙන්ට්) ඔක්කටම මෙන් අක්ටිවිටි එකක් හැදෙනවා එක ඕන නැති ඒවගේ මකන්න.. නැතිනම් apk එක install කලාම ෂෝර්ට්කට් වගේ හැදෙනවා.. එක පට්ට චා :angry: [/COLOR][/B][/SIZE] [SIZE="4"][COLOR="Purple"]මේ ටික හරිනම් මේ වගේ මෙනු පෙන්න ඕන :cool:[/COLOR][/SIZE] [IMG]http://www.mydoople.com/wp-content/uploads/2013/02/menu.png[/IMG] ප්රොජෙක්ට් එක ගන්න [URL="http://www.mydoople.com/?p=62"]මේකට[/URL] [URL="http://uploading.com/518a4m77/MydoopleMenus-rar"]Direct download[/URL] [SIZE="4"][COLOR="Red"][B]එන ප්රශ්න ත්රෙඩ් එකේම අහන්න... [/B][/COLOR][/SIZE] මගේ කලින් andoird ඇප හදමු ත්රෙඩ් [URL="http://www.elakiri.com/forum/showthread.php?t=1525798"]Android app ekak hadamu-1[/URL] [URL="http://www.elakiri.com/forum/showthread.php?t=1532566"]Android app ekak hadamu-2[/URL] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom