HI
remove this
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
because of this it launching the two maina ctivities
On Mon, Aug 10, 2009 at 12:49 PM, Naveen Krishna Ch <naveenkrishna.ch@
gmail.com> wrote:
>
>
> 2009/8/10 Liviu Ungureanu <[email protected]>
>
> hi!
>>
>> I have 2 activities and when i install my application on phone my
>> activities are installed as separate apps...
>> Can someone help me this please..i want one application with 2
>> activities...
>>
>> This is the Manifest file:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
>> package="com.app.lookitup2"
>> android:versionCode="1"
>> android:versionName="1.0"
>> android:icon = "@drawable/icon"
>> android:windowSoftInputMode="stateVisible">
>> <application android:icon="@drawable/icon"
>> android:label="@string/app_name">
>>
>> <activity android:name=".MainActivity"
>> android:label="lookItUp"
>> android:windowSoftInputMode="stateVisible|adjustResize">
>>
>> <intent-filter>
>> <action android:name="android.intent.action.MAIN" />
>> <category android:name="android.intent.category.LAUNCHER"
>> />
>> </intent-filter>
>> </activity>
>> <activity
>> android:name=".ResultsActivity"
>> android:label="test">
>> <intent-filter>
>> <action android:name="android.intent.action.MAIN" />
>> <category android:name="android.intent.category.LAUNCHER"
>> />
>
>
>> </intent-filter>
>> </activity>
>> </application>
>> <uses-sdk android:minSdkVersion="3" />
>> </manifest>
>
> remove the intent filter for the 2nd activity.
> use it only for main activity
>
>>
>>
>> Thank you!
>>
>>
>>
>>
>>
>
>
> --
> Shine bright,
> (: Naveen Krishna Ch :)
> ~~Forgiveness is the economy of the heart...
> forgiveness saves the expense of anger, the cost of hatred, the waste of
> spirits.~~
>
>
> >
>
--
Regards
-------------------
Desu Vinod Kumar
[email protected]
09176147148
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---