The activity you specified is not present on the device that you ran your app on. You generally shouldn't explicitly name activities like that. You should use a 'send' or 'share' intent, and the system will figure out which activities support it.
On Mon, Jul 6, 2009 at 9:30 PM, Tian Yingying<t...@papayamobile.com> wrote: > thanks ,i have another problem that i upload photos to picasa, the followed > is code and i make <uses-permission > android:name="android.permission.GET_ACCOUNTS"></uses-permission> > <uses-permission > android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"></uses-permission> > in manifest.xml , but a error occured: > android.content.ActivityNotFoundException: Unable to find explicit activity > class > {com.google.android.apps.uploader/com.google.android.apps.uploader.picasa.PicasaUploadActivity}; > have you declared this activity in your AndroidManifest.xml? > i add the activity in manifest.xml, but it says the activity doesn't exist, > i think i should import the com.google ..but how can i do ,please help me > thanks. > Intent picasaupload = new Intent(Intent.ACTION_SEND); > picasaupload.setType("image/jpeg"); > picasaupload.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); > picasaupload.putExtra(Intent.EXTRA_STREAM, imageURI); > picasaupload.setComponent(new ComponentName( > "com.google.android.apps.uploader", > "com.google.android.apps.uploader.picasa.PicasaUploadActivity")); > EntryActivity.instance.startActivity(picasaupload); > > 2009/7/7 Honest <honestsucc...@gmail.com> >> >> Thanks Marco for your quick reply. I used LISTEN_DATA_ACTIVITY so >> when call starts and both side start communication then data should be >> transfer and i can know that the call is active now. Please make me >> correct if i am wrong. if this is not proper way then can you tell me >> any other way or work around to know when the call becomes active or >> it is being picked up by other side or not. >> >> On Jul 6, 8:42 pm, Marco Nelissen <marc...@android.com> wrote: >> > On Mon, Jul 6, 2009 at 6:00 AM, Honest<honestsucc...@gmail.com> wrote: >> > >> > > My application is making call. I need to be notified when that call is >> > > being pickeed up by other side. So i used TelephonyManager and >> > > PhoneStateListner as below. Basically i wanted to know data activity >> > > status. >> > >> > > my code is as below. >> > >> > > public void register() >> > > { >> > > TelephonyManager tm=(TelephonyManager)getSystemService >> > > (TELEPHONY_SERVICE); >> > > tm.listen(new CallState(this), >> > > PhoneStateListener.LISTEN_CALL_STATE| >> > > PhoneStateListener.LISTEN_DATA_ACTIVITY); >> > >> > LISTEN_DATA_ACTIVITY will inform you of changes to data traffic, and >> > has nothing to do with voice calls. >> > I don't think you can actually find out if the other side picked up >> > the phone or not. >> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---