跑在Android的工作室应用程序为2的应用程序图标新手在androi工作室
Running app in android studio gives 2 app icons newbie in androi studio
最后,我已经从日食到Android工作室做我的应用程序运行,即时通讯现在有关于如何使logcat的颜色一样蚀麻烦林?
at last i had made my app running , im from eclipse to android studio and now Im having trouble on how to make color of logcat same as eclipse?.
我的问题是有2个应用程序图标,当我运行的应用程序,当我卸载它,其中2人已被删除。它是正常的android工作室?
my question is there are 2 app icons when i run the app, and when i uninstall it, 2 of them have been removed. is it normal in android studio?
我发现,机器人工作室可以从日食复印键。
I have found that android studio can copy keys from eclipse.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mytrack.ph"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- Google Map v.2 permissions -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- GCM permissions -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" />
<!-- Writing Persmission -->
<uses-permission android:name="android.permission.WRITE_USER_DICTIONARY" />
<uses-permission android:name="android.permission.WRITE_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PROFILE"/>
<uses-permission android:name="android.permission.READ_CONTACT"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity android:name="com.mytrack.ph.SplashActivity"
android:label="@string/app_name"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/splashScreenTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.mytrack.ph.LoginActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
>
</activity>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="@string/google_map_api_key"/>
<activity android:name="com.facebook.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/app_name" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/>
<service android:name="com.my.track.service.MyTrackService"></service>
<receiver
android:name="com.my.track.service.MyTrackGcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="com.my.track.service" />
</intent-filter>
</receiver>
<service android:name="com.my.track.service.MyTrackGcmIntentService" />
<activity android:name="NavigationMenuActivity"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait"
android:launchMode="singleTop"
android:permission="com.google.android.c2dm.permission.SEND" >
></activity>
<receiver android:name="com.my.track.results.ConnectionChangeReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
</application>
</manifest>
不过,我觉得这是正常的机器人工作室。运行一个应用程序提供了2发射器的图标。 PS:
I though this is normal in android studio. Running an app gives 2 launcher icons. PS:
我的的AndroidManifest.xml
里面的主的文件夹,然后我用日食出口到摇篮的构建。
my AndroidManifest.xml
is inside main folder and I used eclipse to export to gradle build.
林 谢谢。
我知道了!是的,在最后,我要学习gradles之类的东西。
I got it! yes at last , i have to study gradles and stuff.
其实我有2个项目内的机器人项目,一个是图书馆,另一个是主要的应用程序。
Actually I have 2 android projects inside the Project, one is a library and the other one is the main app.
我发现,当我进口这些项目的Android工作室(我出口的lib到摇篮建立在Eclipse)不关心,如果这是一个lib项目或主体工程。 (纠正我,如果我错了)。
I found out that when i imported those projects Android Studio (I exported the lib to gradle build from eclipse) doesn't care if that is a lib project or a main project. (Correct me if im wrong ).
所以唯一的东西,使其工作就是删除意图过滤器
的LIB-机器人项目的。
so the only thing to make it work is to remove the intent-filter
of that lib-android-project.
编辑: @所有 解决了吧!感谢大家,我从来不知道还有一个AndroidManifest.xml中,我认为日食删除它。我以为导出到摇篮会删除它,因为它被选中作为一个库。
@all solved it ! thanks to everyone, I never knew there was another AndroidManifest.xml , i thought eclipse removed it. and i thought Exporting it to gradle will remove it because it is checked as a library.
感谢您的帮助。