Plz need Help

by Ali Murtaza » Thu, 15 Apr 2010 13:48:57 GMT

Sponsored Links

I am new in android and just want to save a data in one activity and then
send it on other activity, just like notepad tutorials i used

Intent ii = *new* Intent(Calendar.*this*, EditEvent.*class*);

ii.putExtra("eventdate", *this*.toString());

and then in other activity

date = savedInstanceState != *null* ? savedInstanceState.getString(

i used this but it is not working, the date contain null

please tell me error as well as the function which is run by default when
activity context switching occurs.

Ali Murtaza

Research Assistant
Data Virtulization Ware House
PUCIT, Lahore, Pakistan


Plz need Help

by Paul Turchenko » Thu, 15 Apr 2010 15:27:41 GMT

 getIntent() will return you the original intent you've used to start


Sponsored Links

Plz need Help

by Shoby Sunny » Sat, 17 Apr 2010 06:16:27 GMT

 let X and Y be the 2 activities, and X wants tosend some txt to Y...

the snippet of X should be like this:


private void sendTxt()
Intent intent = new Intent();//intent is like the envelop
intent.setClass(X.this, Y.class);//arg1 is the current class and arg2
is the class u wanna call
Bundle bundle = new Bundle(); //bundle is like the letter
bundle.putString ("keyword", "hello") //arg1 is the keyword of the
txt, arg2 is the txt
intent.putExtras(bundle);//actually it's bundle who carries the
content u wanna pass

accordingly, Y is:

private void getTxt()
if (Y.this.getIntent().getExtras() != null)
Bundle bundle = this.getIntent().getExtras();//get the intent & bundle
passed by X
the txt in a Toast, and of course u can show it anywhere else u want
by calling Bundle.getString (String key) */


Plz need Help

by patbenatar » Sat, 17 Apr 2010 16:50:42 GMT

 Please come up with a more descriptive title next time.

> >

Other Threads

1. how to play audio and video files in android with simple example explaination

hi to all,
this is janardhan.
i am new to this.
pls explain me how to write code for playing audio and video files in
pls reply me


2. Bluetooth + rSAP car kit

Hello Everybody,

I'm wondering if it is possible to get a G1 or the upcoming G2 phone
working with a rSAP (remote SIM access profile)-compatible phone car
kit (rSAP only).

I searched the forums but I'm not sure what's the status of bluetooth
and rSAP at the android platform.

As far as I have read, these are the current conditions

G1 - can't do it because there is no Bluetooth 2.0 (hardware/stack)?
G2 - HTC magic should be able to do it because it is certified HFP and
Bluetooth 2.0

Is it possible to use rSAP out-of-the box?

Has anyone running a android phone with the Volkswagen/Skoda/Audi
phone kit 'premium' ?


3. Using SensorEventListener

4. how to remove a directory?

5. How can i display message in thai language ?

6. Can't touch on the screen when adding view in arrayadapter

7. how to add file to content provider