本文整理汇总了Java中org.seamless.util.logging.LoggingUtil类的典型用法代码示例。如果您正苦于以下问题:Java LoggingUtil类的具体用法?Java LoggingUtil怎么用?Java LoggingUtil使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LoggingUtil类属于org.seamless.util.logging包,在下文中一共展示了LoggingUtil类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import org.seamless.util.logging.LoggingUtil; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_upnp_source);
mRefreshDevicesButton = (Button) findViewById(R.id.update_devices_button);
mRefreshDevicesButton.setOnClickListener(mOnRefreshClickListener);
mEmptyView = findViewById(R.id.no_devices_found);
mTitle = (TextView) findViewById(R.id.title);
mDescription = (TextView) findViewById(R.id.description);
mListView = (ListView) findViewById(R.id.add_video_files_listview);
mListView.setOnItemClickListener(mOnDeviceClickListener);
mListView.setOnItemLongClickListener(mOnLongClickListener);
mListView.setEmptyView(mEmptyView);
// Fix the logging integration between java.util.logging and Android internal logging
LoggingUtil.resetRootHandler(new FixedAndroidLogHandler());
mContainerListAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1);
mListAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1);
searchForDevices();
}
示例2: onCreate
import org.seamless.util.logging.LoggingUtil; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Fix the logging integration between java.util.logging and Android
// internal logging
LoggingUtil.resetRootHandler(new FixedAndroidHandler());
Logger.getLogger("org.teleal.cling").setLevel(Level.INFO);
setContentView(R.layout.devices);
init();
deviceListRegistryListener = new DeviceListRegistryListener();
getApplicationContext().bindService(
new Intent(this, AndroidUpnpServiceImpl.class),
serviceConnection, Context.BIND_AUTO_CREATE);
}