Android 开发佳站3

摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2013/04/24/3040219.html]File-Properties-Resource-Text file coding-Other-UTF8-Apply阅读全文
posted @ 2013-04-24 14:56 一篮饭特稀 阅读(2) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2013/03/07/2948362.html]super(marker); //maker对象的左上角与坐标点重合 super(boundCenter(marker)); //maker对象的中心与坐标点重合super(boundCenterBottom(marker)); //maker对象底部的中心与坐标点重合阅读全文
posted @ 2013-03-07 16:41 一篮饭特稀 阅读(25) | 评论 (3) 编辑
 
摘要: 当出现ADB server didn't ACK无法重启ADB时,只要到任务管理器中对着adb.exe-右键-属性,查看路径,然后卸载掉占用的程序即可阅读全文
posted @ 2013-03-01 10:46 一篮饭特稀 阅读(9) | 评论 (1) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2013/01/10/2855096.html]1.注册一个广播接收器,监听网络状态1 private void Start()2 {3 IntentFilter filter = new IntentFilter();4 filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);5 filter.addAction(WifiManager.WIFI_STATE...阅读全文
posted @ 2013-01-10 16:59 一篮饭特稀 阅读(545) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2012/11/30/2796379.html]The connection to adb is down, and a severe error has occured.问题解决方案:1.cmd中adb kill-server,然后adb -startserver2.任务管理器中杀死adb.exe,然后重启Eclipse。3.卸载"腕豆夹"4.关闭"360安全卫士"5.卸载"阿里旺旺"6.在C盘搜索adb.exe文件,卸阅读全文
posted @ 2012-11-30 15:54 一篮饭特稀 阅读(21) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2012/10/24/2736652.html]1.出现拖放地图卡顿不刷新、定位卡顿不刷新问题。经过1天的排查,发现:1 <uses-sdk2 android:minSdkVersion="10"3 android:targetSdkVersion="15" />需要改成1 <uses-sdk2 android:minSdkVersion="10"/>阅读全文
posted @ 2012-10-24 10:15 一篮饭特稀 阅读(27) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2012/08/24/2654313.html]解决退出依旧返回上一页问题!1.在Common.java中public class Common{ public static List<Activity> activityList = new ArrayList<Activity>(); public static void CloseAllActivity(Context context) { for (int i = 0; i < activit.阅读全文
posted @ 2012-08-24 15:31 一篮饭特稀 阅读(15) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2012/08/23/2651922.html]1.AVD模拟器设置SDCard Size和Hardware SDCard Support :yes2.启动AVD后在File Explorer中找到mntsdcard目录3.点击File Explorer中Push a file onto the device,选择123.html4.页面建立WebView,输入路径file://sdcard/123.html1 WebView mWebView;2 mWebView = (Web阅读全文
posted @ 2012-08-23 09:51 一篮饭特稀 阅读(22) | 评论 (0) 编辑
 
摘要: private void SaveBitmap(String bitName, Bitmap mBitmap){ FileHelper fHelper=new FileHelper(GPSActivity.this); fHelper.creatSDDir("WLAN"); File f = new File("/sdcard/WLAN/" + bitName + ".jpg"); try { f.createNewFile(); FileOutputStream fOut = null; fOut = n...阅读全文
posted @ 2012-08-13 16:55 一篮饭特稀 阅读(40) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出自http://www.cnblogs.com/wanghafan/archive/2012/08/03/2621698.html]1.cmd进入控制台2.进入C:UsersAdministrator.android目录3.运行keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android4.记下密文,比如98:AD:7C:B9:90:1D:6F:98:F7:9C:60:3F:40:08:D8:5F5.找到本地的Hosts文件,阅读全文
posted @ 2012-08-03 15:18 一篮饭特稀 阅读(13) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出处http://www.cnblogs.com/wanghafan/archive/2012/07/30/2615512.html]basic.xmlView Code 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="fill_parent"阅读全文
posted @ 2012-07-30 16:32 一篮饭特稀 阅读(242) | 评论 (0) 编辑
 
摘要: Android的MVC框架MVC是当前比较流行的框架,随便Google下,就可以发现几乎所有的应用程序开发中都采用了MVC框架,例如:.NET,Java Spring,Java Struts,PHP 。那么MVC到底是什么,为什么被广泛使用?简要说明下,什么是MVC。MVC (Model-View-Controller):M是指逻辑模型,V是指视图模型,C则是控制器。一个逻辑模型可以对于多种视图模型,比如一批统计数据你可以分别用柱状图、饼图来表示。一种视图模型也可以对于多种逻辑模型。使用MVC的目的是将M和V的实现代码分离,从而使同一个程序可以使用不同的表现形式,而C存在的目的则是确保M和V的阅读全文
posted @ 2012-07-20 10:56 一篮饭特稀 阅读(410) | 评论 (0) 编辑
 
摘要: 在使用Eclipse开发Android程序过程中,发现鼠标停放在想要查看帮助的类名上面,提示如下信息:Note: This element neither has attached source nor attached Javadoc and hence no Javadoc could be found.出现这个原因,一般是因为android.jar包的Javadoc文件的关联属性没有设置好。可以进行如下操作:1,右击项目,选择 properties –> Java Build Path –>Libraries,展开Android相关类库的具体属性,下面有一个android.j阅读全文
posted @ 2012-07-19 17:30 一篮饭特稀 阅读(307) | 评论 (0) 编辑
 
摘要: [一篮饭特稀原创,转载请注明出处http://www.cnblogs.com/wanghafan/archive/2012/07/03/2574300.html]首先,src和layout中分别新建各自的文件e.g.srcfantsy.androidtestmain.javasrcfantsy.androidtestlistview.java (模仿main)reslayoutmain.xmlreslayoutlistview.xml (模仿main) 然后,设置AndroidManifest.xml AndroidManifest.xml - Application - Ap阅读全文
posted @ 2012-07-03 10:24 一篮饭特稀 阅读(29) | 评论 (0) 编辑
 
摘要: 1.模拟器横竖屏切换快捷键Ctrl+F112.写法: android:id="@+id/button1"android:text="@+text/Button"3.如果在运行Intent intent=new Intent(GPSActivity.this, ColorActivity.class); startActivity(intent);过程中报错,很可能是因为Mainfest.xml文件中未添加ColorActivity.xml文件为Activity阅读全文
原文地址:https://www.cnblogs.com/fx2008/p/3144702.html