Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 31st, 2010, 12:58 PM   #1 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making an adroid activity as the default activity?

Hello guys...

I have a question: I use android in eclipse. I forgot to add activity when i created a new project. So i added a new java class instead, now how would i make this java class as a default to launch activity that first launches when the application is run?

Thanks

nackasha is offline  
Reply With Quote
Sponsors
Old December 31st, 2010, 01:52 PM   #2 (permalink)
The PearlyMon
 
EarlyMon's Avatar
 
Join Date: Jun 2010
Location: New Mexico, USA
Posts: 20,648
 
Device(s): 3vo, Evo and Shift
Thanks: 19,365
Thanked 20,617 Times in 8,964 Posts
Default

Welcome to the forums!

I'm moving you to the developer's forums for this topic.
__________________
|

Minutus cantorum, minutus balorum, minutus carborata descendum pantorum.

Links: Site Rules / Guidelines -and- Zero Tolerance Policy (All Members Read)

If someone's out in left field, the !Report button is to the left of their post.
If someone gives you right-on advice or positively contributes, the Thanks button is to the right.

Remember - it's our forum and we're all in this together - so let's keep it cool.
EarlyMon is online now  
Reply With Quote
Old January 4th, 2011, 12:39 AM   #3 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

Code:
<activity android:name=".ActivityName" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
</activity>
Note that the android:name attribute of the <Activity> node MUST begin with a '.' and is just the name of the java file. For example, if your java file was named Website.java, then the android:name attribute would be:

android:name=".Website"
jonbonazza is online now  
Reply With Quote
Reply

Bookmarks

Tags
default activity


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paranormal Activity 2 Vihzel TV/Film 23 May 6th, 2011 05:23 PM
Finish activity from another activity Tollas Application Development 0 July 2nd, 2010 04:22 PM
Inovking default email client from my activity krish.chauhan Application Development 2 December 27th, 2009 11:46 PM
previous Activity Leela krishna Application Development 0 September 15th, 2009 02:26 AM
SMS Activity Log? d4vyt HTC Hero 4 August 3rd, 2009 03:08 AM



All times are GMT -5. The time now is 11:36 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo