由于本教程,我修改了外壳的颜色:https : //medium.com/@jgarijogarde/make-bash-on-ubuntu-on-windows-10-look-like-the-ubuntu-terminal-f7566008c5c2
太好了,不过,我再也看不到我在 GIT 上的活动分支了。
在属性中,我不明白如何选择正确的插槽来修改文本的颜色。
有人会有想法吗?
我正在开发一个应该能够在多个设备之间同步数据存储的应用程序.
我无法弄清楚为什么我无法从不是数据存储区所有者的设备读取记录.而数据存储区的所有者设备可以读取同一记录.我必须确切地说,数据存储区是使用EDITOR权限创建的(见下文).
try {
datastoreTitle = mDatastoreManager.createDatastore();
datastoreTitle.setRole(DbxPrincipal.PUBLIC, DbxDatastore.Role.EDITOR);
} catch (DbxException e) {
e.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)
有人让他遇到同样的问题吗?提出此问题的代码如下:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
/**
* Opening of the database
*/
db = new SQliteHelper( this ) ;
/**
* Connection to dropbox API
*/
mAccountManager = DbxAccountManager.getInstance(getApplicationContext(), APP_KEY, APP_SECRET);
// Set up the datastore manager
if (mAccountManager.hasLinkedAccount()) {
try {
// Use Dropbox datastores
mDatastoreManager = DbxDatastoreManager.forAccount(mAccountManager.getLinkedAccount());
} catch (DbxException.Unauthorized e) {
System.out.println("Account was unlinked remotely");
}
}
if …Run Code Online (Sandbox Code Playgroud)