Passing String values to Intent Reciever

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Passing String values to Intent Reciever

Postby satish21131 » Tue Feb 19, 2008 2:43 pm

Hi All,

I am developing an alarm application, In reciever class i am using notification dialog with static string value but i want to include a string value which must be passed from previous intent i,e where i am setting an alarm.
Alternatively I tried to start an activity from reciever class there i can get value from the intent but it cause black screen displayed on device screen.

Thanks,
Satish
satish21131
Freshman
Freshman
 
Posts: 4
Joined: Mon Feb 04, 2008 6:02 am

Top

Postby Jesmiatka » Tue Feb 19, 2008 3:00 pm

Hi,

can't you like call finish() inmidietly in the onCreate of the receiver?
You won't see a new intent is opened if you do it before the setContentView.
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Top

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests