本课通过Android的HelloWorld项目来介绍Android项目的目录结构。创立好项目后,左侧显示项目的目录结构如下图:HelloWorld项目结构主要包括下面几项src文件夹gen文件夹Android4.4.2文件夹1.4、assets1.5、res文件夹1.6、AndroidManifest.xml1.7、project.properties下面将分节..
分类:
移动开发 时间:
2014-10-06 16:46:00
阅读次数:
266
1. Re-installation failed due to different application signatures.将原来的软件包删除掉,然后又一次安装一次就好了。在命令行上执行:adb uninstall ,这里的package_name也就是AndroidManifest.xml...
分类:
移动开发 时间:
2014-10-04 14:25:16
阅读次数:
179
下面是一个项目中的AndroidManifest.xml文件:
package="tw.suggest" //指定项目中的程序文件的包路径
android:versionCode="1" //此项目的版本号码
android:versionName="1.0" > //此项目的版本名称
...
分类:
移动开发 时间:
2014-10-02 19:44:03
阅读次数:
189
接收推送消息部分我们通过ZeroMQ实现,可以参考http://www.cnblogs.com/ilovewindy/p/3984283.html。首先是开机自启动的功能实现,代码如下:1. AndroidManifest.xml中添加如下代码: 1 2 3 4 5 ….. 6 10...
分类:
移动开发 时间:
2014-09-30 08:04:22
阅读次数:
255
Android系统提供了将Activity设置为透明的主题:@android:style/Theme.Translucent
该属性同时支持隐藏TitleBar和全屏显示。只需要在AndroidManifest.xml配置文件中为对应的Activity增加该属性即可。
<activity
android:name=".activities.MyActivi...
分类:
移动开发 时间:
2014-09-29 16:15:01
阅读次数:
194
1. AndroidManifest.xml2. project.properties# This file is automatically generated by Android Tools.# Do not modify this file -- YOUR CHANGES WILL BE E...
分类:
移动开发 时间:
2014-09-29 15:42:51
阅读次数:
157
http://2960629.blog.51cto.com/2950629/701227方法一:在AndroidManifest.xml中配置如果不想让软件在横竖屏之间切换,最简单的办法就是在项目的AndroidManifest.xml中找到你所指定的activity中加上android:scree...
分类:
移动开发 时间:
2014-09-28 16:25:32
阅读次数:
241
配置应用程序在手机桌面显示的名称和图标-AndroidManifest.xml: http://schemas.android.com/apk/res/android" package="com.liuhao.mobilesafe" android:versionCode="1" android:versionName="1.0" >...
分类:
移动开发 时间:
2014-09-28 14:32:13
阅读次数:
386
如果你是一个Android用户,而且你有一个老旧的安装有android 1.5 的android设备,你可能会注意到一些高版本的应用没有在手机上的Android Market 中显示。这必定是应用使用了的结果。Android Market会根据uses-feature过滤所有你设备不支持的应用。通过...
分类:
移动开发 时间:
2014-09-27 16:44:40
阅读次数:
235
1,首先找到src下主包,如:com.example.haha右键refactor->rename改成想改成的包名,如:org.monsterlab.testdemo,上面两个选项全部勾选2,打开AndroidManifest.xml在package="com.example.haha"中,改名为想要的名字3,如果Java代码中还报错,把相应的包名改下即可
分类:
移动开发 时间:
2014-09-27 02:34:49
阅读次数:
161