Start an activity without declaring it in manifest file

by semaka » Tue, 02 Sep 2008 21:42:41 GMT


Sponsored Links
 Hi guys,

I have a project in which I have to start an activity which is not
declared in AndroidManifest.xml. Is that possible to register an
activity dynamically by code? Or is it possible to overwrite the
AndroidManifest.xml from an installed .apk  or to replace it without
reinstalling the .apk on the emulator?

Any help will be highly appreciated.

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



Start an activity without declaring it in manifest file

by Mark Murphy » Tue, 02 Sep 2008 22:21:20 GMT


 


Not that I'm aware of.


Not that I'm aware of.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 1.1 Published!

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


Sponsored Links


Start an activity without declaring it in manifest file

by Justin (Google Employee) » Wed, 03 Sep 2008 03:10:37 GMT


 As mark has said, nope, its not possible. The manifest registers your
application with the system. This is the only way the system becomes
aware of executable targets.

Cheers,
Justin
Android Team @ Google





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



Other Threads

1. How to create shape xml with two gradient rectangles?

Hi
I am trying to use gradient xml as my background instead of a png for
a button. I know how to create shape xml with (StartColor, EndColor).
But I have a background with two parts. The top rectangle has one
gradient and the bottom uses different gradient.
How do I specify this in one xml file?

My current background xml is like below:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle" >
        <gradient android:startColor="#FF2139ed"
                  android:endColor="#FF0f1b73"
              android:angle="270" />
</shape>

Thanks
Videoguy
--~--~---------~--~----~------------~-------~--~----~

2. Static scope and disallocation

Static members and variables are not freshly initilialised when
subsequelntly booting my application.
It seems that these are hold somewhere for the entire process lifetime
of my app.
Disallocation in code sometimes fails(myObject = null; ).

Has someone experienced the same ? What would be a good practise ? Any
Workaround?

Thanks
taneroffline

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

3. Android Java with C/C++

4. Animate an AlertDialog

5. Bailout Bonanza released for the G1

6. bluetooth on/off from UI

7. My messages are not appearing? How to reach moderators?