Multipat messages.

by tiwana » Sun, 12 Apr 2009 00:43:50 GMT


Sponsored Links
 Hi,

I am trying to upload a file using multipart HTTP POST. I am using the
same method being used in thread



Other Threads

1. Starting an Activity by sending an Intent with Extra Data

Hi

I have a newbie question which is puzzling me regarding using Intents
to start a new Activity but passing some data with the Intent for the
new Activity to use.

My app has  (say)  MainActivity from which I want to launch a second
activity, SecondActivity, within the same app, whilst I pass an
integer parameter to SecondActivity.

In MainActivity I want to use an explicit component with my Intent
like this,

MainActivity ---------------------------------------- FRAGMENT
BEGIN--------------------------------------------------------

int rowId ;
rowId = <some-value> ; // want to start SecondActivity and pass this
value to it.

Intent i = new Intent( this, SecondActivity.class );
// Now add rowId as Extra Data
i.putExtra("com.foo.bar.android.app.rowid", rowId);
// start the Activity
startActivity(i);

MainActivity ---------------------------------------- FRAGMENT
END--------------------------------------------------------


Now my problem is : how do I receive the Intent when SecondActivity
gets started and recover
the value of the integer parameter ? Which member function of

class SecondActivity extends Activity {

<SNIP...>
}

will receive the Intent ? SecondActivity::onCreate() ?
Or do I need to register a BroadcastReceiver with SecondActivity whose
onReceive() method would
pick up the Intent ?
What is the recommended way of doing this within the Android
Framework ?

Thanks for any help
Graeme

--~--~---------~--~----~------------~-------~--~----~

2. IM, calendar Apps not launching

Hi,

On my emulator IM, calendar apps (that comes as a part of android open
source platfrom) are not launching at all.

Also there is NO Maps application visible in Menu.

The logcat after launching IM is :-

I/ActivityManager(   46): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={com.android.providers.im/com.android.providers.im.LandingPage} }
D/dalvikvm(   81): GC freed 9065 objects / 822568 bytes in 216ms
E/IM      (   81): Ignore bad IM frontdoor plugin:
ResolveInfo{437dc0a0 com.android.im.app.FrontDoorPlugin p=0 o=0
m=0x108000}. No providers found
E/IM      (   81): [onCreate] load plugin failed, no plugin found!
V/ActivityThread(   81): Resuming ActivityRecord{436b8bb8
token=android.os.binderpr...@436b8648
{com.android.launcher/com.android.launcher.Launcher}} with
isForward=false


Please help me with some pointers.

Thanks & Regards
Nimit

--~--~---------~--~----~------------~-------~--~----~

3. how to change the background color of the layout set in the main. xml file ,at runtime

4. Can't seem to get something as simple as a ListView to work

5. Use Widgets (Clock Search Etc...) on Custom Home

6. Determine scroll status of WebView?

7. Question about Loading Drivers on Android OS