• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PdService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.puredata.android.service.PdService的典型用法代码示例。如果您正苦于以下问题:Java PdService类的具体用法?Java PdService怎么用?Java PdService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PdService类属于org.puredata.android.service包,在下文中一共展示了PdService类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.activity_sensor2_pd);
	setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	
	// View
	View view = findViewById(R.id.scrollView1);
	view.setOnTouchListener(this);
	
	// Sensors
	mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
	
	// Wifi
	mainWifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
	receiverWifi = new WifiReceiver();
	registerReceiver(receiverWifi, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));
	isRunning = true;
	mainWifi.startScan();
	
	// PD
	bindService(new Intent(this, PdService.class), pdConnection, BIND_AUTO_CREATE);
	
}
 
开发者ID:deusanyjunior,项目名称:Sensors2PD,代码行数:25,代码来源:Sensors2PDActivity.java


示例2: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    pdService = ((PdService.PdBinder) service).getService();
    MLog.d(TAG, "service connected");

    try {
        initPd();
        // loadPatchFromResources();
        loadPatchFromDirectory(file);
    } catch (IOException e) {
        MLog.d(TAG, "error loading pd file");
        finish();
    }
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:15,代码来源:AudioServicePd.java


示例3: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
    synchronized(lock) {
        pdService = ((PdService.PdBinder)service).getService();
        initPd();   /* see below */
    }
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:8,代码来源:PPureDataBackupNewer.java


示例4: initPdService

import org.puredata.android.service.PdService; //导入依赖的package包/类
public void initPdService() {
    // a separate thread is not strictly necessary, but it improves responsiveness */
    new Thread() {
        @Override
        public void run() {
            getContext().bindService(new Intent(getContext(), PdService.class),
                    serviceConnection, getContext().BIND_AUTO_CREATE);
        }
    }.start();
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:11,代码来源:PPureDataBackupNewer.java


示例5: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
	pdService = ((PdService.PdBinder) service).getService();
	initPd();
	midiManager.init(PdDroidParty.this, usbMidiManager, PdPartyClockControl.midiClockDefaultBPM, new MidiManagerHandler(){
		@Override
		public void onStatusMessage(String message) {
			post(message);
		}
	});
}
 
开发者ID:b2renger,项目名称:PdDroidPublisher,代码行数:12,代码来源:PdDroidParty.java


示例6: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) 
{
	super.onCreate(savedInstanceState);
	
	Intent intent = getIntent();
	String path = intent.getStringExtra(INTENT_EXTRA_PATCH_PATH);
	patch = new PdPatch(path);
	
	config = (PdDroidPartyConfig)intent.getSerializableExtra(PdDroidPartyConfig.class.getName());
	
	// copy necessary abstractions
       FileHelper.unzipResource(this, R.raw.abstractions, patch.getFile().getParentFile());

	
	usbMidiManager = new UsbMidiManager(this, new UsbMidiHandler() {
		@Override
		public void onStatusMessage(String message) {
			post(message);
		}
	});
	
	midiManager = new MidiManager();
	
	initGui();
	new Thread() {
		@Override
		public void run() {
			bindService(new Intent(PdDroidParty.this, PdService.class), serviceConnection, BIND_AUTO_CREATE);
		}
	}.start();
}
 
开发者ID:b2renger,项目名称:PdDroidPublisher,代码行数:33,代码来源:PdDroidParty.java


示例7: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
protected void onCreate(android.os.Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
       this.requestWindowFeature(Window.FEATURE_NO_TITLE); // 设置Activity标题不显示
	
	AudioParameters.init(this);
	PdPreferences.initPreferences(getApplicationContext());
	PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
	initGui();
	bindService(new Intent(this, PdService.class), pdConnection, BIND_AUTO_CREATE);
	
}
 
开发者ID:fermiyoung,项目名称:musetoolkit,代码行数:13,代码来源:Wnoise.java


示例8: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
protected void onCreate(android.os.Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
       this.requestWindowFeature(Window.FEATURE_NO_TITLE); // 设置Activity标题不显示

	AudioParameters.init(this);
	PdPreferences.initPreferences(getApplicationContext());
	PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
	initGui();
	bindService(new Intent(this, PdService.class), pdConnection, BIND_AUTO_CREATE);
	
}
 
开发者ID:fermiyoung,项目名称:musetoolkit,代码行数:13,代码来源:Sine.java


示例9: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override protected void onCreate(android.os.Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
       this.requestWindowFeature(Window.FEATURE_NO_TITLE); // 设置Activity标题不显示
	
	PdPreferences.initPreferences(getApplicationContext());
	PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).registerOnSharedPreferenceChangeListener(this);
	initGui();
	bindService(new Intent(this, PdService.class), connection, BIND_AUTO_CREATE);
	//
}
 
开发者ID:fermiyoung,项目名称:musetoolkit,代码行数:11,代码来源:Touch.java


示例10: onCreate

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
protected void onCreate(android.os.Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
       this.requestWindowFeature(Window.FEATURE_NO_TITLE); // 设置Activity标题不显示
	
	AudioParameters.init(this);
	PdPreferences.initPreferences(getApplicationContext());
	PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
	initGui();
	bindService(new Intent(this, PdService.class), pdConnection, BIND_AUTO_CREATE);
}
 
开发者ID:fermiyoung,项目名称:musetoolkit,代码行数:12,代码来源:Test.java


示例11: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
	pdService = ((PdService.PdBinder) service).getService();

	try {
		initPd();
		loadPatch();
	} catch (IOException e) {
		Log.e(TAG, e.toString());
		finish();
	}

}
 
开发者ID:zhagan,项目名称:dotMatrix-Android,代码行数:14,代码来源:Dm_beatbox.java


示例12: initPdService

import org.puredata.android.service.PdService; //导入依赖的package包/类
private void initPdService() {

		new Thread() {
			@Override
			public void run() {
				bindService(new Intent(Dm_beatbox.this, PdService.class),
						pdConnection, BIND_AUTO_CREATE);
			}
		}.start();
	}
 
开发者ID:zhagan,项目名称:dotMatrix-Android,代码行数:11,代码来源:Dm_beatbox.java


示例13: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
	pdService = ((PdService.PdBinder)service).getService();
	try {
		initPd();
		loadPatch();
	} catch (IOException e) {
		Log.e(TAG, e.toString());
		finish();
	}
}
 
开发者ID:deusanyjunior,项目名称:Sensors2PD,代码行数:12,代码来源:Sensors2PDActivity.java


示例14: initPdService

import org.puredata.android.service.PdService; //导入依赖的package包/类
private void initPdService() {

		new Thread() {
			@Override
			public void run() {
				bindService(new Intent(SynthCircle.this, PdService.class),
						pdConnection, BIND_AUTO_CREATE);
			}
		}.start();
	}
 
开发者ID:twobigears,项目名称:Circle-Synth,代码行数:11,代码来源:SynthCircle.java


示例15: initPdService

import org.puredata.android.service.PdService; //导入依赖的package包/类
private void initPdService() {

		new Thread() {
			@Override
			public void run() {
				bindService(new Intent(MainActivity.this, PdService.class),
						pdConnection, BIND_AUTO_CREATE);
			}
		}.start();
	}
 
开发者ID:twobigears,项目名称:Pd-Processing-Template,代码行数:11,代码来源:MainActivity.java


示例16: onServiceConnected

import org.puredata.android.service.PdService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
	pdService = ((PdService.PdBinder)service).getService();
	initPd();
}
 
开发者ID:fermiyoung,项目名称:musetoolkit,代码行数:6,代码来源:Piano.java



注:本文中的org.puredata.android.service.PdService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java URLHyperlinkDetector类代码示例发布时间:2022-05-23
下一篇:
Java CommunityServerBuilder类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap