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
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
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
3 matches
Mail list logo