How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?

前端 未结 6 2166
醉梦人生
醉梦人生 2020-11-28 22:13

We are trying to show user the Ice cream Sandwich calendar view, when they want to add a new event. We can only test this in emulator.

The other problem is that we c

6条回答
  •  囚心锁ツ
    2020-11-28 22:44

    Make sure,you are not using 'visibilty' for ICS and JellyBean devices (apiLevel>=14)

    Try this -

    ContentValues values= new ContentValues();
    int apiLevel = android.os.Build.VERSION.SDK_INT;
                if(apiLevel<14)
                values.put("visibility", 0);
    

    Use visibility only if device version is less than 14(ICS)

提交回复
热议问题