[Q] Market requires versionCode.... positive 32-bit integer in AndroidManifest - Android Software Development

What does that mean ?! Here is the full error I get when submitting my proggy to the market;
ERRORS;
error#1- Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml
error#2- Market requires versionName to be set in AndroidManifest.xml
<><><><><><><><>
My Manifest; ( I replaced my app info with gen info for the forum)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mydomain.myapp"
android:versionCode="1"
android:versionName="1">
<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:targetSdkVersion="8" />
<uses-sdk android:maxSdkVersion="9" />
<activity android:name=".myapp"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape">
<application android:label="@string/myapp" android:icon="@drawable/myicon">
<uses-feature android:name="android.hardware.touchscreen" android:required="true"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.wifi" android:required="false"/>
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="false"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</application>
</activity>
</manifest>
<><><><><>
Any help would be wonderful, thanks taking the time to read this post

Related

Android RSS Feeder Help

Hi, im building an RSS Reader and am having a little trouble if anyone could help me out.
im trying to open my app when a subscribe rss link in a browser is pressed, but at the moment it is displaying my app in the browser instead of launching the app!!
can anyone help with is issue?
below is my manifest, thanks
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.RSS_Viewer"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:name=".Globals"
android:icon="@drawable/rssicon"
android:label="@string/app_name" android:logo="@drawable/rssicon">
<activity
android:name=".RSS_ViewerActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="itpc" />
<data android:scheme="pcast" />
<data android:scheme="feed" />
<data android:scheme="feeds" />
<data android:scheme="rss" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/xml" android:scheme="http" />
<data android:mimeType="application/rss+xml" android:scheme="http" />
<data android:mimeType="application/atom+xml" android:scheme="http" />
<data android:mimeType="text/xml" android:scheme="https" />
<data android:mimeType="application/rss+xml" android:scheme="https" />
<data android:mimeType="application/atom+xml" android:scheme="https" />
</intent-filter>
</activity>
<activity android:name="RSSFeedActivity"></activity>
<activity android:name="com.CertificateAuthentication.Authenticator"></activity>
</application>
</manifest>

i need a little help with this

hey,
i'm trying to make an app in android studio and get some errors in my androidmanifest.xml when using inspect code.
This is my first app and i'm sure i missed something essential...pls help
My xml file looks like this:
<manifest xmlns:android="...."
android:versionCode="1"
android:versionName="1.0"
package="com.standby.custom">
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="18"/>
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:resizeable="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" android:launchMode="singleInstance" android:hardwareAccelerated="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".DeviceStateReceiver" />
<service android:name="com.standby.custom.services.ReceiverRegisterService" />
<receiver android:name=".PackageChangeReceiver">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_REMOVED" />
<data android:scheme="package" androidath="com.standby.custom" />
</intent-filter>
</receiver>
<receiver android:name=".BootUpReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>
and i get this error messages:
Cannot resolve symbol '.MainActivity' (at line 34)
Cannot resolve symbol '.DeviceStateReceiver' (at line 40)
Cannot resolve symbol 'com.standby.custom.services.ReceiverRegisterService' (at line 41)
Cannot resolve symbol '.PackageChangeReceiver' (at line 42)
Cannot resolve symbol '.BootUpReceiver' (at line 50)
Does anyone know what I missed?
Tks
First of all, please use
Code:
tags for your code.
Is this the right package all of your classes can be found in?
[CODE]package="com.standby.custom"
Try to enter the full package name for all android:name attributes. Like this:
Code:
android:name="my.package.name.MainActivity"
(replace my.package.name by the package MainActivity is in.)

[Q] How to insert admob in app help me

hi guys
could you help me to put the banner in my app.
I also followed the guides but I still can not insert
You might even see me lines of code please
thanks
what problem are you getting????
Atleast tell the problem or provide the code where you are facing problem.
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
GRYMALA said:
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
Click to expand...
Click to collapse
Nice answer! Thanks for this.

built app, installs on Moto X but Icon is missing

I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
xmattoxx said:
I just got done building my app in A.S. I ran the clean gradle and no errors came back. The app installs on my Moto X fine, it's listed in Settings/Apps and says the 5MB size but never shows on any of the home screens nor the main applications list among other icons.
Has Anyone seen this before?
Android Studio: v0.61 (Win7) SDK tools: v22.6.4 SDK build-tools 19.1 Google Play services Rev 17
thank you
Ryan
Click to expand...
Click to collapse
Here's my androidmanifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thirtyfate.flashlight"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
<uses-feature android:name="android.hardware.camera.flash" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.thirtyfate.flashlight.MainActivity"
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
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</manifest>

custom fm radio for lineage and miui

Hello everybody. I am android developer and i want to modify fm radio for agm m7 (lineage). I have decompiled app,but when i try to run fm radio and play some fm wave,i get a message,what this function is unavailable now. I have it in /system/app and in /system/priv-app with permissions 644 and 777,i.e i tryed to do it as a system app. Also in /system/priv-app i have text link on libfmjni.so My phone is rooted. As i understood from debug,native method openDev and probably some other methods from native lib return false. In manifest i have:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="2.0" package="com.android.fmradio" platformBuildVersionCode="27" platformBuildVersionName="8.1.0">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="26" android:usesCleartextTraffic="false"/>
<uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_ROUTING"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:label="@string/app_name" android:icon="@Mipmap/ic_launcher" android:hardwareAccelerated="true">
<activity android:theme="@style/AppTheme" android:label="@string/app_name" android:name="com.android.fmradio.FmMainActivity" android:launchMode="standard" android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan" android:usesCleartextTraffic="false">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity android:theme="@style/LightTheme" android:label="@string/station_title" android:name="com.android.fmradio.FmFavoriteActivity" android:launchMode="singleTask" android:configChanges="screenSize" android:windowSoftInputMode="stateAlwaysHidden"/>
<service android:name="com.android.fmradio.FmService" android:exported="false">
<intent-filter>
<action android:name="com.android.fmradio.IFmRadioService"/>
</intent-filter>
</service>
<provider android:name="com.android.fmradio.FmProvider" android:exported="false" android:authorities="com.android.fmradio"/>
<activity android:theme="@style/LightTheme" android:label="@string/record_title" android:name="com.android.fmradio.FmRecordActivity" android:launchMode="singleTask" android:configChanges="screenSize|keyboardHidden|mnc|mcc"/>
<activity android:label="@string/app_name" android:name="com.android.fmradio.FmEmActivity" android:clearTaskOnLaunch="true" android:launchMode="singleTask" android:configChanges="screenSize|orientation|keyboardHidden|mnc|mcc">
<intent-filter>
<action android:name="com.mediatek.fmradio.FmRadioEmActivity"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<receiver android:name="com.android.fmradio.FMMediaButtonIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON"/>
</intent-filter>
</receiver>
</application>
</manifest>
May be it connected with differents signatures of custom firmware and my app? If true,whether it possible sign firmware with other signature,if i haven't source code of firmware for agm m7? May be this problem not connected with signatures?
Also maybe someone have decompiled fm radio for xiaomi redmi note 9 s,because i want to change one thing in this app.

Categories

Resources