intent.setclass(this,XXX.class),后一个参数是要跳转的页面对应的.class文件。那么要是有一个.class的类文件没有对应的页面(非activity)。那么还能实现传值吗?
解决方案 »
- 跪求FTP多线程 断点 上传的demo
- adb遭遇重名设备,-s怎么分辨呢?
- git clone下载内核warning: remote HEAD refers to nonexistent ref, unable to checkout
- 求助,关于双卡安卓手机获取SIM卡上的imsi码信息的方法
- 菜鸟问问
- 高手进!关于Ant批量打包!! 急!
- android 数据库导入
- android 下就不能直接写 mp4 或 3gp 文件?
- listview 下滑隐藏布局 ,移动到某个敏感的位置, 布局会不停闪烁
- 安卓usb驱动问题
- Android 如何改变Menu文本颜色?请教高手!!!
- android怎样从服务器上获取带中文名的图片
01.Intent setAlertIntent=new Intent(this,AlertReceiver.class);
02.setAlertIntent.putExtra("try", "i'm just have a try");
03.PendingIntent pendingIntent=PendingIntent.getBroadcast(this, alarmCount++, setAlertIntent,PendingIntent.FLAG_UPDATE_CURRENT);
04.
05.AlarmManager alarmManager=(AlarmManager)getSystemService(ALARM_SERVICE);
06.alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);
网上看到的这段代码,new Intent(this,AlertReceiver.class)它第二个参数可以是一个内置的类吗?我的AlertReceiver是在mainactivity类里的