Parental Control Android 2.1 for Samsung Moment

by Radwan Shaykho » Wed, 30 Jun 2010 02:51:30 GMT


Parental Control Android 2.1 for Samsung Moment

by Radwan Shaykho » Wed, 30 Jun 2010 02:51:38 GMT


Other Threads

1. Assistance with understanding LunarLander code

Hi,
I have been working through the lunarlander example application, in
an
attempt to understand the source code. I have run into a couple of
problems, and would really appreciate if someone could space a couple
of minutes to assist in may understanding.

The onCreate method contains the following:


   protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);


        // turn off the window's title bar
        requestWindowFeature(Window.FEATURE_NO_TITLE);


        // tell system to use the layout defined in our XML file
        setContentView(R.layout.lunar_layout);


        // get handles to the LunarView from XML, and its LunarThread
        mLunarView = (LunarView) findViewById(R.id.lunar);
        mLunarThread = mLunarView.getThread();


        // give the LunarView a handle to the TextView used for
messages
        mLunarView.setTextView((TextView) findViewById(R.id.text));


        if (savedInstanceState == null) {
            // we were just launched: set up a new game
            mLunarThread.setState(LunarThread.STATE_READY);
            Log.w(this.getClass().getName(), "SIS is null");
        } else {
            // we are being restored: resume a previous game
            mLunarThread.restoreState(savedInstanceState);
            Log.w(this.getClass().getName(), "SIS is nonnull");
        }
    }


I can see that we are performing the following:
        Turn off the title bar in the window
        Set the activity content to the lunar_layour layout file
        gets a reference to the 'lunar' layout
        gets a reference to the thread member of the LunarView class
        give the LunarView a reference to the textview for game
messages
        we then set the state of the lunar thread to STATE_READY,
which also
outputs a bunch of status messages


The problem is that after executution of setState, the code seems to
end. I can see no sections of code that actually creates the
LunarView
or LunarThread objects, which are required to start the game proper.
Obviously I am missing something here, I was wondering if anyone
could
assist! Thanks lots!


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

2. Receiving Alarms when the program is not running

Hey all,

I am trying to write a program that sets and alarm and has to display
a text when the alarm "goes off" . The problem is my program might not
be running when the alarm broadcast is sent so my program keeps
crashing. Is there a way I can code an alarm receiver that can display
an alert even if my program is not running?

Thanks in advance,

Moazzam
http://moazzam-khan.com
--~--~---------~--~----~------------~-------~--~----~

3. Service Launch problem

4. how to get menu handler/instance

5. Dynamically setting width of drawable

6. Anyone else seeing problems with the browser & Google Sites?

7. India Girls pictures,korea girls pictures,Indonesia Girls pictures,Thailand Girls pictures