[android-developers] About to receive the mms

2009-07-31 Thread Piano Pan
I use the BroadcastReceiver to get the MMS information, but the onReceive can not get the message when MMS coming. Code as following: private static final String ACTION_SMS_RECEIVED = "android.provider.Telephony.SMS_RECEIVED"; private static final String ACTION_MMS_RECEIVED = "android.provid

[android-developers] Re: invoke other apk file?

2009-07-05 Thread Piano Pan
You must know the package name and activity name On Jul 6, 1:25 pm, tstanly wrote: > thanks. > > if i don't know the package name,class name.. > just knows names "xxx.apk" > > is it can work? > > On 7月6日, 下午12時30分, Piano Pan wrote: > > > Us

[android-developers] Re: invoke other apk file?

2009-07-05 Thread Piano Pan
Use this function: public int startActivity(String packageName, String className) { Intent intent = new Intent("android.intent.action.MAIN"); intent.setClassName(packageName, className); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_BROUGHT_TO_F