Smart Building

by hanysderhans » Fri, 13 Nov 2009 07:23:40 GMT


Sponsored Links
 Hi, I wanna realise an application for Android which following
features (as a kind of remote control that you can use in a room):

- switch light on/off
- control the radiator (e.g. change room temperature from 20 to 15
Celsius)
- jalousie/draps control

Is there any free application for android which above mentioned
features?
I`ve seen such an app for Iphone but could find nothing for the Google
phone.

--



Other Threads

1. Problem with overriding standard

I'm trying to extend Button class to get OnClick listener (Going to
create wrapper for click listener)

public class ExtendedButton extends Button {

        public ExtendedButton(Context context) {
                super(context);
        }

        public ExtendedButton(Context context, AttributeSet attrs) {
                super(context, attrs);
        }

        public ExtendedButton(Context context, AttributeSet attrs, int
defStyle) {
                super(context, attrs, defStyle);
        }

        OnClickListener getOnClickListener(){
                return this.mOnClickListener;
        }

}

But compiler in eclipse don't allow to do it.

error: mOnClickListener connot be resolved or is not a field.


View source code:
/**
  * Listener used to dispatch click events.
  * This field should be made private, so it is hidden from the SDK.
  * [EMAIL PROTECTED]
 */
protected OnClickListener mOnClickListener;

So I should have full access to this field from my class.
I can get access to this fields with reflection but standard java
inheritance mechanism don't work.

Can anybody explain this problem?

Why java source code don't redistributed with sdk?
--~--~---------~--~----~------------~-------~--~----~

2. question about open source

Hi,

I was wondering that since the Android SDK has become open source,
shouldn't we be able to access the tools like monkey tool etc, and
also view the code for the apis?

how should I go about looking this up?

Thanks,
Anu
--~--~---------~--~----~------------~-------~--~----~

3. Program Finished - Now What?

4. R.java is never, ever, ever, ever, ever regenerated

5. Android Language Switcher

6. How do I update my activity on receiving intent in BroadcastReceiver

7. Applying design to an application