Two applications in one Manifest file ?

by sandy8531 » Fri, 13 Mar 2009 00:49:54 GMT


Sponsored Links
 Is it possible to have two application tags (<application>)  in the
same AndroidManifest.xml file ?

If yes - is there anything special that needs to be done, I am trying
it, the syntax is accepted by the XML parser but when I install my
second application is not available.

--~--~---------~--~----~------------~-------~--~----~



Two applications in one Manifest file ?

by droozen » Fri, 13 Mar 2009 01:21:29 GMT


 You want to have two applications in your application? Why not make
the other application a separate application?

I'm not sure if the xml would let you and all that, but I why would
you want to?



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Two applications in one Manifest file ?

by Dianne Hackborn » Fri, 13 Mar 2009 02:54:53 GMT


 No, you can only have one application tag.  Why exactly do you want to have
multiple tags?






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



Two applications in one Manifest file ?

by deepdr...@googlemail.com » Sat, 14 Mar 2009 02:34:43 GMT


 What you can do is to have multiple launcher activities in one
application, with

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

As far as I know you'd get multiple entries then in the launcher.

--
 http://www.deepdroid.com 




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Vanishing apps in the Market with 2.2.2

We've had a number of complaints of our apps vanishing from the Market
with OTA updates over the last few days. And, lo and behold, when our
Nexus One got 2.2.2 a day or so ago, it also lost our paid apps from
the Market.

There are one or two other devs complaining of the same thing in the
Market forums, but no comment from Google as yet. Anyone else seen
it ? Any clues about what might be going on ?

Thanks,

Richard

-- 

2. Problem releasing activities

I've an application that has a service that updates some widgets and
also has some normal foreground activities to let the user view some
data.
My problem is that I discovered [1] that my application consumes a lot
of memory. That memory is mainly consumed by the activities, and the
big problem is that I'm not been able to release the memory of the
activities once they are started.

I've look at various articles about memory leaks and I've tried to
don't retain activity contexts.
I've tried to put a finish() in onPause() of activity to try to force
to release
I've tried to analyze with MAT with dominator tree but it doesn't
shows any class of my app as a dominator.
Also I've tried to analyze one of the activities with MAT, but I don't
see why memory is retained. Here is an extract of ingoing references
to one of the activities:
It seems that all of this references are from the view, or is one of
them suspicious?

Class
Name
| Shallow Heap | Retained Heap
---------------------------------------------------------------------------------------------------------------
cat.joanpujol.eltemps.PredictionActivity @
0x482b70e0                           |          192 |        16.304
|- mContext android.widget.ToggleButton @
0x48195bf8                            |          536 |         2.800
|- mContext com.android.internal.policy.impl.PhoneWindow$DecorView @
0x4819f4b8 |          368 |           696
|- mContext com.android.internal.policy.impl.PhoneLayoutInflater @
0x481a5dc0   |           32 |            56
|- mContext com.android.internal.policy.impl.PhoneLayoutInflater @
0x481a5e08   |           32 |            88
|- [0] java.lang.Object[2] @
0x481a5e30                                         |           24
|            56
|- mContext android.widget.ScrollView @
0x481b3cc8                              |          384 |
1.392
|- mCallback, mContext com.android.internal.policy.impl.PhoneWindow @
0x481c74c8|          176 |         2.320
|- mContext android.widget.FrameLayout @
0x481ce8a8                             |          328 |           648
|- mContext android.widget.LinearLayout @
0x481d66a0                            |          328 |         5.112
|- referent java.lang.ref.WeakReference @
0x481ef528                            |           24 |            24
|- activity android.app.LocalActivityManager$LocalActivityRecord @
0x48226cc0   |           48 |            48
|- mOuterContext android.app.ContextImpl @
0x4827ee48                           |          152 |           320
|- mContext android.widget.ToggleButton @
0x4828f3a0                            |          536 |         2.808
|- mContext android.widget.TextView @
0x48292838                                |          504 |
3.880
|- mContext android.widget.LinearLayout @
0x4829b620                            |          328 |           584
|- mContext android.widget.ToggleButton @
0x482b54e0                            |          536 |         2.808
|- mContext android.widget.ImageView @
0x482ca830                               |          312 |
720
'- Total: 17
entries
|              |
---------------------------------------------------------------------------------------------------------------

Some one can give me some ligth?
I'm doing something bad?
Any information or suggerence will be very apreciated.

A lot of thanks in advance,



[1] 

3. Data Transfer between Android Phone and PC

4. Shell Console for Android

5. Cannot on wifi in Android ported on BeagleBoard

6. openFileOutput, FileNotFoundException

7. how to change background of a widget