Friday, March 29, 2013

Mercurial


Step 1: download





























google-api-java-client on Android



https://code.google.com/p/google-api-java-client/wiki/Android














Step1: see the Android lib after download the google-api-java-cilent

Step2:




setListAdapter



ArrayAdapter

實做範例:
http://blog.joomla.org.tw/android/178-ListView%E4%B9%8B%E4%B8%80%EF%BC%9AAdapter%E4%BB%8B%E7%B4%B9%E8%88%87%E4%BD%BF%E7%94%A8.html



Problem:
R.java was modified manually! Reverting to generated version!

Fixed:

Google Maps Android API(16311): Authorization failure.


03-29 09:39:42.031: E/Google Maps Android API(16311): Authorization failure.



Step 1:
Get the SHA-1 fingerprint.by

Step 2:
To get a project and register for the API:











Create Key by input :  SHA-1 fingerprint. ; com.xxxxx



“R cannot be resolved to a variable”?

http://stackoverflow.com/questions/7824730/r-cannot-be-resolved-to-a-variable



The sample of Google Maps Android API v2 com.example.mapdemo can not find file “R.java”




Ans: You need to setup these 3 lib correctly. 
 

google-play-services_lib.jar missing from SDK google_play_services lib folder




Wednesday, March 27, 2013

地籍圖資網路便民服務系統

http://easymap.land.moi.gov.tw/


@地價資料查詢
http://qry.land.tycg.gov.tw/qry1.aspx?mid=255

debug.keystore



1. GOOGLE :
https://developers.google.com/maps/documentation/android/v1/mapkey?hl=zh-TW#getfingerprint


Ans:
http://www.patrickintw.com/blog/google_map_key_failed



still failure:
at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData

http://stackoverflow.com/questions/7296467/google-map-signed-api-key-errors-in-android


Google Maps Android API v2 

Google 雲端通訊 (GCM)

Android SDK installation issue - Peer not authenticated

setting in the SDK Manager Tools > Options menu. 

import com.google cannot be resolved

android sdk manager.

How to change the default activity

How to change the default activity:


        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />



Logcat messages disappear after a short time:

Ans: change the buffer size.

GPS test



@Try 1:

 Log.i("TAGMOBLE","Lat:"+location.getLatitude());   //緯度Log.i("TAGMOBLE","Long:"+location.getLongitude());

Double check by Gmap: It works.


Monday, March 25, 2013



1. Android AP

台大
http://www.cc.ntu.edu.tw/chinese/epaper/0022/20120920_2209.html

參考一:
參考二:

參考二: http://xn--app-8v2h883k.tw/?gclid=CKTG_rnllrYCFQxepQod034AYg

App Store 排行榜第一名, 沒有想像中困難



  • 2. Problem: Error generating final archive: Debug Certificate expired on 

fixed by : C:\Documents and Settings\Administrator\.android 删除路径下的debug.keystore



  • Try 3:
金門大學: http://gogkmit.wikidot.com/demo:ch3

GPS sample:

http://gogkmit.wikidot.com/demo:gpssignal



  • Try 4:Problem : how to open existing android project in eclipse

Answer found:
http://stackoverflow.com/questions/2231474/how-to-import-existing-android-project-into-eclipse

Try 5: how to stop the ap thread

Windows -> Open perspective -> Other... -> DDMS





Try 6: Change the View

setContentView

Try 7:
http://www.xapps.tw/article/335?destination=node%2F335


Try 8:
XAPPS:  "startActivity" + Intent

http://www.xapps.tw/article/335?destination=node%2F335

Try 9: make call in Android : need this one in Manifest.xml
<uses-permission android:name="android.permission.CALL_PHONE"/>