i'm having a hard time uploading my upgraded version to the developers console. I've incremented the versionCode and the versionName and i used the same details to exporting the apk file as i did before.
when i try to upload the new file all it says that there's a unexpected error and asks me to choose another file.
does anyone have any hints or even know how to fix this error? would the problem be in my manifest?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="kev.harris"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk android:minSdkVersion="7" />
<application
android:icon="#drawable/man21"
android:label="#string/app_name"
android:theme="#android:style/Theme.NoTitleBar"
android:debuggable="false">
<activity
android:name=".AssignmentActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainMenu"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="kev.harris.MAINMENU" />
<category android:name="android.intent.category.DEFAULT" />
<!-- makes it so that the code is recognised but is to run in the background -->
</intent-filter>
</activity>
<activity
android:name=".MainGame"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="kev.harris.MainGame" />
<category android:name="android.intent.category.DEFAULT" />
<!-- makes it so that the code is recognised but is to run in the background -->
</intent-filter>
</activity>
<activity
android:name=".Savefile"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- saving stuff -->
</activity>
<activity
android:name=".Continues"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="kev.harris.CONTINUES" />
<category android:name="android.intent.category.DEFAULT" />
<!-- makes it so that the code is recognised but is to run in the background -->
</intent-filter>
<!-- continuing -->
</activity>
<activity
android:name=".Dead"
android:label="#string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".NewGame"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- used for the choice between male and female -->
</activity>
<activity
android:name=".Male"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for choosing the standard or custom picture -->
</activity>
<activity
android:name=".CMPicture"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for the male custom picture -->
</activity>
<activity
android:name=".MPicture"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for the male normal picture -->
</activity>
<activity
android:name=".Female"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for the female choice of picture -->
</activity>
<activity
android:name=".CfPicture"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for the female custom picture -->
</activity>
<activity
android:name=".FPicture"
android:label="#string/app_name"
android:screenOrientation="portrait" >
<!-- for the female normal picture -->
</activity>
</application>
R you including .apk extension with your file name.When you are exporting.
Related
When I install my app using a file explorer on my tv, I can run it and everything but I do not know how to create an icon that will sit on the home screen of the tv
Here is my AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sony.omgandroid" >
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<activity
android:name=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="#string/app_name"
android:theme="#style/FullscreenTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
It utilizes the android:banner in the AndroidManifest on the application tag.
<application
android:name=".ExampleApp"
android:banner="#drawable/app_banner"
android:theme="#style/AppTheme"
You need add in AndroidManifest.xml file
android:banner android:icon android:logo and android.intent.category.LEANBACK_LAUNCHER
example:
<activity
...
android:banner="#mipmap/ic_launcher"
android:icon="#mipmap/ic_launcher"
android:logo="#mipmap/ic_launcher">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
I've made an Android application using Eclipse. It has no errors, good to go, but I wanted to test it on my own phone first. I copied the APK file to my Samsung Galaxy S6 using an USB cable. Unplugged it, made sure the file version is not higher or later than my android version on my phone.
Used an APK installer app, and it's installed. It's at my files, and I can update it how many times I want. After updating, or installing it gives 2 buttons in the button. "Ready" and "Open". "Ready" is the only one clickable, and leaves the page. I can't open the apk-file. I've followed every tutorial but I just can't open it.
This is my Manifest code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rodekruis"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".BezoekActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="com.example.rodekruis.BezoekActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".AfspraakActivity"
android:label="#string/title_activity_afspraak" >
</activity>
<activity
android:name=".ContactActivity"
android:label="#string/title_activity_contact" >
</activity>
<activity
android:name=".MeningActivity"
android:label="#string/title_activity_mening" >
</activity>
<activity
android:name=".RouteActivity"
android:label="#string/title_activity_route" >
</activity>
<activity
android:name=".SpecialistenActivity"
android:label="#string/title_activity_specialisten" >
</activity>
<activity
android:name=".BWCActivity"
android:label="#string/title_activity_bwc" >
</activity>
<activity
android:name=".AgendaActivity"
android:label="#string/title_activity_agenda" >
</activity>
<activity
android:name=".InfoActivity"
android:label="#string/title_activity_informatie" >
</activity>
<activity
android:name=".VriendActivity"
android:label="#string/title_activity_vriend" >
</activity>
<activity
android:name=".FoldersActivity"
android:label="#string/title_activity_folders" >
</activity>
<activity
android:name=".NieuwsActivity"
android:label="#string/title_activity_nieuws">
</activity>
</application>
</manifest>
Does anybody knows why this is, or how I can solve it? If I need to add more things, feel free to ask. I'm struggling with this and really want it to work on my phone. Thanks in advance!
Activate USB debugging. It is easier.
Also:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rodekruis"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".BezoekActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.category.DEFAULT" />
<category android:name="com.example.rodekruis.BEZOEKACTIVITY" />
</intent-filter>
</activity>
<activity
android:name=".AfspraakActivity"
android:label="#string/title_activity_afspraak" >
</activity>
<activity
android:name=".ContactActivity"
android:label="#string/title_activity_contact" >
</activity>
<activity
android:name=".MeningActivity"
android:label="#string/title_activity_mening" >
</activity>
<activity
android:name=".RouteActivity"
android:label="#string/title_activity_route" >
</activity>
<activity
android:name=".SpecialistenActivity"
android:label="#string/title_activity_specialisten" >
</activity>
<activity
android:name=".BWCActivity"
android:label="#string/title_activity_bwc" >
</activity>
<activity
android:name=".AgendaActivity"
android:label="#string/title_activity_agenda" >
</activity>
<activity
android:name=".InfoActivity"
android:label="#string/title_activity_informatie" >
</activity>
<activity
android:name=".VriendActivity"
android:label="#string/title_activity_vriend" >
</activity>
<activity
android:name=".FoldersActivity"
android:label="#string/title_activity_folders" >
</activity>
<activity
android:name=".NieuwsActivity"
android:label="#string/title_activity_nieuws">
</activity>
</application>
</manifest>
You have to have a launcher defined. The rest have to be defined as you originally defined the first activity with default and the package name. The main activity(the first to launch) has to be defined with MAIN and LAUNCHER
EDIT:
OK, I screwed up. I updated it. Action cannot be the package name:
<action android:name="android.intent.category.DEFAULT" />
<category android:name="com.example.rodekruis.BEZOEKACTIVITY" />
You did it the other way around which is why it didnt work. You have to do the default and name for all the activities. The MainActivity was written correctly
Below xml is used to make a splash screen in Android. I have tested and is working fine. But when I generate APK file and install it will install 2 apps?
One is with splash screen and another one is without splash screen.Why? Sorry, I'm new in Android and just follow the tutorial.
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<!-- Splash screen -->
<activity
android:name="info.androidhive.androidsplashscreentimer.SplashScreen"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Main activity -->
<activity
android:name="info.androidhive.androidsplashscreentimer.MainActivity"
android:label="#string/app_name" >
</activity>
</application>
Label tag should only use with application tag,
android:label="#string/app_name"
So remove this label tag from:
<!-- Splash screen -->
<activity
android:name="info.androidhive.androidsplashscreentimer.SplashScreen"
android:label="#string/app_name" //remove this
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Black.NoTitleBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Main activity -->
<activity
android:name="info.androidhive.androidsplashscreentimer.MainActivity"
android:label="#string/app_name" //remove this >
</activity>
I'm trying to upload an update of my application in the Google Play store but I couldn't get more than 0 devices. I've tried to delete the permissions and still no luck. This is my manifest.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.compan.st"
android:versionCode="9"
android:versionName="#string/app_verion" >
<!-- PERMISSIONS -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="17" />
<application
android:name="com.compan.st.app.ApplicationExt"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#android:style/Theme.Holo.Light" >
<activity
android:name=".activity.LoginActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Holo.Light.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".activity.MainMenuActivity"
android:label="#string/MainMenuStrings"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.AcademicRecordActivity"
android:label="#string/ACrecord"
android:parentActivityName=".activity.MainMenuActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.SemesterActivity"
android:label="#string/Semester"
android:parentActivityName=".activity.AcademicRecordActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.AboutUserActivity"
android:label="#string/Aboutuser"
android:parentActivityName=".activity.MainMenuActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.RewardsActivity"
android:label="#string/Rewards"
android:parentActivityName=".activity.MainMenuActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.LoansActiviry"
android:label="#string/Loans"
android:parentActivityName=".activity.MainMenuActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.RequestsActivity"
android:label="#string/Requests"
android:parentActivityName=".activity.MainMenuActivity"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.Preferences"
android:label="#string/setting"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".activity.AboutActivity"
android:label="#string/about"
android:parentActivityName=".activity.Preferences"
android:screenOrientation="portrait" >
</activity>
<receiver android:name="com.compan.st.activity.IntentReceiver" />
<activity
android:name="com.google.android.apps.iosched.ui.phone.ScheduleActivity"
android:theme="#style/Theme.IOSched" >
</activity>
<activity android:name=".activity.CourseInfoActivity" >
</activity>
<activity
android:name=".activity.ASchedule"
android:label="#string/schedule" >
</activity>
</application>
The previous version was compatible with most of devices "it was working with api 8".
Problem fixed. it turns out one of the JARs that are Java project I'm using in my Android project has libraries inside a folder called lib so I just move it to a new folder called libs then export the JAR, put it in my Android project then export the APK.
So I have an app, with 2 activities. For some reason I am getting 2 launcher icons, one for each activity, but I only want one!
The Game activity had an intent-filter which i removed. I also uninstalled the app and reinstalled it from scratch but its still coming up with both launchers :(
Manifest below
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Game"
android:label="#string/title_activity_game" >
</activity>
</application>
You need to remove the label tag from your second Activity.
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".Game" >
</activity>
</application>