android - Confusion regarding number of alarms needed to be set[Solved] -


i have following data in sqllite postgresql database , showing in tablularlayout on android widget.it's timetable college students.

a http://www.4shared.com/download/1w7tyicfce/random3.png

i did set onclicklistener textviews individually,which means each , every subject name you're seeing clickable in app.

upon clicking on subject name i.e textview,a page shows following.

a http://www.4shared.com/download/ii8dtkvjba/setalarm.png

till have written code setting single alarm not multiple.hence selecting 1 checkbox only.however gonna set multiple alarms such if 1 selects 4 checkboxes 4 alarms single subject must triggering accordingly.

question

1.while setting alarms each subject individually,should set 4 pendingintents 4 checkbox selected time , trigger alarms selected in checkboxes?and should use same requestcode pendingintent.getbroadcast or should use 4 different requestcodes?right have 1 pendingintent.when save , set alarm button clicked 1 alarm being set according selected checkbox time.but think not right way achieving result.

2.i assuming have create 4 pendingintents "one subject @ 1 particular slot,for eg. dbms monday 1:40-3:20pm,so 4 pendingintents dbms".now in total need create no. of subjects * 4 number of pendingintents each having differentrequestcodes?

note

as may little confusing please comment below if not clear in question.

solution

the simple , short answer the number of alarms different time slots needed,the same number of pendingintents needed created.

the simple , short answer the number of alarms different time slots needed,the same number of pendingintents needed created.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -