public void sendPlayStateBrocast() {if (mContext !=
null){Intent intent = new
Intent(BROCAST_NAME);intent.putExtra(MusicPlayState.PLAY_STATE_NAME, mPl...
分类:
其他好文 时间:
2014-04-30 02:49:15
阅读次数:
414
mSDStateBrocast = new SDStateBrocast();
IntentFilter intentFilter2 = new IntentFilter();
intentFilter2.addAction(Intent.ACTION_MEDIA_MOU...
分类:
其他好文 时间:
2014-04-30 02:29:49
阅读次数:
514
android开发中,对于用intent实现跳转的Ativity,有时候按下手机的返回键时,两个Activity之间会多次相互跳转,始终退出不了程序的情况。这是由于从Activity
A跳转到Activity B时,A被压入Activity栈中;当从B返回时,默认又重新创建了一个Activity A...
分类:
移动开发 时间:
2014-04-30 01:59:02
阅读次数:
632
--setgithubproxygitconfig--globalhttp.proxyhttp://user_name:user_pwd@user_ip:portgitconfig--systemhttp.sslcainfo/bin/curl-ca-bundle.crt--cancelproxygi...
分类:
其他好文 时间:
2014-04-30 01:13:49
阅读次数:
507
package com.szy.service;import
android.app.Service;import android.content.Intent;import
android.os.IBinder;import android.util.Log;public class Exampl...
分类:
其他好文 时间:
2014-04-30 00:10:08
阅读次数:
510
protected void onCreate(Bundle
savedInstanceState);protected void onStart();protected void
onRestart();protected void onResume();protected void onPaus...
分类:
其他好文 时间:
2014-04-29 23:53:49
阅读次数:
688
package com.szy.activity;import
android.app.Activity;import android.content.Intent;import
android.os.Bundle;import android.util.Log;import android.vie...
分类:
其他好文 时间:
2014-04-29 23:35:22
阅读次数:
590
package com.szy.service;import
android.app.IntentService;import android.content.Intent;import
android.util.Log;public class ExampleIntentService exten...
分类:
其他好文 时间:
2014-04-29 18:02:50
阅读次数:
432
复写BroadcastReceiver中的onReceive()方法。intent-filter过滤器:
发送intentprotected static final String ACTION = "com.szy.broadcast.ACTI...
分类:
其他好文 时间:
2014-04-29 09:24:46
阅读次数:
357
访问项目中资源包里面所有资源使用方法。读取资源包descs.plist文件方法如下:NSBundle *bundle = [NSBundle
mainBundle]; //创建bundle对象NSString *path = [bundle pathForResourc...
分类:
其他好文 时间:
2014-04-28 16:14:50
阅读次数:
349