Wednesday, April 3, 2013

Dex Loader



unable to resolve virtual method 45: Landroid/app/Notification$Builder;.build ()Landroid/app/Notification;


Error: unable to resolve static field 214

soruce code:
GoogleAccountCredential.usingOAuth2(mContext, DriveScopes.DRIVE_FILE);

credential.setSelectedAccountName(mAccount.name);


Problem:

Dex Loader


04-03 14:52:58.569: E/DriveSyncAdapter(8535): kunhu : fail 1 e:com.google.android.gms.auth.UserRecoverableAuthException: NeedPermission



AppStore 不會告訴你的數

http://daviddliu.wordpress.com/2011/09/02/appstore-secret/

開發的APP 要多少人使用才能回本?


http://zarqarwi.blogspot.tw/2011/08/app.html

企業 Android App 上架 Google Play 軟體市場的流程說明

http://www.webmobi.com.tw/push-android-app-google-play-market/


應用程式內結帳 (In-app billing)



Google 付費App 重新上架 2013/2/28


http://tw.news.yahoo.com/google-%E4%BB%98%E8%B2%BBapp-%E9%87%8D%E6%96%B0%E4%B8%8A%E6%9E%B6-024006621.html




Google Checkout 開始提供台灣開發者電匯服務


Tuesday, April 2, 2013

您上傳的 APK 未經壓縮校準,請對您的 APK 執行壓縮校準工具,然後重新上傳。


1.

zipalign















When using Eclipse with the ADT plugin, the Export Wizard will automatically zipalign your .apk after it signs it with your private key.

----notes----------

購買您自己的應用程式

請注意,購買您自己的應用程式是違反 Google Checkout 政策的行為。如果您嘗試購買自己的應用程式,將會收到一則錯誤訊息。不過,為了方便開發人員測試自家已啟用授權的應用程式,我們也提供了特別的方法,詳情請參閱設定測試環境一文。

Android Market 開發人員發佈協議

https://play.google.com/intl/ALL_tw/about/developer-distribution-agreement.html

how to Sign Android App


1. refer to
http://web.nchu.edu.tw/~jlu/cyut/android/prog-apk.shtml

http://developer.android.com/tools/publishing/app-signing.html

2.




















Service (Android)




1. Service runs without a UI,
2. task (thread), still in main process


refer to the chapter 9.

3. how to crate/start/stop
4. Binding service to activity.
@ "onbind" method need be implement in Service.

foreground activity


@    startForeground(NOTIFICATION_ID, notification);
stopForeground(true);


Service is called by using "StartService" / "stopService"
Service is entry via "onStartCommand"


===Creating New Asynchronous Tasks

===intent service

BaseColumns


BaseColumns: why?, please refer to http://www.allenj.net/?p=2828



http://blog.tonycube.com/2011/11/androidsqlite.html

Content Provider



Android:
http://developer.android.com/guide/topics/providers/content-providers.html



misc:

@in xml: need setup this for URI path in packet


Content Resolver can access it.



    <provider android:name=".MyContentProvider"
      android:authorities="com.paad.skeletondatabaseprovider"/>

    <provider android:name=".MySearchSuggestionsContentProvider"
      android:authorities="com.paad.skeletonsearchabledatabaseprovider"/>

    <provider android:name=".MyHoardContentProvider"
      android:authorities="com.paad.hoardcontentprovider"/>

@CONTENT_URI

 public static final Uri CONTENT_URI = Uri.parse("content://com.paad.skeletondatabaseprovider/elements");

@/< rownumber >,

content:// com.paad.skeletondatabaseprovider/ elements/ 5

@UriMatcher
init:

uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
   uriMatcher.addURI("com.paad.skeletondatabaseprovider", 
                     "elements", ALLROWS);
   uriMatcher.addURI("com.paad.skeletondatabaseprovider", 
                     "elements/#", SINGLE_ROW);

parser: check method:
  switch (uriMatcher.match(uri)) {


@how to use the content provider
ContentResolver




how to remove hao123




http://www.ettoday.net/news/20130112/151417.htm


http://tw.zhidao.baidu.com/user/420024375/
(這個擴充功能目前受到管理,無法移除或停用)。


step 1: remove "hao123" by using regedit
step 2: reinstalll the google chrome.
after that, hao123 still in the plug-in, but it will not show up when I open a new page in google chrome.