modular programming (design pattern)

by Marton Kodok » Sun, 08 Nov 2009 18:50:36 GMT


Sponsored Links
 Hello,

I am planning to build my app in modular way. I am thinking that whenever a
user adds a new component/module that will be recognized by my main app.
Can someone point me in the best direction to read more about design
patterns for this approach for Android?

Are there any examples out there?

-- 
Mrton

--



modular programming (design pattern)

by RichardC » Sun, 08 Nov 2009 19:11:59 GMT


modular programming (design pattern)

by Marton Kodok » Sun, 08 Nov 2009 19:23:48 GMT


 For example if I have a main app and three modules in mind, such as:
audio, video, and calendar (The modules itself does nothing. They're useful
only when called by the main app)

1. how will the main app know that those modules are installed on the phone,
and can call them? how do I get a list of modules (mine) ?
2. also how do I make my modules hidden to user, they should not be visible
for launch, and should not be able to launched by an icon, only by my app?

2009/11/8 RichardC <richard.crit...@googlemail.com>


>



modular programming (design pattern)

by Justin Anderson » Tue, 10 Nov 2009 03:12:35 GMT


 Are you going to be the only person developing these modules, or are you
planning on creating some sort of a framework that other developers will be
able to tap into?
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------






>>



modular programming (design pattern)

by Marton Kodok » Tue, 10 Nov 2009 04:26:15 GMT


 I will be the only who will develop the modules, no framework in mind.

2009/11/9 Justin Anderson <janderson....@gmail.com>



>>>



modular programming (design pattern)

by Chris Zaniewski » Wed, 11 Nov 2009 23:38:04 GMT


 Please usubscribe




Are you going to be the only person developing these modules, or are you
planning on creating some sort of a framework that other developers will be
able to tap into?
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------



--



Other Threads

1. What the difference between code 'setContentView.(R.layout.main_layout);' and 'setContentView(R.layout.main_layout);'

On the android developer page:
http://developer.android.com/guide/topics/ui/declaring-layout.html
Paragraph: Load the XML Resource
is written such code to setup the layout from xml: setContentView.
(R.layout.main_layout);

So my question is: Is this extra . after setContentView is a mistake
or it is a valid code, so if it is valid what the difference between :

setContentView.(R.layout.main_layout);
and
setContentView(R.layout.main_layout);

-- 

2. Can I use the return matrix of getrotationmatrix() to translate the accelerate to world coordinate system

Hi everyone:
   I wanna translate the return values of Sensor.TYPE_ACCELEROMETER to
the world coordinate system,I did this in this way:

public void onSensorChanged(SensorEvent event) {

                if (event.accuracy == SensorManager.SENSOR_STATUS_UNRELIABLE)
                        return;

                switch (event.sensor.getType()) {
                case Sensor.TYPE_MAGNETIC_FIELD:
                        mags = event.values.clone();
                        break;
                case Sensor.TYPE_ACCELEROMETER:
                        accels = event.values.clone();
                        break;
                case Sensor.TYPE_ORIENTATION:
                        orent = event.values.clone();
                        break;
                }

                if (mags != null && accels != null) {
                        SensorManager.getRotationMatrix(inR, I, accels, mags);
                        for(int k=0;k<3;k++) {
                                a[0] = 
accels[0]*inR[0]+accels[1]*inR[1]+accels[2]*inR[2];//ax
                                a[1] = 
accels[0]*inR[3]+accels[1]*inR[4]+accels[2]*inR[5];//ay
                                a[2] = 
accels[0]*inR[6]+accels[1]*inR[7]+accels[2]*inR[8];//az
....
}

But I find I move the phone in any direction the ax and ay will all be
0,and the az is some value I can't understand, so is any body meet the
same problem,or the return matrix of the getrotationmatrix() is really
inaccurate when there is another accelerate besides g(gravity) so I
can translate the accelerate in this way.

any help will be very appreciated.

Saka

-- 

3. HTC desire couldn't connect to bluetooth device.

4. TelephonyManager.listen() additive? API docs unclear.

5. Videoplayer source code

6. Contact Visibility

7. Android Apps purchasing from anywhere in the world