Cocos 2d on android

by Ashwini » Thu, 03 Mar 2011 04:27:52 GMT


Sponsored Links
 Hi All,

I wanted to develop a game on android using cocos 2D engine.
I found two different libraries by different developers for cocos2d-
iphone library.
First is  http://code.google.com/p/cocos2d-android/ by ricardoquesada. 
The other one is  http://code.google.com/p/cocos2d-android-1/ by 
zhouweikuan.
Please help me to select one of these. Can anybody tell me the
differences between these two? Has anybody got a prior experience on
any of these?

Any help is appreciated.
Thanks.

-- 



Other Threads

1. alarm not firing up !

I was doing alarm manager and stuff.

i did like below

public class AlarmExample extends Activity {
        private Button setAlarmButton = null;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.main);

                setAlarmButton = (Button) findViewById(R.id.Button01);
                setAlarmButton.setOnClickListener(new OnClickListener() {
                        public void onClick(View v) {

                                 Intent intent = new Intent(AlarmExample.this,
OnetimeAlarmReceiver.class);
                                 PendingIntent pendingIntent = 
PendingIntent.getBroadcast
(AlarmExample.this, 1, intent, 0);

                                 AlarmManager alarmManager = (AlarmManager) 
getSystemService
(ALARM_SERVICE);
                                 alarmManager.set(AlarmManager.RTC_WAKEUP, 
System.currentTimeMillis
() + (10 * 1000), pendingIntent);

                                 Toast.makeText(AlarmExample.this, "Alarm set",
Toast.LENGTH_LONG).show();
                        }

                });
        }
}



public class OnetimeAlarmReceiver extends BroadcastReceiver {

        @Override
        public void onReceive(Context context, Intent intent) {
                Toast.makeText(context, "Alarm worked.", 
Toast.LENGTH_LONG).show();
        }
}

i created this project from eclipse->new android project-> and then
wrote this code.

Alarm is set, but never fired. neither in simulator nor in the device.
Whats wrong ? need i do something in manifest file ?

regards
Jagat

-- 

2. Accessing Contact Data Base for adding,deleting,updating contact using Native code

Thanks Murphy I'll post this question to NDK.





> 

3. The Facebook ACTION_SEND problem

4. TextView shows line parts

5. ListView scrolling problem

6. Binding Service to Activity

7. Set Silent Default Ringtone