Retrieving string from ListStop EditText from gaining focus at Activity startupIs there a way to get the source code from an APK file?Android Calendar All Day event dates are off by one day for GMT +x AreasRead Event of Calendar from AndroidNot getting record from database sqliteAndroid AllDay events start or finish on the wrong dayGet Date object from DatePickerFragment in AndroidAndroid: Calendar with EventsDisplay multiple dates on calendarHow to get the highlighted nodes and show them in card view?

Why did the Apple IIe make a hideous noise if you inserted the disk upside down?

What are the children of two Muggle-borns called?

Is it advisable to inform the CEO about his brother accessing his office?

A quine of sorts

What does 'in attendance' mean on an England death certificate?

Is leaving out prefixes like "rauf", "rüber", "rein" when describing movement considered a big mistake in spoken German?

Calculus, water poured into a cone: Why is the derivative non-linear?

Why am I getting an electric shock from the water in my hot tub?

Definition of an European Option

Dynamic SQL query - how do I add an int to the code?

Could you fall off a planet if it was being accelerated by engines?

Are you required to spend hit dice to take a short rest?

How to track mail undetectably?

Cat files in subfolders in order given by a list

Why would Dementors torture a Death Eater if they are loyal to Voldemort?

Customs and immigration on a USA-UK-Sweden flight itinerary

How did they film the Invisible Man being invisible in 1933?

Is this house-rule removing the increased effect of cantrips at higher character levels balanced?

Why was Pan Am Flight 103 flying over Lockerbie?

Why didn't Avengers simply jump 5 years back?

Have any large aeroplanes been landed — safely and without damage — in locations that they could not be flown away from?

How to count the number of bytes in a file, grouping the same bytes?

Grid: different background color (of row) based on values

Why should I allow multiple IP addresses on a website for a single session?



Retrieving string from List


Stop EditText from gaining focus at Activity startupIs there a way to get the source code from an APK file?Android Calendar All Day event dates are off by one day for GMT +x AreasRead Event of Calendar from AndroidNot getting record from database sqliteAndroid AllDay events start or finish on the wrong dayGet Date object from DatePickerFragment in AndroidAndroid: Calendar with EventsDisplay multiple dates on calendarHow to get the highlighted nodes and show them in card view?













0















I am using a third party library to show dates on a custom calendar.



I need to retrieve some information when the user clicks on a day.



This is the code for onDayClick method:



 public void onDayClick(Date dateClicked) 
List<Event> events = compactCalendarView.getEvents(dateClicked);
Log.d(TAG, "Day was clicked: " + dateClicked + " with events " + events);





And this is the output from the log for this method:



Day was clicked: Wed Mar 13 00:00:00 GMT+01:00 2019 with events [Eventcolor=-16711936, timeInMillis=1552431600000, data=Some extra data that I want to store.]


I would like to retrieve the field data from that string...










share|improve this question






















  • Can you post an example of a current output? just to see what you are passing under "data" with a real demo

    – Pier Giorgio Misley
    Mar 25 at 16:40











  • Post more information about the library you are using. This will help understand how they are storing the data.

    – hardartcore
    Mar 25 at 16:42






  • 1





    @hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

    – Pier Giorgio Misley
    Mar 25 at 16:44












  • @PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

    – mvasco
    Mar 25 at 16:49






  • 1





    yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

    – Pier Giorgio Misley
    Mar 25 at 16:50















0















I am using a third party library to show dates on a custom calendar.



I need to retrieve some information when the user clicks on a day.



This is the code for onDayClick method:



 public void onDayClick(Date dateClicked) 
List<Event> events = compactCalendarView.getEvents(dateClicked);
Log.d(TAG, "Day was clicked: " + dateClicked + " with events " + events);





And this is the output from the log for this method:



Day was clicked: Wed Mar 13 00:00:00 GMT+01:00 2019 with events [Eventcolor=-16711936, timeInMillis=1552431600000, data=Some extra data that I want to store.]


I would like to retrieve the field data from that string...










share|improve this question






















  • Can you post an example of a current output? just to see what you are passing under "data" with a real demo

    – Pier Giorgio Misley
    Mar 25 at 16:40











  • Post more information about the library you are using. This will help understand how they are storing the data.

    – hardartcore
    Mar 25 at 16:42






  • 1





    @hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

    – Pier Giorgio Misley
    Mar 25 at 16:44












  • @PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

    – mvasco
    Mar 25 at 16:49






  • 1





    yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

    – Pier Giorgio Misley
    Mar 25 at 16:50













0












0








0








I am using a third party library to show dates on a custom calendar.



I need to retrieve some information when the user clicks on a day.



This is the code for onDayClick method:



 public void onDayClick(Date dateClicked) 
List<Event> events = compactCalendarView.getEvents(dateClicked);
Log.d(TAG, "Day was clicked: " + dateClicked + " with events " + events);





And this is the output from the log for this method:



Day was clicked: Wed Mar 13 00:00:00 GMT+01:00 2019 with events [Eventcolor=-16711936, timeInMillis=1552431600000, data=Some extra data that I want to store.]


I would like to retrieve the field data from that string...










share|improve this question














I am using a third party library to show dates on a custom calendar.



I need to retrieve some information when the user clicks on a day.



This is the code for onDayClick method:



 public void onDayClick(Date dateClicked) 
List<Event> events = compactCalendarView.getEvents(dateClicked);
Log.d(TAG, "Day was clicked: " + dateClicked + " with events " + events);





And this is the output from the log for this method:



Day was clicked: Wed Mar 13 00:00:00 GMT+01:00 2019 with events [Eventcolor=-16711936, timeInMillis=1552431600000, data=Some extra data that I want to store.]


I would like to retrieve the field data from that string...







android






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 25 at 16:26









mvascomvasco

2,0074 gold badges31 silver badges69 bronze badges




2,0074 gold badges31 silver badges69 bronze badges












  • Can you post an example of a current output? just to see what you are passing under "data" with a real demo

    – Pier Giorgio Misley
    Mar 25 at 16:40











  • Post more information about the library you are using. This will help understand how they are storing the data.

    – hardartcore
    Mar 25 at 16:42






  • 1





    @hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

    – Pier Giorgio Misley
    Mar 25 at 16:44












  • @PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

    – mvasco
    Mar 25 at 16:49






  • 1





    yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

    – Pier Giorgio Misley
    Mar 25 at 16:50

















  • Can you post an example of a current output? just to see what you are passing under "data" with a real demo

    – Pier Giorgio Misley
    Mar 25 at 16:40











  • Post more information about the library you are using. This will help understand how they are storing the data.

    – hardartcore
    Mar 25 at 16:42






  • 1





    @hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

    – Pier Giorgio Misley
    Mar 25 at 16:44












  • @PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

    – mvasco
    Mar 25 at 16:49






  • 1





    yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

    – Pier Giorgio Misley
    Mar 25 at 16:50
















Can you post an example of a current output? just to see what you are passing under "data" with a real demo

– Pier Giorgio Misley
Mar 25 at 16:40





Can you post an example of a current output? just to see what you are passing under "data" with a real demo

– Pier Giorgio Misley
Mar 25 at 16:40













Post more information about the library you are using. This will help understand how they are storing the data.

– hardartcore
Mar 25 at 16:42





Post more information about the library you are using. This will help understand how they are storing the data.

– hardartcore
Mar 25 at 16:42




1




1





@hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

– Pier Giorgio Misley
Mar 25 at 16:44






@hardartcore should be that one; data is of type Object; for this I would like to see an actual example of data :)

– Pier Giorgio Misley
Mar 25 at 16:44














@PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

– mvasco
Mar 25 at 16:49





@PierGiorgioMisley, you are right, but I have modified some parts and I only need to retrieve this data field for my project

– mvasco
Mar 25 at 16:49




1




1





yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

– Pier Giorgio Misley
Mar 25 at 16:50





yeah I just wanted a real example to see what kind of result you are getting from a real log on your device. is it possible?

– Pier Giorgio Misley
Mar 25 at 16:50










1 Answer
1






active

oldest

votes


















3














According CompactCalendarView library, data object type is Object. So, to retrieve that field, just iterate through event list, then access data field:



List<Event> events = compactCalendarView.getEvents(dateClicked);
for (Event event : events)
Object data = event.getData();
// Access to other event properties
int color = event.getColor();
long timeInMillis = event.getTimeInMillis();






share|improve this answer

























  • Thank you, but what type is Data? I am getting some options, but none is working.

    – mvasco
    Mar 25 at 16:33











  • and event.data is never recognized as valid expression

    – mvasco
    Mar 25 at 16:33











  • Type of data is Object, to access that property just invoke event.getData()

    – AlexTa
    Mar 25 at 16:52











  • it works now, than you

    – mvasco
    Mar 25 at 16:54











  • @mvasco you're welcome!

    – AlexTa
    Mar 25 at 16:55










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342327%2fretrieving-string-from-list%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














According CompactCalendarView library, data object type is Object. So, to retrieve that field, just iterate through event list, then access data field:



List<Event> events = compactCalendarView.getEvents(dateClicked);
for (Event event : events)
Object data = event.getData();
// Access to other event properties
int color = event.getColor();
long timeInMillis = event.getTimeInMillis();






share|improve this answer

























  • Thank you, but what type is Data? I am getting some options, but none is working.

    – mvasco
    Mar 25 at 16:33











  • and event.data is never recognized as valid expression

    – mvasco
    Mar 25 at 16:33











  • Type of data is Object, to access that property just invoke event.getData()

    – AlexTa
    Mar 25 at 16:52











  • it works now, than you

    – mvasco
    Mar 25 at 16:54











  • @mvasco you're welcome!

    – AlexTa
    Mar 25 at 16:55















3














According CompactCalendarView library, data object type is Object. So, to retrieve that field, just iterate through event list, then access data field:



List<Event> events = compactCalendarView.getEvents(dateClicked);
for (Event event : events)
Object data = event.getData();
// Access to other event properties
int color = event.getColor();
long timeInMillis = event.getTimeInMillis();






share|improve this answer

























  • Thank you, but what type is Data? I am getting some options, but none is working.

    – mvasco
    Mar 25 at 16:33











  • and event.data is never recognized as valid expression

    – mvasco
    Mar 25 at 16:33











  • Type of data is Object, to access that property just invoke event.getData()

    – AlexTa
    Mar 25 at 16:52











  • it works now, than you

    – mvasco
    Mar 25 at 16:54











  • @mvasco you're welcome!

    – AlexTa
    Mar 25 at 16:55













3












3








3







According CompactCalendarView library, data object type is Object. So, to retrieve that field, just iterate through event list, then access data field:



List<Event> events = compactCalendarView.getEvents(dateClicked);
for (Event event : events)
Object data = event.getData();
// Access to other event properties
int color = event.getColor();
long timeInMillis = event.getTimeInMillis();






share|improve this answer















According CompactCalendarView library, data object type is Object. So, to retrieve that field, just iterate through event list, then access data field:



List<Event> events = compactCalendarView.getEvents(dateClicked);
for (Event event : events)
Object data = event.getData();
// Access to other event properties
int color = event.getColor();
long timeInMillis = event.getTimeInMillis();







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 25 at 16:54

























answered Mar 25 at 16:30









AlexTaAlexTa

3,5743 gold badges18 silver badges33 bronze badges




3,5743 gold badges18 silver badges33 bronze badges












  • Thank you, but what type is Data? I am getting some options, but none is working.

    – mvasco
    Mar 25 at 16:33











  • and event.data is never recognized as valid expression

    – mvasco
    Mar 25 at 16:33











  • Type of data is Object, to access that property just invoke event.getData()

    – AlexTa
    Mar 25 at 16:52











  • it works now, than you

    – mvasco
    Mar 25 at 16:54











  • @mvasco you're welcome!

    – AlexTa
    Mar 25 at 16:55

















  • Thank you, but what type is Data? I am getting some options, but none is working.

    – mvasco
    Mar 25 at 16:33











  • and event.data is never recognized as valid expression

    – mvasco
    Mar 25 at 16:33











  • Type of data is Object, to access that property just invoke event.getData()

    – AlexTa
    Mar 25 at 16:52











  • it works now, than you

    – mvasco
    Mar 25 at 16:54











  • @mvasco you're welcome!

    – AlexTa
    Mar 25 at 16:55
















Thank you, but what type is Data? I am getting some options, but none is working.

– mvasco
Mar 25 at 16:33





Thank you, but what type is Data? I am getting some options, but none is working.

– mvasco
Mar 25 at 16:33













and event.data is never recognized as valid expression

– mvasco
Mar 25 at 16:33





and event.data is never recognized as valid expression

– mvasco
Mar 25 at 16:33













Type of data is Object, to access that property just invoke event.getData()

– AlexTa
Mar 25 at 16:52





Type of data is Object, to access that property just invoke event.getData()

– AlexTa
Mar 25 at 16:52













it works now, than you

– mvasco
Mar 25 at 16:54





it works now, than you

– mvasco
Mar 25 at 16:54













@mvasco you're welcome!

– AlexTa
Mar 25 at 16:55





@mvasco you're welcome!

– AlexTa
Mar 25 at 16:55






Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342327%2fretrieving-string-from-list%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해