2015年7月30日 星期四
working
// public static final String EXISTING_FOLDER_ID = "0B2EEtIjPUdX6MERsWlYxN3J6RU0";
// public static final String EXISTING_FOLDER_ID = "0B9OFuGhAGrF6N010MG03NW1Gb1E";
public static final String EXISTING_FOLDER_ID = "0B9OFuGhAGrF6fjBpNk1NS3BKVno5aExXQkhYcmRXVmlvc245SFJhZ3pQQzljMjBNaGQ0VUU";
/**
* DriveId of an existing file to be used in file operation samples..
*/
// public static final String EXISTING_FILE_ID = "0ByfSjdPVs9MZTHBmMVdSeWxaNTg";
public static final String EXISTING_FILE_ID = "0B9OFuGhAGrF6Y3RnbnVrTXNieEU";
/**
* Extra for account name.
*/
// protected static final String EXTRA_ACCOUNT_NAME = "account_name";
protected static final String EXTRA_ACCOUNT_NAME = "pxismylove@gmail.com";
========================================================================
//ken add --begin
Query query = new Query.Builder()
.addFilter(Filters.eq(SearchableField.MIME_TYPE, "video/mp4"))
.build();
//ken add --end
DriveFolder folder = Drive.DriveApi.getFolder(getGoogleApiClient(), result.getDriveId());
folder.queryChildren(getGoogleApiClient(), query)
// folder.listChildren(getGoogleApiClient())
.setResultCallback(metadataResult);
=============================================================================
// Filters.eq(SearchableField.MIME_TYPE, "text/html")
Filters.eq(SearchableField.MIME_TYPE, "video/mp4")
// ,Filters.eq(SearchableField.TITLE, "bjj")
// ,Filters.eq(SearchableField.MIME_TYPE, "text/plain")
// public static final String EXISTING_FOLDER_ID = "0B9OFuGhAGrF6N010MG03NW1Gb1E";
public static final String EXISTING_FOLDER_ID = "0B9OFuGhAGrF6fjBpNk1NS3BKVno5aExXQkhYcmRXVmlvc245SFJhZ3pQQzljMjBNaGQ0VUU";
/**
* DriveId of an existing file to be used in file operation samples..
*/
// public static final String EXISTING_FILE_ID = "0ByfSjdPVs9MZTHBmMVdSeWxaNTg";
public static final String EXISTING_FILE_ID = "0B9OFuGhAGrF6Y3RnbnVrTXNieEU";
/**
* Extra for account name.
*/
// protected static final String EXTRA_ACCOUNT_NAME = "account_name";
protected static final String EXTRA_ACCOUNT_NAME = "pxismylove@gmail.com";
========================================================================
//ken add --begin
Query query = new Query.Builder()
.addFilter(Filters.eq(SearchableField.MIME_TYPE, "video/mp4"))
.build();
//ken add --end
DriveFolder folder = Drive.DriveApi.getFolder(getGoogleApiClient(), result.getDriveId());
folder.queryChildren(getGoogleApiClient(), query)
// folder.listChildren(getGoogleApiClient())
.setResultCallback(metadataResult);
=============================================================================
// Filters.eq(SearchableField.MIME_TYPE, "text/html")
Filters.eq(SearchableField.MIME_TYPE, "video/mp4")
// ,Filters.eq(SearchableField.TITLE, "bjj")
// ,Filters.eq(SearchableField.MIME_TYPE, "text/plain")
[Problem] files under the build folder are generated and should not be edited (轉貼)
來源: http://stackoverflow.com/questions/27790340/android-manifest-automatically-generating-invalid-permission
go to the real manifest file (probably in
go to the real manifest file (probably in
app/src/main/AndroidManifest.xml
off of your project root) and edit it.
2015年7月27日 星期一
[Problem] @integer/google_play_services_version no resource found(轉貼)
來源: http://blog.changyy.org/2014/03/android-integergoogleplayservicesversio.html
在 Google Cloud Messaging 時,發現 AndroidManifest.xml 顯示這則錯誤訊息。
解法:
在 Google Cloud Messaging 時,發現 AndroidManifest.xml 顯示這則錯誤訊息。
解法:
- 在 Android SDK Manager 中,確認 Extras -> Google Play service 已安裝
- 透過 Eclipse 進行 project import:File -> Import -> Android -> Existing Android Code Into Workspace -> 挑選 google-play-services_lib 的位置 (例如 /path/adt-bundle-mac-x86_64-20131030/sdk/extras/google/google_play_services/libproject/google-play-services_lib),記得要挑 libproject 裡的
- 在原本的 project 進行設定:Eclipse -> Project ->Properties -> Android -> Library -> Add -> 挑選 google-play-services_lib
如此一來,即可解決(Eclipse 有時不會馬上更新狀態,要把 project close 後再 open)。
2015年7月23日 星期四
[Basic Code] array define
private String[] shareWithName=new String[]{ "Jean", "Bill","Tom", "kitty"};
for (int i = 0; i < cameraNum; i++) {
camNameArr[i] = new String();
}
for (int i = 0; i < cameraNum; i++) {
camNameArr[i] = new String();
}
2015年7月13日 星期一
2015年7月9日 星期四
[VLC] View source for AndroidCompile
以VLC为内核写的android 播放器http://www.apkbus.com/android-223011-1-1.html
View source for AndroidCompile
https://wiki.videolan.org/index.php?title=AndroidCompile&action=edit
VLC-Android使用总结
http://www.cnblogs.com/androidstudy/p/4315501.html
View source for AndroidCompile
https://wiki.videolan.org/index.php?title=AndroidCompile&action=edit
VLC-Android使用总结
http://www.cnblogs.com/androidstudy/p/4315501.html
2015年7月8日 星期三
[Tool] web & android & ios
Pixlr browser photo editor
RGB-to-Hex Conversion
http://www.javascripter.net/faq/rgbtohex.htm
Android layout demo design(fluidui)
https://www.fluidui.com/editor/live/
Android layout demo design(fluidui)
https://www.fluidui.com/editor/live/
[Android] SharedPreferences
private CheckBox savePwd;
private SharedPreferences loginPreferences;
private SharedPreferences.Editor loginPrefsEditor;
//----------------------------------------------
loginPreferences = getSharedPreferences("loginPrefs", MODE_PRIVATE);
loginPrefsEditor = loginPreferences.edit();
isIDPwdExist = loginPreferences.getBoolean("isIDPwdExist", false); //if there is not value exist, false by default.
if (isIDPwdExist == true) {
et_userid.setText(loginPreferences.getString("username", ""));
et_pwd.setText(loginPreferences.getString("password", ""));
savePwd.setChecked(true);
}
//----------------------------------------------
public void preferenceSetting(){
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(et_userid.getWindowToken(), 0);
if (savePwd.isChecked()) {
loginPrefsEditor.putBoolean("isIDPwdExist", true);
loginPrefsEditor.putString("username", et_userid.getText().toString());
loginPrefsEditor.putString("password", et_pwd.getText().toString());
loginPrefsEditor.commit();
} else {
// loginPrefsEditor.clear();
loginPrefsEditor.putBoolean("isIDPwdExist", false);
loginPrefsEditor.remove("password");
loginPrefsEditor.commit();
}
}
2015年7月2日 星期四
[IPCAM] editing
The Way to Update progress bar in ListView :Android (another way [ScrollView+tableLayout] )
http://isms-blog.logdown.com/posts/65188-the-way-to-update-progress-bar-in-listviewandroid
Download multiple files with a progress bar in ListView Android
http://stackoverflow.com/questions/19875838/download-multiple-files-with-a-progress-bar-in-listview-android
How to Show Alert Dialog in Android
http://www.androidhive.info/2011/09/how-to-show-alert-dialog-in-android/
vlc android的编译及截图,录制视频等功能
http://blog.csdn.net/vertx/article/details/8559385
check box without square
http://stackoverflow.com/questions/27269882/checkbox-without-the-square-android
android下獲取無線wif信號、ssid、MAC等操作類
http://codex.wiki/post/191411-272/
how to get Image from url in android
http://enginebai.logdown.com/posts/190972/android-implement-pictures-downloaded-from-the-network
Create Custom Checkbox With The Use Of Selectors And Shapes
Download multiple files with a progress bar in ListView Android
http://stackoverflow.com/questions/19875838/download-multiple-files-with-a-progress-bar-in-listview-android
How to Show Alert Dialog in Android
http://www.androidhive.info/2011/09/how-to-show-alert-dialog-in-android/
vlc android的编译及截图,录制视频等功能
http://blog.csdn.net/vertx/article/details/8559385
check box without square
http://stackoverflow.com/questions/27269882/checkbox-without-the-square-android
android下獲取無線wif信號、ssid、MAC等操作類
http://codex.wiki/post/191411-272/
how to get Image from url in android
http://enginebai.logdown.com/posts/190972/android-implement-pictures-downloaded-from-the-network
Create Custom Checkbox With The Use Of Selectors And Shapes
Custom Toast Alert - Android Example
Custom Dialog - Android Example
http://androidexample.com/Custom_Dialog_-_Android_Example/index.php?view=article_discription&aid=88&aaid=111
Download Images From Web And Lazy Load In ListView - Android Example
How to implement Facebook login in Android applications?
Download Images From Web And Lazy Load In ListView - Android Example
How to send push notifications using GCM service?
[Android] INSTALL_FAILED_UPDATE_INCOMPATIBLE
the app is not removed completely.
settings->applications->remove your app
settings->applications->remove your app
訂閱:
文章 (Atom)