Sunday, January 17, 2010

[android-developers] how to create a activity or a view that can be used by any application

Hi,

I'm not yet familiar with the android terms...

I have a library (a view) that has a simple activity. How can i make
it available to any application?

I can explain in details: i have a virtual machine that is composed of
0.1% java code and 99.9% c code. Basically, the java code process
events and sends to the vm.

Now an user may deploy its application. The idea is to have something
like this:

Intent intent = new Intent("android.intent.action.MAIN");
intent.setClassName(packageName, className);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
startActivity(intent);
return 0;

How can i make the activity available to any application so that the
code above would work?

best regards

guich

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate