在引入项目时,如何更改android工程名
来源:互联网 发布:2015年京东双十一数据 编辑:程序博客网 时间:2024/06/05 09:23
前段研究一些源码,在引入项目时,发现通过Refactor-Rename重命名之后,下次引入项目,工程名还是会改变为原来的工程名!
1、通过研究Eclipse引入Android工程机制,发现Eclipse会自动读取android代码的清单文件"AndroidManifest.xml"
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
查找到过滤器为运行的主activity
2、通过获取主activity的名字,然后生成工程名
<activity
android:name=".FlashActivity"
3、既然分析出原因,那么我们只要把主运行的activity的名字修改一下,然后再次引入时,都会按照这个名字进行import
<activity
android:name=".工程名"
转载:http://blog.csdn.net/whwzm88/article/details/8251431
0 0
- 在引入项目时,如何更改android工程名
- 在引入项目时,如何更改android工程名
- Android工程名更改
- 在myEclipse更改工程名
- [Android] 项目更改包名
- Android项目更改包名
- Android项目更改包名
- Android项目更改包名
- android studio 更改项目名
- Android 如何更改包名
- Android 如何更改包名
- Android 如何更改包名
- Android开发:彻底更改工程名
- 如何更改MyEclipse已建好的项目名
- Eclipse如何更改maven项目名
- 如何更改AndroidStudio项目的包名
- 如何在Android项目中引入第三方JAR包
- 更改工程名
- AOP之PostSharp
- ruby系统使用memcache缓存
- Python科学计算环境简介——Anaconda Python
- eclipse 如何调试jar包中的.class文件
- python内建模块之itertools
- 在引入项目时,如何更改android工程名
- Warning: Attempt to present A on B whose view is not in the window hierarchy!
- There is no 'root'@'%' registered解决
- 一步一步学习 Linux 驱动之字符设备 LED
- myeclipse8.5安装axis2
- java操作hdfs
- Amap_xyxyshow
- POJ1426 Find The Multiple BFS
- OmniGraffle好工具 mac上代替visio