顯示具有 app 標籤的文章。 顯示所有文章
顯示具有 app 標籤的文章。 顯示所有文章

2013年3月10日 星期日

Android GAME PUZZLE

 

Art Puzzle 

第二個自製的 Android Game 
將之前練習的 code 重新整理,做一些修改,加一些視覺


游戲中將一張圖畫挖空一個空格,滑動螢幕來控制圖片的位置,將圖畫完成就過關。
有完整的圖畫縮圖,可做為通關參考。 


  首頁

 選擇關卡難易度( 2x2 的關卡 會有解不出的問題,可以選擇刷新)

 遊戲玩法說明

遊戲畫面



 過關畫面
過關後縮圖會開啟,下方有完成的難易度


 https://play.google.com/store/apps/details?id=com.eartht.mypuzzle      (Art)
https://play.google.com/store/apps/details?id=com.eartht.fruitpuzzle      (Fruit)
https://play.google.com/store/apps/details?id=com.eartht.castlepuzzle      (Castle)

有需要 source code 歡迎  Email 索取
( wutony76@gmail.com )
互相交流、互相學習

 

2013年2月21日 星期四

Android 使用 AdMob



首先在網路上下載 AdMob SDK ,放置 D:\JavaJar

將下載好的 SDK 加入置自已的專案中


 加入成功後,在 Referenced Libraries 就可以看到
GoogleAdMobAdsSdk.jar 這樣就可以寫 Code 了

 在 main.xml  加一個  LinearLayout

  <LinearLayout
        android:id="@+id/admobely"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
   </LinearLayout>


 
  在 main.java 加入 code

        AdView adView = new AdView(this, AdSize.BANNER, "a15110812088bea");
        LinearLayout layout = (LinearLayout)this.findViewById(R.id.admobely);
        layout.addView(adView);
        adView.loadAd(new AdRequest());
紅色字記得


  Demo






2012年11月9日 星期五

Android 相關_參考

Activity 週期
http://tyroandroid.blogspot.tw/2009/07/android-activity.html   
intent
http://forum.hkgphone.com/thread-52-1-1.html   

內建鍵盤
http://blog.csdn.net/liuxiit/article/details/6903884   
關閉鍵盤
http://blueredfield.blog.163.com/blog/static/11535200020117983038447/
http://milochen.wordpress.com/2010/07/23/android-keyboard-startshow-hide-bug/   
http://4225953-163-com.iteye.com/blog/1235324   

animation 動畫
http://tomkuo139.blogspot.tw/2009/11/android-loadanimation-anim-xml.html   
http://fecbob.pixnet.net/blog/post/36037163-android%E7%B6%B2%E8%B7%AF%E8%BC%89%E5%85%A5%E6%99%82%E9%A1%AF%E7%A4%BA%E9%80%B2%E5%BA%A6%E6%A2%9D%28%E8%BD%89%29    

 動畫循環
http://blog.csdn.net/feng88724/article/details/7000314

動畫合併
http://book.51cto.com/art/201204/328310.htm

中心轉
http://stackoverflow.com/questions/3137490/how-to-spin-an-android-icon-on-its-center-point





get & post
http://blog.csdn.net/zhou699/article/details/6442186    



android4 post/get 解決…方法
http://www.iteye.com/problems/86014   




在android 2.2 之後 網路不可以在主線使用

android 程序
http://j796160836.pixnet.net/blog/post/28766165   

android 手機螢幕 width, heigtht
http://tomkuo139.blogspot.tw/2010/01/android-activity.html   

android  tabHost 滑動切換
http://blog.csdn.net/shimiso/article/details/7743805

listView 下拉更新
http://download.csdn.net/download/duancanmeng/4449280

listView checkBox
http://mobile.51cto.com/android-254823.htm   

listView class 說明
http://hatsukiakio.blogspot.tw/2009/06/lustviewlistactivity.html   

BaseAdapter 資料重復問題
http://www.cnblogs.com/3dant/archive/2011/04/06/2007060.html   

android viewpager基本
http://my.oschina.net/kzhou/blog/29157   

img upload
http://jjnnykimo.pixnet.net/blog/post/37538328-android-upload-file-use-base64-   


thread
http://stackoverflow.com/questions/4178682/how-to-start-a-new-thread-in-a-service   

camera
http://cw1057.blogspot.tw/2011/12/android_10.html   

攔截back .  
http://aking86.iteye.com/blog/1317186   

getpath
http://www.eoeandroid.com/thread-42982-1-1.html    

 
pic 縮圖
http://hi.baidu.com/thepurpledream/item/27782ec8b57f4513505058e7    

 
圖片內存問題
http://yueguc.iteye.com/blog/1051966   
http://givemepass.blogspot.tw/2011/11/blog-post_16.html    *****

camera
http://www.myexception.cn/android/431246.html   

多國語
http://jim690701.blogspot.tw/2012/07/android.html   

button style
http://wiki.kent-chiu.com/doku.php/android/drawable_101    


音效
http://cw1057.blogspot.tw/2011/12/android-soundpool.html   
http://www.haoni.org/2011/04/01/androidweianniutianjiashengyinsoundpoolsoundmanagershijian/   
http://ocean2002n.pixnet.net/blog/post/87093104-%5Bandroid%5D-soundpool-%E7%AF%84%E4%BE%8B%E7%A8%8B%E5%BC%8F   

背景音樂
http://chip.twbbs.org/2011/02/android-12.html   
http://blog.csdn.net/chenjie19891104/article/details/6330720   
http://shung007.blogspot.tw/2012/04/tqc-android-3-3-mp3-use-mediaplayer.html    


socket

http://blog.johnsonlu.org/?p=989
http://blog.csdn.net/menghnhhuan/article/details/6956016

http://www.javaworld.com.tw/jute/post/view?bid=26&id=278103   


buttony style 9.path
http://lbrant.blog.51cto.com/2400264/504645   

待機
http://blog.csdn.net/menghnhhuan/article/details/7398865

facebook email
http://blog.gorendo.org/2011/01/androidfacebook-api-for-android.html
https://developers.facebook.com/docs/mobile/android/build/#extend_token

async
http://download.csdn.net/download/czjuttsw/4407016   
內存優化
http://blog.sina.com.cn/s/blog_5d6ee3360100qyo5.html

存到sd卡
http://www.myexception.cn/android/342459.html

圖片特效處理
http://ysl-paradise.blogspot.tw/2009/12/ii.html   
http://idunnolol.com/android/drawables.html#shape   
http://stackoverflow.com/questions/7944263/how-to-position-radial-gradient-background



mat

http://www.itchm.com/article-38-1.html
http://2528.iteye.com/blog/1246392   
http://blog.csdn.net/su1216/article/details/7647884   

sufaceView
http://blog.csdn.net/xianming01/article/details/7296155
http://www.xuanyusong.com/archives/266

查看記憶體
http://fecbob.pixnet.net/blog/post/35999761-android-%E6%9F%A5%E7%9C%8B%E8%A8%98%E6%86%B6%E9%AB%94
http://kanwoerzi.iteye.com/blog/1305152

 




計步器
https://github.com/bagilevi/android-pedometer
http://code.google.com/p/android-pedometer/source/checkout

viewpager + 小圓點
http://www.cnblogs.com/eyu8874521/archive/2012/08/07/2626455.html

 
Camera
http://reterfreeman.blogspot.tw/2012/06/android.html

跑馬燈
http://bedingfield-tsots.blogspot.tw/2012/01/marquee-textview.html    

 
viewpager demo
https://github.com/pakerfeldt/android-viewflow   

sensor
http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it


取得系統訊息
http://www.cocos2dev.com/?p=208    

 webView
http://androidbiancheng.blogspot.tw/2010/01/webview.html